All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ber-security.graylog.graylog-plugin-alert-wizard.3.2.5.source-code.plugin.com.airbus_cyber_security.graylog.AlertWizardPlugin.f1a2b085b99869f9605e.js Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(exports,e,t){n.o(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:t})},n.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="utJIRWV0")}({"+/gOYE00":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;l(t("nXSFNspX"));var n=l(t("ii0bleBb")),r=l(t("ivGQtwpr")),i=l(t("PcYM+wZ7")),o=t("DlhHh5IY"),a=l(t("y48dxWbc")),s=l(t("y6gqf0G9"));function l(e){return e&&e.__esModule?e:{default:e}}var u=a.default.get("Dashboards").DashboardsActions,c=(0,i.default)({displayName:"EditDashboardModal",propTypes:{action:n.default.oneOf(["create","edit"]),description:n.default.string,id:n.default.string,onSaved:n.default.func,title:n.default.string},getInitialState:function(){return{id:this.props.id,description:this.props.description,title:this.props.title}},getDefaultProps:function(){return{action:"create"}},render:function(){var e=this;return r.default.createElement(s.default,{ref:function(t){e.modal=t},title:this._isCreateModal()?"New Dashboard":"Edit Dashboard ".concat(this.props.title),onSubmitForm:this._save,submitButtonText:"Save"},r.default.createElement("fieldset",null,r.default.createElement(o.Input,{id:"".concat(this.props.id,"-title"),type:"text",label:"Title:",onChange:this._onTitleChange,value:this.state.title,autoFocus:!0,required:!0}),r.default.createElement(o.Input,{id:"".concat(this.props.id,"-description"),type:"text",label:"Description:",name:"Description",onChange:this._onDescriptionChange,value:this.state.description,required:!0})))},close:function(){this.modal.close()},open:function(){this.modal.open()},_save:function(){var e=this;this._isCreateModal()?u.create(this.state.title,this.state.description).then(function(t){e.close(),"function"==typeof e.props.onSaved&&e.props.onSaved(t),e.setState(e.getInitialState())}):u.update(this.state).then(function(){e.close(),"function"==typeof e.props.onSaved&&e.props.onSaved(e.state.id)})},_onDescriptionChange:function(e){this.setState({description:e.target.value})},_onTitleChange:function(e){this.setState({title:e.target.value})},_isCreateModal:function(){return"create"===this.props.action}});exports.default=c,e.exports=exports.default},"+0Bb/KYn":function(e,exports,t){"use strict";(function(n){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var r=m(t("ii0bleBb")),i=m(t("ivGQtwpr")),o=(m(t("vU3dbCc2")),m(t("Ept3tno1"))),a=m(t("fcmzsUuD")),s=m(t("zUaY8H/I")),l=m(t("umYlv8lo")),u=m(t("4N9gACfh")),c=m(t("Mcd/Xly4")),f=m(t("tCwVgAf4")),d=m(t("Q7GA7kux")),p=m(t("X5aBUarr")),h=m(t("nXSFNspX"));function m(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var n=0;n'.concat(t,"
").concat(r,"
")})}),(0,h.default)(t).tooltip({selector:'[rel="tooltip"]',container:"body",placement:"auto",delay:{show:300,hide:100},html:!0})}),_(y(n),"renderHistogram",function(){var e=n._graph,t=n.props.config.xAxis||"Time",r=n.props.config.yAxis||"Messages";n.histogram=s.default.barChart(e),n.histogram.width(n.props.width).height(n.props.height).margins({left:50,right:15,top:10,bottom:30}).dimension(n.dimension).group(n.group).x(l.default.time.scale()).elasticX(!0).elasticY(!0).centerBar(!0).renderHorizontalGridLines(!0).brushOn(!1).xAxisLabel(t).yAxisLabel(r).renderTitle(!1).colors(d.default.glColourPalette()),n.props.interactive&&n._renderTooltip(n.histogram,e),n.histogram.on("postRender",n.props.onRenderComplete),n.histogram.xAxis().ticks(p.default.customTickInterval()).tickFormat(p.default.customDateTimeFormat()),n.histogram.yAxis().ticks(3).tickFormat(function(e){return e%1==0?l.default.format("s")(e):null}),n.histogram.render()}),n.triggerRender=!0,n.histogramData=(0,a.default)(),n.dimension=n.histogramData.dimension(function(e){return e.x}),n.group=n.dimension.group().reduceSum(function(e){return e.y}),n.state={dataPoints:[]},n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(t,i["default"].Component),n=t,(r=[{key:"componentDidMount",value:function(){this.disableTransitions=s.default.disableTransitions,s.default.disableTransitions=!this.props.interactive,this.renderHistogram(),this._updateData(this.props.data)}},{key:"componentWillReceiveProps",value:function(e){(0,u.default)(this.props,e)||(e.height===this.props.height&&e.width===this.props.width||this._resizeVisualization(e.width,e.height),this._updateData(e.data))}},{key:"componentWillUnmount",value:function(){s.default.disableTransitions=this.disableTransitions}},{key:"render",value:function(){var e=this;return i.default.createElement("div",{ref:function(t){e._graph=t},id:"visualization-".concat(this.props.id),className:"histogram"})}}])&&v(n.prototype,r),o&&v(n,o),t}();_(x,"propTypes",{id:r.default.string.isRequired,data:r.default.object.isRequired,config:r.default.object.isRequired,computationTimeRange:r.default.object,height:r.default.number,width:r.default.number,interactive:r.default.bool,onRenderComplete:r.default.func,keyTitleRenderer:r.default.func,valueTitleRenderer:r.default.func}),_(x,"defaultProps",{interactive:!0,onRenderComplete:function(){},keyTitleRenderer:function(e){return''.concat(new c.default(e.x).toString(c.default.Formats.COMPLETE),"")},valueTitleRenderer:function(e){return"".concat((0,o.default)(e.y).format("0,0")," messages")}});var E=x;exports.default=E,e.exports=exports.default}).call(this,t("aY11sVfy"))},"+2eRP72g":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=u(t("ivGQtwpr")),r=u(t("ii0bleBb")),i=u(t("NV2C8ebe")),o=u(t("c59+uKGP")),a=t("os2pWP01"),s=u(t("B0I5DBk0")),l=u(t("AphoqUmb"));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p(e,t){for(var n=0;n0&&this.renderClearSelectionItem(),n.default.createElement(o.default,{className:l.default.scrollableList},n.default.createElement(a.ListGroup,null,w.map(function(e){return n.default.createElement(a.ListGroupItem,{key:e,onClick:v?function(){}:r.handleItemSelection(e),active:_.includes(e),disabled:v},c(e))}))));return n.default.createElement(a.OverlayTrigger,{ref:function(e){r.overlay=e},trigger:m,placement:h,overlay:E,rootClose:!0},g)}}])&&p(r.prototype,u),b&&p(r,b),t}();v(b,"propTypes",{id:r.default.string.isRequired,placement:r.default.oneOf(["top","right","bottom","left"]),title:r.default.string.isRequired,triggerNode:r.default.node.isRequired,triggerAction:r.default.oneOf(["click","hover","focus"]),items:r.default.arrayOf(r.default.string),itemFormatter:r.default.func,multiple:r.default.bool,selectedItems:r.default.arrayOf(r.default.string),onItemSelect:r.default.func.isRequired,displayDataFilter:r.default.bool,filterPlaceholder:r.default.string,clearSelectionText:r.default.string,disabled:r.default.bool}),v(b,"defaultProps",{placement:"bottom",triggerAction:"click",items:[],itemFormatter:function(e){return e},multiple:!1,selectedItems:[],displayDataFilter:!0,filterPlaceholder:"Type to filter",clearSelectionText:"Clear selection",disabled:!1});var y=b;exports.default=y,e.exports=exports.default},"+3PXrhfU":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=t("4bh9nC3d"),r=o(t("KX2Ezx4E")),i=o(t("e7adz9PD"));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)(n.NavDropdown).withConfig({displayName:"NavDropdown",componentId:"sc-1ri46xq-0"})(["",";"],(0,i.default)());exports.default=a,e.exports=exports.default},"+8zy/hiB":function(e,exports){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o=t||n<0||v&&e-m>=f}function _(){var e=r();if(w(e))return x(e);p=setTimeout(_,function(e){var n=t-(e-h);return v?s(n,f-(e-m)):n}(e))}function x(e){return p=void 0,b&&u?y(e):(u=c=void 0,d)}function E(){var e=r(),n=w(e);if(u=arguments,c=this,h=e,n){if(void 0===p)return function(e){return m=e,p=setTimeout(_,t),g?y(e):d}(h);if(v)return clearTimeout(p),p=setTimeout(_,t),y(h)}return void 0===p&&(p=setTimeout(_,t)),d}return t=i(t)||0,n(l)&&(g=!!l.leading,f=(v="maxWait"in l)?a(i(l.maxWait)||0,t):f,b="trailing"in l?!!l.trailing:b),E.cancel=function(){void 0!==p&&clearTimeout(p),m=0,u=h=c=p=void 0},E.flush=function(){return void 0===p?d:x(r())},E}},"+YTrajxW":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("oDdu0vts"),r=t("PNF6DnrT"),i=function(){function e(e){this.isDisposed=!1,this.action=n(e)?e:r}return e.isDisposable=function(e){return e&&n(e.dispose)},e._fixup=function(t){return e.isDisposable(t)?t:e.empty},e.create=function(t){return new e(t)},e.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)},e.empty={dispose:r},e}();exports.Disposable=i},"+YvFKRFY":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=l(t("ii0bleBb")),r=l(t("ivGQtwpr")),i=l(t("H/eHg5XM")),o=t("NV2C8ebe"),a=t("os2pWP01"),s=l(t("Um3TppPK"));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return(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})(e)}function c(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["breakpoint","breakpoints","cols","layouts","onBreakpointChange","onLayoutChange","onWidthChange"]));return r.default.createElement(l.default,n({},t,{onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))},t}(r.default.Component);d.propTypes={breakpoint:i.default.string,breakpoints:i.default.object,cols:i.default.object,layouts:function(e,t){if("[object Object]"!==f(e[t]))throw new Error("Layout property must be an object. Received: "+f(e[t]));Object.keys(e[t]).forEach(function(t){if(!(t in e.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,a.validateLayout)(e.layouts[t],"layouts."+t)})},width:i.default.number.isRequired,onBreakpointChange:i.default.func,onLayoutChange:i.default.func,onWidthChange:i.default.func},d.defaultProps={breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},layouts:{},onBreakpointChange:a.noop,onLayoutChange:a.noop,onWidthChange:a.noop},exports.default=d},"+rc4jw0x":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=l;var n=s(t("ivGQtwpr")),r=s(t("i0QD5uKp")),i=s(t("5+TFW7FV")),o=t("NZ9sTRz8"),a=t("iqTv9aq3");function s(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.classNames,r=e.month,s=e.months,l=e.fixedWeeks,u=e.captionElement,c=e.weekdayElement,f=e.locale,d=e.localeUtils,p=e.weekdaysLong,h=e.weekdaysShort,m=e.firstDayOfWeek,g=e.onCaptionClick,v=e.children,b=e.footer,y=e.showWeekNumbers,w=e.onWeekClick,_={date:r,classNames:t,months:s,localeUtils:d,locale:f,onClick:g?function(e){return g(r,e)}:void 0},x=n.default.isValidElement(u)?n.default.cloneElement(u,_):n.default.createElement(u,_),E=(0,o.getWeekArray)(r,m,l);return n.default.createElement("div",{className:t.month,role:"grid"},x,n.default.createElement(i.default,{classNames:t,weekdaysShort:h,weekdaysLong:p,firstDayOfWeek:m,showWeekNumbers:y,locale:f,localeUtils:d,weekdayElement:c}),n.default.createElement("div",{className:t.body,role:"rowgroup"},E.map(function(e){var i=void 0;return y&&(i=(0,a.getWeekNumber)(e[0])),n.default.createElement("div",{key:e[0].getTime(),className:t.week,role:"row"},y&&n.default.createElement("div",{className:t.weekNumber,tabIndex:0,role:"gridcell",onClick:function(t){return w(i,e,t)}},i),e.map(function(e){return v(e,r)}))})),b&&n.default.createElement("div",{className:t.footer},b))}l.propTypes={classNames:r.default.shape({month:r.default.string.isRequired,body:r.default.string.isRequired,week:r.default.string.isRequired}).isRequired,month:r.default.instanceOf(Date).isRequired,months:r.default.arrayOf(r.default.string),fixedWeeks:r.default.bool,captionElement:r.default.oneOfType([r.default.element,r.default.func,r.default.instanceOf(n.default.Component)]).isRequired,weekdayElement:r.default.oneOfType([r.default.element,r.default.func,r.default.instanceOf(n.default.Component)]),footer:r.default.node,showWeekNumbers:r.default.bool,onWeekClick:r.default.func,locale:r.default.string.isRequired,localeUtils:r.default.localeUtils.isRequired,weekdaysLong:r.default.arrayOf(r.default.string),weekdaysShort:r.default.arrayOf(r.default.string),firstDayOfWeek:r.default.number.isRequired,onCaptionClick:r.default.func,children:r.default.func.isRequired}},"+udoJibM":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r=(n=t("7wHi4ydR"))&&n.__esModule?n:{default:n};var i=Object.freeze({COPY_INPUT:"copy_input",GROK:"grok",JSON:"json",REGEX:"regex",REGEX_REPLACE:"regex_replace",SPLIT_AND_INDEX:"split_and_index",SUBSTRING:"substring",LOOKUP_TABLE:"lookup_table"}),o={ConverterTypes:Object.freeze({NUMERIC:"numeric",DATE:"date",HASH:"hash",SPLIT_AND_COUNT:"split_and_count",IP_ANONYMIZER:"ip_anonymizer",SYSLOG_PRI_LEVEL:"syslog_pri_level",SYSLOG_PRI_FACILITY:"syslog_pri_facility",TOKENIZER:"tokenizer",CSV:"csv",LOWERCASE:"lowercase",UPPERCASE:"uppercase",FLEXDATE:"flexdate",LOOKUP_TABLE:"lookup_table"}),ExtractorTypes:i,EXTRACTOR_TYPES:Object.keys(i).map(function(e){return e.toLocaleLowerCase()}),getNewExtractorRoutes:function(e,t,n,i,o){var a={};return this.EXTRACTOR_TYPES.forEach(function(s){a[s]=r.default.new_extractor(e,t,s,n,i,o)}),a},getReadableExtractorTypeName:function(e){switch(e){case i.COPY_INPUT:return"Copy input";case i.GROK:return"Grok pattern";case i.JSON:return"JSON";case i.REGEX:return"Regular expression";case i.REGEX_REPLACE:return"Replace with regular expression";case i.SPLIT_AND_INDEX:return"Split & Index";case i.SUBSTRING:return"Substring";case i.LOOKUP_TABLE:return"Lookup Table";default:return e}},getReadableConverterTypeName:function(e){switch(e){case this.ConverterTypes.NUMERIC:return"Numeric";case this.ConverterTypes.DATE:return"Date";case this.ConverterTypes.FLEXDATE:return"Flexible Date";case this.ConverterTypes.HASH:return"Hash";case this.ConverterTypes.LOWERCASE:return"Lowercase";case this.ConverterTypes.UPPERCASE:return"Uppercase";case this.ConverterTypes.TOKENIZER:return"Key = Value Pairs To Fields";case this.ConverterTypes.CSV:return"CSV To Fields";case this.ConverterTypes.SPLIT_AND_COUNT:return"Split & Count";case this.ConverterTypes.IP_ANONYMIZER:return"Anonymize IPv4 Addresses";case this.ConverterTypes.SYSLOG_PRI_LEVEL:return"Syslog Level From PRI";case this.ConverterTypes.SYSLOG_PRI_FACILITY:return"Syslog Facility From PRI";case this.ConverterTypes.LOOKUP_TABLE:return"Lookup Table";default:return e}},getEffectiveConfiguration:function(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}};exports.default=o,e.exports=exports.default},"+x639LiG":function(e,exports){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},"/3DAzg/M":function(e,exports,t){e.exports=t.p+"7eafa07ac408252e3d8ae370ef9fae9a.js"},"/GV+bRMH":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=s(t("ii0bleBb")),r=s(t("ivGQtwpr")),i=t("DlhHh5IY"),o=t("J6m01YZl"),a=s(t("fZ4OAAo6"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(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})(e)}function u(e,t){for(var n=0;ne))return n[u];l=u-1}}var f=e-t[a=Math.max(0,l)],d=f*f;return n[a]+r[a]*f+i[a]*d+o[a]*f*d}}]),e}();exports.default=r},"/RLM/Xkt":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("HnBp4QXq");exports.setClientOffset=function(e,t){return{type:n.INIT_COORDS,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}},"/ReHozVC":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r=(n=t("KWzh15eC"))&&n.__esModule?n:{default:n};t("jswCRRRc");var i={isValidDuration:function(e,t){return t(r.default.duration(e).asMilliseconds(),e)},durationStyle:function(e,t,n){var r=n;return r||(r="error"),this.isValidDuration(e,t)?null:r},formatDuration:function(e,t,n){var i=n;return i||(i="error"),this.isValidDuration(e,t)?r.default.duration(e).format():i},humanizeDuration:function(e,t,n){var i=n;return i||(i="error"),this.isValidDuration(e,t)?r.default.duration(e).humanize():i}};exports.default=i,e.exports=exports.default},"/STJr0I1":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(t("ivGQtwpr")),r=f(t("ii0bleBb")),i=t("cMYxQPCU"),o=f(t("KX2Ezx4E")),a=t("tUPJ+u4I"),s=t("os2pWP01"),l=f(t("B0I5DBk0")),u=f(t("vQSmUFCW")),c=t("NV2C8ebe");function f(e){return e&&e.__esModule?e:{default:e}}function d(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?O(e):t}function M(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t-1}function D(e){return R(e)?window.pageYOffset:e.scrollTop}function F(e,t){R(e)?window.scrollTo(0,t):e.scrollTop=t}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:A,i=D(e),o=t-i,a=10,s=0;!function t(){var l,u=o*((l=(l=s+=a)/n-1)*l*l+1)+i;F(e,u),s=p)return{placement:"bottom",maxHeight:t};if(E>=p&&!a)return o&&I(l,S,160),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&_>=r)return o&&I(l,S,160),{placement:"bottom",maxHeight:a?_-b:E-b};if("auto"===i||a){var O=t,k=a?w:x;return k>=r&&(O=Math.min(k-b-s.controlHeight,t)),{placement:"top",maxHeight:O}}if("bottom"===i)return F(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(x>=p&&!a)return o&&I(l,C,160),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&w>=r){var M=t;return(!a&&x>=r||a&&w>=r)&&(M=a?w-y:x-y),o&&I(l,C,160),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}var z=function(e){return"auto"===e?"bottom":e},B=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,i=new Array(r),o=0;o-1}},re=function(e){return i.a.createElement("span",w({className:Object(a.a)({label:"a11yText",zIndex:9999,border:0,clip:"rect(1px, 1px, 1px, 1px)",height:1,width:1,position:"absolute",overflow:"hidden",padding:0,whiteSpace:"nowrap",backgroundColor:"red",color:"blue"})},e))},ie=function(e){function t(){return g(this,t),k(this,E(t).apply(this,arguments))}return x(t,r["Component"]),b(t,[{key:"render",value:function(){var e=this.props,t=(e.in,e.out,e.onExited,e.appear,e.enter,e.exit,e.innerRef),n=(e.emotion,C(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return i.a.createElement("input",w({ref:t},n,{className:Object(a.a)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"})}))}}]),t}(),oe=function(e){function t(){return g(this,t),k(this,E(t).apply(this,arguments))}return x(t,r["Component"]),b(t,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(s.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),t}(),ae=["boxSizing","height","overflow","paddingRight","position"],se={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function le(e){e.preventDefault()}function ue(e){e.stopPropagation()}function ce(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function fe(){return"ontouchstart"in window||navigator.maxTouchPoints}var de=!("undefined"==typeof window||!window.document||!window.document.createElement),pe=0,he=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,i=new Array(r),o=0;o0,h=c-f-u,m=!1;h>t&&n.isBottom&&(o&&o(e),n.isBottom=!1),p&&n.isTop&&(s&&s(e),n.isTop=!1),p&&t>h?(i&&!n.isBottom&&i(e),d.scrollTop=c,m=!0,n.isBottom=!0):!p&&-t>u&&(a&&!n.isTop&&a(e),d.scrollTop=0,m=!0,n.isTop=!0),m&&n.cancelScroll(e)}),y(O(O(n)),"onWheel",function(e){n.handleEventDelta(e,e.deltaY)}),y(O(O(n)),"onTouchStart",function(e){n.touchStart=e.changedTouches[0].clientY}),y(O(O(n)),"onTouchMove",function(e){var t=n.touchStart-e.changedTouches[0].clientY;n.handleEventDelta(e,t)}),y(O(O(n)),"getScrollTarget",function(e){n.scrollTarget=e}),n}return x(t,r["Component"]),b(t,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&(e.scrollHeight<=e.clientHeight||("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1)))}},{key:"stopListening",value:function(e){e.scrollHeight<=e.clientHeight||("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return i.a.createElement(oe,{innerRef:this.getScrollTarget},this.props.children)}}]),t}(),ve=function(e){function t(){return g(this,t),k(this,E(t).apply(this,arguments))}return x(t,r["Component"]),b(t,[{key:"render",value:function(){var e=this.props,t=e.isEnabled,n=C(e,["isEnabled"]);return t?i.a.createElement(ge,n):this.props.children}}]),t}();y(ve,"defaultProps",{isEnabled:!0});var be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,i=t.label,o=t.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(i||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},ye=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},we=function(e){return!!e.isDisabled},_e=function(e){function t(){return g(this,t),k(this,E(t).apply(this,arguments))}return x(t,r["Component"]),b(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.cx,o=e.isMulti,s=e.getStyles,l=e.hasValue;return i.a.createElement("div",{className:r(Object(a.a)(s("valueContainer",this.props)),{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":l},n)},t)}}]),t}(),xe=function(e){var t=e.size,n=C(e,["size"]);return i.a.createElement("svg",w({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",className:Object(a.a)({display:"inline-block",fill:"currentColor",lineHeight:1,stroke:"currentColor",strokeWidth:0})},n))},Ee=function(e){return i.a.createElement(xe,w({size:20},e),i.a.createElement("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Se=function(e){return i.a.createElement(xe,w({size:20},e),i.a.createElement("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ce=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorContainer",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?i.neutral80:i.neutral40}}},Oe=Ce,ke=Ce,Me=!1,Ae=function(e){var t=e.color,n=e.delay,r=e.offset;return i.a.createElement("span",{className:Object(a.a)({animationDuration:"1s",animationDelay:"".concat(n,"ms"),animationIterationCount:"infinite",animationName:"react-select-loading-indicator",animationTimingFunction:"ease-in-out",backgroundColor:t,borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":null,height:"1em",verticalAlign:"top",width:"1em"})})},Te=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,s=e.isFocused,l=e.isRtl,u=e.theme.colors,c=s?u.neutral80:u.neutral20;return Me||(Object(a.b)("@keyframes ","react-select-loading-indicator","{0%,80%,100%{opacity:0;}40%{opacity:1;}};"),Me=!0),i.a.createElement("div",w({},o,{className:n(Object(a.a)(r("loadingIndicator",e)),{indicator:!0,"loading-indicator":!0},t)}),i.a.createElement(Ae,{color:c,delay:0,offset:l}),i.a.createElement(Ae,{color:c,delay:160,offset:!0}),i.a.createElement(Ae,{color:c,delay:320,offset:!l}))};Te.defaultProps={size:4};var Pe=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},je=function(e){var t=e.children,n=e.innerProps;return i.a.createElement("div",n,t)},Re=je,De=je,Fe=function(e){function t(){return g(this,t),k(this,E(t).apply(this,arguments))}return x(t,r["Component"]),b(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.innerProps;return i.a.createElement("div",n,t||i.a.createElement(Ee,{size:14}))}}]),t}(),Ie=function(e){function t(){return g(this,t),k(this,E(t).apply(this,arguments))}return x(t,r["Component"]),b(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.components,o=e.cx,s=e.data,l=e.getStyles,u=e.innerProps,c=e.isDisabled,f=e.removeProps,d=e.selectProps,p=r.Container,h=r.Label,m=r.Remove,g=_({className:o(Object(a.a)(l("multiValue",this.props)),{"multi-value":!0,"multi-value--is-disabled":c},n)},u),v={className:o(Object(a.a)(l("multiValueLabel",this.props)),{"multi-value__label":!0},n)},b=_({className:o(Object(a.a)(l("multiValueRemove",this.props)),{"multi-value__remove":!0},n)},f);return i.a.createElement(p,{data:s,innerProps:g,selectProps:d},i.a.createElement(h,{data:s,innerProps:v,selectProps:d},t),i.a.createElement(m,{data:s,innerProps:b,selectProps:d}))}}]),t}();y(Ie,"defaultProps",{cropWithEllipsis:!0});var Le={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.innerProps;return i.a.createElement("div",w({},s,{className:r(Object(a.a)(o("clearIndicator",e)),{indicator:!0,"clear-indicator":!0},n)}),t||i.a.createElement(Ee,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,s=e.isDisabled,l=e.isFocused,u=e.innerRef,c=e.innerProps,f=e.menuIsOpen;return i.a.createElement("div",w({ref:u,className:n(Object(a.a)(r("control",e)),{control:!0,"control--is-disabled":s,"control--is-focused":l,"control--menu-is-open":f},o)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.innerProps;return i.a.createElement("div",w({},s,{className:r(Object(a.a)(o("dropdownIndicator",e)),{indicator:!0,"dropdown-indicator":!0},n)}),t||i.a.createElement(Se,null))},DownChevron:Se,CrossIcon:Ee,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.Heading,l=e.headingProps,u=e.label,c=e.theme,f=e.selectProps;return i.a.createElement("div",{className:r(Object(a.a)(o("group",e)),{group:!0},n)},i.a.createElement(s,w({},l,{selectProps:f,theme:c,getStyles:o,cx:r}),u),i.a.createElement("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,s=(e.selectProps,C(e,["className","cx","getStyles","theme","selectProps"]));return i.a.createElement("div",w({className:n(Object(a.a)(r("groupHeading",_({theme:o},s))),{"group-heading":!0},t)},s))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return i.a.createElement("div",{className:r(Object(a.a)(o("indicatorsContainer",e)),{indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return i.a.createElement("span",w({},o,{className:n(Object(a.a)(r("indicatorSeparator",e)),{"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,s=e.isHidden,l=e.isDisabled,u=e.theme,c=(e.selectProps,C(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return i.a.createElement("div",{className:Object(a.a)(r("input",_({theme:u},c)))},i.a.createElement(p.a,w({className:n(null,{input:!0},t),inputRef:o,inputStyle:Pe(s),disabled:l},c)))},LoadingIndicator:Te,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.innerRef,l=e.innerProps,u=r(Object(a.a)(o("menu",e)),{menu:!0},n);return i.a.createElement("div",w({className:u},l,{ref:s}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.isMulti,l=e.innerRef;return i.a.createElement("div",{className:r(Object(a.a)(o("menuList",e)),{"menu-list":!0,"menu-list--is-multi":s},n),ref:l},t)},MenuPortal:V,LoadingMessage:q,NoOptionsMessage:G,MultiValue:Ie,MultiValueContainer:Re,MultiValueLabel:De,MultiValueRemove:Fe,Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.isDisabled,l=e.isFocused,u=e.isSelected,c=e.innerRef,f=e.innerProps;return i.a.createElement("div",w({ref:c,className:r(Object(a.a)(o("option",e)),{option:!0,"option--is-disabled":s,"option--is-focused":l,"option--is-selected":u},n)},f),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.innerProps;return i.a.createElement("div",w({className:r(Object(a.a)(o("placeholder",e)),{placeholder:!0},n)},s),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.innerProps,l=e.isDisabled,u=e.isRtl;return i.a.createElement("div",w({className:r(Object(a.a)(o("container",e)),{"--is-disabled":l,"--is-rtl":u},n)},s),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,s=e.isDisabled,l=e.innerProps;return i.a.createElement("div",w({className:r(Object(a.a)(o("singleValue",e)),{"single-value":!0,"single-value--is-disabled":s},n)},l),t)},ValueContainer:_e},Ne=function(e){return _({},Le,e.components)},ze={clearIndicator:ke,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,i=r.colors,o=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?i.neutral5:i.neutral0,borderColor:t?i.neutral10:n?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?i.primary:i.neutral30}}},dropdownIndicator:Oe,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,i=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:W,menu:function(e){var t,n=e.placement,r=e.theme,i=r.borderRadius,o=r.spacing,a=r.colors;return y(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),y(t,"backgroundColor",a.neutral0),y(t,"borderRadius",i),y(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),y(t,"marginBottom",o.menuGutter),y(t,"marginTop",o.menuGutter),y(t,"position","absolute"),y(t,"width","100%"),y(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,i=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:i?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,i=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&i.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},noOptionsMessage:U,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,i=e.theme,o=i.spacing,a=i.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:r?a.primary:a.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};function Be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=_({},e);return Object.keys(t).forEach(function(r){e[r]?n[r]=function(n,i){return t[r](e[r](n,i),i)}:n[r]=t[r]}),n}var He={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ue={backspaceRemovesValue:!0,blurInputOnSelect:L(),captureMenuScroll:!L(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:ne(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:we,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},$e=1,We=function(e){function t(e){var n;g(this,t),y(O(O(n=k(this,E(t).call(this,e)))),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,isComposing:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),y(O(O(n)),"blockOptionHover",!1),y(O(O(n)),"clearFocusValueOnUpdate",!1),y(O(O(n)),"commonProps",void 0),y(O(O(n)),"components",void 0),y(O(O(n)),"hasGroups",!1),y(O(O(n)),"initialTouchX",0),y(O(O(n)),"initialTouchY",0),y(O(O(n)),"inputIsHiddenAfterUpdate",void 0),y(O(O(n)),"instancePrefix",""),y(O(O(n)),"openAfterFocus",!1),y(O(O(n)),"scrollToFocusedOptionOnUpdate",!1),y(O(O(n)),"userIsDragging",void 0),y(O(O(n)),"controlRef",null),y(O(O(n)),"getControlRef",function(e){n.controlRef=e}),y(O(O(n)),"focusedOptionRef",null),y(O(O(n)),"getFocusedOptionRef",function(e){n.focusedOptionRef=e}),y(O(O(n)),"menuListRef",null),y(O(O(n)),"getMenuListRef",function(e){n.menuListRef=e}),y(O(O(n)),"inputRef",null),y(O(O(n)),"getInputRef",function(e){n.inputRef=e}),y(O(O(n)),"cacheComponents",function(e){n.components=Ne({components:e})}),y(O(O(n)),"focus",n.focusInput),y(O(O(n)),"blur",n.blurInput),y(O(O(n)),"onChange",function(e,t){var r=n.props;(0,r.onChange)(e,_({},t,{name:r.name}))}),y(O(O(n)),"setValue",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,i=n.props,o=i.closeMenuOnSelect,a=i.isMulti;n.onInputChange("",{action:"set-value"}),o&&(n.inputIsHiddenAfterUpdate=!a,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})}),y(O(O(n)),"selectOption",function(e){var t=n.props,r=t.blurInputOnSelect,i=t.isMulti,o=n.state.selectValue;if(i)if(n.isOptionSelected(e,o)){var a=n.getOptionValue(e);n.setValue(o.filter(function(e){return n.getOptionValue(e)!==a}),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(M(o),[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()}),y(O(O(n)),"removeValue",function(e){var t=n.state.selectValue,r=n.getOptionValue(e);n.onChange(t.filter(function(e){return n.getOptionValue(e)!==r}),{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()}),y(O(O(n)),"clearValue",function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})}),y(O(O(n)),"popValue",function(){var e=n.state.selectValue,t=e[e.length-1];n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(e.slice(0,e.length-1),{action:"pop-value",removedValue:t})}),y(O(O(n)),"getOptionLabel",function(e){return n.props.getOptionLabel(e)}),y(O(O(n)),"getOptionValue",function(e){return n.props.getOptionValue(e)}),y(O(O(n)),"getStyles",function(e,t){var r=ze[e](t);r.boxSizing="border-box";var i=n.props.styles[e];return i?i(r,t):r}),y(O(O(n)),"getElementId",function(e){return"".concat(n.instancePrefix,"-").concat(e)}),y(O(O(n)),"getActiveDescendentId",function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,i=t.focusedOption;if(i&&e){var o=r.focusable.indexOf(i),a=r.render[o];return a&&a.key}}),y(O(O(n)),"announceAriaLiveSelection",function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:ye(t,r)})}),y(O(O(n)),"announceAriaLiveContext",function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:be(t,_({},r,{label:n.props["aria-label"]}))})}),y(O(O(n)),"onMenuMouseDown",function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())}),y(O(O(n)),"onMenuMouseMove",function(e){n.blockOptionHover=!1}),y(O(O(n)),"onControlMouseDown",function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&e.preventDefault()}),y(O(O(n)),"onDropdownIndicatorMouseDown",function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,i=t.menuIsOpen;n.focusInput(),i?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}}),y(O(O(n)),"onClearIndicatorMouseDown",function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,setTimeout(function(){return n.focusInput()}))}),y(O(O(n)),"onScroll",function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&R(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()}),y(O(O(n)),"onCompositionStart",function(){n.setState({isComposing:!0})}),y(O(O(n)),"onCompositionEnd",function(){n.setState({isComposing:!1})}),y(O(O(n)),"onTouchStart",function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)}),y(O(O(n)),"onTouchMove",function(e){var t=e.touches.item(0);if(t){var r=Math.abs(t.clientX-n.initialTouchX),i=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||i>5}}),y(O(O(n)),"onTouchEnd",function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)}),y(O(O(n)),"onControlTouchEnd",function(e){n.userIsDragging||n.onControlMouseDown(e)}),y(O(O(n)),"onClearIndicatorTouchEnd",function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)}),y(O(O(n)),"onDropdownIndicatorTouchEnd",function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)}),y(O(O(n)),"handleInputChange",function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()}),y(O(O(n)),"onInputFocus",function(e){var t=n.props,r=t.isSearchable,i=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:i}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1}),y(O(O(n)),"onInputBlur",function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))}),y(O(O(n)),"onOptionHover",function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})}),y(O(O(n)),"shouldHideSelectedOptions",function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t}),y(O(O(n)),"onKeyDown",function(e){var t=n.props,r=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,f=t.tabSelectsValue,d=t.openMenuOnFocus,p=n.state,h=p.isComposing,m=p.focusedOption,g=p.focusedValue,v=p.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;n.focusValue("previous");break;case"ArrowRight":if(!r||a)return;n.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)n.removeValue(g);else{if(!i)return;r?n.popValue():s&&n.clearValue()}break;case"Tab":if(h)return;if(e.shiftKey||!u||!f||!m||d&&n.isOptionSelected(m,v))return;n.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(u){if(!m)return;if(h)return;n.selectOption(m);break}return;case"Escape":u?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):s&&o&&n.clearValue();break;case" ":if(a)return;if(!u){n.openMenu("first");break}if(!m)return;n.selectOption(m);break;case"ArrowUp":u?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":u?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!u)return;n.focusOption("pageup");break;case"PageDown":if(!u)return;n.focusOption("pagedown");break;case"Home":if(!u)return;n.focusOption("first");break;case"End":if(!u)return;n.focusOption("last");break;default:return}e.preventDefault()}});var r=e.value;n.cacheComponents=Object(o.default)(n.cacheComponents,X).bind(O(O(n))),n.cacheComponents(e.components),n.instancePrefix="react-select-"+(n.props.instanceId||++$e);var i=j(r),a=n.buildMenuOptions(e,i);return n.state.menuOptions=a,n.state.selectValue=i,n}return x(t,r["Component"]),b(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,i=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.inputValue!==i){var o=j(e.value),a=this.buildMenuOptions(e,o),s=this.getNextFocusedValue(o),l=this.getNextFocusedOption(a.focusable);this.setState({menuOptions:a,selectValue:o,focusedOption:l,focusedValue:s})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,i,o,a=this.props,s=a.isDisabled,l=a.menuIsOpen,u=this.state.isFocused;(u&&!s&&e.isDisabled||u&&l&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),o=n.offsetHeight/3,i.bottom+o>r.bottom?F(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+o,t.scrollHeight)):i.top-o-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:n.focusable[a]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,i=this.state,o=i.selectValue,a=i.focusedValue;if(n){this.setState({focusedOption:null});var s=o.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=o.length-1,u=-1;if(o.length){switch(e){case"previous":u=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,r=n.focusedOption,i=n.menuOptions,o=i.focusable;if(o.length){var a=0,s=o.indexOf(r);r||(s=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?a=s>0?s-1:o.length-1:"down"===e?a=(s+1)%o.length:"pageup"===e?(a=s-t)<0&&(a=0):"pagedown"===e?(a=s+t)>o.length-1&&(a=o.length-1):"last"===e&&(a=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[a],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:we(o[a])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(He):_({},He,this.props.theme):He}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,i=this.props,o=i.classNamePrefix,a=i.isMulti,s=i.isRtl,l=i.options,u=this.state.selectValue,c=this.hasValue();return{cx:P.bind(null,o),clearValue:e,getStyles:t,getValue:function(){return u},hasValue:c,isMulti:a,isRtl:s,options:l,selectOption:r,setValue:n,selectProps:i,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some(function(e){return n.getOptionValue(e)===r})}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"buildMenuOptions",value:function(e,t){var n=this,r=e.inputValue,i=void 0===r?"":r,o=e.options,a=function(e,r){var o=n.isOptionDisabled(e,t),a=n.isOptionSelected(e,t),s=n.getOptionLabel(e),l=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&a||!n.filterOption({label:s,value:l,data:e},i))){var u=o?void 0:function(){return n.onOptionHover(e)},c=o?void 0:function(){return n.selectOption(e)},f="".concat(n.getElementId("option"),"-").concat(r);return{innerProps:{id:f,onClick:c,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:e,isDisabled:o,isSelected:a,key:f,label:s,type:"option",value:l}}};return o.reduce(function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var i=t.options.map(function(t,n){var i=a(t,"".concat(r,"-").concat(n));return i&&e.focusable.push(t),i}).filter(Boolean);if(i.length){var o="".concat(n.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:o,data:t,options:i})}}else{var s=a(t,"".concat(r));s&&(e.render.push(s),e.focusable.push(t))}return e},{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,i=e.focusedOption,o=this.props,a=o.options,s=o.menuIsOpen,l=o.inputValue,u=o.screenReaderStatus,c=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",f=i&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:i,getOptionLabel:this.getOptionLabel,options:a}):"",d=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:l,screenReaderMessage:u({count:this.countOptions()})});return"".concat(c," ").concat(f," ").concat(d," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,s=this.components.Input,l=this.state.inputIsHidden,u=r||this.getElementId("input");if(!n)return i.a.createElement(ie,{id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:A,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,value:""});var c={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},f=this.commonProps,d=f.cx,p=f.theme,h=f.selectProps;return i.a.createElement(s,w({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:u,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:h,spellCheck:"false",tabIndex:a,theme:p,type:"text",value:o},c))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,f=c.controlShouldRenderValue,d=c.isDisabled,p=c.isMulti,h=c.inputValue,m=c.placeholder,g=this.state,v=g.selectValue,b=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!f)return h?null:i.a.createElement(l,w({},u,{key:"placeholder",isDisabled:d,isFocused:y}),m);if(p)return v.map(function(t){var s=t===b;return i.a.createElement(n,w({},u,{components:{Container:r,Label:o,Remove:a},isFocused:s,isDisabled:d,key:e.getOptionValue(t),removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))});if(h)return null;var _=v[0];return i.a.createElement(s,w({},u,{data:_,isDisabled:d}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return i.a.createElement(e,w({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!e||!o)return null;return i.a.createElement(e,w({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return i.a.createElement(n,w({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return i.a.createElement(e,w({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,f=this.commonProps,d=this.state,p=d.focusedOption,h=d.menuOptions,m=this.props,g=m.captureMenuScroll,v=m.inputValue,b=m.isLoading,y=m.loadingMessage,_=m.minMenuHeight,x=m.maxMenuHeight,E=m.menuIsOpen,S=m.menuPlacement,O=m.menuPosition,k=m.menuPortalTarget,M=m.menuShouldBlockScroll,A=m.menuShouldScrollIntoView,T=m.noOptionsMessage,P=m.onMenuScrollToTop,j=m.onMenuScrollToBottom;if(!E)return null;var R,D=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,i.a.createElement(c,w({},f,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())R=h.render.map(function(t){if("group"===t.type){t.type;var o=C(t,["type"]),a="".concat(t.key,"-heading");return i.a.createElement(n,w({},f,o,{Heading:r,headingProps:{id:a},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return D(e)}))}if("option"===t.type)return D(t)});else if(b){var F=y({inputValue:v});if(null===F)return null;R=i.a.createElement(l,f,F)}else{var I=T({inputValue:v});if(null===I)return null;R=i.a.createElement(u,f,I)}var L={minMenuHeight:_,maxMenuHeight:x,menuPlacement:S,menuPosition:O,menuShouldScrollIntoView:A},N=i.a.createElement(B,w({},f,L),function(t){var n=t.ref,r=t.placerProps,s=r.placement,l=r.maxHeight;return i.a.createElement(o,w({},f,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:s}),i.a.createElement(ve,{isEnabled:g,onTopArrive:P,onBottomArrive:j},i.a.createElement(me,{isEnabled:M},i.a.createElement(a,w({},f,{innerRef:e.getMenuListRef,isLoading:b,maxHeight:l}),R))))});return k||"fixed"===O?i.a.createElement(s,w({},f,{appendTo:k,controlElement:this.controlRef,menuPlacement:S,menuPosition:O}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,s=this.state.selectValue;if(a&&!r){if(o){if(n){var l=s.map(function(t){return e.getOptionValue(t)}).join(n);return i.a.createElement("input",{name:a,type:"hidden",value:l})}var u=s.length>0?s.map(function(t,n){return i.a.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):i.a.createElement("input",{name:a,type:"hidden"});return i.a.createElement("div",null,u)}var c=s[0]?this.getOptionValue(s[0]):"";return i.a.createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?i.a.createElement(re,{"aria-live":"assertive"},i.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),i.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,s=a.className,l=a.id,u=a.isDisabled,c=a.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return i.a.createElement(r,w({},d,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:f}),this.renderLiveRegion(),i.a.createElement(t,w({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:f,menuIsOpen:c}),i.a.createElement(o,w({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),i.a.createElement(n,w({},d,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),t}();y(We,"defaultProps",Ue);var Ge={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},qe=function(e){var t,n;return n=t=function(t){function n(){var e,t;g(this,n);for(var r=arguments.length,i=new Array(r),o=0;o1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=String(e).toLowerCase(),r=String(t.value).toLowerCase(),i=String(t.label).toLowerCase();return r===n||i===n},Ze=_({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n){return!(!e||t.some(function(t){return Xe(e,t)})||n.some(function(t){return Xe(e,t)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}}),Je=function(e){var t,n;return n=t=function(t){function n(e){var t;g(this,n),y(O(O(t=k(this,E(n).call(this,e)))),"select",void 0),y(O(O(t)),"onChange",function(e,n){var r=t.props,i=r.getNewOptionData,o=r.inputValue,a=r.isMulti,s=r.onChange,l=r.onCreateOption,u=r.value;if("select-option"!==n.action)return s(e,n);var c=t.state.newOption,f=Array.isArray(e)?e:[e];if(f[f.length-1]!==c)s(e,n);else if(l)l(o);else{var d=i(o,o),p={action:"create-option"};s(a?[].concat(M(j(u)),[d]):d,p)}});var r=e.options||[];return t.state={newOption:void 0,options:r},t}return x(n,r["Component"]),b(n,[{key:"componentWillReceiveProps",value:function(e){var t=e.allowCreateWhileLoading,n=e.createOptionPosition,r=e.formatCreateLabel,i=e.getNewOptionData,o=e.inputValue,a=e.isLoading,s=e.isValidNewOption,l=e.value,u=e.options||[],c=this.state.newOption;c=s(o,j(l),u)?i(o,r(o)):void 0,this.setState({newOption:c,options:!t&&a||!c?u:"first"===n?[c].concat(M(u)):[].concat(M(u),[c])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var t=this,n=w({},this.props),r=this.state.options;return i.a.createElement(e,w({},n,{ref:function(e){t.select=e},options:r,onChange:this.onChange}))}}]),n}(),y(t,"defaultProps",Ze),n},et=qe(Je(We)),tt=qe(Je(We)),nt=Ke(tt),rt=function(e){return function(t){t.in,t.onExited,t.appear,t.enter,t.exit;var n=C(t,["in","onExited","appear","enter","exit"]);return i.a.createElement(e,n)}},it=function(e){var t=e.component,n=e.duration,r=void 0===n?1:n,o=e.in,a=(e.onExited,C(e,["component","duration","in","onExited"])),s={entering:{opacity:0},entered:{opacity:1,transition:"opacity ".concat(r,"ms")},exiting:{opacity:0},exited:{opacity:0}};return i.a.createElement(h.Transition,{mountOnEnter:!0,unmountOnExit:!0,in:o,timeout:r},function(e){var n={style:_({},s[e])};return i.a.createElement(t,w({innerProps:n},a))})},ot=260,at=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=Ne({components:e}),n=t.Input,r=t.MultiValue,i=t.Placeholder,o=t.SingleValue,a=t.ValueContainer,s=C(t,["Input","MultiValue","Placeholder","SingleValue","ValueContainer"]);return _({Input:rt(n),MultiValue:st(r),Placeholder:lt(i),SingleValue:ut(o),ValueContainer:ct(a)},s)},dt=ft(),pt=(dt.Input,dt.MultiValue,dt.Placeholder,dt.SingleValue,dt.ValueContainer,Object(o.default)(ft,X)),ht=qe(We);t.default=ht},"/e/meXvl":function(e,exports,t){var n=t("P4tOE5v3");e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},"/ppgboke":function(e,exports,t){e.exports=t.p+"58cc2dd3b9e14af01d1337ff7a444235.js"},"/xa7Ngqp":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=t("ivGQtwpr"),r=a(t("ii0bleBb")),i=t("N/FPCcIo"),o=a(t("Qy45xoXf"));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.question,r=e.router,i=e.route,a=function(e){return o.default.gl2DevMode()?null:(e.returnValue=t,t)},s=function(){return a({})};return(0,n.useEffect)(function(){window.addEventListener("beforeunload",a);var e=r.setRouteLeaveHook(i,s);return function(){window.removeEventListener("beforeunload",a),e()}},[]),null};s.propTypes={question:r.default.string,route:r.default.object.isRequired,router:r.default.shape({setRouteLeaveHook:r.default.func.isRequired}).isRequired},s.defaultProps={question:"Are you sure?"};var l=(0,i.withRouter)(s);exports.default=l,e.exports=exports.default},"/xvO5NNp":function(e,exports,t){"use strict";var n=t("IQgAPhpj"),r=t("ALfIRiB2"),i=t("eKkJgIdI");t("BXoh4fCY"),n.PluginStore.register(new n.PluginManifest({},{widgets:[{type:"SEARCH_RESULT_COUNT",displayName:"Search result count",defaultHeight:2,defaultWidth:2,visualizationComponent:r.NumericVisualization,configurationCreateComponent:i.CountWidgetCreateConfiguration,configurationEditComponent:i.CountWidgetEditConfiguration},{type:"STREAM_SEARCH_RESULT_COUNT",displayName:"Stream search result count",defaultHeight:2,defaultWidth:2,visualizationComponent:r.NumericVisualization,configurationCreateComponent:i.CountWidgetCreateConfiguration,configurationEditComponent:i.CountWidgetEditConfiguration},{type:"STATS_COUNT",displayName:"Statistical value",defaultHeight:2,defaultWidth:2,visualizationComponent:r.NumericVisualization,configurationCreateComponent:i.StatisticalCountWidgetCreateConfiguration,configurationEditComponent:i.StatisticalCountWidgetEditConfiguration},{type:"SEARCH_RESULT_CHART",displayName:"Search result graph",defaultHeight:2,defaultWidth:4,visualizationComponent:r.HistogramVisualization},{type:"QUICKVALUES",displayName:"Quick values",defaultHeight:6,defaultWidth:2,visualizationComponent:r.QuickValuesVisualization,configurationCreateComponent:i.QuickValuesWidgetCreateConfiguration,configurationEditComponent:i.QuickValuesWidgetEditConfiguration},{type:"QUICKVALUES_HISTOGRAM",displayName:"Quick values histogram",defaultHeight:2,defaultWidth:4,visualizationComponent:r.QuickValuesHistogramVisualization,configurationCreateComponent:i.QuickValuesHistogramWidgetCreateConfiguration,configurationEditComponent:i.QuickValuesHistogramWidgetEditConfiguration},{type:"FIELD_CHART",displayName:"Field graph",defaultHeight:2,defaultWidth:4,visualizationComponent:r.GraphVisualization,configurationEditComponent:i.FieldChartWidgetConfiguration},{type:"STACKED_CHART",displayName:"Stacked graph",defaultHeight:2,defaultWidth:4,visualizationComponent:r.StackedGraphVisualization,configurationEditComponent:i.StackedChartWidgetConfiguration}]}))},0:function(e,exports){},"0/yTsIJR":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;n-1&&e%1==0&&e0;e&&!s.isSetUp?(s.backend.setup(),s.isSetUp=!0):!e&&s.isSetUp&&(s.backend.teardown(),s.isSetUp=!1)};var l=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return n.createStore(r.default,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(i);this.store=l,this.monitor=new o.default(l,new a.default(l)),this.backend=e(this),l.subscribe(this.handleRefCountChange)}return e.prototype.getContext=function(){return this.context},e.prototype.getMonitor=function(){return this.monitor},e.prototype.getBackend=function(){return this.backend},e.prototype.getRegistry=function(){return this.monitor.registry},e.prototype.getActions=function(){var e=this,t=this.store.dispatch;var n=i.default(this);return Object.keys(n).reduce(function(r,i){var o,a=n[i];return r[i]=(o=a,function(){for(var n=[],r=0;r0||!i.areArraysEqual(u,f)))return o.NONE;var p=f[f.length-1],h=u[u.length-1];return p!==h&&(p&&d.push(p),h&&d.push(h)),d}},"16LqaUSq":function(e,exports,t){e.exports=t.p+"29a7d32ee5acd0711cbcfff66777fb82.js"},"16snztmE":function(e,exports,t){var n,r; /*! * URI.js - Mutating URLs * Second Level Domain (SLD) Support * * Version: 1.19.1 * * Author: Rodney Rehm * Web: http://medialize.github.io/URI.js/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * */!function(i,o){"use strict";e.exports?e.exports=o():void 0===(r="function"==typeof(n=o)?n.call(exports,t,exports,e):n)||(e.exports=r)}(0,function(e){"use strict";var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return!1;var i=n.list[e.slice(t+1)];return!!i&&i.indexOf(" "+e.slice(r+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var r=n.list[e.slice(t+1)];return!!r&&r.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return null;var i=n.list[e.slice(t+1)];return i?i.indexOf(" "+e.slice(r+1,t)+" ")<0?null:e.slice(r+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n})},"17WYifhy":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ii0bleBb")),r=o(t("ivGQtwpr")),i=t("os2pWP01");function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return o.default.createElement("svg",r({viewBox:"0 0 24 24",style:r({fill:n,width:a,height:l},c)},f),o.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},"1awGhqz8":function(e,exports,t){"use strict";var n=t("CvkSWy3a").default;t(2),(exports=e.exports=n).default=exports},"1jSnX9CI":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=a(t("ii0bleBb")),r=a(t("ivGQtwpr")),i=t("os2pWP01"),o=a(t("Ncb4Uri4"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(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})(e)}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(){return(u=Object.assign||function(e){for(var t=1;t0){var t=e.data[0].x,n=e.data[0].y;if("number"!=typeof t||"number"!=typeof n&&null!==n)throw"x and y properties of points should be numbers instead of "+typeof t+" and "+typeof n}if(e.data.length>=3&&(e.data[2].xthis.window.xMax&&(t=!1),t}return!0},this.onUpdate=function(e){this.updateCallbacks.push(e)},this.onConfigure=function(e){this.configureCallbacks.push(e)},this.registerRenderer=function(e){this._renderers=this._renderers||{},this._renderers[e.name]=e},this.configure=function(e){this.config=this.config||{},(e.width||e.height)&&this.setSize(e),t.keys(this.defaults).forEach(function(t){this.config[t]=t in e?e[t]:t in this?this[t]:this.defaults[t]},this),t.keys(this.config).forEach(function(e){this[e]=this.config[e]},this),"stack"in e&&(e.unstack=!e.stack);var n=e.renderer||this.renderer&&this.renderer.name||"stack";this.setRenderer(n,e),this.configureCallbacks.forEach(function(t){t(e)})},this.setRenderer=function(e,t){if("function"==typeof e)this.renderer=new e({graph:r}),this.registerRenderer(this.renderer);else{if(!this._renderers[e])throw"couldn't find renderer "+e;this.renderer=this._renderers[e]}"object"==typeof t&&this.renderer.configure(t)},this.setSize=function(e){if((e=e||{}).width&&e.height)this.width=e.width,this.height=e.height;else{if("undefined"!=typeof window)var t=window.getComputedStyle(this.element,null),n=parseInt(t.getPropertyValue("width"),10),r=parseInt(t.getPropertyValue("height"),10);this.width=e.width||n||400,this.height=e.height||r||250}this.vis&&this.vis.attr("width",this.width).attr("height",this.height)},this.initialize(n)},t.namespace("Rickshaw.Fixtures.Color"),t.Fixtures.Color=function(){this.schemes={},this.schemes.spectrum14=["#ecb796","#dc8f70","#b2a470","#92875a","#716c49","#d2ed82","#bbe468","#a1d05d","#e7cbe6","#d8aad6","#a888c2","#9dc2d3","#649eb9","#387aa3"].reverse(),this.schemes.spectrum2000=["#57306f","#514c76","#646583","#738394","#6b9c7d","#84b665","#a7ca50","#bfe746","#e2f528","#fff726","#ecdd00","#d4b11d","#de8800","#de4800","#c91515","#9a0000","#7b0429","#580839","#31082b"],this.schemes.spectrum2001=["#2f243f","#3c2c55","#4a3768","#565270","#6b6b7c","#72957f","#86ad6e","#a1bc5e","#b8d954","#d3e04e","#ccad2a","#cc8412","#c1521d","#ad3821","#8a1010","#681717","#531e1e","#3d1818","#320a1b"],this.schemes.classic9=["#423d4f","#4a6860","#848f39","#a2b73c","#ddcb53","#c5a32f","#7d5836","#963b20","#7c2626","#491d37","#2f254a"].reverse(),this.schemes.httpStatus={503:"#ea5029",502:"#d23f14",500:"#bf3613",410:"#efacea",409:"#e291dc",403:"#f457e8",408:"#e121d2",401:"#b92dae",405:"#f47ceb",404:"#a82a9f",400:"#b263c6",301:"#6fa024",302:"#87c32b",307:"#a0d84c",304:"#28b55c",200:"#1a4f74",206:"#27839f",201:"#52adc9",202:"#7c979f",203:"#a5b8bd",204:"#c1cdd1"},this.schemes.colorwheel=["#b5b6a9","#858772","#785f43","#96557e","#4682b4","#65b9ac","#73c03a","#cb513a"].reverse(),this.schemes.cool=["#5e9d2f","#73c03a","#4682b4","#7bc3b8","#a9884e","#c1b266","#a47493","#c09fb5"],this.schemes.munin=["#00cc00","#0066b3","#ff8000","#ffcc00","#330099","#990099","#ccff00","#ff0000","#808080","#008f00","#00487d","#b35a00","#b38f00","#6b006b","#8fb300","#b30000","#bebebe","#80ff80","#80c9ff","#ffc080","#ffe680","#aa80ff","#ee00cc","#ff8080","#666600","#ffbfff","#00ffcc","#cc6699","#999900"]},t.namespace("Rickshaw.Fixtures.RandomData"),t.Fixtures.RandomData=function(e){e=e||1;var t=200,n=Math.floor((new Date).getTime()/1e3);this.addData=function(r){var i=100*Math.random()+15+t,o=r[0].length,a=1;r.forEach(function(t){var r=20*Math.random(),s=i/25+a+++15*(Math.cos(o*a*11/960)+2)+7*(Math.cos(o/7)+2)+1*(Math.cos(o/17)+2);t.push({x:o*e+n,y:s+r})}),t=.85*i},this.removeData=function(t){t.forEach(function(e){e.shift()}),n+=e}},t.namespace("Rickshaw.Fixtures.Time"),t.Fixtures.Time=function(){var t=this;this.months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],this.units=[{name:"decade",seconds:315576e3,formatter:function(e){return 10*parseInt(e.getUTCFullYear()/10,10)}},{name:"year",seconds:31557600,formatter:function(e){return e.getUTCFullYear()}},{name:"month",seconds:2635200,formatter:function(e){return t.months[e.getUTCMonth()]}},{name:"week",seconds:604800,formatter:function(e){return t.formatDate(e)}},{name:"day",seconds:86400,formatter:function(e){return e.getUTCDate()}},{name:"6 hour",seconds:21600,formatter:function(e){return t.formatTime(e)}},{name:"hour",seconds:3600,formatter:function(e){return t.formatTime(e)}},{name:"15 minute",seconds:900,formatter:function(e){return t.formatTime(e)}},{name:"minute",seconds:60,formatter:function(e){return e.getUTCMinutes()+"m"}},{name:"15 second",seconds:15,formatter:function(e){return e.getUTCSeconds()+"s"}},{name:"second",seconds:1,formatter:function(e){return e.getUTCSeconds()+"s"}},{name:"decisecond",seconds:.1,formatter:function(e){return e.getUTCMilliseconds()+"ms"}},{name:"centisecond",seconds:.01,formatter:function(e){return e.getUTCMilliseconds()+"ms"}}],this.unit=function(e){return this.units.filter(function(t){return e==t.name}).shift()},this.formatDate=function(t){return e.time.format("%b %e")(t)},this.formatTime=function(e){return e.toUTCString().match(/(\d+:\d+):/)[1]},this.ceil=function(e,t){var n,r;if("month"==t.name){if(n=new Date(1e3*e),Date.UTC(n.getUTCFullYear(),n.getUTCMonth())/1e3==e)return e;r=n.getUTCFullYear();var i=n.getUTCMonth();return 11==i?(i=0,r+=1):i+=1,Date.UTC(r,i)/1e3}return"year"==t.name?(n=new Date(1e3*e),Date.UTC(n.getUTCFullYear(),0)/1e3==e?e:(r=n.getUTCFullYear()+1,Date.UTC(r,0)/1e3)):Math.ceil(e/t.seconds)*t.seconds}},t.namespace("Rickshaw.Fixtures.Time.Local"),t.Fixtures.Time.Local=function(){var t=this;this.months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],this.units=[{name:"decade",seconds:315576e3,formatter:function(e){return 10*parseInt(e.getFullYear()/10,10)}},{name:"year",seconds:31557600,formatter:function(e){return e.getFullYear()}},{name:"month",seconds:2635200,formatter:function(e){return t.months[e.getMonth()]}},{name:"week",seconds:604800,formatter:function(e){return t.formatDate(e)}},{name:"day",seconds:86400,formatter:function(e){return e.getDate()}},{name:"6 hour",seconds:21600,formatter:function(e){return t.formatTime(e)}},{name:"hour",seconds:3600,formatter:function(e){return t.formatTime(e)}},{name:"15 minute",seconds:900,formatter:function(e){return t.formatTime(e)}},{name:"minute",seconds:60,formatter:function(e){return e.getMinutes()}},{name:"15 second",seconds:15,formatter:function(e){return e.getSeconds()+"s"}},{name:"second",seconds:1,formatter:function(e){return e.getSeconds()+"s"}},{name:"decisecond",seconds:.1,formatter:function(e){return e.getMilliseconds()+"ms"}},{name:"centisecond",seconds:.01,formatter:function(e){return e.getMilliseconds()+"ms"}}],this.unit=function(e){return this.units.filter(function(t){return e==t.name}).shift()},this.formatDate=function(t){return e.time.format("%b %e")(t)},this.formatTime=function(e){return e.toString().match(/(\d+:\d+):/)[1]},this.ceil=function(e,t){var n,r,i;if("day"==t.name){var o=new Date(1e3*(e+t.seconds-1)),a=new Date(0);return a.setFullYear(o.getFullYear()),a.setMonth(o.getMonth()),a.setDate(o.getDate()),a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0),a.getTime()/1e3}if("month"==t.name){if(n=new Date(1e3*e),new Date(n.getFullYear(),n.getMonth()).getTime()/1e3==e)return e;r=n.getFullYear();var s=n.getMonth();return 11==s?(s=0,r+=1):s+=1,new Date(r,s).getTime()/1e3}return"year"==t.name?(n=new Date(1e3*e),new Date(n.getUTCFullYear(),0).getTime()/1e3==e?e:(r=n.getFullYear()+1,new Date(r,0).getTime()/1e3)):(i=60*new Date(1e3*e).getTimezoneOffset(),Math.ceil((e-i)/t.seconds)*t.seconds+i)}},t.namespace("Rickshaw.Fixtures.Number"),t.Fixtures.Number.formatKMBT=function(e){var t=Math.abs(e);return t>=1e12?e/1e12+"T":t>=1e9?e/1e9+"B":t>=1e6?e/1e6+"M":t>=1e3?e/1e3+"K":t<1&&t>0?e.toFixed(2):0===t?"":e},t.Fixtures.Number.formatBase1024KMGTP=function(e){var t=Math.abs(e);return t>=0x4000000000000?e/0x4000000000000+"P":t>=1099511627776?e/1099511627776+"T":t>=1073741824?e/1073741824+"G":t>=1048576?e/1048576+"M":t>=1024?e/1024+"K":t<1&&t>0?e.toFixed(2):0===t?"":e},t.namespace("Rickshaw.Color.Palette"),t.Color.Palette=function(n){var r=new t.Fixtures.Color;if(n=n||{},this.schemes={},this.scheme=r.schemes[n.scheme]||n.scheme||r.schemes.colorwheel,this.runningIndex=0,this.generatorIndex=0,n.interpolatedStopCount){var i,o,a=this.scheme.length-1,s=[];for(i=0;in.graph.x.range()[1])return t.element&&(t.line.classList.add("offscreen"),t.element.style.display="none"),void t.boxes.forEach(function(e){e.rangeElement&&e.rangeElement.classList.add("offscreen")});if(!t.element){var i=t.element=document.createElement("div");i.classList.add("annotation"),this.elements.timeline.appendChild(i),i.addEventListener("click",function(e){i.classList.toggle("active"),t.line.classList.toggle("active"),t.boxes.forEach(function(e){e.rangeElement&&e.rangeElement.classList.toggle("active")})},!1)}t.element.style.left=r+"px",t.element.style.display="block",t.boxes.forEach(function(e){var i=e.element;if(i||((i=e.element=document.createElement("div")).classList.add("content"),i.innerHTML=e.content,t.element.appendChild(i),t.line=document.createElement("div"),t.line.classList.add("annotation_line"),n.graph.element.appendChild(t.line),e.end&&(e.rangeElement=document.createElement("div"),e.rangeElement.classList.add("annotation_range"),n.graph.element.appendChild(e.rangeElement))),e.end){var o=r,a=Math.min(n.graph.x(e.end),n.graph.x.range()[1]);o>a&&(a=r,o=Math.max(n.graph.x(e.end),n.graph.x.range()[0]));var s=a-o;e.rangeElement.style.left=o+"px",e.rangeElement.style.width=s+"px",e.rangeElement.classList.remove("offscreen")}t.line.classList.remove("offscreen"),t.line.style.left=r+"px"})},this)},this.graph.onUpdate(function(){n.update()})},t.namespace("Rickshaw.Graph.Axis.Time"),t.Graph.Axis.Time=function(e){var n=this;this.graph=e.graph,this.elements=[],this.ticksTreatment=e.ticksTreatment||"plain",this.fixedTimeUnit=e.timeUnit;var r=e.timeFixture||new t.Fixtures.Time;this.appropriateTimeUnit=function(){var e,t=r.units,n=this.graph.x.domain(),i=n[1]-n[0];return t.forEach(function(t){Math.floor(i/t.seconds)>=2&&(e=e||t)}),e||r.units[r.units.length-1]},this.tickOffsets=function(){for(var e=this.graph.x.domain(),t=this.fixedTimeUnit||this.appropriateTimeUnit(),n=Math.ceil((e[1]-e[0])/t.seconds),i=e[0],o=[],a=0;an.graph.x.range()[1])){var t=document.createElement("div");t.style.left=n.graph.x(e.value)+"px",t.classList.add("x_tick"),t.classList.add(n.ticksTreatment);var r=document.createElement("div");r.classList.add("title"),r.innerHTML=e.unit.formatter(new Date(1e3*e.value)),t.appendChild(r),n.graph.element.appendChild(t),n.elements.push(t)}})},this.graph.onUpdate(function(){n.render()})},t.namespace("Rickshaw.Graph.Axis.X"),t.Graph.Axis.X=function(t){var n=this;this.initialize=function(t){this.graph=t.graph,this.orientation=t.orientation||"top",this.pixelsPerTick=t.pixelsPerTick||75,t.ticks&&(this.staticTicks=t.ticks),t.tickValues&&(this.tickValues=t.tickValues),this.tickSize=t.tickSize||4,this.ticksTreatment=t.ticksTreatment||"plain",t.element?(this.element=t.element,this._discoverSize(t.element,t),this.vis=e.select(t.element).append("svg:svg").attr("height",this.height).attr("width",this.width).attr("class","rickshaw_graph x_axis_d3"),this.element=this.vis[0][0],this.element.style.position="relative",this.setSize({width:t.width,height:t.height})):this.vis=this.graph.vis,this.graph.onUpdate(function(){n.render()})},this.setSize=function(e){if(e=e||{},this.element){this._discoverSize(this.element.parentNode,e),this.vis.attr("height",this.height).attr("width",1.1*this.width);var t=Math.floor(.1*this.width/2);this.element.style.left=-1*t+"px"}},this.render=function(){void 0!==this._renderWidth&&this.graph.width!==this._renderWidth&&this.setSize({auto:!0});var n=e.svg.axis().scale(this.graph.x).orient(this.orientation);n.tickFormat(t.tickFormat||function(e){return e}),this.tickValues&&n.tickValues(this.tickValues),this.ticks=this.staticTicks||Math.floor(this.graph.width/this.pixelsPerTick);var r,i=Math.floor(.1*this.width/2)||0,o="bar"==this.graph.renderer.name&&Math.ceil(.95*this.graph.width/this.graph.series[0].data.length/2)||0;r="top"==this.orientation?"translate("+(i+o)+","+(this.height||this.graph.height)+")":"translate("+(i+o)+", 0)",this.element&&this.vis.selectAll("*").remove(),this.vis.append("svg:g").attr("class",["x_ticks_d3",this.ticksTreatment].join(" ")).attr("transform",r).call(n.ticks(this.ticks).tickSubdivide(0).tickSize(this.tickSize));var a=("bottom"==this.orientation?1:-1)*this.graph.height;this.graph.vis.append("svg:g").attr("class","x_grid_d3").call(n.ticks(this.ticks).tickSubdivide(0).tickSize(a)).selectAll("text").each(function(){this.parentNode.setAttribute("data-x-value",this.textContent)}),this._renderHeight=this.graph.height},this._discoverSize=function(e,t){if("undefined"!=typeof window){var n=window.getComputedStyle(e,null),r=parseInt(n.getPropertyValue("height"),10);if(!t.auto)var i=parseInt(n.getPropertyValue("width"),10)}this.width=1.1*(t.width||i||this.graph.width),this.height=t.height||r||40},this.initialize(t)},t.namespace("Rickshaw.Graph.Axis.Y"),t.Graph.Axis.Y=t.Class.create({initialize:function(t){this.graph=t.graph,this.orientation=t.orientation||"right",this.pixelsPerTick=t.pixelsPerTick||75,t.ticks&&(this.staticTicks=t.ticks),t.tickValues&&(this.tickValues=t.tickValues),this.tickSize=t.tickSize||4,this.ticksTreatment=t.ticksTreatment||"plain",this.tickFormat=t.tickFormat||function(e){return e},this.berthRate=.1,t.element?(this.element=t.element,this.vis=e.select(t.element).append("svg:svg").attr("class","rickshaw_graph y_axis"),this.element=this.vis[0][0],this.element.style.position="relative",this.setSize({width:t.width,height:t.height})):this.vis=this.graph.vis;var n=this;this.graph.onUpdate(function(){n.render()})},setSize:function(e){if(e=e||{},this.element){if("undefined"!=typeof window){var t=window.getComputedStyle(this.element.parentNode,null),n=parseInt(t.getPropertyValue("width"),10);if(!e.auto)var r=parseInt(t.getPropertyValue("height"),10)}this.width=e.width||n||this.graph.width*this.berthRate,this.height=e.height||r||this.graph.height,this.vis.attr("width",this.width).attr("height",this.height*(1+this.berthRate));var i=this.height*this.berthRate;"left"==this.orientation&&(this.element.style.top=-1*i+"px")}},render:function(){void 0!==this._renderHeight&&this.graph.height!==this._renderHeight&&this.setSize({auto:!0}),this.ticks=this.staticTicks||Math.floor(this.graph.height/this.pixelsPerTick);var e=this._drawAxis(this.graph.y);this._drawGrid(e),this._renderHeight=this.graph.height},_drawAxis:function(t){var n=e.svg.axis().scale(t).orient(this.orientation);if(n.tickFormat(this.tickFormat),this.tickValues&&n.tickValues(this.tickValues),"left"==this.orientation)var r=this.height*this.berthRate,i="translate("+this.width+", "+r+")";return this.element&&this.vis.selectAll("*").remove(),this.vis.append("svg:g").attr("class",["y_ticks",this.ticksTreatment].join(" ")).attr("transform",i).call(n.ticks(this.ticks).tickSubdivide(0).tickSize(this.tickSize)),n},_drawGrid:function(e){var t=("right"==this.orientation?1:-1)*this.graph.width;this.graph.vis.append("svg:g").attr("class","y_grid").call(e.ticks(this.ticks).tickSubdivide(0).tickSize(t)).selectAll("text").each(function(){this.parentNode.setAttribute("data-y-value",this.textContent)})}}),t.namespace("Rickshaw.Graph.Axis.Y.Scaled"),t.Graph.Axis.Y.Scaled=t.Class.create(t.Graph.Axis.Y,{initialize:function($super,e){if(void 0===e.scale)throw new Error("Scaled requires scale");this.scale=e.scale,void 0===e.grid?this.grid=!0:this.grid=e.grid,$super(e)},_drawAxis:function($super,t){var n=this.scale.domain(),r=this.graph.renderer.domain().y,i=[Math.min.apply(Math,n),Math.max.apply(Math,n)],o=e.scale.linear().domain([0,1]).range(i),a=[o(r[0]),o(r[1])],s=e.scale.linear().domain(i).range(a);return $super(this.scale.copy().domain(n.map(s)).range(t.range()))},_drawGrid:function($super,e){this.grid&&$super(e)}}),t.namespace("Rickshaw.Graph.Behavior.Series.Highlight"),t.Graph.Behavior.Series.Highlight=function(t){this.graph=t.graph,this.legend=t.legend;var n=this,r={},i=null,o=t.disabledColor||function(t){return e.interpolateRgb(t,e.rgb("#d8d8d8"))(.8).toString()};this.addHighlightEvents=function(e){e.element.addEventListener("mouseover",function(t){i||(i=e,n.legend.lines.forEach(function(t){if(e!==t)r[t.series.name]=r[t.series.name]||t.series.color,t.series.color=o(t.series.color);else if(n.graph.renderer.unstack&&(!t.series.renderer||t.series.renderer.unstack)){var i=n.graph.series.indexOf(t.series);t.originalIndex=i;var a=n.graph.series.splice(i,1)[0];n.graph.series.push(a)}}),n.graph.update())},!1),e.element.addEventListener("mouseout",function(t){i&&(i=null,n.legend.lines.forEach(function(t){if(e===t&&t.hasOwnProperty("originalIndex")){var i=n.graph.series.pop();n.graph.series.splice(t.originalIndex,0,i),delete t.originalIndex}r[t.series.name]&&(t.series.color=r[t.series.name])}),n.graph.update())},!1)},this.legend&&this.legend.lines.forEach(function(e){n.addHighlightEvents(e)})},t.namespace("Rickshaw.Graph.Behavior.Series.Order"),t.Graph.Behavior.Series.Order=function(e){this.graph=e.graph,this.legend=e.legend;var t=this;if(void 0===window.jQuery)throw"couldn't find jQuery at window.jQuery";if(void 0===window.jQuery.ui)throw"couldn't find jQuery UI at window.jQuery.ui";jQuery(function(){jQuery(t.legend.list).sortable({containment:"parent",tolerance:"pointer",update:function(e,n){var r=[];jQuery(t.legend.list).find("li").each(function(e,t){t.series&&r.push(t.series)});for(var i=t.graph.series.length-1;i>=0;i--)t.graph.series[i]=r.shift();t.graph.update()}}),jQuery(t.legend.list).disableSelection()}),this.graph.onUpdate(function(){var e=window.getComputedStyle(t.legend.element).height;t.legend.element.style.height=e})},t.namespace("Rickshaw.Graph.Behavior.Series.Toggle"),t.Graph.Behavior.Series.Toggle=function(e){this.graph=e.graph,this.legend=e.legend;var t=this;this.addAnchor=function(e){var n=document.createElement("a");n.innerHTML="✔",n.classList.add("action"),e.element.insertBefore(n,e.element.firstChild),n.onclick=function(n){if(e.series.disabled)e.series.enable(),e.element.classList.remove("disabled");else{if(this.graph.series.filter(function(e){return!e.disabled}).length<=1)return;e.series.disable(),e.element.classList.add("disabled")}t.graph.update()}.bind(this),e.element.getElementsByTagName("span")[0].onclick=function(n){var r=e.series.disabled;if(!r)for(var i=0;in.svgWidth-1||r<1)){var o=[i.startPX,r].sort(l),a=o[1]-o[0];if(isNaN(a))return s(this);t.attr("fill",n.fill).attr("x",o[0]).attr("width",a)}}function s(n){e.select(n).on("mousemove",null),e.select(document).on("mouseup",null),i={},t.remove()}function l(e,t){return e-t}function u(e){return Math.floor(n.graph.x.invert(e.offsetX||e.layerX))}this.svg.on("mousedown",function(){var l=e.select(this);t=l.append("rect").style("opacity",n.opacity).attr("y",0).attr("height","100%"),e.event.preventDefault?e.event.preventDefault():e.event.returnValue=!1,i.target=e.event.target,i.startDt=u(e.event),i.startPX=e.event.offsetX||e.event.layerX,l.on("mousemove",a),e.select(document).on("mouseup",o),e.select(document).on("keyup",function(){e.event.keyCode===r&&s(this)})})}}),t.namespace("Rickshaw.Graph.HoverDetail"),t.Graph.HoverDetail=t.Class.create({initialize:function(e){var t=this.graph=e.graph;this.xFormatter=e.xFormatter||function(e){return new Date(1e3*e).toUTCString()},this.yFormatter=e.yFormatter||function(e){return null===e?e:e.toFixed(2)};var n=this.element=document.createElement("div");n.className="detail inactive",this.visible=!0,t.element.appendChild(n),this.lastEvent=null,this._addListeners(),this.onShow=e.onShow,this.onHide=e.onHide,this.onRender=e.onRender,this.formatter=e.formatter||this.formatter},formatter:function(e,t,n,r,i,o){return e.name+": "+i},update:function(t){if((t=t||this.lastEvent)&&(this.lastEvent=t,t.target.nodeName.match(/^(path|svg|rect|circle)$/))){var n,r=this.graph,i=r.element.getBoundingClientRect(),o=t.clientX-i.left,a=t.clientY-i.top,s=0,l=[];if(this.graph.series.active().forEach(function(t){var i=this.graph.stackedData[s++];if(i.length){var u=r.x.invert(o),c=e.scale.linear().domain([i[0].x,i.slice(-1)[0].x]).range([0,i.length-1]),f=Math.round(c(u));f==i.length-1&&f--;for(var d=Math.min(f||0,i.length-1),p=f;pu){d=Math.abs(u-i[p].x)0&&(c.forEach(function(e){e.classList.remove("left"),e.classList.add("right")}),this._calcLayoutError(c)>f&&c.forEach(function(e){e.classList.remove("right"),e.classList.add("left")})),"function"==typeof this.onRender&&this.onRender(e)}},_calcLayoutError:function(e){var t=this.element.parentNode.getBoundingClientRect(),n=0;return e.forEach(function(e){var r=e.getBoundingClientRect();r.width&&(r.right>t.right&&(n+=r.right-t.right),r.left=r.previewWidth&&(a[0]-=a[1]-r.previewWidth,a[1]=r.previewWidth)),r.graphs.forEach(function(t){var n=e.scale.linear().interpolate(e.interpolateNumber).domain([0,r.previewWidth]).range(t.dataDomain()),i=[n(a[0]),n(a[1])];r.slideCallbacks.forEach(function(e){e(t,i[0],i[1])}),0===a[0]&&(i[0]=void 0),a[1]===r.previewWidth&&(i[1]=void 0),t.window.xMin=i[0],t.window.xMax=i[1],t.update()})}function o(){n.target=e.event.target,n.start=r._getClientXFromEvent(e.event,n),r.frameBeforeDrag=r.currentFrame.slice(),e.event.preventDefault?e.event.preventDefault():e.event.returnValue=!1,e.select(document).on("mousemove.rickshaw_range_slider_preview",i),e.select(document).on("mouseup.rickshaw_range_slider_preview",u),e.select(document).on("touchmove.rickshaw_range_slider_preview",i),e.select(document).on("touchend.rickshaw_range_slider_preview",u),e.select(document).on("touchcancel.rickshaw_range_slider_preview",u)}function a(e,t){n.left=!0,o()}function s(e,t){n.right=!0,o()}function l(e,t){n.left=!0,n.right=!0,n.rigid=!0,o()}function u(t,i){e.select(document).on("mousemove.rickshaw_range_slider_preview",null),e.select(document).on("mouseup.rickshaw_range_slider_preview",null),e.select(document).on("touchmove.rickshaw_range_slider_preview",null),e.select(document).on("touchend.rickshaw_range_slider_preview",null),e.select(document).on("touchcancel.rickshaw_range_slider_preview",null),delete r.frameBeforeDrag,n.left=!1,n.right=!1,n.rigid=!1}t.select("rect.left_handle").on("mousedown",a),t.select("rect.right_handle").on("mousedown",s),t.select("rect.middle_handle").on("mousedown",l),t.select("rect.left_handle").on("touchstart",a),t.select("rect.right_handle").on("touchstart",s),t.select("rect.middle_handle").on("touchstart",l)},_getClientXFromEvent:function(e,t){switch(e.type){case"touchstart":case"touchmove":for(var n=e.changedTouches,r=null,i=0;io&&(o=t)}}),e.length&&(e[0].xr&&(r=e[e.length-1].x))}),n-=(r-n)*this.padding.left,r+=(r-n)*this.padding.right,i="auto"===this.graph.min?i:this.graph.min||0,o=void 0===this.graph.max?o:this.graph.max,("auto"===this.graph.min||i<0)&&(i-=(o-i)*this.padding.bottom),void 0===this.graph.max&&(o+=(o-i)*this.padding.top),{x:[n,r],y:[i,o]}},render:function(e){e=e||{};var t=this.graph,n=e.series||t.series,r=e.vis||t.vis;r.selectAll("*").remove();var i=n.filter(function(e){return!e.disabled}).map(function(e){return e.stack}),o=r.selectAll("path.path").data(i).enter().append("svg:path").classed("path",!0).attr("d",this.seriesPathFactory());if(this.stroke)var a=r.selectAll("path.stroke").data(i).enter().append("svg:path").classed("stroke",!0).attr("d",this.seriesStrokeFactory());var s=0;n.forEach(function(e){e.disabled||(e.path=o[0][s],this.stroke&&(e.stroke=a[0][s]),this._styleSeries(e),s++)},this)},_styleSeries:function(t){var n=this.fill?t.color:"none",r=this.stroke?t.color:"none",i=t.strokeWidth?t.strokeWidth:this.strokeWidth,o=t.opacity?t.opacity:this.opacity;t.path.setAttribute("fill",n),t.path.setAttribute("stroke",r),t.path.setAttribute("stroke-width",i),t.path.setAttribute("opacity",o),t.className&&e.select(t.path).classed(t.className,!0),t.className&&this.stroke&&e.select(t.stroke).classed(t.className,!0)},configure:function(e){e=e||{},t.keys(this.defaults()).forEach(function(n){e.hasOwnProperty(n)?"object"==typeof this.defaults()[n]?t.keys(this.defaults()[n]).forEach(function(t){this[n][t]=void 0!==e[n][t]?e[n][t]:void 0!==this[n][t]?this[n][t]:this.defaults()[n][t]},this):this[n]=void 0!==e[n]?e[n]:void 0!==this[n]?this[n]:void 0!==this.graph[n]?this.graph[n]:this.defaults()[n]:this[n]=this[n]||this.graph[n]||this.defaults()[n]},this)},setStrokeWidth:function(e){void 0!==e&&(this.strokeWidth=e)},setTension:function(e){void 0!==e&&(this.tension=e)}}),t.namespace("Rickshaw.Graph.Renderer.Line"),t.Graph.Renderer.Line=t.Class.create(t.Graph.Renderer,{name:"line",defaults:function($super){return t.extend($super(),{unstack:!0,fill:!1,stroke:!0})},seriesPathFactory:function(){var t=this.graph,n=e.svg.line().x(function(e){return t.x(e.x)}).y(function(e){return t.y(e.y)}).interpolate(this.graph.interpolation).tension(this.tension);return n.defined&&n.defined(function(e){return null!==e.y}),n}}),t.namespace("Rickshaw.Graph.Renderer.Stack"),t.Graph.Renderer.Stack=t.Class.create(t.Graph.Renderer,{name:"stack",defaults:function($super){return t.extend($super(),{fill:!0,stroke:!1,unstack:!1})},seriesPathFactory:function(){var t=this.graph,n=e.svg.area().x(function(e){return t.x(e.x)}).y0(function(e){return t.y(e.y0)}).y1(function(e){return t.y(e.y+e.y0)}).interpolate(this.graph.interpolation).tension(this.tension);return n.defined&&n.defined(function(e){return null!==e.y}),n}}),t.namespace("Rickshaw.Graph.Renderer.Bar"),t.Graph.Renderer.Bar=t.Class.create(t.Graph.Renderer,{name:"bar",defaults:function($super){var e=t.extend($super(),{gapSize:.05,unstack:!1,opacity:1});return delete e.tension,e},initialize:function($super,e){e=e||{},this.gapSize=e.gapSize||this.gapSize,$super(e)},domain:function($super){var e=$super(),t=this._frequentInterval(this.graph.stackedData.slice(-1).shift());return e.x[1]+=Number(t.magnitude),e},barWidth:function(e){var t=this._frequentInterval(e.stack);return this.graph.x.magnitude(t.magnitude)*(1-this.gapSize)},render:function(e){e=e||{};var t=this.graph,n=e.series||t.series,r=e.vis||t.vis;r.selectAll("*").remove();var i=this.barWidth(n.active()[0]),o=0,a=n.filter(function(e){return!e.disabled}).length,s=this.unstack?i/a:i,l=function(e){return"matrix("+[1,0,0,e.y<0?-1:1,0,e.y<0?2*t.y.magnitude(Math.abs(e.y)):0].join(",")+")"};n.forEach(function(e){if(!e.disabled){this.barWidth(e);var n=r.selectAll("path").data(e.stack.filter(function(e){return null!==e.y})).enter().append("svg:rect").attr("x",function(e){return t.x(e.x)+o}).attr("y",function(e){return t.y(e.y0+Math.abs(e.y))*(e.y<0?-1:1)}).attr("width",s).attr("height",function(e){return t.y.magnitude(Math.abs(e.y))}).attr("opacity",e.opacity).attr("transform",l);Array.prototype.forEach.call(n[0],function(t){t.setAttribute("fill",e.color)}),this.unstack&&(o+=s)}},this)},_frequentInterval:function(e){for(var n={},r=0;r0?this[0].data.forEach(function(t){e.data.push({x:t.x,y:0})}):0===e.data.length&&e.data.push({x:this.timeBase-(this.timeInterval||0),y:0}),this.push(e),this.legend&&this.legend.addLine(this.itemByName(e.name))},addData:function(e,n){var r=this.getIndex();t.keys(e).forEach(function(e){this.itemByName(e)||this.addItem({name:e})},this),this.forEach(function(t){t.data.push({x:n||(r*this.timeInterval||1)+this.timeBase,y:e[t.name]||0})},this)},getIndex:function(){return this[0]&&this[0].data&&this[0].data.length?this[0].data.length:0},itemByName:function(e){for(var t=0;t1;i--)this.currentSize+=1,this.currentIndex+=1,this.forEach(function(e){e.data.unshift({x:((i-1)*this.timeInterval||1)+this.timeBase,y:0,i:i})},this)},addData:function($super,e,t){if($super(e,t),this.currentSize+=1,this.currentIndex+=1,void 0!==this.maxDataPoints)for(;this.currentSize>this.maxDataPoints;)this.dropData()},dropData:function(){this.forEach(function(e){e.data.splice(0,1)}),this.currentSize-=1},getIndex:function(){return this.currentIndex}}),t}(e)}.apply(exports,n))||(e.exports=r)},"2RMafhgq":function(e,exports,t){e.exports=t.p+"f4b47be38beb7ef508e79dc1f20e4554.js"},"2SZA7WiA":function(e,exports,t){e.exports=t.p+"cc0519b6f6308f2f9cf062fdb0cd018c.js"},"2YNh/UI8":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=u(t("ivGQtwpr")),r=u(t("PcYM+wZ7")),i=u(t("z/eN47+5")),o=t("qOZsORvD"),a=t("qwOa7NSh"),s=t("SJE+bKc0"),l=u(t("7Wb90RBV"));function u(e){return e&&e.__esModule?e:{default:e}}var c=t("5mip0w5Y"),f=navigator.language.split(/[-_]/)[0];(0,a.addLocaleData)(c);var d={fr:i.default},p=(0,r.default)({displayName:"WizardListsPage",_getConfig:function(){return{field_order:[{name:"Description",enabled:!0},{name:"Created",enabled:!0},{name:"Last Modified",enabled:!0},{name:"User",enabled:!0},{name:"Usage",enabled:!0},{name:"Lists",enabled:!0}],default_values:{},import_policy:"DONOTHING"}},render:function(){var e=this._getConfig();return n.default.createElement(a.IntlProvider,{locale:f,messages:d[f]},n.default.createElement(o.DocumentTitle,{title:"Lists"},n.default.createElement("div",null,n.default.createElement("span",null,n.default.createElement(o.PageHeader,{title:n.default.createElement(a.FormattedMessage,{id:"wizard.lists",defaultMessage:"Lists"})},n.default.createElement("span",null,n.default.createElement(a.FormattedMessage,{id:"wizard.documentationlist",defaultMessage:"Read more about Wizard lists in the documentation."})))),n.default.createElement(s.Row,{className:"content"},n.default.createElement(s.Col,{md:12},n.default.createElement(l.default,{config:e}))))))}});exports.default=p,e.exports=exports.default},"2Ynmm8XS":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=s(t("ii0bleBb")),r=s(t("ivGQtwpr")),i=t("os2pWP01"),o=t("wkvtUUMm"),a=s(t("+udoJibM"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(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})(e)}function u(e,t){for(var n=0;n
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:n},s.prototype.init=function(e,t,n){if(this.enabled=!0,this.type=e,this.$element=$(t),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&$(document).find($.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),i=r.length;i--;){var o=r[i];if("click"==o)this.$element.on("click."+this.type,this.options.selector,$.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",s="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,$.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,$.proxy(this.leave,this))}}this.options.selector?this._options=$.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},s.prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.getOptions=function(t){var n=this.$element.data();for(var r in n)n.hasOwnProperty(r)&&-1!==$.inArray(r,e)&&delete n[r];return(t=$.extend({},this.getDefaults(),n,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=a(t.template,t.whiteList,t.sanitizeFn)),t},s.prototype.getDelegateOptions=function(){var e={},t=this.getDefaults();return this._options&&$.each(this._options,function(n,r){t[n]!=r&&(e[n]=r)}),e},s.prototype.enter=function(e){var t=e instanceof this.constructor?e:$(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),$(e.currentTarget).data("bs."+this.type,t)),e instanceof $.Event&&(t.inState["focusin"==e.type?"focus":"hover"]=!0),t.tip().hasClass("in")||"in"==t.hoverState)t.hoverState="in";else{if(clearTimeout(t.timeout),t.hoverState="in",!t.options.delay||!t.options.delay.show)return t.show();t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)}},s.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},s.prototype.leave=function(e){var t=e instanceof this.constructor?e:$(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),$(e.currentTarget).data("bs."+this.type,t)),e instanceof $.Event&&(t.inState["focusout"==e.type?"focus":"hover"]=!1),!t.isInStateTrue()){if(clearTimeout(t.timeout),t.hoverState="out",!t.options.delay||!t.options.delay.hide)return t.hide();t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)}},s.prototype.show=function(){var e=$.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var t=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!t)return;var n=this,r=this.tip(),i=this.getUID(this.type);this.setContent(),r.attr("id",i),this.$element.attr("aria-describedby",i),this.options.animation&&r.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,l=a.test(o);l&&(o=o.replace(a,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?r.appendTo($(document).find(this.options.container)):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),c=r[0].offsetWidth,f=r[0].offsetHeight;if(l){var d=o,p=this.getPosition(this.$viewport);o="bottom"==o&&u.bottom+f>p.bottom?"top":"top"==o&&u.top-fp.width?"left":"left"==o&&u.left-ca.top+a.height&&(i.top=a.top+a.height-l)}else{var u=t.left-o,c=t.left+o+n;ua.right&&(i.left=a.left+a.width-c)}return i},s.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},s.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},s.prototype.tip=function(){if(!this.$tip&&(this.$tip=$(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},s.prototype.enable=function(){this.enabled=!0},s.prototype.disable=function(){this.enabled=!1},s.prototype.toggleEnabled=function(){this.enabled=!this.enabled},s.prototype.toggle=function(e){var t=this;e&&((t=$(e.currentTarget).data("bs."+this.type))||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),$(e.currentTarget).data("bs."+this.type,t))),e?(t.inState.click=!t.inState.click,t.isInStateTrue()?t.enter(t):t.leave(t)):t.tip().hasClass("in")?t.leave(t):t.enter(t)},s.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})},s.prototype.sanitizeHtml=function(e){return a(e,this.options.whiteList,this.options.sanitizeFn)};var l=$.fn.tooltip;$.fn.tooltip=function(e){return this.each(function(){var t=$(this),n=t.data("bs.tooltip"),r="object"==typeof e&&e;!n&&/destroy|hide/.test(e)||(n||t.data("bs.tooltip",n=new s(this,r)),"string"==typeof e&&n[e]())})},$.fn.tooltip.Constructor=s,$.fn.tooltip.noConflict=function(){return $.fn.tooltip=l,this}}(jQuery)},"2d8O7qpH":function(e,exports){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},"2fG0j4rQ":function(e,exports,t){var n=t("+UVuVHRt"),r="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(r);var o=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=o.cache;if(i.has(r))return i.get(r);var a=e.apply(this,n);return o.cache=i.set(r,a)||i,a};return o.cache=new(i.Cache||n),o}i.Cache=n,e.exports=i},"2gc7+/JM":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompactFields=void 0;var n=o(t("ivGQtwpr")),r=o(t("zGS59GCK")),i=t("50Juodil");function o(e){return e&&e.__esModule?e:{default:e}}var a=exports.CompactFields=function(e){var t=e.hex,o=e.rgb,a=e.onChange,s=(0,r.default)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),l=function(e,t){e.r||e.g||e.b?a({r:e.r||o.r,g:e.g||o.g,b:e.b||o.b,source:"rgb"},t):a({hex:e.hex,source:"hex"},t)};return n.default.createElement("div",{style:s.fields,className:"flexbox-fix"},n.default.createElement("div",{style:s.active}),n.default.createElement(i.EditableInput,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"hex",value:t,onChange:l}),n.default.createElement(i.EditableInput,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:o.r,onChange:l}),n.default.createElement(i.EditableInput,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:o.g,onChange:l}),n.default.createElement(i.EditableInput,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:o.b,onChange:l}))};exports.default=a},"2hz9zntN":function(e,exports,t){e.exports=t.p+"2b7d5ec2d97564336164096887260e16.js"},"2nHm30BR":function(e,exports,t){"use strict";e.exports=function(e,exports){return{metadata:e,exports:exports}}},"2r49OBLU":function(e,exports,t){var n=t("RMa3hR3V").Uint8Array;e.exports=n},"2tBalWps":function(e,exports,t){var n=t("+8zy/hiB"),r=t("EICXoGH6"),i=t("JasirbXS");e.exports=function(e,t,o){return t==t?i(e,t,o):n(e,r,o)}},"2tTr/y13":function(e,exports,t){"use strict";exports.__esModule=!0,exports.default=void 0;var n=function(e){return Boolean(e&&e.prototype&&"function"==typeof e.prototype.render)};exports.default=n},"2xYdnD5e":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=a(t("ii0bleBb")),r=a(t("ivGQtwpr")),i=a(t("Q+OqJm0N")),o=a(t("PK8ZLj9Z"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(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})(e)}function l(e,t){for(var n=0;n-1},D.prototype.set=function(e,t){var n=this.__data__,r=I(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},F.prototype.clear=function(){this.__data__={hash:new R,map:new(A||D),string:new R}},F.prototype.delete=function(e){return z(this,e).delete(e)},F.prototype.get=function(e){return z(this,e).get(e)},F.prototype.has=function(e){return z(this,e).has(e)},F.prototype.set=function(e,t){return z(this,e).set(e,t),this};var H=W(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(V(e))return j?j.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}(t);var n=[];return c.test(e)&&n.push(""),e.replace(f,function(e,t,r,i){n.push(r?i.replace(d,"$1"):t||e)}),n});function U(e){if("string"==typeof e||V(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}function W(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(n);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(W.Cache||F),r}W.Cache=F;var G=Array.isArray;function q(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function V(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&C.call(e)==s}e.exports=function(e,t,n){var r=null==e?void 0:L(e,t);return void 0===r?n:r}}).call(this,t("aY11sVfy"))},"3NUYA+QN":function(e,exports,t){e.exports=t("jaIgFIJB")(657)},"3QTVJl0r":function(e,exports,t){var n=t("iRVW1B0q"),r=t("5L8v9Sbf"),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return r(e);var t=[];for(var o in Object(e))i.call(e,o)&&"constructor"!=o&&t.push(o);return t}},"3RrbUtVX":function(e,exports,t){e.exports=t("jaIgFIJB")(49)},"3SCi/F+C":function(e,exports,t){e.exports=t.p+"565764ba14b66555844672ebaf7f3eab.js"},"3dSb5nfM":function(e,exports,t){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?i:1,pageSize:a},n}var n,s,h;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,r.Component),n=t,(s=[{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.pageSize;t.activePage!==e.activePage&&this.setState({currentPage:e.activePage}),n!==e.pageSize&&this.setState({pageSize:e.pageSize})}},{key:"render",value:function(){var e=this.props,t=e.totalItems,n=e.children,o=this.state,s=o.pageSize,l=o.currentPage,u=Math.ceil(t/s);return r.createElement(r.Fragment,null,this._pageSizeSelect(),n,r.createElement(a.default,null,r.createElement("div",{className:"text-center pagination-wrapper"},r.createElement(i.Pagination,{bsSize:"small",items:u,maxButtons:10,activePage:l,onSelect:this._onChangePage,prev:!0,next:!0,first:!0,last:!0}))))}}])&&u(n.prototype,s),h&&u(n,h),t}();p(m,"propTypes",{children:n.default.node.isRequired,onChange:n.default.func.isRequired,activePage:n.default.number,pageSize:n.default.number,pageSizes:n.default.arrayOf(n.default.number),totalItems:n.default.number.isRequired,showPageSizeSelect:n.default.bool}),p(m,"defaultProps",{activePage:0,pageSizes:h,pageSize:h[0],showPageSizeSelect:!0});var g=m;exports.default=g,e.exports=exports.default},"3f361PbO":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=u(t("ii0bleBb")),r=u(t("ivGQtwpr")),i=u(t("PcYM+wZ7")),o=t("os2pWP01"),a=t("qOZsORvD"),s=u(t("45N4IsJL")),l=t("DlhHh5IY");function u(e){return e&&e.__esModule?e:{default:e}}var c=(0,i.default)({displayName:"SidebarMessageField",propTypes:{field:n.default.object,fieldAnalyzers:n.default.array,onFieldAnalyzer:n.default.func,onToggled:n.default.func,selected:n.default.bool,searchConfig:n.default.object.isRequired},getInitialState:function(){return{showActions:!1}},componentDidMount:function(){this.style.use()},componentWillUnmount:function(){this.style.unuse()},style:t("O6tq5BLj"),_onFieldAnalyzer:function(e,t){var n=this;return function(r){r.preventDefault(),n.props.onFieldAnalyzer(e,t)}},_analyzerIsDisabled:function(e){var t=this.props.searchConfig.analysis_disabled_fields;return t&&t.indexOf(e)>=0},_fieldAnalyzersList:function(){var e,t=this;return e=this._analyzerIsDisabled(this.props.field.name)?r.default.createElement("li",{key:"field-analyzers-disabled"},"Analysis features for this field have been disabled by the administrator."):this.props.fieldAnalyzers.sort(function(e,t){return(0,s.default)(e.displayName,t.displayName)}).map(function(e,n){return r.default.createElement("li",{key:"field-analyzer-button-".concat(n)},r.default.createElement("a",{href:"#",onClick:t._onFieldAnalyzer(e.refId,t.props.field.name)},e.displayName))}),r.default.createElement(o.Panel,{className:"field-analyzer"},r.default.createElement("ul",null,e))},_toggleFieldAnalyzers:function(e){e.preventDefault(),this.setState({showActions:!this.state.showActions})},render:function(){var e,t=this,n=this.state.showActions;return this.state.showActions&&(e=this._fieldAnalyzersList()),r.default.createElement("li",null,r.default.createElement("div",{className:"pull-left"},r.default.createElement("a",{href:"#",onClick:this._toggleFieldAnalyzers},r.default.createElement(a.Icon,{name:n?"caret-down":"caret-right",className:"open-analyze-field ".concat(n&&"open-analyze-field-active"),fixedWidth:!0}))),r.default.createElement("div",{className:"field-selector"},r.default.createElement(l.Input,{id:"field-selector-checkbox",type:"checkbox",label:this.props.field.name,checked:this.props.selected,onChange:function(){return t.props.onToggled(t.props.field.name)}}),e))}});exports.default=c,e.exports=exports.default},"3l3fajAv":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Sketch=void 0;var n=Object.assign||function(e){for(var t=1;t")[0],c=e.each;function f(e,t,n){var r=s[t.type]||{};return null==e?n||!t.def?null:t.def:(e=r.floor?~~e:parseFloat(e),isNaN(e)?t.def:r.mod?(e+r.mod)%r.mod:0>e?0:r.max-1,c(a,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),o.fn=e.extend(o.prototype,{parse:function(t,r,i,s){if(void 0===t)return this._rgba=[null,null,null,null],this;(t.jquery||t.nodeType)&&(t=e(t).css(r),r=void 0);var l=this,u=e.type(t),p=this._rgba=[];return void 0!==r&&(t=[t,r,i,s],u="array"),"string"===u?this.parse(d(t)||n._default):"array"===u?(c(a.rgba.props,function(e,n){p[n.idx]=f(t[n.idx],n)}),this):"object"===u?(c(a,t instanceof o?function(e,n){t[n.cache]&&(l[n.cache]=t[n.cache].slice())}:function(n,r){var i=r.cache;c(r.props,function(e,n){if(!l[i]&&r.to){if("alpha"===e||null==t[e])return;l[i]=r.to(l._rgba)}l[i][n.idx]=f(t[e],n,!0)}),l[i]&&e.inArray(null,l[i].slice(0,3))<0&&(l[i][3]=1,r.from&&(l._rgba=r.from(l[i])))}),this):void 0},is:function(e){var t=o(e),n=!0,r=this;return c(a,function(e,i){var o,a=t[i.cache];return a&&(o=r[i.cache]||i.to&&i.to(r._rgba)||[],c(i.props,function(e,t){if(null!=a[t.idx])return n=a[t.idx]===o[t.idx]})),n}),n},_space:function(){var e=[],t=this;return c(a,function(n,r){t[r.cache]&&e.push(n)}),e.pop()},transition:function(e,t){var n=o(e),r=n._space(),i=a[r],l=0===this.alpha()?o("transparent"):this,u=l[i.cache]||i.to(l._rgba),d=u.slice();return n=n[i.cache],c(i.props,function(e,r){var i=r.idx,o=u[i],a=n[i],l=s[r.type]||{};null!==a&&(null===o?d[i]=a:(l.mod&&(a-o>l.mod/2?o+=l.mod:o-a>l.mod/2&&(o-=l.mod)),d[i]=f((a-o)*t+o,r)))}),this[r](d)},blend:function(t){if(1===this._rgba[3])return this;var n=this._rgba.slice(),r=n.pop(),i=o(t)._rgba;return o(e.map(n,function(e,t){return(1-r)*i[t]+r*e}))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===n[3]&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e});return 1===n[3]&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),r=n.pop();return t&&n.push(~~(255*r)),"#"+e.map(n,function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),o.fn.parse.prototype=o.fn,a.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=e[3],s=Math.max(r,i,o),l=Math.min(r,i,o),u=s-l,c=s+l,f=.5*c;return t=l===s?0:r===s?60*(i-o)/u+360:i===s?60*(o-r)/u+120:60*(r-i)/u+240,n=0===u?0:f<=.5?u/c:u/(2-c),[Math.round(t)%360,n,f,null==a?1:a]},a.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],r=e[2],i=e[3],o=r<=.5?r*(1+n):r+n-r*n,a=2*r-o;return[Math.round(255*p(a,o,t+1/3)),Math.round(255*p(a,o,t)),Math.round(255*p(a,o,t-1/3)),i]},c(a,function(t,n){var i=n.props,a=n.cache,s=n.to,l=n.from;o.fn[t]=function(t){if(s&&!this[a]&&(this[a]=s(this._rgba)),void 0===t)return this[a].slice();var n,r=e.type(t),u="array"===r||"object"===r?t:arguments,d=this[a].slice();return c(i,function(e,t){var n=u["object"===r?e:t.idx];null==n&&(n=d[t.idx]),d[t.idx]=f(n,t)}),l?((n=o(l(d)))[a]=d,n):o(d)},c(i,function(n,i){o.fn[n]||(o.fn[n]=function(o){var a,s=e.type(o),l="alpha"===n?this._hsla?"hsla":"rgba":t,u=this[l](),c=u[i.idx];return"undefined"===s?c:("function"===s&&(o=o.call(this,c),s=e.type(o)),null==o&&i.empty?this:("string"===s&&(a=r.exec(o))&&(o=c+parseFloat(a[2])*("+"===a[1]?1:-1)),u[i.idx]=o,this[l](u)))})})}),o.hook=function(t){var n=t.split(" ");c(n,function(t,n){e.cssHooks[n]={set:function(t,r){var i,a,s="";if("transparent"!==r&&("string"!==e.type(r)||(i=d(r)))){if(r=o(i||r),!l.rgba&&1!==r._rgba[3]){for(a="backgroundColor"===n?t.parentNode:t;(""===s||"transparent"===s)&&a&&a.style;)try{s=e.css(a,"backgroundColor"),a=a.parentNode}catch(e){}r=r.blend(s&&"transparent"!==s?s:"_default")}r=r.toRgbaString()}try{t.style[n]=r}catch(e){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=o(t.elem,n),t.end=o(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}})},o.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return c(["Top","Right","Bottom","Left"],function(n,r){t["border"+r+"Color"]=e}),t}},n=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(n),function(){var e,t=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function i(e){var t,n,r=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,i={};if(r&&r.length&&r[0]&&r[r[0]])for(n=r.length;n--;)"string"==typeof r[t=r[n]]&&(i[$.camelCase(t)]=r[t]);else for(t in r)"string"==typeof r[t]&&(i[t]=r[t]);return i}$.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,t){$.fx.step[t]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(n.style(e.elem,t,e.end),e.setAttr=!0)}}),$.fn.addBack||($.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),$.effects.animateClass=function(e,n,o,a){var s=$.speed(n,o,a);return this.queue(function(){var n,o=$(this),a=o.attr("class")||"",l=s.children?o.find("*").addBack():o;l=l.map(function(){return{el:$(this),start:i(this)}}),(n=function(){$.each(t,function(t,n){e[n]&&o[n+"Class"](e[n])})})(),l=l.map(function(){return this.end=i(this.el[0]),this.diff=function(e,t){var n,i,o={};for(n in t)i=t[n],e[n]!==i&&(r[n]||!$.fx.step[n]&&isNaN(parseFloat(i))||(o[n]=i));return o}(this.start,this.end),this}),o.attr("class",a),l=l.map(function(){var e=this,t=$.Deferred(),n=$.extend({},s,{queue:!1,complete:function(){t.resolve(e)}});return this.el.animate(this.diff,n),t.promise()}),$.when.apply($,l.get()).done(function(){n(),$.each(arguments,function(){var e=this.el;$.each(this.diff,function(t){e.css(t,"")})}),s.complete.call(o[0])})})},$.fn.extend({addClass:(e=$.fn.addClass,function(t,n,r,i){return n?$.effects.animateClass.call(this,{add:t},n,r,i):e.apply(this,arguments)}),removeClass:function(e){return function(t,n,r,i){return arguments.length>1?$.effects.animateClass.call(this,{remove:t},n,r,i):e.apply(this,arguments)}}($.fn.removeClass),toggleClass:function(e){return function(t,n,r,i,o){return"boolean"==typeof n||void 0===n?r?$.effects.animateClass.call(this,n?{add:t}:{remove:t},r,i,o):e.apply(this,arguments):$.effects.animateClass.call(this,{toggle:t},n,r,i)}}($.fn.toggleClass),switchClass:function(e,t,n,r,i){return $.effects.animateClass.call(this,{add:t,remove:e},n,r,i)}})}(),function(){var e;function n(e,t,n,r){return $.isPlainObject(e)&&(t=e,e=e.effect),e={effect:e},null==t&&(t={}),$.isFunction(t)&&(r=t,n=null,t={}),("number"==typeof t||$.fx.speeds[t])&&(r=n,n=t,t={}),$.isFunction(n)&&(r=n,n=null),t&&$.extend(e,t),n=n||t.duration,e.duration=$.fx.off?0:"number"==typeof n?n:n in $.fx.speeds?$.fx.speeds[n]:$.fx.speeds._default,e.complete=r||t.complete,e}function r(e){return!(e&&"number"!=typeof e&&!$.fx.speeds[e])||"string"==typeof e&&!$.effects.effect[e]||!!$.isFunction(e)||"object"==typeof e&&!e.effect}function i(e,t){var n=t.outerWidth(),r=t.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,n,r,0];return{top:parseFloat(i[1])||0,right:"auto"===i[2]?n:parseFloat(i[2]),bottom:"auto"===i[3]?r:parseFloat(i[3]),left:parseFloat(i[4])||0}}$.expr&&$.expr.filters&&$.expr.filters.animated&&($.expr.filters.animated=(e=$.expr.filters.animated,function(n){return!!$(n).data(t)||e(n)})),!1!==$.uiBackCompat&&$.extend($.effects,{save:function(e,t){for(var n=0,r=t.length;n").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:e.width(),height:e.height()},i=document.activeElement;try{i.id}catch(e){i=document.body}return e.wrap(n),(e[0]===i||$.contains(e[0],i))&&$(i).trigger("focus"),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):($.extend(t,{position:e.css("position"),zIndex:e.css("z-index")}),$.each(["top","left","bottom","right"],function(n,r){t[r]=e.css(r),isNaN(parseInt(t[r],10))&&(t[r]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(r),n.css(t).show()},removeWrapper:function(e){var t=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===t||$.contains(e[0],t))&&$(t).trigger("focus")),e}}),$.extend($.effects,{version:"1.12.1",define:function(e,t,n){return n||(n=t,t="effect"),$.effects.effect[e]=n,$.effects.effect[e].mode=t,n},scaledDimensions:function(e,t,n){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==n?(t||100)/100:1,i="vertical"!==n?(t||100)/100:1;return{height:e.height()*i,width:e.width()*r,outerHeight:e.outerHeight()*i,outerWidth:e.outerWidth()*r}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,n){var r=e.queue();t>1&&r.splice.apply(r,[1,0].concat(r.splice(t,n))),e.dequeue()},saveStyle:function(e){e.data("ui-effects-style",e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data("ui-effects-style")||"",e.removeData("ui-effects-style")},mode:function(e,t){var n=e.is(":hidden");return"toggle"===t&&(t=n?"show":"hide"),(n?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var n,r;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=e[1]/t.width}return{x:r,y:n}},createPlaceholder:function(e){var t,n=e.css("position"),r=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",t=$("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),float:e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data("ui-effects-placeholder",t)),e.css({position:n,left:r.left,top:r.top}),t},removePlaceholder:function(e){var t="ui-effects-placeholder",n=e.data(t);n&&(n.remove(),e.removeData(t))},cleanUp:function(e){$.effects.restoreStyle(e),$.effects.removePlaceholder(e)},setTransition:function(e,t,n,r){return r=r||{},$.each(t,function(t,i){var o=e.cssUnit(i);o[0]>0&&(r[i]=o[0]*n+o[1])}),r}}),$.fn.extend({effect:function(){var e=n.apply(this,arguments),r=$.effects.effect[e.effect],i=r.mode,o=e.queue,a=o||"fx",s=e.complete,l=e.mode,u=[],c=function(e){var n=$(this),r=$.effects.mode(n,l)||i;n.data(t,!0),u.push(r),i&&("show"===r||r===i&&"hide"===r)&&n.show(),i&&"none"===r||$.effects.saveStyle(n),$.isFunction(e)&&e()};if($.fx.off||!r)return l?this[l](e.duration,s):this.each(function(){s&&s.call(this)});function f(n){var o=$(this);function a(){$.isFunction(s)&&s.call(o[0]),$.isFunction(n)&&n()}e.mode=u.shift(),!1===$.uiBackCompat||i?"none"===e.mode?(o[l](),a()):r.call(o[0],e,function(){o.removeData(t),$.effects.cleanUp(o),"hide"===e.mode&&o.hide(),a()}):(o.is(":hidden")?"hide"===l:"show"===l)?(o[l](),a()):r.call(o[0],e,a)}return!1===o?this.each(c).each(f):this.queue(a,c).queue(a,f)},show:function(e){return function(t){if(r(t))return e.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}($.fn.show),hide:function(e){return function(t){if(r(t))return e.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}($.fn.hide),toggle:function(e){return function(t){if(r(t)||"boolean"==typeof t)return e.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}($.fn.toggle),cssUnit:function(e){var t=this.css(e),n=[];return $.each(["em","px","%","pt"],function(e,r){t.indexOf(r)>0&&(n=[parseFloat(t),r])}),n},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):i(this.css("clip"),this)},transfer:function(e,t){var n=$(this),r=$(e.to),i="fixed"===r.css("position"),o=$("body"),a=i?o.scrollTop():0,s=i?o.scrollLeft():0,l=r.offset(),u={top:l.top-a,left:l.left-s,height:r.innerHeight(),width:r.innerWidth()},c=n.offset(),f=$("
").appendTo("body").addClass(e.className).css({top:c.top-a,left:c.left-s,height:n.innerHeight(),width:n.innerWidth(),position:i?"fixed":"absolute"}).animate(u,e.duration,e.easing,function(){f.remove(),$.isFunction(t)&&t()})}}),$.fx.step.clip=function(e){e.clipInit||(e.start=$(e.elem).cssClip(),"string"==typeof e.end&&(e.end=i(e.end,e.elem)),e.clipInit=!0),$(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),e={},$.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,n){e[n]=function(e){return Math.pow(e,t+2)}}),$.extend(e,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),$.each(e,function(e,t){$.easing["easeIn"+e]=t,$.easing["easeOut"+e]=function(e){return 1-t(1-e)},$.easing["easeInOut"+e]=function(e){return e<.5?t(2*e)/2:1-t(-2*e+2)/2}}),$.effects})?n.apply(exports,r):n)||(e.exports=i)},"4+J1eENA":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=s(t("ii0bleBb")),r=s(t("ivGQtwpr")),i=s(t("vU3dbCc2")),o=t("DlhHh5IY"),a=t("J6m01YZl");function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(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})(e)}function u(e,t){for(var n=0;ng)return 1}for(var v=0,b=Math.max(p.length,h.length);vi)return 1}return 0}},"47mU6c8f":function(e,exports,t){var n=t("nvPhAoN7"),r=t("dgL6+KuW"),i=t("9GW11MM0"),o=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=o},"49IksbWY":function(e,exports,t){e.exports=function(e,t){"use strict";function n(e,t){return e(t={exports:{}},t.exports),t.exports}function r(e){return function(){return e}}e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t;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};var o=i,a=function(e){};a=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")};var s=function(e,t,n,r,i,o,s,l){if(a(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,s,l],f=0;(u=new Error(t.replace(/%s/g,function(){return c[f++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}},l=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r2?n-2:0),i=2;i0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};return F({touchAction:"none"},e)}function J(e){return"both"===e.props.axis||"x"===e.props.axis}function ee(e){return"both"===e.props.axis||"y"===e.props.axis}function te(e,t,n){var r="number"==typeof t?function(e,t){return e.targetTouches&&S(e.targetTouches,function(e){return t===e.identifier})||e.changedTouches&&S(e.changedTouches,function(e){return t===e.identifier})}(e,t):null;if("number"==typeof t&&!r)return null;var i=ie(n);return function(e,t){var n=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:e.clientX+t.scrollLeft-n.left,y:e.clientY+t.scrollTop-n.top}}(r||e,n.props.offsetParent||i.offsetParent||i.ownerDocument.body)}function ne(e,t,n){var r=e.state,i=!O(r.lastX),o=ie(e);return i?{node:o,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:o,deltaX:t-r.lastX,deltaY:n-r.lastY,lastX:r.lastX,lastY:r.lastY,x:t,y:n}}function re(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function ie(t){var n=e.findDOMNode(t);if(!n)throw new Error(": Unmounted during event!");return n}var oe={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},ae=oe.mouse,se=function(n){function r(){var t,n,i;j(this,r);for(var o=arguments.length,a=Array(o),s=0;s not mounted on DragStart!");var r=n.ownerDocument;if(!(i.props.disabled||!(t.target instanceof r.defaultView.Node)||i.props.handle&&!H(t.target,i.props.handle,n)||i.props.cancel&&H(t.target,i.props.cancel,n))){var o=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0}(t);i.setState({touchIdentifier:o});var a=te(t,o,i);if(null!=a){var s=a.x,l=a.y,u=ne(i,s,l);i.props.onStart,!1!==i.props.onStart(t,u)&&(i.props.enableUserSelectHack&&Y(r),i.setState({dragging:!0,lastX:s,lastY:l}),U(r,ae.move,i.handleDrag),U(r,ae.stop,i.handleDragStop))}}},i.handleDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=te(e,i.state.touchIdentifier,i);if(null!=t){var n,r,o,a=t.x,s=t.y;if(Array.isArray(i.props.grid)){var l=a-i.state.lastX,u=s-i.state.lastY,c=(n=i.props.grid,r=l,o=u,[Math.round(r/n[0])*n[0],Math.round(o/n[1])*n[1]]),f=N(c,2);if(l=f[0],u=f[1],!l&&!u)return;a=i.state.lastX+l,s=i.state.lastY+u}var d=ne(i,a,s);if(!1!==i.props.onDrag(e,d))i.setState({lastX:a,lastY:s});else try{i.handleDragStop(new MouseEvent("mouseup"))}catch(e){var p=document.createEvent("MouseEvents");p.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.handleDragStop(p)}}},i.handleDragStop=function(t){if(i.state.dragging){var n=te(t,i.state.touchIdentifier,i);if(null!=n){var r=n.x,o=n.y,a=ne(i,r,o),s=e.findDOMNode(i);s&&i.props.enableUserSelectHack&&X(s.ownerDocument),i.setState({dragging:!1,lastX:NaN,lastY:NaN}),i.props.onStop(t,a),s&&(W(s.ownerDocument,ae.move,i.handleDrag),W(s.ownerDocument,ae.stop,i.handleDragStop))}}},i.onMouseDown=function(e){return ae=oe.mouse,i.handleDragStart(e)},i.onMouseUp=function(e){return ae=oe.mouse,i.handleDragStop(e)},i.onTouchStart=function(e){return ae=oe.touch,i.handleDragStart(e)},i.onTouchEnd=function(e){return ae=oe.touch,i.handleDragStop(e)},L(i,n)}return I(r,n),R(r,[{key:"componentWillUnmount",value:function(){var t=e.findDOMNode(this);if(t){var n=t.ownerDocument;W(n,oe.mouse.move,this.handleDrag),W(n,oe.touch.move,this.handleDrag),W(n,oe.mouse.stop,this.handleDragStop),W(n,oe.touch.stop,this.handleDragStop),this.props.enableUserSelectHack&&X(n)}}},{key:"render",value:function(){return t.cloneElement(t.Children.only(this.props.children),{style:Z(this.props.children.props.style),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),r}(t.Component);se.displayName="DraggableCore",se.propTypes={allowAnyClick:x.bool,disabled:x.bool,enableUserSelectHack:x.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:x.arrayOf(x.number),scale:x.number,handle:x.string,cancel:x.string,onStart:x.func,onDrag:x.func,onStop:x.func,onMouseDown:x.func,className:M,style:M,transform:M},se.defaultProps={allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){}};var le=function(n){function r(e){j(this,r);var t=L(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.onDragStart=function(e,n){if(!1===t.props.onStart(e,re(t,n)))return!1;t.setState({dragging:!0,dragged:!0})},t.onDrag=function(e,n){if(!t.state.dragging)return!1;var r=re(t,n),i={x:r.x,y:r.y};if(t.props.bounds){var o=i.x,a=i.y;i.x+=t.state.slackX,i.y+=t.state.slackY;var s=function(e,t,n){if(!e.props.bounds)return[t,n];var r=e.props.bounds;r="string"==typeof r?r:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(r);var i=ie(e);if("string"==typeof r){var o=i.ownerDocument,a=o.defaultView,s=void 0;if(!((s="parent"===r?i.parentNode:o.querySelector(r))instanceof a.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');var l=a.getComputedStyle(i),u=a.getComputedStyle(s);r={left:-i.offsetLeft+k(u.paddingLeft)+k(l.marginLeft),top:-i.offsetTop+k(u.paddingTop)+k(l.marginTop),right:K(s)-q(i)-i.offsetLeft+k(u.paddingRight)-k(l.marginRight),bottom:V(s)-G(i)-i.offsetTop+k(u.paddingBottom)-k(l.marginBottom)}}return O(r.right)&&(t=Math.min(t,r.right)),O(r.bottom)&&(n=Math.min(n,r.bottom)),O(r.left)&&(t=Math.max(t,r.left)),O(r.top)&&(n=Math.max(n,r.top)),[t,n]}(t,i.x,i.y),l=N(s,2),u=l[0],c=l[1];i.x=u,i.y=c,i.slackX=t.state.slackX+(o-i.x),i.slackY=t.state.slackY+(a-i.y),r.x=i.x,r.y=i.y,r.deltaX=i.x-t.state.x,r.deltaY=i.y-t.state.y}if(!1===t.props.onDrag(e,r))return!1;t.setState(i)},t.onDragStop=function(e,n){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,re(t,n)))return!1;var r={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var i=t.props.position,o=i.x,a=i.y;r.x=o,r.y=a}t.setState(r)},t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,slackX:0,slackY:0,isElementSVG:!1},t}return I(r,n),R(r,[{key:"componentWillMount",value:function(){!this.props.position||this.props.onDrag||this.props.onStop||console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}},{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&e.findDOMNode(this)instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillReceiveProps",value:function(e){!e.position||this.props.position&&e.position.x===this.props.position.x&&e.position.y===this.props.position.y||this.setState({x:e.position.x,y:e.position.y})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"render",value:function(){var e,n,r,i={},o=null,a=!Boolean(this.props.position)||this.state.dragging,s=this.props.position||this.props.defaultPosition,l={x:J(this)&&a?this.state.x:s.x,y:ee(this)&&a?this.state.y:s.y};this.state.isElementSVG?(n=l,r=this.props.positionOffset,o=Q(n,r,"")):i=function(e,t){var n=Q(e,t,"px");return D({},T("transform",P),n)}(l,this.props.positionOffset);var u=this.props,c=u.defaultClassName,f=u.defaultClassNameDragging,d=u.defaultClassNameDragged,p=t.Children.only(this.props.children),h=E(p.props.className||"",c,(D(e={},f,this.state.dragging),D(e,d,this.state.dragged),e));return t.createElement(se,F({},this.props,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(p,{className:h,style:F({},p.props.style,i),transform:o}))}}]),r}(t.Component);return le.displayName="Draggable",le.propTypes=F({},se.propTypes,{axis:x.oneOf(["both","x","y","none"]),bounds:x.oneOfType([x.shape({left:x.number,right:x.number,top:x.number,bottom:x.number}),x.string,x.oneOf([!1])]),defaultClassName:x.string,defaultClassNameDragging:x.string,defaultClassNameDragged:x.string,defaultPosition:x.shape({x:x.number,y:x.number}),positionOffset:x.shape({x:x.oneOfType([x.number,x.string]),y:x.oneOfType([x.number,x.string])}),position:x.shape({x:x.number,y:x.number}),className:M,style:M,transform:M}),le.defaultProps=F({},se.defaultProps,{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}),le.default=le,le.DraggableCore=se,le}(t("vU3dbCc2"),t("ivGQtwpr"))},"4C60y28D":function(e,exports,t){e.exports=t.p+"89ce11d3cf8121e606115544cd87bb77.js"},"4Ci73f+q":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=f(t("ii0bleBb")),r=f(t("ivGQtwpr")),i=f(t("PcYM+wZ7")),o=f(t("SIdPoB4K")),a=f(t("9K+LxPk5")),s=f(t("nhjeObmE")),l=f(t("Vlmmfvoh")),u=f(t("BrroONhh")),c=f(t("lOXTQv9i"));function f(e){return e&&e.__esModule?e:{default:e}}var d=(0,i.default)({displayName:"StatisticsCondition",propTypes:{onUpdate:n.default.func},getInitialState:function(){return{alert:o.default.clone(this.props.alert)}},_handleChangeCondition:function(e,t){var n=o.default.clone(this.state.alert);n.condition_parameters[e]="threshold"===e||"additional_threshold"===e||"time"===e?parseInt(t):t,this.setState({alert:n}),this.props.onUpdate("condition_parameters",n.condition_parameters)},_handleChangeStream:function(e,t){var n=o.default.clone(this.state.alert);n.stream[e]=t,this.setState({alert:n}),this.props.onUpdate("stream",n.stream)},render:function(){var e,t;return this.props.alert.condition_parameters.time>=1440?(e=this.props.alert.condition_parameters.time/1440,t=1440):this.props.alert.condition_parameters.time>=60?(e=this.props.alert.condition_parameters.time/60,t=60):(e=this.props.alert.condition_parameters.time,t=1),r.default.createElement("div",null,r.default.createElement(a.default,{onUpdate:this.props.onUpdate,title:this.props.alert.title,severity:this.props.alert.severity,isPluginLoggingAlertPresent:this.props.isPluginLoggingAlertPresent}),r.default.createElement("br",null),r.default.createElement(s.default,{stream:this.props.alert.stream,onSaveStream:this._handleChangeStream,message:this.props.message,matchData:this.props.matchData}),r.default.createElement("br",null),r.default.createElement(l.default,{onUpdate:this._handleChangeCondition,time:e.toString(),time_type:t.toString()}),r.default.createElement("br",null),r.default.createElement(c.default,{onUpdate:this._handleChangeCondition,type:this.props.alert.condition_parameters.type,field:this.props.alert.condition_parameters.field,threshold:this.props.alert.condition_parameters.threshold,threshold_type:this.props.alert.condition_parameters.threshold_type}),r.default.createElement("br",null),r.default.createElement(u.default,{onUpdate:this.props.onUpdate,description:this.props.alert.description}),r.default.createElement("br",null))}});exports.default=d,e.exports=exports.default},"4Hbpcw0x":function(e,exports,t){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;no&&l>s||(e.moveItem(r,o),t.getItem().index=o)}}};var b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,p(t).apply(this,arguments))}var n,i,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,r["default"].Component),n=t,(i=[{key:"render",value:function(){var e=this.props,t=e.content,n=e.isDragging,i=e.isOver,o=e.connectDragSource,u=e.connectDropTarget,c=[l.default.listGroupItem];n&&c.push("dragging"),i&&c.push("over");var f=r.default.createElement("span",{className:l.default.itemHandle},r.default.createElement(s.default,{name:"sort"})),d=r.default.createElement("div",{className:"sortable-list-item"},r.default.createElement(a.ListGroupItem,{className:c.join(" ")},r.default.createElement("div",null,this.props.disableDragging?null:f,t)));return this.props.disableDragging?d:o(u(d))}}])&&f(n.prototype,i),o&&f(n,o),t}();m(b,"propTypes",{connectDragSource:n.default.func.isRequired,connectDropTarget:n.default.func.isRequired,content:n.default.any.isRequired,disableDragging:n.default.bool,index:n.default.number.isRequired,isDragging:n.default.bool.isRequired,isOver:n.default.bool.isRequired,id:n.default.any.isRequired,moveItem:n.default.func.isRequired}),m(b,"defaultProps",{disableDragging:!1});var y=(0,o.DropTarget)(g,v,function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver()}})((0,o.DragSource)(g,{beginDrag:function(e){return{id:e.id,index:e.index}}},function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(b));exports.default=y,e.exports=exports.default},"4b8PWZxA":function(e,exports,t){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,t("aY11sVfy"))},"4bh9nC3d":function(e,exports,t){e.exports=t("jaIgFIJB")(437)},"4cLJWkbQ":function(e,exports,t){var n=t("jBfUYu/J"),r=t("pL6zch2t"),i=t("nIQP9B2F"),o=t("8NIKrZOh"),a=t("50XfFAhE"),s=t("8H4J8m+L");function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},"4dyM+bxd":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r=(n=t("nXSFNspX"))&&n.__esModule?n:{default:n};var i={NAVBAR_HEIGHT:55,scrollToHint:function(e){var t=this;if(!this.isElementVisible(e)){var n=(0,r.default)("#scroll-to-hint");n.fadeIn("fast").delay(1500).fadeOut("fast").on("click",function(i){i.preventDefault();var o=window.pageYOffset-t.NAVBAR_HEIGHT+e.getBoundingClientRect().top;(0,r.default)("html, body").animate({scrollTop:o},"fast"),n.off("click")})}},isElementVisible:function(e){var t=e.getBoundingClientRect();return t.top>0&&t.bottom>0}};exports.default=i,e.exports=exports.default},"4eVeBMFY":function(e,exports,t){e.exports=t("jaIgFIJB")("./node_modules/react-overlays/lib/utils/ownerDocument.js")},"4h5bTKf/":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=f(t("ii0bleBb")),r=f(t("ivGQtwpr")),i=f(t("PcYM+wZ7")),o=f(t("vU3dbCc2")),a=f(t("IWoTIbq3")),s=t("qOZsORvD"),l=f(t("7QAbkgSv")),u=f(t("tEFgrcgr")),c=f(t("joftZBqi"));function f(e){return e&&e.__esModule?e:{default:e}}var d=l.default.getStore("Search"),p=(0,i.default)({displayName:"LegacyHistogram",propTypes:{formattedHistogram:n.default.array.isRequired,histogram:n.default.object.isRequired,stream:n.default.object,permissions:n.default.arrayOf(n.default.string).isRequired},getInitialState:function(){return{}},componentDidMount:function(){this._renderHistogram(this.props.formattedHistogram),window.addEventListener("resize",this._onResize)},componentDidUpdate:function(e){JSON.stringify(this.props.formattedHistogram)!==JSON.stringify(e.formattedHistogram)&&this._updateHistogram(this.props.formattedHistogram,e.formattedHistogram)},componentWillUnmount:function(){window.removeEventListener("resize",this._onResize)},WIDGET_TYPE:"SEARCH_RESULT_CHART",RESOLUTIONS:["year","quarter","month","week","day","hour","minute"],eventThrottler:new u.default,_onResize:function(){this.eventThrottler.throttle(function(){return c.default.redrawResultGraph()})},_renderHistogram:function(e){c.default.resetContainerElements(o.default.findDOMNode(this)),c.default.setData(e,this.props.stream),c.default.drawResultGraph()},_updateHistogram:function(e){c.default.updateData(e)},_resolutionChanged:function(e){return function(t){t.preventDefault(),d.resolution=e}},_getFirstHistogramValue:function(){return"relative"===d.rangeType&&0===d.rangeParams.get("relative")?null:this.props.histogram.histogram_boundaries.from},render:function(){var e=this;void 0===d.resolution&&(d.resolution=this.props.histogram.interval);var t=this.RESOLUTIONS.map(function(t){var n="date-histogram-res-selector";e.props.histogram.interval===t&&(n+=" selected-resolution");var i=t===e.RESOLUTIONS[e.RESOLUTIONS.length-1]?"":",";return r.default.createElement("li",{key:t},r.default.createElement("a",{href:"#",className:n,"data-resolution":t,onClick:e._resolutionChanged(t)},t),i)}),n=r.default.createElement("ul",{className:"graph-resolution-selector list-inline"},r.default.createElement("li",null,r.default.createElement(s.Icon,{name:"clock-o"})),t);return r.default.createElement("div",{className:"content-col"},r.default.createElement("div",{className:"pull-right"},r.default.createElement(a.default,{title:"Add to dashboard",widgetType:this.WIDGET_TYPE,configuration:{interval:this.props.histogram.interval},pullRight:!0,permissions:this.props.permissions,isStreamSearch:null!==this.props.stream})),r.default.createElement("h1",null,"Histogram"),n,r.default.createElement("div",{id:"result-graph-container"},r.default.createElement("div",{id:"y_axis"}),r.default.createElement("div",{id:"result-graph","data-from":this._getFirstHistogramValue(),"data-to":this.props.histogram.histogram_boundaries.to}),r.default.createElement("div",{id:"result-graph-timeline"})))}});exports.default=p,e.exports=exports.default},"4hTGo7hA":function(e,exports,t){e.exports=t.p+"813d2c2b69d315ecfd57d19cb47ada89.js"},"4mR9upks":function(e,exports,t){e.exports=t.p+"119743777401e390559af27d50058c00.js"},"4n0j/lOJ":function(e,exports,t){(exports=e.exports=t("MAMP9hQI")(!1)).push([e.i,"._3UX-eXImcuVTwy2RnA1sHR{width:100%}._-7U2Ezn-ZC9qiyXd9_9GU{display:flex;justify-content:space-between}._1QmsZRqnA_J4b6L50cBQnS{line-height:1.5}._1Mqy3PhAt1J61UQyxIX48a{margin-top:5px;margin-bottom:5px}._3j_6UWe2Z9rlHK2soISiO6{margin-right:5px;width:100%}._2uHb4686qY1al5UPUphSR1{font-size:12px;padding-top:0;padding-right:0;float:right}._1Md0Wh0oePiTQg2picOoMN{font-size:12px}._2QpKpx97vrRtpuF3ICa43d{color:#aaa;font-weight:400}._2_gghR2yq_kXayySP2hbD7{display:inline-block}._3xReEETGkHpFymy3PZp9Hd{margin-left:5px;top:3px;position:relative}._3LK-UpZ9anfSWrDJ-7FXVn{height:20px}._1BSUeFyWU7RhdaHv1DDg6I{display:inline-block;overflow-y:auto;width:100%}._11cauxw2KJ_5k7uxV6vyXi{margin-top:2em}",""]),exports.locals={fullWidth:"_3UX-eXImcuVTwy2RnA1sHR",decoratorBox:"_-7U2Ezn-ZC9qiyXd9_9GU",decoratorType:"_1QmsZRqnA_J4b6L50cBQnS",addDecoratorButtonContainer:"_1Mqy3PhAt1J61UQyxIX48a",addDecoratorSelect:"_3j_6UWe2Z9rlHK2soISiO6",helpLink:"_2uHb4686qY1al5UPUphSR1",helpPopover:"_1Md0Wh0oePiTQg2picOoMN",decoratorMarker:"_2QpKpx97vrRtpuF3ICa43d",decoratorFieldWrapper:"_2_gghR2yq_kXayySP2hbD7",decoratorMarkerSidebar:"_3xReEETGkHpFymy3PZp9Hd",helpLinkContainer:"_3LK-UpZ9anfSWrDJ-7FXVn",decoratorListContainer:"_1BSUeFyWU7RhdaHv1DDg6I",noDecoratorsAlert:"_11cauxw2KJ_5k7uxV6vyXi"}},"4sUTceI3":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=c(t("ii0bleBb")),r=c(t("ivGQtwpr")),i=c(t("PcYM+wZ7")),o=c(t("4KF7VOU5")),a=t("os2pWP01"),s=t("DlhHh5IY"),l=c(t("7QAbkgSv")),u=c(t("1SPPmkhJ"));function c(e){return e&&e.__esModule?e:{default:e}}var f=l.default.getStore("SavedSearches"),d=u.default.getActions("SavedSearches"),p=(0,i.default)({displayName:"SavedSearchControls",propTypes:{currentSavedSearch:n.default.string,pullRight:n.default.bool},mixins:[o.default.listenTo(f,"_updateTitle")],getInitialState:function(){return{title:"",error:!1}},componentDidMount:function(){this._updateTitle()},componentDidUpdate:function(e){e.currentSavedSearch!==this.props.currentSavedSearch&&this._updateTitle()},_isSearchSaved:function(){return void 0!==this.props.currentSavedSearch},_updateTitle:function(){if(this._isSearchSaved()){var e=f.getSavedSearch(this.props.currentSavedSearch);void 0!==e&&this.setState({title:e.title,error:!1})}else""!==this.state.title&&this.setState({title:"",error:!1})},_openModal:function(){this.saveSearchModal.open()},_hide:function(){this.saveSearchModal.close()},_save:function(){var e=this;this.state.error||(this._isSearchSaved()?d.update.triggerPromise(this.props.currentSavedSearch,this.title.getValue()):d.create.triggerPromise(this.title.getValue())).then(function(){return e._hide()})},_deleteSavedSearch:function(e,t){t.preventDefault(),window.confirm("Do you really want to delete this saved search?")&&d.delete(this.props.currentSavedSearch)},_titleChanged:function(){this.setState({error:!f.isValidTitle(this.props.currentSavedSearch,this.title.getValue())})},_getNewSavedSearchButtons:function(){return r.default.createElement(a.Button,{bsStyle:"success",bsSize:"small",onClick:this._openModal},"Save search criteria")},_getEditSavedSearchControls:function(){return r.default.createElement(a.DropdownButton,{bsSize:"small",title:"Saved search",id:"saved-search-actions-dropdown",pullRight:this.props.pullRight},r.default.createElement(a.MenuItem,{onSelect:this._openModal},"Update search criteria"),r.default.createElement(a.MenuItem,{divider:!0}),r.default.createElement(a.MenuItem,{onSelect:this._deleteSavedSearch},"Delete saved search"))},render:function(){var e=this;return r.default.createElement("div",{style:{display:"inline-block"}},this._isSearchSaved()?this._getEditSavedSearchControls():this._getNewSavedSearchButtons(),r.default.createElement(s.BootstrapModalForm,{ref:function(t){e.saveSearchModal=t},title:this._isSearchSaved()?"Update saved search":"Save search criteria",onSubmitForm:this._save,submitButtonText:"Save"},r.default.createElement(s.Input,{type:"text",id:"saved-search-title",label:"Title",ref:function(t){e.title=t},required:!0,defaultValue:this.state.title,onChange:this._titleChanged,bsStyle:this.state.error?"error":null,help:this.state.error?"Title was already taken.":"Type a name describing the current search.",autoFocus:!0})))}});exports.default=p,e.exports=exports.default},"4t5gKptG":function(e,exports,t){e.exports=t("jaIgFIJB")(36)},"4y+VVb9w":function(e,exports,t){(function(e){var n=t("4b8PWZxA"),r=exports&&!exports.nodeType&&exports,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}).call(this,t("9YbPW59L")(e))},"5+TFW7FV":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=o;var n=i(t("ivGQtwpr")),r=i(t("i0QD5uKp"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){for(var t=e.classNames,r=e.firstDayOfWeek,i=e.showWeekNumbers,o=e.weekdaysLong,a=e.weekdaysShort,s=e.locale,l=e.localeUtils,u=e.weekdayElement,c=[],f=0;f<7;f+=1){var d=(f+r)%7,p={key:f,className:t.weekday,weekday:d,weekdaysLong:o,weekdaysShort:a,localeUtils:l,locale:s},h=n.default.isValidElement(u)?n.default.cloneElement(u,p):n.default.createElement(u,p);c.push(h)}return n.default.createElement("div",{className:t.weekdays,role:"rowgroup"},n.default.createElement("div",{className:t.weekdaysRow,role:"row"},i&&n.default.createElement("div",{className:t.weekday}),c))}o.propTypes={classNames:r.default.shape({weekday:r.default.string.isRequired,weekdays:r.default.string.isRequired,weekdaysRow:r.default.string.isRequired}).isRequired,firstDayOfWeek:r.default.number.isRequired,weekdaysLong:r.default.arrayOf(r.default.string),weekdaysShort:r.default.arrayOf(r.default.string),showWeekNumbers:r.default.bool,locale:r.default.string.isRequired,localeUtils:r.default.localeUtils.isRequired,weekdayElement:r.default.oneOfType([r.default.element,r.default.func,r.default.instanceOf(n.default.Component)])}},"50Juodil":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("W2qugioQ");Object.defineProperty(exports,"Alpha",{enumerable:!0,get:function(){return c(n).default}});var r=t("2yQMsnyz");Object.defineProperty(exports,"Checkboard",{enumerable:!0,get:function(){return c(r).default}});var i=t("iCQRg+2H");Object.defineProperty(exports,"EditableInput",{enumerable:!0,get:function(){return c(i).default}});var o=t("4OJvUVPG");Object.defineProperty(exports,"Hue",{enumerable:!0,get:function(){return c(o).default}});var a=t("xlaHyUGs");Object.defineProperty(exports,"Raised",{enumerable:!0,get:function(){return c(a).default}});var s=t("BdwEOMSP");Object.defineProperty(exports,"Saturation",{enumerable:!0,get:function(){return c(s).default}});var l=t("99KYJWxP");Object.defineProperty(exports,"ColorWrap",{enumerable:!0,get:function(){return c(l).default}});var u=t("s7OgWrle");function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"Swatch",{enumerable:!0,get:function(){return c(u).default}})},"50XfFAhE":function(e,exports){e.exports=function(e){return this.__data__.has(e)}},"55Rpvld7":function(e,exports,t){"use strict";exports.__esModule=!0,exports.default=void 0;o(t("ii0bleBb"));var n=o(t("ivGQtwpr")),r=t("vU3dbCc2"),i=o(t("pBXKpzA1"));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t,o;function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i=0||(i[n]=e[n]);return i}(e,["children","in"]),a=n.default.Children.toArray(t),s=a[0],l=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,n.default.createElement(i.default,o,r?n.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):n.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(n.default.Component);a.propTypes={};var s=a;exports.default=s,e.exports=exports.default},"57Yejqod":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=a(t("ii0bleBb")),r=a(t("ivGQtwpr")),i=t("os2pWP01"),o=t("cWz9qwug");function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(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})(e)}function l(e,t){for(var n=0;n=0&&e<2?"one":"other"},fields:{year:{displayName:"année",relative:{0:"cette année",1:"l’année prochaine","-1":"l’année dernière"},relativeTime:{future:{one:"dans {0} an",other:"dans {0} ans"},past:{one:"il y a {0} an",other:"il y a {0} ans"}}},"year-short":{displayName:"an",relative:{0:"cette année",1:"l’année prochaine","-1":"l’année dernière"},relativeTime:{future:{one:"dans {0} a",other:"dans {0} a"},past:{one:"il y a {0} a",other:"il y a {0} a"}}},month:{displayName:"mois",relative:{0:"ce mois-ci",1:"le mois prochain","-1":"le mois dernier"},relativeTime:{future:{one:"dans {0} mois",other:"dans {0} mois"},past:{one:"il y a {0} mois",other:"il y a {0} mois"}}},"month-short":{displayName:"m.",relative:{0:"ce mois-ci",1:"le mois prochain","-1":"le mois dernier"},relativeTime:{future:{one:"dans {0} m.",other:"dans {0} m."},past:{one:"il y a {0} m.",other:"il y a {0} m."}}},day:{displayName:"jour",relative:{0:"aujourd’hui",1:"demain",2:"après-demain","-2":"avant-hier","-1":"hier"},relativeTime:{future:{one:"dans {0} jour",other:"dans {0} jours"},past:{one:"il y a {0} jour",other:"il y a {0} jours"}}},"day-short":{displayName:"j",relative:{0:"aujourd’hui",1:"demain",2:"après-demain","-2":"avant-hier","-1":"hier"},relativeTime:{future:{one:"dans {0} j",other:"dans {0} j"},past:{one:"il y a {0} j",other:"il y a {0} j"}}},hour:{displayName:"heure",relative:{0:"cette heure-ci"},relativeTime:{future:{one:"dans {0} heure",other:"dans {0} heures"},past:{one:"il y a {0} heure",other:"il y a {0} heures"}}},"hour-short":{displayName:"h",relative:{0:"cette heure-ci"},relativeTime:{future:{one:"dans {0} h",other:"dans {0} h"},past:{one:"il y a {0} h",other:"il y a {0} h"}}},minute:{displayName:"minute",relative:{0:"cette minute-ci"},relativeTime:{future:{one:"dans {0} minute",other:"dans {0} minutes"},past:{one:"il y a {0} minute",other:"il y a {0} minutes"}}},"minute-short":{displayName:"min",relative:{0:"cette minute-ci"},relativeTime:{future:{one:"dans {0} min",other:"dans {0} min"},past:{one:"il y a {0} min",other:"il y a {0} min"}}},second:{displayName:"seconde",relative:{0:"maintenant"},relativeTime:{future:{one:"dans {0} seconde",other:"dans {0} secondes"},past:{one:"il y a {0} seconde",other:"il y a {0} secondes"}}},"second-short":{displayName:"s",relative:{0:"maintenant"},relativeTime:{future:{one:"dans {0} s",other:"dans {0} s"},past:{one:"il y a {0} s",other:"il y a {0} s"}}}}},{locale:"fr-BE",parentLocale:"fr"},{locale:"fr-BF",parentLocale:"fr"},{locale:"fr-BI",parentLocale:"fr"},{locale:"fr-BJ",parentLocale:"fr"},{locale:"fr-BL",parentLocale:"fr"},{locale:"fr-CA",parentLocale:"fr",fields:{year:{displayName:"année",relative:{0:"cette année",1:"l’année prochaine","-1":"l’année dernière"},relativeTime:{future:{one:"Dans {0} an",other:"Dans {0} ans"},past:{one:"Il y a {0} an",other:"Il y a {0} ans"}}},"year-short":{displayName:"a",relative:{0:"cette année",1:"l’année prochaine","-1":"l’année dernière"},relativeTime:{future:{one:"dans {0} a",other:"dans {0} a"},past:{one:"il y a {0} a",other:"il y a {0} a"}}},month:{displayName:"mois",relative:{0:"ce mois-ci",1:"le mois prochain","-1":"le mois dernier"},relativeTime:{future:{one:"dans {0} mois",other:"dans {0} mois"},past:{one:"il y a {0} mois",other:"il y a {0} mois"}}},"month-short":{displayName:"m.",relative:{0:"ce mois-ci",1:"le mois prochain","-1":"le mois dernier"},relativeTime:{future:{one:"dans {0} m.",other:"dans {0} m."},past:{one:"il y a {0} m.",other:"il y a {0} m."}}},day:{displayName:"jour",relative:{0:"aujourd’hui",1:"demain",2:"après-demain","-2":"avant-hier","-1":"hier"},relativeTime:{future:{one:"dans {0} jour",other:"dans {0} jours"},past:{one:"il y a {0} jour",other:"il y a {0} jours"}}},"day-short":{displayName:"j",relative:{0:"aujourd’hui",1:"demain",2:"après-demain","-2":"avant-hier","-1":"hier"},relativeTime:{future:{one:"dans {0} j",other:"dans {0} j"},past:{one:"il y a {0} j",other:"il y a {0} j"}}},hour:{displayName:"heure",relative:{0:"cette heure-ci"},relativeTime:{future:{one:"dans {0} heure",other:"dans {0} heures"},past:{one:"il y a {0} heure",other:"il y a {0} heures"}}},"hour-short":{displayName:"h",relative:{0:"cette heure-ci"},relativeTime:{future:{one:"dans {0} h",other:"dans {0} h"},past:{one:"il y a {0} h",other:"il y a {0} h"}}},minute:{displayName:"minute",relative:{0:"cette minute-ci"},relativeTime:{future:{one:"dans {0} minute",other:"dans {0} minutes"},past:{one:"il y a {0} minute",other:"il y a {0} minutes"}}},"minute-short":{displayName:"min",relative:{0:"cette minute-ci"},relativeTime:{future:{one:"dans {0} min",other:"dans {0} min"},past:{one:"il y a {0} min",other:"il y a {0} min"}}},second:{displayName:"seconde",relative:{0:"maintenant"},relativeTime:{future:{one:"dans {0} seconde",other:"dans {0} secondes"},past:{one:"il y a {0} seconde",other:"il y a {0} secondes"}}},"second-short":{displayName:"s",relative:{0:"maintenant"},relativeTime:{future:{one:"dans {0} s",other:"dans {0} s"},past:{one:"il y a {0} s",other:"il y a {0} s"}}}}},{locale:"fr-CD",parentLocale:"fr"},{locale:"fr-CF",parentLocale:"fr"},{locale:"fr-CG",parentLocale:"fr"},{locale:"fr-CH",parentLocale:"fr"},{locale:"fr-CI",parentLocale:"fr"},{locale:"fr-CM",parentLocale:"fr"},{locale:"fr-DJ",parentLocale:"fr"},{locale:"fr-DZ",parentLocale:"fr"},{locale:"fr-GA",parentLocale:"fr"},{locale:"fr-GF",parentLocale:"fr"},{locale:"fr-GN",parentLocale:"fr"},{locale:"fr-GP",parentLocale:"fr"},{locale:"fr-GQ",parentLocale:"fr"},{locale:"fr-HT",parentLocale:"fr",fields:{year:{displayName:"année",relative:{0:"cette année",1:"l’année prochaine","-1":"l’année dernière"},relativeTime:{future:{one:"dans {0} an",other:"dans {0} ans"},past:{one:"il y a {0} an",other:"il y a {0} ans"}}},"year-short":{displayName:"an",relative:{0:"cette année",1:"l’année prochaine","-1":"l’année dernière"},relativeTime:{future:{one:"dans {0} a",other:"dans {0} a"},past:{one:"il y a {0} a",other:"il y a {0} a"}}},month:{displayName:"mois",relative:{0:"ce mois-ci",1:"le mois prochain","-1":"le mois dernier"},relativeTime:{future:{one:"dans {0} mois",other:"dans {0} mois"},past:{one:"il y a {0} mois",other:"il y a {0} mois"}}},"month-short":{displayName:"m.",relative:{0:"ce mois-ci",1:"le mois prochain","-1":"le mois dernier"},relativeTime:{future:{one:"dans {0} m.",other:"dans {0} m."},past:{one:"il y a {0} m.",other:"il y a {0} m."}}},day:{displayName:"jour",relative:{0:"aujourd’hui",1:"demain",2:"après-demain","-2":"avant-hier","-1":"hier"},relativeTime:{future:{one:"dans {0} jour",other:"dans {0} jours"},past:{one:"il y a {0} jour",other:"il y a {0} jours"}}},"day-short":{displayName:"jr.",relative:{0:"aujourd’hui",1:"demain",2:"après-demain","-2":"avant-hier","-1":"hier"},relativeTime:{future:{one:"dans {0} j",other:"dans {0} j"},past:{one:"il y a {0} j",other:"il y a {0} j"}}},hour:{displayName:"heure",relative:{0:"cette heure-ci"},relativeTime:{future:{one:"dans {0} heure",other:"dans {0} heures"},past:{one:"il y a {0} heure",other:"il y a {0} heures"}}},"hour-short":{displayName:"hr",relative:{0:"cette heure-ci"},relativeTime:{future:{one:"dans {0} h",other:"dans {0} h"},past:{one:"il y a {0} h",other:"il y a {0} h"}}},minute:{displayName:"minute",relative:{0:"cette minute-ci"},relativeTime:{future:{one:"dans {0} minute",other:"dans {0} minutes"},past:{one:"il y a {0} minute",other:"il y a {0} minutes"}}},"minute-short":{displayName:"min.",relative:{0:"cette minute-ci"},relativeTime:{future:{one:"dans {0} min",other:"dans {0} min"},past:{one:"il y a {0} min",other:"il y a {0} min"}}},second:{displayName:"seconde",relative:{0:"maintenant"},relativeTime:{future:{one:"dans {0} seconde",other:"dans {0} secondes"},past:{one:"il y a {0} seconde",other:"il y a {0} secondes"}}},"second-short":{displayName:"s",relative:{0:"maintenant"},relativeTime:{future:{one:"dans {0} s",other:"dans {0} s"},past:{one:"il y a {0} s",other:"il y a {0} s"}}}}},{locale:"fr-KM",parentLocale:"fr"},{locale:"fr-LU",parentLocale:"fr"},{locale:"fr-MA",parentLocale:"fr"},{locale:"fr-MC",parentLocale:"fr"},{locale:"fr-MF",parentLocale:"fr"},{locale:"fr-MG",parentLocale:"fr"},{locale:"fr-ML",parentLocale:"fr"},{locale:"fr-MQ",parentLocale:"fr"},{locale:"fr-MR",parentLocale:"fr"},{locale:"fr-MU",parentLocale:"fr"},{locale:"fr-NC",parentLocale:"fr"},{locale:"fr-NE",parentLocale:"fr"},{locale:"fr-PF",parentLocale:"fr"},{locale:"fr-PM",parentLocale:"fr"},{locale:"fr-RE",parentLocale:"fr"},{locale:"fr-RW",parentLocale:"fr"},{locale:"fr-SC",parentLocale:"fr"},{locale:"fr-SN",parentLocale:"fr"},{locale:"fr-SY",parentLocale:"fr"},{locale:"fr-TD",parentLocale:"fr"},{locale:"fr-TG",parentLocale:"fr"},{locale:"fr-TN",parentLocale:"fr"},{locale:"fr-VU",parentLocale:"fr"},{locale:"fr-WF",parentLocale:"fr"},{locale:"fr-YT",parentLocale:"fr"}]}()},"5omYMvbi":function(e,exports,t){var n,r,i={},o=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=n.apply(this,arguments)),r}),a=function(e){return document.querySelector(e)},s=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=a.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),l=null,u=0,c=[],f=t("+x639LiG");function d(e,t){for(var n=0;n=0&&c.splice(t,1)}function g(e){var t=document.createElement("style");return e.attrs.type="text/css",v(t,e.attrs),h(e,t),t}function v(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function b(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var a=u++;n=l||(l=g(t)),r=_.bind(null,n,a,!1),i=_.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",v(t,e.attrs),h(e,t),t}(t),r=E.bind(null,n,t),i=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=x.bind(null,n),i=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return d(n,t),function(e){for(var r=[],o=0;o0&&!--r&&(n(),n=null)}},"5zaXzykF":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=m(t("ii0bleBb")),r=m(t("ivGQtwpr")),i=m(t("PcYM+wZ7")),o=m(t("4KF7VOU5")),a=(m(t("H/eHg5XM")),t("os2pWP01")),s=m(t("y48dxWbc")),l=m(t("s5h7rPn2")),u=m(t("Maji1yex")),c=m(t("956JmyQG")),f=m(t("Fceew81t")),d=m(t("aFEO3Cp0")),p=m(t("qzLWmYRe")),h=m(t("5u3+/lB8"));function m(e){return e&&e.__esModule?e:{default:e}}var g=s.default.get("Dashboards"),v=g.DashboardsActions,b=g.DashboardsStore,y=(0,i.default)({displayName:"DashboardListPage",propTypes:{permissions:n.default.arrayOf(n.default.string)},mixins:[o.default.connect(b,"dashboards"),u.default],getInitialState:function(){return{dashboardsLoaded:!1}},componentDidMount:function(){v.list()},render:function(){var e,t=this.state.dashboards.dashboards,n=t,i=this.isPermitted(this.props.permissions,["dashboards:create"])?r.default.createElement(h.default,{action:"create",buttonClass:"btn-success btn-lg"}):null,o=r.default.createElement(d.default,{title:"Dashboards"},r.default.createElement("span",null,"Use dashboards to create specific views on your messages. Create a new dashboard here and add any graph or chart you create in other parts of Graylog with one click."),r.default.createElement("span",null,"Take a look at the"," ",r.default.createElement(c.default,{page:l.default.PAGES.DASHBOARDS,text:"dashboard tutorial"})," ","for lots of other useful tips."),i);return e=t?t&&t.count()>0&&n.isEmpty()?r.default.createElement("div",null,"No dashboards matched your filter criteria."):r.default.createElement(p.default,{dashboards:n,permissions:this.props.permissions}):r.default.createElement(f.default,null),r.default.createElement("div",null,o,r.default.createElement(a.Row,{className:"content"},r.default.createElement(a.Col,{md:12},e)))}});exports.default=y,e.exports=exports.default},"6+njDbb2":function(e,exports,t){var n=t("6HFlHHd9");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t("5omYMvbi")(n,r);n.locals&&(e.exports=n.locals)},"60ki+eOU":function(e,exports,t){e.exports=t.p+"df65c8d86b6d80ad317baf0eaf051021.js"},"6BSwo193":function(e,exports,t){var n=t("yiYgn92r"),r=t("Dd9klwgo");e.exports=function(e){return n(e,r(e))}},"6Dga+r6p":function(e,exports,t){"use strict";var n,r,i=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(exports,"__esModule",{value:!0}),function(e){e[e.EOF=0]="EOF",e[e.WS=1]="WS",e[e.TERM=2]="TERM",e[e.PHRASE=3]="PHRASE",e[e.AND=4]="AND",e[e.OR=5]="OR",e[e.NOT=6]="NOT",e[e.COLON=7]="COLON",e[e.MUST=8]="MUST",e[e.MUST_NOT=9]="MUST_NOT",e[e.ERROR=10]="ERROR"}(r=exports.TokenType||(exports.TokenType={}));var o=function(){this.hiddenPrefix=[],this.hiddenSuffix=[]};exports.AST=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o);exports.MissingAST=a;var s=function(e){function t(t,n){var r=e.call(this)||this;return r.modifier=t,r.right=n,r.hiddenModifierPrefix=[],r.hiddenModifierSuffix=[],r}return i(t,e),t.prototype.isNOTModifier=function(){return this.modifier.type===r.NOT},t}(o);exports.ModifierAST=s;var l=function(e){function t(t,n,r){var i=e.call(this)||this;return i.left=t,i.op=n,i.right=r,i.hiddenOpPrefix=[],i.hiddenOpSuffix=[],i}return i(t,e),t}(o);exports.ExpressionAST=l;var u=function(e){function t(t){var n=e.call(this)||this;return n.term=t,n}return i(t,e),t.prototype.isPhrase=function(){return-1!==this.term.asString().indexOf(" ")},t.prototype.isInclusiveRange=function(){return 0===this.term.asString().indexOf("[")},t.prototype.isExclusiveRange=function(){return 0===this.term.asString().indexOf("{")},t}(o);exports.TermAST=u;var c=function(e){function t(t,n,r){var i=e.call(this,r)||this;return i.field=t,i.colon=n,i.hiddenColonPrefix=[],i.hiddenColonSuffix=[],i}return i(t,e),t}(u);exports.TermWithFieldAST=c;var f=function(e){function t(){for(var t=[],n=0;n=this.tokenBuffer.length;){var t=this.lexer.next();if(t.type===r.EOF)return t;this.tokenBuffer.push(t)}return this.tokenBuffer[e]},e.prototype.skipHidden=function(){var e=this,t=this.syncWhile(r.WS,r.ERROR);return t.filter(function(e){return e.type===r.ERROR}).forEach(function(t){e.errors.push({position:t.beginPos,message:"Unexpected input: '"+t.asString()+"'"})}),t},e.prototype.syncWhile=function(){for(var e=this,t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var e,t,n;s(this,o);for(var r=arguments.length,i=Array(r),a=0;a=1440?(e=this.props.alert.condition_parameters.time/1440,t=1440):this.props.alert.condition_parameters.time>=60?(e=this.props.alert.condition_parameters.time/60,t=60):(e=this.props.alert.condition_parameters.time,t=1),r.default.createElement("div",null,r.default.createElement(a.default,{onUpdate:this.props.onUpdate,title:this.props.alert.title,severity:this.props.alert.severity,isPluginLoggingAlertPresent:this.props.isPluginLoggingAlertPresent}),r.default.createElement("br",null),r.default.createElement(s.default,{stream:this.props.alert.stream,onSaveStream:this._handleChangeStream,message:this.props.message,matchData:this.props.matchData}),r.default.createElement("br",null),r.default.createElement(l.default,{onUpdate:this._handleChangeCondition,threshold:this.props.alert.condition_parameters.threshold,threshold_type:this.props.alert.condition_parameters.threshold_type}),r.default.createElement("br",null),r.default.createElement(u.default,{onUpdate:this._handleChangeCondition,time:e.toString(),time_type:t.toString()}),r.default.createElement("br",null),r.default.createElement(c.default,{onUpdate:this.props.onUpdate,description:this.props.alert.description}),r.default.createElement("br",null))}});exports.default=d,e.exports=exports.default},"7Lgra5ml":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n={INTERVALS:["minute","hour","day","week","month","quarter","year"],histogramIntervals:function(){return this.INTERVALS}};exports.default=n,e.exports=exports.default},"7PCskGWS":function(e,exports){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},"7QAbkgSv":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r=(n=t("y48dxWbc"))&&n.__esModule?n:{default:n};function i(e,t){for(var n=0;n0,title:e.usage?this.state.messages.infoNoDelete:this.state.messages.infoDelete,onClick:this._deleteAlertListFunction(e.title)},r.default.createElement(g.FormattedMessage,{id:"wizard.delete",defaultMessage:"Delete"}))),n=r.default.createElement(f.IfPermitted,{permissions:"wizard_alerts_rules:read"},r.default.createElement(h.LinkContainer,{to:p.default.pluginRoute("WIZARD_UPDATELIST_ALERTLISTTITLE")(e.title.replace(/\//g,"%2F"))},r.default.createElement(c.Button,{bsStyle:"info",type:"submit",title:this.state.messages.infoUpdate},r.default.createElement(g.FormattedMessage,{id:"wizard.edit",defaultMessage:"Edit"})))),i=r.default.createElement(c.Button,{id:"clone-list",type:"button",bsStyle:"info",onClick:this._onClone(e.title),title:this.state.messages.infoClone},r.default.createElement(g.FormattedMessage,{id:"wizard.clone",defaultMessage:"Clone"})),o=r.default.createElement("div",{className:"alert-actions pull-left"},n," ",i," ",t," "),a=r.default.createElement(u.Tooltip,{id:"default-user-tooltip"},r.default.createElement(g.FormattedMessage,{id:"wizard.tooltipUserList",defaultMessage:"The last user who modified the list"})),s=[r.default.createElement("td",{className:"limited"},e.title)];return this.props.config.field_order.map(function(t){if(t.enabled)switch(t.name){case"Description":s.push(r.default.createElement("td",{className:"limited"},r.default.createElement("span",{style:{whiteSpace:"pre-line"}},e.description)));break;case"Created":s.push(r.default.createElement("td",{className:"limited"},r.default.createElement(f.Timestamp,{dateTime:m.default.parseFromString(e.created_at).toString(m.default.Formats.DATETIME),relative:!0})));break;case"Last Modified":s.push(r.default.createElement("td",{className:"limited"},r.default.createElement(f.Timestamp,{dateTime:m.default.parseFromString(e.last_modified).toString(m.default.Formats.DATETIME),relative:!0})));break;case"User":s.push(r.default.createElement("td",{className:"limited"},r.default.createElement(f.OverlayElement,{overlay:a,placement:"top",useOverlay:!0,trigger:["hover","focus"]},e.creator_user_id)));break;case"Usage":s.push(r.default.createElement("td",{className:"limited"},r.default.createElement("span",{style:{whiteSpace:"pre-line"}},e.usage)));break;case"Lists":s.push(r.default.createElement("td",{className:"limited"},r.default.createElement("span",{style:{whiteSpace:"pre-line"}},e.lists)))}}),r.default.createElement("tr",{key:e.title,style:{color:"#000000"}},s,r.default.createElement("td",{style:{whiteSpace:"nowrap"}},o))},render:function(){var e=this,t=[this.state.fieldsTitle.title];return this.props.config.field_order.map(function(n){n.enabled&&t.push(e._getFieldName(n.name))}),t.push(this.state.fieldsTitle.actions),this.state.lists?r.default.createElement("div",null,r.default.createElement("div",{className:"alert-actions pull-right"},r.default.createElement(h.LinkContainer,{to:p.default.pluginRoute("WIZARD_NEWLIST")},r.default.createElement(c.Button,{bsStyle:"success",type:"submit",title:this.state.messages.createAlertList},r.default.createElement(g.FormattedMessage,{id:"wizard.create",defaultMessage:"Create"})))," ",r.default.createElement(h.LinkContainer,{to:p.default.pluginRoute("WIZARD_IMPORTLIST")},r.default.createElement(c.Button,{bsStyle:"success",type:"submit",title:this.state.messages.importAlertList},r.default.createElement(g.FormattedMessage,{id:"wizard.import",defaultMessage:"Import"})))," ",r.default.createElement(h.LinkContainer,{to:p.default.pluginRoute("WIZARD_EXPORTLIST")},r.default.createElement(c.Button,{bsStyle:"success",type:"submit",title:this.state.messages.exportAlertList},r.default.createElement(g.FormattedMessage,{id:"wizard.export",defaultMessage:"Export"})))),r.default.createElement(f.DataTable,{id:"alert-list",className:"table-hover",headers:t,headerCellFormatter:this._headerCellFormatter,sortByKey:"title",rows:this.state.lists,filterBy:"title",dataRowFormatter:this._listInfoFormatter,filterLabel:r.default.createElement(g.FormattedMessage,{id:"wizard.filterlists",defaultMessage:"Filter lists"}),filterKeys:["title","created_at","last_modified","creator_user_id","lists"]}),r.default.createElement(v.default,{ref:"cloneForm",onSubmit:this._onCloneSubmit})):r.default.createElement(f.Spinner,null)}});exports.default=w,e.exports=exports.default},"7jBWhjD6":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=d(t("ii0bleBb")),r=d(t("ivGQtwpr")),i=d(t("PcYM+wZ7")),o=t("SJE+bKc0"),a=t("os2pWP01"),s=t("qOZsORvD"),l=d(t("SIdPoB4K")),u=t("DlhHh5IY"),c=t("qwOa7NSh"),f=d(t("Q+OqJm0N"));function d(e){return e&&e.__esModule?e:{default:e}}var p=(0,i.default)({displayName:"ManageSettings",propTypes:{onSave:n.default.func.isRequired,config:n.default.object.isRequired},getInitialState:function(){return{config:{field_order:this.props.config.field_order,default_values:this.props.config.default_values,import_policy:this.props.config.import_policy}}},componentWillReceiveProps:function(e){this.setState({config:e.config})},_openModal:function(){this.refs.configModal.open()},_closeModal:function(){this.refs.configModal.close()},_saveConfig:function(){this.props.onSave(this.state.config),this._closeModal()},_resetConfig:function(){this.setState(this.getInitialState())},_availableFieldName:function(){return[{value:"Severity",label:r.default.createElement(c.FormattedMessage,{id:"wizard.severity",defaultMessage:"Severity"})},{value:"Description",label:r.default.createElement(c.FormattedMessage,{id:"wizard.fieldDescription",defaultMessage:"Description"})},{value:"Created",label:r.default.createElement(c.FormattedMessage,{id:"wizard.created",defaultMessage:"Created"})},{value:"Last Modified",label:r.default.createElement(c.FormattedMessage,{id:"wizard.lastModified",defaultMessage:"Last Modified"})},{value:"User",label:r.default.createElement(c.FormattedMessage,{id:"wizard.user",defaultMessage:"User"})},{value:"Alerts",label:r.default.createElement(c.FormattedMessage,{id:"wizard.alerts",defaultMessage:"Alerts"})},{value:"Status",label:r.default.createElement(c.FormattedMessage,{id:"wizard.status",defaultMessage:"Status"})},{value:"Rule",label:r.default.createElement(c.FormattedMessage,{id:"wizard.rule",defaultMessage:"Rule"})}]},_getFieldName:function(e){return this._availableFieldName().filter(function(t){return t.value===e})[0].label},_updateSorting:function(e){var t=l.default.clone(this.state.config);t.field_order=e.map(function(e){return{name:e.id,enabled:e.enabled}}),this.setState({config:t})},_sortableItems:function(){var e=this;return this.state.config.field_order.map(function(t){return{id:t.name,title:e._getFieldName(t.name),enabled:t.enabled}})},_toggleStatus:function(e){var t=this;return function(){var n=l.default.clone(t.state.config);n.field_order[e].enabled=t.refs[e].checked,t.setState({config:n})}},_statusForm:function(){var e=this;return l.default.clone(this.state.config.field_order).map(function(t,n){return r.default.createElement("tr",{key:n},r.default.createElement("td",null,e._getFieldName(t.name)),r.default.createElement("td",null,r.default.createElement("input",{ref:n,type:"checkbox",checked:t.enabled,onChange:e._toggleStatus(n)})))})},_isLoading:function(){return!this.state.config},_availableSeverityTypes:function(){return[{value:"info",label:r.default.createElement(c.FormattedMessage,{id:"wizard.info",defaultMessage:"Info"})},{value:"low",label:r.default.createElement(c.FormattedMessage,{id:"wizard.low",defaultMessage:"Low"})},{value:"medium",label:r.default.createElement(c.FormattedMessage,{id:"wizard.medium",defaultMessage:"Medium"})},{value:"high",label:r.default.createElement(c.FormattedMessage,{id:"wizard.high",defaultMessage:"High"})}]},_availableMatchingType:function(){return[{value:"AND",label:r.default.createElement(c.FormattedMessage,{id:"wizard.all",defaultMessage:"all"})},{value:"OR",label:r.default.createElement(c.FormattedMessage,{id:"wizard.atLeastOne",defaultMessage:"at least one"})}]},_availableThresholdTypes:function(){return[{value:"MORE",label:r.default.createElement(c.FormattedMessage,{id:"wizard.more",defaultMessage:"more than"})},{value:"LESS",label:r.default.createElement(c.FormattedMessage,{id:"wizard.less",defaultMessage:"less than"})}]},_availableTimeTypes:function(){return[{value:"1",label:r.default.createElement(c.FormattedMessage,{id:"wizard.minutes",defaultMessage:"minutes"})},{value:"60",label:r.default.createElement(c.FormattedMessage,{id:"wizard.hours",defaultMessage:"hours"})},{value:"1440",label:r.default.createElement(c.FormattedMessage,{id:"wizard.days",defaultMessage:"days"})}]},_availableRuleType:function(){return[{value:"1",label:r.default.createElement(c.FormattedMessage,{id:"wizard.matchesExactly",defaultMessage:"matches exactly"})},{value:"-1",label:r.default.createElement(c.FormattedMessage,{id:"wizard.notMatchesExactly",defaultMessage:"does not match exactly"})},{value:"2",label:r.default.createElement(c.FormattedMessage,{id:"wizard.matchesRegularExpression",defaultMessage:"matches regular expression"})},{value:"-2",label:r.default.createElement(c.FormattedMessage,{id:"wizard.notMatchRegularExpression",defaultMessage:"does not match regular expression"})},{value:"3",label:r.default.createElement(c.FormattedMessage,{id:"wizard.greaterThan",defaultMessage:"is greater than"})},{value:"-3",label:r.default.createElement(c.FormattedMessage,{id:"wizard.notGreaterThan",defaultMessage:"is not greater than"})},{value:"4",label:r.default.createElement(c.FormattedMessage,{id:"wizard.smallerThan",defaultMessage:"is smaller than"})},{value:"-4",label:r.default.createElement(c.FormattedMessage,{id:"wizard.notSmallerThan",defaultMessage:"is not smaller than"})},{value:"5",label:r.default.createElement(c.FormattedMessage,{id:"wizard.present",defaultMessage:"is present"})},{value:"-5",label:r.default.createElement(c.FormattedMessage,{id:"wizard.notPresent",defaultMessage:"is not present"})},{value:"6",label:r.default.createElement(c.FormattedMessage,{id:"wizard.contains",defaultMessage:"contains"})},{value:"-6",label:r.default.createElement(c.FormattedMessage,{id:"wizard.notContain",defaultMessage:"does not contain"})},{value:"7",label:r.default.createElement(c.FormattedMessage,{id:"wizard.listpresent",defaultMessage:"is present in list"})},{value:"-7",label:r.default.createElement(c.FormattedMessage,{id:"wizard.listnotpresent",defaultMessage:"is not present in list"})}]},_updateConfig:function(e,t){var n=l.default.clone(this.state.config);n.default_values[e]=t,this.setState({config:n})},_onValueChanged:function(e){var t=this;return function(n){t._updateConfig(e,n.target.value)}},_onSeverityTypeSelect:function(e){this._updateConfig("severity",e)},_onMatchingTypeSelect:function(e){this._updateConfig("matching_type",e)},_onThresholdTypeSelect:function(e){this._updateConfig("threshold_type",e)},_onTimeTypeSelect:function(e){this._updateConfig("time_type",parseInt(e))},_onRuleTypeSelect:function(e){this._updateConfig("field_type",parseInt(e))},_onCheckboxClick:function(e){this._updateConfig(e.target.name,e.target.checked)},_onRadioChange:function(e){var t=l.default.clone(this.state.config);t.import_policy=f.default.getValueFromInput(e.target),this.setState({config:t})},render:function(){if(this._isLoading())return r.default.createElement(s.Spinner,null);var e=r.default.createElement(o.Tooltip,{id:"doNothing-tooltip"},r.default.createElement(c.FormattedMessage,{id:"wizard.tooltipReplace",defaultMessage:"Replace the alert rule with the one you are importing"})),t=r.default.createElement(o.Tooltip,{id:"doNothing-tooltip"},r.default.createElement(c.FormattedMessage,{id:"wizard.tooltipDoNothing",defaultMessage:"No alert rules will be changed"})),n=r.default.createElement(o.Tooltip,{id:"doNothing-tooltip"},r.default.createElement(c.FormattedMessage,{id:"wizard.tooltipRename",defaultMessage:"The alert rule you are importing will be renamed "}));return r.default.createElement("span",null,r.default.createElement(a.Button,{bsStyle:"info",onClick:this._openModal},r.default.createElement(c.FormattedMessage,{id:"wizard.manageSettings",defaultMessage:"Manage settings"})),r.default.createElement(u.BootstrapModalForm,{ref:"configModal",title:r.default.createElement(c.FormattedMessage,{id:"wizard.manageWizardSettings",defaultMessage:"Manage Wizard settings"}),onSubmitForm:this._saveConfig,onModalClose:this._resetConfig,cancelButtonText:r.default.createElement(c.FormattedMessage,{id:"wizard.cancel",defaultMessage:"Cancel"}),submitButtonText:r.default.createElement(c.FormattedMessage,{id:"wizard.save",defaultMessage:"Save"})},r.default.createElement("div",null,r.default.createElement(o.Col,{md:6},r.default.createElement("h3",null,r.default.createElement(c.FormattedMessage,{id:"wizard.order",defaultMessage:"Order"})),r.default.createElement("p",null,r.default.createElement(c.FormattedMessage,{id:"wizard.descriptionOrder",defaultMessage:"Use drag and drop to change the order."})),r.default.createElement(s.SortableList,{items:this._sortableItems(),onMoveItem:this._updateSorting}),r.default.createElement("h3",null,r.default.createElement(c.FormattedMessage,{id:"wizard.status",defaultMessage:"Status"})),r.default.createElement("p",null,r.default.createElement(c.FormattedMessage,{id:"wizard.checkboxesStatus",defaultMessage:"Change the checkboxes to change the status."})),r.default.createElement(o.Table,{striped:!0,bordered:!0,condensed:!0,className:"top-margin"},r.default.createElement("thead",null,r.default.createElement("tr",null,r.default.createElement("th",null,r.default.createElement(c.FormattedMessage,{id:"wizard.field",defaultMessage:"Field"})),r.default.createElement("th",null,r.default.createElement(c.FormattedMessage,{id:"wizard.enabled",defaultMessage:"Enabled"})))),r.default.createElement("tbody",null,this._statusForm())),r.default.createElement("h3",null,r.default.createElement(c.FormattedMessage,{id:"wizard.importPolicy",defaultMessage:"Import strategy"})),r.default.createElement("p",null,r.default.createElement(c.FormattedMessage,{id:"wizard.descriptionImportPolicy",defaultMessage:"Choose the action when the alert rule already exists."})),r.default.createElement(o.FormGroup,null,r.default.createElement(s.OverlayElement,{overlay:t,placement:"top",useOverlay:!0,trigger:["hover","focus"]},r.default.createElement("div",{className:"radio"},r.default.createElement("label",null,r.default.createElement("input",{type:"radio",value:"DONOTHING",checked:"DONOTHING"===this.state.config.import_policy,onChange:this._onRadioChange}),r.default.createElement(c.FormattedMessage,{id:"wizard.doNothing",defaultMessage:"Don't import"})))),r.default.createElement(s.OverlayElement,{overlay:e,placement:"top",useOverlay:!0,trigger:["hover","focus"]},r.default.createElement("div",{className:"radio"},r.default.createElement("label",null,r.default.createElement("input",{type:"radio",value:"REPLACE",checked:"REPLACE"===this.state.config.import_policy,onChange:this._onRadioChange}),r.default.createElement(c.FormattedMessage,{id:"wizard.replace",defaultMessage:"Import and Replace"})))),r.default.createElement(s.OverlayElement,{overlay:n,placement:"top",useOverlay:!0,trigger:["hover","focus"]},r.default.createElement("div",{className:"radio"},r.default.createElement("label",null,r.default.createElement("input",{type:"radio",value:"RENAME",checked:"RENAME"===this.state.config.import_policy,onChange:this._onRadioChange}),r.default.createElement(c.FormattedMessage,{id:"wizard.rename",defaultMessage:"Import, but keep both alert rules"})))))),r.default.createElement(o.Col,{md:6},r.default.createElement("h3",null,r.default.createElement(c.FormattedMessage,{id:"wizard.defaultValues",defaultMessage:"Default values of the alert rule"})),r.default.createElement("p",null,r.default.createElement(c.FormattedMessage,{id:"wizard.changeDefaultValues",defaultMessage:"Change the default values."})),r.default.createElement("fieldset",{style:{marginBottom:"15px"}},r.default.createElement(u.Input,{ref:"title",id:"title",name:"title",type:"text",label:r.default.createElement(c.FormattedMessage,{id:"wizard.title",defaultMessage:"Title"}),value:this.state.config.default_values.title,onChange:this._onValueChanged("title")}),r.default.createElement(u.Input,{id:"severity",label:r.default.createElement(c.FormattedMessage,{id:"wizard.alertSeverity",defaultMessage:"Alert Severity"}),help:r.default.createElement(c.FormattedMessage,{id:"wizard.descriptionAlertSeverity",defaultMessage:"The default severity of logged alerts when adding a new notification"}),name:"severity"},r.default.createElement(s.Select,{placeholder:r.default.createElement(c.FormattedMessage,{id:"wizard.select",defaultMessage:"Select..."}),options:this._availableSeverityTypes(),matchProp:"value",value:this.state.config.default_values.severity,onChange:this._onSeverityTypeSelect})),r.default.createElement(u.Input,{ref:"matching_type",id:"matching_type",name:"matching_type",label:r.default.createElement(c.FormattedMessage,{id:"wizard.matchingType",defaultMessage:"Matching type"})},r.default.createElement(s.Select,{placeholder:r.default.createElement(c.FormattedMessage,{id:"wizard.select",defaultMessage:"Select..."}),autosize:!1,value:this.state.config.default_values.matching_type,options:this._availableMatchingType(),matchProp:"value",onChange:this._onMatchingTypeSelect})),r.default.createElement(u.Input,{ref:"threshold_type",id:"threshold_type",name:"threshold_type",label:r.default.createElement(c.FormattedMessage,{id:"wizard.thresholdType",defaultMessage:"Threshold type"})},r.default.createElement(s.Select,{placeholder:r.default.createElement(c.FormattedMessage,{id:"wizard.select",defaultMessage:"Select..."}),autosize:!1,value:this.state.config.default_values.threshold_type,options:this._availableThresholdTypes(),matchProp:"value",onChange:this._onThresholdTypeSelect})),r.default.createElement(u.Input,{ref:"threshold",id:"threshold",name:"threshold",type:"number",min:"0",label:r.default.createElement(c.FormattedMessage,{id:"wizard.threshold",defaultMessage:"Threshold"}),onChange:this._onValueChanged("threshold"),value:this.state.config.default_values.threshold}),r.default.createElement(u.Input,{ref:"time",id:"time",name:"time",type:"number",min:"1",label:r.default.createElement(c.FormattedMessage,{id:"wizard.time",defaultMessage:"Time Range"}),onChange:this._onValueChanged("time"),value:this.state.config.default_values.time}),r.default.createElement(u.Input,{ref:"time_type",id:"time_type",name:"time_type",label:r.default.createElement(c.FormattedMessage,{id:"wizard.timeType",defaultMessage:"Time Range unit"})},r.default.createElement(s.Select,{placeholder:r.default.createElement(c.FormattedMessage,{id:"wizard.select",defaultMessage:"Select..."}),autosize:!1,value:this.state.config.default_values.time_type?this.state.config.default_values.time_type.toString():"",options:this._availableTimeTypes(),matchProp:"value",onChange:this._onTimeTypeSelect})),r.default.createElement(u.Input,{ref:"field",id:"field",name:"field",type:"text",label:r.default.createElement(c.FormattedMessage,{id:"wizard.field",defaultMessage:"Field"}),onChange:this._onValueChanged("field"),value:this.state.config.default_values.field}),r.default.createElement(u.Input,{ref:"typefield_type",id:"field_type",name:"field_type",label:r.default.createElement(c.FormattedMessage,{id:"wizard.fieldType",defaultMessage:"Field type"})},r.default.createElement(s.Select,{placeholder:r.default.createElement(c.FormattedMessage,{id:"wizard.select",defaultMessage:"Select..."}),autosize:!0,value:this.state.config.default_values.field_type?this.state.config.default_values.field_type.toString():"",options:this._availableRuleType(),matchProp:"value",onChange:this._onRuleTypeSelect})),r.default.createElement(u.Input,{ref:"field_value",id:"field_value",name:"field_value",type:"text",label:r.default.createElement(c.FormattedMessage,{id:"wizard.fieldValue",defaultMessage:"Field value"}),onChange:this._onValueChanged("field_value"),value:this.state.config.default_values.field_value})),r.default.createElement("h3",null,r.default.createElement(c.FormattedMessage,{id:"wizard.conditionDefaultValues",defaultMessage:"Default values of the event"})),r.default.createElement("p",null,r.default.createElement(c.FormattedMessage,{id:"wizard.changeDefaultValues",defaultMessage:"Change the default values."})),r.default.createElement("fieldset",null,r.default.createElement(u.Input,{ref:"backlog",id:"backlog",name:"backlog",type:"number",min:"0",label:r.default.createElement(c.FormattedMessage,{id:"wizard.msgBacklog",defaultMessage:"Message Backlog"}),onChange:this._onValueChanged("backlog"),value:this.state.config.default_values.backlog}),r.default.createElement(u.Input,{ref:"grace",id:"grace",name:"grace",type:"number",min:"1",label:r.default.createElement(c.FormattedMessage,{id:"wizard.gracePeriod",defaultMessage:"Execute search every (minutes)"}),onChange:this._onValueChanged("grace"),value:this.state.config.default_values.grace}))))))}});exports.default=p,e.exports=exports.default},"7n9UTPeA":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=a(t("ii0bleBb")),r=a(t("ivGQtwpr")),i=t("qOZsORvD"),o=t("mGX5yrPY");function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(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})(e)}function l(e,t){for(var n=0;n0?t[o]=function(){for(var e=arguments.length,t=new Array(e),i=0;i thead > tr > th,&.table > tbody > tr > th,&.table > tfoot > tr > th,&.table > thead > tr > td,&.table > tbody > tr > td,&.table > tfoot > tr > td{border-top-color:",";}&.table > thead > tr > th{border-bottom-color:",";}&.table > tbody + tbody{border-top-color:",";}.table .table{background-color:",";}&.table-bordered{border-color:",";}&.table-bordered > thead > tr > th,&.table-bordered > tbody > tr > th,&.table-bordered > tfoot > tr > th,&.table-bordered > thead > tr > td,&.table-bordered > tbody > tr > td,&.table-bordered > tfoot > tr > td{border-color:",";}&.table-striped > tbody > tr:nth-of-type(odd){background-color:",";}&.table-hover > tbody > tr:hover{background-color:",";}",""],i.teinte.secondary.tre,i.teinte.secondary.tre,i.teinte.secondary.tre,i.teinte.primary.due,i.util.colorLevel(i.teinte.secondary.tre,-2),i.util.colorLevel(i.teinte.secondary.tre,-2),i.util.colorLevel(i.teinte.secondary.tre,-10),i.util.colorLevel(i.teinte.secondary.tre,-9),(o="",Object.keys(a).forEach(function(e){var t=a[e],n=t.background,r=t.hover;o+="\n &.table > thead > tr > td.".concat(e,",\n &.table > tbody > tr > td.").concat(e,",\n &.table > tfoot > tr > td.").concat(e,",\n &.table > thead > tr > th.").concat(e,",\n &.table > tbody > tr > th.").concat(e,",\n &.table > tfoot > tr > th.").concat(e,",\n &.table > thead > tr.").concat(e," > td,\n &.table > tbody > tr.").concat(e," > td,\n &.table > tfoot > tr.").concat(e," > td,\n &.table > thead > tr.").concat(e," > th,\n &.table > tbody > tr.").concat(e," > th,\n &.table > tfoot > tr.").concat(e," > th {\n background-color: ").concat(n,";\n }\n\n &.table-hover > tbody > tr > td.").concat(e,":hover,\n &.table-hover > tbody > tr > th.").concat(e,":hover,\n &.table-hover > tbody > tr.").concat(e,":hover > td,\n &.table-hover > tbody > tr:hover > .").concat(e,",\n &.table-hover > tbody > tr.").concat(e,":hover > th {\n background-color: ").concat(r,";\n }\n ")}),(0,n.css)(["",""],o)));exports.default=s,e.exports=exports.default},"8DtZho62":function(e,exports,t){var n=t("Ai8uwR4r"),r=t("HJaIYHi4"),i=t("E7RS5CCu"),o=t("baojvMiO");e.exports=function(e,t){return n(e)?e:r(e,t)?[e]:i(o(e))}},"8FtKQWAV":function(e,exports){e.exports=function e(t,n){"use strict";var r,i,o=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,a=/(^[ ]*|[ ]*$)/g,s=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,l=/^0x[0-9a-f]+$/i,u=/^0/,c=function(t){return e.insensitive&&(""+t).toLowerCase()||""+t},f=c(t).replace(a,"")||"",d=c(n).replace(a,"")||"",p=f.replace(o,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),h=d.replace(o,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),m=parseInt(f.match(l),16)||1!==p.length&&f.match(s)&&Date.parse(f),g=parseInt(d.match(l),16)||m&&d.match(s)&&Date.parse(d)||null;if(g){if(mg)return 1}for(var v=0,b=Math.max(p.length,h.length);vi)return 1}return 0}},"8H4J8m+L":function(e,exports,t){var n=t("jBfUYu/J"),r=t("U1UKruUk"),i=t("+UVuVHRt"),o=200;e.exports=function(e,t){var a=this.__data__;if(a instanceof n){var s=a.__data__;if(!r||s.lengthdiv{margin-left:5px}.search-actions p{margin-top:5px}",""])},"9YbPW59L":function(e,exports,t){e.exports=t("jaIgFIJB")(354)},"9vY6THJy":function(e,exports,t){var n=t("8DtZho62"),r=t("K9urbY79"),i=t("Ai8uwR4r"),o=t("03o60v9D"),a=t("NYE3wwKJ"),s=t("hgg5N7gh");e.exports=function(e,t,l){for(var u=-1,c=(t=n(t,e)).length,f=!1;++u=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}t("InMws7TD");var u=n.default.forwardRef(function(e,t){var r,o=e.className,u=e.flip,c=e.fixedWidth,f=e.inverse,d=e.name,p=e.pulse,h=e.rotate,m=e.size,g=e.spin,v=l(e,["className","flip","fixedWidth","inverse","name","pulse","rotate","size","spin"]),b=d.replace(/^fa-/,""),y=(0,i.default)("fa","fa-".concat(b),o,(s(r={},"fa-flip-".concat(u),!!u),s(r,"fa-rotate-".concat(h),!!h),s(r,"fa-".concat(m),!!m),s(r,"fa-fw",!!c),s(r,"fa-inverse",!!f),s(r,"fa-pulse",!!p),s(r,"fa-spin",!!g),r));return n.default.createElement("i",a({className:y},v,{ref:t}))});u.propTypes={className:r.default.string,flip:r.default.oneOf(["horizontal","vertical"]),fixedWidth:r.default.bool,inverse:r.default.bool,name:r.default.string.isRequired,pulse:r.default.bool,rotate:r.default.oneOf(["90","180","270"]),size:r.default.oneOf(["lg","2x","3x","4x","5x"]),spin:r.default.bool},u.defaultProps={className:void 0,flip:void 0,fixedWidth:!1,inverse:!1,pulse:!1,rotate:void 0,size:void 0,spin:!1};var c=u;exports.default=c,e.exports=exports.default},B4oen6P3:function(e,exports,t){e.exports=t.p+"08779e977707ce987c24ba6f85fbde1d.js"},BCMQ0siK:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("pP9ICs5Z"),r=t("zjjatDWT"),i=t("jwcVOobq");exports.default=s;var o=["second","second-short","minute","minute-short","hour","hour-short","day","day-short","month","month-short","year","year-short"],a=["best fit","numeric"];function s(e,t){t=t||{},i.isArray(e)&&(e=e.concat()),i.defineProperty(this,"_locale",{value:this._resolveLocale(e)}),i.defineProperty(this,"_options",{value:{style:this._resolveStyle(t.style),units:this._isValidUnits(t.units)&&t.units}}),i.defineProperty(this,"_locales",{value:e}),i.defineProperty(this,"_fields",{value:this._findFields(this._locale)}),i.defineProperty(this,"_messages",{value:i.objCreate(null)});var n=this;this.format=function(e,t){return n._format(e,t)}}i.defineProperty(s,"__localeData__",{value:i.objCreate(null)}),i.defineProperty(s,"__addLocaleData",{value:function(){for(var e=0;e=0)return!0;if("string"==typeof e){var t=/s$/.test(e)&&e.substr(0,e.length-1);if(t&&i.arrIndexOf.call(o,t)>=0)throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+t)}throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+o.join('", "')+'"')},s.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(s.defaultLocale);var t,n,r,i,o=s.__localeData__;for(t=0,n=e.length;t=0)return e;throw new Error('"'+e+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+a.join('", "')+'"')},s.prototype._selectUnits=function(e){var t,n,r,i=o.filter(function(e){return e.indexOf("-short")<1});for(t=0,n=i.length;t=l){var g=t?null:a(e);if(g)return s(g);p=!1,f=o,m=new n}else m=t?[]:h;e:for(;++c0&&!n._isAllSelected(t,r))}),b(g(n),"_filterItems",function(e){n._updateFilteredItems(i.default.List(e))}),b(g(n),"_isAllSelected",function(e,t){return e.count()>0&&e.count()===t.count()}),b(g(n),"_headerItem",function(){if(!n.props.enableBulkActions)return r.default.createElement(u.default.Header,null);var e=n.state,t=e.filteredItems,i=e.selected,o=i.count();return r.default.createElement(u.default.Header,null,o>0&&r.default.createElement("div",{className:f.default.headerComponentsWrapper},n.props.bulkActionsFactory(i)),r.default.createElement(l.Input,{ref:function(e){n.selectAllInput=e},id:"select-all-checkbox",type:"checkbox",label:0===o?"Select all":"".concat(o," selected"),disabled:0===t.count(),checked:n._isAllSelected(t,i),onChange:n._toggleSelectAll,wrapperClassName:"form-group-inline"}))}),b(g(n),"_toggleSelectAll",function(e){var t=e.target.checked?i.default.Set(n.state.filteredItems.map(function(e){return e[n.props.idKey]})):i.default.Set();n.setState({selected:t})}),b(g(n),"_formatItem",function(e){var t;return t=n.props.enableBulkActions?r.default.createElement(l.Input,{id:"".concat(n.props.idKey,"-checkbox"),type:"checkbox",label:e[n.props.titleKey],checked:n.state.selected.includes(e[n.props.idKey]),onChange:n._onItemSelect(e[n.props.idKey]),wrapperClassName:"form-group-inline"}):r.default.createElement("div",{id:"".concat(n.props.idKey,"-input"),className:"header"},e[n.props.titleKey]),r.default.createElement(u.default.Item,{key:"item-".concat(e[n.props.idKey])},r.default.createElement("div",{className:"".concat(f.default.itemWrapper," ").concat(n.props.enableBulkActions?"":f.default.itemWrapperStatic)},r.default.createElement("div",{className:f.default.itemActionsWrapper},n.props.itemActionsFactory(e)),t,n.props.hideDescription?null:r.default.createElement("span",{className:"description"},e[n.props.descriptionKey])))}),b(g(n),"_onItemSelect",function(e){return function(t){var r=t.target.checked?n.state.selected.add(e):n.state.selected.delete(e);n.setState({selected:r})}}),n}var n,o,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,r["default"].Component),n=t,(o=[{key:"componentDidUpdate",value:function(e){var t=this.state,n=t.filteredItems,r=t.selected;this._setSelectAllCheckboxState(this.selectAllInput,n,r),this.props.items.equals(e.items)||(this.props.enableFilter?this.filter.filterData():this._updateFilteredItems(this.props.items))}},{key:"render",value:function(){var e,t,n=this;return this.props.enableFilter&&(e=r.default.createElement(s.Row,null,r.default.createElement(s.Col,{md:12},r.default.createElement(c.default,{ref:function(e){n.filter=e},id:"".concat(a.default.kebabCase(this.props.filterLabel),"-data-filter"),label:this.props.filterLabel,data:this.props.items.toJS(),displayKey:"value",filterSuggestions:[],searchInKeys:this.props.filterKeys,onDataFiltered:this._filterItems})))),t=0===this.props.items.count()?r.default.createElement(u.default.Item,null,"No items to display"):0===this.state.filteredItems.count()?r.default.createElement(u.default.Item,null,"No items match your filter criteria"):this.state.filteredItems.map(function(e){return n._formatItem(e)}).toJS(),r.default.createElement("div",null,e,r.default.createElement(u.default,null,this._headerItem(),t))}}])&&h(n.prototype,o),d&&h(n,d),t}();b(y,"propTypes",{idKey:n.default.string,titleKey:n.default.string,descriptionKey:n.default.string,enableFilter:n.default.bool,filterKeys:n.default.arrayOf(n.default.string).isRequired,filterLabel:n.default.string,hideDescription:n.default.bool,items:o.default.list.isRequired,enableBulkActions:n.default.bool,bulkActionsFactory:n.default.func,itemActionsFactory:n.default.func}),b(y,"defaultProps",{idKey:"id",titleKey:"title",descriptionKey:"description",enableFilter:!0,filterLabel:"Filter",enableBulkActions:!0,bulkActionsFactory:function(){},itemActionsFactory:function(){}});var w=y;exports.default=w,e.exports=exports.default},BsROi1pb:function(e,exports,t){(exports=e.exports=t("MAMP9hQI")(!1)).push([e.i,"._19-qL9uBPSOUUwiqYANLK4{padding:10px 5px}._2LHLXfQYwJEuR7N-ZJqGrh{font-size:14px;line-height:20px}._2LHLXfQYwJEuR7N-ZJqGrh label{min-height:20px;margin-bottom:2px;margin-right:5px}._2LHLXfQYwJEuR7N-ZJqGrh label *{cursor:pointer}._1Jw6nWf2fas4H72UzDRsC9{display:inline-block;width:20px;margin-right:5px}.a8ZEOFlDcMDa9uUgEFcz6.fa-stack{cursor:pointer;font-size:1.4em;line-height:20px;width:1em;height:1em;vertical-align:text-top}.a8ZEOFlDcMDa9uUgEFcz6:hover *{color:#731748}._2wMGldL0ffdgCRGV9Edg94{color:#fff}._3MsLldg8ZX1OV4Mvzyu7JS{font-size:14px}._2s4P5KGfM9MLQgNNcXwGhe{font-size:.95em;margin-left:.5em;color:#aaa}._2Ug3D6VdFKO2jFmGz6g0pN{border-left:1px solid #eee;margin-left:35px;margin-top:10px;padding-left:5px}",""]),exports.locals={listItemPadding:"_19-qL9uBPSOUUwiqYANLK4",listItemContainer:"_2LHLXfQYwJEuR7N-ZJqGrh",expandBoxContainer:"_1Jw6nWf2fas4H72UzDRsC9",expandBox:"a8ZEOFlDcMDa9uUgEFcz6",iconBackground:"_2wMGldL0ffdgCRGV9Edg94",header:"_3MsLldg8ZX1OV4Mvzyu7JS",subheader:"_2s4P5KGfM9MLQgNNcXwGhe",expandableContent:"_2Ug3D6VdFKO2jFmGz6g0pN"}},BtKJXTDH:function(e,exports,t){(exports=e.exports=t("MAMP9hQI")(!1)).push([e.i,"._2nNNG7YYnvcE47E0s0zsQX{margin-top:10px}._2zJipNlfMyBUXmI_5EW23a,._3TeGIQkcfAVvcy78s6bgxT{max-height:400px;margin-top:10px}._2zJipNlfMyBUXmI_5EW23a{overflow:auto}",""]),exports.locals={optionsFormWrapper:"_2nNNG7YYnvcE47E0s0zsQX",spinnerWrapper:"_3TeGIQkcfAVvcy78s6bgxT",visualizationWrapper:"_2zJipNlfMyBUXmI_5EW23a"}},BuYL6Z88:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("bO+NFsu2"),r=t("ueqGRl4b"),i=t("1sI50TlS"),o=t("RU6LZ3NM"),a=t("ak+cODeF"),s=t("ONu/yDn/");function l(e){switch(e[0]){case"S":return i.HandlerRole.SOURCE;case"T":return i.HandlerRole.TARGET;default:a(!1,"Cannot parse handler ID: "+e)}}function u(e,t){var n=e.entries(),r=!1;do{var i=n.next(),o=i.done;if(i.value[1]===t)return!0;r=o}while(!r);return!1}var c=function(){function e(e){this.store=e,this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null}return e.prototype.addSource=function(e,t){o.validateType(e),o.validateSourceContract(t);var r=this.addHandler(i.HandlerRole.SOURCE,e,t);return this.store.dispatch(n.addSource(r)),r},e.prototype.addTarget=function(e,t){o.validateType(e,!0),o.validateTargetContract(t);var r=this.addHandler(i.HandlerRole.TARGET,e,t);return this.store.dispatch(n.addTarget(r)),r},e.prototype.containsHandler=function(e){return u(this.dragSources,e)||u(this.dropTargets,e)},e.prototype.getSource=function(e,t){return void 0===t&&(t=!1),a(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)},e.prototype.getTarget=function(e){return a(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)},e.prototype.getSourceType=function(e){return a(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)},e.prototype.getTargetType=function(e){return a(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)},e.prototype.isSourceId=function(e){return l(e)===i.HandlerRole.SOURCE},e.prototype.isTargetId=function(e){return l(e)===i.HandlerRole.TARGET},e.prototype.removeSource=function(e){var t=this;a(this.getSource(e),"Expected an existing source."),this.store.dispatch(n.removeSource(e)),s(function(){t.dragSources.delete(e),t.types.delete(e)})},e.prototype.removeTarget=function(e){a(this.getTarget(e),"Expected an existing target."),this.store.dispatch(n.removeTarget(e)),this.dropTargets.delete(e),this.types.delete(e)},e.prototype.pinSource=function(e){var t=this.getSource(e);a(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t},e.prototype.unpinSource=function(){a(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null},e.prototype.addHandler=function(e,t,n){var o=function(e){var t=r.default().toString();switch(e){case i.HandlerRole.SOURCE:return"S"+t;case i.HandlerRole.TARGET:return"T"+t;default:throw new Error("Unknown Handler Role: "+e)}}(e);return this.types.set(o,t),e===i.HandlerRole.SOURCE?this.dragSources.set(o,n):e===i.HandlerRole.TARGET&&this.dropTargets.set(o,n),o},e}();exports.default=c},C14Xp2Ng:function(e,exports,t){var n=t("Bb7LHlWw"),r=t("DAtDB7HU");e.exports=function(e,t){var i=r(e,t);return n(i)?i:void 0}},C19pcrjQ:function(e,exports,t){var n=t("mJIYXQlj"),r=t("cHkQCe+v")(function(e,t,r){n(e,t,r)});e.exports=r},C2PPdC7I:function(e,exports,t){e.exports=t.p+"4c15cc1e460aa7dd7683c3f3922c5a0e.js"},C7cUykAF:function(e,exports,t){window,e.exports=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t,n){e.exports=n(11)()},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=e.length;n0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{})}},function(e,t,n){"use strict";n.d(t,"e",function(){return s}),n.d(t,"g",function(){return l}),n.d(t,"a",function(){return u}),n.d(t,"b",function(){return c}),n.d(t,"f",function(){return f}),n.d(t,"c",function(){return d}),n.d(t,"d",function(){return p});var r=n(1),i=n(6),o=n.n(i),a=n(2);function s(e,t,n){if(!e.props.bounds)return[t,n];var i=e.props.bounds;i="string"==typeof i?i:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(i);var o=h(e);if("string"==typeof i){var s,l=o.ownerDocument,u=l.defaultView;if(!((s="parent"===i?o.parentNode:l.querySelector(i))instanceof u.HTMLElement))throw new Error('Bounds selector "'+i+'" could not find an element.');var c=u.getComputedStyle(o),f=u.getComputedStyle(s);i={left:-o.offsetLeft+Object(r.c)(f.paddingLeft)+Object(r.c)(c.marginLeft),top:-o.offsetTop+Object(r.c)(f.paddingTop)+Object(r.c)(c.marginTop),right:Object(a.h)(s)-Object(a.l)(o)-o.offsetLeft+Object(r.c)(f.paddingRight)-Object(r.c)(c.marginRight),bottom:Object(a.g)(s)-Object(a.k)(o)-o.offsetTop+Object(r.c)(f.paddingBottom)-Object(r.c)(c.marginBottom)}}return Object(r.e)(i.right)&&(t=Math.min(t,i.right)),Object(r.e)(i.bottom)&&(n=Math.min(n,i.bottom)),Object(r.e)(i.left)&&(t=Math.max(t,i.left)),Object(r.e)(i.top)&&(n=Math.max(n,i.top)),[t,n]}function l(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function u(e){return"both"===e.props.axis||"x"===e.props.axis}function c(e){return"both"===e.props.axis||"y"===e.props.axis}function f(e,t,n){var r="number"==typeof t?Object(a.e)(e,t):null;if("number"==typeof t&&!r)return null;var i=h(n),o=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return Object(a.j)(r||e,o)}function d(e,t,n){var i=e.state,o=!Object(r.e)(i.lastX),a=h(e);return o?{node:a,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:a,deltaX:t-i.lastX,deltaY:n-i.lastY,lastX:i.lastX,lastY:i.lastY,x:t,y:n}}function p(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function h(e){var t=o.a.findDOMNode(e);if(!t)throw new Error(": Unmounted during event!");return t}},function(e,t,n){"use strict";function r(){}n.d(t,"a",function(){return r})},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return _});var r=n(5),i=n.n(r),o=n(0),a=n.n(o),s=n(6),l=n.n(s),u=n(2),c=n(3),f=n(1),d=n(4);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n not mounted on DragStart!");var r=t.ownerDocument;if(!(n.props.disabled||!(e.target instanceof r.defaultView.Node)||n.props.handle&&!Object(u.i)(e.target,n.props.handle,t)||n.props.cancel&&Object(u.i)(e.target,n.props.cancel,t))){var i=Object(u.f)(e);n.setState({touchIdentifier:i});var o=Object(c.f)(e,i,g(n));if(null!=o){var a=o.x,s=o.y,f=Object(c.c)(g(n),a,s);Object(d.a)("DraggableCore: handleDragStart: %j",f),Object(d.a)("calling",n.props.onStart),!1!==n.props.onStart(e,f)&&(n.props.enableUserSelectHack&&Object(u.b)(r),n.setState({dragging:!0,lastX:a,lastY:s}),Object(u.a)(r,w.move,n.handleDrag),Object(u.a)(r,w.stop,n.handleDragStop))}}}),b(g(n),"handleDrag",function(e){"touchmove"===e.type&&e.preventDefault();var t=Object(c.f)(e,n.state.touchIdentifier,g(n));if(null!=t){var r=t.x,i=t.y;if(Array.isArray(n.props.grid)){var o=r-n.state.lastX,a=i-n.state.lastY,s=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(Object(c.g)(n.props.grid,o,a),2);if(o=s[0],a=s[1],!o&&!a)return;r=n.state.lastX+o,i=n.state.lastY+a}var l=Object(c.c)(g(n),r,i);if(Object(d.a)("DraggableCore: handleDrag: %j",l),!1!==n.props.onDrag(e,l))n.setState({lastX:r,lastY:i});else try{n.handleDragStop(new MouseEvent("mouseup"))}catch(e){var u=document.createEvent("MouseEvents");u.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.handleDragStop(u)}}}),b(g(n),"handleDragStop",function(e){if(n.state.dragging){var t=Object(c.f)(e,n.state.touchIdentifier,g(n));if(null!=t){var r=t.x,i=t.y,o=Object(c.c)(g(n),r,i),a=l.a.findDOMNode(g(n));a&&n.props.enableUserSelectHack&&Object(u.n)(a.ownerDocument),Object(d.a)("DraggableCore: handleDragStop: %j",o),n.setState({dragging:!1,lastX:NaN,lastY:NaN}),n.props.onStop(e,o),a&&(Object(d.a)("DraggableCore: Removing handlers"),Object(u.m)(a.ownerDocument,w.move,n.handleDrag),Object(u.m)(a.ownerDocument,w.stop,n.handleDragStop))}}}),b(g(n),"onMouseDown",function(e){return w=y.mouse,n.handleDragStart(e)}),b(g(n),"onMouseUp",function(e){return w=y.mouse,n.handleDragStop(e)}),b(g(n),"onTouchStart",function(e){return w=y.touch,n.handleDragStart(e)}),b(g(n),"onTouchEnd",function(e){return w=y.touch,n.handleDragStop(e)}),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,i.a.Component),n=t,(r=[{key:"componentWillUnmount",value:function(){var e=l.a.findDOMNode(this);if(e){var t=e.ownerDocument;Object(u.m)(t,y.mouse.move,this.handleDrag),Object(u.m)(t,y.touch.move,this.handleDrag),Object(u.m)(t,y.mouse.stop,this.handleDragStop),Object(u.m)(t,y.touch.stop,this.handleDragStop),this.props.enableUserSelectHack&&Object(u.n)(t)}}},{key:"render",value:function(){return i.a.cloneElement(i.a.Children.only(this.props.children),{style:Object(u.o)(this.props.children.props.style),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&h(n.prototype,r),t}();b(_,"displayName","DraggableCore"),b(_,"propTypes",{allowAnyClick:a.a.bool,disabled:a.a.bool,enableUserSelectHack:a.a.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:a.a.arrayOf(a.a.number),handle:a.a.string,cancel:a.a.string,onStart:a.a.func,onDrag:a.a.func,onStop:a.a.func,onMouseDown:a.a.func,className:f.a,style:f.a,transform:f.a}),b(_,"defaultProps",{allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){}})},function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(t,i.a.Component),E(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:(Object(m.a)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:y({},n)})}}]),E(t,[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&l.a.findDOMNode(this)instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),r=t.defaultPosition,o=t.defaultClassName,a=t.defaultClassNameDragging,s=t.defaultClassNameDragged,l=t.position,u=t.positionOffset,p=(t.scale,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"])),m={},g=null,b=!Boolean(l)||this.state.dragging,w=l||r,_={x:Object(d.a)(this)&&b?this.state.x:w.x,y:Object(d.b)(this)&&b?this.state.y:w.y};this.state.isElementSVG?g=Object(f.d)(_,u):m=Object(f.c)(_,u);var x=c()(n.props.className||"",o,(C(e={},a,this.state.dragging),C(e,s,this.state.dragged),e));return i.a.createElement(h.default,v({},p,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),i.a.cloneElement(i.a.Children.only(n),{className:x,style:y({},n.props.style,{},m),transform:g}))}}]),t}();C(O,"displayName","Draggable"),C(O,"propTypes",y({},h.default.propTypes,{axis:a.a.oneOf(["both","x","y","none"]),bounds:a.a.oneOfType([a.a.shape({left:a.a.number,right:a.a.number,top:a.a.number,bottom:a.a.number}),a.a.string,a.a.oneOf([!1])]),defaultClassName:a.a.string,defaultClassNameDragging:a.a.string,defaultClassNameDragged:a.a.string,defaultPosition:a.a.shape({x:a.a.number,y:a.a.number}),positionOffset:a.a.shape({x:a.a.oneOfType([a.a.number,a.a.string]),y:a.a.oneOfType([a.a.number,a.a.string])}),position:a.a.shape({x:a.a.number,y:a.a.number}),className:p.a,style:p.a,transform:p.a})),C(O,"defaultProps",y({},h.default.defaultProps,{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}))},function(e,t,n){"use strict";var r=n(12);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])}(t("ivGQtwpr"),t("vU3dbCc2"))},C96fpu2F:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addToQuery=exports.escape=exports.isPhrase=void 0;var n=t("NV2C8ebe"),r=function(e){return-1!==String(e).indexOf(" ")};exports.isPhrase=r;exports.escape=function(e){var t=String(e);return t=(t=(t=t.replace(/\r\n/g," ")).replace(/\n/g," ")).replace(/
/g," "),r(t)?(t=String(t).replace(/(["\\])/g,"\\$&"),t='"'.concat(t,'"')):t=String(t).replace(/(&&|\|\||[:\\/+\-!(){}[\]^"~*?])/g,"\\$&"),t};exports.addToQuery=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AND";return"*"===(0,n.trim)(e)||""===(0,n.trim)(e)?t:"*"===(0,n.trim)(t)||""===(0,n.trim)(t)?e:"".concat(e," ").concat(r," ").concat(t)}},CCQCk8xF:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=s(t("ii0bleBb")),r=s(t("ivGQtwpr")),i=t("os2pWP01"),o=t("cWz9qwug"),a=s(t("s5h7rPn2"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(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})(e)}function u(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var m=["error","warning","success"],g={};m.forEach(function(e){var t={};l.themeModes.forEach(function(n){t[n]=function(e){var t,n,r;switch(e){case"success":t=l.util.colorLevel(l.teinte.tertiary.tre,6),n=l.teinte.tertiary.tre,r=l.util.colorLevel(l.teinte.tertiary.tre,-6);break;case"warning":t=l.util.colorLevel(l.teinte.tertiary.sei,6),n=l.teinte.tertiary.sei,r=l.util.colorLevel(l.teinte.tertiary.sei,-6);break;case"error":t=l.util.colorLevel(l.teinte.secondary.uno,6),n=l.teinte.secondary.uno,r=l.util.colorLevel(l.teinte.secondary.uno,-6)}return(0,o.css)(["&.has-","{.help-block,.control-label,.radio,.checkbox,.radio-inline,.checkbox-inline,&.radio label,&.checkbox label,&.radio-inline label,&.checkbox-inline label{color:",";}","{border-color:",";&:focus{border-color:",";box-shadow(inset 0 1px 1px rgba(0,0,0,.075),0 0 6px ",");}}"," .input-group-addon{color:",";background-color:",";border-color:",";}.form-control-feedback{color:",";}}"],e,t,u.default.type,n,(0,s.darken)(.1,n),(0,s.lighten)(.2,n),c.default.type,t,r,n,t)}(e)}),g[e]=t});var v=a.default.variants("mode","validationState",g),b=(0,o.default)(i.FormGroup).withConfig({displayName:"FormGroup__StyledFormGroup",componentId:"sc-1wv4cm9-0"})(["",";"],v),y=(0,n.memo)(function(e){var t=e.children,r=e.validationState,i=h(e,["children","validationState"]);return n.default.createElement(b,p({validationState:r},i),t)});y.propTypes={children:r.default.node.isRequired,validationState:r.default.oneOf([null].concat(m))},y.defaultProps={validationState:null};var w=y;exports.default=w,e.exports=exports.default},CmE7b4XQ:function(e,exports,t){"use strict";var n,r,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=1440?(e=this.props.alert.condition_parameters.time/1440,t=1440):this.props.alert.condition_parameters.time>=60?(e=this.props.alert.condition_parameters.time/60,t=60):(e=this.props.alert.condition_parameters.time,t=1),r.default.createElement("div",null,r.default.createElement(a.default,{onUpdate:this.props.onUpdate,title:this.props.alert.title,severity:this.props.alert.severity,isPluginLoggingAlertPresent:this.props.isPluginLoggingAlertPresent}),r.default.createElement("br",null),r.default.createElement(s.default,{stream:this.props.alert.stream,onSaveStream:this._handleChangeStream,message:this.props.message,matchData:this.props.matchData}),r.default.createElement("br",null),r.default.createElement(l.default,{onUpdate:this._handleChangeCondition,threshold:this.props.alert.condition_parameters.threshold,threshold_type:this.props.alert.condition_parameters.threshold_type}),r.default.createElement("br",null),r.default.createElement(u.default,{onUpdate:this._handleChangeCondition,time:e.toString(),time_type:t.toString()}),r.default.createElement("br",null),r.default.createElement(f.default,{onUpdate:this._handleChangeCondition,grouping_fields:this.props.alert.condition_parameters.grouping_fields}),r.default.createElement("br",null),r.default.createElement(d.default,{onUpdate:this._handleChangeCondition,distinction_fields:this.props.alert.condition_parameters.distinction_fields}),r.default.createElement("br",null),r.default.createElement(c.default,{onUpdate:this.props.onUpdate,description:this.props.alert.description}),r.default.createElement("br",null))}});exports.default=h,e.exports=exports.default},"CupN+4mD":function(e,exports,t){var n=t("C14Xp2Ng")(t("RMa3hR3V"),"DataView");e.exports=n},CvkSWy3a:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("BCMQ0siK"),r=t("QhDzuaOM");n.default.__addLocaleData(r.default),n.default.defaultLocale="en",exports.default=n.default},CzXCwJO7:function(e,exports){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},CziT3Db8:function(e,exports,t){e.exports=t("jaIgFIJB")(90)},D5kRgEAy:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=a(t("ii0bleBb")),r=a(t("ivGQtwpr")),i=a(t("xtWOcxZo")),o=a(t("6H5fCDEz"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(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})(e)}function l(e,t){for(var n=0;n0?n.props.onMessageLoaded(e.messages[0]):(o.default.error("Input did not return a recent message."),n.props.onMessageLoaded(void 0))}),t.finally(function(){return n.setState({loading:!1})})}),n}var n,a,h;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,r["default"].Component),n=t,(a=[{key:"render",value:function(){var e;return e=this.props.selectedInputId?'Click on "Load Message" to load the most recent message received by this input within the last hour.':'Select an Input from the list below and click "Load Message" to load the most recent message received by this input within the last hour.',r.default.createElement("div",{style:{marginTop:5}},e,r.default.createElement(i.default,{inputs:this.props.inputs,preselectedInputId:this.props.selectedInputId,onLoadMessage:this.onClick,title:this.state.loading?"Loading message...":"Load Message",disabled:this.state.loading}))}}])&&l(n.prototype,a),h&&l(n,h),t}();d(h,"propTypes",{inputs:n.default.object,onMessageLoaded:n.default.func.isRequired,selectedInputId:n.default.string});var m=h;exports.default=m,e.exports=exports.default},DAtDB7HU:function(e,exports){e.exports=function(e,t){return null==e?void 0:e[t]}},DFnakCUV:function(e,exports,t){var n;!function(r){var i=/^\s+/,o=/\s+$/,a=0,s=r.round,l=r.min,u=r.max,c=r.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,a=null,s=null,c=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,n=!1;if(A[e])e=A[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=U.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=U.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=U.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=U.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=U.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=U.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=U.hex8.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),a:N(t[4]),format:n?"name":"hex8"};if(t=U.hex6.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),format:n?"name":"hex"};if(t=U.hex4.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),a:N(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=U.hex3.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(p=e.r,h=e.g,m=e.b,t={r:255*j(p,255),g:255*j(h,255),b:255*j(m,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(a=I(e.s),s=I(e.v),t=function(e,t,n){e=6*j(e,360),t=j(t,100),n=j(n,100);var i=r.floor(e),o=e-i,a=n*(1-t),s=n*(1-o*t),l=n*(1-(1-o)*t),u=i%6;return{r:255*[n,s,a,a,l,n][u],g:255*[l,n,n,s,a,a][u],b:255*[a,a,l,n,n,s][u]}}(e.h,a,s),f=!0,d="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(a=I(e.s),c=I(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=j(e,360),t=j(t,100),n=j(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,a,c),f=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,h,m;return n=P(n),{ok:f,format:e.format||d,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=a++}function d(e,t,n){e=j(e,255),t=j(t,255),n=j(n,255);var r,i,o=u(e,t,n),a=l(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var c=o-a;switch(i=s>.5?c/(2-o-a):c/(o+a),o){case e:r=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(f(r));return o}function M(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(f({h:r,s:i,v:o})),o=(o+s)%1;return a}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,i=this.toRgb();return e=i.r/255,t=i.g/255,n=i.b/255,.2126*(e<=.03928?e/12.92:r.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:r.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:r.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=P(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[F(s(e).toString(16)),F(s(t).toString(16)),F(s(n).toString(16)),F(L(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*j(this._r,255))+"%",g:s(100*j(this._g,255))+"%",b:s(100*j(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*j(this._r,255))+"%, "+s(100*j(this._g,255))+"%, "+s(100*j(this._b,255))+"%)":"rgba("+s(100*j(this._r,255))+"%, "+s(100*j(this._g,255))+"%, "+s(100*j(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=f(e);n="#"+m(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:I(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:c(),g:c(),b:c()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),i=f(t).toRgb(),o=n/100;return f({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},f.readability=function(e,t){var n=f(e),i=f(t);return(r.max(n.getLuminance(),i.getLuminance())+.05)/(r.min(n.getLuminance(),i.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,i,o=f.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},f.mostReadable=function(e,t,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;ul&&(l=r,s=f(t[u]));return f.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var A=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(A);function P(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function j(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),r.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return l(1,u(0,e))}function D(e){return parseInt(e,16)}function F(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function L(e){return r.round(255*parseFloat(e)).toString(16)}function N(e){return D(e)/255}var z,B,H,U=(B="[\\s|\\(]+("+(z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",H="[\\s|\\(]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",{CSS_UNIT:new RegExp(z),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+H),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(exports,t,exports,e))||(e.exports=n)}(Math)},"DIj/8lmr":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=a(t("ivGQtwpr")),r=a(t("ii0bleBb")),i=t("os2pWP01"),o=a(t("17WYifhy"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(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})(e)}function l(e,t){for(var n=0;n>>1;n>>1;e(t[o])>>1);--o>0;)n(e,o,i,t);return e}function n(t,n,r,i){for(var o,a=t[--i+n],s=e(a);(o=n<<1)<=r&&(oe(t[i+o+1])&&o++,!(s<=e(t[i+o])));)t[i+n]=t[i+o],n=o;t[i+n]=a}return t.sort=function(e,t,r){for(var i,o=r-t;--o>0;)i=e[t],e[t]=e[t+o],e[t+o]=i,n(e,1,o,t);return e},t}function o(e){var t=i(e);return function(n,r,i,o){var a,s,l,u=new Array(o=Math.min(i-r,o));for(s=0;sa&&(u[0]=l,a=e(t(u,0,o)[0]))}while(++rn&&e(t[o-1])>s;--o)t[o]=t[o-1];t[o]=a}return t}}function s(e){var t=a(e);function n(e,n,i){return(i-n>1,c=u-a,f=u+a,d=t[s],p=e(d),h=t[c],m=e(h),g=t[u],v=e(g),b=t[f],y=e(b),w=t[l],_=e(w);p>m&&(o=d,d=h,h=o,o=p,p=m,m=o),y>_&&(o=b,b=w,w=o,o=y,y=_,_=o),p>v&&(o=d,d=g,g=o,o=p,p=v,v=o),m>v&&(o=h,h=g,g=o,o=m,m=v,v=o),p>y&&(o=d,d=b,b=o,o=p,p=y,y=o),v>y&&(o=g,g=b,b=o,o=v,v=y,y=o),m>_&&(o=h,h=w,w=o,o=m,m=_,_=o),m>v&&(o=h,h=g,g=o,o=m,m=v,v=o),y>_&&(o=b,b=w,w=o,o=y,y=_,_=o);var x=h,E=m,S=b,C=y;t[s]=d,t[c]=t[r],t[u]=g,t[f]=t[i-1],t[l]=w;var O=r+1,k=i-2,M=E<=C&&E>=C;if(M)for(var A=O;A<=k;++A){var T=t[A];if((j=e(T))E)for(;;){if(!((R=e(t[k]))>E)){if(RC)for(;;){if(!((R=e(t[k]))>C)){Rl){for(var P;(P=e(t[O]))<=E&&P>=E;)++O;for(;(R=e(t[k]))<=C&&R>=C;)--k;for(A=O;A<=k;A++){var j;T=t[A];if((j=e(T))<=E&&j>=E)A!==O&&(t[A]=t[O],t[O]=T),O++;else if(j<=C&&j>=C)for(;;){var R;if(!((R=e(t[k]))<=C&&R>=C)){R32)throw new Error("invalid array width!");return e};function h(e){for(var t=new Array(e),n=-1;++nr;)h[--l]=0},dimension:function(r){var u,k,M,A,T,P={filter:function(e){return null==e?V():Array.isArray(e)?q(e):"function"==typeof e?K(e):G(e)},filterExact:G,filterRange:q,filterFunction:K,filterAll:V,top:function(e){var t,n=[],r=z;for(;--r>=N&&e>0;)h[t=k[r]]||(n.push(a[t]),--e);return n},bottom:function(e){var t,n=[],r=N;for(;r0;)h[t=k[r]]||(n.push(a[t]),--e),r++;return n},group:Y,groupAll:function(){var e=Y(g),t=e.all;return delete e.all,delete e.top,delete e.order,delete e.orderNatural,delete e.size,e.value=function(){return t()[0].value},e},dispose:X,remove:X},j=~c&-~c,R=~j,D=s(function(e){return M[e]}),F=m,I=[],L=[],N=0,z=0;C.unshift(B),C.push(H),O.push(U),c|=j,(f>=32?!j:c&-(1<N)for(r=N,i=Math.min(t,z);rz)for(r=Math.max(t,z),i=n;r1?d(s,l):E(l,T),k&&(f=(c=w[0]).key);I=v);)++I;for(;Iy||(s[u=n[I]+i]=P,h[u]&R||(b.value=C(b.value,a[u])),++I>=o));)v=t(e[I]);L()}for(;jj)for(j=0;j1?(D=U,F=G):(!P&&z&&(P=1,r=[{key:null,value:O()}]),1===P?(D=W,F=q):(D=g,F=g),s=null),x[u]=D}function H(){if(P>1){for(var e=P,t=r,n=E(e,e),i=0,o=0;i1)for(i=0;i1?(F=G,D=U):1===P?(F=q,D=W):F=D=g}else if(1===P){if(z)return;for(i=0;i=0&&x.splice(e,1),(e=I.indexOf(B))>=0&&I.splice(e,1),(e=O.indexOf(H))>=0&&O.splice(e,1),n}return arguments.length<1&&(t=e),x.push(D),I.push(B),O.push(H),B(u,k,0,l),Q().orderNatural()}function X(){L.forEach(function(e){e.dispose()});var e=C.indexOf(B);return e>=0&&C.splice(e,1),(e=C.indexOf(H))>=0&&C.splice(e,1),(e=O.indexOf(U))>=0&&O.splice(e,1),c&=R,V()}return B(a,0,l),H(a,0,l),P},groupAll:function(){var e,t,n,r,i={reduce:c,reduceCount:f,reduceSum:function(e){return c(w(e),_(e),v)},value:function(){o&&(function(){var n;for(e=r(),n=0;n=0&&x.splice(e),(e=C.indexOf(s))>=0&&C.splice(e),i}return x.push(u),C.push(s),s(a,0),f()},size:function(){return l}},a=[],l=0,c=0,f=8,h=u(0),x=[],C=[],O=[];function k(e){var t=l,n=e.length;return n&&(a=a.concat(e),h=d(h,l+=n),C.forEach(function(r){r(e,t,n)})),r}return arguments.length?k(arguments[0]):r}function E(e,t){return(t<257?u:t<65537?c:f)(e)}function S(e){return 8===e?256:16===e?65536:4294967296}"undefined"!=typeof Uint8Array&&(u=function(e){return new Uint8Array(e)},c=function(e){return new Uint16Array(e)},f=function(e){return new Uint32Array(e)},d=function(e,t){if(e.length>=t)return e;var n=new e.constructor(t);return n.set(e),n},p=function(e,t){var n;switch(t){case 16:n=c(e.length);break;case 32:n=f(e.length);break;default:throw new Error("invalid array width!")}return n.set(e),n}),exports.crossfilter=x}(exports||this)},Dquq6GId:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=f(t("ii0bleBb")),r=f(t("ivGQtwpr")),i=f(t("PcYM+wZ7")),o=t("DlhHh5IY"),a=t("qOZsORvD"),s=t("qwOa7NSh"),l=f(t("7QAbkgSv")),u=f(t("8FtKQWAV")),c=t("os2pWP01");function f(e){return e&&e.__esModule?e:{default:e}}var d=l.default.getStore("Fields"),p=(0,i.default)({displayName:"DistinctCondition",propTypes:{onUpdate:n.default.func},getInitialState:function(){return{distinction_fields:this.props.distinction_fields}},componentDidMount:function(){var e=this;d.loadFields().then(function(t){e.setState({fields:t})})},_formatOption:function(e,t){return{value:t,label:e}},_onDistinctionFieldsChange:function(e){var t=""===e?[]:e.split(",");this.setState({distinction_fields:t}),this.props.onUpdate("distinction_fields",t)},_isLoading:function(){return!this.state.fields},render:function(){var e=this;if(this._isLoading())return r.default.createElement("div",{style:{marginLeft:10}},r.default.createElement(a.Spinner,null));var t=Object.keys(this.state.fields).map(function(t){return e._formatOption(e.state.fields[t],e.state.fields[t])}).sort(function(e,t){return(0,u.default)(e.label.toLowerCase(),t.label.toLowerCase())});return r.default.createElement(c.Row,null,r.default.createElement(c.Col,{md:2,style:{marginTop:5,marginBottom:0}},r.default.createElement("label",{className:"pull-right"},r.default.createElement(s.FormattedMessage,{id:"wizard.distinctBy",defaultMessage:"Distinct by Condition"}))),r.default.createElement(c.Col,{md:10},r.default.createElement("label",null,r.default.createElement(s.FormattedMessage,{id:"wizard.distinctByLabel",defaultMessage:"Messages must be distincted by"})),r.default.createElement(o.Input,{ref:"distinction_fields",id:"distinction_fields",name:"distinction_fields"},r.default.createElement("div",{style:{minWidth:"300px"}},r.default.createElement(a.MultiSelect,{autoFocus:!1,options:t,value:this.state.distinction_fields?Array.isArray(this.state.distinction_fields)?this.state.distinction_fields.join(","):this.state.distinction_fields:void 0,onChange:this._onDistinctionFieldsChange,allowCreate:!0})))))}});exports.default=p,e.exports=exports.default},DrQ7ZRxw:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ii0bleBb")),r=o(t("ivGQtwpr")),i=o(t("Mcd/Xly4"));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n=0;r--)s($(n[r]),t)}(r)},remove:function(t){var n=c();e||a(n),t&&0===$(":focus",t).length?f(t):e.children().length&&e.remove()},error:function(e,t,n){return u({type:i.error,iconClass:c().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:a,info:function(e,t,n){return u({type:i.info,iconClass:c().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){t=e},success:function(e,t,n){return u({type:i.success,iconClass:c().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.4",warning:function(e,t,n){return u({type:i.warning,iconClass:c().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return o;function a(t,n){return t||(t=c()),(e=$("#"+t.containerId)).length?e:(n&&(e=function(t){return(e=$("
").attr("id",t.containerId).addClass(t.positionClass)).appendTo($(t.target)),e}(t)),e)}function s(e,t,n){var r=!(!n||!n.force)&&n.force;return!(!e||!r&&0!==$(":focus",e).length||(e[t.hideMethod]({duration:t.hideDuration,easing:t.hideEasing,complete:function(){f(e)}}),0))}function l(e){t&&t(e)}function u(t){var i=c(),o=t.iconClass||i.iconClass;if(void 0!==t.optionsOverride&&(i=$.extend(i,t.optionsOverride),o=t.optionsOverride.iconClass||o),!function(e,t){if(e.preventDuplicates){if(t.message===n)return!0;n=t.message}return!1}(i,t)){r++,e=a(i,!0);var s=null,u=$("
"),d=$("
"),p=$("
"),h=$("
"),m=$(i.closeHtml),g={intervalId:null,hideEta:null,maxHideTime:null},v={toastId:r,state:"visible",startTime:new Date,options:i,map:t};return t.iconClass&&u.addClass(i.toastClass).addClass(o),function(){if(t.title){var e=t.title;i.escapeHtml&&(e=b(t.title)),d.append(e).addClass(i.titleClass),u.append(d)}}(),function(){if(t.message){var e=t.message;i.escapeHtml&&(e=b(t.message)),p.append(e).addClass(i.messageClass),u.append(p)}}(),i.closeButton&&(m.addClass(i.closeClass).attr("role","button"),u.prepend(m)),i.progressBar&&(h.addClass(i.progressClass),u.prepend(h)),i.rtl&&u.addClass("rtl"),i.newestOnTop?e.prepend(u):e.append(u),function(){var e="";switch(t.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}u.attr("aria-live",e)}(),u.hide(),u[i.showMethod]({duration:i.showDuration,easing:i.showEasing,complete:i.onShown}),i.timeOut>0&&(s=setTimeout(y,i.timeOut),g.maxHideTime=parseFloat(i.timeOut),g.hideEta=(new Date).getTime()+g.maxHideTime,i.progressBar&&(g.intervalId=setInterval(x,10))),i.closeOnHover&&u.hover(_,w),!i.onclick&&i.tapToDismiss&&u.click(y),i.closeButton&&m&&m.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),i.onCloseClick&&i.onCloseClick(e),y(!0)}),i.onclick&&u.click(function(e){i.onclick(e),y()}),l(v),i.debug&&console&&console.log(v),u}function b(e){return null==e&&(e=""),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function y(e){var t=e&&!1!==i.closeMethod?i.closeMethod:i.hideMethod,n=e&&!1!==i.closeDuration?i.closeDuration:i.hideDuration,r=e&&!1!==i.closeEasing?i.closeEasing:i.hideEasing;if(!$(":focus",u).length||e)return clearTimeout(g.intervalId),u[t]({duration:n,easing:r,complete:function(){f(u),clearTimeout(s),i.onHidden&&"hidden"!==v.state&&i.onHidden(),v.state="hidden",v.endTime=new Date,l(v)}})}function w(){(i.timeOut>0||i.extendedTimeOut>0)&&(s=setTimeout(y,i.extendedTimeOut),g.maxHideTime=parseFloat(i.extendedTimeOut),g.hideEta=(new Date).getTime()+g.maxHideTime)}function _(){clearTimeout(s),g.hideEta=0,u.stop(!0,!0)[i.showMethod]({duration:i.showDuration,easing:i.showEasing})}function x(){var e=(g.hideEta-(new Date).getTime())/g.maxHideTime*100;h.width(e+"%")}}function c(){return $.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},o.options)}function f(t){e||(e=a()),t.is(":visible")||(t.remove(),t=null,0===e.children().length&&(e.remove(),n=void 0))}}()}.apply(exports,n))||(e.exports=r)},"EKxC/bLL":function(e,exports,t){var n=t("LmeREhAx");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t("5omYMvbi")(n,r);n.locals&&(e.exports=n.locals)},EOkJcQHQ:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PhotoshopPointerCircle=void 0;var n=i(t("ivGQtwpr")),r=i(t("zGS59GCK"));function i(e){return e&&e.__esModule?e:{default:e}}var o=exports.PhotoshopPointerCircle=function(){var e=(0,r.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return n.default.createElement("div",{style:e.pointer},n.default.createElement("div",{style:e.left},n.default.createElement("div",{style:e.leftInside})),n.default.createElement("div",{style:e.right},n.default.createElement("div",{style:e.rightInside})))};exports.default=o},ERJD36KC:function(e,exports,t){"use strict";var n,r=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){for(var t=[],n=0;n0?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4==o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;l+=2}},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[],a=[];return(0,o.default)(t,function(t){Array.isArray(t)?e(t).map(function(e){return a.push(e)}):(0,i.default)(t)?(0,r.default)(t,function(e,t){!0===e&&a.push(t),a.push(t+"-"+e)}):(0,n.default)(t)&&a.push(t)}),a};exports.default=s},EetdAJpE:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=p(t("ii0bleBb")),r=p(t("ivGQtwpr")),i=(p(t("vU3dbCc2")),p(t("H/eHg5XM"))),o=p(t("Ept3tno1")),a=p(t("adv1k/5t")),s=p(t("umYlv8lo")),l=p(t("4N9gACfh")),u=p(t("Q7GA7kux")),c=p(t("Mcd/Xly4")),f=p(t("tCwVgAf4")),d=p(t("X5aBUarr"));p(t("JY+ICSY6"));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var n=0;n1e30||0===e?e.toPrecision(1):s.default.format(".2s")(e)};var c={bindto:t,onrendered:n.props.onRenderComplete,size:{height:e.height,width:e.width},data:{columns:[],names:n.seriesNames.toJS(),colors:l.toJS()},padding:{right:10},axis:{x:{type:"timeseries",label:{text:"Time",position:"outer-center"},tick:{format:d.default.customDateTimeFormat()}},y:{label:{text:"Values",position:"outer-middle"},tick:{count:3,format:n.yAxisFormatter},padding:{bottom:0}}},grid:{y:{show:!0,ticks:3},focus:{show:!1}},tooltip:{format:{title:n._formatTooltipTitle,value:n._formatTooltipValue}}};n.props.interactive||(c.interaction={enabled:!1},c.transition={duration:null}),n.graph=a.default.generate(c)}),n.series=i.default.List(),n.seriesNames=i.default.Map(),n.barWidthScale=s.default.scale.linear().domain(s.default.range(0,1e4)).range(s.default.range(.6,0,-.01)),n.dataPoints=i.default.Set(),n.state={},n}var n,p,w;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,r["default"].Component),n=t,(p=[{key:"componentDidMount",value:function(){this.renderGraph(this.props),this.dataPoints=this._formatData(this.props),this.drawData()}},{key:"componentWillReceiveProps",value:function(e){(0,l.default)(this.props,e)||(this._updateSeriesNames(e),this.dataPoints=this._formatData(e),e.height===this.props.height&&e.width===this.props.width||(this._resizeVisualization(e.width,e.height),this.renderGraph(e)),this.drawData())}},{key:"render",value:function(){var e=this,t=this.props.config.doNotShowCircles?"donotshowcircles":"";return r.default.createElement("div",{ref:function(t){e._graph=t},id:"visualization-".concat(this.props.id),className:"graph ".concat(this.props.config.renderer).concat(t)})}}])&&m(n.prototype,p),w&&m(n,w),t}();y(w,"propTypes",{id:n.default.string.isRequired,data:n.default.array.isRequired,height:n.default.number,width:n.default.number,config:n.default.object.isRequired,computationTimeRange:n.default.object,interactive:n.default.bool,onRenderComplete:n.default.func}),y(w,"defaultProps",{interactive:!0,onRenderComplete:function(){}});var _=w;exports.default=_,e.exports=exports.default},EhcGwo2q:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=s(t("ii0bleBb")),r=s(t("ivGQtwpr")),i=t("os2pWP01"),o=t("DlhHh5IY"),a=t("qOZsORvD");function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(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})(e)}function u(e,t){for(var n=0;n=1e12&&!o||"t"===o?(g+=p.abbreviations.trillion,t/=1e12):s<1e12&&s>=1e9&&!o||"b"===o?(g+=p.abbreviations.billion,t/=1e9):s<1e9&&s>=1e6&&!o||"m"===o?(g+=p.abbreviations.million,t/=1e6):(s<1e6&&s>=1e3&&!o||"k"===o)&&(g+=p.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),l=t.toString().split(".")[0],u=n.split(".")[1],f=n.indexOf(","),i=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),v=e._.toFixed(t,u[0].length+u[1].length,r,u[1].length)):v=e._.toFixed(t,u.length,r),l=v.split(".")[0],v=e._.includes(v,".")?p.delimiters.decimal+v.split(".")[1]:"",m&&0===Number(v.slice(1))&&(v="")):l=e._.toFixed(t,0,r),g&&!o&&Number(l)>=1e3&&g!==p.abbreviations.trillion)switch(l=String(Number(l)/1e3),g){case p.abbreviations.thousand:g=p.abbreviations.million;break;case p.abbreviations.million:g=p.abbreviations.billion;break;case p.abbreviations.billion:g=p.abbreviations.trillion}if(e._.includes(l,"-")&&(l=l.slice(1),b=!0),l.length0;y--)l="0"+l;return f>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===n.indexOf(".")&&(l=""),d=l+v+(g||""),h?d=(h&&b?"(":"")+d+(h&&b?")":""):c>=0?d=0===c?(b?"-":"+")+d:d+(b?"-":"+"):b&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,i=a[l.currentLocale],o=e,s={thousand:3,million:6,billion:9,trillion:12};if(l.zeroFormat&&e===l.zeroFormat)n=0;else if(l.nullFormat&&e===l.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),o.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{for(;o=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;or?e:r},1)},toFixed:function(e,t,n,r){var i,o,a,s,l=e.toString().split("."),u=t-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,u),t):u,a=Math.pow(10,i),s=(n(e+"e+"+i)/a).toFixed(i),r>t-i&&(o=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(o,"")),s}},e.options=l,e.formats=o,e.locales=a,e.locale=function(e){return e&&(l.currentLocale=e.toLowerCase()),l.currentLocale},e.localeData=function(e){if(!e)return a[l.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in s)l[e]=s[e]},e.zeroFormat=function(e){l.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){l.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){l.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,o,a,s,l,u,c;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{u=e.localeData(n)}catch(t){u=e.localeData(e.locale())}return o=u.currency.symbol,s=u.abbreviations,r=u.delimiters.decimal,i="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,!(null!==(c=t.match(/^[^\d]+/))&&(t=t.substr(1),c[0]!==o)||null!==(c=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),c[0]!==s.thousand&&c[0]!==s.million&&c[0]!==s.billion&&c[0]!==s.trillion)||(l=new RegExp(i+"{2}"),t.match(/[^\d.,]/g)||(a=t.split(r)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(l):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(l)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(l)||!a[1].match(/^\d+$/))))},e.fn=u.prototype={clone:function(){return e(this)},format:function(t,n){var r,i,a,s=this._value,u=t||l.defaultFormat;if(n=n||Math.round,0===s&&null!==l.zeroFormat)i=l.zeroFormat;else if(null===s&&null!==l.nullFormat)i=l.nullFormat;else{for(r in o)if(u.match(o[r].regexps.format)){a=o[r].format;break}i=(a=a||e._.numberToFormat)(s,u,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],function(e,t,r,i){return e+Math.round(n*t)},0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],function(e,t,r,i){return e-Math.round(n*t)},Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],function(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)*Math.round(n*o)/Math.round(o*o)},1),this},divide:function(e){return this._value=t.reduce([this._value,e],function(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)/Math.round(n*o)}),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,o=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},i="("+(i=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter(function(e){return n.suffixes.indexOf(e)<0})).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,i,o){var a,s,l,u=e._.includes(i,"ib")?r:n,c=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),a=0;a<=u.suffixes.length;a++)if(s=Math.pow(u.base,a),l=Math.pow(u.base,a+1),null===t||0===t||t>=s&&t0&&(t/=s);break}return e._.numberToFormat(t,i,o)+c},unformat:function(t){var i,o,a=e._.stringToNumber(t);if(a){for(i=n.suffixes.length-1;i>=0;i--){if(e._.includes(t,n.suffixes[i])){o=Math.pow(n.base,i);break}if(e._.includes(t,r.suffixes[i])){o=Math.pow(r.base,i);break}}a*=o||1}return a}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,o,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),o=0;o=0;o--)switch(s.after[o]){case"$":i=o===s.after.length-1?i+a.currency.symbol:e._.insert(i,a.currency.symbol,-(s.after.length-(1+o)));break;case" ":i=o===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+o)+a.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],function(t,n,r,i){var o=e._.correctionFactor(t,n);return t*o*(n*o)/(o*o)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],o=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),o+=i.ordinal(t),e._.numberToFormat(t,n,r)+o}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,o=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),o=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})?n.call(exports,t,exports,e):n)||(e.exports=r)},EuZeFsOO:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r=(n=t("Ept3tno1"))&&n.__esModule?n:{default:n};var i={normalizeNumber:function(e){switch(e){case"NaN":return NaN;case"Infinity":return Number.MAX_VALUE;case"-Infinity":return Number.MIN_VALUE;default:return e}},normalizeGraphNumber:function(e){switch(e){case"NaN":case"Infinity":case"-Infinity":return 0;default:return e}},formatNumber:function(e){try{return(0,r.default)(this.normalizeNumber(e)).format("0,0.[00]")}catch(t){return e}},formatPercentage:function(e){try{return(0,r.default)(this.normalizeNumber(e)).format("0.00%")}catch(t){return e}},formatBytes:function(e){var t;r.default.zeroFormat("0B");try{t=(0,r.default)(this.normalizeNumber(e)).format("0.0ib")}catch(n){t=e}return r.default.zeroFormat(null),t},isNumber:function(e){return""!==e&&!isNaN(e)}};exports.default=i,e.exports=exports.default},EvWcnysP:function(e,exports,t){var n=t("NqFDHFr2");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t("5omYMvbi")(n,r);n.locals&&(e.exports=n.locals)},Ewbhy0hc:function(e,exports,t){var n=t("u2mgHbaT"),r=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();e.exports=i},F48TptDW:function(e,exports,t){(function(e){ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(require,exports,e){"use strict";var t=require("./lib/oop"),n=(require("./lib/lang"),require("./lib/event_emitter").EventEmitter),r=require("./editor").Editor,i=require("./virtual_renderer").VirtualRenderer,o=require("./edit_session").EditSession,a=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on("focus",function(e){this.$cEditor=e}.bind(this))};(function(){t.implement(this,n),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new r(new i(e,this.$theme));return t.on("focus",function(){this._emit("focus",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splitse;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(t){t.setFontSize(e)})},this.$cloneSession=function(e){var t=new o(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;return n=null==t?this.$cEditor:this.$editors[t],this.$editors.some(function(t){return t.session===e})&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var r=t/this.$splits,i=0;i>",i={listOf:function(e){return l(e,"List",n.List.isList)},mapOf:function(e,t){return u(e,t,"Map",n.Map.isMap)},orderedMapOf:function(e,t){return u(e,t,"OrderedMap",n.OrderedMap.isOrderedMap)},setOf:function(e){return l(e,"Set",n.Set.isSet)},orderedSetOf:function(e){return l(e,"OrderedSet",n.OrderedSet.isOrderedSet)},stackOf:function(e){return l(e,"Stack",n.Stack.isStack)},iterableOf:function(e){return l(e,"Iterable",n.Iterable.isIterable)},recordOf:function(e){return a(function(t,r,i,a,s){for(var l=arguments.length,u=Array(l>5?l-5:0),c=5;c6?l-6:0),c=6;c5?u-5:0),f=5;f5?o-5:0),s=5;s key("+c[f]+")"].concat(a));if(p instanceof Error)return p}})).apply(void 0,o);var u})}function c(e){var t=void 0===arguments[1]?"Iterable":arguments[1],r=void 0===arguments[2]?n.Iterable.isIterable:arguments[2];return a(function(n,i,a,s,l){for(var u=arguments.length,c=Array(u>5?u-5:0),f=5;f-1})})[0]||null};var i=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}(t("UlwEtMr4"));function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n){var r=t.reduce(function(t,n){return t||e.getData(n)},null);return null!=r?r:n}var s=(o(n={},i.FILE,{exposeProperty:"files",matchesTypes:["Files"],getData:function(e){return Array.prototype.slice.call(e.files)}}),o(n,i.URL,{exposeProperty:"urls",matchesTypes:["Url","text/uri-list"],getData:function(e,t){return a(e,t,"").split("\n")}}),o(n,i.TEXT,{exposeProperty:"text",matchesTypes:["Text","text/plain"],getData:function(e,t){return a(e,t,"")}}),n)},FIH0PMrk:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n,r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return o.default.createElement("svg",r({viewBox:"0 0 24 24",style:r({fill:n,width:a,height:l},c)},f),o.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},FKJPzUAn:function(e,exports,t){e.exports=t.p+"766f1a752d39d4a4d78023b167d00c69.js"},"FTyHBy/Q":function(e,exports,t){(function(e){var n=t("RMa3hR3V"),r=t("JXajPUSn"),i=exports&&!exports.nodeType&&exports,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}).call(this,t("9YbPW59L")(e))},FVME0exk:function(e,exports,t){e.exports=t.p+"2046c14a2f2117b31a18e043fc927e74.js"},"FaMjc/gz":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=f(t("ii0bleBb")),r=f(t("ivGQtwpr")),i=f(t("H/eHg5XM")),o=f(t("F4DwUtwC")),a=t("os2pWP01"),s=t("qOZsORvD"),l=t("J6m01YZl"),u=f(t("7QAbkgSv")),c=t("IQgAPhpj");function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return(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})(e)}function p(e,t){for(var n=0;n0}),v(m(n),"_shouldRenderBelowHistogram",function(e){return e.displayPriority<=0}),v(m(n),"_toggleShouldHighlight",function(){n.setState({shouldHighlight:!n.state.shouldHighlight})}),v(m(n),"state",{selectedFields:n.sortFields(b.fields),showAllFields:!1,shouldHighlight:!0,savedSearch:b.savedSearch}),n}var n,o,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,r["default"].Component),n=t,(o=[{key:"componentDidUpdate",value:function(){this._resetSelectedFields()}},{key:"render",value:function(){var e,t=this,n=i.default.fromJS(this.props.result.messages).some(function(e){return null!==e.get("highlight_ranges")});return this.props.loadingSearch&&(e=r.default.createElement(s.LoadingIndicator,{text:"Updating search results..."})),0===this.props.result.total_results?r.default.createElement("div",null,r.default.createElement(l.NoSearchResults,{builtQuery:this.props.builtQuery,histogram:this.props.histogram,permissions:this.props.permissions,searchInStream:this.props.searchInStream}),e):r.default.createElement(a.Row,{id:"main-content-search"},r.default.createElement(a.Col,{md:3,sm:12,id:"sidebar"},r.default.createElement(l.SearchSidebar,{result:this.props.result,builtQuery:this.props.builtQuery,selectedFields:this.state.selectedFields,fields:this._fields(),fieldAnalyzers:this._fieldAnalyzers(),showAllFields:this.state.showAllFields,togglePageFields:this.togglePageFields,onFieldToggled:this.onFieldToggled,onFieldAnalyzer:this.addFieldAnalyzer,predefinedFieldSelection:this.predefinedFieldSelection,showHighlightToggle:n,shouldHighlight:this.state.shouldHighlight,toggleShouldHighlight:this._toggleShouldHighlight,currentSavedSearch:b.savedSearch,searchInStream:this.props.searchInStream,permissions:this.props.permissions,loadingSearch:this.props.loadingSearch,searchConfig:this.props.searchConfig})),r.default.createElement(a.Col,{md:9,sm:12,id:"main-content-sidebar"},this._fieldAnalyzerComponents(function(e){return t._shouldRenderAboveHistogram(e)}),r.default.createElement(l.LegacyHistogram,{formattedHistogram:this.props.formattedHistogram,histogram:this.props.histogram,permissions:this.props.permissions,stream:this.props.searchInStream}),this._fieldAnalyzerComponents(function(e){return t._shouldRenderBelowHistogram(e)}),r.default.createElement(l.ResultTable,{messages:this.props.result.messages,page:b.page,selectedFields:this.state.selectedFields,sortField:b.sortField,sortOrder:b.sortOrder,resultCount:this.props.result.total_results,inputs:this.props.inputs,streams:this.props.streams,nodes:this.props.nodes,highlight:this.state.shouldHighlight,searchConfig:this.props.searchConfig}),e))}}])&&p(n.prototype,o),u&&p(n,u),t}();v(y,"propTypes",{query:n.default.string,builtQuery:n.default.string,result:n.default.object.isRequired,histogram:n.default.object.isRequired,formattedHistogram:n.default.array,searchInStream:n.default.object,streams:o.default.map,inputs:o.default.map,nodes:o.default.map,permissions:n.default.array.isRequired,searchConfig:n.default.object.isRequired,loadingSearch:n.default.bool,forceFetch:n.default.bool}),v(y,"defaultProps",{query:"*",builtQuery:"",formattedHistogram:[],searchInStream:null,streams:i.default.Map({}),inputs:i.default.Map({}),nodes:i.default.Map({})});var w=y;exports.default=w,e.exports=exports.default},"Faj6uC4/":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=h(t("ii0bleBb")),r=h(t("ivGQtwpr")),i=h(t("PcYM+wZ7")),o=h(t("4KF7VOU5")),a=h(t("nXSFNspX")),s=h(t("wxSXYi6/")),l=t("os2pWP01"),u=t("mGX5yrPY"),c=t("qOZsORvD"),f=h(t("7QAbkgSv")),d=h(t("1SPPmkhJ")),p=h(t("fZ4OAAo6"));function h(e){return e&&e.__esModule?e:{default:e}}var m=f.default.getStore("Decorators"),g=d.default.getActions("Decorators"),v=(0,i.default)({displayName:"AddDecoratorButton",propTypes:{nextOrder:n.default.number.isRequired,stream:n.default.string.isRequired,disabled:n.default.bool},mixins:[o.default.connect(m),s.default],getDefaultProps:function(){return{disabled:!1}},getInitialState:function(){return{typeDefinition:{}}},_formatDecoratorType:function(e,t){return{value:t,label:e.name}},_handleCancel:function(){this.select.clearValue(),this.setState(this.getInitialState())},_handleSubmit:function(e){var t=this.props,n=t.stream,r=t.nextOrder,i={stream:n,type:e.type,config:e.configuration,order:r};g.create(i),this.setState({typeName:this.PLACEHOLDER})},_openModal:function(){this.configurationForm.open()},_onTypeChange:function(e){var t=this.state.types;this.setState({typeName:e}),t[e]?this.setState({typeDefinition:t[e]}):this.setState({typeDefinition:{}})},render:function(){var e=this,t=this.state,n=t.types,i=t.typeDefinition,o=t.typeName,s=this.props.disabled;if(!n)return r.default.createElement(c.Spinner,null);var f=a.default.map(n,this._formatDecoratorType),d=o!==this.PLACEHOLDER?r.default.createElement(u.ConfigurationForm,{ref:function(t){e.configurationForm=t},key:"configuration-form-output",configFields:i.requested_configuration,title:"Create new ".concat(i.name),typeName:o,includeTitleField:!1,submitAction:this._handleSubmit,cancelAction:this._handleCancel}):null;return r.default.createElement("div",{className:"".concat(p.default.decoratorBox," ").concat(p.default.addDecoratorButtonContainer)},r.default.createElement("div",{className:p.default.addDecoratorSelect},r.default.createElement(c.Select,{ref:function(t){e.select=t},placeholder:"Select decorator",onChange:this._onTypeChange,options:f,matchProp:"label",disabled:s,value:o})),r.default.createElement(l.Button,{bsStyle:"success",disabled:!o||s,onClick:this._openModal},"Apply"),o&&d)}});exports.default=v,e.exports=exports.default},Fceew81t:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ivGQtwpr")),r=o(t("ii0bleBb")),i=o(t("B0I5DBk0"));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=function(e){var t=e.name,r=e.text,o=s(e,["name","text"]);return n.default.createElement("span",null,n.default.createElement(i.default,a({name:t,spin:!0},o))," ",r)};l.propTypes={name:r.default.string,text:r.default.string},l.defaultProps={name:"spinner",text:"Loading..."};var u=l;exports.default=u,e.exports=exports.default},"FdyG+bRy":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.calculateChange=function(e,t,n,r){var i=r.clientWidth,o=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(r.getBoundingClientRect().left+window.pageXOffset),u=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(u<0)c=359;else if(u>o)c=0;else{c=360*(-100*u/o+100)/100}if(n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"rgb"}}else{var f=void 0;if(l<0)f=0;else if(l>i)f=359;else{f=360*(100*l/i)/100}if(n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"rgb"}}return null}},Fg3XXlMk:function(e,exports,t){e.exports=t.p+"6d07770b0ff386b63d8956a9fd7f0685.js"},FhO7VHlL:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.calculateChange=function(e,t,n){var r=n.getBoundingClientRect(),i=r.width,o=r.height,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(n.getBoundingClientRect().left+window.pageXOffset),u=s-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>i?l=i:u<0?u=0:u>o&&(u=o);var c=100*l/i,f=-100*u/o+100;return{h:t.h,s:c,v:f,a:t.a,source:"rgb"}}},FlmMpI3w:function(e,exports,t){(exports=e.exports=t("MAMP9hQI")(!1)).push([e.i,"._3K5sldkGLn0wH1yNYzfABL{display:inline-block;width:100%}._39zdR8QD5c9ijcUT43rJh9{float:left;margin-right:10px}",""]),exports.locals={listGroupItem:"_3K5sldkGLn0wH1yNYzfABL",itemHandle:"_39zdR8QD5c9ijcUT43rJh9"}},FnsBVaL4:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("ivGQtwpr"),r=t("ak+cODeF"),i=(t("uTpwwmj/"),["canDrag","beginDrag","isDragging","endDrag"]),o=["beginDrag"];exports.default=function(e){Object.keys(e).forEach(function(t){r(i.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',i.join(", "),t),r("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])}),o.forEach(function(t){r("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])});var t=function(){function t(t){var r=this;this.monitor=t,this.props=null,this.ref=n.createRef(),this.beginDrag=function(){if(r.props)return e.beginDrag(r.props,r.monitor,r.ref.current)}}return t.prototype.receiveProps=function(e){this.props=e},t.prototype.canDrag=function(){return!!this.props&&(!e.canDrag||e.canDrag(this.props,this.monitor))},t.prototype.isDragging=function(t,n){return!!this.props&&(e.isDragging?e.isDragging(this.props,this.monitor):n===t.getSourceId())},t.prototype.endDrag=function(){this.props&&e.endDrag&&e.endDrag(this.props,this.monitor,this.ref.current)},t}();return function(e){return new t(e)}}},Fvv7Bzcw:function(e,exports,t){var n=t("mKUXduhk"),r=t("rXvH2Tfh"),i=t("BROiy16s");e.exports=function(e,t,o){var a=e.length;if(a<2)return a?i(e[0]):[];for(var s=-1,l=Array(a);++sh1{margin-top:0}.react-confirm-alert-body>h3{margin:0;font-size:16px}.react-confirm-alert-button-group{display:-webkit-flex;display:-moz-flex;display:-ms-flex;display:-o-flex;display:flex;justify-content:flex-start;margin-top:20px}.react-confirm-alert-button-group>button{outline:none;background:#333;border:none;display:inline-block;padding:6px 18px;color:#eee;margin-right:10px;border-radius:5px;font-size:12px;cursor:pointer}@-webkit-keyframes react-confirm-alert-fadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes react-confirm-alert-fadeIn{0%{opacity:0}to{opacity:1}}@-o-keyframes react-confirm-alert-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes react-confirm-alert-fadeIn{0%{opacity:0}to{opacity:1}}",""])},GQq1IDzf:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=c(t("rJZCvzgl")),r=t("F48TptDW"),i=c(t("ivGQtwpr")),o=u(t("ii0bleBb")),a=u(t("ZhFGqF+H")),s=u(t("3CftRekL")),l=t("gAS90TDJ");function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function f(e){return(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})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n0&&e.handleMarkers(_,t);for(var C=0;C-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',i.join(", "),t),r("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html",t,t,e[t])});var t=function(){function t(e){this.monitor=e,this.props=null,this.ref=n.createRef()}return t.prototype.receiveProps=function(e){this.props=e},t.prototype.receiveMonitor=function(e){this.monitor=e},t.prototype.canDrop=function(){return!e.canDrop||e.canDrop(this.props,this.monitor)},t.prototype.hover=function(){e.hover&&e.hover(this.props,this.monitor,this.ref.current)},t.prototype.drop=function(){if(e.drop)return e.drop(this.props,this.monitor,this.ref.current)},t}();return function(e){return new t(e)}}},"H/eHg5XM":function(e,exports,t){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:V(e)}function r(e){return s(e)?e:K(e)}function i(e){return l(e)?e:Q(e)}function o(e){return a(e)&&!u(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[d])}function l(e){return!(!e||!e[p])}function u(e){return s(e)||l(e)}function c(e){return!(!e||!e[h])}t(r,n),t(i,n),t(o,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=l,n.isAssociative=u,n.isOrdered=c,n.Keyed=r,n.Indexed=i,n.Set=o;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",m=5,g=1<>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?C(e)+t:t}function k(){return!0}function M(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function A(e,t){return P(e,t,0)}function T(e,t){return P(e,t,t)}function P(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var j=0,R=1,D=2,F="function"==typeof Symbol&&Symbol.iterator,I="@@iterator",L=F||I;function N(e){this.next=e}function z(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function B(){return{value:void 0,done:!0}}function H(e){return!!G(e)}function U(e){return e&&"function"==typeof e.next}function W(e){var t=G(e);return t&&t.call(e)}function G(e){var t=e&&(F&&e[F]||e[I]);if("function"==typeof t)return t}function q(e){return e&&"number"==typeof e.length}function V(e){return null==e?ae():a(e)?e.toSeq():function(e){var t=ue(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function K(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function Q(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():le(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:le(e)).toSetSeq()}N.prototype.toString=function(){return"[Iterator]"},N.KEYS=j,N.VALUES=R,N.ENTRIES=D,N.prototype.inspect=N.prototype.toSource=function(){return this.toString()},N.prototype[L]=function(){return this},t(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(e,t){return ce(this,e,t,!0)},V.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(K,V),K.prototype.toKeyedSeq=function(){return this},t(Q,V),Q.of=function(){return Q(arguments)},Q.prototype.toIndexedSeq=function(){return this},Q.prototype.toString=function(){return this.__toString("Seq [","]")},Q.prototype.__iterate=function(e,t){return ce(this,e,t,!1)},Q.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},t(Y,V),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},V.isSeq=oe,V.Keyed=K,V.Set=Y,V.Indexed=Q;var X,Z,J,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function ie(e){this._iterator=e,this._iteratorCache=[]}function oe(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new ie(e).fromEntrySeq():H(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){return q(e)?new te(e):U(e)?new ie(e):H(e)?new re(e):void 0}function ce(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function fe(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new N(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:z(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function de(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,Q(n).map(function(r,i){return e(t,r,i,n)})):he(n)?t.call(i,r,K(n).map(function(r,i){return e(t,r,i,n)})):n}(t,e,"",{"":e}):pe(e)}function pe(e){return Array.isArray(e)?Q(e).map(pe).toList():he(e)?K(e).map(pe).toMap():e}function he(e){return e&&(e.constructor===Object||void 0===e.constructor)}function me(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ge(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&me(i[1],e)&&(n||me(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var f=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):i?!me(t,e.get(r,b)):!me(e.get(r,b),t))return f=!1,!1});return f&&e.size===d}function ve(e,t){if(!(this instanceof ve))return new ve(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Z)return Z;Z=this}}function be(e,t){if(!e)throw new Error(t)}function ye(e,t,n){if(!(this instanceof ye))return new ye(e,t,n);if(be(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),tr?{value:void 0,done:!0}:z(e,i,n[t?r-i++:i++])})},t(ne,K),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new N(function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:z(e,a,n[a])})},ne.prototype[h]=!0,t(re,Q),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=W(this._iterable),r=0;if(U(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=W(this._iterable);if(!U(n))return new N(B);var r=0;return new N(function(){var t=n.next();return t.done?t:z(e,r++,t.value)})},t(ie,Q),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return z(e,i,r[i++])})},t(ve,Q),ve.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ve.prototype.get=function(e,t){return this.has(e)?this._value:t},ve.prototype.includes=function(e){return me(this._value,e)},ve.prototype.slice=function(e,t){var n=this.size;return M(e,t,n)?this:new ve(this._value,T(t,n)-A(e,n))},ve.prototype.reverse=function(){return this},ve.prototype.indexOf=function(e){return me(this._value,e)?0:-1},ve.prototype.lastIndexOf=function(e){return me(this._value,e)?this.size:-1},ve.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:z(e,o++,a)})},ye.prototype.equals=function(e){return e instanceof ye?this._start===e._start&&this._end===e._end&&this._step===e._step:ge(this,e)},t(we,n),t(_e,we),t(xe,we),t(Ee,we),we.Keyed=_e,we.Indexed=xe,we.Set=Ee;var Se="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ce(e){return e>>>1&1073741824|3221225471&e}function Oe(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ce(n)}if("string"===t)return e.length>De?function(e){var t=Le[e];return void 0===t&&(t=ke(e),Ie===Fe&&(Ie=0,Le={}),Ie++,Le[e]=t),t}(e):ke(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Pe&&void 0!==(t=Me.get(e)))return t;if(void 0!==(t=e[Re]))return t;if(!Te){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Re]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++je,1073741824&je&&(je=0),Pe)Me.set(e,t);else{if(void 0!==Ae&&!1===Ae(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Te)Object.defineProperty(e,Re,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Re]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Re]=t}}return t}(e);if("function"==typeof e.toString)return ke(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ke(e){for(var t=0,n=0;n=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}})},ze.prototype.toString=function(){return this.__toString("Map {","}")},ze.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ze.prototype.set=function(e,t){return et(this,e,t)},ze.prototype.setIn=function(e,t){return this.updateIn(e,b,function(){return t})},ze.prototype.remove=function(e){return et(this,e,b)},ze.prototype.deleteIn=function(e){return this.updateIn(e,function(){return b})},ze.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ze.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===b,a=n.next();if(a.done){var s=o?r:t,l=i(s);return l===s?t:l}be(o||t&&t.set,"invalid keyPath");var u=a.value,c=o?b:t.get(u,b),f=e(c,n,r,i);return f===c?t:f===b?t.remove(u):(o?Je():t).set(u,f)}(this,on(e),t,n);return r===b?void 0:r},ze.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Je()},ze.prototype.merge=function(){return it(this,void 0,arguments)},ze.prototype.mergeWith=function(t){var n=e.call(arguments,1);return it(this,t,n)},ze.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Je(),function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]})},ze.prototype.mergeDeep=function(){return it(this,ot,arguments)},ze.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return it(this,at(t),n)},ze.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Je(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]})},ze.prototype.sort=function(e){return Tt(Vt(this,e))},ze.prototype.sortBy=function(e,t){return Tt(Vt(this,t,e))},ze.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ze.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new E)},ze.prototype.asImmutable=function(){return this.__ensureOwner()},ze.prototype.wasAltered=function(){return this.__altered},ze.prototype.__iterator=function(e,t){return new Qe(this,e,t)},ze.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ze.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ze(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ze.isMap=Be;var He,Ue="@@__IMMUTABLE_MAP__@@",$e=ze.prototype;function We(e,t){this.ownerID=e,this.entries=t}function Ge(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function qe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Ve(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ke(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Qe(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Xe(e._root)}function Ye(e,t){return z(e,t[0],t[1])}function Xe(e,t){return{node:e,index:0,__prev:t}}function Ze(e,t,n,r){var i=Object.create($e);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Je(){return He||(He=Ze(0))}function et(e,t,n){var r,i;if(e._root){var o=_(y),a=_(w);if(r=tt(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===b?-1:1:0)}else{if(n===b)return e;i=1,r=new We(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Ze(i,r):Je()}function tt(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===b?e:(x(s),x(a),new Ke(t,r,[i,o]))}function nt(e){return e.constructor===Ke||e.constructor===Ve}function rt(e,t,n,r,i){if(e.keyHash===r)return new Ve(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&v,s=(0===n?r:r>>>n)&v;return new Ge(t,1<>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function ut(e,t,n,r){var i=r?e:S(e);return i[t]=n,i}$e[Ue]=!0,$e.delete=$e.remove,$e.removeIn=$e.deleteIn,We.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=ct)return function(e,t,n,r){e||(e=new E);for(var i=new Ke(e,Oe(n),[n,r]),o=0;o>>e)&v),o=this.bitmap;return 0==(o&i)?r:this.nodes[lt(o&i-1)].get(e+m,t,n,r)},Ge.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Oe(r));var s=(0===t?n:n>>>t)&v,l=1<=ft)return function(e,t,n,r,i){for(var o=0,a=new Array(g),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new qe(e,o+1,a)}(e,d,u,s,h);if(c&&!h&&2===d.length&&nt(d[1^f]))return d[1^f];if(c&&h&&1===d.length&&nt(h))return h;var y=e&&e===this.ownerID,w=c?h?u:u^l:u|l,_=c?h?ut(d,f,h,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&v,o=this.nodes[i];return o?o.get(e+m,t,n,r):r},qe.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Oe(r));var s=(0===t?n:n>>>t)&v,l=i===b,u=this.nodes,c=u[s];if(l&&!c)return this;var f=tt(c,e,t+m,n,r,i,o,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d0&&r=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?kt(e,t).set(0,n):kt(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=_(w);return t>=At(e._capacity)?r=St(r,e.__ownerID,0,t,n,o):i=St(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):xt(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},pt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},pt.prototype.insert=function(e,t){return this.splice(e,0,t)},pt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Et()},pt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){kt(n,0,t+e.length);for(var r=0;r>>t&v;if(r>=this.array.length)return new vt([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-m,n))===a&&o)return this}if(o&&!i)return this;var s=Ct(this,e);if(!o)for(var l=0;l>>t&v;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-m,n))===o&&i===this.array.length-1)return this}var a=Ct(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var bt,yt,wt={};function _t(e,t){var n=e._origin,r=e._capacity,i=At(r),o=e._tail;return a(e._root,e._level,0);function a(e,s,l){return 0===s?function(e,a){var s=a===i?o&&o.array:e&&e.array,l=a>n?0:n-a,u=r-a;return u>g&&(u=g),function(){if(l===u)return wt;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,i,o){var s,l=e&&e.array,u=o>n?0:n-o>>i,c=1+(r-o>>i);return c>g&&(c=g),function(){for(;;){if(s){var e=s();if(e!==wt)return e;s=null}if(u===c)return wt;var n=t?--c:u++;s=a(l&&l[n],i-m,o+(n<>>n&v,l=e&&s0){var u=e&&e.array[s],c=St(u,t,n-m,r,i,o);return c===u?e:((a=Ct(e,t)).array[s]=c,a)}return l&&e.array[s]===i?e:(x(o),a=Ct(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ct(e,t){return t&&e&&t===e.ownerID?e:new vt(e?e.array.slice():[],t)}function Ot(e,t){if(t>=At(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&v],r-=m;return n}}function kt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new E,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new vt(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=m);c&&(a+=c,i+=c,s+=c,o+=c);for(var f=At(o),d=At(s);d>=1<f?new vt([],r):p;if(p&&d>f&&am;b-=m){var y=f>>>b&v;g=g.array[y]=Ct(g.array[y],r)}g.array[f>>>m&v]=p}if(s=d)a-=d,s-=d,l=m,u=null,h=h&&h.removeBefore(r,0,a);else if(a>i||d>>l&v;if(w!==d>>>l&v)break;w&&(c+=(1<i&&(u=u.removeBefore(r,l,a-c)),u&&do&&(o=u.size),a(l)||(u=u.map(function(e){return de(e)})),r.push(u)}return o>e.size&&(e=e.setSize(o)),st(e,t,r)}function At(e){return e>>m<=g&&a.size>=2*o.size?(r=(i=a.filter(function(e,t){return void 0!==e&&s!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):jt(r,i)}function Ft(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function It(e){this._iter=e,this.size=e.size}function Lt(e){this._iter=e,this.size=e.size}function Nt(e){this._iter=e,this.size=e.size}function zt(e){var t=tn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=nn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===D){var r=e.__iterator(t,n);return new N(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===R?j:R,n)},t}function Bt(e,t,n){var r=tn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,b);return o===b?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(D,i);return new N(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),i)})},r}function Ht(e,t){var n=tn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=zt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=nn,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Ut(e,t,n,r){var i=tn(e);return r&&(i.has=function(r){var i=e.get(r,b);return i!==b&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,b);return o!==b&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,l){if(t.call(n,e,o,l))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(D,o),s=0;return new N(function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return z(i,r?u:s++,c,o)}})},i}function $t(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),M(t,n,i))return e;var o=A(t,i),a=T(n,i);if(o!=o||a!=a)return $t(e.toSeq().cacheResult(),t,n,r);var s,l=a-o;l==l&&(s=l<0?0:l);var u=tn(e);return u.size=0===s?s:e.size&&s||void 0,!r&&oe(e)&&s>=0&&(u.get=function(t,n){return(t=O(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||t===R?e:z(t,l-1,t===j?void 0:e.value[1],e)})},u}function Wt(e,t,n,r){var i=tn(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,l=0;return e.__iterate(function(e,o,u){if(!s||!(s=t.call(n,e,o,u)))return l++,i(e,r?o:l-1,a)}),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(D,o),l=!0,u=0;return new N(function(){var e,o,c;do{if((e=s.next()).done)return r||i===R?e:z(i,u++,i===j?void 0:e.value[1],e);var f=e.value;o=f[0],c=f[1],l&&(l=t.call(n,c,o,a))}while(l);return i===D?e:z(i,o,c,e)})},i}function Gt(e,t){var n=s(e),i=[e].concat(t).map(function(e){return a(e)?n&&(e=r(e)):e=n?se(e):le(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var o=i[0];if(o===e||n&&s(o)||l(e)&&l(o))return o}var u=new te(i);return n?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),u}function qt(e,t,n){var r=tn(e);return r.__iterateUncached=function(r,i){var o=0,s=!1;return function e(l,u){var c=this;l.__iterate(function(i,l){return(!t||u0}function Yt(e,t,r){var i=tn(e);return i.size=new te(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=n(e),W(i?e.reverse():e)}),a=0,s=!1;return new N(function(){var n;return s||(n=o.map(function(e){return e.next()}),s=n.some(function(e){return e.done})),s?{value:void 0,done:!0}:z(e,a++,t.apply(null,n.map(function(e){return e.value})))})},i}function Xt(e,t){return oe(e)?t:e.constructor(t)}function Zt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Jt(e){return Ne(e.size),C(e)}function en(e){return s(e)?r:l(e)?i:o}function tn(e){return Object.create((s(e)?K:l(e)?Q:Y).prototype)}function nn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function rn(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Tn(e,t)},Cn.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;Ne(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Tn(t,n)},Cn.prototype.pop=function(){return this.slice(1)},Cn.prototype.unshift=function(){return this.push.apply(this,arguments)},Cn.prototype.unshiftAll=function(e){return this.pushAll(e)},Cn.prototype.shift=function(){return this.pop.apply(this,arguments)},Cn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Pn()},Cn.prototype.slice=function(e,t){if(M(e,t,this.size))return this;var n=A(e,this.size);if(T(t,this.size)!==this.size)return xe.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Tn(r,i)},Cn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Tn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Cn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Cn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new N(function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return{value:void 0,done:!0}})},Cn.isStack=On;var kn,Mn="@@__IMMUTABLE_STACK__@@",An=Cn.prototype;function Tn(e,t,n,r){var i=Object.create(An);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Pn(){return kn||(kn=Tn(0))}function jn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}An[Mn]=!0,An.withMutations=$e.withMutations,An.asMutable=$e.asMutable,An.asImmutable=$e.asImmutable,An.wasAltered=$e.wasAltered,n.Iterator=N,jn(n,{toArray:function(){Ne(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new It(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Ft(this,!0)},toMap:function(){return ze(this.toKeyedSeq())},toObject:function(){Ne(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Tt(this.toKeyedSeq())},toOrderedSet:function(){return yn(s(this)?this.valueSeq():this)},toSet:function(){return fn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Lt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Cn(s(this)?this.valueSeq():this)},toList:function(){return pt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return Xt(this,Gt(this,t))},includes:function(e){return this.some(function(t){return me(t,e)})},entries:function(){return this.__iterator(D)},every:function(e,t){Ne(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return Xt(this,Ut(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Ne(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ne(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""}),t},keys:function(){return this.__iterator(j)},map:function(e,t){return Xt(this,Bt(this,e,t))},reduce:function(e,t,n){var r,i;return Ne(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Xt(this,Ht(this,!0))},slice:function(e,t){return Xt(this,$t(this,e,t,!0))},some:function(e,t){return!this.every(Ln(e),t)},sort:function(e){return Xt(this,Vt(this,e))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return C(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ze().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return ge(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(In).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Ln(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(k)},flatMap:function(e,t){return Xt(this,function(e,t,n){var r=en(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return Xt(this,qt(this,e,!0))},fromEntrySeq:function(){return new Nt(this)},get:function(e,t){return this.find(function(t,n){return me(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=on(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,b):b)===b)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),i=(c(e)?Tt():ze()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=en(e);return i.map(function(t){return Xt(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return me(t,e)})},keySeq:function(){return this.toSeq().map(Fn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Kt(this,e)},maxBy:function(e,t){return Kt(this,t,e)},min:function(e){return Kt(this,e?Nn(e):Hn)},minBy:function(e,t){return Kt(this,t?Nn(t):Hn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Xt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Xt(this,Wt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Ln(e),t)},sortBy:function(e,t){return Xt(this,Vt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Xt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Xt(this,function(e,t,n){var r=tn(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(D,i),s=!0;return new N(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,l=i[0],u=i[1];return t.call(n,u,l,o)?r===D?e:z(r,l,u,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Ln(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),r=t?1:0;return function(e,t){return t=Se(t,3432918353),t=Se(t<<15|t>>>-15,461845907),t=Se(t<<13|t>>>-13,5),t=Se((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ce((t=Se(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Un(Oe(e),Oe(t))|0}:function(e,t){r=r+Un(Oe(e),Oe(t))|0}:t?function(e){r=31*r+Oe(e)|0}:function(e){r=r+Oe(e)|0}),r)}(this))}});var Rn=n.prototype;Rn[f]=!0,Rn[L]=Rn.values,Rn.__toJS=Rn.toArray,Rn.__toStringMapper=zn,Rn.inspect=Rn.toSource=function(){return this.toString()},Rn.chain=Rn.flatMap,Rn.contains=Rn.includes,jn(r,{flip:function(){return Xt(this,zt(this))},mapEntries:function(e,t){var n=this,r=0;return Xt(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Xt(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Dn=r.prototype;function Fn(e,t){return t}function In(e,t){return[t,e]}function Ln(e){return function(){return!e.apply(this,arguments)}}function Nn(e){return function(){return-e.apply(this,arguments)}}function zn(e){return"string"==typeof e?JSON.stringify(e):String(e)}function Bn(){return S(arguments)}function Hn(e,t){return et?-1:0}function Un(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Dn[d]=!0,Dn[L]=Rn.entries,Dn.__toJS=Rn.toObject,Dn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+zn(e)},jn(i,{toKeyedSeq:function(){return new Ft(this,!1)},filter:function(e,t){return Xt(this,Ut(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Xt(this,Ht(this,!1))},slice:function(e,t){return Xt(this,$t(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=A(e,e<0?this.count():this.size);var r=this.slice(0,e);return Xt(this,1===n?r:r.concat(S(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Xt(this,qt(this,e,!1))},get:function(e,t){return(e=O(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=O(this,e))>=0&&(void 0!==this.size?this.size===1/0||e=1,r=arguments.length>=2;if(!(this instanceof o))return n?r?new o(e,t):new o(e):new o;if(void 0===e){if(n)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&n)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}o.version="1.19.1";var a=o.prototype,s=Object.prototype.hasOwnProperty;function l(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function u(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function c(e){return"Array"===u(e)}function f(e,t){var n,r,i={};if("RegExp"===u(t))i=null;else if(c(t))for(n=0,r=t.length;n]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return o.domAttributes[t]}},o.encode=g,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=g,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(e,t){var n=o.encode(e+"");return void 0===t&&(t=o.escapeQuerySpace),t?n.replace(/%20/g,"+"):n},o.decodeQuery=function(e,t){e+="",void 0===t&&(t=o.escapeQuerySpace);try{return o.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var v,b={encode:"encode",decode:"decode"},y=function(e,t){return function(n){try{return o[t](n+"").replace(o.characters[e][t].expression,function(n){return o.characters[e][t].map[n]})}catch(e){return n}}};for(v in b)o[v+"PathSegment"]=y("pathname",b[v]),o[v+"UrnPathSegment"]=y("urnpath",b[v]);var w=function(e,t,n){return function(r){var i;i=n?function(e){return o[t](o[n](e))}:o[t];for(var a=(r+"").split(e),s=0,l=a.length;s-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),(n=e.indexOf("?"))>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),"//"===e.substring(0,2)?(t.protocol=null,e=e.substring(2),e=o.parseAuthority(e,t)):(n=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(o.protocol_expression)?t.protocol=void 0:"//"===e.substring(n+1,n+3)?(e=e.substring(n+3),e=o.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0)),t.path=e,t},o.parseHost=function(e,t){e||(e="");var n,r,i=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=e.length),"["===e.charAt(0))n=e.indexOf("]"),t.hostname=e.substring(1,n)||null,t.port=e.substring(n+2,i)||null,"/"===t.port&&(t.port=null);else{var a=e.indexOf(":"),s=e.indexOf("/"),l=e.indexOf(":",a+1);-1!==l&&(-1===s||l-1?r:e.length-1);return i>-1&&(-1===r||i-1?p.slice(0,h)+p.slice(h).replace(a,""):p.replace(a,"")).length<=u[0].length||n.ignore&&n.ignore.test(p))){var v=t(p,c,d=c+p.length,e);void 0!==v?(v=String(v),e=e.slice(0,c)+v+e.slice(d),r.lastIndex=c+v.length):r.lastIndex=d}}return r.lastIndex=0,e},o.ensureValidHostname=function(t,n){var r=!!t,i=!1;if(!!n&&(i=d(o.hostProtocols,n)),i&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(t&&t.match(o.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},o.noConflict=function(e){if(e){var t={URI:this.noConflict()};return r.URITemplate&&"function"==typeof r.URITemplate.noConflict&&(t.URITemplate=r.URITemplate.noConflict()),r.IPv6&&"function"==typeof r.IPv6.noConflict&&(t.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&"function"==typeof r.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=r.SecondLevelDomains.noConflict()),t}return r.URI===this&&(r.URI=i),this},a.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new o(this)},a.valueOf=a.toString=function(){return this.build(!1)._string},a.protocol=_("protocol"),a.username=_("username"),a.password=_("password"),a.hostname=_("hostname"),a.port=_("port"),a.query=x("query","?"),a.fragment=x("fragment","#"),a.search=function(e,t){var n=this.query(e,t);return"string"==typeof n&&n.length?"?"+n:n},a.hash=function(e,t){var n=this.fragment(e,t);return"string"==typeof n&&n.length?"#"+n:n},a.pathname=function(e,t){if(void 0===e||!0===e){var n=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?o.decodeUrnPath:o.decodePath)(n):n}return this._parts.urn?this._parts.path=e?o.recodeUrnPath(e):"":this._parts.path=e?o.recodePath(e):"/",this.build(!t),this},a.path=a.pathname,a.href=function(e,t){var n;if(void 0===e)return this.toString();this._string="",this._parts=o._parts();var r=e instanceof o,i="object"==typeof e&&(e.hostname||e.path||e.pathname);e.nodeName&&(e=e[o.getDomAttribute(e)]||"",i=!1);if(!r&&i&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=o.parse(String(e),this._parts);else{if(!r&&!i)throw new TypeError("invalid input");var a=r?e._parts:e;for(n in a)"query"!==n&&s.call(this._parts,n)&&(this._parts[n]=a[n]);a.query&&this.query(a.query,!1)}return this.build(!t),this},a.is=function(e){var t=!1,r=!1,i=!1,a=!1,s=!1,l=!1,u=!1,c=!this._parts.urn;switch(this._parts.hostname&&(c=!1,r=o.ip4_expression.test(this._parts.hostname),i=o.ip6_expression.test(this._parts.hostname),s=(a=!(t=r||i))&&n&&n.has(this._parts.hostname),l=a&&o.idn_expression.test(this._parts.hostname),u=a&&o.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return c;case"absolute":return!c;case"domain":case"name":return a;case"sld":return s;case"ip":return t;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return i;case"idn":return l;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return u}return null};var E=a.protocol,S=a.port,C=a.hostname;a.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(o.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return E.call(this,e,t)},a.scheme=a.protocol,a.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),o.ensureValidPort(e))),S.call(this,e,t))},a.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==o.parseHost(e,n))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=n.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(e,this._parts.protocol)}return C.call(this,e,t)},a.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var r=o(e);return this.protocol(r.protocol()).authority(r.authority()).build(!t),this},a.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildHost(this._parts):"";if("/"!==o.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildAuthority(this._parts):"";if("/"!==o.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=o.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==e[e.length-1]&&(e+="@"),o.parseUserinfo(e,this._parts),this.build(!t),this},a.resource=function(e,t){var n;return void 0===e?this.path()+this.search()+this.hash():(n=o.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},a.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var r=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,r),a=new RegExp("^"+l(i));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&o.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,e),this.build(!t),this},a.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(t).length-1;return r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var i=new RegExp(l(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},a.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(r+1);return!0!==t&&n&&n.list[i.toLowerCase()]&&n.get(this._parts.hostname)||i}var o;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');o=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");o=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},a.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return e?o.decodePath(r):r}var i=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,i),s=new RegExp("^"+l(a));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=o.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this},a.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(n+1);return e?o.decodePathSegment(r):r}var i=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var a=new RegExp(l(this.filename())+"$");return e=o.recodePath(e),this._parts.path=this._parts.path.replace(a,e),i?this.normalizePath(t):this.build(!t),this},a.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var n,r,i=this.filename(),a=i.lastIndexOf(".");return-1===a?"":(n=i.substring(a+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",e?o.decodePathSegment(r):r)}"."===e.charAt(0)&&(e=e.substring(1));var s,u=this.suffix();if(u)s=e?new RegExp(l(u)+"$"):new RegExp(l("."+u)+"$");else{if(!e)return this;this._parts.path+="."+o.recodePath(e)}return s&&(e=o.recodePath(e),this._parts.path=this._parts.path.replace(s,e)),this.build(!t),this},a.segment=function(e,t,n){var r=this._parts.urn?":":"/",i=this.path(),o="/"===i.substring(0,1),a=i.split(r);if(void 0!==e&&"number"!=typeof e&&(n=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(o&&a.shift(),e<0&&(e=Math.max(a.length+e,0)),void 0===t)return void 0===e?a:a[e];if(null===e||void 0===a[e])if(c(t)){a=[];for(var s=0,l=t.length;s li{> a{&:hover{border-color:"," "," ",";background-color:",";}}&.active > a{&,&:hover,&:focus{color:",";background-color:",";border-color:",";border-bottom-color:transparent;}}}&.nav-justified{> .active > a,> .active > a:hover,> .active > a:focus{border-color:",";}@media (min-width:","){> li > a{border-bottom-color:",";}> .active > a,> .active > a:hover,> .active > a:focus{border-bottom-color:",";}}}}"],e,r.teinte.secondary.due,r.teinte.secondary.due,e,r.teinte.secondary.due,r.teinte.primary.tre,r.teinte.primary.due,e,e,r.breakpoint.min.sm,e,r.teinte.primary.due)};exports.default=i,e.exports=exports.default},INV8sDNi:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ScratchpadProvider=exports.ScratchpadContext=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(t("ivGQtwpr")),r=o(t("ii0bleBb")),i=o(t("T5tT1uSg"));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){for(var t=1;t0?this._renderDashboardMenu():this._renderNoDashboardsMenu());var u=this.props,c=u.appendMenus,d=u.children,h=this.state.loading;return r.default.createElement("div",{style:{display:"inline-block"}},r.default.createElement(a.ButtonToolbar,{className:p.default.toolbar},r.default.createElement(a.ButtonGroup,null,e,c),d),r.default.createElement(f.WidgetCreationModal,{ref:function(e){t.widgetModal=e},widgetType:l,onConfigurationSaved:this._saveWidget,fields:o,loading:h}))}});exports.default=b,e.exports=exports.default},IfKMzcBd:function(e,exports,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","draggableOpts","width","height","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles"]),c=u.className?u.className+" react-resizable":"react-resizable";return(0,a.default)(i,n({},u,{className:c,children:[i.props.children,l.map(function(t){return r.default.createElement(o.DraggableCore,n({},s,{key:"resizableHandle-"+t,onStop:e.resizeHandler("onResizeStop",t),onStart:e.resizeHandler("onResizeStart",t),onDrag:e.resizeHandler("onResize",t)}),e.renderResizeHandle(t))})]}))},t}(r.default.Component);u.propTypes={children:i.default.element.isRequired,width:i.default.number.isRequired,height:i.default.number.isRequired,handle:i.default.element,handleSize:i.default.array,resizeHandles:i.default.arrayOf(i.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),lockAspectRatio:i.default.bool,axis:i.default.oneOf(["both","x","y","none"]),minConstraints:i.default.arrayOf(i.default.number),maxConstraints:i.default.arrayOf(i.default.number),onResizeStop:i.default.func,onResizeStart:i.default.func,onResize:i.default.func,draggableOpts:i.default.object},u.defaultProps={handleSize:[20,20],lockAspectRatio:!1,axis:"both",minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"]},exports.default=u},IkbUMK0i:function(e,exports,t){e.exports=t.p+"9785371a49d2674f50bc4884eef35301.js"},InMws7TD:function(e,exports,t){var n=t("rZc0UIEO");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t("5omYMvbi")(n,r);n.locals&&(e.exports=n.locals)},Io424lOR:function(e,exports,t){var n=t("yxRspkDm"),r=t("SufxOAG9"),i=t("Dd9klwgo");e.exports=function(e){return n(e,i,r)}},IpjLdSCX:function(e,exports,t){"use strict";var n=Object.prototype.hasOwnProperty,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}();exports.arrayToObject=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?n+=t.charAt(i):o<128?n+=r[o]:o<2048?n+=r[192|o>>6]+r[128|63&o]:o<55296||o>=57344?n+=r[224|o>>12]+r[128|o>>6&63]+r[128|63&o]:(i+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(i)),n+=r[240|o>>18]+r[128|o>>12&63]+r[128|o>>6&63]+r[128|63&o])}return n},exports.compact=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r .arrow{border-top-color:",";&:after{border-top-color:",";}}&.right > .arrow{border-right-color:",";&:after{border-right-color:",";}}&.bottom > .arrow{border-bottom-color:",";&:after{border-bottom-color:",";}}&.left > .arrow{border-left-color:",";&:after{border-left-color:",";}}}.popover-title{background-color:",";}"],o.default.primary.due,s,(0,i.opacify)(.05,s),o.default.primary.due,(0,i.opacify)(.05,s),o.default.primary.due,(0,i.opacify)(.05,s),o.default.primary.due,(0,i.opacify)(.05,s),o.default.primary.due,(0,i.darken)(.03,o.default.primary.due));exports.default=l,e.exports=exports.default},IrlwLp5k:function(e,exports,t){"use strict";(exports=e.exports=t("TshW+KC1").default).default=exports},J2Z2piin:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WeekdayPropTypes=void 0,exports.default=o;var n=i(t("ivGQtwpr")),r=i(t("i0QD5uKp"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.weekday,r=e.className,i=e.weekdaysLong,o=e.weekdaysShort,a=e.localeUtils,s=e.locale,l=void 0;l=i?i[t]:a.formatWeekdayLong(t,s);var u=void 0;return u=o?o[t]:a.formatWeekdayShort(t,s),n.default.createElement("div",{className:r,role:"columnheader"},n.default.createElement("abbr",{title:l},u))}var a=exports.WeekdayPropTypes={weekday:r.default.number,className:r.default.string,locale:r.default.string,localeUtils:r.default.localeUtils,weekdaysLong:r.default.arrayOf(r.default.string),weekdaysShort:r.default.arrayOf(r.default.string)};o.propTypes=a},J2azpBy7:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MapsStore=exports.MapsActions=void 0;var n=s(t("4KF7VOU5")),r=s(t("nWIS8De6")),i=s(t("/LO7rk3x")),o=s(t("cIusrLvy")),a=s(t("6H5fCDEz"));function s(e){return e&&e.__esModule?e:{default:e}}var l=n.default.createActions({get:{asyncResult:!0},getMapData:{asyncResult:!0}});exports.MapsActions=l;var u=n.default.createStore({listenables:[l],mapCoordinates:void 0,getInitialState:function(){return{mapCoordinates:this.mapCoordinates}},getMapData:function(e,t,n,s,u){var c=this,f="relative"===n?{range:s.relative}:s,d=!e||e.length<1?"*":e;f.type=n;var p=(0,o.default)("POST",r.default.qualifyUrl(i.default.MapDataController.search().url),{query:d,timerange:f,limit:50,stream_id:u,fields:[t]});p.then(function(e){c.trigger({mapCoordinates:e.fields[t]})},function(e){var t;t=e.additional&&400===e.additional.status?"Map widget is only available for fields containing geo data.":"Loading map information failed: ".concat(e.message),a.default.error(t,"Could not load map information")}),l.getMapData.promise(p)}});exports.MapsStore=u},"J3wgYom/":function(e,exports,t){e.exports=t.p+"8373f2944e9da5dda7661fba6a7f0dc5.js"},J4BOPIbP:function(e,exports,t){e.exports=t.p+"5dccb744979119014461ed809c0d1373.js"},J6m01YZl:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"AddDecoratorButton",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"AddSearchCountToDashboard",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"ChangedMessageField",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"DecoratedMessageFieldMarker",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"DecoratedSidebarMessageField",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"Decorator",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(exports,"DecoratorList",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(exports,"DecoratorSidebar",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(exports,"FieldAnalyzersSidebar",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(exports,"LegacyHistogram",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(exports,"MalformedSearchQuery",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(exports,"MessageDetail",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(exports,"MessageFieldDescription",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(exports,"MessageFieldExtractorActions",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(exports,"MessageField",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(exports,"MessageFields",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(exports,"MessageFieldSearchActions",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(exports,"MessageShow",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(exports,"MessageTableEntry",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(exports,"MessageTablePaginator",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(exports,"NoSearchResults",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(exports,"RefreshControls",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(exports,"ResultTable",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(exports,"SavedSearchControls",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(exports,"SearchBar",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(exports,"SearchExecutionError",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(exports,"SearchResult",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(exports,"SearchSidebar",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(exports,"ShowQueryModal",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(exports,"SidebarMessageField",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(exports,"SurroundingSearchButton",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(exports,"QueryInput",{enumerable:!0,get:function(){return R.default}});var n=D(t("Faj6uC4/")),r=D(t("ZiE7XXL5")),i=D(t("bU60L4IU")),o=D(t("AsS3aWli")),a=D(t("/GV+bRMH")),s=D(t("YAR455zy")),l=D(t("bTNLy28q")),u=D(t("UrJ1UJgI")),c=D(t("4+J1eENA")),f=D(t("4h5bTKf/")),d=D(t("CCQCk8xF")),p=D(t("XL8KI+3f")),h=D(t("Rs4VMraf")),m=D(t("2Ynmm8XS")),g=D(t("la7vR9/X")),v=D(t("QzfLCrdF")),b=D(t("UPkAWsT7")),y=D(t("X2xv6tPK")),w=D(t("sgIlIBn7")),_=D(t("bARGMa9X")),x=D(t("8sO744K9")),E=D(t("S7IiCjF5")),S=D(t("cBp5vKSn")),C=D(t("4sUTceI3")),O=D(t("OMsxljiq")),k=D(t("57Yejqod")),M=D(t("FaMjc/gz")),A=D(t("vtqJixv4")),T=D(t("uxFQxVCi")),P=D(t("3f361PbO")),j=D(t("ixmX+3Tv")),R=D(t("W+SNfnp/"));function D(e){return e&&e.__esModule?e:{default:e}}},J7TUkUrt:function(e,exports,t){e.exports=t.p+"90a4d228cfeea5e5f8dd96f0a0ff138e.js"},JEBYGNMv:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=h(t("ii0bleBb")),r=h(t("ivGQtwpr")),i=h(t("PcYM+wZ7")),o=h(t("4KF7VOU5")),a=t("os2pWP01"),s=h(t("H/eHg5XM")),l=h(t("7QAbkgSv")),u=h(t("1SPPmkhJ")),c=h(t("X2xv6tPK")),f=h(t("daUnzcVt")),d=h(t("ZZUtB8B6")),p=h(t("D5kRgEAy"));function h(e){return e&&e.__esModule?e:{default:e}}var m=l.default.getStore("Inputs"),g=l.default.getStore("Streams"),v=u.default.getActions("Inputs"),b=(0,i.default)({displayName:"LoaderTabs",propTypes:{tabs:n.default.oneOfType([n.default.oneOf(["recent","messageId","raw"]),n.default.arrayOf(n.default.oneOf(["recent","messageId","raw"]))]),messageId:n.default.string,index:n.default.string,onMessageLoaded:n.default.func,selectedInputId:n.default.string,customFieldActions:n.default.node,disableMessagePreview:n.default.bool},mixins:[o.default.listenTo(m,"_formatInputs")],getDefaultProps:function(){return{tabs:["recent","messageId"]}},getInitialState:function(){return{activeTab:void 0,message:void 0,inputs:void 0}},componentDidMount:function(){this.loadData(),this.props.messageId&&this.props.index&&this.messageLoader.submit(this.props.messageId,this.props.index)},onMessageLoaded:function(e){this.setState({message:e}),this.props.onMessageLoaded&&this.props.onMessageLoaded(e)},TAB_KEYS:{recent:1,messageId:2,raw:3},_formatInputs:function(e){var t=m.inputsAsMap(e.inputs);this.setState({inputs:s.default.Map(t)})},loadData:function(){var e=this;v.list(),g.listStreams().then(function(t){var n={};t.forEach(function(e){n[e.id]=e}),e.setState({streams:s.default.Map(n)})})},_isTabVisible:function(e){return this.props.tabs===e||-1!==this.props.tabs.indexOf(e)},_getActiveTab:function(){return this.state.activeTab?this.state.activeTab:this._isTabVisible("messageId")&&this.props.messageId&&this.props.index?this.TAB_KEYS.messageId:this._isTabVisible("recent")?this.TAB_KEYS.recent:this._isTabVisible("messageId")?this.TAB_KEYS.messageId:this.TAB_KEYS.raw},_changeActiveTab:function(e){this.state.activeTab!==e&&this.setState({activeTab:e,message:void 0})},_formatMessageLoaders:function(){var e=this,t=[];return this._isTabVisible("recent")&&t.push(r.default.createElement(a.Tab,{key:"recent",eventKey:this.TAB_KEYS.recent,title:"Recent Message",style:{marginBottom:10}},r.default.createElement(p.default,{inputs:this.state.inputs,selectedInputId:this.props.selectedInputId,onMessageLoaded:this.onMessageLoaded}))),this._isTabVisible("messageId")&&t.push(r.default.createElement(a.Tab,{key:"messageId",eventKey:this.TAB_KEYS.messageId,title:"Message ID",style:{marginBottom:10}},r.default.createElement("div",{style:{marginTop:5,marginBottom:15}},"Please provide the id and index of the message that you want to load in this form:"),r.default.createElement(f.default,{ref:function(t){e.messageLoader=t},onMessageLoaded:this.onMessageLoaded,hidden:!1,hideText:!0}))),this._isTabVisible("raw")&&t.push(r.default.createElement(a.Tab,{key:"raw",eventKey:this.TAB_KEYS.raw,title:"Raw Message",style:{marginBottom:10}},r.default.createElement("div",{style:{marginTop:5,marginBottom:15}},"Load a message from text, as if it was sent by a log source."),r.default.createElement(d.default,{onMessageLoaded:this.onMessageLoaded}))),t},render:function(){var e;return this.state.message&&this.state.inputs&&!this.props.disableMessagePreview&&(e=r.default.createElement(a.Col,{md:12},r.default.createElement(c.default,{message:this.state.message,inputs:this.state.inputs,streams:this.state.streams,disableTestAgainstStream:!0,disableSurroundingSearch:!0,disableFieldActions:!this.props.customFieldActions,customFieldActions:this.props.customFieldActions}))),r.default.createElement("div",null,r.default.createElement(a.Tabs,{id:"loaderTabs",activeKey:this._getActiveTab(),onSelect:this._changeActiveTab,animation:!1},this._formatMessageLoaders()),e)}});exports.default=b,e.exports=exports.default},JHQXf8d7:function(e,exports,t){"use strict";exports.__esModule=!0,exports.getBreakpointFromWidth=function(e,t){for(var n=r(e),i=n[0],o=1,a=n.length;oe[s]&&(i=s)}return i},exports.getColsFromBreakpoint=function(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]},exports.findOrGenerateResponsiveLayout=function(e,t,i,o,a,s){if(e[i])return(0,n.cloneLayout)(e[i]);for(var l=e[o],u=r(t),c=u.slice(u.indexOf(i)),f=0,d=c.length;f or
. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),i?n.cloneElement(e,{ref:function(e){t(e),i&&i(e)}}):n.cloneElement(e,{ref:t})}},JXajPUSn:function(e,exports){e.exports=function(){return!1}},"JY+ICSY6":function(e,exports,t){var n=t("UqtPhpK8");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t("5omYMvbi")(n,r);n.locals&&(e.exports=n.locals)},JasirbXS:function(e,exports){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r=e-r&&"bottom"},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout($.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),n=this.options.offset,r=n.top,i=n.bottom,o=Math.max($(document).height(),$(document.body).height());"object"!=typeof n&&(i=r=n),"function"==typeof r&&(r=n.top(this.$element)),"function"==typeof i&&(i=n.bottom(this.$element));var a=this.getState(o,t,r,i);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var s="affix"+(a?"-"+a:""),l=$.Event(s+".bs.affix");if(this.$element.trigger(l),l.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(s).trigger(s.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:o-t-i})}};var n=$.fn.affix;$.fn.affix=t,$.fn.affix.Constructor=e,$.fn.affix.noConflict=function(){return $.fn.affix=n,this},$(window).on("load",function(){$('[data-spy="affix"]').each(function(){var e=$(this),n=e.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),t.call(e,n)})})}(jQuery)},"JtWfgI3/":function(e,exports,t){e.exports=t("jaIgFIJB")(104)},"K+coG0oA":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=s(t("ii0bleBb")),r=s(t("ivGQtwpr")),i=s(t("PcYM+wZ7")),o=s(t("Q+OqJm0N")),a=s(t("PK8ZLj9Z"));function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t0?t[0]:this._getDefaultValidationSpecs()},handleChange:function(e){var t=o.default.getValueFromInput(e.target);this.props.onChange(this.props.title,t)},render:function(){var e=this.props.typeName,t=this.props.field,n=!t.is_optional,i=this.validationSpec(t);return r.default.createElement("div",{className:"form-group"},r.default.createElement("label",{htmlFor:"".concat(e,"-").concat(t.title)},t.human_name,a.default.optionalMarker(t)),r.default.createElement("input",l({id:t.title,type:"number",required:n,onChange:this.handleChange,value:this.props.value,className:"input-xlarge validatable form-control"},i,{autoFocus:this.props.autoFocus})),r.default.createElement("p",{className:"help-block"},t.description))}});exports.default=u,e.exports=exports.default},K43sr58x:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=s(t("4KF7VOU5")),r=s(t("nWIS8De6")),i=s(t("6H5fCDEz")),o=s(t("cIusrLvy")),a=s(t("18sD0i4u"));function s(e){return e&&e.__esModule?e:{default:e}}var l=n.default.createStore({listenables:[a.default],sourceUrl:"/plugins/com.airbus_cyber_security.graylog/alerts",alerts:void 0,init:function(){this.trigger({alerts:this.alerts})},list:function(){var e=this,t=(0,o.default)("GET",r.default.qualifyUrl(this.sourceUrl)).then(function(t){return e.alerts=t.alerts,e.trigger({alerts:e.alerts}),e.alerts},function(e){i.default.error("Fetching alert rules failed with status: ".concat(e),"Could not retrieve alerts rules")});a.default.list.promise(t)},listWithData:function(){var e=this,t=(0,o.default)("GET",r.default.qualifyUrl(this.sourceUrl+"/data")).then(function(t){return e.alerts=t.alerts_data,e.trigger({alerts:e.alerts}),e.alerts},function(e){i.default.error("Fetching alert rules failed with status: ".concat(e),"Could not retrieve alert rules with additional data")});a.default.listWithData.promise(t)},get:function(e){var t=this,n=(0,o.default)("GET",r.default.qualifyUrl(this.sourceUrl+"/"+encodeURIComponent(e))).then(function(e){return t.alert=e.alert,t.trigger({alert:t.alert}),t.alert},function(e){i.default.error("Fetching alert rule failed with status: ".concat(e),"Could not retrieve alert rule")});a.default.get.promise(n)},getData:function(e){var t=this,n=(0,o.default)("GET",r.default.qualifyUrl(this.sourceUrl+"/"+encodeURIComponent(e)+"/data")).then(function(e){return t.trigger({alertData:e}),e},function(e){i.default.error("Fetching alert rule data failed with status: ".concat(e),"Could not retrieve alert rule data")});a.default.getData.promise(n)},create:function(e){var t=this,n=r.default.qualifyUrl(this.sourceUrl),s={title:e.title,severity:e.severity,description:e.description,condition_type:e.condition_type,condition_parameters:e.condition_parameters,stream:e.stream,second_stream:e.second_stream},l=(0,o.default)("POST",n,s).then(function(){return i.default.success("Stream successfully created, Alert condition successfully created, Alert notification successfully created"),t.list(),!0},function(e){i.default.error("Creating alert rule failed with status: ".concat(e.message),"Could not create alert rule")});a.default.create.promise(l)},update:function(e,t){var n=this,s=r.default.qualifyUrl(this.sourceUrl+"/"+encodeURIComponent(e)),l={title:t.title,severity:t.severity,description:t.description,condition_type:t.condition_type,condition_parameters:t.condition_parameters,stream:t.stream,second_stream:t.second_stream},u=(0,o.default)("PUT",s,l).then(function(){return i.default.success("Alert rule successfully updated"),n.list(),!0},function(e){i.default.error("Updating alert rule failed with status: ".concat(e.message),"Could not update alert rule")});a.default.update.promise(u)},deleteByName:function(e){var t=this,n=r.default.qualifyUrl(this.sourceUrl+"/"+encodeURIComponent(e)),s=(0,o.default)("DELETE",n).then(function(){return i.default.success("Alert rule successfully deleted"),t.listWithData(),null},function(e){i.default.error("Deleting alert rule failed with status: ".concat(e.message),"Could not delete alert rule")});a.default.deleteByName.promise(s)},clone:function(e,t,n){var s=this,l=r.default.qualifyUrl(this.sourceUrl+"/"+encodeURIComponent(e)+"/Clone"),u={title:t,description:n},c=(0,o.default)("POST",l,u).then(function(){return i.default.success("Stream successfully clone, Alert condition successfully clone, Alert notification successfully clone"),s.list(),!0},function(e){i.default.error("Cloning alert rule failed with status: ".concat(e.message),"Could not clone alert rule")});a.default.clone.promise(c)},exportAlertRules:function(e){var t=this,n=r.default.qualifyUrl(this.sourceUrl+"/export"),s=(0,o.default)("POST",n,e).then(function(e){return t.exportAlertRules=JSON.stringify(e),t.trigger({exportAlertRules:t.exportAlertRules}),t.exportAlertRules},function(e){i.default.error("Export alert rules failed with status: ".concat(e),"Could not export alert rules")});a.default.exportAlertRules.promise(s)},importAlertRules:function(e){var t=r.default.qualifyUrl(this.sourceUrl+"/import"),n=(0,o.default)("PUT",t,e).then(function(){return i.default.success("Alert rules successfully imported"),!0},function(e){i.default.error("Importing alert rules failed with status: ".concat(e.message),"Could not import alert rules")});a.default.importAlertRules.promise(n)}});exports.default=l,e.exports=exports.default},K5q54lOa:function(e,exports,t){e.exports=t.p+"604774e5942ccd0179c0ac33519864a0.js"},K71af3ja:function(e,exports,t){e.exports=t.p+"c183dd2fe1cb2eb35f7ee464d49b245c.js"},K9urbY79:function(e,exports,t){var n=t("zsaqPi8I"),r=t("8qRsGgWC"),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return r(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=s},KAYi0xUw:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("OBqcpSk/");exports.NONE=[],exports.ALL=[],exports.areDirty=function(e,t){return e!==exports.NONE&&(e===exports.ALL||void 0===t||n(t,e).length>0)}},KKpMMHa1:function(e,exports,t){var n=t("rAowb+TC"),r=t("pfEsQUpv"),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,o){var a=e[t];i.call(e,t)&&r(a,o)&&(void 0!==o||t in e)||n(e,t,o)}},KMqzlOSc:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mergeClasses=void 0;var n=o(t("2HNCJt8Q")),r=o(t("iG1AjSQm")),i=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],o=e.default&&(0,r.default)(e.default)||{};return t.map(function(t){var r=e[t];return r&&(0,n.default)(r,function(e,t){o[t]||(o[t]={}),o[t]=i({},o[t],r[t])}),t}),o};exports.default=a},KN5KfcWY:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=f(t("ii0bleBb")),r=f(t("ivGQtwpr")),i=f(t("PcYM+wZ7")),o=f(t("vU3dbCc2")),a=f(t("H/eHg5XM")),s=f(t("wxSXYi6/")),l=f(t("7QAbkgSv")),u=f(t("4dyM+bxd")),c=f(t("PBqaqikg"));function f(e){return e&&e.__esModule?e:{default:e}}var d=l.default.getStore("FieldGraphs"),p=(0,i.default)({displayName:"FieldGraphs",propTypes:{from:n.default.any.isRequired,to:n.default.any.isRequired,resolution:n.default.any.isRequired,stream:n.default.object,permissions:n.default.arrayOf(n.default.string).isRequired},mixins:[s.default],getInitialState:function(){return this.notifyOnNewGraphs=!1,{fieldGraphs:a.default.fromJS(d.fieldGraphs.toJS()),stackedGraphs:a.default.fromJS(d.stackedGraphs.toJS())}},componentDidMount:function(){var e=this;this.initialFieldGraphs=this.state.fieldGraphs,this.notifyOnNewGraphs=!0,d.onFieldGraphsUpdated=function(t){return e.setState({fieldGraphs:a.default.fromJS(t.toJS())})},d.onFieldGraphsMerged=function(t){return e.setState({stackedGraphs:a.default.fromJS(t.toJS())})},d.onFieldGraphCreated=function(t){if(e.notifyOnNewGraphs&&!e.initialFieldGraphs.has(t)){var n=o.default.findDOMNode(e.graphs[t]);u.default.scrollToHint(n)}}},componentWillUnmount:function(){d.resetStore()},graphs:{},addField:function(e){var t=this.props.stream?this.props.stream.id:void 0;d.newFieldGraph(e,{interval:this.props.resolution,streamid:t})},deleteFieldGraph:function(e){d.deleteGraph(e)},render:function(){var e=this,t=this.state.fieldGraphs.sortBy(function(e){return e.createdAt}).map(function(t,n){return r.default.createElement(c.default,{key:n,ref:function(t){e.graphs[n]=t},graphId:n,graphOptions:t.toJS(),onDelete:function(){return e.deleteFieldGraph(n)},from:e.props.from,to:e.props.to,permissions:e.props.permissions,stacked:e.state.stackedGraphs.has(n),hidden:e.state.stackedGraphs.some(function(e){return e.has(n)})})});return r.default.createElement("div",{id:"field-graphs"},t.valueSeq())}});exports.default=p,e.exports=exports.default},KPdZWifE:function(e,t,n){"use strict";n.r(t),n.d(t,"createStore",function(){return s}),n.d(t,"combineReducers",function(){return u}),n.d(t,"bindActionCreators",function(){return f}),n.d(t,"applyMiddleware",function(){return m}),n.d(t,"compose",function(){return h}),n.d(t,"__DO_NOT_USE__ActionTypes",function(){return o});var r=n("wQ6lpOyx"),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var l=e,u=t,c=[],f=c,d=!1;function p(){f===c&&(f=c.slice())}function h(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return p(),f.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,p();var n=f.indexOf(e);f.splice(n,1)}}}function g(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,u=l(u,e)}finally{d=!1}for(var t=c=f,n=0;nd))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var m=-1,g=!0,v=s&a?new n:void 0;for(c.set(e,t),c.set(t,e);++m=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e,t){for(var n=0;n",label:r.default.createElement(a.FormattedMessage,{id:"wizard.higher",defaultMessage:"higher than"})},{value:">=",label:r.default.createElement(a.FormattedMessage,{id:"wizard.higherEqual",defaultMessage:"higher or equal than"})},{value:"<",label:r.default.createElement(a.FormattedMessage,{id:"wizard.lower",defaultMessage:"lower than"})},{value:"<=",label:r.default.createElement(a.FormattedMessage,{id:"wizard.lowerEqual",defaultMessage:"lower or equal than"})},{value:"==",label:r.default.createElement(a.FormattedMessage,{id:"wizard.equal",defaultMessage:"equal"})}]},_getThresholdType:function(e){return this._availableThresholdTypes().filter(function(t){return t.value===e})[0].label},_availableAggregationTypes:function(){return[{value:"AVG",label:r.default.createElement(a.FormattedMessage,{id:"wizard.meanValue",defaultMessage:"average value"})},{value:"STDDEV",label:r.default.createElement(a.FormattedMessage,{id:"wizard.standardDeviation",defaultMessage:"standard deviation"})},{value:"MIN",label:r.default.createElement(a.FormattedMessage,{id:"wizard.minValue",defaultMessage:"min value"})},{value:"MAX",label:r.default.createElement(a.FormattedMessage,{id:"wizard.maxValue",defaultMessage:"max value"})},{value:"SUM",label:r.default.createElement(a.FormattedMessage,{id:"wizard.sum",defaultMessage:"sum"})},{value:"CARD",label:r.default.createElement(a.FormattedMessage,{id:"wizard.card",defaultMessage:"cardinality"})},{value:"COUNT",label:r.default.createElement(a.FormattedMessage,{id:"wizard.count",defaultMessage:"count"})},{value:"SUMOFSQUARES",label:r.default.createElement(a.FormattedMessage,{id:"wizard.sum",defaultMessage:"sum of squares"})},{value:"VARIANCE",label:r.default.createElement(a.FormattedMessage,{id:"wizard.variance",defaultMessage:"variance"})}]},_getAggregationType:function(e){return this._availableAggregationTypes().filter(function(t){return t.value===e})[0].label},_availableRuleType:function(){return[{value:1,label:r.default.createElement(a.FormattedMessage,{id:"wizard.matchesExactly",defaultMessage:"matches exactly"})},{value:-1,label:r.default.createElement(a.FormattedMessage,{id:"wizard.notMatchesExactly",defaultMessage:"does not match exactly"})},{value:2,label:r.default.createElement(a.FormattedMessage,{id:"wizard.matchesRegularExpression",defaultMessage:"matches regular expression"})},{value:-2,label:r.default.createElement(a.FormattedMessage,{id:"wizard.notMatchRegularExpression",defaultMessage:"does not match regular expression"})},{value:3,label:r.default.createElement(a.FormattedMessage,{id:"wizard.greaterThan",defaultMessage:"is greater than"})},{value:-3,label:r.default.createElement(a.FormattedMessage,{id:"wizard.notGreaterThan",defaultMessage:"is not greater than"})},{value:4,label:r.default.createElement(a.FormattedMessage,{id:"wizard.smallerThan",defaultMessage:"is smaller than"})},{value:-4,label:r.default.createElement(a.FormattedMessage,{id:"wizard.notSmallerThan",defaultMessage:"is not smaller than"})},{value:5,label:r.default.createElement(a.FormattedMessage,{id:"wizard.present",defaultMessage:"is present"})},{value:-5,label:r.default.createElement(a.FormattedMessage,{id:"wizard.notPresent",defaultMessage:"is not present"})},{value:6,label:r.default.createElement(a.FormattedMessage,{id:"wizard.contains",defaultMessage:"contains"})},{value:-6,label:r.default.createElement(a.FormattedMessage,{id:"wizard.notContain",defaultMessage:"does not contain"})},{value:7,label:r.default.createElement(a.FormattedMessage,{id:"wizard.listpresent",defaultMessage:"is present in list"})},{value:-7,label:r.default.createElement(a.FormattedMessage,{id:"wizard.listnotpresent",defaultMessage:"is not present in list"})}]},_getRuleType:function(e){return this._availableRuleType().filter(function(t){return t.value===e})[0].label},_getTextFieldRule:function(e){var t=[];if(null!==e)for(var n=0;n0&&e.push(this._getGroupByRule()),this.props.alert.condition_parameters.distinction_fields&&this.props.alert.condition_parameters.distinction_fields.length>0&&e.push(this._getDistinctByRule()),e.push(this._getMatchRule(this.props.alert.stream.matching_type)),e.push(this._getTextFieldRule(this.props.alert.stream))):"THEN"===this.props.alert.condition_type?(e.push(this._getTriggerRule()),this.props.alert.condition_parameters.grouping_fields&&this.props.alert.condition_parameters.grouping_fields.length>0&&e.push(this._getGroupByRule()),e.push(this._getMatchRule(this.props.alert.stream.matching_type)),e.push(this._getTextFieldRule(this.props.alert.stream)),e.push(r.default.createElement(a.FormattedMessage,{id:"wizard.ThenRule",defaultMessage:"followed by {threshold_type} {threshold} messages ",values:{threshold_type:r.default.createElement("strong",null,this._getThresholdType(this.props.alert.condition_parameters.additional_threshold_type)),threshold:r.default.createElement("strong",null,this.props.alert.condition_parameters.additional_threshold)}})),this.props.alert.condition_parameters.grouping_fields&&this.props.alert.condition_parameters.grouping_fields.length>0&&e.push(this._getGroupByRule()),e.push(this._getMatchRule(this.props.alert.second_stream.matching_type)),e.push(this._getTextFieldRule(this.props.alert.second_stream))):"AND"===this.props.alert.condition_type?(e.push(this._getTriggerRule()),this.props.alert.condition_parameters.grouping_fields&&this.props.alert.condition_parameters.grouping_fields.length>0&&e.push(this._getGroupByRule()),e.push(this._getMatchRule(this.props.alert.stream.matching_type)),e.push(this._getTextFieldRule(this.props.alert.stream)),e.push(r.default.createElement(a.FormattedMessage,{id:"wizard.AndRule",defaultMessage:"AND when there are {threshold_type} {threshold} messages ",values:{threshold_type:r.default.createElement("strong",null,this._getThresholdType(this.props.alert.condition_parameters.additional_threshold_type)),threshold:r.default.createElement("strong",null,this.props.alert.condition_parameters.additional_threshold)}})),this.props.alert.condition_parameters.grouping_fields&&this.props.alert.condition_parameters.grouping_fields.length>0&&e.push(this._getGroupByRule()),e.push(this._getMatchRule(this.props.alert.second_stream.matching_type)),e.push(this._getTextFieldRule(this.props.alert.second_stream))):"OR"===this.props.alert.condition_type?(e.push(this._getTriggerRule()),e.push(this._getMatchRule(this.props.alert.stream.matching_type)),e.push(this._getTextFieldRule(this.props.alert.stream)),e.push(r.default.createElement(a.FormattedMessage,{id:"wizard.or",defaultMessage:"OR "})),e.push(this._getMatchRule(this.props.alert.second_stream.matching_type)),e.push(this._getTextFieldRule(this.props.alert.second_stream))):(e.push(this._getTriggerRule()),e.push(this._getMatchRule(this.props.alert.stream.matching_type)),e.push(this._getTextFieldRule(this.props.alert.stream)))),r.default.createElement("span",{style:{whiteSpace:"pre-line"}},e)}catch(e){return r.default.createElement("span",null)}}});exports.default=l,e.exports=exports.default},LsNTLhVP:function(e,exports){e.exports=function(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}}},"M01PpR+7":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=l(t("ivGQtwpr")),r=s(t("NV2C8ebe")),i=s(t("ii0bleBb")),o=l(t("/biZGN+7")),a=s(t("B0I5DBk0"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function u(e){return(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})(e)}function c(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var b=function(e){return function(t){var r=t.data,i=v(t,["data"]);return n.createElement(o.components.Option,i,e(r))}},y=function(e){return function(t){var r=t.data,i=v(t,["data"]);return n.createElement(o.components.SingleValue,i,e(r))}},w=function(e){return function(t){return n.createElement(o.components.Input,g({},t,e))}},_=function(e,t){return h({},e,{padding:"0px",fontSize:"150%",marginRight:"1rem",transform:t.selectProps.menuIsOpen&&"rotate(180deg)"})},x=function(e){return h({},e,{padding:"5px"})},E=function(e){return h({},e,{backgroundColor:"#ebf5ff",color:"#007eff",border:"1px solid rgba(0,126,255,.24)"})},S=function(e){return h({},e,{color:"unset",paddingLeft:"5px",paddingRight:"5px"})},C=function(e){return h({},e,{borderLeft:"1px solid rgba(0,126,255,.24)",paddingLeft:"5px",paddingRight:"5px",":hover":{backgroundColor:"rgba(0,113,230,.08)"}})},O={minHeight:"30px",height:"30px"},k={minHeight:"34px"},M=function(e){return h({},e,{zIndex:5,border:"1px solid rgba(102, 175, 233, 0.5)",boxShadow:"0 0 4px rgba(102, 175, 233, 0.3)"})},A=function(e){return h({},e,{lineHeight:"28px",fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",fontWeight:400,color:"#666"})},T=function(e){return h({},e,{lineHeight:"28px",fontFamily:'"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",fontWeight:400,color:"#999",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",maxWidth:"100%",paddingRight:"20px"})},P=function(e){return function(t,n){var r=n.isFocused,i=e.size,o=r?"#66afe9":t.borderColor,a=r?1:t.borderWidth,s=r?0:t.outline;return h({},t,{},"small"===i?O:k,{borderColor:o,borderWidth:a,outline:s,boxShadow:r?"inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.6)":"inset 0 1px 1px rgba(0, 0, 0, 0.075)",alignItems:"center"})}},j=function(e){return h({},e,{padding:"2px 12px"})},R={DropdownIndicator:function(e){var t=e.children,r=void 0===t?n.createElement(a.default,{name:"caret-down"}):t,i=e.getStyles,o=e.innerProps,s=o.ref,l=v(o,["ref"]);return n.createElement("div",g({style:i("dropdownIndicator",e),ref:s},l),r)},MultiValueRemove:function(e){return n.createElement(o.components.MultiValueRemove,e,"×")},IndicatorSeparator:function(){return null}},D=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?d(e):t}(this,f(t).call(this,e)),m(d(n),"componentWillReceiveProps",function(e){var t=n.props,r=t.inputProps,i=t.optionRenderer,o=t.value,a=t.valueRenderer;o!==e.value&&n.setState({value:e.value}),r===e.inputProps&&i===e.optionRenderer&&a===e.valueRenderer||n.setState({customComponents:n.getCustomComponents(r,i,a)})}),m(d(n),"getCustomComponents",function(e,t,n){var r={};return e&&(r.Input=w(e)),t&&(r.Option=b(t)),n&&(r.SingleValue=y(n)),r}),m(d(n),"getValue",function(){return n.state.value}),m(d(n),"clearValue",function(){n.setState({value:void 0})}),m(d(n),"_extractOptionValue",function(e){var t=n.props,r=t.multi,i=t.valueKey,o=t.delimiter;return e?r?e.map(function(e){return e[i]}).join(o):e[i||""]:""}),m(d(n),"_onChange",function(e){var t=n._extractOptionValue(e);n.setState({value:t});var r=n.props.onChange;(void 0===r?function(e){}:r)(t)}),m(d(n),"_formatInputValue",function(e){var t=n.props,i=t.options,o=t.displayKey,a=t.valueKey,s=t.delimiter;return e.split(s).map(function(e){var t,n=(m(t={},a||"",e),m(t,o||"",e),t);return r.default.find(i,n)||n})});var i=e.inputProps,o=e.optionRenderer,a=e.value,s=e.valueRenderer;return n.state={customComponents:n.getCustomComponents(i,o,s),value:a},n}var i,a,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,n.Component),i=t,(a=[{key:"render",value:function(){var e=this.props,t=e.allowCreate,r=void 0!==t&&t,i=e.delimiter,a=e.displayKey,s=e.components,l=e.options,u=e.valueKey,c=e.onReactSelectChange,f=this.state,d=f.customComponents,p=f.value,m=r?o.Creatable:o.default,b=p;b=p&&r?this._formatInputValue(p):(p||"").split(i).map(function(e){return l.find(function(t){return t[u||""]===e})});var y,w=this.props,O=w.multi,k=w.disabled,D=w.clearable,F=(w.inputProps,w.matchProp),I=(w.optionRenderer,w.valueRenderer,v(w,["multi","disabled","clearable","inputProps","matchProp","optionRenderer","valueRenderer"])),L="any"===F?(0,o.createFilter)():(0,o.createFilter)({stringify:function(e){return e[F]}});return n.createElement(m,g({},I,{onChange:c||this._onChange,isMulti:O,isDisabled:k,isClearable:D,getOptionLabel:function(e){return e[a]},getOptionValue:function(e){return e[u]},filterOption:L,components:h({},R,{},s,{},d),isOptionDisabled:function(e){return!!e.disabled},styles:h({},(y=this.props,{dropdownIndicator:_,clearIndicator:x,multiValue:E,multiValueLabel:S,multiValueRemove:C,menu:M,singleValue:A,placeholder:T,control:P(y),valueContainer:j})),value:b}))}}])&&c(i.prototype,a),s&&c(i,s),t}();m(D,"propTypes",{allowCreate:i.default.bool,clearable:i.default.bool,components:i.default.objectOf(i.default.elementType),delimiter:i.default.string,disabled:i.default.bool,displayKey:i.default.string,inputProps:i.default.object,matchProp:i.default.oneOf(["any","label","value"]),multi:i.default.bool,onChange:i.default.func.isRequired,options:i.default.array.isRequired,optionRenderer:i.default.func,size:i.default.oneOf(["normal","small"]),value:i.default.string,valueKey:i.default.string,valueRenderer:i.default.func}),m(D,"defaultProps",{addLabelText:void 0,allowCreate:!1,autoFocus:!1,clearable:!0,components:null,delimiter:",",disabled:!1,displayKey:"label",inputProps:void 0,matchProp:"any",multi:!1,onReactSelectChange:void 0,optionRenderer:void 0,size:"normal",value:void 0,valueKey:"value",valueRenderer:void 0});var F=D;exports.default=F,e.exports=exports.default},"M1wFS+FZ":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Photoshop=void 0;var n=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles"]);return r.default.createElement(o.default,{handle:t,handleSize:i,width:this.state.width,height:this.state.height,onResizeStart:a,onResize:this.onResize,onResizeStop:s,draggableOpts:l,minConstraints:u,maxConstraints:c,lockAspectRatio:f,axis:d,resizeHandles:p},r.default.createElement("div",n({style:{width:this.state.width+"px",height:this.state.height+"px"}},h)))},t}(r.default.Component);l.propTypes={height:i.default.number,width:i.default.number},l.defaultProps={handleSize:[20,20]},exports.default=l},"MH5e4+91":function(e,exports,t){var n=t("eXnMMeS9");e.exports=function(e){return n(this,e).get(e)}},MKN80jlJ:function(e,exports,t){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;i--){var o=e[i],a=t.getTargetType(o);n.default(a,r)||e.splice(i,1)}}(s,u,l.getItemType()),function(e,t,n){for(var r=0,i=e;r-1},r=function(e,t){if(e.indexOf(t)>-1||e.indexOf("*")>-1)return!0;var n=t.split(":");if(n.length>=2){var r=n[0],i="".concat(n[0],":").concat(n[1]);return e.indexOf(r)>-1||e.indexOf("".concat(r,":*"))>-1||e.indexOf(i)>-1||e.indexOf("".concat(i,":*"))>-1}return e.indexOf("".concat(t,":*"))>-1},i={isPermitted:function(e,t){return!t||0===t.length||!!e&&(!!n(e)||(t.every?t.every(function(t){return r(e,t)}):r(e,t)))},isAnyPermitted:function(e,t){return!t||0===t.length||!!e&&(!!n(e)||t.some(function(t){return r(e,t)}))}};exports.default=i,e.exports=exports.default},"Mcd/Xly4":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=i(t("w2A+o00Z")),r=i(t("Qy45xoXf"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=0;nOpenStreetMap contributors',interactive:!0,onRenderComplete:function(){},locked:!1}},getInitialState:function(){return{zoomLevel:0}},componentDidMount:function(){this._fitBounds()},componentDidUpdate:function(e){this.props.height===e.height&&this.props.width===e.width||(this._forceMapUpdate(),this._fitBounds())},_map:void 0,_isMapReady:!1,_areTilesReady:!1,position:[0,0],bounds:new a.LatLngBounds([-80,-170],[80,170]),MARKER_RADIUS_SIZES:10,MARKER_RADIUS_INCREMENT_SIZES:10,_forceMapUpdate:function(){this._map&&(window.dispatchEvent(new Event("resize")),this._map.leafletElement.invalidateSize(this.props.interactive))},_fitBounds:function(){this._map&&this._map.leafletElement.fitBounds(this.bounds)},_formatMarker:function(e,t,n,i,a){var s=e.split(",").map(function(e){return Number(e)}),l=this._getBucket(t,this.MARKER_RADIUS_SIZES,n,i,a);return r.default.createElement(o.CircleMarker,{key:e,center:s,radius:l,color:"#AF2228",fillColor:"#D3242B",weight:2,opacity:.8},r.default.createElement(o.Popup,null,r.default.createElement("dl",null,r.default.createElement("dt",null,"Coordinates:"),r.default.createElement("dd",null,e),r.default.createElement("dt",null,"Number of occurrences:"),r.default.createElement("dd",null,t))))},_onZoomChange:function(e){this.setState({zoomLevel:e.target.getZoom()})},_getBucket:function(e,t,n,r,i){var o=(r-n)/t;return(e * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var i,o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,d=2,p=4,h=1,m=2,g=1,v=2,b=4,y=8,w=16,_=32,x=64,E=128,S=256,C=512,O=30,k="...",M=800,A=16,T=1,P=2,j=1/0,R=9007199254740991,D=17976931348623157e292,F=NaN,I=4294967295,L=I-1,N=I>>>1,z=[["ary",E],["bind",g],["bindKey",v],["curry",y],["curryRight",w],["flip",C],["partial",_],["partialRight",x],["rearg",S]],B="[object Arguments]",H="[object Array]",U="[object AsyncFunction]",W="[object Boolean]",G="[object Date]",q="[object DOMException]",V="[object Error]",K="[object Function]",Q="[object GeneratorFunction]",Y="[object Map]",X="[object Number]",Z="[object Null]",J="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",ie="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",le="[object ArrayBuffer]",ue="[object DataView]",ce="[object Float32Array]",fe="[object Float64Array]",de="[object Int8Array]",pe="[object Int16Array]",he="[object Int32Array]",me="[object Uint8Array]",ge="[object Uint8ClampedArray]",ve="[object Uint16Array]",be="[object Uint32Array]",ye=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Se=RegExp(xe.source),Ce=RegExp(Ee.source),Oe=/<%-([\s\S]+?)%>/g,ke=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,je=/[\\^$.*+?()[\]{}|]/g,Re=RegExp(je.source),De=/^\s+|\s+$/g,Fe=/^\s+/,Ie=/\s+$/,Le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ne=/\{\n\/\* \[wrapped with (.+)\] \*/,ze=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,Ve=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ye=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Je="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Je+"]",nt="["+Ze+"]",rt="\\d+",it="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Je+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",lt="[^\\ud800-\\udfff]",ut="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+ot+"|"+at+")",pt="(?:"+ft+"|"+at+")",ht="(?:"+nt+"|"+st+")"+"?",mt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[lt,ut,ct].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),gt="(?:"+[it,ut,ct].join("|")+")"+mt,vt="(?:"+[lt+nt+"?",nt,ut,ct,et].join("|")+")",bt=RegExp("['’]","g"),yt=RegExp(nt,"g"),wt=RegExp(st+"(?="+st+")|"+vt+mt,"g"),_t=RegExp([ft+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+dt,"$"].join("|")+")",ft+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,gt].join("|"),"g"),xt=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),Et=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,St=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ct=-1,Ot={};Ot[ce]=Ot[fe]=Ot[de]=Ot[pe]=Ot[he]=Ot[me]=Ot[ge]=Ot[ve]=Ot[be]=!0,Ot[B]=Ot[H]=Ot[le]=Ot[W]=Ot[ue]=Ot[G]=Ot[V]=Ot[K]=Ot[Y]=Ot[X]=Ot[J]=Ot[te]=Ot[ne]=Ot[re]=Ot[ae]=!1;var kt={};kt[B]=kt[H]=kt[le]=kt[ue]=kt[W]=kt[G]=kt[ce]=kt[fe]=kt[de]=kt[pe]=kt[he]=kt[Y]=kt[X]=kt[J]=kt[te]=kt[ne]=kt[re]=kt[ie]=kt[me]=kt[ge]=kt[ve]=kt[be]=!0,kt[V]=kt[K]=kt[ae]=!1;var Mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},At=parseFloat,Tt=parseInt,Pt="object"==typeof e&&e&&e.Object===Object&&e,jt="object"==typeof self&&self&&self.Object===Object&&self,Rt=Pt||jt||Function("return this")(),Dt=exports&&!exports.nodeType&&exports,Ft=Dt&&"object"==typeof n&&n&&!n.nodeType&&n,It=Ft&&Ft.exports===Dt,Lt=It&&Pt.process,Nt=function(){try{var e=Ft&&Ft.require&&Ft.require("util").types;return e||Lt&&Lt.binding&&Lt.binding("util")}catch(e){}}(),zt=Nt&&Nt.isArrayBuffer,Bt=Nt&&Nt.isDate,Ht=Nt&&Nt.isMap,Ut=Nt&&Nt.isRegExp,$t=Nt&&Nt.isSet,Wt=Nt&&Nt.isTypedArray;function Gt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function qt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function Zt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function _n(e,t){for(var n=e.length;n--&&ln(t,e[n],0)>-1;);return n}var xn=pn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),En=pn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Sn(e){return"\\"+Mt[e]}function Cn(e){return xt.test(e)}function On(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function kn(e,t){return function(n){return e(t(n))}}function Mn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var Dn=function e(t){var n,r=(t=null==t?Rt:Dn.defaults(Rt.Object(),t,Dn.pick(Rt,St))).Array,Ze=t.Date,Je=t.Error,et=t.Function,tt=t.Math,nt=t.Object,rt=t.RegExp,it=t.String,ot=t.TypeError,at=r.prototype,st=et.prototype,lt=nt.prototype,ut=t["__core-js_shared__"],ct=st.toString,ft=lt.hasOwnProperty,dt=0,pt=(n=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ht=lt.toString,mt=ct.call(nt),gt=Rt._,vt=rt("^"+ct.call(ft).replace(je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=It?t.Buffer:i,xt=t.Symbol,Mt=t.Uint8Array,Pt=wt?wt.allocUnsafe:i,jt=kn(nt.getPrototypeOf,nt),Dt=nt.create,Ft=lt.propertyIsEnumerable,Lt=at.splice,Nt=xt?xt.isConcatSpreadable:i,on=xt?xt.iterator:i,pn=xt?xt.toStringTag:i,Fn=function(){try{var e=Bo(nt,"defineProperty");return e({},"",{}),e}catch(e){}}(),In=t.clearTimeout!==Rt.clearTimeout&&t.clearTimeout,Ln=Ze&&Ze.now!==Rt.Date.now&&Ze.now,Nn=t.setTimeout!==Rt.setTimeout&&t.setTimeout,zn=tt.ceil,Bn=tt.floor,Hn=nt.getOwnPropertySymbols,Un=wt?wt.isBuffer:i,$n=t.isFinite,Wn=at.join,Gn=kn(nt.keys,nt),qn=tt.max,Vn=tt.min,Kn=Ze.now,Qn=t.parseInt,Yn=tt.random,Xn=at.reverse,Zn=Bo(t,"DataView"),Jn=Bo(t,"Map"),er=Bo(t,"Promise"),tr=Bo(t,"Set"),nr=Bo(t,"WeakMap"),rr=Bo(nt,"create"),ir=nr&&new nr,or={},ar=da(Zn),sr=da(Jn),lr=da(er),ur=da(tr),cr=da(nr),fr=xt?xt.prototype:i,dr=fr?fr.valueOf:i,pr=fr?fr.toString:i;function hr(e){if(As(e)&&!bs(e)&&!(e instanceof br)){if(e instanceof vr)return e;if(ft.call(e,"__wrapped__"))return pa(e)}return new vr(e)}var mr=function(){function e(){}return function(t){if(!Ms(t))return{};if(Dt)return Dt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function gr(){}function vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function br(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=I,this.__views__=[]}function yr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Ir(e,t,n,r,o,a){var s,l=t&f,u=t&d,c=t&p;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Ms(e))return e;var h=bs(e);if(h){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ft.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return ro(e,s)}else{var m=$o(e),g=m==K||m==Q;if(xs(e))return Xi(e,l);if(m==J||m==B||g&&!o){if(s=u||g?{}:Go(e),!l)return u?function(e,t){return io(e,Uo(e),t)}(e,function(e,t){return e&&io(t,al(t),e)}(s,e)):function(e,t){return io(e,Ho(e),t)}(e,jr(s,e))}else{if(!kt[m])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case le:return Zi(e);case W:case G:return new r(+e);case ue:return function(e,t){var n=t?Zi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ce:case fe:case de:case pe:case he:case me:case ge:case ve:case be:return Ji(e,n);case Y:return new r;case X:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,$e.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case ie:return i=e,dr?nt(dr.call(i)):{}}var i}(e,m,l)}}a||(a=new Er);var v=a.get(e);if(v)return v;a.set(e,s),Ds(e)?e.forEach(function(r){s.add(Ir(r,t,n,r,e,a))}):Ts(e)&&e.forEach(function(r,i){s.set(i,Ir(r,t,n,i,e,a))});var b=h?i:(c?u?Ro:jo:u?al:ol)(e);return Vt(b||e,function(r,i){b&&(r=e[i=r]),Ar(s,i,Ir(r,t,n,i,e,a))}),s}function Lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=nt(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Nr(e,t,n){if("function"!=typeof e)throw new ot(s);return oa(function(){e.apply(i,n)},t)}function zr(e,t,n,r){var i=-1,a=Xt,s=!0,l=e.length,u=[],c=t.length;if(!l)return u;n&&(t=Jt(t,vn(n))),r?(a=Zt,s=!1):t.length>=o&&(a=yn,s=!1,t=new xr(t));e:for(;++i-1},wr.prototype.set=function(e,t){var n=this.__data__,r=Tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},_r.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Jn||wr),string:new yr}},_r.prototype.delete=function(e){var t=No(this,e).delete(e);return this.size-=t?1:0,t},_r.prototype.get=function(e){return No(this,e).get(e)},_r.prototype.has=function(e){return No(this,e).has(e)},_r.prototype.set=function(e,t){var n=No(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,l),this},xr.prototype.has=function(e){return this.__data__.has(e)},Er.prototype.clear=function(){this.__data__=new wr,this.size=0},Er.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Er.prototype.get=function(e){return this.__data__.get(e)},Er.prototype.has=function(e){return this.__data__.has(e)},Er.prototype.set=function(e,t){var n=this.__data__;if(n instanceof wr){var r=n.__data__;if(!Jn||r.length0&&n(s)?t>1?Gr(s,t-1,n,r,i):en(i,s):r||(i[i.length]=s)}return i}var qr=lo(),Vr=lo(!0);function Kr(e,t){return e&&qr(e,t,ol)}function Qr(e,t){return e&&Vr(e,t,ol)}function Yr(e,t){return Yt(t,function(t){return Cs(e[t])})}function Xr(e,t){for(var n=0,r=(t=Vi(t,e)).length;null!=e&&nt}function ti(e,t){return null!=e&&ft.call(e,t)}function ni(e,t){return null!=e&&t in nt(e)}function ri(e,t,n){for(var o=n?Zt:Xt,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,f=[];l--;){var d=e[l];l&&t&&(d=Jt(d,vn(t))),c=Vn(d.length,c),u[l]=!n&&(t||a>=120&&d.length>=120)?new xr(l&&d):i}d=e[0];var p=-1,h=u[0];e:for(;++p=s)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)})}function yi(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Lt.call(s,l,1),Lt.call(e,l,1);return e}function _i(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Vo(i)?Lt.call(e,i,1):zi(e,i)}}return e}function xi(e,t){return e+Bn(Yn()*(t-e+1))}function Ei(e,t){var n="";if(!e||t<1||t>R)return n;do{t%2&&(n+=e),(t=Bn(t/2))&&(e+=e)}while(t);return n}function Si(e,t){return aa(ta(e,t,Pl),e+"")}function Ci(e){return Cr(hl(e))}function Oi(e,t){var n=hl(e);return ua(n,Fr(t,0,n.length))}function ki(e,t,n,r){if(!Ms(e))return e;for(var o=-1,a=(t=Vi(t,e)).length,s=a-1,l=e;null!=l&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!Is(a)&&(n?a<=t:a=o){var c=t?null:So(e);if(c)return An(c);s=!1,i=yn,u=new xr}else u=t?[]:l;e:for(;++r=r?e:Pi(e,t,n)}var Yi=In||function(e){return Rt.clearTimeout(e)};function Xi(e,t){if(t)return e.slice();var n=e.length,r=Pt?Pt(n):new e.constructor(n);return e.copy(r),r}function Zi(e){var t=new e.constructor(e.byteLength);return new Mt(t).set(new Mt(e)),t}function Ji(e,t){var n=t?Zi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=Is(e),s=t!==i,l=null===t,u=t==t,c=Is(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!c&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&Ko(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=nt(t);++r-1?o[a?t[s]:s]:i}}function ho(e){return Po(function(t){var n=t.length,r=n,o=vr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ot(s);if(o&&!l&&"wrapper"==Fo(a))var l=new vr([],!0)}for(r=l?r:n;++r1&&y.reverse(),d&&cl))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var f=-1,d=!0,p=n&m?new xr:i;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Vt(z,function(n){var r="_."+n[0];t&n[1]&&!Xt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Ne);return t?t[1].split(ze):[]}(r),n)))}function la(e){var t=0,n=0;return function(){var r=Kn(),o=A-(r-n);if(n=r,o>0){if(++t>=M)return arguments[0]}else t=0;return e.apply(i,arguments)}}function ua(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Ra(e,n)});function Ba(e){var t=hr(e);return t.__chain__=!0,t}function Ha(e,t){return t(e)}var Ua=Po(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Dr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof br&&Vo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ha,args:[o],thisArg:i}),new vr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var $a=oo(function(e,t,n){ft.call(e,n)?++e[n]:Rr(e,n,1)});var Wa=po(va),Ga=po(ba);function qa(e,t){return(bs(e)?Vt:Br)(e,Lo(t,3))}function Va(e,t){return(bs(e)?Kt:Hr)(e,Lo(t,3))}var Ka=oo(function(e,t,n){ft.call(e,n)?e[n].push(t):Rr(e,n,[t])});var Qa=Si(function(e,t,n){var i=-1,o="function"==typeof t,a=ws(e)?r(e.length):[];return Br(e,function(e){a[++i]=o?Gt(t,e,n):ii(e,t,n)}),a}),Ya=oo(function(e,t,n){Rr(e,n,t)});function Xa(e,t){return(bs(e)?Jt:pi)(e,Lo(t,3))}var Za=oo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Ja=Si(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ko(e,t[0],t[1])?t=[]:n>2&&Ko(t[0],t[1],t[2])&&(t=[t[0]]),bi(e,Gr(t,1),[])}),es=Ln||function(){return Rt.Date.now()};function ts(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Oo(e,E,i,i,i,i,t)}function ns(e,t){var n;if("function"!=typeof t)throw new ot(s);return e=Us(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var rs=Si(function(e,t,n){var r=g;if(n.length){var i=Mn(n,Io(rs));r|=_}return Oo(e,r,t,n,i)}),is=Si(function(e,t,n){var r=g|v;if(n.length){var i=Mn(n,Io(is));r|=_}return Oo(t,r,e,n,i)});function os(e,t,n){var r,o,a,l,u,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new ot(s);function m(t){var n=r,a=o;return r=o=i,f=t,l=e.apply(a,n)}function g(e){var n=e-c;return c===i||n>=t||n<0||p&&e-f>=a}function v(){var e=es();if(g(e))return b(e);u=oa(v,function(e){var n=t-(e-c);return p?Vn(n,a-(e-f)):n}(e))}function b(e){return u=i,h&&r?m(e):(r=o=i,l)}function y(){var e=es(),n=g(e);if(r=arguments,o=this,c=e,n){if(u===i)return function(e){return f=e,u=oa(v,t),d?m(e):l}(c);if(p)return Yi(u),u=oa(v,t),m(c)}return u===i&&(u=oa(v,t)),l}return t=Ws(t)||0,Ms(n)&&(d=!!n.leading,a=(p="maxWait"in n)?qn(Ws(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),y.cancel=function(){u!==i&&Yi(u),f=0,r=c=o=u=i},y.flush=function(){return u===i?l:b(es())},y}var as=Si(function(e,t){return Nr(e,1,t)}),ss=Si(function(e,t,n){return Nr(e,Ws(t)||0,n)});function ls(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(s);var n=function(){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(ls.Cache||_r),n}function us(e){if("function"!=typeof e)throw new ot(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ls.Cache=_r;var cs=Ki(function(e,t){var n=(t=1==t.length&&bs(t[0])?Jt(t[0],vn(Lo())):Jt(Gr(t,1),vn(Lo()))).length;return Si(function(r){for(var i=-1,o=Vn(r.length,n);++i=t}),vs=oi(function(){return arguments}())?oi:function(e){return As(e)&&ft.call(e,"callee")&&!Ft.call(e,"callee")},bs=r.isArray,ys=zt?vn(zt):function(e){return As(e)&&Jr(e)==le};function ws(e){return null!=e&&ks(e.length)&&!Cs(e)}function _s(e){return As(e)&&ws(e)}var xs=Un||Wl,Es=Bt?vn(Bt):function(e){return As(e)&&Jr(e)==G};function Ss(e){if(!As(e))return!1;var t=Jr(e);return t==V||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!js(e)}function Cs(e){if(!Ms(e))return!1;var t=Jr(e);return t==K||t==Q||t==U||t==ee}function Os(e){return"number"==typeof e&&e==Us(e)}function ks(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=R}function Ms(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function As(e){return null!=e&&"object"==typeof e}var Ts=Ht?vn(Ht):function(e){return As(e)&&$o(e)==Y};function Ps(e){return"number"==typeof e||As(e)&&Jr(e)==X}function js(e){if(!As(e)||Jr(e)!=J)return!1;var t=jt(e);if(null===t)return!0;var n=ft.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==mt}var Rs=Ut?vn(Ut):function(e){return As(e)&&Jr(e)==te};var Ds=$t?vn($t):function(e){return As(e)&&$o(e)==ne};function Fs(e){return"string"==typeof e||!bs(e)&&As(e)&&Jr(e)==re}function Is(e){return"symbol"==typeof e||As(e)&&Jr(e)==ie}var Ls=Wt?vn(Wt):function(e){return As(e)&&ks(e.length)&&!!Ot[Jr(e)]};var Ns=_o(di),zs=_o(function(e,t){return e<=t});function Bs(e){if(!e)return[];if(ws(e))return Fs(e)?jn(e):ro(e);if(on&&e[on])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[on]());var t=$o(e);return(t==Y?On:t==ne?An:hl)(e)}function Hs(e){return e?(e=Ws(e))===j||e===-j?(e<0?-1:1)*D:e==e?e:0:0===e?e:0}function Us(e){var t=Hs(e),n=t%1;return t==t?n?t-n:t:0}function $s(e){return e?Fr(Us(e),0,I):0}function Ws(e){if("number"==typeof e)return e;if(Is(e))return F;if(Ms(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ms(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(De,"");var n=Ge.test(e);return n||Ve.test(e)?Tt(e.slice(2),n?2:8):We.test(e)?F:+e}function Gs(e){return io(e,al(e))}function qs(e){return null==e?"":Li(e)}var Vs=ao(function(e,t){if(Zo(t)||ws(t))io(t,ol(t),e);else for(var n in t)ft.call(t,n)&&Ar(e,n,t[n])}),Ks=ao(function(e,t){io(t,al(t),e)}),Qs=ao(function(e,t,n,r){io(t,al(t),e,r)}),Ys=ao(function(e,t,n,r){io(t,ol(t),e,r)}),Xs=Po(Dr);var Zs=Si(function(e,t){e=nt(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Ko(t[0],t[1],o)&&(r=1);++n1),t}),io(e,Ro(e),n),r&&(n=Ir(n,f|d|p,Ao));for(var i=t.length;i--;)zi(n,t[i]);return n});var cl=Po(function(e,t){return null==e?{}:function(e,t){return yi(e,t,function(t,n){return tl(e,n)})}(e,t)});function fl(e,t){if(null==e)return{};var n=Jt(Ro(e),function(e){return[e]});return t=Lo(t),yi(e,n,function(e,n){return t(e,n[0])})}var dl=Co(ol),pl=Co(al);function hl(e){return null==e?[]:bn(e,ol(e))}var ml=co(function(e,t,n){return t=t.toLowerCase(),e+(n?gl(t):t)});function gl(e){return Sl(qs(e).toLowerCase())}function vl(e){return(e=qs(e))&&e.replace(Qe,xn).replace(yt,"")}var bl=co(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),yl=co(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),wl=uo("toLowerCase");var _l=co(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var xl=co(function(e,t,n){return e+(n?" ":"")+Sl(t)});var El=co(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Sl=uo("toUpperCase");function Cl(e,t,n){return e=qs(e),(t=n?i:t)===i?function(e){return Et.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(Be)||[]}(e):e.match(t)||[]}var Ol=Si(function(e,t){try{return Gt(e,i,t)}catch(e){return Ss(e)?e:new Je(e)}}),kl=Po(function(e,t){return Vt(t,function(t){t=fa(t),Rr(e,t,rs(e[t],e))}),e});function Ml(e){return function(){return e}}var Al=ho(),Tl=ho(!0);function Pl(e){return e}function jl(e){return ui("function"==typeof e?e:Ir(e,f))}var Rl=Si(function(e,t){return function(n){return ii(n,e,t)}}),Dl=Si(function(e,t){return function(n){return ii(e,n,t)}});function Fl(e,t,n){var r=ol(t),i=Yr(t,r);null!=n||Ms(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Yr(t,ol(t)));var o=!(Ms(n)&&"chain"in n&&!n.chain),a=Cs(e);return Vt(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ro(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Il(){}var Ll=bo(Jt),Nl=bo(Qt),zl=bo(rn);function Bl(e){return Qo(e)?dn(fa(e)):function(e){return function(t){return Xr(t,e)}}(e)}var Hl=wo(),Ul=wo(!0);function $l(){return[]}function Wl(){return!1}var Gl=vo(function(e,t){return e+t},0),ql=Eo("ceil"),Vl=vo(function(e,t){return e/t},1),Kl=Eo("floor");var Ql,Yl=vo(function(e,t){return e*t},1),Xl=Eo("round"),Zl=vo(function(e,t){return e-t},0);return hr.after=function(e,t){if("function"!=typeof t)throw new ot(s);return e=Us(e),function(){if(--e<1)return t.apply(this,arguments)}},hr.ary=ts,hr.assign=Vs,hr.assignIn=Ks,hr.assignInWith=Qs,hr.assignWith=Ys,hr.at=Xs,hr.before=ns,hr.bind=rs,hr.bindAll=kl,hr.bindKey=is,hr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return bs(e)?e:[e]},hr.chain=Ba,hr.chunk=function(e,t,n){t=(n?Ko(e,t,n):t===i)?1:qn(Us(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(zn(o/t));ao?0:o+n),(r=r===i||r>o?o:Us(r))<0&&(r+=o),r=n>r?0:$s(r);n>>0)?(e=qs(e))&&("string"==typeof t||null!=t&&!Rs(t))&&!(t=Li(t))&&Cn(e)?Qi(jn(e),0,n):e.split(t,n):[]},hr.spread=function(e,t){if("function"!=typeof e)throw new ot(s);return t=null==t?0:qn(Us(t),0),Si(function(n){var r=n[t],i=Qi(n,0,t);return r&&en(i,r),Gt(e,this,i)})},hr.tail=function(e){var t=null==e?0:e.length;return t?Pi(e,1,t):[]},hr.take=function(e,t,n){return e&&e.length?Pi(e,0,(t=n||t===i?1:Us(t))<0?0:t):[]},hr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Pi(e,(t=r-(t=n||t===i?1:Us(t)))<0?0:t,r):[]},hr.takeRightWhile=function(e,t){return e&&e.length?Hi(e,Lo(t,3),!1,!0):[]},hr.takeWhile=function(e,t){return e&&e.length?Hi(e,Lo(t,3)):[]},hr.tap=function(e,t){return t(e),e},hr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ot(s);return Ms(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),os(e,t,{leading:r,maxWait:t,trailing:i})},hr.thru=Ha,hr.toArray=Bs,hr.toPairs=dl,hr.toPairsIn=pl,hr.toPath=function(e){return bs(e)?Jt(e,fa):Is(e)?[e]:ro(ca(qs(e)))},hr.toPlainObject=Gs,hr.transform=function(e,t,n){var r=bs(e),i=r||xs(e)||Ls(e);if(t=Lo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ms(e)&&Cs(o)?mr(jt(e)):{}}return(i?Vt:Kr)(e,function(e,r,i){return t(n,e,r,i)}),n},hr.unary=function(e){return ts(e,1)},hr.union=Aa,hr.unionBy=Ta,hr.unionWith=Pa,hr.uniq=function(e){return e&&e.length?Ni(e):[]},hr.uniqBy=function(e,t){return e&&e.length?Ni(e,Lo(t,2)):[]},hr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Ni(e,i,t):[]},hr.unset=function(e,t){return null==e||zi(e,t)},hr.unzip=ja,hr.unzipWith=Ra,hr.update=function(e,t,n){return null==e?e:Bi(e,t,qi(n))},hr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Bi(e,t,qi(n),r)},hr.values=hl,hr.valuesIn=function(e){return null==e?[]:bn(e,al(e))},hr.without=Da,hr.words=Cl,hr.wrap=function(e,t){return fs(qi(t),e)},hr.xor=Fa,hr.xorBy=Ia,hr.xorWith=La,hr.zip=Na,hr.zipObject=function(e,t){return Wi(e||[],t||[],Ar)},hr.zipObjectDeep=function(e,t){return Wi(e||[],t||[],ki)},hr.zipWith=za,hr.entries=dl,hr.entriesIn=pl,hr.extend=Ks,hr.extendWith=Qs,Fl(hr,hr),hr.add=Gl,hr.attempt=Ol,hr.camelCase=ml,hr.capitalize=gl,hr.ceil=ql,hr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Ws(n))==n?n:0),t!==i&&(t=(t=Ws(t))==t?t:0),Fr(Ws(e),t,n)},hr.clone=function(e){return Ir(e,p)},hr.cloneDeep=function(e){return Ir(e,f|p)},hr.cloneDeepWith=function(e,t){return Ir(e,f|p,t="function"==typeof t?t:i)},hr.cloneWith=function(e,t){return Ir(e,p,t="function"==typeof t?t:i)},hr.conformsTo=function(e,t){return null==t||Lr(e,t,ol(t))},hr.deburr=vl,hr.defaultTo=function(e,t){return null==e||e!=e?t:e},hr.divide=Vl,hr.endsWith=function(e,t,n){e=qs(e),t=Li(t);var r=e.length,o=n=n===i?r:Fr(Us(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},hr.eq=hs,hr.escape=function(e){return(e=qs(e))&&Ce.test(e)?e.replace(Ee,En):e},hr.escapeRegExp=function(e){return(e=qs(e))&&Re.test(e)?e.replace(je,"\\$&"):e},hr.every=function(e,t,n){var r=bs(e)?Qt:Ur;return n&&Ko(e,t,n)&&(t=i),r(e,Lo(t,3))},hr.find=Wa,hr.findIndex=va,hr.findKey=function(e,t){return an(e,Lo(t,3),Kr)},hr.findLast=Ga,hr.findLastIndex=ba,hr.findLastKey=function(e,t){return an(e,Lo(t,3),Qr)},hr.floor=Kl,hr.forEach=qa,hr.forEachRight=Va,hr.forIn=function(e,t){return null==e?e:qr(e,Lo(t,3),al)},hr.forInRight=function(e,t){return null==e?e:Vr(e,Lo(t,3),al)},hr.forOwn=function(e,t){return e&&Kr(e,Lo(t,3))},hr.forOwnRight=function(e,t){return e&&Qr(e,Lo(t,3))},hr.get=el,hr.gt=ms,hr.gte=gs,hr.has=function(e,t){return null!=e&&Wo(e,t,ti)},hr.hasIn=tl,hr.head=wa,hr.identity=Pl,hr.includes=function(e,t,n,r){e=ws(e)?e:hl(e),n=n&&!r?Us(n):0;var i=e.length;return n<0&&(n=qn(i+n,0)),Fs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&ln(e,t,n)>-1},hr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Us(n);return i<0&&(i=qn(r+i,0)),ln(e,t,i)},hr.inRange=function(e,t,n){return t=Hs(t),n===i?(n=t,t=0):n=Hs(n),function(e,t,n){return e>=Vn(t,n)&&e=-R&&e<=R},hr.isSet=Ds,hr.isString=Fs,hr.isSymbol=Is,hr.isTypedArray=Ls,hr.isUndefined=function(e){return e===i},hr.isWeakMap=function(e){return As(e)&&$o(e)==ae},hr.isWeakSet=function(e){return As(e)&&Jr(e)==se},hr.join=function(e,t){return null==e?"":Wn.call(e,t)},hr.kebabCase=bl,hr.last=Sa,hr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Us(n))<0?qn(r+o,0):Vn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):sn(e,cn,o,!0)},hr.lowerCase=yl,hr.lowerFirst=wl,hr.lt=Ns,hr.lte=zs,hr.max=function(e){return e&&e.length?$r(e,Pl,ei):i},hr.maxBy=function(e,t){return e&&e.length?$r(e,Lo(t,2),ei):i},hr.mean=function(e){return fn(e,Pl)},hr.meanBy=function(e,t){return fn(e,Lo(t,2))},hr.min=function(e){return e&&e.length?$r(e,Pl,di):i},hr.minBy=function(e,t){return e&&e.length?$r(e,Lo(t,2),di):i},hr.stubArray=$l,hr.stubFalse=Wl,hr.stubObject=function(){return{}},hr.stubString=function(){return""},hr.stubTrue=function(){return!0},hr.multiply=Yl,hr.nth=function(e,t){return e&&e.length?vi(e,Us(t)):i},hr.noConflict=function(){return Rt._===this&&(Rt._=gt),this},hr.noop=Il,hr.now=es,hr.pad=function(e,t,n){e=qs(e);var r=(t=Us(t))?Pn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return yo(Bn(i),n)+e+yo(zn(i),n)},hr.padEnd=function(e,t,n){e=qs(e);var r=(t=Us(t))?Pn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Yn();return Vn(e+o*(t-e+At("1e-"+((o+"").length-1))),t)}return xi(e,t)},hr.reduce=function(e,t,n){var r=bs(e)?tn:hn,i=arguments.length<3;return r(e,Lo(t,4),n,i,Br)},hr.reduceRight=function(e,t,n){var r=bs(e)?nn:hn,i=arguments.length<3;return r(e,Lo(t,4),n,i,Hr)},hr.repeat=function(e,t,n){return t=(n?Ko(e,t,n):t===i)?1:Us(t),Ei(qs(e),t)},hr.replace=function(){var e=arguments,t=qs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},hr.result=function(e,t,n){var r=-1,o=(t=Vi(t,e)).length;for(o||(o=1,e=i);++rR)return[];var n=I,r=Vn(e,I);t=Lo(t),e-=I;for(var i=gn(r,t);++n=a)return e;var l=n-Pn(r);if(l<1)return r;var u=s?Qi(s,0,l).join(""):e.slice(0,l);if(o===i)return u+r;if(s&&(l+=u.length-l),Rs(o)){if(e.slice(l).search(o)){var c,f=u;for(o.global||(o=rt(o.source,qs($e.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var d=c.index;u=u.slice(0,d===i?l:d)}}else if(e.indexOf(Li(o),l)!=l){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+r},hr.unescape=function(e){return(e=qs(e))&&Se.test(e)?e.replace(xe,Rn):e},hr.uniqueId=function(e){var t=++dt;return qs(e)+t},hr.upperCase=El,hr.upperFirst=Sl,hr.each=qa,hr.eachRight=Va,hr.first=wa,Fl(hr,(Ql={},Kr(hr,function(e,t){ft.call(hr.prototype,t)||(Ql[t]=e)}),Ql),{chain:!1}),hr.VERSION="4.17.15",Vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){hr[e].placeholder=hr}),Vt(["drop","take"],function(e,t){br.prototype[e]=function(n){n=n===i?1:qn(Us(n),0);var r=this.__filtered__&&!t?new br(this):this.clone();return r.__filtered__?r.__takeCount__=Vn(n,r.__takeCount__):r.__views__.push({size:Vn(n,I),type:e+(r.__dir__<0?"Right":"")}),r},br.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Vt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==T||3==n;br.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Vt(["head","last"],function(e,t){var n="take"+(t?"Right":"");br.prototype[e]=function(){return this[n](1).value()[0]}}),Vt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");br.prototype[e]=function(){return this.__filtered__?new br(this):this[n](1)}}),br.prototype.compact=function(){return this.filter(Pl)},br.prototype.find=function(e){return this.filter(e).head()},br.prototype.findLast=function(e){return this.reverse().find(e)},br.prototype.invokeMap=Si(function(e,t){return"function"==typeof e?new br(this):this.map(function(n){return ii(n,e,t)})}),br.prototype.reject=function(e){return this.filter(us(Lo(e)))},br.prototype.slice=function(e,t){e=Us(e);var n=this;return n.__filtered__&&(e>0||t<0)?new br(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Us(t))<0?n.dropRight(-t):n.take(t-e)),n)},br.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},br.prototype.toArray=function(){return this.take(I)},Kr(br.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=hr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(hr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof br,u=s[0],c=l||bs(t),f=function(e){var t=o.apply(hr,en([e],s));return r&&d?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,m=l&&!p;if(!a&&c){t=m?t:new br(this);var g=e.apply(t,s);return g.__actions__.push({func:Ha,args:[f],thisArg:i}),new vr(g,d)}return h&&m?e.apply(this,s):(g=this.thru(f),h?r?g.value()[0]:g.value():g)})}),Vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);hr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(bs(i)?i:[],e)}return this[n](function(n){return t.apply(bs(n)?n:[],e)})}}),Kr(br.prototype,function(e,t){var n=hr[t];if(n){var r=n.name+"";ft.call(or,r)||(or[r]=[]),or[r].push({name:t,func:n})}}),or[mo(i,v).name]=[{name:"wrapper",func:i}],br.prototype.clone=function(){var e=new br(this.__wrapped__);return e.__actions__=ro(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ro(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ro(this.__views__),e},br.prototype.reverse=function(){if(this.__filtered__){var e=new br(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},br.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=bs(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},hr.prototype.plant=function(e){for(var t,n=this;n instanceof gr;){var r=pa(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},hr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof br){var t=e;return this.__actions__.length&&(t=new br(this)),(t=t.reverse()).__actions__.push({func:Ha,args:[Ma],thisArg:i}),new vr(t,this.__chain__)}return this.thru(Ma)},hr.prototype.toJSON=hr.prototype.valueOf=hr.prototype.value=function(){return Ui(this.__wrapped__,this.__actions__)},hr.prototype.first=hr.prototype.head,on&&(hr.prototype[on]=function(){return this}),hr}();Rt._=Dn,(r=function(){return Dn}.call(exports,t,exports,n))===i||(n.exports=r)}).call(this)}).call(this,t("aY11sVfy"),t("9YbPW59L")(e))},NYE3wwKJ:function(e,exports){var t=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}},"NYc6ZHU/":function(e,exports,t){e.exports=t.p+"81a0099e387626ce66c015a7e5d6d838.js"},NYm2vAQk:function(e,exports,t){var n; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var t={}.hasOwnProperty;function r(){for(var e=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:(0,i.getFirstDayOfWeek)(),n=arguments[2],o=a(e),s=[],l=[],u=[],c=1;c<=o;c+=1)s.push(new Date(e.getFullYear(),e.getMonth(),c,12));s.forEach(function(e){l.length>0&&e.getDay()===t&&(u.push(l),l=[]),l.push(e),s.indexOf(e)===s.length-1&&u.push(l)});for(var f=u[0],d=7-f.length;d>0;d-=1){var p=(0,r.clone)(f[0]);p.setDate(f[0].getDate()-1),f.unshift(p)}for(var h=u[u.length-1],m=h.length;m<7;m+=1){var g=(0,r.clone)(h[h.length-1]);g.setDate(h[h.length-1].getDate()+1),h.push(g)}if(n&&u.length<6)for(var v=void 0,b=u.length;b<6;b+=1){for(var y=(v=u[u.length-1])[v.length-1],w=[],_=0;_<7;_+=1){var x=(0,r.clone)(y);x.setDate(y.getDate()+_+1),w.push(x)}u.push(w)}return u},exports.startOfMonth=function(e){var t=(0,r.clone)(e);return t.setDate(1),t.setHours(12,0,0,0),t};var r=t("iqTv9aq3"),i=t("LECK0kFQ");function o(e){return new Date(e.getFullYear(),e.getMonth(),1,12)}function a(e){var t=o(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t.getDate()}},Nc4EAXj4:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t,n){var r=n.getRegistry(),i=r.addSource(e,t);return{handlerId:i,unregister:function(){r.removeSource(i)}}}},Ncb4Uri4:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=i(t("ii0bleBb")),r=i(t("ivGQtwpr"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n0&&!--r&&(n(),n=null)}},O7WwaaiA:function(e,exports,t){var n=t("eXnMMeS9");e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},"OBqcpSk/":function(e,exports,t){var n=t("REt7egjG"),r=t("n3MRiktB"),i=t("oPTuas+D"),o=t("QwEwHdCk"),a=i(function(e){var t=n(e,o);return t.length&&t[0]===e[0]?r(t):[]});e.exports=a},OE0UFjy9:function(e,exports,t){"use strict";exports.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["measureBeforeMount"]);return i&&!this.mounted?r.default.createElement("div",{className:this.props.className,style:this.props.style}):r.default.createElement(e,n({},o,this.state))},i}(r.default.Component),t.defaultProps={measureBeforeMount:!1},t.propTypes={measureBeforeMount:i.default.bool},a};var r=a(t("ivGQtwpr")),i=a(t("ii0bleBb")),o=a(t("vU3dbCc2"));function a(e){return e&&e.__esModule?e:{default:e}}function s(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}},"OE6Y/0FI":function(e,exports,t){var n=t("2d8O7qpH"),r=t("jlf8gY3x");e.exports=function(e,t,i){var o=t&&i||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||r(a)}},"OHZO+S3J":function(e,exports,t){var n=t("P4tOE5v3"),r=t("KpUuxpHv"),i=t("tfeLNlKy"),o=t("hA40zY5f"),a=t("/e/meXvl"),s="[object Boolean]",l="[object Date]",u="[object Map]",c="[object Number]",f="[object RegExp]",d="[object Set]",p="[object String]",h="[object Symbol]",m="[object ArrayBuffer]",g="[object DataView]",v="[object Float32Array]",b="[object Float64Array]",y="[object Int8Array]",w="[object Int16Array]",_="[object Int32Array]",x="[object Uint8Array]",E="[object Uint8ClampedArray]",S="[object Uint16Array]",C="[object Uint32Array]";e.exports=function(e,t,O){var k=e.constructor;switch(t){case m:return n(e);case s:case l:return new k(+e);case g:return r(e,O);case v:case b:case y:case w:case _:case x:case E:case S:case C:return a(e,O);case u:return new k;case c:case p:return new k(e);case f:return i(e);case d:return new k;case h:return o(e)}}},OMsxljiq:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=w(t("nXSFNspX")),r=w(t("ii0bleBb")),i=w(t("ivGQtwpr")),o=w(t("PcYM+wZ7")),a=w(t("vU3dbCc2")),s=w(t("H/eHg5XM")),l=w(t("HM+Bgqj5")),u=t("os2pWP01"),c=t("DlhHh5IY"),f=t("qOZsORvD"),d=t("J6m01YZl"),p=w(t("956JmyQG")),h=w(t("s5h7rPn2")),m=w(t("7QAbkgSv")),g=w(t("1SPPmkhJ")),v=w(t("4dyM+bxd")),b=w(t("Mcd/Xly4")),y=w(t("KWzh15eC"));function w(e){return e&&e.__esModule?e:{default:e}}var _=m.default.getStore("Search"),x=m.default.getStore("Tools"),E=g.default.getActions("SavedSearches"),S=(0,o.default)({displayName:"SearchBar",propTypes:{userPreferences:r.default.object,savedSearches:r.default.arrayOf(r.default.object).isRequired,config:r.default.object,displayRefreshControls:r.default.bool,onExecuteSearch:r.default.func},getDefaultProps:function(){return{displayRefreshControls:!0}},getInitialState:function(){return this.initialSearchParams=_.getParams(),{rangeType:this.initialSearchParams.rangeType,rangeParams:this.initialSearchParams.rangeParams,query:this.initialSearchParams.query,savedSearch:_.savedSearch,keywordPreview:s.default.Map()}},componentDidMount:function(){var e=this;_.onParamsChanged=function(t){return e.setState(t)},_.onSubmitSearch=function(){e._performSearch()},_.onAddQueryTerm=this._animateQueryChange,this._initializeSearchQueryInput()},componentDidUpdate:function(e,t){this.state.query!==t.query&&this._updateSearchQueryInput(this.state.query)},componentWillUnmount:function(){this._removeSearchQueryInput()},inputs:{},reload:function(){this.setState(this.getInitialState())},_initializeSearchQueryInput:function(){if(this.props.userPreferences.enableSmartSearch){this.queryInput=new d.QueryInput(this.query.getInputDOMNode()),this.queryInput.display();var e=a.default.findDOMNode(this.query);(0,n.default)(e).on("typeahead:change",function(e){_.query=e.target.value})}},_updateSearchQueryInput:function(e){this.props.userPreferences.enableSmartSearch&&this.queryInput.update(e)},_removeSearchQueryInput:function(){if(this.props.userPreferences.enableSmartSearch){var e=a.default.findDOMNode(this.query);(0,n.default)(e).off("typeahead:change")}},_closeSearchQueryAutoCompletion:function(){if(this.props.userPreferences.enableSmartSearch){var e=a.default.findDOMNode(this.query.getInputDOMNode());(0,n.default)(e).typeahead("close")}},_animateQueryChange:function(){v.default.scrollToHint(a.default.findDOMNode(this.universalSearch)),(0,n.default)(a.default.findDOMNode(this.query)).effect("bounce")},_queryChanged:function(){_.query=this.query.getValue()},_rangeTypeChanged:function(e,t){_.rangeType=e,this._resetKeywordPreview()},_rangeParamsChanged:function(e){var t=this;return function(){var n;switch(e){case"from":case"to":var r="".concat(e,"Formatted");n=t.inputs[r],t._isValidDateString(n.getValue())?n.getInputDOMNode().setCustomValidity(""):n.getInputDOMNode().setCustomValidity("Invalid date time provided");break;default:n=t.inputs[e]}_.rangeParams=t.state.rangeParams.set(e,n.getValue())}},_keywordSearchChanged:function(){var e=this;this._rangeParamsChanged("keyword")();var t=this.inputs.keyword.getValue();""===t?this._resetKeywordPreview():x.testNaturalDate(t).then(function(t){return e._onKeywordPreviewLoaded(t)}).catch(function(){return e._resetKeywordPreview()})},_resetKeywordPreview:function(){this.setState({keywordPreview:s.default.Map()})},_onKeywordPreviewLoaded:function(e){var t=b.default.fromUTCDateTime(e.from).toString(),n=b.default.fromUTCDateTime(e.to).toString();this.setState({keywordPreview:s.default.Map({from:t,to:n})})},_formattedDateStringInUserTZ:function(e){var t=this.state.rangeParams.get(e);return null==t||""===t?t:this.initialSearchParams.rangeParams.get(e)===t?b.default.parseFromString(t).toString():t},_setDateTimeToNow:function(e){var t=this;return function(){t.inputs["".concat(e,"Formatted")].getInputDOMNode().value=(new b.default).toString(b.default.Formats.DATETIME),t._rangeParamsChanged(e)()}},_isValidDateField:function(e){return this._isValidDateString(this._formattedDateStringInUserTZ(e))},_isValidDateString:function(e){try{return void 0!==e&&b.default.parseFromString(e),!0}catch(e){return!1}},_performSearch:function(e){if(e&&e.preventDefault(),this._closeSearchQueryAutoCompletion(),"absolute"===this.state.rangeType){var t=this.inputs.fromFormatted.getValue(),r=this.inputs.toFormatted.getValue();this.from.value=b.default.parseFromString(t).toISOString(),this.to.value=b.default.parseFromString(r).toISOString()}this.fields.value=_.fields.join(","),this.width.value=_.width,this.highlightMessage.value=_.highlightMessage;var i=this.searchForm,o=(0,n.default)(i).serialize(),a=new l.default(i.action).search(o).resource();_.executeSearch(a),"function"==typeof this.props.onExecuteSearch&&this.props.onExecuteSearch(a)},_onSavedSearchSelect:function(e){""===e&&this._performSearch();var t=_.searchInStream?_.searchInStream.id:void 0;E.execute.triggerPromise(e,t,(0,n.default)(window).width())},_onDateSelected:function(e){var t=this;return function(n,r,i){var o=t.inputs["".concat(e,"Formatted")].getInputDOMNode(),a=n.setHours(0);o.value=b.default.ignoreTZ(a).toString(b.default.Formats.DATETIME),t._rangeParamsChanged(e)()}},_getRangeTypeSelector:function(){var e,t=this;switch(this.state.rangeType){case"relative":var n,r=this.props.config?this.props.config.relative_timerange_options:null,o=this.props.config?y.default.duration(this.props.config.query_time_range_limit):null;if(r){var a=null;n=Object.keys(r).map(function(e){var t=y.default.duration(e).asSeconds();if(o>0&&(t>o.asSeconds()||0===t))return null;var n=i.default.createElement("option",{key:"relative-option-".concat(e),value:t},r[e]);return"PT0S"===e?(a=n,null):n}),a&&n.push(a)}else n=i.default.createElement("option",{value:"300"},"Loading...");e=i.default.createElement("div",{className:"timerange-selector relative",style:{width:270,marginLeft:50}},i.default.createElement(c.Input,{id:"relative-timerange-selector",ref:function(e){t.inputs.relative=e},type:"select",value:this.state.rangeParams.get("relative"),name:"relative",onChange:this._rangeParamsChanged("relative"),className:"input-sm"},n));break;case"absolute":e=i.default.createElement("div",{className:"timerange-selector absolute",style:{width:600}},i.default.createElement("div",{className:"row no-bm",style:{marginLeft:50}},i.default.createElement("div",{className:"col-md-5",style:{padding:0}},i.default.createElement("input",{type:"hidden",name:"from",ref:function(e){t.from=e}}),i.default.createElement(f.DatePicker,{id:"searchFromDatePicker",title:"Search start date",date:this.state.rangeParams.get("from"),onChange:this._onDateSelected("from")},i.default.createElement(c.Input,{type:"text",ref:function(e){t.inputs.fromFormatted=e},id:"timerange-absolute-from",value:this._formattedDateStringInUserTZ("from"),onChange:this._rangeParamsChanged("from"),placeholder:b.default.Formats.DATETIME,buttonAfter:i.default.createElement(u.Button,{bsSize:"small",onClick:this._setDateTimeToNow("from")},i.default.createElement(f.Icon,{name:"magic"})),bsStyle:this._isValidDateField("from")?null:"error",bsSize:"small",required:!0}))),i.default.createElement("div",{className:"col-md-1"},i.default.createElement("p",{className:"text-center",style:{margin:0,lineHeight:"30px"}},"to")),i.default.createElement("div",{className:"col-md-5",style:{padding:0}},i.default.createElement("input",{type:"hidden",name:"to",ref:function(e){t.to=e}}),i.default.createElement(f.DatePicker,{id:"searchToDatePicker",title:"Search end date",date:this.state.rangeParams.get("to"),onChange:this._onDateSelected("to")},i.default.createElement(c.Input,{type:"text",ref:function(e){t.inputs.toFormatted=e},id:"timerange-absolute-to",value:this._formattedDateStringInUserTZ("to"),onChange:this._rangeParamsChanged("to"),placeholder:b.default.Formats.DATETIME,buttonAfter:i.default.createElement(u.Button,{bsSize:"small",onClick:this._setDateTimeToNow("to")},i.default.createElement(f.Icon,{name:"magic"})),bsStyle:this._isValidDateField("to")?null:"error",bsSize:"small",required:!0})))));break;case"keyword":e=i.default.createElement("div",{className:"timerange-selector keyword",style:{width:650}},i.default.createElement("div",{className:"row no-bm",style:{marginLeft:50}},i.default.createElement("div",{className:"col-md-5",style:{padding:0}},i.default.createElement(c.Input,{type:"text",ref:function(e){t.inputs.keyword=e},id:"timerange-keyword",name:"keyword",value:this.state.rangeParams.get("keyword"),onChange:this._keywordSearchChanged,placeholder:"Last week",className:"input-sm",required:!0})),i.default.createElement("div",{className:"col-md-7",style:{paddingRight:0}},this.state.keywordPreview.size>0&&i.default.createElement(u.Alert,{bsStyle:"info",style:{height:30,paddingTop:5,paddingBottom:5,marginTop:0}},i.default.createElement("strong",{style:{marginRight:8}},"Preview:"),this.state.keywordPreview.get("from")," to ",this.state.keywordPreview.get("to")))));break;default:throw new Error("Unsupported range type ".concat(this.state.rangeType))}return e},_getSavedSearchesSelector:function(){var e=this.props.savedSearches.sort(function(e,t){return e.title.toLowerCase().localeCompare(t.title.toLowerCase())}).map(function(e){return{value:e.id,label:e.title}});return i.default.createElement(f.Select,{placeholder:"Saved searches",options:e,value:this.state.savedSearch,onChange:this._onSavedSearchSelect,size:"small"})},render:function(){var e=this;return i.default.createElement("div",{className:"row no-bm"},i.default.createElement("div",{className:"col-md-12",id:"universalsearch-container"},i.default.createElement("div",{className:"row no-bm"},i.default.createElement("div",{ref:function(t){e.universalSearch=t},className:"col-md-12",id:"universalsearch"},i.default.createElement("form",{ref:function(t){e.searchForm=t},className:"universalsearch-form",action:_.searchBaseLocation("index"),method:"GET",onSubmit:this._performSearch},this.state.savedSearch&&i.default.createElement("input",{type:"hidden",name:"saved",value:this.state.savedSearch}),i.default.createElement("input",{type:"hidden",name:"rangetype",value:this.state.rangeType}),i.default.createElement("input",{type:"hidden",ref:function(t){e.fields=t},name:"fields",value:""}),i.default.createElement("input",{type:"hidden",ref:function(t){e.width=t},name:"width",value:""}),i.default.createElement("input",{type:"hidden",ref:function(t){e.highlightMessage=t},name:"highlightMessage",value:""}),i.default.createElement("div",{className:"timerange-selector-container"},i.default.createElement("div",{className:"row no-bm"},i.default.createElement("div",{className:"col-md-6"},i.default.createElement(u.ButtonToolbar,{className:"timerange-chooser pull-left"},i.default.createElement(u.DropdownButton,{bsStyle:"info",title:i.default.createElement(f.Icon,{name:"clock-o"}),onSelect:this._rangeTypeChanged,id:"dropdown-timerange-selector"},i.default.createElement(u.MenuItem,{eventKey:"relative",active:"relative"===this.state.rangeType},"Relative"),i.default.createElement(u.MenuItem,{eventKey:"absolute",active:"absolute"===this.state.rangeType},"Absolute"),i.default.createElement(u.MenuItem,{eventKey:"keyword",active:"keyword"===this.state.rangeType},"Keyword"))),this._getRangeTypeSelector()),i.default.createElement("div",{className:"col-md-6"},i.default.createElement("div",{className:"saved-searches-selector-container pull-right",style:{display:"inline-flex",marginRight:5}},this.props.displayRefreshControls&&i.default.createElement("div",{style:{marginRight:5}},i.default.createElement(d.RefreshControls,null)),i.default.createElement("div",{style:{width:270}},this._getSavedSearchesSelector()))))),i.default.createElement("div",{id:"search-container"},i.default.createElement("div",{className:"pull-right search-help"},i.default.createElement(p.default,{page:h.default.PAGES.SEARCH_QUERY_LANGUAGE,title:"Search query syntax documentation",text:i.default.createElement(f.Icon,{name:"lightbulb-o"})})),i.default.createElement(u.Button,{type:"submit",bsStyle:"success",className:"pull-left"},i.default.createElement(f.Icon,{name:"search"})),i.default.createElement("div",{className:"query"},i.default.createElement(c.Input,{type:"text",ref:function(t){e.query=t},id:"search-field",name:"q",value:this.state.query,onChange:this._queryChanged,placeholder:'Type your search query here and press enter. ("not found" AND http) OR http_response_code:[400 TO 404]'}))))))))}});exports.default=S,e.exports=exports.default},"ONu/yDn/":function(e,exports,t){"use strict";var n=t("S1zvTXgn"),r=[],i=[],o=n.makeRequestCallFromTimer(function(){if(i.length)throw i.shift()});function a(e){var t;(t=r.length?r.pop():new s).task=e,n(t)}function s(){this.task=null}e.exports=a,s.prototype.call=function(){try{this.task.call()}catch(e){a.onerror?a.onerror(e):(i.push(e),o())}finally{this.task=null,r[r.length]=this}}},"OTqMhtr/":function(e,exports,t){e.exports=t.p+"2a546004f61ae167c4e9c5fc3fafb522.js"},OTxH4Ayd:function(e,exports,t){e.exports=t.p+"674f50d287a8c48dc19ba404d20fe713.eot"},OZDaeQRv:function(e,exports,t){(exports=e.exports=t("MAMP9hQI")(!1)).push([e.i,"._1Gnd93BIIJu0En1yACTVCv,._1it_vQIWbWWVJ4rTrsTjqT{float:right;margin-top:10px}._3VGKiPqR9u7uKzGX4i2ilR .header{font-size:14px;padding:10px 0;min-height:20px}._3VGKiPqR9u7uKzGX4i2ilR:not(._28CBcIp6YLlLvbxxCh0F26) .description{margin-left:20px}._3VGKiPqR9u7uKzGX4i2ilR .form-group{margin-bottom:0}._28CBcIp6YLlLvbxxCh0F26{margin-left:0}",""]),exports.locals={headerComponentsWrapper:"_1it_vQIWbWWVJ4rTrsTjqT",itemActionsWrapper:"_1Gnd93BIIJu0En1yACTVCv",itemWrapper:"_3VGKiPqR9u7uKzGX4i2ilR",itemWrapperStatic:"_28CBcIp6YLlLvbxxCh0F26"}},Oes6gym4:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=a(t("ii0bleBb")),r=a(t("ivGQtwpr")),i=t("os2pWP01"),o=a(t("B0I5DBk0"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(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})(e)}function l(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var f=(0,r.default)({displayName:"ColorPickerPopover",propTypes:{id:i.default.string.isRequired,placement:i.default.oneOf(["top","right","bottom","left"]),title:i.default.string,triggerNode:i.default.node.isRequired,triggerAction:i.default.oneOf(["click","hover","focus"]),onChange:i.default.func.isRequired},getDefaultProps:function(){return{placement:"bottom",triggerAction:"click",title:"Pick a color"}},handleChange:function(e,t){var n=this;this.props.onChange(e,t,function(){return n.overlay.hide()})},render:function(){var e=this,t=this.props,r=t.id,i=t.placement,l=t.title,f=t.triggerNode,d=t.triggerAction,p=c(t,["id","placement","title","triggerNode","triggerAction"]),h=n.default.createElement(o.Popover,{id:r,title:l,className:s.default.customPopover},n.default.createElement(a.default,u({},p,{onChange:this.handleChange})));return n.default.createElement(o.OverlayTrigger,{ref:function(t){e.overlay=t},trigger:d,placement:i,overlay:h,rootClose:!0},f)}});exports.default=f,e.exports=exports.default},OxqIY8AL:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("HnBp4QXq");exports.default=function(e){return function(){if(e.getMonitor().isDragging())return{type:n.PUBLISH_DRAG_SOURCE}}}},Oz9QmASc:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.H1=void 0;var n=c(t("ivGQtwpr")),r=u(t("ii0bleBb")),i=t("os2pWP01"),o=c(t("KX2Ezx4E")),a=t("tUPJ+u4I"),s=t("XrQdyzHl"),l=u(t("Rnnv3zzw"));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function f(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n body {\n background: url(",") no-repeat center center fixed;\n background-size: cover;\n }\n"]);return f=function(){return e},e}var d=(0,o.createGlobalStyle)(f(),l.default),p=(0,o.default)(i.Row).withConfig({displayName:"ErrorJumbotron__ContainerRow",componentId:"sc-1oiwb57-0"})(["height:82vh;"]),h=o.default.h1.withConfig({displayName:"ErrorJumbotron__H1",componentId:"sc-1oiwb57-2"})(["font-size:52px;margin-bottom:15px;"]);exports.H1=h;var m=function(e){var t,r=e.children,l=(0,s.useTheme)().colors,u=(t=l.primary.due,(0,n.useMemo)(function(){return(0,o.default)(i.Jumbotron).withConfig({displayName:"ErrorJumbotron",componentId:"sc-1oiwb57-1"})(["&&{background-color:",";text-align:center;}"],(0,a.rgba)(t,.8))},[t]));return n.default.createElement(p,null,n.default.createElement(d,null),n.default.createElement(i.Col,{mdOffset:2,md:8},n.default.createElement(u,null,r)))};m.propTypes={children:r.default.node.isRequired};var g=m;exports.default=g},P0nwbOdW:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=i(t("ii0bleBb")),r=i(t("ivGQtwpr"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:i.default.primary.tre,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.default.primary.due;return(0,r.readableColor)(e,t,n)};var n,r=t("tUPJ+u4I"),i=(n=t("vQSmUFCW"))&&n.__esModule?n:{default:n};e.exports=exports.default},PHWUskn4:function(e,exports,t){var n=t("REt7egjG"),r=t("2OyJXB+x"),i=t("ao+ziWVX"),o=t("Ai8uwR4r");e.exports=function(e,t){return(o(e)?n:i)(e,r(t,3))}},PIvmiIaU:function(e,exports,t){var n=t("wZCk8eAc"),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,i=n(t,e);return!(i<0)&&(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}},PK8ZLj9Z:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r=(n=t("ivGQtwpr"))&&n.__esModule?n:{default:n};var i={hasAttribute:function(e,t){return e.indexOf(t)>-1},optionalMarker:function(e){return e.is_optional&&"boolean"!==e.type?r.default.createElement("span",{className:"configuration-field-optional"},"(optional)"):null}};exports.default=i,e.exports=exports.default},PNF6DnrT:function(e,exports){e.exports=function(){}},"PV/MXHm+":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.variantColors=exports.bsStyles=exports.default=void 0;var n=i(t("CziT3Db8")),r=i(t("vQSmUFCW"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,i=r.map(function(t){return a({},t,{teinte:e(s[t],t)})});return n.default.variants("mode","bsStyle",Object.assign.apply(Object,[t].concat(o(i))))};exports.default=u},"PcYM+wZ7":function(e,exports,t){e.exports=t("jaIgFIJB")("./node_modules/create-react-class/index.js")},Pdd0sprV:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ButtonGroup",{enumerable:!0,get:function(){return n.ButtonGroup}}),Object.defineProperty(exports,"ButtonToolbar",{enumerable:!0,get:function(){return n.ButtonToolbar}}),Object.defineProperty(exports,"Clearfix",{enumerable:!0,get:function(){return n.Clearfix}}),Object.defineProperty(exports,"Checkbox",{enumerable:!0,get:function(){return n.Checkbox}}),Object.defineProperty(exports,"Col",{enumerable:!0,get:function(){return n.Col}}),Object.defineProperty(exports,"Collapse",{enumerable:!0,get:function(){return n.Collapse}}),Object.defineProperty(exports,"Dropdown",{enumerable:!0,get:function(){return n.Dropdown}}),Object.defineProperty(exports,"Form",{enumerable:!0,get:function(){return n.Form}}),Object.defineProperty(exports,"Grid",{enumerable:!0,get:function(){return n.Grid}}),Object.defineProperty(exports,"ListGroup",{enumerable:!0,get:function(){return n.ListGroup}}),Object.defineProperty(exports,"MenuItem",{enumerable:!0,get:function(){return n.MenuItem}}),Object.defineProperty(exports,"NavItem",{enumerable:!0,get:function(){return n.NavItem}}),Object.defineProperty(exports,"OverlayTrigger",{enumerable:!0,get:function(){return n.OverlayTrigger}}),Object.defineProperty(exports,"Pager",{enumerable:!0,get:function(){return n.Pager}}),Object.defineProperty(exports,"PanelGroup",{enumerable:!0,get:function(){return n.PanelGroup}}),Object.defineProperty(exports,"Radio",{enumerable:!0,get:function(){return n.Radio}}),Object.defineProperty(exports,"Row",{enumerable:!0,get:function(){return n.Row}}),Object.defineProperty(exports,"Tab",{enumerable:!0,get:function(){return n.Tab}});var n=t("4bh9nC3d")},PfQ9rIGA:function(e,exports,t){var n=t("z/HNFIk2"),r=t("VX7NnWTC"),i=t("4y+VVb9w"),o=i&&i.isSet,a=o?r(o):n;e.exports=a},PgL0jv4C:function(e,exports,t){e.exports=t.p+"3f1b3f641fe44a3ba5736eb1e85b381f.js"},"Pj/uG0OK":function(e,exports,t){e.exports=t.p+"2c22762fbe0b3195c131c0e5ac96a207.js"},PjrWv4IS:function(e,exports,t){var n=t("6tfh/myx"),r=t("wj7wmF19"),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),n(o(e),function(t){return i.call(e,t)}))}:r;e.exports=a},PmEppG8e:function(e,exports,t){"use strict";(function(n){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var r=v(t("ii0bleBb")),i=v(t("ivGQtwpr")),o=(v(t("vU3dbCc2")),v(t("Ept3tno1"))),a=v(t("fcmzsUuD")),s=v(t("zUaY8H/I")),l=v(t("umYlv8lo")),u=v(t("4N9gACfh")),c=v(t("NV2C8ebe")),f=v(t("Mcd/Xly4")),d=v(t("tCwVgAf4")),p=v(t("Q7GA7kux")),h=v(t("EuZeFsOO")),m=v(t("X5aBUarr")),g=v(t("nXSFNspX"));function v(e){return e&&e.__esModule?e:{default:e}}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){for(var n=0;n");return'
'.concat(a,"
").concat(s,"
")}),S(w(n),"_resizeVisualization",function(e,t){n.graph.width(e).height(t),n.triggerRender=!0}),S(w(n),"drawData",function(){n.graph.xUnits(function(){return Math.max(n.state.dataPoints.length-1,1)}),n.graphData.remove(),n.graphData.add(n.state.dataPoints),n.triggerRender?(n.graph.render(),n.triggerRender=!1):n.graph.redraw(),n.props.config.threshold&&n.renderThreshold()}),S(w(n),"renderThreshold",function(){var e=n.props.config.threshold,t=n.props.config.threshold_color||"#f00",r=n.props.config.threshold_tooltip||"threshold: ".concat(e);n.graph.on("renderlet.threshold",function(n){var i=[{x:n.x().range()[0],y:n.y()(e)},{x:n.x().range()[1],y:n.y()(e)}],o=l.default.svg.line().x(function(e){return e.x}).y(function(e){return e.y}).interpolate("linear"),a=n.select("g.chart-body"),u=a.selectAll("path.threshold").data([i]);u.attr("stroke",t).attr("d",o),u.enter().append("path").attr("class","threshold").attr("stroke",t).attr("stroke-width",1).attr("stroke-dasharray","2").attr("d",o),u.exit().remove();var f=n.data().reduce(function(e,t){return t.values.forEach(function(t){return e.push(t.x)}),e},[]),d=a.selectAll("circle.threshold").data(f);d.enter().append("circle").attr("class","threshold").attr("r",4).attr("rel","tooltip").attr("data-original-title",function(){return'
'.concat(c.default.escape(r),"
")}).style("stroke-opacity",1e-6).style("fill-opacity",1e-6).on("mousemove",function(){l.default.select(this).style("stroke-opacity",.8).style("fill-opacity",.8)}).on("mouseout",function(){l.default.select(this).style("stroke-opacity",1e-6).style("fill-opacity",1e-6)}),d.attr("cx",function(e){return s.default.utils.safeNumber(n.x()(e))}).attr("cy",function(){return s.default.utils.safeNumber(n.y()(e))}).attr("data-original-title",function(){return'
'.concat(r,"
")}).attr("fill",t),d.exit().remove()})}),S(w(n),"renderGraph",function(){var e=n._graph,t=n.props.interactive;n.graph=C.create(n.props.config,e,t,n._formatTooltipTitle),n.graph.width(n.props.width).height(n.props.height).margins({left:50,right:15,top:10,bottom:35}).dimension(n.dimension).group(n.group).x(l.default.time.scale()).elasticX(!0).elasticY(!0).renderHorizontalGridLines(!0).brushOn(!1).xAxisLabel("Time").yAxisLabel(n.props.config.field).renderTitle(!1).colors(p.default.glColourPalette()),n.graph.on("postRender",n.props.onRenderComplete),t&&(0,g.default)(e).tooltip({selector:'[rel="tooltip"]',container:"body",placement:"auto",delay:{show:300,hide:100},html:!0}),n.graph.xAxis().ticks(m.default.customTickInterval()).tickFormat(m.default.customDateTimeFormat()),n.graph.yAxis().ticks(3).tickFormat(function(e){return Math.abs(e)>1e30?e.toPrecision(1):l.default.format(".2s")(e)}),n.graph.render()}),n.triggerRender=!0,n.graphData=(0,a.default)(),n.dimension=n.graphData.dimension(function(e){return e.x}),n.group=n.dimension.group().reduceSum(function(e){return e.y}),n.state={dataPoints:[]},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(t,i["default"].Component),x(t,null,[{key:"getReadableFieldChartStatisticalFunction",value:function(e){switch(e){case"count":return"total";case"total":return"sum";default:return e}}}]),x(t,[{key:"componentDidMount",value:function(){this.disableTransitions=s.default.disableTransitions,s.default.disableTransitions=!this.props.interactive,this.renderGraph(),this._updateData(this.props.data,this.props.config,this.props.computationTimeRange)}},{key:"componentDidUpdate",value:function(){this.drawData()}},{key:"componentWillReceiveProps",value:function(e){(0,u.default)(this.props,e)||(e.height===this.props.height&&e.width===this.props.width||this._resizeVisualization(e.width,e.height),this._updateData(e.data,e.config,e.computationTimeRange))}},{key:"componentWillUnmount",value:function(){s.default.disableTransitions=this.disableTransitions}},{key:"render",value:function(){var e=this;return i.default.createElement("div",{ref:function(t){e._graph=t},id:"visualization-".concat(this.props.id),className:"graph ".concat(this.props.config.renderer)})}}]),t}();S(O,"propTypes",{id:r.default.string.isRequired,data:r.default.object.isRequired,config:r.default.object.isRequired,computationTimeRange:r.default.shape({from:r.default.string.isRequired,to:r.default.string.isRequired}).isRequired,height:r.default.number,width:r.default.number,interactive:r.default.bool,onRenderComplete:r.default.func}),S(O,"defaultProps",{interactive:!0,onRenderComplete:function(){}});var k=O;exports.default=k,e.exports=exports.default}).call(this,t("aY11sVfy"))},PoZw58Gy:function(e,exports,t){e.exports=t("jaIgFIJB")(88)},PpLtiLbc:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=f(t("ivGQtwpr")),r=f(t("PcYM+wZ7")),i=f(t("7wHi4ydR")),o=t("qwOa7NSh"),a=f(t("z/eN47+5")),s=t("os2pWP01"),l=f(t("a4RCL6F0")),u=t("qOZsORvD"),c=t("wkvtUUMm");function f(e){return e&&e.__esModule?e:{default:e}}var d=t("5mip0w5Y"),p=navigator.language.split(/[-_]/)[0];(0,o.addLocaleData)(d);var h={fr:a.default},m=(0,r.default)({displayName:"ImportListPage",getInitialState:function(){return{}},onSubmitUploadFile:function(e){var t=this;if(e.preventDefault(),this.refs.uploadedFile.files&&this.refs.uploadedFile.files[0]){var n=new FileReader;n.onload=function(e){t.setState({alertLists:JSON.parse(e.target.result)})},n.readAsText(this.refs.uploadedFile.files[0])}},isEmpty:function(e){return void 0===e||("function"==typeof e.count?0===e.count():0===e.length)},selectAllAlertLists:function(){var e=this;Object.keys(this.refs).forEach(function(t){0===t.indexOf("alertLists")&&(e.refs[t].checked=!0)})},formatAlertList:function(e){return n.default.createElement("div",{className:"checkbox",key:"alertList_checkbox-".concat(e.title)},n.default.createElement("label",{className:"checkbox"},n.default.createElement("input",{ref:"alertLists.".concat(e.title),type:"checkbox",name:"alertLists",id:"alertList_".concat(e.title),value:JSON.stringify(e)}),e.title),n.default.createElement("span",{className:"help-inline"},n.default.createElement(o.FormattedMessage,{id:"wizard.fieldDescription",defaultMessage:"Description"}),": ",n.default.createElement("tt",null,e.description)),n.default.createElement("span",{className:"help-inline"},n.default.createElement(o.FormattedMessage,{id:"wizard.fieldLists",defaultMessage:"Lists"}),": ",n.default.createElement("tt",null,e.lists)))},onSubmitApplyAlertLists:function(e){var t=this;e.preventDefault();var n=[];Object.keys(this.refs).forEach(function(e,r){0===e.indexOf("alertLists")&&!0===t.refs[e].checked&&n.push(JSON.parse(t.refs[e].value))}),l.default.importAlertLists(n)},render:function(){return n.default.createElement(o.IntlProvider,{locale:p,messages:h[p]},n.default.createElement(u.DocumentTitle,{title:"Import list"},n.default.createElement("div",null,n.default.createElement(u.PageHeader,{title:n.default.createElement(o.FormattedMessage,{id:"wizard.importWizardList",defaultMessage:"Wizard: Import lists"})},n.default.createElement("span",null,n.default.createElement(o.FormattedMessage,{id:"wizard.importLists",defaultMessage:"You can import a list."})),n.default.createElement("span",null,n.default.createElement(o.FormattedMessage,{id:"wizard.documentationlist",defaultMessage:"Read more about Wizard lists in the documentation."})),n.default.createElement("span",null,n.default.createElement(c.LinkContainer,{to:i.default.pluginRoute("WIZARD_LISTS")},n.default.createElement(s.Button,{bsStyle:"info"},n.default.createElement(o.FormattedMessage,{id:"wizard.backlist",defaultMessage:"Back to lists"})))," ")),n.default.createElement(s.Row,{className:"content"},n.default.createElement(s.Col,{md:12},n.default.createElement("form",{onSubmit:this.onSubmitUploadFile,className:"upload",encType:"multipart/form-data"},n.default.createElement("div",{className:"form-group"},n.default.createElement("input",{ref:"uploadedFile",type:"file",name:"bundle"})),n.default.createElement("button",{type:"submit",className:"btn btn-success"},n.default.createElement(o.FormattedMessage,{id:"wizard.upload",defaultMessage:"Upload"}))))),n.default.createElement(s.Row,{className:"content"},n.default.createElement(s.Col,{md:6},n.default.createElement("form",{className:"form-horizontal build-content-pack",onSubmit:this.onSubmitApplyAlertLists},n.default.createElement("div",{className:"form-group"},n.default.createElement(s.Col,{sm:2},n.default.createElement("label",{className:"control-label",htmlFor:"name"},n.default.createElement(o.FormattedMessage,{id:"wizard.alertsList",defaultMessage:"Lists"}))),n.default.createElement(s.Col,{sm:10},this.isEmpty(this.state.alertLists)?n.default.createElement("span",{className:"help-block help-standalone"},n.default.createElement(o.FormattedMessage,{id:"wizard.noAlertListsToExport",defaultMessage:"There is no list to import."})):n.default.createElement("span",null,n.default.createElement(s.Button,{className:"btn btn-sm btn-link select-all",onClick:this.selectAllAlertLists},n.default.createElement(o.FormattedMessage,{id:"wizard.selectAll",defaultMessage:"Select all"})),this.state.alertLists.map(this.formatAlertList)))),n.default.createElement("div",{className:"form-group"},n.default.createElement(s.Col,{smOffset:2,sm:10},n.default.createElement(s.Button,{bsStyle:"success",type:"submit"},n.default.createElement(o.FormattedMessage,{id:"wizard.applyLists",defaultMessage:"Apply lists"}))))))))))}});exports.default=m,e.exports=exports.default},"Q+OqJm0N":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r=(n=t("EuZeFsOO"))&&n.__esModule?n:{default:n};var i={getValueFromInput:function(e){switch(e.type){case"radio":var t=e.value;return"true"===t||"false"===t?"true"===t:t;case"checkbox":return e.checked;case"number":return""!==e.value&&r.default.isNumber(e.value)?Number(e.value):void 0;default:return e.value}}};exports.default=i,e.exports=exports.default},Q40fQOgd:function(e,exports,t){"use strict";var n=t("6Dga+r6p"),r=n.MissingAST,i=n.TermAST,o=n.TermWithFieldAST,a=n.ExpressionAST,s=n.ExpressionListAST,l=n.ModifierAST,u=function(){function e(){}return e.prototype.visit=function(e){if(null!==e)if(e instanceof s)this.visitExpressionListAST(e);else if(e instanceof a)this.visitExpressionAST(e);else if(e instanceof l)this.visitModifierAST(e);else if(e instanceof o)this.visitTermWithFieldAST(e);else if(e instanceof i)this.visitTermAST(e);else{if(!(e instanceof r))throw Error("Encountered AST of unknown type: "+JSON.stringify(e));this.visitMissingAST(e)}},e.prototype.visitMissingAST=function(e){},e.prototype.visitTermAST=function(e){},e.prototype.visitTermWithFieldAST=function(e){},e.prototype.visitModifierAST=function(e){},e.prototype.visitExpressionAST=function(e){},e.prototype.visitExpressionListAST=function(e){},e}();e.exports=u},Q7GA7kux:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r=(n=t("umYlv8lo"))&&n.__esModule?n:{default:n};var i={glColourPalette:function(){return r.default.scale.ordinal().range(["#16ACE3","#FBB040","#ED8EEF","#7CE255","#8DB3ED","#EAF253","#CED945","#EF8DB6","#D4A8ED","#F495D9"])},tooltipRenderlet:function(e,t,n){e.on("renderlet.tooltip",function(e){r.default.select(e.root()[0][0]).selectAll(t).attr("rel","tooltip").attr("data-original-title",n)})}};exports.default=i,e.exports=exports.default},QLhBnj4h:function(e){e.exports=JSON.parse('{"name":"AlertWizard","version":"3.2.5","description":"Graylog plugin AlertWizard Web Interface","repository":{"type":"git","url":"https://github.com/airbus-cyber/graylog-plugin-alert-wizard"},"scripts":{"build":"webpack --bail"},"keywords":["graylog"],"author":"Airbus CyberSecurity","license":"GPL-3.0","dependencies":{},"devDependencies":{"graylog-web-plugin":"file:../graylog2-server/graylog2-web-interface/packages/graylog-web-plugin","prop-types":"^15.7.2","react":"^16.8.6","react-confirm-alert":"^2.4.1","react-dom":"^16.8.6","react-intl":"^2.9.0","reflux":"^6.4.1","react-bootstrap":"^1.0.1","react-router-bootstrap":"^0.25.0","react-router-dom":"^4.3.1","react-addons-linked-state-mixin":"^15.6.2"},"resolutions":{"upath":"1.1.2"}}')},Qbc6c8lg:function(e,exports,t){e.exports=t("jaIgFIJB")(132)},Qf0Q7TmK:function(e,exports,t){var n=t("+UVuVHRt"),r=t("Zz5qLMgh"),i=t("2LGZhEqn");function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},QwEwHdCk:function(e,exports,t){var n=t("xp3VIIRX");e.exports=function(e){return n(e)?e:[]}},Qy45xoXf:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n={gl2ServerUrl:function(){return"undefined"!=typeof GRAYLOG_HTTP_PUBLISH_URI?GRAYLOG_HTTP_PUBLISH_URI:this.appConfig().gl2ServerUrl},gl2AppPathPrefix:function(){return this.appConfig().gl2AppPathPrefix},gl2DevMode:function(){return"undefined"!=typeof DEVELOPMENT&&DEVELOPMENT},isFeatureEnabled:function(e){return!1},rootTimeZone:function(){return this.appConfig().rootTimeZone},appConfig:function(){return window.appConfig||{}}};exports.default=n,e.exports=exports.default},QzfLCrdF:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ii0bleBb")),r=o(t("ivGQtwpr")),i=t("J6m01YZl");function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign||function(e){for(var t=1;t ./webpack/stats-$(git rev-parse --abbrev-ref HEAD).json","build:analyze":"yarn build:stats && webpack-bundle-analyzer ./webpack/stats-$(git rev-parse --abbrev-ref HEAD).json ./target/web/build --mode=\\"static\\" --report=\\"./webpack/analysis-$(git rev-parse --abbrev-ref HEAD).html\\"","lint":"eslint --ext js,jsx src","lint:path":"eslint --ext js,jsx","lint:changes":"./dev/lintChanges.sh","test":"jest","check-production-build":"node checkProductionBuild.js"},"jest":{"collectCoverageFrom":["src/**/*.{js,jsx,ts,tsx}"],"setupFiles":["jest-localstorage-mock","/test/setup-jest.jsx","/test/mock-FetchProvider.js"],"setupFilesAfterEnv":["jest-enzyme"],"moduleDirectories":["src","test","node_modules"],"moduleFileExtensions":["js","jsx","ts"],"moduleNameMapper":{"^file-loader!(.+)$":"$1","^!style/useable!.*\\\\.(css|less)$":"/test/css/useable-css-proxy.js","\\\\.(css|less)$":"identity-obj-proxy","c3":"/test/helpers/mocking/c3_mock.jsx","\\\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":"/test/fileMock.js"},"testPathIgnorePatterns":[".fixtures.js$"],"transform":{"^.+\\\\.jsx?$":"/node_modules/babel-jest","^.+\\\\.tsx?$":"/node_modules/ts-jest"}},"dependencies":{"bluebird":"^3.4.0","bootstrap":"^3.4.0","bson-objectid":"^1.2.5","c3":"^0.4.11-rc4","chroma-js":"^2.0.3","classnames":"^2.2.0","clipboard":"^2.0.0","crossfilter":"1.3.x","d3":"3.5.17","dc":"2.0.5","deep-equal":"^1.0.1","dompurify":"^2.0.11","font-awesome":"^4.7.0","graylog-web-plugin":"file:packages/graylog-web-plugin","immutable":"^3.8.1","interactjs":"^1.4.0-rc.13","javascript-natural-sort":"^0.7.1","jquery-ui":"1.12.x","leaflet":"^1.5.1","loadable-components":"^2.2.3","lodash":"^4.17.4","marked":"^1.0.0","md5":"^2.2.1","moment":"^2.24.0","moment-duration-format":"2.2.2","numeral":"^2.0.6","opensans-npm-webfont":"^1.0.0","plotly.js":"^1.52.2","polished":"^3.4.1","qs":"^6.3.0","react-ace-builds":"^7.2.4","react-color":"^2.14.0","react-day-picker":"^5.0.0","react-dnd":"^7.0.2","react-dnd-html5-backend":"^2.0.0","react-grid-layout":"^0.16.6","react-immutable-proptypes":"^2.1.0","react-isolated-scroll":"^0.1.1","react-leaflet":"^2.3.0","react-mops":"v2.0.0-beta.0","react-overlays":"^0.7.0","react-plotly.js":"^2.3.0","react-portal":"^4.2.0","react-resizable":"^1.8.0","react-rnd":"^10.1.1","react-select":"2.4.3","react-sizeme":"^2.6.7","react-sortable-hoc":"^1.7.1","react-window":"^1.8.2","rickshaw":"^1.5.1","sockjs-client":"1.1.x","superagent":"^3.4.3","superagent-bluebird-promise":"^4.1.0","terser-webpack-plugin":"^1.3.0","toastr":"^2.1.2","twix":"^1.1.4","typeahead.js":"^0.11.1","ua-parser-js":"^0.7.12","urijs":"^1.19.1","uuid":"^3.2.1"},"devDependencies":{"@babel/core":"^7.4.5","@babel/plugin-proposal-class-properties":"^7.4.4","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-transform-runtime":"^7.4.4","@babel/polyfill":"^7.0.0","@babel/preset-env":"^7.4.5","@babel/preset-flow":"^7.0.0","@babel/preset-react":"^7.0.0","@testing-library/dom":"^6.2.0","@testing-library/jest-dom":"^4.1.2","@testing-library/react":"^8.0.4","@types/bluebird":"^3.5.8","@types/jquery":"^3.3.30","@types/node":"^11.11.0","@types/sockjs-client":"^1.0.31","@types/toastr":"^2.1.34","@types/typeahead":"^0.11.29","assets-webpack-plugin":"^3.5.1","babel-core":"^7.0.0-0","babel-jest":"^24.8.0","babel-loader":"^8.0.2","babel-plugin-add-module-exports":"^1.0.2","babel-plugin-dynamic-import-node":"^2.2.0","babel-plugin-styled-components":"^1.10.6","clean-webpack-plugin":"^0.1.19","compression":"^1.7.2","connect-history-api-fallback":"^1.4.0","copy-webpack-plugin":"^4.5.1","cors":"^2.8.5","css-loader":"^0.28.10","enzyme":"3.10.0","enzyme-adapter-react-16":"^1.14.0","eslint-config-graylog":"file:packages/eslint-config-graylog","eslint-loader":"^1.6.3","estraverse-fb":"^1.3.1","express":"^4.16.4","extract-text-webpack-plugin":"^3.0.0","file-loader":"^1.1.11","flow-bin":"0.109.0","glob":"^7.0.0","html-webpack-plugin":"^3.2.0","identity-obj-proxy":"^3.0.0","jest":"^24.8.0","jest-environment-enzyme":"^7.0.1","jest-enzyme":"^7.0.2","jest-localstorage-mock":"^2.4.0","jest-styled-components":"^6.3.3","json-loader":"^0.5.3","less":"^3.0.1","less-loader":"^4.1.0","phantomjs-prebuilt":">=1.9","puppeteer":"^1.14.0","react-select-event":"^3.0.0","react-styleguidist":"^9.1.16","react-test-renderer":"^16.9.0","script-loader":"^0.7.0","style-loader":"^0.20.3","ts-jest":"^24.0.2","ts-loader":"^5.3.3","typescript":"^2.7.2","url-loader":"^1.0.1","webpack":"^4.39.3","webpack-bundle-analyzer":"^3.5.2","webpack-cli":"^3.3.9","webpack-dev-middleware":"^3.7.1","webpack-dev-server":"^3.8.0","webpack-hot-middleware":"^2.25.0","webpack-merge":"^4.2.2","yargs":"^10.0.3"},"resolutions":{"@types/jquery":"3.3.0","jquery":"3.4.1","upath":"1.0.5"}}')},"RHFj5/Pe":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=l(t("ivGQtwpr")),r=l(t("PcYM+wZ7")),i=l(t("ii0bleBb")),o=t("os2pWP01"),a=l(t("UO+uMgKU")),s=l(t("zIeLkFrZ"));function l(e){return e&&e.__esModule?e:{default:e}}var u=(0,r.default)({displayName:"ControlledTableList",propTypes:{children:i.default.node.isRequired},render:function(){var e,t=this.props.children;return e=0===t.length?n.default.createElement(s.default,null,"No items to display"):t,n.default.createElement("div",null,n.default.createElement(o.ListGroup,null,e))}});u.Header=a.default,u.Item=s.default;var c=u;exports.default=c,e.exports=exports.default},RMa3hR3V:function(e,exports,t){var n=t("4b8PWZxA"),r="object"==typeof self&&self&&self.Object===Object&&self,i=n||r||Function("return this")();e.exports=i},RNZ0AJ6u:function(e,exports,t){var n=t("wZCk8eAc");e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},RPVB9KNm:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ii0bleBb")),r=o(t("ivGQtwpr")),i=o(t("B0I5DBk0"));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e.small,n=e.children;return r.default.createElement("table",{className:"description-tooltips",style:{marginBottom:"10px"}},r.default.createElement("tbody",null,r.default.createElement("tr",null,r.default.createElement("td",{style:{width:"40px"}},r.default.createElement("span",{className:"fa-stack ".concat(!t&&"fa-lg")},r.default.createElement(i.default,{name:"circle",className:"fa-stack-2x"}),r.default.createElement(i.default,{name:"lightbulb-o",className:"fa-stack-1x",inverse:!0}))),r.default.createElement("td",null,r.default.createElement("strong",null,n)))))};a.propTypes={small:n.default.bool,children:n.default.node.isRequired},a.defaultProps={small:!1};var s=a;exports.default=s,e.exports=exports.default},RS5z4oPe:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=function(){function e(){this.isDisposed=!1}return e.prototype.getDisposable=function(){return this.current},e.prototype.setDisposable=function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}},e}();exports.SerialDisposable=n},RU6LZ3NM:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("ak+cODeF");exports.validateSourceContract=function(e){n("function"==typeof e.canDrag,"Expected canDrag to be a function."),n("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),n("function"==typeof e.endDrag,"Expected endDrag to be a function.")},exports.validateTargetContract=function(e){n("function"==typeof e.canDrop,"Expected canDrop to be a function."),n("function"==typeof e.hover,"Expected hover to be a function."),n("function"==typeof e.drop,"Expected beginDrag to be a function.")},exports.validateType=function e(t,r){r&&Array.isArray(t)?t.forEach(function(t){return e(t,!1)}):n("string"==typeof t||"symbol"==typeof t,r?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}},"RXv/mj1v":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=l(t("rJZCvzgl")),r=l(t("ivGQtwpr")),i=s(t("ii0bleBb")),o=s(t("ZhFGqF+H")),a=t("gAS90TDJ");function s(e){return e&&e.__esModule?e:{default:e}}function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function u(e){return(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})(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){for(var n=0;n0&&this.handleMarkers(E);for(var O=this.editor.$options,k=0;k0&&void 0!==arguments[0]?arguments[0]:[0,0,0,0];this.editor.renderer.setScrollMargins(e[0],e[1],e[2],e[3])}},{key:"componentWillUnmount",value:function(){this.editor.destroy(),this.editor=null}},{key:"onChange",value:function(e){if(this.props.onChange&&!this.silent){var t=this.editor.getValue();this.props.onChange(t,e)}}},{key:"onSelectionChange",value:function(e){if(this.props.onSelectionChange){var t=this.editor.getSelection();this.props.onSelectionChange(t,e)}}},{key:"onCursorChange",value:function(e){if(this.props.onCursorChange){var t=this.editor.getSelection();this.props.onCursorChange(t,e)}}},{key:"onInput",value:function(e){this.props.onInput&&this.props.onInput(e)}},{key:"onFocus",value:function(e){this.props.onFocus&&this.props.onFocus(e,this.editor)}},{key:"onBlur",value:function(e){this.props.onBlur&&this.props.onBlur(e,this.editor)}},{key:"onCopy",value:function(e){this.props.onCopy&&this.props.onCopy(e)}},{key:"onPaste",value:function(e){this.props.onPaste&&this.props.onPaste(e)}},{key:"onScroll",value:function(){this.props.onScroll&&this.props.onScroll(this.editor)}},{key:"handleOptions",value:function(e){for(var t=Object.keys(e.setOptions),n=0;n=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4==n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.onprogress=r.bind(null,"download"),t.upload&&(t.upload.onprogress=r.bind(null,"upload"))}catch(e){}try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],o=this._serializer||u.serialize[i?i.split(";")[0]:""];!o&&h(i)&&(o=u.serialize["application/json"]),o&&(n=o(n))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&t.setRequestHeader(a,this.header[a]);return this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0!==n?n:null),this},u.agent=function(){return new s},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){s.prototype[e.toLowerCase()]=function(t,n){var r=new u.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}),s.prototype.del=s.prototype.delete,u.get=function(e,t,n){var r=u("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},u.head=function(e,t,n){var r=u("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},u.options=function(e,t,n){var r=u("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},u.del=v,u.delete=v,u.patch=function(e,t,n){var r=u("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},u.post=function(e,t,n){var r=u("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},u.put=function(e,t,n){var r=u("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},Rs4VMraf:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=f(t("ii0bleBb")),r=f(t("ivGQtwpr")),i=t("os2pWP01"),o=f(t("H/eHg5XM")),a=f(t("7QAbkgSv")),s=f(t("1SPPmkhJ")),l=t("J6m01YZl"),u=f(t("h5C/8fsq")),c=f(t("UPkAWsT7"));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return(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})(e)}function p(e,t){for(var n=0;na){for(var t=0,n=i.length-o;t li > a,> li > .btn-link{color:",";&:hover,&:focus{color:",";background-color:transparent;}}> .active > a{&,&:hover,&:focus{color:",";background-color:",";}}> .disabled > a{&,&:hover,&:focus{color:",";background-color:transparent;}}> .open > a{&,&:hover,&:focus{color:",";background-color:",";}}@media (max-width:","){.open .dropdown-menu{> li > a,> li > .btn-link{color:",";&:hover,&:focus{color:",";background-color:transparent;}}> .active > a{&,&:hover,&:focus{color:",";background-color:",";}}> .disabled > a{&,&:hover,&:focus{color:",";background-color:transparent;}}}}}.navbar-toggle{border-color:",";&:hover,&:focus{background-color:",";}.icon-bar{background-color:",";}}.navbar-collapse,.navbar-form{border-color:",";}.navbar-link{color:",";&:hover{color:",";}}.btn-link{color:",";&:hover,&:focus{color:",";}&[disabled],fieldset[disabled] &{&:hover,&:focus{color:",";}}}}&.navbar-inverse{background-color:",";border-color:",";.navbar-brand{color:",";&:hover,&:focus{color:",";background-color:transparent;}}.navbar-text{color:",";}.navbar-nav{> li > a,> li > .btn-link{color:",";&:hover,&:focus{color:",";background-color:transparent;}}> .active > a{&,&:hover,&:focus{color:",";background-color:",";}}> .disabled > a{&,&:hover,&:focus{color:",";background-color:transparent;}}> .open > a{&,&:hover,&:focus{color:",";background-color:",";}}@media (max-width:","){.open .dropdown-menu{> .dropdown-header{border-color:",";}.divider{background-color:",";}> li > a,> li > .btn-link{color:",";&:hover,&:focus{color:",";background-color:transparent;}}> .active > a{&,&:hover,&:focus{color:",";background-color:",";}}> .disabled > a{&,&:hover,&:focus{color:",";background-color:transparent;}}}}}.navbar-toggle{border-color:",";&:hover,&:focus{background-color:",";}.icon-bar{background-color:",";}}.navbar-collapse,.navbar-form{border-color:",";}.navbar-link{color:",";&:hover{color:",";}}.btn-link{color:",";&:hover,&:focus{color:",";}&[disabled],fieldset[disabled] &{&:hover,&:focus{color:",";}}}}"],a.teinte.secondary.due,(0,o.darken)(.065,a.teinte.secondary.due),a.teinte.tertiary.uno,(0,o.darken)(.1,a.teinte.tertiary.uno),a.teinte.primary.tre,a.teinte.tertiary.uno,(0,o.darken)(.25,a.teinte.tertiary.uno),(0,o.darken)(.15,a.teinte.tertiary.uno),(0,o.darken)(.065,a.teinte.secondary.due),(0,o.darken)(.25,a.teinte.secondary.tre),(0,o.darken)(.15,a.teinte.tertiary.uno),(0,o.darken)(.065,a.teinte.secondary.due),a.breakpoint.max.sm,a.teinte.tertiary.uno,(0,o.darken)(.25,a.teinte.tertiary.uno),(0,o.darken)(.15,a.teinte.tertiary.uno),(0,o.darken)(.065,a.teinte.secondary.due),a.teinte.secondary.tre,a.teinte.secondary.tre,a.teinte.secondary.tre,(0,o.darken)(.25,a.teinte.secondary.tre),(0,o.darken)(.065,a.teinte.secondary.due),a.teinte.tertiary.uno,(0,o.darken)(.25,a.teinte.tertiary.uno),a.teinte.tertiary.uno,(0,o.darken)(.25,a.teinte.tertiary.uno),a.teinte.secondary.tre,a.teinte.primary.tre,(0,o.darken)(.15,a.teinte.primary.tre),(0,o.lighten)(.15,a.teinte.tertiary.uno),a.teinte.primary.due,(0,o.lighten)(.15,a.teinte.primary.tre),a.teinte.secondary.due,a.teinte.tertiary.due,a.teinte.primary.due,(0,o.lighten)(.2,a.teinte.primary.tre),(0,o.lighten)(.5,a.teinte.primary.tre),a.teinte.primary.due,(0,o.lighten)(.2,a.teinte.primary.tre),a.breakpoint.max.sm,(0,o.darken)(.1,a.teinte.primary.tre),(0,o.lighten)(.2,a.teinte.primary.tre),a.teinte.secondary.due,a.teinte.tertiary.due,a.teinte.primary.due,(0,o.lighten)(.2,a.teinte.primary.tre),(0,o.lighten)(.5,a.teinte.primary.tre),(0,o.lighten)(.35,a.teinte.primary.tre),(0,o.lighten)(.35,a.teinte.primary.tre),a.teinte.primary.due,(0,o.darken)(.07,a.teinte.primary.tre),(0,o.lighten)(.15,a.teinte.tertiary.uno),a.teinte.primary.due,(0,o.lighten)(.15,a.teinte.tertiary.uno),a.teinte.primary.due,(0,o.lighten)(.5,a.teinte.primary.tre));exports.default=s,e.exports=exports.default},S7IiCjF5:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=c(t("ivGQtwpr")),r=c(t("PcYM+wZ7")),i=c(t("4KF7VOU5")),o=c(t("KWzh15eC")),a=t("os2pWP01"),s=t("qOZsORvD"),l=c(t("7QAbkgSv")),u=c(t("1SPPmkhJ"));function c(e){return e&&e.__esModule?e:{default:e}}var f=l.default.getStore("Refresh"),d=u.default.getActions("Refresh"),p=(0,r.default)({displayName:"RefreshControls",mixins:[i.default.connect(f,"refresh")],INTERVAL_OPTIONS:{"1 Second":1,"2 Seconds":2,"5 Seconds":5,"10 Seconds":10,"30 Seconds":30,"1 Minute":60,"5 Minutes":300},_changeInterval:function(e){d.changeInterval(e),d.enable()},render:function(){var e=this,t=Object.keys(this.INTERVAL_OPTIONS).map(function(t){var r=1e3*e.INTERVAL_OPTIONS[t];return n.default.createElement(a.MenuItem,{key:"RefreshControls-".concat(t),onClick:function(){return e._changeInterval(r)}},t)}),r=o.default.duration(this.state.refresh.interval),i=r.asSeconds()<60?n.default.createElement("span",null,r.asSeconds()," ",n.default.createElement(s.Pluralize,{singular:"second",plural:"seconds",value:r.asSeconds()})):n.default.createElement("span",null,r.asMinutes()," ",n.default.createElement(s.Pluralize,{singular:"minute",plural:"minutes",value:r.asMinutes()})),l=n.default.createElement("span",null,"Update every ",i);return n.default.createElement(a.ButtonGroup,null,n.default.createElement(a.Button,{bsSize:"small",onClick:function(){return e.state.refresh.enabled?d.disable():d.enable()}},n.default.createElement(s.Icon,{name:this.state.refresh.enabled?"pause":"play"})),n.default.createElement(a.DropdownButton,{bsSize:"small",title:this.state.refresh.enabled?l:"Not updating",id:"refresh-options-dropdown"},t))}});exports.default=p,e.exports=exports.default},"S8PHH+Nm":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("03pz1GjU");exports.createDragDropManager=function(e,t,r){return new n.default(e,t,r)}},SH5plVwP:function(e,exports,t){e.exports=t.p+"854e874acc59377f7c8f9b522f72a821.js"},SIdPoB4K:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n={clone:function(e){return JSON.parse(JSON.stringify(e))},isEmpty:function(e){var t=Object.keys(e);return t&&0===t.length}};exports.default=n,e.exports=exports.default},"SJE+bKc0":function(e,t,n){"use strict";n.r(t);var r=n("8cmQSZtb");function i(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var o=n("uRLsxEc6"),a=n.n(o),s=n("ivGQtwpr"),l=n.n(s),u=n("ak+cODeF"),c=n.n(u);function f(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function d(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function p(e,t,n){var r=Object(s.useRef)(void 0!==e),i=Object(s.useState)(t),o=i[0],a=i[1],l=void 0!==e,u=r.current;return r.current=l,!l&&u&&o!==t&&a(t),[l?e:o,Object(s.useCallback)(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;iY?"next":"prev"),f&&K(!0),X(g||0));var Z=l.a.Children.toArray(L).filter(l.a.isValidElement).length,J=Object(s.useCallback)(function(e){if(!V){var t=Y-1;if(t<0){if(!k)return;t=Z-1}B.current="prev",v&&v(t,e)}},[V,Y,v,k,Z]),ee=_e(function(e){if(!V){var t=Y+1;if(t>=Z){if(!k)return;t=0}B.current="next",v&&v(t,e)}}),te=Object(s.useRef)();Object(s.useImperativeHandle)(t,function(){return{element:te.current,prev:J,next:ee}});var ne=_e(function(){!document.hidden&&function(e){if(!(e&&e.style&&e.parentNode&&e.parentNode.style))return!1;var t=getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"none"!==getComputedStyle(e.parentNode).display}(te.current)&&ee()}),re="next"===U?"left":"right";bt(function(){f||(b&&b(Y,re),y&&y(Y,re))},[Y]);var ie=z+"-item-"+U,ae=z+"-item-"+re,se=Object(s.useCallback)(function(e){le(e),b&&b(Y,re)},[b,Y,re]),ue=Object(s.useCallback)(function(){K(!1),y&&y(Y,re)},[y,Y,re]),ce=Object(s.useCallback)(function(e){if(x&&!/input|textarea/i.test(e.target.tagName))switch(e.key){case"ArrowLeft":return e.preventDefault(),void J(e);case"ArrowRight":return e.preventDefault(),void ee(e)}E&&E(e)},[x,E,J,ee]),fe=Object(s.useState)(!1),de=fe[0],pe=fe[1],he=Object(s.useCallback)(function(e){"hover"===S&&pe(!0),C&&C(e)},[S,C]),me=Object(s.useCallback)(function(e){pe(!1),O&&O(e)},[O]),ge=Object(s.useRef)(0),ve=Object(s.useRef)(0),be=Object(s.useState)(!1),ye=be[0],we=be[1],xe=xt(),Ee=Object(s.useCallback)(function(e){ge.current=e.touches[0].clientX,ve.current=0,M&&we(!0),A&&A(e)},[M,A]),Se=Object(s.useCallback)(function(e){e.touches&&e.touches.length>1?ve.current=0:ve.current=e.touches[0].clientX-ge.current,T&&T(e)},[T]),Ce=Object(s.useCallback)(function(e){if(M){var t=ve.current;if(Math.abs(t)<=Ot)return;t>0?J(e):ee(e)}xe.set(function(){we(!1)},w||void 0),P&&P(e)},[M,J,ee,xe,w,P]),Oe=null!=w&&!de&&!ye&&!V,ke=Object(s.useRef)();Object(s.useEffect)(function(){if(Oe)return ke.current=window.setInterval(document.visibilityState?ne:ee,w||void 0),function(){null!==ke.current&&clearInterval(ke.current)}},[Oe,ee,w,ne]);var Me=Object(s.useMemo)(function(){return m&&Array.from({length:Z},function(e,t){return function(e){v&&v(t,e)}})},[m,Z,v]);return l.a.createElement(u,Object(r.default)({ref:te},N,{onKeyDown:ce,onMouseOver:he,onMouseOut:me,onTouchStart:Ee,onTouchMove:Se,onTouchEnd:Ce,className:a()(I,z,f&&"slide",d&&z+"-fade")}),m&&l.a.createElement("ol",{className:z+"-indicators"},Ct(L,function(e,t){return l.a.createElement("li",{key:t,className:t===Y?"active":void 0,onClick:Me?Me[t]:void 0})})),l.a.createElement("div",{className:z+"-inner"},Ct(L,function(e,t){var n=t===Y;return f?l.a.createElement(oe,{in:n,onEnter:n?se:void 0,onEntered:n?ue:void 0,addEndListener:q},function(t){return l.a.cloneElement(e,{className:a()(e.props.className,n&&"entered"!==t&&ie,("entered"===t||"exiting"===t)&&"active",("entering"===t||"exiting"===t)&&ae)})}):l.a.cloneElement(e,{className:a()(e.props.className,n&&"active")})})),p&&l.a.createElement(l.a.Fragment,null,(k||0!==g)&&l.a.createElement(De,{className:z+"-control-prev",onClick:J},j,R&&l.a.createElement("span",{className:"sr-only"},R)),(k||g!==Z-1)&&l.a.createElement(De,{className:z+"-control-next",onClick:ee},D,F&&l.a.createElement("span",{className:"sr-only"},F))))});At.displayName="Carousel",At.propTypes=kt,At.defaultProps=Mt,At.Caption=Et,At.Item=St;var Tt=At,Pt=["xl","lg","md","sm","xs"],jt=l.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.className,s=e.as,u=void 0===s?"div":s,c=i(e,["bsPrefix","className","as"]),f=_(n,"col"),d=[],p=[];return Pt.forEach(function(e){var t,n,r,i=c[e];if(delete c[e],"object"==typeof i&&null!=i){var o=i.span;t=void 0===o||o,n=i.offset,r=i.order}else t=i;var a="xs"!==e?"-"+e:"";t&&d.push(!0===t?""+f+a:""+f+a+"-"+t),null!=r&&p.push("order"+a+"-"+r),null!=n&&p.push("offset"+a+"-"+n)}),d.length||d.push(f),l.a.createElement(u,Object(r.default)({},c,{ref:t,className:a.a.apply(void 0,[o].concat(d,p))}))});jt.displayName="Col";var Rt,Dt=jt;var Ft=Function.prototype.bind.call(Function.prototype.call,[].slice);function It(e,t){return Ft(e.querySelectorAll(t))}function Lt(e){var t=Object(s.useRef)(null);return Object(s.useEffect)(function(){t.current=e}),t.current}function Nt(){return Object(s.useState)(null)}function zt(){return Object(s.useReducer)(function(e){return!e},!1)[1]}var Bt=l.a.createContext(null);var Ht=function(e){var t=yt();return[e[0],Object(s.useCallback)(function(n){if(t())return e[1](n)},[t,e[1]])]};function Ut(e){return e.split("-")[0]}function $t(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Wt(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gt(e){return e instanceof Wt(e).Element||e instanceof Element}function qt(e){return e instanceof Wt(e).HTMLElement||e instanceof HTMLElement}function Vt(e,t){var n,r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if((n=r)instanceof Wt(n).ShadowRoot||n instanceof ShadowRoot){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Kt(e){return e?(e.nodeName||"").toLowerCase():null}function Qt(e){return Wt(e).getComputedStyle(e)}function Yt(e){return["table","td","th"].indexOf(Kt(e))>=0}function Xt(e){return((Gt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zt(e){return"html"===Kt(e)?e:e.assignedSlot||e.parentNode||e.host||Xt(e)}function Jt(e){if(!qt(e)||"fixed"===Qt(e).position)return null;var t=e.offsetParent;if(t){var n=Xt(t);if("body"===Kt(t)&&"static"===Qt(t).position&&"static"!==Qt(n).position)return n}return t}function en(e){for(var t=Wt(e),n=Jt(e);n&&Yt(n)&&"static"===Qt(n).position;)n=Jt(n);return n&&"body"===Kt(n)&&"static"===Qt(n).position?t:n||function(e){for(var t=Zt(e);qt(t)&&["html","body"].indexOf(Kt(t))<0;){var n=Qt(t);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return t;t=t.parentNode}return null}(e)||t}function tn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nn(e,t,n){return Math.max(e,Math.min(t,n))}function rn(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function on(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var an="top",sn="bottom",ln="right",un="left",cn="auto",fn=[an,sn,ln,un],dn="start",pn="end",hn="clippingParents",mn="viewport",gn="popper",vn="reference",bn=fn.reduce(function(e,t){return e.concat([t+"-"+dn,t+"-"+pn])},[]),yn=[].concat(fn,[cn]).reduce(function(e,t){return e.concat([t,t+"-"+dn,t+"-"+pn])},[]),wn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];var _n={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Ut(n.placement),s=tn(a),l=[un,ln].indexOf(a)>=0?"height":"width";if(i&&o){var u=n.modifiersData[r+"#persistent"].padding,c=$t(i),f="y"===s?an:un,d="y"===s?sn:ln,p=n.rects.reference[l]+n.rects.reference[s]-o[s]-n.rects.popper[l],h=o[s]-n.rects.reference[s],m=en(i),g=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,v=p/2-h/2,b=u[f],y=g-c[l]-u[d],w=g/2-c[l]/2+v,_=nn(b,w,y),x=s;n.modifiersData[r]=((t={})[x]=_,t.centerOffset=_-w,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,i=n.element,o=void 0===i?"[data-popper-arrow]":i,a=n.padding,s=void 0===a?0:a;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Vt(t.elements.popper,o)&&(t.elements.arrow=o,t.modifiersData[r+"#persistent"]={padding:rn("number"!=typeof s?s:on(s,fn))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},xn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function En(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.offsets,a=e.position,s=e.gpuAcceleration,l=e.adaptive,u=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(o),c=u.x,f=u.y,d=o.hasOwnProperty("x"),p=o.hasOwnProperty("y"),h=un,m=an,g=window;if(l){var v=en(n);v===Wt(n)&&(v=Xt(n)),i===an&&(m=sn,f-=v.clientHeight-r.height,f*=s?1:-1),i===un&&(h=ln,c-=v.clientWidth-r.width,c*=s?1:-1)}var b,y=Object.assign({position:a},l&&xn);return s?Object.assign(Object.assign({},y),{},((b={})[m]=p?"0":"",b[h]=d?"0":"",b.transform=(g.devicePixelRatio||1)<2?"translate("+c+"px, "+f+"px)":"translate3d("+c+"px, "+f+"px, 0)",b)):Object.assign(Object.assign({},y),{},((t={})[m]=p?f+"px":"",t[h]=d?c+"px":"",t.transform="",t))}var Sn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s={placement:Ut(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),En(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),En(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},Cn={passive:!0};var On={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=Wt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(e){e.addEventListener("scroll",n.update,Cn)}),s&&l.addEventListener("resize",n.update,Cn),function(){o&&u.forEach(function(e){e.removeEventListener("scroll",n.update,Cn)}),s&&l.removeEventListener("resize",n.update,Cn)}},data:{}},kn={left:"right",right:"left",bottom:"top",top:"bottom"};function Mn(e){return e.replace(/left|right|bottom|top/g,function(e){return kn[e]})}var An={start:"end",end:"start"};function Tn(e){return e.replace(/start|end/g,function(e){return An[e]})}function Pn(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function jn(e){var t=Wt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Rn(e){return Pn(Xt(e)).left+jn(e).scrollLeft}function Dn(e){var t=Qt(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Fn(e,t){void 0===t&&(t=[]);var n=function e(t){return["html","body","#document"].indexOf(Kt(t))>=0?t.ownerDocument.body:qt(t)&&Dn(t)?t:e(Zt(t))}(e),r="body"===Kt(n),i=Wt(n),o=r?[i].concat(i.visualViewport||[],Dn(n)?n:[]):n,a=t.concat(o);return r?a:a.concat(Fn(Zt(o)))}function In(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ln(e,t){return t===mn?In(function(e){var t=Wt(e),n=Xt(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+Rn(e),y:s}}(e)):qt(t)?function(e){var t=Pn(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):In(function(e){var t=Xt(e),n=jn(e),r=e.ownerDocument.body,i=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+Rn(e),s=-n.scrollTop;return"rtl"===Qt(r||t).direction&&(a+=Math.max(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:s}}(Xt(e)))}function Nn(e,t,n){var r="clippingParents"===t?function(e){var t=Fn(Zt(e)),n=["absolute","fixed"].indexOf(Qt(e).position)>=0&&qt(e)?en(e):e;return Gt(n)?t.filter(function(e){return Gt(e)&&Vt(e,n)&&"body"!==Kt(e)}):[]}(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(t,n){var r=Ln(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t},Ln(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function zn(e){return e.split("-")[1]}function Bn(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Ut(i):null,a=i?zn(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case an:t={x:s,y:n.y-r.height};break;case sn:t={x:s,y:n.y+n.height};break;case ln:t={x:n.x+n.width,y:l};break;case un:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?tn(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case dn:t[u]=Math.floor(t[u])-Math.floor(n[c]/2-r[c]/2);break;case pn:t[u]=Math.floor(t[u])+Math.ceil(n[c]/2-r[c]/2)}}return t}function Hn(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.boundary,a=void 0===o?hn:o,s=n.rootBoundary,l=void 0===s?mn:s,u=n.elementContext,c=void 0===u?gn:u,f=n.altBoundary,d=void 0!==f&&f,p=n.padding,h=void 0===p?0:p,m=rn("number"!=typeof h?h:on(h,fn)),g=c===gn?vn:gn,v=e.elements.reference,b=e.rects.popper,y=e.elements[d?g:c],w=Nn(Gt(y)?y:y.contextElement||Xt(e.elements.popper),a,l),_=Pn(v),x=Bn({reference:_,element:b,strategy:"absolute",placement:i}),E=In(Object.assign(Object.assign({},b),x)),S=c===gn?E:_,C={top:w.top-S.top+m.top,bottom:S.bottom-w.bottom+m.bottom,left:w.left-S.left+m.left,right:S.right-w.right+m.right},O=e.modifiersData.offset;if(c===gn&&O){var k=O[i];Object.keys(C).forEach(function(e){var t=[ln,sn].indexOf(e)>=0?1:-1,n=[an,sn].indexOf(e)>=0?"y":"x";C[e]+=k[n]*t})}return C}var Un={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Ut(g),b=l||(v===g||!h?[Mn(g)]:function(e){if(Ut(e)===cn)return[];var t=Mn(e);return[Tn(e),t,Tn(t)]}(g)),y=[g].concat(b).reduce(function(e,n){return e.concat(Ut(n)===cn?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?yn:l,c=zn(r),f=c?s?bn:bn.filter(function(e){return zn(e)===c}):fn,d=f.filter(function(e){return u.indexOf(e)>=0});0===d.length&&(d=f);var p=d.reduce(function(t,n){return t[n]=Hn(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[Ut(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,_=t.rects.popper,x=new Map,E=!0,S=y[0],C=0;C=0,T=A?"width":"height",P=Hn(t,{placement:O,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),j=A?M?ln:un:M?sn:an;w[T]>_[T]&&(j=Mn(j));var R=Mn(j),D=[];if(o&&D.push(P[k]<=0),s&&D.push(P[j]<=0,P[R]<=0),D.every(function(e){return e})){S=O,E=!1;break}x.set(O,D)}if(E)for(var F=function(e){var t=y.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},I=h?3:1;I>0;I--){if("break"===F(I))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function $n(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Wn(e){return[an,ln,sn,un].some(function(t){return e[t]>=0})}var Gn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Hn(t,{elementContext:"reference"}),s=Hn(t,{altBoundary:!0}),l=$n(a,r),u=$n(s,i,o),c=Wn(l),f=Wn(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":c,"data-popper-escaped":f})}};var qn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=yn.reduce(function(e,n){return e[n]=function(e,t,n){var r=Ut(e),i=[un,an].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign(Object.assign({},t),{},{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[un,ln].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e},{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var Vn={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Bn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Kn={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,g=Hn(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),v=Ut(t.placement),b=zn(t.placement),y=!b,w=tn(v),_="x"===w?"y":"x",x=t.modifiersData.popperOffsets,E=t.rects.reference,S=t.rects.popper,C="function"==typeof m?m(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):m,O={x:0,y:0};if(x){if(o){var k="y"===w?an:un,M="y"===w?sn:ln,A="y"===w?"height":"width",T=x[w],P=x[w]+g[k],j=x[w]-g[M],R=p?-S[A]/2:0,D=b===dn?E[A]:S[A],F=b===dn?-S[A]:-E[A],I=t.elements.arrow,L=p&&I?$t(I):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=N[k],B=N[M],H=nn(0,E[A],L[A]),U=y?E[A]/2-R-H-z-C:D-H-z-C,W=y?-E[A]/2+R+H+B+C:F+H+B+C,G=t.elements.arrow&&en(t.elements.arrow),q=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,V=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,K=x[w]+U-V-q,Q=x[w]+W-V,Y=nn(p?Math.min(P,K):P,T,p?Math.max(j,Q):j);x[w]=Y,O[w]=Y-T}if(s){var X="x"===w?an:un,Z="x"===w?sn:ln,J=x[_],ee=nn(J+g[X],J,J-g[Z]);x[_]=ee,O[_]=ee-J}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function Qn(e,t,n){void 0===n&&(n=!1);var r,i,o=Xt(t),a=Pn(e),s=qt(t),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(s||!s&&!n)&&(("body"!==Kt(t)||Dn(o))&&(l=(r=t)!==Wt(r)&&qt(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:jn(r)),qt(t)?((u=Pn(t)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Rn(o))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function Yn(e){var t=new Map,n=new Set,r=[];return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||function e(i){n.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach(function(r){if(!n.has(r)){var i=t.get(r);i&&e(i)}}),r.push(i)}(e)}),r}var Xn={placement:"bottom",modifiers:[],strategy:"absolute"};function Zn(){for(var e=arguments.length,t=new Array(e),n=0;n *":a,c=e.focusFirstItemOnShow,f=e.children,d=zt(),h=p(i,r,o),m=h[0],g=h[1],v=Nt(),b=v[0],y=v[1],w=Object(s.useRef)(null),_=w.current,x=Object(s.useCallback)(function(e){w.current=e,d()},[d]),E=Lt(m),S=Object(s.useRef)(null),C=Object(s.useRef)(!1),O=Object(s.useCallback)(function(e){g(!m,e)},[g,m]),k=Object(s.useMemo)(function(){return{toggle:O,drop:t,show:m,alignEnd:n,menuElement:_,toggleElement:b,setMenu:x,setToggle:y}},[O,t,m,n,_,b,x,y]);_&&E&&!m&&(C.current=_.contains(document.activeElement));var M=_e(function(){b&&b.focus&&b.focus()}),A=_e(function(){var e=S.current,t=c;if(null==t&&(t=!(!w.current||!function(e,t){if(!Rt){var n=document.body,r=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;Rt=function(e,t){return r.call(e,t)}}return Rt(e,t)}(w.current,"[role=menu]"))&&"keyboard"),!1!==t&&("keyboard"!==t||/^key.+$/.test(e))){var n=It(w.current,u)[0];n&&n.focus&&n.focus()}});Object(s.useEffect)(function(){m?A():C.current&&(C.current=!1,M())},[m,C,M,A]),Object(s.useEffect)(function(){S.current=null});var T=function(e,t){if(!w.current)return null;var n=It(w.current,u),r=n.indexOf(e)+t;return n[r=Math.max(0,Math.min(r,n.length))]};return l.a.createElement(Bt.Provider,{value:k},f({props:{onKeyDown:function(e){var t=e.key,n=e.target;if(!/input|textarea/i.test(n.tagName)||!(" "===t||"Escape"!==t&&w.current&&w.current.contains(n)))switch(S.current=e.type,t){case"ArrowUp":var r=T(n,-1);return r&&r.focus&&r.focus(),void e.preventDefault();case"ArrowDown":if(e.preventDefault(),m){var i=T(n,1);i&&i.focus&&i.focus()}else O(e);return;case"Escape":case"Tab":g(!1,e)}}}}))}Mr.displayName="ReactOverlaysDropdown",Mr.propTypes=kr,Mr.Menu=_r,Mr.Toggle=Or;var Ar=Mr,Tr=l.a.createContext(null);Tr.displayName="NavContext";var Pr=Tr,jr={as:De,disabled:!1},Rr=l.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.className,u=e.children,c=e.eventKey,f=e.disabled,d=e.href,p=e.onClick,h=e.onSelect,m=e.active,g=e.as,v=i(e,["bsPrefix","className","children","eventKey","disabled","href","onClick","onSelect","active","as"]),b=_(n,"dropdown-item"),y=Object(s.useContext)(C),w=(Object(s.useContext)(Pr)||{}).activeKey,x=S(c||null,d),E=null==m&&null!=x?S(w)===x:m,O=_e(function(e){f||(p&&p(e),y&&y(x,e),h&&h(x,e))});return l.a.createElement(g,Object(r.default)({},v,{ref:t,href:d,disabled:f,className:a()(o,b,E&&"active",f&&"disabled"),onClick:O}),u)});Rr.displayName="DropdownItem",Rr.defaultProps=jr;var Dr=Rr,Fr=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e};var Ir=function(e,t){return Object(s.useMemo)(function(){return function(e,t){var n=Fr(e),r=Fr(t);return function(e){n&&n(e),r&&r(e)}}(e,t)},[e,t])},Lr=l.a.createContext(null);Lr.displayName="NavbarContext";var Nr=Lr;function zr(e,t){return e}function Br(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}function Hr(e){var t=window.getComputedStyle(e);return{top:parseFloat(t.marginTop)||0,right:parseFloat(t.marginRight)||0,bottom:parseFloat(t.marginBottom)||0,left:parseFloat(t.marginLeft)||0}}function Ur(){var e=Object(s.useRef)(null),t=Object(s.useRef)(null);return[Object(s.useCallback)(function(n){n&&(Br(n,"popover")||Br(n,"dropdown-menu"))&&(t.current=Hr(n),n.style.margin="0",e.current=n)},[]),[Object(s.useMemo)(function(){return{name:"offset",options:{offset:function(e){var n=e.placement;if(!t.current)return[0,0];var r=t.current,i=r.top,o=r.left,a=r.bottom,s=r.right;switch(n.split("-")[0]){case"top":return[0,a];case"left":return[0,s];case"bottom":return[0,i];case"right":return[0,o];default:return[0,0]}}}}},[t]),Object(s.useMemo)(function(){return{name:"popoverArrowMargins",enabled:!0,phase:"main",requiresIfExists:["arrow"],effect:function(t){var n=t.state;if(e.current&&n.elements.arrow&&Br(e.current,"popover")&&n.modifiersData["arrow#persistent"]){var r=Hr(n.elements.arrow),i=r.top,o=r.right,a=i||o;return n.modifiersData["arrow#persistent"].padding={top:a,left:a,right:a,bottom:a},n.elements.arrow.style.margin="0",function(){n.elements.arrow&&(n.elements.arrow.style.margin="")}}}}},[])]]}var $r=l.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.className,u=e.alignRight,c=e.rootCloseEvent,f=e.flip,d=e.show,p=e.renderOnMount,h=e.as,m=void 0===h?"div":h,g=e.popperConfig,v=i(e,["bsPrefix","className","alignRight","rootCloseEvent","flip","show","renderOnMount","as","popperConfig"]),b=Object(s.useContext)(Nr),y=_(n,"dropdown-menu"),w=Ur(),x=w[0],E=w[1],S=br({flip:f,rootCloseEvent:c,show:d,alignEnd:u,usePopper:!b,popperConfig:Object(r.default)({},g,{modifiers:E.concat((null==g?void 0:g.modifiers)||[])})}),C=S.hasShown,O=S.placement,k=S.show,M=S.alignEnd,A=S.close,T=S.props;return T.ref=Ir(x,Ir(zr(t),T.ref)),C||p?("string"!=typeof m&&(T.show=k,T.close=A,T.alignRight=M),O&&(v.style=Object(r.default)({},v.style,{},T.style),v["x-placement"]=O),l.a.createElement(m,Object(r.default)({},v,T,{className:a()(o,y,k&&"show",M&&y+"-right")}))):null});$r.displayName="DropdownMenu",$r.defaultProps={alignRight:!1,flip:!0};var Wr=$r,Gr=(n("GlZmcByr"),l.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.split,s=e.className,u=e.children,c=e.childBsPrefix,f=e.as,d=void 0===f?Ke:f,p=i(e,["bsPrefix","split","className","children","childBsPrefix","as"]),h=_(n,"dropdown-toggle");void 0!==c&&(p.bsPrefix=c);var m=Er(),g=m[0],v=m[1].toggle;return g.ref=Ir(g.ref,zr(t)),l.a.createElement(d,Object(r.default)({onClick:v,className:a()(s,h,o&&h+"-split")},g,p),u)}));Gr.displayName="DropdownToggle";var qr=Gr,Vr=Pe("dropdown-header",{defaultProps:{role:"heading"}}),Kr=Pe("dropdown-divider",{defaultProps:{role:"separator"}}),Qr=Pe("dropdown-item-text",{Component:"span"}),Yr=l.a.forwardRef(function(e,t){var n=h(e,{show:"onToggle"}),o=n.bsPrefix,u=n.drop,c=n.show,f=n.className,d=n.alignRight,p=n.onSelect,m=n.onToggle,g=n.focusFirstItemOnShow,v=n.as,b=void 0===v?"div":v,y=(n.navbar,i(n,["bsPrefix","drop","show","className","alignRight","onSelect","onToggle","focusFirstItemOnShow","as","navbar"])),w=Object(s.useContext)(C),x=_(o,"dropdown"),E=_e(function(e,t,n){void 0===n&&(n=t.type),t.currentTarget===document&&(n="rootClose"),m&&m(e,t,{source:n})}),S=_e(function(e,t){w&&w(e,t),p&&p(e,t),E(!1,t,"select")});return l.a.createElement(C.Provider,{value:S},l.a.createElement(Ar,{drop:u,show:c,alignEnd:d,onToggle:E,focusFirstItemOnShow:g,itemSelector:"."+x+"-item:not(.disabled):not(:disabled)"},function(e){var n=e.props;return l.a.createElement(b,Object(r.default)({},y,n,{ref:t,className:a()(f,c&&"show",(!u||"down"===u)&&x,"up"===u&&"dropup","right"===u&&"dropright","left"===u&&"dropleft")}))}))});Yr.displayName="Dropdown",Yr.defaultProps={navbar:!1},Yr.Divider=Kr,Yr.Header=Vr,Yr.Item=Dr,Yr.ItemText=Qr,Yr.Menu=Wr,Yr.Toggle=qr;var Xr=Yr,Zr={id:K.a.any,href:K.a.string,onClick:K.a.func,title:K.a.node.isRequired,disabled:K.a.bool,menuRole:K.a.string,renderMenuOnMount:K.a.bool,rootCloseEvent:K.a.string,bsPrefix:K.a.string,variant:K.a.string,size:K.a.string},Jr=l.a.forwardRef(function(e,t){var n=e.title,o=e.children,a=e.bsPrefix,s=e.rootCloseEvent,u=e.variant,c=e.size,f=e.menuRole,d=e.renderMenuOnMount,p=e.disabled,h=e.href,m=e.id,g=i(e,["title","children","bsPrefix","rootCloseEvent","variant","size","menuRole","renderMenuOnMount","disabled","href","id"]);return l.a.createElement(Xr,Object(r.default)({ref:t},g),l.a.createElement(qr,{id:m,href:h,size:c,variant:u,disabled:p,childBsPrefix:a},n),l.a.createElement(Wr,{role:f,renderOnMount:d,rootCloseEvent:s},o))});Jr.displayName="DropdownButton",Jr.propTypes=Zr;var ei=Jr,ti=(n("3NUYA+QN"),{type:K.a.string,tooltip:K.a.bool,as:K.a.elementType}),ni=l.a.forwardRef(function(e,t){var n=e.as,o=void 0===n?"div":n,s=e.className,u=e.type,c=void 0===u?"valid":u,f=e.tooltip,d=void 0!==f&&f,p=i(e,["as","className","type","tooltip"]);return l.a.createElement(o,Object(r.default)({},p,{ref:t,className:a()(s,c+"-"+(d?"tooltip":"feedback"))}))});ni.displayName="Feedback",ni.propTypes=ti;var ri=ni,ii=l.a.createContext({controlId:void 0}),oi=l.a.forwardRef(function(e,t){var n=e.id,o=e.bsPrefix,u=e.bsCustomPrefix,c=e.className,f=e.type,d=void 0===f?"checkbox":f,p=e.isValid,h=void 0!==p&&p,m=e.isInvalid,g=void 0!==m&&m,v=e.isStatic,b=e.as,y=void 0===b?"input":b,w=i(e,["id","bsPrefix","bsCustomPrefix","className","type","isValid","isInvalid","isStatic","as"]),x=Object(s.useContext)(ii),E=x.controlId,S=x.custom?[u,"custom-control-input"]:[o,"form-check-input"];return o=_(S[0],S[1]),l.a.createElement(y,Object(r.default)({},w,{ref:t,type:d,id:n||E,className:a()(c,o,h&&"is-valid",g&&"is-invalid",v&&"position-static")}))});oi.displayName="FormCheckInput";var ai=oi,si=l.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.bsCustomPrefix,u=e.className,c=e.htmlFor,f=i(e,["bsPrefix","bsCustomPrefix","className","htmlFor"]),d=Object(s.useContext)(ii),p=d.controlId,h=d.custom?[o,"custom-control-label"]:[n,"form-check-label"];return n=_(h[0],h[1]),l.a.createElement("label",Object(r.default)({},f,{ref:t,htmlFor:c||p,className:a()(u,n)}))});si.displayName="FormCheckLabel";var li=si,ui=l.a.forwardRef(function(e,t){var n=e.id,o=e.bsPrefix,u=e.bsCustomPrefix,c=e.inline,f=void 0!==c&&c,d=e.disabled,p=void 0!==d&&d,h=e.isValid,m=void 0!==h&&h,g=e.isInvalid,v=void 0!==g&&g,b=e.feedbackTooltip,y=void 0!==b&&b,w=e.feedback,x=e.className,E=e.style,S=e.title,C=void 0===S?"":S,O=e.type,k=void 0===O?"checkbox":O,M=e.label,A=e.children,T=e.custom,P=e.as,j=void 0===P?"input":P,R=i(e,["id","bsPrefix","bsCustomPrefix","inline","disabled","isValid","isInvalid","feedbackTooltip","feedback","className","style","title","type","label","children","custom","as"]),D="switch"===k||T,F=D?[u,"custom-control"]:[o,"form-check"];o=_(F[0],F[1]);var I=Object(s.useContext)(ii).controlId,L=Object(s.useMemo)(function(){return{controlId:n||I,custom:D}},[I,D,n]),N=null!=M&&!1!==M&&!A,z=l.a.createElement(ai,Object(r.default)({},R,{type:"switch"===k?"checkbox":k,ref:t,isValid:m,isInvalid:v,isStatic:!N,disabled:p,as:j}));return l.a.createElement(ii.Provider,{value:L},l.a.createElement("div",{style:E,className:a()(x,o,D&&"custom-"+k,f&&o+"-inline")},A||l.a.createElement(l.a.Fragment,null,z,N&&l.a.createElement(li,{title:C},M),(m||v)&&l.a.createElement(ri,{type:m?"valid":"invalid",tooltip:y},w))))});ui.displayName="FormCheck",ui.Input=ai,ui.Label=li;var ci=ui,fi=l.a.forwardRef(function(e,t){var n=e.id,o=e.bsPrefix,u=e.bsCustomPrefix,c=e.className,f=e.isValid,d=e.isInvalid,p=e.lang,h=e.as,m=void 0===h?"input":h,g=i(e,["id","bsPrefix","bsCustomPrefix","className","isValid","isInvalid","lang","as"]),v=Object(s.useContext)(ii),b=v.controlId,y=v.custom?[u,"custom-file-input"]:[o,"form-control-file"];return o=_(y[0],y[1]),l.a.createElement(m,Object(r.default)({},g,{ref:t,id:n||b,type:"file",lang:p,className:a()(c,o,f&&"is-valid",d&&"is-invalid")}))});fi.displayName="FormFileInput";var di=fi,pi=l.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.bsCustomPrefix,u=e.className,c=e.htmlFor,f=i(e,["bsPrefix","bsCustomPrefix","className","htmlFor"]),d=Object(s.useContext)(ii),p=d.controlId,h=d.custom?[o,"custom-file-label"]:[n,"form-file-label"];return n=_(h[0],h[1]),l.a.createElement("label",Object(r.default)({},f,{ref:t,htmlFor:c||p,className:a()(u,n),"data-browse":f["data-browse"]}))});pi.displayName="FormFileLabel";var hi=pi,mi=l.a.forwardRef(function(e,t){var n=e.id,o=e.bsPrefix,u=e.bsCustomPrefix,c=e.disabled,f=void 0!==c&&c,d=e.isValid,p=void 0!==d&&d,h=e.isInvalid,m=void 0!==h&&h,g=e.feedbackTooltip,v=void 0!==g&&g,b=e.feedback,y=e.className,w=e.style,x=e.label,E=e.children,S=e.custom,C=e.lang,O=e["data-browse"],k=e.as,M=void 0===k?"div":k,A=e.inputAs,T=void 0===A?"input":A,P=i(e,["id","bsPrefix","bsCustomPrefix","disabled","isValid","isInvalid","feedbackTooltip","feedback","className","style","label","children","custom","lang","data-browse","as","inputAs"]),j=S?[u,"custom"]:[o,"form-file"];o=_(j[0],j[1]);var R=Object(s.useContext)(ii).controlId,D=Object(s.useMemo)(function(){return{controlId:n||R,custom:S}},[R,S,n]),F=null!=x&&!1!==x&&!E,I=l.a.createElement(di,Object(r.default)({},P,{ref:t,isValid:p,isInvalid:m,disabled:f,as:T,lang:C}));return l.a.createElement(ii.Provider,{value:D},l.a.createElement(M,{style:w,className:a()(y,o,S&&"custom-file")},E||l.a.createElement(l.a.Fragment,null,S?l.a.createElement(l.a.Fragment,null,I,F&&l.a.createElement(hi,{"data-browse":O},x)):l.a.createElement(l.a.Fragment,null,F&&l.a.createElement(hi,null,x),I),(p||m)&&l.a.createElement(ri,{type:p?"valid":"invalid",tooltip:v},b))))});mi.displayName="FormFile",mi.Input=di,mi.Label=hi;var gi=mi,vi=l.a.forwardRef(function(e,t){var n,o,u=e.bsPrefix,c=e.bsCustomPrefix,f=e.type,d=e.size,p=e.htmlSize,h=e.id,m=e.className,g=e.isValid,v=void 0!==g&&g,b=e.isInvalid,y=void 0!==b&&b,w=e.plaintext,x=e.readOnly,E=e.custom,S=e.as,C=void 0===S?"input":S,O=i(e,["bsPrefix","bsCustomPrefix","type","size","htmlSize","id","className","isValid","isInvalid","plaintext","readOnly","custom","as"]),k=Object(s.useContext)(ii).controlId,M=E?[c,"custom"]:[u,"form-control"];if(u=_(M[0],M[1]),w)(o={})[u+"-plaintext"]=!0,n=o;else if("file"===f){var A;(A={})[u+"-file"]=!0,n=A}else if("range"===f){var T;(T={})[u+"-range"]=!0,n=T}else if("select"===C&&E){var P;(P={})[u+"-select"]=!0,P[u+"-select-"+d]=d,n=P}else{var j;(j={})[u]=!0,j[u+"-"+d]=d,n=j}return l.a.createElement(C,Object(r.default)({},O,{type:f,size:p,ref:t,readOnly:x,id:h||k,className:a()(m,n,v&&"is-valid",y&&"is-invalid")}))});vi.displayName="FormControl";var bi=Object.assign(vi,{Feedback:ri}),yi=l.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.className,u=e.children,c=e.controlId,f=e.as,d=void 0===f?"div":f,p=i(e,["bsPrefix","className","children","controlId","as"]);n=_(n,"form-group");var h=Object(s.useMemo)(function(){return{controlId:c}},[c]);return l.a.createElement(ii.Provider,{value:h},l.a.createElement(d,Object(r.default)({},p,{ref:t,className:a()(o,n)}),u))});yi.displayName="FormGroup";var wi=yi,_i=l.a.forwardRef(function(e,t){var n=e.as,o=void 0===n?"label":n,u=e.bsPrefix,c=e.column,f=e.srOnly,d=e.className,p=e.htmlFor,h=i(e,["as","bsPrefix","column","srOnly","className","htmlFor"]),m=Object(s.useContext)(ii).controlId;u=_(u,"form-label");var g="col-form-label";"string"==typeof c&&(g=g+"-"+c);var v=a()(d,u,f&&"sr-only",c&&g);return p=p||m,c?l.a.createElement(Dt,Object(r.default)({as:"label",className:v,htmlFor:p},h)):l.a.createElement(o,Object(r.default)({ref:t,className:v,htmlFor:p},h))});_i.displayName="FormLabel",_i.defaultProps={column:!1,srOnly:!1};var xi=_i,Ei=l.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.className,s=e.as,u=void 0===s?"small":s,c=e.muted,f=i(e,["bsPrefix","className","as","muted"]);return n=_(n,"form-text"),l.a.createElement(u,Object(r.default)({},f,{ref:t,className:a()(o,n,c&&"text-muted")}))});Ei.displayName="FormText";var Si=Ei,Ci=l.a.forwardRef(function(e,t){return l.a.createElement(ci,Object(r.default)({},e,{ref:t,type:"switch"}))});Ci.displayName="Switch",Ci.Input=ci.Input,Ci.Label=ci.Label;var Oi=Ci,ki=Pe("form-row"),Mi=l.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.inline,s=e.className,u=e.validated,c=e.as,f=void 0===c?"form":c,d=i(e,["bsPrefix","inline","className","validated","as"]);return n=_(n,"form"),l.a.createElement(f,Object(r.default)({},d,{ref:t,className:a()(s,u&&"was-validated",o&&n+"-inline")}))});Mi.displayName="Form",Mi.defaultProps={inline:!1},Mi.Row=ki,Mi.Group=wi,Mi.Control=bi,Mi.Check=ci,Mi.File=gi,Mi.Switch=Oi,Mi.Label=xi,Mi.Text=Si;var Ai=Mi,Ti=l.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.fluid,s=e.as,u=void 0===s?"div":s,c=e.className,f=i(e,["bsPrefix","fluid","as","className"]),d=_(n,"container"),p="string"==typeof o?"-"+o:"-fluid";return l.a.createElement(u,Object(r.default)({ref:t},f,{className:a()(c,o?""+d+p:d)}))});Ti.displayName="Container",Ti.defaultProps={fluid:!1};var Pi=Ti,ji={bsPrefix:K.a.string,fluid:K.a.bool,rounded:K.a.bool,roundedCircle:K.a.bool,thumbnail:K.a.bool},Ri=l.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.className,s=e.fluid,u=e.rounded,c=e.roundedCircle,f=e.thumbnail,d=i(e,["bsPrefix","className","fluid","rounded","roundedCircle","thumbnail"]);n=_(n,"img");var p=a()(s&&n+"-fluid",u&&"rounded",c&&"rounded-circle",f&&n+"-thumbnail");return l.a.createElement("img",Object(r.default)({ref:t},d,{className:a()(o,p)}))});Ri.displayName="Image",Ri.defaultProps={fluid:!1,rounded:!1,roundedCircle:!1,thumbnail:!1};var Di=Ri,Fi=l.a.forwardRef(function(e,t){var n=e.className,o=i(e,["className"]);return l.a.createElement(Di,Object(r.default)({ref:t},o,{className:a()(n,"figure-img")}))});Fi.displayName="FigureImage",Fi.propTypes=ji,Fi.defaultProps={fluid:!0};var Ii=Fi,Li=Pe("figure-caption",{Component:"figcaption"}),Ni=Pe("figure",{Component:"figure"});Ni.Image=Ii,Ni.Caption=Li;var zi=Ni,Bi=Pe("input-group-append"),Hi=Pe("input-group-prepend"),Ui=Pe("input-group-text",{Component:"span"}),$i=l.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.size,s=e.className,u=e.as,c=void 0===u?"div":u,f=i(e,["bsPrefix","size","className","as"]);return n=_(n,"input-group"),l.a.createElement(c,Object(r.default)({ref:t},f,{className:a()(s,n,o&&n+"-"+o)}))});$i.displayName="InputGroup";var Wi=Object(r.default)({},$i,{Text:Ui,Radio:function(e){return l.a.createElement(Ui,null,l.a.createElement("input",Object(r.default)({type:"radio"},e)))},Checkbox:function(e){return l.a.createElement(Ui,null,l.a.createElement("input",Object(r.default)({type:"checkbox"},e)))},Append:Bi,Prepend:Hi}),Gi=l.a.forwardRef(function(e,t){var n,o=e.as,s=void 0===o?"div":o,u=e.className,c=e.fluid,f=e.bsPrefix,d=i(e,["as","className","fluid","bsPrefix"]),p=((n={})[f=_(f,"jumbotron")]=!0,n[f+"-fluid"]=c,n);return l.a.createElement(s,Object(r.default)({ref:t},d,{className:a()(u,p)}))});Gi.defaultProps={fluid:!1},Gi.displayName="Jumbotron";var qi=Gi,Vi=l.a.createContext(null),Ki=function(){},Qi=l.a.forwardRef(function(e,t){var n,o,a=e.as,u=void 0===a?"ul":a,c=e.onSelect,f=e.activeKey,d=e.role,p=e.onKeyDown,h=i(e,["as","onSelect","activeKey","role","onKeyDown"]),m=zt(),g=Object(s.useRef)(!1),v=Object(s.useContext)(C),b=Object(s.useContext)(Vi);b&&(d=d||"tablist",f=b.activeKey,n=b.getControlledId,o=b.getControllerId);var y=Object(s.useRef)(null),w=function(e){var t=y.current;if(!t)return null;var n=It(t,"[data-rb-event-key]:not(.disabled)"),r=t.querySelector(".active");if(!r)return null;var i=n.indexOf(r);if(-1===i)return null;var o=i+e;return o>=n.length&&(o=0),o<0&&(o=n.length-1),n[o]},_=function(e,t){null!=e&&(c&&c(e,t),v&&v(e,t))};Object(s.useEffect)(function(){if(y.current&&g.current){var e=y.current.querySelector("[data-rb-event-key].active");e&&e.focus()}g.current=!1});var x=Ir(t,y);return l.a.createElement(C.Provider,{value:_},l.a.createElement(Pr.Provider,{value:{role:d,activeKey:S(f),getControlledId:n||Ki,getControllerId:o||Ki}},l.a.createElement(u,Object(r.default)({},h,{onKeyDown:function(e){var t;switch(p&&p(e),e.key){case"ArrowLeft":case"ArrowUp":t=w(-1);break;case"ArrowRight":case"ArrowDown":t=w(1);break;default:return}t&&(e.preventDefault(),_(t.dataset.rbEventKey,e),g.current=!0,m())},ref:x,role:d}))))}),Yi=l.a.forwardRef(function(e,t){var n=e.active,o=e.className,u=e.eventKey,c=e.onSelect,f=e.onClick,d=e.as,p=i(e,["active","className","eventKey","onSelect","onClick","as"]),h=S(u,p.href),m=Object(s.useContext)(C),g=Object(s.useContext)(Pr),v=n;if(g){p.role||"tablist"!==g.role||(p.role="tab");var b=g.getControllerId(h),y=g.getControlledId(h);p["data-rb-event-key"]=h,p.id=b||p.id,p["aria-controls"]=y||p["aria-controls"],v=null==n&&null!=h?g.activeKey===h:n}"tab"===p.role&&(p.tabIndex=v?p.tabIndex:-1,p["aria-selected"]=v);var w=_e(function(e){f&&f(e),null!=h&&(c&&c(h,e),m&&m(h,e))});return l.a.createElement(d,Object(r.default)({},p,{ref:t,onClick:w,className:a()(o,v&&"active")}))});Yi.defaultProps={disabled:!1};var Xi=Yi,Zi={variant:void 0,active:!1,disabled:!1},Ji=l.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.active,u=e.disabled,c=e.className,f=e.variant,d=e.action,p=e.as,h=e.eventKey,m=e.onClick,g=i(e,["bsPrefix","active","disabled","className","variant","action","as","eventKey","onClick"]);n=_(n,"list-group-item");var v=Object(s.useCallback)(function(e){if(u)return e.preventDefault(),void e.stopPropagation();m&&m(e)},[u,m]);return l.a.createElement(Xi,Object(r.default)({ref:t},g,{eventKey:S(h||null,g.href),as:p||(d?g.href?"a":"button":"div"),onClick:v,className:a()(c,n,o&&"active",u&&"disabled",f&&n+"-"+f,d&&n+"-action")}))});Ji.defaultProps=Zi,Ji.displayName="ListGroupItem";var eo=Ji,to={variant:void 0,horizontal:void 0},no=l.a.forwardRef(function(e,t){var n,o=h(e,{activeKey:"onSelect"}),s=o.className,u=o.bsPrefix,c=o.variant,f=o.horizontal,d=o.as,p=void 0===d?"div":d,m=i(o,["className","bsPrefix","variant","horizontal","as"]),g=_(u,"list-group");return n=f?!0===f?"horizontal":"horizontal-"+f:null,l.a.createElement(Qi,Object(r.default)({ref:t},m,{as:p,className:a()(s,g,c&&g+"-"+c,n&&g+"-"+n)}))});no.defaultProps=to,no.displayName="ListGroup",no.Item=eo;var ro=no,io=Pe("media-body"),oo=l.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.className,s=e.as,u=void 0===s?"div":s,c=i(e,["bsPrefix","className","as"]),f=_(n,"media");return l.a.createElement(u,Object(r.default)({},c,{ref:t,className:a()(o,f)}))});oo.displayName="Media",oo.Body=io;var ao,so=oo;function lo(e){if((!ao&&0!==ao||e)&&L){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),ao=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ao}function uo(e){void 0===e&&(e=T());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}function co(e,t){e.classList?e.classList.add(t):Br(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function fo(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function po(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=fo(e.className,t):e.setAttribute("class",fo(e.className&&e.className.baseVal||"",t))}function ho(e){return"window"in e&&e.window===e?e:"nodeType"in(t=e)&&t.nodeType===document.DOCUMENT_NODE&&e.defaultView||!1;var t}function mo(e){var t;return ho(e)||(t=e)&&"body"===t.tagName.toLowerCase()?function(e){var t=ho(e)?T():T(e),n=ho(e)||t.defaultView;return t.body.clientWidthe.clientHeight}var go=["template","script","style"],vo=function(e,t,n){[].forEach.call(e.children,function(e){var r,i,o;-1===t.indexOf(e)&&(i=(r=e).nodeType,o=r.tagName,1===i&&-1===go.indexOf(o.toLowerCase()))&&n(e)})};function bo(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}var yo,wo=function(){function e(e){var t=void 0===e?{}:e,n=t.hideSiblingNodes,r=void 0===n||n,i=t.handleContainerOverflow,o=void 0===i||i;this.hideSiblingNodes=void 0,this.handleContainerOverflow=void 0,this.modals=void 0,this.containers=void 0,this.data=void 0,this.scrollbarSize=void 0,this.hideSiblingNodes=r,this.handleContainerOverflow=o,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=lo()}var t=e.prototype;return t.isContainerOverflowing=function(e){var t=this.data[this.containerIndexFromModal(e)];return t&&t.overflowing},t.containerIndexFromModal=function(e){return t=this.data,n=function(t){return-1!==t.modals.indexOf(e)},r=-1,t.some(function(e,t){return!!n(e,t)&&(r=t,!0)}),r;var t,n,r},t.setContainerStyle=function(e,t){var n={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(n.paddingRight=parseInt(I(t,"paddingRight")||"0",10)+this.scrollbarSize+"px"),I(t,n)},t.removeContainerStyle=function(e,t){Object.assign(t.style,e.style)},t.add=function(e,t,n){var r=this.modals.indexOf(e),i=this.containers.indexOf(t);if(-1!==r)return r;if(r=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&function(e,t){var n=t.dialog,r=t.backdrop;vo(e,[n,r],function(e){return bo(!0,e)})}(t,e),-1!==i)return this.data[i].modals.push(e),r;var o={modals:[e],classes:n?n.split(/\s+/):[],overflowing:mo(t)};return this.handleContainerOverflow&&this.setContainerStyle(o,t),o.classes.forEach(co.bind(null,t)),this.containers.push(t),this.data.push(o),r},t.remove=function(e){var t=this.modals.indexOf(e);if(-1!==t){var n=this.containerIndexFromModal(e),r=this.data[n],i=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.classes.forEach(po.bind(null,i)),this.handleContainerOverflow&&this.removeContainerStyle(r,i),this.hideSiblingNodes&&function(e,t){var n=t.dialog,r=t.backdrop;vo(e,[n,r],function(e){return bo(!1,e)})}(i,e),this.containers.splice(n,1),this.data.splice(n,1);else if(this.hideSiblingNodes){var o=r.modals[r.modals.length-1],a=o.backdrop;bo(!1,o.dialog),bo(!1,a)}}},t.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}(),_o=function(e){var t;return"undefined"==typeof document?null:null==e?T().body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),(null==(t=e)?void 0:t.nodeType)&&e||null)};function xo(e,t){var n=Object(s.useState)(function(){return _o(e)}),r=n[0],i=n[1];if(!r){var o=_o(e);o&&i(o)}return Object(s.useEffect)(function(){t&&r&&t(r)},[t,r]),Object(s.useEffect)(function(){var t=_o(e);t!==r&&i(t)},[e,r]),r}function Eo(e){var t=e||(yo||(yo=new wo),yo),n=Object(s.useRef)({dialog:null,backdrop:null});return Object.assign(n.current,{add:function(e,r){return t.add(n.current,e,r)},remove:function(){return t.remove(n.current)},isTopModal:function(){return t.isTopModal(n.current)},setDialogRef:Object(s.useCallback)(function(e){n.current.dialog=e},[]),setBackdropRef:Object(s.useCallback)(function(e){n.current.backdrop=e},[])})}var So=Object(s.forwardRef)(function(e,t){var n=e.show,o=void 0!==n&&n,a=e.role,u=void 0===a?"dialog":a,c=e.className,f=e.style,d=e.children,p=e.backdrop,h=void 0===p||p,m=e.keyboard,g=void 0===m||m,v=e.onBackdropClick,b=e.onEscapeKeyDown,y=e.transition,w=e.backdropTransition,_=e.autoFocus,x=void 0===_||_,E=e.enforceFocus,S=void 0===E||E,C=e.restoreFocus,O=void 0===C||C,k=e.restoreFocusOptions,M=e.renderDialog,A=e.renderBackdrop,T=void 0===A?function(e){return l.a.createElement("div",e)}:A,P=e.manager,j=e.container,R=e.containerClassName,D=e.onShow,F=e.onHide,I=void 0===F?function(){}:F,N=e.onExit,z=e.onExited,B=e.onExiting,H=e.onEnter,U=e.onEntering,G=e.onEntered,q=i(e,["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","containerClassName","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"]),V=xo(j),K=Eo(P),Q=yt(),X=Lt(o),Z=Object(s.useState)(!o),J=Z[0],ee=Z[1],te=Object(s.useRef)(null);Object(s.useImperativeHandle)(t,function(){return K},[K]),L&&!X&&o&&(te.current=uo()),y||o||J?o&&J&&ee(!1):ee(!0);var ne=_e(function(){if(K.add(V,R),le.current=W(document,"keydown",ae),se.current=W(document,"focus",function(){return setTimeout(ie)},!0),D&&D(),x){var e=uo(document);K.dialog&&e&&!ar(K.dialog,e)&&(te.current=e,K.dialog.focus())}}),re=_e(function(){var e;(K.remove(),null==le.current||le.current(),null==se.current||se.current(),O)&&(null==(e=te.current)||null==e.focus||e.focus(k),te.current=null)});Object(s.useEffect)(function(){o&&V&&ne()},[o,V,ne]),Object(s.useEffect)(function(){J&&re()},[J,re]),wt(function(){re()});var ie=_e(function(){if(S&&Q()&&K.isTopModal()){var e=uo();K.dialog&&e&&!ar(K.dialog,e)&&K.dialog.focus()}}),oe=_e(function(e){e.target===e.currentTarget&&(null==v||v(e),!0===h&&I())}),ae=_e(function(e){g&&27===e.keyCode&&K.isTopModal()&&(null==b||b(e),e.defaultPrevented||I())}),se=Object(s.useRef)(),le=Object(s.useRef)(),ue=y;if(!V||!(o||ue&&!J))return null;var ce=Object(r.default)({role:u,ref:K.setDialogRef,"aria-modal":"dialog"===u||void 0},q,{style:f,className:c,tabIndex:-1}),fe=M?M(ce):l.a.createElement("div",ce,l.a.cloneElement(d,{role:"document"}));ue&&(fe=l.a.createElement(ue,{appear:!0,unmountOnExit:!0,in:!!o,onExit:N,onExiting:B,onExited:function(){ee(!0);for(var e=arguments.length,t=new Array(e),n=0;nT(e).documentElement.clientHeight;B({paddingRight:t&&!n?lo():void 0,paddingLeft:!t&&n?lo():void 0})}}var ie=_e(function(){Z&&re(Z.dialog)});wt(function(){U(window,"resize",ie),Y.current&&Y.current()});var oe=function(){K.current=!0},ae=function(e){K.current&&Z&&e.target===Z.dialog&&(Q.current=!0),K.current=!1},se=function(){V(!0),Y.current=q(Z.dialog,function(){V(!1)})},le=function(e){"static"!==g?Q.current||e.target!==e.currentTarget?Q.current=!1:w():function(e){e.target===e.currentTarget&&se()}(e)},ue=Object(s.useCallback)(function(e){return l.a.createElement("div",Object(r.default)({},e,{className:a()(n+"-backdrop",D,!m&&"show")}))},[m,D,n]),ce=Object(r.default)({},u,{},z);m||(ce.display="block");return l.a.createElement(jo.Provider,{value:te},l.a.createElement(Oo,{show:h,ref:J,backdrop:g,container:x,keyboard:!0,autoFocus:E,enforceFocus:S,restoreFocus:C,restoreFocusOptions:O,onEscapeKeyDown:function(e){v||"static"!==g?v&&b&&b(e):(e.preventDefault(),se())},onShow:y,onHide:w,onEnter:function(e){e&&(e.style.display="block",re(e));for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r

'}),e.prototype=$.extend({},$.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var r=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===r&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===r?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=$.fn.popover;$.fn.popover=function(t){return this.each(function(){var n=$(this),r=n.data("bs.popover"),i="object"==typeof t&&t;!r&&/destroy|hide/.test(t)||(r||n.data("bs.popover",r=new e(this,i)),"string"==typeof t&&r[t]())})},$.fn.popover.Constructor=e,$.fn.popover.noConflict=function(){return $.fn.popover=t,this}}(jQuery)},"SWvpue3+":function(e,exports,t){e.exports=t.p+"a6837ca30e3359d8d04882039e16df3b.js"},SaR9Bkz7:function(e,exports,t){"use strict";var n=function(){};e.exports=n},SefV87Pe:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=s(t("ii0bleBb")),r=s(t("ivGQtwpr")),i=t("NV2C8ebe"),o=s(t("+YvFKRFY")),a=s(t("ISE+o6P3"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(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})(e)}function u(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"AAA",r=.05,i=(0,n.getLuminance)(e)<.5?n.tint:n.shade,o=0,a=i(o,e);o<=1;){var s=o.toFixed(2);if(a=i(s,e),(0,n.meetsContrastGuidelines)(e,a)[t])break;o+=r}return a};exports.default=r,e.exports=exports.default},TPMSAUQq:function(e,exports,t){e.exports=t.p+"4c2bff03c88f74a2fc430599f11d7d4c.js"},TQ0JZawz:function(e,exports,t){e.exports=t.p+"73378d8e8d20b30b3f77cb48b5aea0cf.js"},TSSCj36W:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n={save:function(e,t,n,r){var i=document.createElement("a"),o=r?";charset=".concat(r):"",a=r?"".concat(n).concat(o):n;if(void 0!==i.download)return i.download=t,i.href="data:".concat(a,",").concat(encodeURIComponent(e)),document.body.appendChild(i),i.click(),void document.body.removeChild(i);if(window.navigator&&"function"==typeof window.navigator.msSaveOrOpenBlob){var s=new Blob([e],{type:a});window.navigator.msSaveOrOpenBlob(s,t)}else try{location.href="data:application/attachment".concat(o,",").concat(encodeURIComponent(e))}catch(t){location.href="data:text/plain".concat(o,",").concat(encodeURIComponent(e))}}};exports.default=n,e.exports=exports.default},"TV+I7Dhs":function(e,exports,t){e.exports=t.p+"8a27e45ff6269fded458c7b6b6037fe1.js"},TYqjcbhq:function(e,exports,t){e.exports=t.p+"fc7a312c2a946e839cf2ce677d09a1ef.js"},TZbuAMSu:function(e,exports,t){var n=t("v7Leiqji"),r=t("8qRsGgWC");e.exports=function e(t,i,o,a,s){return t===i||(null==t||null==i||!r(t)&&!r(i)?t!=t&&i!=i:n(t,i,o,a,e,s))}},TeG4RoDX:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=s(t("ii0bleBb")),r=s(t("ivGQtwpr")),i=s(t("Vm8ep08X")),o=s(t("7QAbkgSv")),a=s(t("Maji1yex"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var f=o.default.getStore("CurrentUser"),d=a.default.isPermitted,p=a.default.isAnyPermitted,h=function(e){var t=e.children,n=e.currentUser,i=e.permissions,o=e.anyPermissions,a=c(e,["children","currentUser","permissions","anyPermissions"]);return!i||0===i.length||n&&function(e,t,n){return t?p(n.permissions,e):d(n.permissions,e)}(i,o,n)?r.default.Children.map(t,function(e){if(r.default.isValidElement(e)){var t=e&&e.props?Object.keys(e.props):[],n=Object.entries(a).filter(function(e){return!t.includes(e[0])}).reduce(function(e,t){var n=u(t,2);return function(e){for(var t=1;t1?arguments[1]:{},i={},o={start:Pe},a=Pe,s=function(e){return{type:"messageFormatPattern",elements:e,location:Oe()}},l=function(e){var t,n,r,i,o,a="";for(t=0,r=e.length;tEe&&(Ee=we,Se=[]),Se.push(e))}function Te(t,n,r,i){return null!==n&&function(e){var t=1;for(e.sort(function(e,t){return e.descriptiont.description?1:0});t1?r.slice(0,-1).join(", ")+" or "+r[e.length-1]:r[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+t(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+t(e)}).replace(/[\u0100-\u0FFF]/g,function(e){return"\\u0"+t(e)}).replace(/[\u1000-\uFFFF]/g,function(e){return"\\u"+t(e)})}(t)+'"':"end of input")+" found."}(n,r),n,r,i)}function Pe(){return je()}function je(){var e,t,n;for(e=we,t=[],n=Re();n!==i;)t.push(n),n=Re();return t!==i&&(_e=e,t=s(t)),e=t}function Re(){var e;return(e=function(){var e,n;e=we,(n=function(){var e,n,r,o,a,s;e=we,n=[],r=we,(o=Le())!==i&&(a=Ue())!==i&&(s=Le())!==i?r=o=[o,a,s]:(we=r,r=i);if(r!==i)for(;r!==i;)n.push(r),r=we,(o=Le())!==i&&(a=Ue())!==i&&(s=Le())!==i?r=o=[o,a,s]:(we=r,r=i);else n=i;n!==i&&(_e=e,n=l(n));(e=n)===i&&(e=we,n=Ie(),e=n!==i?t.substring(e,we):n);return e}())!==i&&(_e=e,n=u(n));return e=n}())===i&&(e=function(){var e,n,r,o,a,s,l;e=we,123===t.charCodeAt(we)?(n=d,we++):(n=i,0===Ce&&Ae(p));n!==i&&Le()!==i&&(r=function(){var e,n,r;if((e=Be())===i){if(e=we,n=[],c.test(t.charAt(we))?(r=t.charAt(we),we++):(r=i,0===Ce&&Ae(f)),r!==i)for(;r!==i;)n.push(r),c.test(t.charAt(we))?(r=t.charAt(we),we++):(r=i,0===Ce&&Ae(f));else n=i;e=n!==i?t.substring(e,we):n}return e}())!==i&&Le()!==i?(o=we,44===t.charCodeAt(we)?(a=h,we++):(a=i,0===Ce&&Ae(m)),a!==i&&(s=Le())!==i&&(l=function(){var e;(e=function(){var e,n,r,o,a,s;e=we,t.substr(we,6)===y?(n=y,we+=6):(n=i,0===Ce&&Ae(w));n===i&&(t.substr(we,4)===_?(n=_,we+=4):(n=i,0===Ce&&Ae(x)),n===i&&(t.substr(we,4)===E?(n=E,we+=4):(n=i,0===Ce&&Ae(S))));n!==i&&Le()!==i?(r=we,44===t.charCodeAt(we)?(o=h,we++):(o=i,0===Ce&&Ae(m)),o!==i&&(a=Le())!==i&&(s=Ue())!==i?r=o=[o,a,s]:(we=r,r=i),r===i&&(r=null),r!==i?(_e=e,n=C(n,r),e=n):(we=e,e=i)):(we=e,e=i);return e}())===i&&(e=function(){var e,n,r,o;e=we,t.substr(we,6)===O?(n=O,we+=6):(n=i,0===Ce&&Ae(k));n!==i&&Le()!==i?(44===t.charCodeAt(we)?(r=h,we++):(r=i,0===Ce&&Ae(m)),r!==i&&Le()!==i&&(o=Fe())!==i?(_e=e,n=M(o),e=n):(we=e,e=i)):(we=e,e=i);return e}())===i&&(e=function(){var e,n,r,o;e=we,t.substr(we,13)===A?(n=A,we+=13):(n=i,0===Ce&&Ae(T));n!==i&&Le()!==i?(44===t.charCodeAt(we)?(r=h,we++):(r=i,0===Ce&&Ae(m)),r!==i&&Le()!==i&&(o=Fe())!==i?(_e=e,n=P(o),e=n):(we=e,e=i)):(we=e,e=i);return e}())===i&&(e=function(){var e,n,r,o,a;e=we,t.substr(we,6)===j?(n=j,we+=6):(n=i,0===Ce&&Ae(R));if(n!==i)if(Le()!==i)if(44===t.charCodeAt(we)?(r=h,we++):(r=i,0===Ce&&Ae(m)),r!==i)if(Le()!==i){if(o=[],(a=De())!==i)for(;a!==i;)o.push(a),a=De();else o=i;o!==i?(_e=e,n=D(o),e=n):(we=e,e=i)}else we=e,e=i;else we=e,e=i;else we=e,e=i;else we=e,e=i;return e}());return e}())!==i?o=a=[a,s,l]:(we=o,o=i),o===i&&(o=null),o!==i&&(a=Le())!==i?(125===t.charCodeAt(we)?(s=g,we++):(s=i,0===Ce&&Ae(v)),s!==i?(_e=e,n=b(r,o),e=n):(we=e,e=i)):(we=e,e=i)):(we=e,e=i);return e}()),e}function De(){var e,n,r,o,a;return e=we,Le()!==i&&(n=function(){var e,n,r,o;return e=we,n=we,61===t.charCodeAt(we)?(r=F,we++):(r=i,0===Ce&&Ae(I)),r!==i&&(o=Be())!==i?n=r=[r,o]:(we=n,n=i),(e=n!==i?t.substring(e,we):n)===i&&(e=Ue()),e}())!==i&&Le()!==i?(123===t.charCodeAt(we)?(r=d,we++):(r=i,0===Ce&&Ae(p)),r!==i&&Le()!==i&&(o=je())!==i&&Le()!==i?(125===t.charCodeAt(we)?(a=g,we++):(a=i,0===Ce&&Ae(v)),a!==i?(_e=e,e=L(n,o)):(we=e,e=i)):(we=e,e=i)):(we=e,e=i),e}function Fe(){var e,n,r,o;if(e=we,(n=function(){var e,n,r;return e=we,t.substr(we,7)===N?(n=N,we+=7):(n=i,0===Ce&&Ae(z)),n!==i&&Le()!==i&&(r=Be())!==i?(_e=e,e=n=B(r)):(we=e,e=i),e}())===i&&(n=null),n!==i)if(Le()!==i){if(r=[],(o=De())!==i)for(;o!==i;)r.push(o),o=De();else r=i;r!==i?(_e=e,e=n=H(n,r)):(we=e,e=i)}else we=e,e=i;else we=e,e=i;return e}function Ie(){var e,n;if(Ce++,e=[],W.test(t.charAt(we))?(n=t.charAt(we),we++):(n=i,0===Ce&&Ae(G)),n!==i)for(;n!==i;)e.push(n),W.test(t.charAt(we))?(n=t.charAt(we),we++):(n=i,0===Ce&&Ae(G));else e=i;return Ce--,e===i&&(n=i,0===Ce&&Ae(U)),e}function Le(){var e,n,r;for(Ce++,e=we,n=[],r=Ie();r!==i;)n.push(r),r=Ie();return e=n!==i?t.substring(e,we):n,Ce--,e===i&&(n=i,0===Ce&&Ae(q)),e}function Ne(){var e;return V.test(t.charAt(we))?(e=t.charAt(we),we++):(e=i,0===Ce&&Ae(K)),e}function ze(){var e;return Q.test(t.charAt(we))?(e=t.charAt(we),we++):(e=i,0===Ce&&Ae(Y)),e}function Be(){var e,n,r,o,a,s;if(e=we,48===t.charCodeAt(we)?(n=X,we++):(n=i,0===Ce&&Ae(Z)),n===i){if(n=we,r=we,J.test(t.charAt(we))?(o=t.charAt(we),we++):(o=i,0===Ce&&Ae(ee)),o!==i){for(a=[],s=Ne();s!==i;)a.push(s),s=Ne();a!==i?r=o=[o,a]:(we=r,r=i)}else we=r,r=i;n=r!==i?t.substring(n,we):r}return n!==i&&(_e=e,n=te(n)),e=n}function He(){var e,n,r,o,a,s,l,u;return ne.test(t.charAt(we))?(e=t.charAt(we),we++):(e=i,0===Ce&&Ae(re)),e===i&&(e=we,t.substr(we,2)===ie?(n=ie,we+=2):(n=i,0===Ce&&Ae(oe)),n!==i&&(_e=e,n=ae()),(e=n)===i&&(e=we,t.substr(we,2)===se?(n=se,we+=2):(n=i,0===Ce&&Ae(le)),n!==i&&(_e=e,n=ue()),(e=n)===i&&(e=we,t.substr(we,2)===ce?(n=ce,we+=2):(n=i,0===Ce&&Ae(fe)),n!==i&&(_e=e,n=de()),(e=n)===i&&(e=we,t.substr(we,2)===pe?(n=pe,we+=2):(n=i,0===Ce&&Ae(he)),n!==i&&(_e=e,n=me()),(e=n)===i&&(e=we,t.substr(we,2)===ge?(n=ge,we+=2):(n=i,0===Ce&&Ae(ve)),n!==i?(r=we,o=we,(a=ze())!==i&&(s=ze())!==i&&(l=ze())!==i&&(u=ze())!==i?o=a=[a,s,l,u]:(we=o,o=i),(r=o!==i?t.substring(r,we):o)!==i?(_e=e,e=n=be(r)):(we=e,e=i)):(we=e,e=i)))))),e}function Ue(){var e,t,n;if(e=we,t=[],(n=He())!==i)for(;n!==i;)t.push(n),n=He();else t=i;return t!==i&&(_e=e,t=ye(t)),e=t}if((n=a())!==i&&we===t.length)return n;throw n!==i&&we= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=l-u,_=Math.floor,x=String.fromCharCode;function E(e){throw new RangeError(y[e])}function S(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function C(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+S((e=e.replace(b,".")).split("."),t).join(".")}function O(e){for(var t,n,r=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)}).join("")}function M(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,n){var r=0;for(e=n?_(e/d):e>>1,e+=_(e/t);e>w*c>>1;r+=l)e=_(e/w);return _(r+(w+1)*e/(e+f))}function T(e){var t,n,r,i,o,a,f,d,g,v,b,y=[],w=e.length,x=0,S=h,C=p;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r=128&&E("not-basic"),y.push(e.charCodeAt(r));for(i=n>0?n+1:0;i=w&&E("invalid-input"),((d=(b=e.charCodeAt(i++))-48<10?b-22:b-65<26?b-65:b-97<26?b-97:l)>=l||d>_((s-x)/a))&&E("overflow"),x+=d*a,!(d<(g=f<=C?u:f>=C+c?c:f-C));f+=l)a>_(s/(v=l-g))&&E("overflow"),a*=v;C=A(x-o,t=y.length+1,0==o),_(x/t)>s-S&&E("overflow"),S+=_(x/t),x%=t,y.splice(x++,0,S)}return k(y)}function P(e){var t,n,r,i,o,a,f,d,g,v,b,y,w,S,C,k=[];for(y=(e=O(e)).length,t=h,n=0,o=p,a=0;a=t&&b_((s-n)/(w=r+1))&&E("overflow"),n+=(f-t)*w,t=f,a=0;as&&E("overflow"),b==t){for(d=n,g=l;!(d<(v=g<=o?u:g>=o+c?c:g-o));g+=l)C=d-v,S=l-v,k.push(x(M(v+C%S,0))),d=_(C/S);k.push(x(M(d,0))),o=A(n,w,r==i),n=0,++r}++n,++t}return k.join("")}a={version:"1.3.2",ucs2:{decode:O,encode:k},decode:T,encode:P,toASCII:function(e){return C(e,function(e){return v.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return C(e,function(e){return g.test(e)?T(e.slice(4).toLowerCase()):e})}},void 0===(r=function(){return a}.call(exports,t,exports,e))||(e.exports=r)}()}).call(this,t("9YbPW59L")(e),t("aY11sVfy"))},"U8W+SkhH":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("mcCxW9IA"),r=t("07q0Fgmp");exports.default=function(e){var t,i,o,a;function s(){a&&(a(),a=void 0),t&&i&&(a=e.connectDropTarget(t,i,o))}return{receiveHandlerId:function(e){e!==t&&(t=e,s())},hooks:n.default({dropTarget:function(e,t){e===i&&r(t,o)||(i=e,o=t,s())}})}}},"UAQrp/zB":function(e,exports,t){e.exports=t("jaIgFIJB")(296)},"UO+uMgKU":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=s(t("ivGQtwpr")),r=s(t("PcYM+wZ7")),i=s(t("ii0bleBb")),o=t("os2pWP01"),a=s(t("7tuIoN/x"));function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,r.default)({displayName:"ControlledTableListHeader",propTypes:{children:i.default.node},getDefaultProps:function(){return{children:""}},wrapStringChildren:function(e){return n.default.createElement("div",{className:a.default.headerWrapper},e)},render:function(){var e=this.props.children,t="string"==typeof e?this.wrapStringChildren(e):e;return n.default.createElement(o.ListGroupItem,{className:a.default.listGroupHeader},t)}});exports.default=l,e.exports=exports.default},UPkAWsT7:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=s(t("ii0bleBb")),r=s(t("ivGQtwpr")),i=s(t("+udoJibM")),o=t("os2pWP01"),a=t("qOZsORvD");function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(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})(e)}function u(e,t){for(var n=0;n".concat(a.default.escape(e.suggestionText)," ").concat(a.default.escape(t[e.displayKey]),"
"):"
".concat(a.default.escape(t[e.displayKey]),"
")}}}),"function"==typeof e.onTypeaheadLoaded&&(e.onTypeaheadLoaded(),t.typeahead("close")),(0,s.default)(n.fieldFormGroup).on("typeahead:select typeahead:autocomplete",function(t,n){e.onSuggestionSelected&&e.onSuggestionSelected(t,n)})}),n}var n,u,g;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,r["default"].Component),n=t,(u=[{key:"componentDidMount",value:function(){this._updateTypeahead(this.props)}},{key:"componentWillReceiveProps",value:function(e){this._destroyTypeahead(),this._updateTypeahead(e)}},{key:"componentWillUnmount",value:function(){this._destroyTypeahead()}},{key:"render",value:function(){var e=this;return r.default.createElement(o.Input,{id:this.props.id,type:"text",ref:function(t){e.fieldInputElem=t},wrapperClassName:"typeahead-wrapper",label:this.props.label,onKeyPress:this.props.onKeyPress})}}])&&f(n.prototype,u),g&&f(n,g),t}();m(g,"propTypes",{id:n.default.string.isRequired,label:n.default.string.isRequired,onKeyPress:n.default.func,displayKey:n.default.string,suggestions:n.default.array,suggestionText:n.default.string,onTypeaheadLoaded:n.default.func,onSuggestionSelected:n.default.func}),m(g,"defaultProps",{displayKey:"suggestion"});var v=g;exports.default=v,e.exports=exports.default},UnkLiF0a:function(e,exports,t){e.exports=t.p+"475a05d86b21251ff0f04001e3faa145.js"},UqtPhpK8:function(e,exports,t){(e.exports=t("MAMP9hQI")(!1)).push([e.i,".donotshowcircles circle{display:none}",""])},UrJ1UJgI:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=g(t("ii0bleBb")),r=g(t("ivGQtwpr")),i=g(t("PcYM+wZ7")),o=g(t("vU3dbCc2")),a=g(t("4KF7VOU5")),s=t("os2pWP01"),l=t("qOZsORvD"),u=t("J6m01YZl"),c=g(t("956JmyQG")),f=g(t("s5h7rPn2")),d=g(t("Maji1yex")),p=g(t("7QAbkgSv")),h=g(t("1SPPmkhJ")),m=g(t("fZ4OAAo6"));function g(e){return e&&e.__esModule?e:{default:e}}var v=p.default.getStore("Decorators"),b=p.default.getStore("CurrentUser"),y=h.default.getActions("Decorators"),w=(0,i.default)({displayName:"DecoratorSidebar",propTypes:{stream:n.default.string.isRequired,maximumHeight:n.default.number.isRequired},mixins:[a.default.connect(v),a.default.connect(b),d.default],getInitialState:function(){return{maxDecoratorsHeight:1e3}},componentDidMount:function(){this._updateHeight(),window.addEventListener("scroll",this._updateHeight)},componentDidUpdate:function(e){this.props.maximumHeight!==e.maximumHeight&&this._updateHeight()},componentWillUnmount:function(){window.removeEventListener("scroll",this._updateHeight)},MINIMUM_DECORATORS_HEIGHT:50,_updateHeight:function(){var e=this.props.maximumHeight-o.default.findDOMNode(this.decoratorsContainer).getBoundingClientRect().top;this.setState({maxDecoratorsHeight:Math.max(e,this.MINIMUM_DECORATORS_HEIGHT)})},_formatDecorator:function(e){var t=this.state.types[e.type]||{requested_configuration:{},name:"Unknown type: ".concat(e.type)};return{id:e.id,title:r.default.createElement(u.Decorator,{key:"decorator-".concat(e.id),decorator:e,typeDefinition:t})}},_updateOrder:function(e){var t=this.state.decorators;e.forEach(function(e,n){var r=t.find(function(t){return t.id===e.id});r.order=n,y.update(r.id,r)})},render:function(){var e=this,t=this.state,n=t.currentUser,i=t.decorators,o=t.maxDecoratorsHeight,a=this.props.stream;if(!i)return r.default.createElement(l.Spinner,null);var d=i.filter(function(e){return a?e.stream===a:!e.stream}).sort(function(e,t){return e.order-t.order}),p=d.length>0?d[i.length-1].order+1:0,h=d.map(this._formatDecorator),g=r.default.createElement(s.Popover,{id:"decorators-help",className:m.default.helpPopover},r.default.createElement("p",{className:"description"},"Decorators can modify messages shown in the search results on the fly. These changes are not stored, but only shown in the search results. Decorator config is stored ",r.default.createElement("strong",null,"per stream"),"."),r.default.createElement("p",{className:"description"},"Use drag and drop to modify the order in which decorators are processed."),r.default.createElement("p",null,"Read more about message decorators in the ",r.default.createElement(c.default,{page:f.default.PAGES.DECORATORS,text:"documentation"}),".")),v=this.isPermitted(n.permissions,"decorators:edit:".concat(a));return r.default.createElement("div",null,r.default.createElement(u.AddDecoratorButton,{stream:a,nextOrder:p,disabled:!v}),r.default.createElement("div",{className:m.default.helpLinkContainer},r.default.createElement(s.OverlayTrigger,{trigger:"click",rootClose:!0,placement:"right",overlay:g},r.default.createElement(s.Button,{bsStyle:"link",className:m.default.helpLink},"What are message decorators?"))),r.default.createElement("div",{ref:function(t){e.decoratorsContainer=t},className:m.default.decoratorListContainer,style:{maxHeight:o}},r.default.createElement(u.DecoratorList,{decorators:h,onReorder:this._updateOrder,disableDragging:!v})))}});exports.default=w,e.exports=exports.default},Ut0AD6WQ:function(e,exports,t){e.exports=t.p+"e9d3cf13cd3d35ea6735bb4cefcfeffd.js"},"Ut8bwf+T":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=t("ivGQtwpr"),r=t("4bh9nC3d"),i=s(t("KX2Ezx4E")),o=t("tUPJ+u4I"),a=s(t("vQSmUFCW"));function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,n.memo)((0,i.default)(r.FormControl).withConfig({displayName:"FormControl",componentId:"sc-1amoaox-0"})(["color:",";background-color:",";border-color:",";&:focus{border-color:",";box-shadow(inset 0 1px 1px rgba(0,0,0,.075),0 0 8px ",");}&::-moz-placeholder,&:-ms-input-placeholder,&::-webkit-input-placeholder{color:",";}&[disabled],&[readonly],fieldset[disabled] &{background-color:",";}~ .form-control-feedback.glyphicon{display:none;}"],a.default.primary.tre,a.default.primary.due,a.default.secondary.tre,a.default.tertiary.due,(0,o.transparentize)(.6,a.default.tertiary.due),(0,o.lighten)(.6,a.default.primary.tre),a.default.secondary.tre));l.Static=r.FormControl.Static,l.Feedback=r.FormControl.Feedback;var u=l;exports.default=u,e.exports=exports.default},V088MX4G:function(e,exports,t){var n,r,i;r=[t("nXSFNspX")],void 0===(i="function"==typeof(n=function($){return $.ui=$.ui||{},$.ui.version="1.12.1"})?n.apply(exports,r):n)||(e.exports=i)},V9VLcX2d:function(e,exports,t){"use strict";(function(e){Object.defineProperty(exports,"__esModule",{value:!0}),exports.validate=function(e){var t=!1;return(0,r.default)(".validatable",e).each(function(){if(!(0,r.default)(this).is(":disabled")){var e=(0,r.default)(this).attr("data-validate");if(void 0!==e)for(var n=e.split(" "),i=0;!t&&i0||(a(e,"Must be set"),o=!0);break;case"port_number":(function(e){var t=parseInt(e.val());return t>0&&t<65535})(e)||(a(e,"Must be a valid port number"),o=!0);break;case"number":(function(e){return isNumber(e.val())})(e)||(a(e,"Must be a number"),o=!0);break;case"positive_number":s(e)||(a(e,"Must be a positive number"),o=!0);break;case"negative_number":(function(e){return parseInt(e.val())<0})(e)||(a(e,"Must be a negative number"),o=!0);break;case"not_negative_number":(function(e){return s(e)||0==parseInt(e.val())})(e)||(a(e,"Must be a not negative number"),o=!0);break;case"alphanum_underscore":(function(e){return e.val().match("^\\w*$")})(e)||(a(e,"Must only contain alphanumeric characters or underscores"),o=!0);break;case"datetime_format":(function(e){var t=(0,r.default)(e).val();try{return n.default.parseFromString(t),!0}catch(e){}return!1})(e)||(a(e,"Is not in a valid format"),o=!0);break;case"timerange":(function(e){var t=(0,r.default)(e).parent().parent(),i=(0,r.default)("input[name='from']",t).val(),o=(0,r.default)("input[name='to']",t).val();try{var a=n.default.parseFromString(i).toMoment(),s=n.default.parseFromString(o).toMoment();return a.isBefore(s)||a.isSame(s)}catch(e){}return!1})(e)||(a(e,"cannot be earlier than 'From'"),o=!0)}return o}function a(e,t){e.popover({content:t,placement:"bottom",trigger:"manual"}),e.on("shown.bs.popover",function(){window.setTimeout(function(){e.popover("destroy")},3e3)}),e.popover("show")}function s(e){return parseInt(e.val())>0}e.jQuery=r.default,t("2cxASUzl"),t("SUndQg5F")}).call(this,t("aY11sVfy"))},VMSrrSJN:function(e,exports,t){(exports=e.exports=t("MAMP9hQI")(!1)).push([e.i,"._2pFrWn9s4KGBV8uBCpjkYY .btn,._2pFrWn9s4KGBV8uBCpjkYY .btn-group,._2pFrWn9s4KGBV8uBCpjkYY .input-group{float:none}._2pFrWn9s4KGBV8uBCpjkYY>.btn-group:not(:first-child),._2pFrWn9s4KGBV8uBCpjkYY>.btn:not(:first-child),._2pFrWn9s4KGBV8uBCpjkYY>.input-group:not(:first-child){margin-left:10px}",""]),exports.locals={toolbar:"_2pFrWn9s4KGBV8uBCpjkYY"}},VNmdgZcm:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Twitter=void 0;var n=u(t("ivGQtwpr")),r=u(t("ii0bleBb")),i=u(t("zGS59GCK")),o=u(t("PHWUskn4")),a=u(t("C19pcrjQ")),s=u(t("kOI9bxm6")),l=t("50Juodil");function u(e){return e&&e.__esModule?e:{default:e}}var c=exports.Twitter=function(e){var t=e.onChange,r=e.onSwatchHover,u=e.hex,c=e.colors,f=e.width,d=e.triangle,p=e.styles,h=void 0===p?{}:p,m=e.className,g=void 0===m?"":m,v=(0,i.default)((0,a.default)({default:{card:{width:f,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},h),{"hide-triangle":"hide"===d,"top-left-triangle":"top-left"===d,"top-right-triangle":"top-right"===d}),b=function(e,n){s.default.isValidHex(e)&&t({hex:e,source:"hex"},n)};return n.default.createElement("div",{style:v.card,className:"twitter-picker "+g},n.default.createElement("div",{style:v.triangleShadow}),n.default.createElement("div",{style:v.triangle}),n.default.createElement("div",{style:v.body},(0,o.default)(c,function(e,t){return n.default.createElement(l.Swatch,{key:t,color:e,hex:e,style:v.swatch,onClick:b,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})}),n.default.createElement("div",{style:v.hash},"#"),n.default.createElement(l.EditableInput,{label:null,style:{input:v.input},value:u.replace("#",""),onChange:b}),n.default.createElement("div",{style:v.clear})))};c.propTypes={width:r.default.oneOfType([r.default.string,r.default.number]),triangle:r.default.oneOf(["hide","top-left","top-right"]),colors:r.default.arrayOf(r.default.string),styles:r.default.object},c.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},exports.default=(0,l.ColorWrap)(c)},VX7NnWTC:function(e,exports){e.exports=function(e){return function(t){return e(t)}}},Vck1VNVP:function(e,exports,t){(exports=e.exports=t("MAMP9hQI")(!1)).push([e.i,"._2uem0hM456tRfmPVM2Gkai .popover-content{padding:0}",""]),exports.locals={customPopover:"_2uem0hM456tRfmPVM2Gkai"}},Vlmmfvoh:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=u(t("ii0bleBb")),r=u(t("ivGQtwpr")),i=u(t("PcYM+wZ7")),o=t("DlhHh5IY"),a=t("qOZsORvD"),s=t("os2pWP01"),l=t("qwOa7NSh");function u(e){return e&&e.__esModule?e:{default:e}}var c=(0,i.default)({displayName:"TimeRangeCondition",propTypes:{onUpdate:n.default.func},getDefaultProps:function(){return{time:1,time_type:1}},getInitialState:function(){return{time:this.props.time,time_type:this.props.time_type}},_availableTimeTypes:function(){return[{value:"1",label:r.default.createElement(l.FormattedMessage,{id:"wizard.minutes",defaultMessage:"minutes"})},{value:"60",label:r.default.createElement(l.FormattedMessage,{id:"wizard.hours",defaultMessage:"hours"})},{value:"1440",label:r.default.createElement(l.FormattedMessage,{id:"wizard.days",defaultMessage:"days"})}]},_onTimeSelect:function(e){this.setState({time_type:parseInt(e)}),this.props.onUpdate("time",parseInt(e)*this.state.time)},_onTimeChanged:function(){var e=this;return function(t){e.setState({time:t.target.value}),e.props.onUpdate("time",t.target.value*e.state.time_type)}},render:function(){return r.default.createElement(s.Row,null,r.default.createElement(s.Col,{md:2,style:{marginTop:5,marginBottom:0}},r.default.createElement("label",{className:"pull-right"},r.default.createElement(l.FormattedMessage,{id:"wizard.timeRangeCondition",defaultMessage:"Time Range Condition"}))),r.default.createElement(s.Col,{md:10},r.default.createElement("label",null,r.default.createElement(l.FormattedMessage,{id:"wizard.messagesCome",defaultMessage:"Messages must come in the last"})),r.default.createElement(o.Input,{ref:"time",id:"time",name:"time",type:"number",min:"1",onChange:this._onTimeChanged(),value:this.state.time,style:{borderTopRightRadius:"0px",borderBottomRightRadius:"0px",height:"36px",width:"100px"}}),r.default.createElement(o.Input,{ref:"time_type",id:"time_type",name:"time_type",required:!0,className:"form-control"},r.default.createElement("div",{style:{width:"150px"}},r.default.createElement(a.Select,{required:!0,value:this.state.time_type.toString(),options:this._availableTimeTypes(),matchProp:"value",onChange:this._onTimeSelect,placeholder:r.default.createElement(l.FormattedMessage,{id:"wizard.select",defaultMessage:"Select..."})})))))}});exports.default=c,e.exports=exports.default},Vm8ep08X:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r=(n=t("ivGQtwpr"))&&n.__esModule?n:{default:n},i=t("4KF7VOU5"),o=t("NV2C8ebe");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:function(e){return e},a=e.displayName||e.name||"Unknown/Anonymous",u=function(u){function m(e){var n;return l(this,m),(n=f(this,d(m).call(this,e))).state||(n.state={}),Object.keys(i.ListenerMethods).forEach(function(e){n[e]=i.ListenerMethods[e].bind(p(n))}),n.componentWillUnmount=i.ListenerMethods.stopListeningToAll.bind(p(n)),Object.keys(t).forEach(function(e){var r=t[e];void 0===r?console.error("Error: The store passed for the `".concat(e,"` property is not defined. Check the connect()-call wrapping your `").concat(a,"` component.")):(0,o.isFunction)(r.getInitialState)&&(n.state[e]=r.getInitialState())}),n}return h(m,r["default"].Component),c(m,[{key:"componentDidMount",value:function(){var e=this;Object.keys(t).forEach(function(n){var r=t[n];e.listenTo(r,function(t){var r={};r[n]=t,e.setState(r)})})}},{key:"render",value:function(){var i=this,o={};return Object.keys(t).forEach(function(e){o[e]=i.state[e]}),r.default.createElement(e,s({},n(o),this.props))}}]),m}();return u.displayName="ConnectStoresWrapper[".concat(a,"] stores=").concat(Object.keys(t)),u},e.exports=exports.default},VqqJzeSw:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=h(t("ivGQtwpr")),r=h(t("PcYM+wZ7")),i=h(t("7wHi4ydR")),o=t("qwOa7NSh"),a=h(t("z/eN47+5")),s=t("os2pWP01"),l=h(t("18sD0i4u")),u=t("qOZsORvD"),c=t("wkvtUUMm"),f=h(t("TSSCj36W")),d=h(t("6H5fCDEz")),p=h(t("Mcd/Xly4"));function h(e){return e&&e.__esModule?e:{default:e}}var m=t("5mip0w5Y"),g=navigator.language.split(/[-_]/)[0];(0,o.addLocaleData)(m);var v={fr:a.default},b=(0,r.default)({displayName:"ExportAlertPage",getInitialState:function(){return{}},componentDidMount:function(){var e=this;l.default.list().then(function(t){e.setState({alertRules:t})})},isEmpty:function(e){return void 0===e||("function"==typeof e.count?0===e.count():0===e.length)},selectAllAlertRules:function(){var e=this;Object.keys(this.refs).forEach(function(t){0===t.indexOf("alertRules")&&(e.refs[t].checked=!0)})},formatAlertRule:function(e){return n.default.createElement("div",{className:"checkbox",key:"alertRule_checkbox-".concat(e.title)},n.default.createElement("label",{className:"checkbox"},n.default.createElement("input",{ref:"alertRules.".concat(e.title),type:"checkbox",name:"alertRules",id:"alertRule_".concat(e.title),value:e.title}),e.title),n.default.createElement("span",{className:"help-inline"},n.default.createElement(o.FormattedMessage,{id:"wizard.fieldDescription",defaultMessage:"Description"}),": ",n.default.createElement("tt",null,e.description)))},onSubmit:function(e){var t=this;e.preventDefault();var n={titles:[]};Object.keys(this.refs).forEach(function(e){0===e.indexOf("alertRules")&&!0===t.refs[e].checked&&n.titles.push(t.refs[e].value)}),l.default.exportAlertRules(n).then(function(e){d.default.success("Successfully export alert rules. Starting download...","Success!");var t=p.default.ignoreTZ(p.default.now()).toString(p.default.Formats.DATETIME).replace(/:/g,"").replace(/ /g,"_");f.default.save(e,t+"_alert_rules.json","application/json","utf-8")})},render:function(){return n.default.createElement(o.IntlProvider,{locale:g,messages:v[g]},n.default.createElement(u.DocumentTitle,{title:"Export alert rule"},n.default.createElement("div",null,n.default.createElement(u.PageHeader,{title:n.default.createElement(o.FormattedMessage,{id:"wizard.exportWizardAlertRule",defaultMessage:"Wizard: Export alert rules"})},n.default.createElement("span",null,n.default.createElement(o.FormattedMessage,{id:"wizard.exportAlertRule",defaultMessage:"You can export an alert rule."})),n.default.createElement("span",null,n.default.createElement(o.FormattedMessage,{id:"wizard.documentation",defaultMessage:"Read more about Wizard alert rules in the documentation."})),n.default.createElement("span",null,n.default.createElement(c.LinkContainer,{to:i.default.pluginRoute("WIZARD_ALERTRULES")},n.default.createElement(s.Button,{bsStyle:"info"},n.default.createElement(o.FormattedMessage,{id:"wizard.back",defaultMessage:"Back to alert rules"})))," ")),n.default.createElement(s.Row,{className:"content"},n.default.createElement(s.Col,{md:6},n.default.createElement("form",{className:"form-horizontal build-content-pack",onSubmit:this.onSubmit},n.default.createElement("div",{className:"form-group"},n.default.createElement(s.Col,{sm:2},n.default.createElement("label",{className:"control-label",htmlFor:"name"},n.default.createElement(o.FormattedMessage,{id:"wizard.alertsRule",defaultMessage:"Alert rules"}))),n.default.createElement(s.Col,{sm:10},this.isEmpty(this.state.alertRules)?n.default.createElement("span",{className:"help-block help-standalone"},n.default.createElement(o.FormattedMessage,{id:"wizard.noAlertRulesToExport",defaultMessage:"There is no alert rule to export."})):n.default.createElement("span",null,n.default.createElement(s.Button,{className:"btn btn-sm btn-link select-all",onClick:this.selectAllAlertRules},n.default.createElement(o.FormattedMessage,{id:"wizard.selectAll",defaultMessage:"Select all"})),this.state.alertRules.sort(function(e,t){return e.title.localeCompare(t.title)}).map(this.formatAlertRule)))),n.default.createElement("div",{className:"form-group"},n.default.createElement(s.Col,{smOffset:2,sm:10},n.default.createElement(s.Button,{bsStyle:"success",type:"submit"},n.default.createElement("i",{className:"fa fa-cloud-download"}),n.default.createElement(o.FormattedMessage,{id:"wizard.downloadContentPack",defaultMessage:"Download my content pack"}))))))))))}});exports.default=b,e.exports=exports.default},"W+SNfnp/":function(e,exports,t){"use strict";var n=t("7QAbkgSv").getStore("Fields"),r=t("6Dga+r6p"),i=t("h9ATbpPk"),o=t("ERJD36KC"),a=t("NV2C8ebe"),$=t("nXSFNspX"),s=(t("yjdIzlkZ"),function(){function e(e){this.queryInputContainer=e,this.fieldsPromise=n.loadFields(),this.limit=10,this.displayKey="value",this.typeAheadConfig={hint:!0,highlight:!0,minLength:1},this.typeAheadSource={name:"fields",displayKey:this.displayKey,source:this.codeCompletionProvider.bind(this),templates:{suggestion:function(e){var t=e.prefix,n=e.match.substring(0,e.match.indexOf(e.currentSegment)),r=e.currentSegment,i=e.match.substring(e.match.indexOf(e.currentSegment)+e.currentSegment.length);return"

"+a.escape(t)+""+a.escape(n)+""+a.escape(r)+""+a.escape(i)+"

"}}}}return e.prototype.display=function(){var e=this;this.fieldsPromise.then(function(t){e.fields=t,$(e.queryInputContainer).typeahead(e.typeAheadConfig,e.typeAheadSource)})},e.prototype._value=function(){return $(this.queryInputContainer).typeahead("val")},e.prototype.update=function(e){this._value()!==e&&$(this.queryInputContainer).typeahead("val",e)},e.prototype.codeCompletionProvider=function(e,t){var n="",o=[],a=[],s=new r.QueryParser(e).parse(),l=new i;l.visit(s);var u=l.result();if(0===u.length)a=(a=a.concat(this.fieldsCompletions())).concat(this.unaryOperatorsCompletions());else{var c=u[u.length-1],f=u[u.length-2],d=u[u.length-3],p=u[0],h=this.splitQuery(s,c);if(e=h.current,n=h.prefix,c instanceof r.TermAST)if(a=a.concat(this.fieldsCompletions()),!(f instanceof r.ModifierAST)){if(u.length>1&&!(f instanceof r.ExpressionAST)){var m=!(f instanceof r.ModifierAST&&f.isNOTModifier());a=a.concat(this.binaryOperatorsCompletions(m))}a=a.concat(this.unaryOperatorsCompletions())}var g=!(d instanceof r.MissingAST||p instanceof r.ExpressionAST);if(c instanceof r.MissingAST&&g){var v=n.charAt(n.length-1),b=n.trim().charAt(n.trim().length-1);" "!==v&&-1===["+","-","!"].indexOf(b)&&(n+=" "),a=(a=a.concat(this.fieldsCompletions())).concat(this.unaryOperatorsCompletions())}}this.filterCompletionMatches(n,e,a,o,{prefixOnly:!0}),this.filterCompletionMatches(n,e,a,o),t(o)},e.prototype.splitQuery=function(e,t){var n=new o;n.visit(t);var r=n.result(),i=new o(t);return i.visit(e),{current:r,prefix:i.result()}},e.prototype.fieldsCompletions=function(){var e=[];return this.fields.forEach(function(t){e.push(t+":"),e.push("_exists_:"+t),e.push("NOT _exists_:"+t)}),e},e.prototype.unaryOperatorsCompletions=function(){return["+","-","!","NOT"]},e.prototype.binaryOperatorsCompletions=function(e){var t=[];return t.push("&&","AND"),e&&t.push("!","NOT"),t.push("||","OR"),t},e.prototype.filterCompletionMatches=function(e,t,n,r,i){var o=this;n.forEach(function(n){var a=i&&i.prefixOnly?0===n.indexOf(t):-1!==n.indexOf(t)&&0!==n.indexOf(t);if(r.length0&&r.default.createElement(o.ListGroup,{style:{marginTop:10}},t))}}])&&l(n.prototype,a),p&&l(n,p),t}();d(p,"propTypes",{options:n.default.array,selectedOptionsType:n.default.oneOf(["string","object"]),selectedOptions:n.default.arrayOf(n.default.oneOfType([n.default.string,n.default.object])),displayKey:n.default.string,idKey:n.default.string,onChange:n.default.func,autoFocus:n.default.bool}),d(p,"defaultProps",{selectedOptionsType:"string",displayKey:"label",idKey:"value"});var h=p;exports.default=h,e.exports=exports.default},WEFywvBq:function(e,exports,t){"use strict";exports.__esModule=!0,exports.getChildMapping=r,exports.mergeChildMappings=i,exports.getInitialChildMapping=function(e,t){return r(e.children,function(r){return(0,n.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:o(r,"appear",e),enter:o(r,"enter",e),exit:o(r,"exit",e)})})},exports.getNextChildMapping=function(e,t,a){var s=r(e.children),l=i(t,s);return Object.keys(l).forEach(function(r){var i=l[r];if((0,n.isValidElement)(i)){var u=r in t,c=r in s,f=t[r],d=(0,n.isValidElement)(f)&&!f.props.in;!c||u&&!d?c||!u||d?c&&u&&(0,n.isValidElement)(f)&&(l[r]=(0,n.cloneElement)(i,{onExited:a.bind(null,i),in:f.props.in,exit:o(i,"exit",e),enter:o(i,"enter",e)})):l[r]=(0,n.cloneElement)(i,{in:!1}):l[r]=(0,n.cloneElement)(i,{onExited:a.bind(null,i),in:!0,exit:o(i,"exit",e),enter:o(i,"enter",e)})}}),l};var n=t("ivGQtwpr");function r(e,t){var r=Object.create(null);return e&&n.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=function(e){return t&&(0,n.isValidElement)(e)?t(e):e}(e)}),r}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var d=function(e){var t=s.util.contrastingColor(e);return(0,o.css)(["background-color:",";color:",";"],e,t)},p=(0,r.forwardRef)(function(e,t){var n=e.bsStyle,i=f(e,["bsStyle"]),s=(0,r.useMemo)(function(){return(0,o.default)(a.Label).withConfig({displayName:"Label",componentId:"sc-1hc4at4-0"})(["",""],(0,l.default)(d))},[n]);return r.default.createElement(s,c({bsStyle:n,ref:t},i))});p.propTypes={bsStyle:i.default.oneOf(l.bsStyles)},p.defaultProps={bsStyle:"default"};var h=p;exports.default=h,e.exports=exports.default},"X+/9fp+M":function(e,exports,t){var n=t("01cIowo7");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t("5omYMvbi")(n,r);n.locals&&(e.exports=n.locals)},"X+Gi/ucd":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hover=void 0;var n,r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function i(){var n,l,u;a(this,i);for(var c=arguments.length,f=Array(c),d=0;d2?t[2]:void 0;for(u&&i(t[0],t[1],u)&&(l=1);++n1}},{interval:"month",unit:"month",step:1,condition:function(e){return 1===e.years()||e.months()>1}},{interval:"day",unit:"date",step:2,condition:function(e){return 1===e.months()||e.days()>10}},{interval:"day",unit:"date",step:1,condition:function(e){return e.days()>3}},{interval:"hour",unit:"hour",step:12,condition:function(e){return e.days()>1}},{interval:"hour",unit:"hour",step:3,condition:function(e){return 1===e.days()}},{interval:"hour",unit:"hour",step:1,condition:function(e){return e.hours()>1}},{interval:"minute",unit:"minute",step:10,condition:function(e){return 1===e.hours()||e.minutes()>30}},{interval:"minute",unit:"minute",step:5,condition:function(e){return e.minutes()>15}},{interval:"minute",unit:"minute",step:1,condition:function(){return!0}}],customDateTimeFormat:function(e){var t=this;return void 0===e&&(e=null),function(i){var o,a;return null===e?o=new n.default(i).toMoment():(o=(0,r.default)(i)).utcOffset(e),t.dateTimeFormats.some(function(e){if(!0===e.condition(o))return a=o.format(e.formatString),!0}),a}},customTickInterval:function(e){var t=this;return void 0===e&&(e=null),function(i,o,a){var s,l,u,c,f=[];if(null===e?(s=new n.default(i).toMoment(),l=new n.default(o).toMoment()):(s=(0,r.default)(i),l=(0,r.default)(o),s.utcOffset(e),l.utcOffset(e)),!s.isValid()||!l.isValid())return f;var d=r.default.duration(l.valueOf()-s.valueOf());if(t.intervalResolutions.some(function(e){if(e.condition(d))return u=e.interval,c=e.unit,a=e.step,!0}),s.add(1,u).startOf(u),a>1)for(;s.isBefore(l);)s.get(c)%a==0&&f.push(new Date(s.valueOf())),s.add(1,u);else for(;s.isBefore(l);)f.push(new Date(s.valueOf())),s.add(1,u);return f}}};exports.default=o,e.exports=exports.default},XAlhTQ1W:function(e,exports,t){var n=t("rXvH2Tfh"),r=t("oPTuas+D"),i=t("BROiy16s"),o=t("xp3VIIRX"),a=r(function(e){return i(n(e,1,o,!0))});e.exports=a},XF7foMd5:function(e,exports,t){(function(t,n,r){!function(t){e.exports=t()}(function(){var e,i,exports;return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof _dereq_&&_dereq_;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof _dereq_&&_dereq_,a=0;a0;){var t=e.shift();if("function"==typeof t){var n=e.shift(),r=e.shift();t.call(n,r)}else t._settlePromises()}},s.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},s.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},s.prototype._reset=function(){this._isTickUsed=!1},n.exports=s,n.exports.firstLineError=r},{"./queue":26,"./schedule":29,"./util":36}],3:[function(e,t,exports){"use strict";t.exports=function(e,t,n,r){var i=!1,o=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},s=function(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},l=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){i||(i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var u=n(o),c=new e(t);c._propagateFrom(this,1);var f=this._target();if(c._setBoundTo(u),u instanceof e){var d={promiseRejectionQueued:!1,promise:c,target:f,bindingPromise:u};f._then(t,a,void 0,c,d),u._then(s,l,void 0,c,d),c._setOnCancel(u)}else c._resolveCallback(f);return c},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,exports){"use strict";var n;"undefined"!=typeof Promise&&(n=Promise);var r=e("./promise")();r.noConflict=function(){try{Promise===r&&(Promise=n)}catch(e){}return r},t.exports=r},{"./promise":22}],5:[function(e,t,exports){"use strict";var n=Object.create;if(n){var r=n(null),i=n(null);r[" size"]=i[" size"]=0}t.exports=function(t){var n=e("./util"),r=n.canEvaluate;n.isIdentifier;function i(e){return function(e,r){var i;if(null!=e&&(i=e[r]),"function"!=typeof i){var o="Object "+n.classString(e)+" has no method '"+n.toString(r)+"'";throw new t.TypeError(o)}return i}(e,this.pop()).apply(e,this)}function o(e){return e[this]}function a(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(i,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t;if("number"==typeof e)t=a;else if(r){var n=(void 0)(e);t=null!==n?n:o}else t=o;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,exports){"use strict";t.exports=function(t,n,r,i){var o=e("./util"),a=o.tryCatch,s=o.errorObj,l=t._async;t.prototype.break=t.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),l.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var n=0;n=0)return n[e]}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},r.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(void 0!==this._trace){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},r.CapturedTrace=null,r.create=function(){if(t)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=e.prototype._pushContext,o=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,l=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=o,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=l,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=i,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},r}},{}],9:[function(e,n,exports){"use strict";n.exports=function(n,r){var i,o,a,s=n._getDomain,l=n._async,u=e("./errors").Warning,c=e("./util"),f=c.canAttachTrace,d=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,p=/\((?:timers\.js):\d+:\d+\)/,h=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,m=null,g=null,v=!1,b=!(0==c.env("BLUEBIRD_DEBUG")),y=!(0==c.env("BLUEBIRD_WARNINGS")||!b&&!c.env("BLUEBIRD_WARNINGS")),w=!(0==c.env("BLUEBIRD_LONG_STACK_TRACES")||!b&&!c.env("BLUEBIRD_LONG_STACK_TRACES")),_=0!=c.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(y||!!c.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},n.prototype._ensurePossibleRejectionHandled=function(){if(0==(524288&this._bitField)){this._setRejectionIsUnhandled();var e=this;setTimeout(function(){e._notifyUnhandledRejection()},1)}},n.prototype._notifyUnhandledRejectionIsHandled=function(){W("rejectionHandled",i,void 0,this)},n.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},n.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},n.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),W("unhandledRejection",o,e,this)}},n.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},n.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},n.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},n.prototype._warn=function(e,t,n){return z(e,t,n||this)},n.onPossiblyUnhandledRejection=function(e){var t=s();o="function"==typeof e?null===t?e:c.domainBind(t,e):void 0},n.onUnhandledRejectionHandled=function(e){var t=s();i="function"==typeof e?null===t?e:c.domainBind(t,e):void 0};var x=function(){};n.longStackTraces=function(){if(l.haveItemsQueued()&&!Z.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!Z.longStackTraces&&q()){var e=n.prototype._captureStackTrace,t=n.prototype._attachExtraTrace;Z.longStackTraces=!0,x=function(){if(l.haveItemsQueued()&&!Z.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype._captureStackTrace=e,n.prototype._attachExtraTrace=t,r.deactivateLongStackTraces(),l.enableTrampoline(),Z.longStackTraces=!1},n.prototype._captureStackTrace=L,n.prototype._attachExtraTrace=N,r.activateLongStackTraces(),l.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return Z.longStackTraces&&q()};var E=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return c.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!c.global.dispatchEvent(n)}}if("function"==typeof Event){e=new Event("CustomEvent");return c.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!c.global.dispatchEvent(n)}}return(e=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),c.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!c.global.dispatchEvent(n)}}catch(e){}return function(){return!1}}(),S=c.isNode?function(){return t.emit.apply(t,arguments)}:c.global?function(e){var t="on"+e.toLowerCase(),n=c.global[t];return!!n&&(n.apply(c.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function C(e,t){return{promise:t}}var O={promiseCreated:C,promiseFulfilled:C,promiseRejected:C,promiseResolved:C,promiseCancelled:C,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:C},k=function(e){var t=!1;try{t=S.apply(null,arguments)}catch(e){l.throwLater(e),t=!0}var n=!1;try{n=E(e,O[e].apply(null,arguments))}catch(e){l.throwLater(e),n=!0}return n||t};function M(){return!1}function A(e,t,n){var r=this;try{e(t,n,function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+c.toString(e));r._attachCancellationCallback(e)})}catch(e){return e}}function T(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?c.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function P(){return this._onCancelField}function j(e){this._onCancelField=e}function R(){this._cancellationParent=void 0,this._onCancelField=void 0}function D(e,t){if(0!=(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}n.config=function(e){if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?n.longStackTraces():!e.longStackTraces&&n.hasLongStackTraces()&&x()),"warnings"in e){var t=e.warnings;Z.warnings=!!t,_=Z.warnings,c.isObject(t)&&"wForgottenReturn"in t&&(_=!!t.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!Z.cancellation){if(l.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=R,n.prototype._propagateFrom=D,n.prototype._onCancel=P,n.prototype._setOnCancel=j,n.prototype._attachCancellationCallback=T,n.prototype._execute=A,F=D,Z.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!Z.monitoring?(Z.monitoring=!0,n.prototype._fireEvent=k):!e.monitoring&&Z.monitoring&&(Z.monitoring=!1,n.prototype._fireEvent=M)),n},n.prototype._fireEvent=M,n.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(e){},n.prototype._attachCancellationCallback=function(e){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(e,t){};var F=function(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)};function I(){var e=this._boundTo;return void 0!==e&&e instanceof n?e.isFulfilled()?e.value():void 0:e}function L(){this._trace=new Y(this._peekContext())}function N(e,t){if(f(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=H(e);c.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),c.notEnumerableProp(e,"__stackCleaned__",!0)}}}function z(e,t,r){if(Z.warnings){var i,o=new u(e);if(t)r._attachExtraTrace(o);else if(Z.longStackTraces&&(i=n._peekContext()))i.attachExtraTrace(o);else{var a=H(o);o.stack=a.message+"\n"+a.stack.join("\n")}k("warning",o)||U(o,"",!0)}}function B(e){for(var t=[],n=0;n0?function(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:B(t)}}function U(e,t,n){if("undefined"!=typeof console){var r;if(c.isObject(e)){var i=e.stack;r=t+g(i,e)}else r=t+String(e);"function"==typeof a?a(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function W(e,t,n,r){var i=!1;try{"function"==typeof t&&(i=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(e){l.throwLater(e)}"unhandledRejection"===e?k(e,n,r)||i||U(n,"Unhandled rejection "):k(e,r)}function G(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{t=e&&"function"==typeof e.toString?e.toString():c.toString(e);if(/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+function(e){if(e.length<41)return e;return e.substr(0,38)+"..."}(t)+">, no stack trace)"}function q(){return"function"==typeof X}var V=function(){return!1},K=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Q(e){var t=e.match(K);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function Y(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);X(this,Y),t>32&&this.uncycle()}c.inherits(Y,Error),r.CapturedTrace=Y,Y.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,i=this;void 0!==i;++r)t.push(i),i=i._parent;for(r=(e=this._length=r)-1;r>=0;--r){var o=t[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r0&&(t[a-1]._parent=void 0,t[a-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var s=r>0?t[r-1]:this;a=0;--u)t[u]._length=l,l++;return}}}},Y.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=H(e),n=t.message,r=[t.stack],i=this;void 0!==i;)r.push(B(i.stack.split("\n"))),i=i._parent;!function(e){for(var t=e[0],n=1;n=0;--s)if(r[s]===o){a=s;break}for(s=a;s>=0;--s){var l=r[s];if(t[i]!==l)break;t.pop(),i--}t=r}}(r),function(e){for(var t=0;t=0)return m=/@/,g=t,v=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(e){r="stack"in e}return"stack"in i||!r||"number"!=typeof Error.stackTraceLimit?(g=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?G(t):t.toString()},null):(m=e,g=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(a=function(e){console.warn(e)},c.isNode&&t.stderr.isTTY?a=function(e,t){var n=t?"":"";console.warn(n+e+"\n")}:c.isNode||"string"!=typeof(new Error).stack||(a=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var Z={warnings:y,longStackTraces:!1,cancellation:!1,monitoring:!1};return w&&n.longStackTraces(),{longStackTraces:function(){return Z.longStackTraces},warnings:function(){return Z.warnings},cancellation:function(){return Z.cancellation},monitoring:function(){return Z.monitoring},propagateFromFunction:function(){return F},boundValueFunction:function(){return I},checkForgottenReturns:function(e,t,n,r,i){if(void 0===e&&null!==t&&_){if(void 0!==i&&i._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var o="",a="";if(t._trace){for(var s=t._trace.stack.split("\n"),l=B(s),u=l.length-1;u>=0;--u){var c=l[u];if(!p.test(c)){var f=c.match(h);f&&(o="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(l.length>0){var d=l[0];for(u=0;u0&&(a="\n"+s[u-1]);break}}}var m="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(m,!0,t)}},setBounds:function(e,t){if(q()){for(var n,r,i=e.stack.split("\n"),o=t.stack.split("\n"),a=-1,s=-1,l=0;l=s||(V=function(e){if(d.test(e))return!0;var t=Q(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}},warn:z,deprecated:function(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),z(n)},CapturedTrace:Y,fireDomEvent:E,fireGlobalEvent:S}}},{"./errors":12,"./util":36}],10:[function(e,t,exports){"use strict";t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1],r=function(){throw t};return this.caught(e,r)},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];r instanceof e&&r.suppressUnhandledRejections();var i=function(){return r};return this.caught(n,i)}}},{}],11:[function(e,t,exports){"use strict";t.exports=function(e,t){var n=e.reduce,r=e.all;function i(){return r(this)}e.prototype.each=function(e){return n(this,e,t,0)._then(i,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return n(this,e,t,t)},e.each=function(e,r){return n(e,r,t,0)._then(i,void 0,void 0,e,void 0)},e.mapSeries=function(e,r){return n(e,r,t,t)}}},{}],12:[function(e,t,exports){"use strict";var n,r,i=e("./es5"),o=i.freeze,a=e("./util"),s=a.inherits,l=a.notEnumerableProp;function u(e,t){function n(r){if(!(this instanceof n))return new n(r);l(this,"message","string"==typeof r?r:t),l(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return s(n,Error),n}var c=u("Warning","warning"),f=u("CancellationError","cancellation error"),d=u("TimeoutError","timeout error"),p=u("AggregateError","aggregate error");try{n=TypeError,r=RangeError}catch(e){n=u("TypeError","type error"),r=u("RangeError","range error")}for(var h="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),m=0;m1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function f(){return p.call(this,this.promise._target()._settledValue())}function d(e){if(!c(this,e))return a.e=e,a}function p(e){var i=this.promise,s=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?s.call(i._boundValue()):s.call(i._boundValue(),e);if(l===r)return l;if(void 0!==l){i._setReturnedNonUndefined();var p=n(l,i);if(p instanceof t){if(null!=this.cancelPromise){if(p._isCancelled()){var h=new o("late cancellation observer");return i._attachExtraTrace(h),a.e=h,a}p.isPending()&&p._attachCancellationCallback(new u(this))}return p._then(f,d,void 0,this,void 0)}}}return i.isRejected()?(c(this),a.e=e,a):(c(this),e)}return l.prototype.isFinallyHandler=function(){return 0===this.type},u.prototype._resultCancelled=function(){c(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!=typeof e?this.then():this._then(n,r,void 0,new l(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,p,p)},t.prototype.tap=function(e){return this._passThrough(e,1,p)},t.prototype.tapCatch=function(e){var n=arguments.length;if(1===n)return this._passThrough(e,1,void 0,p);var r,o=new Array(n-1),a=0;for(r=0;r0&&"function"==typeof arguments[t]&&(e=arguments[t]);var r=[].slice.call(arguments);e&&r.pop();var i=new n(r).promise();return void 0!==e?i.spread(e):i}}},{"./util":36}],18:[function(e,t,exports){"use strict";t.exports=function(t,n,r,i,o,a){var s=t._getDomain,l=e("./util"),u=l.tryCatch,c=l.errorObj,f=t._async;function d(e,t,n,r){this.constructor$(e),this._promise._captureStackTrace();var i=s();this._callback=null===i?t:l.domainBind(i,t),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],f.invoke(this._asyncInit,this,void 0)}function p(e,n,i,o){if("function"!=typeof n)return r("expecting a function but got "+l.classString(n));var a=0;if(void 0!==i){if("object"!=typeof i||null===i)return t.reject(new TypeError("options argument must be an object but it is "+l.classString(i)));if("number"!=typeof i.concurrency)return t.reject(new TypeError("'concurrency' must be a number but it is "+l.classString(i.concurrency)));a=i.concurrency}return new d(e,n,a="number"==typeof a&&isFinite(a)&&a>=1?a:0,o).promise()}l.inherits(d,n),d.prototype._asyncInit=function(){this._init$(void 0,-2)},d.prototype._init=function(){},d.prototype._promiseFulfilled=function(e,n){var r=this._values,o=this.length(),s=this._preservedValues,l=this._limit;if(n<0){if(r[n=-1*n-1]=e,l>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(l>=1&&this._inFlight>=l)return r[n]=e,this._queue.push(n),!1;null!==s&&(s[n]=e);var f=this._promise,d=this._callback,p=f._boundValue();f._pushContext();var h=u(d).call(p,e,n,o),m=f._popContext();if(a.checkForgottenReturns(h,m,null!==s?"Promise.filter":"Promise.map",f),h===c)return this._reject(h.e),!0;var g=i(h,this._promise);if(g instanceof t){var v=(g=g._target())._bitField;if(0==(50397184&v))return l>=1&&this._inFlight++,r[n]=g,g._proxy(this,-1*(n+1)),!1;if(0==(33554432&v))return 0!=(16777216&v)?(this._reject(g._reason()),!0):(this._cancel(),!0);h=g._value()}r[n]=h}return++this._totalResolved>=o&&(null!==s?this._filter(r,s):this._resolve(r),!0)},d.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight1){o.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],c=arguments[2];r=a.isArray(u)?s(e).apply(c,u):s(e).call(c,u)}else r=s(e)();var f=l._popContext();return o.checkForgottenReturns(r,f,"Promise.try",l),l._resolveFromSyncValue(r),l},t.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,exports){"use strict";var n=e("./util"),r=n.maybeWrapAsError,i=e("./errors").OperationalError,o=e("./es5");var a=/^(?:name|message|stack|cause)$/;function s(e){var t;if(function(e){return e instanceof Error&&o.getPrototypeOf(e)===Error.prototype}(e)){(t=new i(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var r=o.keys(e),s=0;s1){var n,r=new Array(t-1),i=0;for(n=0;n0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+u.classString(e);arguments.length>1&&(n+=", "+u.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},A.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},A.prototype.spread=function(e){return"function"!=typeof e?o("expecting a function but got "+u.classString(e)):this.all()._then(e,void 0,void 0,v,void 0)},A.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},A.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new w(this).promise()},A.prototype.error=function(e){return this.caught(u.originatesFromRejection,e)},A.getNewLibraryCopy=n.exports,A.is=function(e){return e instanceof A},A.fromNode=A.fromCallback=function(e){var t=new A(g);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=M(e)(O(t,n));return r===k&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},A.all=function(e){return new w(e).promise()},A.cast=function(e){var t=y(e);return t instanceof A||((t=new A(g))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},A.resolve=A.fulfilled=A.cast,A.reject=A.rejected=function(e){var t=new A(g);return t._captureStackTrace(),t._rejectCallback(e,!0),t},A.setScheduler=function(e){if("function"!=typeof e)throw new h("expecting a function but got "+u.classString(e));return d.setScheduler(e)},A.prototype._then=function(e,t,n,r,i){var o=void 0!==i,a=o?i:new A(g),l=this._target(),c=l._bitField;o||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&c)?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var f=s();if(0!=(50397184&c)){var p,h,v=l._settlePromiseCtx;0!=(33554432&c)?(h=l._rejectionHandler0,p=e):0!=(16777216&c)?(h=l._fulfillmentHandler0,p=t,l._unsetRejectionIsUnhandled()):(v=l._settlePromiseLateCancellationObserver,h=new m("late cancellation observer"),l._attachExtraTrace(h),p=t),d.invoke(v,l,{handler:null===f?p:"function"==typeof p&&u.domainBind(f,p),promise:a,receiver:r,value:h})}else l._addCallbacks(e,t,a,r,f);return a},A.prototype._length=function(){return 65535&this._bitField},A.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},A.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},A.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},A.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},A.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},A.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},A.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},A.prototype._isFinal=function(){return(4194304&this._bitField)>0},A.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},A.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},A.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},A.prototype._setAsyncGuaranteed=function(){d.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},A.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==l)return void 0===t&&this._isBound()?this._boundValue():t},A.prototype._promiseAt=function(e){return this[4*e-4+2]},A.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},A.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},A.prototype._boundValue=function(){},A.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,r=e._promise0,i=e._receiverAt(0);void 0===i&&(i=l),this._addCallbacks(t,n,r,i,null)},A.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),i=e._promiseAt(t),o=e._receiverAt(t);void 0===o&&(o=l),this._addCallbacks(n,r,i,o,null)},A.prototype._addCallbacks=function(e,t,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof e&&(this._fulfillmentHandler0=null===i?e:u.domainBind(i,e)),"function"==typeof t&&(this._rejectionHandler0=null===i?t:u.domainBind(i,t));else{var a=4*o-4;this[a+2]=n,this[a+3]=r,"function"==typeof e&&(this[a+0]=null===i?e:u.domainBind(i,e)),"function"==typeof t&&(this[a+1]=null===i?t:u.domainBind(i,t))}return this._setLength(o+1),o},A.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},A.prototype._resolveCallback=function(e,t){if(0==(117506048&this._bitField)){if(e===this)return this._rejectCallback(r(),!1);var n=y(e,this);if(!(n instanceof A))return this._fulfill(e);t&&this._propagateFrom(n,2);var i=n._target();if(i!==this){var o=i._bitField;if(0==(50397184&o)){var a=this._length();a>0&&i._migrateCallback0(this);for(var s=1;s>>16)){if(e===this){var n=r();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!=(134217728&t)?this._settlePromises():d.settlePromises(this))}},A.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return d.fatalError(e,u.isNode);(65535&t)>0?d.settlePromises(this):this._ensurePossibleRejectionHandled()}},A.prototype._fulfillPromises=function(e,t){for(var n=1;n0){if(0!=(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},A.prototype._settledValue=function(){var e=this._bitField;return 0!=(33554432&e)?this._rejectionHandler0:0!=(16777216&e)?this._fulfillmentHandler0:void 0},A.defer=A.pending=function(){return E.deprecated("Promise.defer","new Promise"),{promise:new A(g),resolve:T,reject:P}},u.notEnumerableProp(A,"_makeSelfResolutionError",r),e("./method")(A,g,y,o,E),e("./bind")(A,g,y,E),e("./cancel")(A,w,o,E),e("./direct_resolve")(A),e("./synchronous_inspection")(A),e("./join")(A,w,y,g,d,s),A.Promise=A,A.version="3.5.1",e("./map.js")(A,w,o,y,g,E),e("./call_get.js")(A),e("./using.js")(A,o,y,x,g,E),e("./timers.js")(A,g,E),e("./generators.js")(A,o,g,y,a,E),e("./nodeify.js")(A),e("./promisify.js")(A,g),e("./props.js")(A,w,y,o),e("./race.js")(A,g,y,o),e("./reduce.js")(A,w,o,y,g,E),e("./settle.js")(A,w,E),e("./some.js")(A,w,o),e("./filter.js")(A,g),e("./each.js")(A,g),e("./any.js")(A),u.toFastProperties(A),u.toFastProperties(A.prototype),j({a:1}),j({b:2}),j({c:3}),j(1),j(function(){}),j(void 0),j(!1),j(new A(g)),E.setBounds(f.firstLineError,u.lastLineError),A}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(e,t,exports){"use strict";t.exports=function(t,n,r,i,o){var a=e("./util");a.isArray;function s(e){var r=this._promise=new t(n);e instanceof t&&r._propagateFrom(e,3),r._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function e(n,o){var s=r(this._values,this._promise);if(s instanceof t){var l=(s=s._target())._bitField;if(this._values=s,0==(50397184&l))return this._promise._setAsyncGuaranteed(),s._then(e,this._reject,void 0,this,o);if(0==(33554432&l))return 0!=(16777216&l)?this._reject(s._reason()):this._cancel();s=s._value()}if(null!==(s=a.asArray(s)))0!==s.length?this._iterate(s):-5===o?this._resolveEmptyArray():this._resolve(function(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}(o));else{var u=i("expecting an array or an iterable object but got "+a.classString(s)).reason();this._promise._rejectCallback(u,!1)}},s.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,a=null,s=0;s=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n=this._length){var n;if(this._isMap)n=function(e){for(var t=new o,n=e.length/2|0,r=0;r>1},t.prototype.props=function(){return f(this)},t.props=function(e){return f(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,exports){"use strict";function n(e){this._capacity=e,this._length=0,this._front=0}n.prototype._willBeOverCapacity=function(e){return this._capacity=this._length&&(this._resolve(this._values),!0)},o.prototype._promiseFulfilled=function(e,t){var n=new i;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},o.prototype._promiseRejected=function(e,t){var n=new i;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return r.deprecated(".settle()",".reflect()"),new o(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,exports){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=e("./errors").RangeError,a=e("./errors").AggregateError,s=i.isArray,l={};function u(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function c(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new u(e),i=n.promise();return n.setHowMany(t),n.init(),i}i.inherits(u,n),u.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=s(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(e){this._howMany=e},u.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},u.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new a,t=this.length();t0?this._reject(e):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(e){this._values.push(e)},u.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new o(t)},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return c(e,t)},t.prototype.some=function(e){return c(this,e)},t._SomePromiseArray=u}},{"./errors":12,"./util":36}],32:[function(e,t,exports){"use strict";t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),r.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,exports){"use strict";t.exports=function(t,n){var r=e("./util"),i=r.errorObj,o=r.isObject;var a={}.hasOwnProperty;return function(e,s){if(o(e)){if(e instanceof t)return e;var l=function(e){try{return function(e){return e.then}(e)}catch(e){return i.e=e,i}}(e);if(l===i){s&&s._pushContext();var u=t.reject(l.e);return s&&s._popContext(),u}if("function"==typeof l){if(function(e){try{return a.call(e,"_promise0")}catch(e){return!1}}(e)){u=new t(n);return e._then(u._fulfill,u._reject,void 0,u,null),u}return function(e,o,a){var s=new t(n),l=s;a&&a._pushContext();s._captureStackTrace(),a&&a._popContext();var u=!0,c=r.tryCatch(o).call(e,function(e){if(!s)return;s._resolveCallback(e),s=null},function(e){if(!s)return;s._rejectCallback(e,u,!0),s=null});u=!1,s&&c===i&&(s._rejectCallback(c.e,!0,!0),s=null);return l}(e,l,s)}}return e}}},{"./util":36}],34:[function(e,t,exports){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=t.TimeoutError;function a(e){this.handle=e}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(e){return l(+this).thenReturn(e)},l=t.delay=function(e,i){var o,l;return void 0!==i?(o=t.resolve(i)._then(s,null,null,e,void 0),r.cancellation()&&i instanceof t&&o._setOnCancel(i)):(o=new t(n),l=setTimeout(function(){o._fulfill()},+e),r.cancellation()&&o._setOnCancel(new a(l)),o._captureStackTrace()),o._setAsyncGuaranteed(),o};t.prototype.delay=function(e){return l(e,this)};function u(e){return clearTimeout(this.handle),e}function c(e){throw clearTimeout(this.handle),e}t.prototype.timeout=function(e,t){var n,s;e=+e;var l=new a(setTimeout(function(){n.isPending()&&function(e,t,n){var r;r="string"!=typeof t?t instanceof Error?t:new o("operation timed out"):new o(t),i.markAsOriginatingFromRejection(r),e._attachExtraTrace(r),e._reject(r),null!=n&&n.cancel()}(n,t,s)},e));return r.cancellation()?(s=this.then(),(n=s._then(u,c,void 0,l,void 0))._setOnCancel(l)):n=this._then(u,c,void 0,l,void 0),n}}},{"./util":36}],35:[function(e,t,exports){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./util"),l=e("./errors").TypeError,u=e("./util").inherits,c=s.errorObj,f=s.tryCatch,d={};function p(e){setTimeout(function(){throw e},0)}function h(e,n){var i=0,a=e.length,s=new t(o);return function o(){if(i>=a)return s._fulfill();var l=function(e){var t=r(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}(e[i++]);if(l instanceof t&&l._isDisposable()){try{l=r(l._getDisposer().tryDispose(n),e.promise)}catch(e){return p(e)}if(l instanceof t)return l._then(o,p,null,null,null)}o()}(),s}function m(e,t,n){this._data=e,this._promise=t,this._context=n}function g(e,t,n){this.constructor$(e,t,n)}function v(e){return m.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function b(e){this.length=e,this.promise=null,this[e-1]=null}m.prototype.data=function(){return this._data},m.prototype.promise=function(){return this._promise},m.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():d},m.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=t!==d?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},m.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},u(g,m),g.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},b.prototype._resultCancelled=function(){for(var e=this.length,n=0;n0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"==typeof e)return new g(e,this,i());throw new l}}},{"./errors":12,"./util":36}],36:[function(e,r,exports){"use strict";var i=e("./es5"),o="undefined"==typeof navigator,a={e:{}},s,l="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:void 0!==this?this:null;function u(){try{var e=s;return s=null,e.apply(this,arguments)}catch(e){return a.e=e,a}}function c(e){return s=e,u}var f=function(e,t){var n={}.hasOwnProperty;function r(){for(var r in this.constructor=e,this.constructor$=t,t.prototype)n.call(t.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=t.prototype[r])}return r.prototype=t.prototype,e.prototype=new r,e.prototype};function d(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function p(e){return"function"==typeof e||"object"==typeof e&&null!==e}function h(e){return d(e)?new Error(O(e)):e}function m(e,t){var n,r=e.length,i=new Array(r+1);for(n=0;n1,r=t.length>0&&!(1===t.length&&"constructor"===t[0]),o=w.test(e+"")&&i.names(e).length>0;if(n||r||o)return!0}return!1}catch(e){return!1}}function x(e){function t(){}t.prototype=e;for(var n=8;n--;)new t;return e}var E=/^[a-z$_][a-z$_0-9]*$/i;function S(e){return E.test(e)}function C(e,t,n){for(var r=new Array(e),i=0;i10||U[0]>0),H.isNode&&H.toFastProperties(t);try{throw new Error}catch(e){H.lastLineError=e}r.exports=H},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(this,t("JtWfgI3/"),t("aY11sVfy"),t("6aqzefQH").setImmediate)},XIxdQj5o:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r=(n=t("nXSFNspX"))&&n.__esModule?n:{default:n};var i=!1,o={init:function(){i||((0,r.default)("#scroll-to-search-hint, #scroll-to-search-hint i").on("click",function(){(0,r.default)("html, body").animate({scrollTop:0},"fast")}),i=!0)},escape:function(e){return e.replace(/(&&|\|\||[:\\\/\+\-!\(\)\{\}\[\]\^"~*\?])/g,"\\$&")},_query:function(){return(0,r.default)("#universalsearch-query")},setQuery:function(e){var t=this._query();t.val(e),t.effect("bounce"),this.scrollToSearchbarHint()},getQuery:function(){return this._query().val()},submit:function(){(0,r.default)("#universalsearch form").submit()},createSourceQuery:function(e){return"source:".concat(this.escape(e))},queryContainsSegment:function(e){return this.getQuery().split(" ").some(function(t){return t===e})},addSegment:function(e,t){var n=this.getQuery();if(!this.queryContainsSegment(e)){"*"===n&&(n="");var r="";void 0!==t&&""!==n&&(r="".concat(n," ").concat(t," ")),r+=e,this.setQuery(r)}},andOperator:function(){return"AND"},orOperator:function(){return"OR"},notOperator:function(){return"NOT"},scrollToSearchbarHint:function(){(0,r.default)(document).scrollTop()>50&&(0,r.default)("#scroll-to-search-hint").fadeIn("fast").delay(1500).fadeOut("fast")},substringMatcher:function(e,t,n){return function(r,i){var o=[];e.forEach(function(e){if(o.length0&&r.default.createElement("dt",null,"Routed into streams"),t.size>0&&r.default.createElement("dd",{className:"stream-list"},r.default.createElement("ul",null,n)))),r.default.createElement(s.Col,{md:9},r.default.createElement("div",null,r.default.createElement(f.default,{message:this.props.message,renderForDisplay:this.props.renderForDisplay,disableFieldActions:this.props.disableFieldActions,customFieldActions:this.props.customFieldActions,showDecoration:this.state.showOriginal})))))}}])&&g(n.prototype,u),h&&g(n,h),t}();w(x,"propTypes",{allStreams:n.default.object,allStreamsLoaded:n.default.bool,disableTestAgainstStream:n.default.bool,disableSurroundingSearch:n.default.bool,expandAllRenderAsync:n.default.bool,showTimestamp:n.default.bool,disableFieldActions:n.default.bool,renderForDisplay:n.default.func,inputs:n.default.object,nodes:n.default.object,message:n.default.object,streams:n.default.object,customFieldActions:n.default.node,searchConfig:n.default.object,disableMessageActions:n.default.bool});var E=x;exports.default=E,e.exports=exports.default},"XRyyvV+4":function(e,exports,t){e.exports=t.p+"5e7d6ad224fc6f9c54fabab5cfb64127.js"},XaKrCOaP:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CircleSwatch=void 0;var n=a(t("ivGQtwpr")),r=t("zGS59GCK"),i=a(r),o=t("50Juodil");function a(e){return e&&e.__esModule?e:{default:e}}var s=exports.CircleSwatch=function(e){var t=e.color,r=e.onClick,a=e.onSwatchHover,s=e.hover,l=e.active,u=e.circleSize,c=e.circleSpacing,f=(0,i.default)({default:{swatch:{width:u,height:u,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+u/2+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:s,active:l});return n.default.createElement("div",{style:f.swatch},n.default.createElement(o.Swatch,{style:f.Swatch,color:t,onClick:r,onHover:a,focusStyle:{boxShadow:f.Swatch.boxShadow+", 0 0 5px "+t}}))};s.defaultProps={circleSize:28,circleSpacing:14},exports.default=(0,r.handleHover)(s)},XbJIAQJx:function(e,exports,t){var n=t("eXnMMeS9");e.exports=function(e){return n(this,e).has(e)}},"Xg/rnC81":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){n||((n=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");return n};var n=void 0},XgCIusGB:function(e,exports,t){var n=t("CzXCwJO7"),r=t("KoX0lWTH"),i=t("HJaIYHi4"),o=t("hgg5N7gh");e.exports=function(e){return i(e)?n(o(e)):r(e)}},Xk9JTWJR:function(e,exports,t){e.exports=t.p+"6fda934fe38a53b6ea7dae4de058f6c7.js"},XrQdyzHl:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useTheme=function(){return(0,n.useContext)(u)},exports.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(t("ivGQtwpr")),r=s(t("ii0bleBb")),i=t("KX2Ezx4E"),o=s(t("vQSmUFCW")),a=s(t("qAPAV+Vm"));function s(e){return e&&e.__esModule?e:{default:e}}var l={colors:o.default},u=(0,n.createContext)(l);var c=function(e){var t=e.children;return n.default.createElement(u.Provider,{value:l},n.default.createElement(a.default,null),n.default.createElement(i.ThemeProvider,{theme:{mode:"teinte"}},t))};c.propTypes={children:r.default.any.isRequired};var f=c;exports.default=f},XroQk7b7:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SliderPointer=void 0;var n=i(t("ivGQtwpr")),r=i(t("zGS59GCK"));function i(e){return e&&e.__esModule?e:{default:e}}var o=exports.SliderPointer=function(){var e=(0,r.default)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return n.default.createElement("div",{style:e.picker})};exports.default=o},"XxwSFus+":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PhotoshopButton=void 0;var n=i(t("ivGQtwpr")),r=i(t("zGS59GCK"));function i(e){return e&&e.__esModule?e:{default:e}}var o=exports.PhotoshopButton=function(e){var t=e.onClick,i=e.label,o=e.children,a=e.active,s=(0,r.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return n.default.createElement("div",{style:s.button,onClick:t},i||o)};exports.default=o},"Y2k8MD7+":function(e,exports,t){var n=t("c9pzQvgA"),r="__lodash_hash_undefined__";e.exports=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&void 0===t?r:t,this}},Y83tbrdm:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SketchFields=void 0;var n=a(t("ivGQtwpr")),r=a(t("zGS59GCK")),i=a(t("kOI9bxm6")),o=t("50Juodil");function a(e){return e&&e.__esModule?e:{default:e}}var s=exports.SketchFields=function(e){var t=e.onChange,a=e.rgb,s=e.hsl,l=e.hex,u=e.disableAlpha,c=(0,r.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:u}),f=function(e,n){e.hex?i.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):e.r||e.g||e.b?t({r:e.r||a.r,g:e.g||a.g,b:e.b||a.b,a:a.a,source:"rgb"},n):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:s.h,s:s.s,l:s.l,a:e.a,source:"rgb"},n))};return n.default.createElement("div",{style:c.fields,className:"flexbox-fix"},n.default.createElement("div",{style:c.double},n.default.createElement(o.EditableInput,{style:{input:c.input,label:c.label},label:"hex",value:l.replace("#",""),onChange:f})),n.default.createElement("div",{style:c.single},n.default.createElement(o.EditableInput,{style:{input:c.input,label:c.label},label:"r",value:a.r,onChange:f,dragLabel:"true",dragMax:"255"})),n.default.createElement("div",{style:c.single},n.default.createElement(o.EditableInput,{style:{input:c.input,label:c.label},label:"g",value:a.g,onChange:f,dragLabel:"true",dragMax:"255"})),n.default.createElement("div",{style:c.single},n.default.createElement(o.EditableInput,{style:{input:c.input,label:c.label},label:"b",value:a.b,onChange:f,dragLabel:"true",dragMax:"255"})),n.default.createElement("div",{style:c.alpha},n.default.createElement(o.EditableInput,{style:{input:c.input,label:c.label},label:"a",value:Math.round(100*a.a),onChange:f,dragLabel:"true",dragMax:"100"})))};exports.default=s},YAR455zy:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=p(t("ii0bleBb")),r=p(t("ivGQtwpr")),i=p(t("PcYM+wZ7")),o=p(t("4KF7VOU5")),a=t("os2pWP01"),s=t("qOZsORvD"),l=t("mGX5yrPY"),u=p(t("7QAbkgSv")),c=p(t("1SPPmkhJ")),f=p(t("Maji1yex")),d=p(t("fZ4OAAo6"));function p(e){return e&&e.__esModule?e:{default:e}}var h=u.default.getStore("Decorators"),m=u.default.getStore("CurrentUser"),g=c.default.getActions("Decorators"),v=(0,i.default)({displayName:"Decorator",propTypes:{decorator:n.default.object.isRequired,typeDefinition:n.default.object.isRequired},mixins:[o.default.connect(h),o.default.connect(m),f.default],componentDidMount:function(){g.available()},_handleDeleteClick:function(){window.confirm("Do you really want to delete this decorator?")&&g.remove(this.props.decorator.id)},_handleEditClick:function(){this.editForm.open()},_handleSubmit:function(e){g.update(this.props.decorator.id,{type:e.type,config:e.configuration,order:this.props.decorator.order,stream:this.props.decorator.stream})},_decoratorTypeNotPresent:function(){return{name:"Unknown decorator type"}},_resolveConfigurationIds:function(e){var t=this.props.typeDefinition.requested_configuration,n={};return Object.keys(e).forEach(function(r){var i=t[r]?t[r].additional_info.values:void 0,o=e[r];i&&i[o]&&(n[r]=i[o])}),Object.assign({},e,n)},_formatActionsMenu:function(){var e=this.state.currentUser.permissions,t=this.props.decorator,n=this.isPermitted(e,"decorators:edit:".concat(t.stream));return r.default.createElement(a.DropdownButton,{id:"decorator-".concat(t.id,"-actions"),bsStyle:"default",bsSize:"xsmall",title:"Actions",pullRight:!0},r.default.createElement(a.MenuItem,{onSelect:this._handleEditClick,disabled:!n},"Edit"),r.default.createElement(a.MenuItem,{divider:!0}),r.default.createElement(a.MenuItem,{onSelect:this._handleDeleteClick,disabled:!n},"Delete"))},render:function(){var e=this;if(!this.state.types||!this.state.currentUser)return r.default.createElement(s.Spinner,null);var t=this.props.decorator,n=this._resolveConfigurationIds(t.config),i=this.state.types[t.type]||this._decoratorTypeNotPresent(),o=this._formatActionsMenu();return r.default.createElement("span",{className:d.default.fixedWidth},r.default.createElement("div",{className:d.default.decoratorBox},r.default.createElement("h6",{className:d.default.decoratorType},i.name),o),r.default.createElement(l.ConfigurationWell,{key:"configuration-well-decorator-".concat(t.id),id:t.id,configuration:n,typeDefinition:this.props.typeDefinition}),r.default.createElement(l.ConfigurationForm,{ref:function(t){e.editForm=t},key:"configuration-form-decorator",configFields:this.props.typeDefinition.requested_configuration,title:"Edit ".concat(this.props.typeDefinition.name),typeName:t.type,includeTitleField:!1,submitAction:this._handleSubmit,cancelAction:this._handleCancel,values:t.config}))}});exports.default=v,e.exports=exports.default},YFjXGkXd:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){u.forEach(function(t){return delete e[t]})}(i),i.className=this.props.inputClassName,i.id=this.state.inputId,i.style=r,o.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),o.default.createElement("input",n({},i,{ref:this.inputRef})),o.default.createElement("div",{ref:this.sizerRef,style:l},e),this.props.placeholder?o.default.createElement("div",{ref:this.placeHolderSizerRef,style:l},this.props.placeholder):null)}}]),t}();p.propTypes={className:a.default.string,defaultValue:a.default.any,extraWidth:a.default.oneOfType([a.default.number,a.default.string]),id:a.default.string,injectStyles:a.default.bool,inputClassName:a.default.string,inputRef:a.default.func,inputStyle:a.default.object,minWidth:a.default.oneOfType([a.default.number,a.default.string]),onAutosize:a.default.func,onChange:a.default.func,placeholder:a.default.string,placeholderIsMinWidth:a.default.bool,style:a.default.object,value:a.default.any},p.defaultProps={minWidth:1,injectStyles:!0},exports.default=p},YHdXwNS6:function(e,exports,t){var n=t("mKUXduhk"),r=t("oPTuas+D"),i=t("xp3VIIRX"),o=r(function(e,t){return i(e)?n(e,t):[]});e.exports=o},YHpEP8Ka:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={container:"DayPicker",interactionDisabled:"DayPicker--interactionDisabled",month:"DayPicker-Month",navBar:"DayPicker-NavBar",navButtonPrev:"DayPicker-NavButton DayPicker-NavButton--prev",navButtonNext:"DayPicker-NavButton DayPicker-NavButton--next",caption:"DayPicker-Caption",weekdays:"DayPicker-Weekdays",weekdaysRow:"DayPicker-WeekdaysRow",weekday:"DayPicker-Weekday",body:"DayPicker-Body",week:"DayPicker-Week",weekNumber:"DayPicker-WeekNumber",day:"DayPicker-Day",footer:"DayPicker-Footer",todayButton:"DayPicker-TodayButton",today:"today",selected:"selected",disabled:"disabled",outside:"outside"}},YJ59ZD8q:function(e,exports,t){"use strict";exports.__esModule=!0,exports.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=exports.default},YVqryWBP:function(e,exports,t){"use strict";["json","lua","markdown","text","yaml"].forEach(function(e){ace.config.setModuleUrl("ace/mode/"+e,t("ABOTRtZ+")("./mode-"+e+".js"))}),ace.config.setModuleUrl("ace/mode/pipeline",t("0hmLO0g2"));["tomorrow","monokai"].forEach(function(e){ace.config.setModuleUrl("ace/theme/"+e,t("9V62RavX")("./theme-"+e+".js"))})},YYSBmju5:function(e,exports,t){e.exports=t.p+"989723e418e4ebacd2ee51f8f2ed0976.js"},Yb0CWKWw:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SliderSwatch=void 0;var n=i(t("ivGQtwpr")),r=i(t("zGS59GCK"));function i(e){return e&&e.__esModule?e:{default:e}}var o=exports.SliderSwatch=function(e){var t=e.hsl,i=e.offset,o=e.onClick,a=void 0===o?function(){}:o,s=e.active,l=e.first,u=e.last,c=(0,r.default)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*i+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:s,first:l,last:u});return n.default.createElement("div",{style:c.swatch,onClick:function(e){return a({h:t.h,s:.5,l:i,source:"hsl"},e)}})};exports.default=o},Yd6izeow:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=u(t("ii0bleBb")),r=u(t("ivGQtwpr")),i=u(t("PcYM+wZ7")),o=u(t("DJcN75oM")),a=u(t("y6gqf0G9")),s=t("DlhHh5IY"),l=t("qwOa7NSh");function u(e){return e&&e.__esModule?e:{default:e}}var c=(0,i.default)({displayName:"AlertListForm",propTypes:{onSubmit:n.default.func.isRequired},contextTypes:{intl:n.default.object.isRequired},mixins:[o.default],componentWillMount:function(){var e={placeholderTitle:this.context.intl.formatMessage({id:"wizard.placeholderCloneTitleList",defaultMessage:"A descriptive name of the new alert list"})};this.setState({messages:e})},getInitialState:function(){return{title:"",description:""}},_resetValues:function(){this.setState({title:""}),this.setState({description:""})},_onSubmit:function(){this.props.onSubmit(this.state.origTitle,this.state.title,this.state.description),this.refs.modal.close()},open:function(e){this.setState({origTitle:e}),this._resetValues(),this.refs.modal.open()},close:function(){this.refs.modal.close()},_onValueChanged:function(e){var t,n,r;this.setState((t={},n=e.target.name,r=e.target.value,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))},render:function(){return r.default.createElement(a.default,{ref:"modal",title:r.default.createElement(l.FormattedMessage,{id:"wizard.cloneList",defaultMessage:'Cloning List "{title}"',values:{title:this.state.origTitle}}),onSubmitForm:this._onSubmit,cancelButtonText:r.default.createElement(l.FormattedMessage,{id:"wizard.cancel",defaultMessage:"Cancel"}),submitButtonText:r.default.createElement(l.FormattedMessage,{id:"wizard.save",defaultMessage:"Save"})},r.default.createElement(s.Input,{id:"title",type:"text",required:!0,label:r.default.createElement(l.FormattedMessage,{id:"wizard.title",defaultMessage:"Title"}),name:"title",placeholder:this.state.messages.placeholderTitle,onChange:this._onValueChanged,autoFocus:!0}),r.default.createElement(s.Input,{id:"description",type:"text",label:r.default.createElement(l.FormattedMessage,{id:"wizard.fieldDescription",defaultMessage:"Description"}),name:"description",onChange:this._onValueChanged}))}});exports.default=c,e.exports=exports.default},YlcrQHnq:function(e,t,n){"use strict";n.r(t);var r=n("8cmQSZtb"),i=n("xdIRcjwj"),o=n.n(i),a=n("ivGQtwpr"),s=n.n(a),l=Object(a.createContext)({}),u=function(){return Object(a.useContext)(l)},c=l.Consumer,f=l.Provider,d=function(e){var t=function(t,n){return s.a.createElement(c,null,function(i){return s.a.createElement(e,Object(r.default)({},t,{leaflet:i,ref:n}))})},n=e.displayName||e.name||"Component";t.displayName="Leaflet("+n+")";var i=Object(a.forwardRef)(t);return o()(i,e),i},p=n("I4/vmcFU"),h=n("3RrbUtVX"),m=n("ye8DUcb2");function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){function t(t){var n;return n=e.call(this,t)||this,g(Object(m.default)(n),"leafletElement",void 0),n.leafletElement=n.createLeafletElement(n.props),n}Object(p.default)(t,e);var n=t.prototype;return n.createLeafletElement=function(e){throw new Error("createLeafletElement() must be implemented")},n.updateLeafletElement=function(e,t){t.position!==e.position&&this.leafletElement.setPosition(t.position)},n.componentDidMount=function(){this.leafletElement.addTo(this.props.leaflet.map)},n.componentDidUpdate=function(e){this.updateLeafletElement(e,this.props)},n.componentWillUnmount=function(){this.leafletElement.remove()},n.render=function(){return null},t}(a.Component),b=d(function(e){function t(){return e.apply(this,arguments)||this}return Object(p.default)(t,e),t.prototype.createLeafletElement=function(e){return new h.Control.Attribution(e)},t}(v));function y(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var w=n("yUwKKE5x"),_=n.n(w);function x(e,t){for(var n=0;n0&&F(e,t),null!=n&&n.length>0&&D(e,n))},L=function(e){function t(t){var n;return n=e.call(this,t)||this,g(Object(m.default)(n),"onClose",function(){n.props.onClose&&n.props.onClose()}),g(Object(m.default)(n),"onOpen",function(){n.forceUpdate(),n.props.onOpen&&n.props.onOpen()}),n.leafletElement=n.createLeafletElement(t),n}Object(p.default)(t,e);var n=t.prototype;return n.createLeafletElement=function(e){throw new Error("createLeafletElement() must be implemented")},n.updateLeafletElement=function(e,t){},n.componentDidUpdate=function(e){I(this.leafletElement._container,e.className,this.props.className),this.updateLeafletElement(e,this.props),this.leafletElement.isOpen()&&(this.leafletElement.update(),this.onRender())},n.onRender=function(){},n.render=function(){return this.leafletElement._contentNode?Object(j.createPortal)(this.props.children,this.leafletElement._contentNode):null},t}(O),N=d(function(e){function t(){return e.apply(this,arguments)||this}Object(p.default)(t,e);var n=t.prototype;return n.createLeafletElement=function(e){var t=new h.FeatureGroup(this.getOptions(e));return this.contextValue=Object(r.default)({},e.leaflet,{layerContainer:t,popupContainer:t}),t},n.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setStyle(this.props)},t}(A)),z=d(function(e){function t(){return e.apply(this,arguments)||this}Object(p.default)(t,e);var n=t.prototype;return n.createLeafletElement=function(e){return new h.GeoJSON(e.data,this.getOptions(e))},n.updateLeafletElement=function(e,t){"function"==typeof t.style?this.leafletElement.setStyle(t.style):this.setStyleIfChanged(e,t)},t}(A)),B=function(e){function t(){return e.apply(this,arguments)||this}Object(p.default)(t,e);var n=t.prototype;return n.createLeafletElement=function(e){return new h.GridLayer(this.getOptions(e))},n.updateLeafletElement=function(e,t){var n=t.opacity,r=t.zIndex;n!==e.opacity&&this.leafletElement.setOpacity(n),r!==e.zIndex&&this.leafletElement.setZIndex(r)},n.getOptions=function(t){var n=e.prototype.getOptions.call(this,t);return null==t.leaflet.map?n:Object(r.default)({maxZoom:t.leaflet.map.options.maxZoom,minZoom:t.leaflet.map.options.minZoom},n)},n.render=function(){return null},t}(k),H=d(function(e){function t(){return e.apply(this,arguments)||this}Object(p.default)(t,e);var n=t.prototype;return n.createLeafletElement=function(e){var t=new h.ImageOverlay(e.url,e.bounds,this.getOptions(e));return this.contextValue=Object(r.default)({},e.leaflet,{popupContainer:t}),t},n.updateLeafletElement=function(e,t){t.url!==e.url&&this.leafletElement.setUrl(t.url),t.bounds!==e.bounds&&this.leafletElement.setBounds(Object(h.latLngBounds)(t.bounds)),t.opacity!==e.opacity&&this.leafletElement.setOpacity(t.opacity),t.zIndex!==e.zIndex&&this.leafletElement.setZIndex(t.zIndex)},t}(k)),U=d(function(e){function t(){return e.apply(this,arguments)||this}return Object(p.default)(t,e),t.prototype.createLeafletElement=function(e){var t=new h.LayerGroup([],this.getOptions(e));return this.contextValue=Object(r.default)({},e.leaflet,{layerContainer:t}),t},t}(k)),W=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i1?t-1:0),r=1;rt&&(t=n);return t}function u(e){return{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:Boolean(e.moved),static:Boolean(e.static),isDraggable:e.isDraggable,isResizable:e.isResizable}}function c(e,t){return e!==t&&(!(e.x+e.w<=t.x)&&(!(e.x>=t.x+t.w)&&(!(e.y+e.h<=t.y)&&!(e.y>=t.y+t.h))))}function f(e,t,n){for(var r=y(e),i=x(e,t),o=Array(e.length),a=0,s=i.length;at.y+t.h)break;c(t,a)&&p(e,a,n+t[i],r)}}t[r]=n}function h(e,t,n,r,i){var o="horizontal"===n;if("vertical"===n)for(t.y=Math.min(l(e),t.y);t.y>0&&!v(e,t);)t.y--;else if(o)for(t.y=Math.min(l(e),t.y);t.x>0&&!v(e,t);)t.x--;for(var a=void 0;a=v(e,t);)o?p(i,t,a.x+a.w,"x"):p(i,t,a.y+a.h,"y"),o&&t.x+t.w>r&&(t.x=r-t.w,t.y++);return t}function m(e,t){for(var n=y(e),r=0,i=e.length;rt.cols&&(o.x=t.cols-o.w),o.x<0&&(o.x=0,o.w=t.cols),o.static)for(;v(n,o);)o.y++;else n.push(o)}return e}function g(e,t){for(var n=0,r=e.length;n=r:"horizontal"===a&&"number"==typeof n&&l>=n)&&(c=c.reverse());var f=b(c,t);if(o&&f.length)return O("Collision prevented on "+t.i+", reverting."),t.x=l,t.y=u,t.moved=!1,e;for(var d=0,p=f.length;dt.y||e.y===t.y&&e.x>t.x?1:e.y===t.y&&e.x===t.x?0:-1})}function S(e){return[].concat(e).sort(function(e,t){return e.x>t.x||e.x===t.x&&e.y>t.y?1:-1})}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(var r=0,i=e.length;rn?n:e},t={},n=0,r=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];n255)&&(t._clipped=!0),t[n]=e(t[n],0,255)):3===n&&(t[n]=e(t[n],0,1));return t},limit:e,type:o,unpack:function(e,t){return void 0===t&&(t=null),e.length>=3?Array.prototype.slice.call(e):"object"==o(e[0])&&t?t.split("").filter(function(t){return void 0!==e[0][t]}).map(function(t){return e[0][t]}):e[0]},last:function(e){if(e.length<2)return null;var t=e.length-1;return"string"==o(e[t])?e[t].toLowerCase():null},PI:a,TWOPI:2*a,PITHIRD:a/3,DEG2RAD:a/180,RAD2DEG:180/a},l={format:{},autodetect:[]},u=s.last,c=s.clip_rgb,f=s.type,d=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=this;if("object"===f(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];var r=u(e),i=!1;if(!r){i=!0,l.sorted||(l.autodetect=l.autodetect.sort(function(e,t){return t.p-e.p}),l.sorted=!0);for(var o=0,a=l.autodetect;o4?e[4]:1;return 1===o?[0,0,0,a]:[n>=1?0:255*(1-n)*(1-o),r>=1?0:255*(1-r)*(1-o),i>=1?0:255*(1-i)*(1-o),a]},_=s.unpack,x=s.type;p.prototype.cmyk=function(){return b(this._rgb)},m.cmyk=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["cmyk"])))},l.format.cmyk=w,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=_(e,"cmyk"),"array"===x(e)&&4===e.length)return"cmyk"}});var E=s.unpack,S=s.last,C=function(e){return Math.round(100*e)/100},O=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=E(e,"hsla"),r=S(e)||"lsa";return n[0]=C(n[0]||0),n[1]=C(100*n[1])+"%",n[2]=C(100*n[2])+"%","hsla"===r||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},k=s.unpack,M=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=k(e,"rgba"))[0],r=e[1],i=e[2];n/=255,r/=255,i/=255;var o,a,s=Math.min(n,r,i),l=Math.max(n,r,i),u=(l+s)/2;return l===s?(o=0,a=Number.NaN):o=u<.5?(l-s)/(l+s):(l-s)/(2-l-s),n==l?a=(r-i)/(l-s):r==l?a=2+(i-n)/(l-s):i==l&&(a=4+(n-r)/(l-s)),(a*=60)<0&&(a+=360),e.length>3&&void 0!==e[3]?[a,o,u,e[3]]:[a,o,u]},A=s.unpack,T=s.last,P=Math.round,j=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=A(e,"rgba"),r=T(e)||"rgb";return"hsl"==r.substr(0,3)?O(M(n),r):(n[0]=P(n[0]),n[1]=P(n[1]),n[2]=P(n[2]),("rgba"===r||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,r="rgba"),r+"("+n.slice(0,"rgb"===r?3:4).join(",")+")")},R=s.unpack,D=Math.round,F=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r,i,o,a=(t=R(t,"hsl"))[0],s=t[1],l=t[2];if(0===s)r=i=o=255*l;else{var u=[0,0,0],c=[0,0,0],f=l<.5?l*(1+s):l+s-l*s,d=2*l-f,p=a/360;u[0]=p+1/3,u[1]=p,u[2]=p-1/3;for(var h=0;h<3;h++)u[h]<0&&(u[h]+=1),u[h]>1&&(u[h]-=1),6*u[h]<1?c[h]=d+6*(f-d)*u[h]:2*u[h]<1?c[h]=f:3*u[h]<2?c[h]=d+(f-d)*(2/3-u[h])*6:c[h]=d;r=(e=[D(255*c[0]),D(255*c[1]),D(255*c[2])])[0],i=e[1],o=e[2]}return t.length>3?[r,i,o,t[3]]:[r,i,o,1]},I=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,L=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,N=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,z=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,B=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,H=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,U=Math.round,W=function(e){var t;if(e=e.toLowerCase().trim(),l.format.named)try{return l.format.named(e)}catch(e){}if(t=e.match(I)){for(var n=t.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(t=e.match(L)){for(var i=t.slice(1,5),o=0;o<4;o++)i[o]=+i[o];return i}if(t=e.match(N)){for(var a=t.slice(1,4),s=0;s<3;s++)a[s]=U(2.55*a[s]);return a[3]=1,a}if(t=e.match(z)){for(var u=t.slice(1,5),c=0;c<3;c++)u[c]=U(2.55*u[c]);return u[3]=+u[3],u}if(t=e.match(B)){var f=t.slice(1,4);f[1]*=.01,f[2]*=.01;var d=F(f);return d[3]=1,d}if(t=e.match(H)){var p=t.slice(1,4);p[1]*=.01,p[2]*=.01;var h=F(p);return h[3]=+t[4],h}};W.test=function(e){return I.test(e)||L.test(e)||N.test(e)||z.test(e)||B.test(e)||H.test(e)};var G=W,q=s.type;p.prototype.css=function(e){return j(this._rgb,e)},m.css=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["css"])))},l.format.css=G,l.autodetect.push({p:5,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===q(e)&&G.test(e))return"css"}});var V=s.unpack;l.format.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=V(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},m.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["gl"])))},p.prototype.gl=function(){var e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var K=s.unpack,Q=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=K(e,"rgb"),i=r[0],o=r[1],a=r[2],s=Math.min(i,o,a),l=Math.max(i,o,a),u=l-s,c=100*u/255,f=s/(255-u)*100;return 0===u?n=Number.NaN:(i===l&&(n=(o-a)/u),o===l&&(n=2+(a-i)/u),a===l&&(n=4+(i-o)/u),(n*=60)<0&&(n+=360)),[n,c,f]},Y=s.unpack,X=Math.floor,Z=function(){for(var e,t,n,r,i,o,a=[],s=arguments.length;s--;)a[s]=arguments[s];var l,u,c,f=(a=Y(a,"hcg"))[0],d=a[1],p=a[2];p*=255;var h=255*d;if(0===d)l=u=c=p;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var m=X(f/=60),g=f-m,v=p*(1-d),b=v+h*(1-g),y=v+h*g,w=v+h;switch(m){case 0:l=(e=[w,y,v])[0],u=e[1],c=e[2];break;case 1:l=(t=[b,w,v])[0],u=t[1],c=t[2];break;case 2:l=(n=[v,w,y])[0],u=n[1],c=n[2];break;case 3:l=(r=[v,b,w])[0],u=r[1],c=r[2];break;case 4:l=(i=[y,v,w])[0],u=i[1],c=i[2];break;case 5:l=(o=[w,v,b])[0],u=o[1],c=o[2]}}return[l,u,c,a.length>3?a[3]:1]},J=s.unpack,ee=s.type;p.prototype.hcg=function(){return Q(this._rgb)},m.hcg=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hcg"])))},l.format.hcg=Z,l.autodetect.push({p:1,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=J(e,"hcg"),"array"===ee(e)&&3===e.length)return"hcg"}});var te=s.unpack,ne=s.last,re=Math.round,ie=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=te(e,"rgba"),r=n[0],i=n[1],o=n[2],a=n[3],s=ne(e)||"auto";void 0===a&&(a=1),"auto"===s&&(s=a<1?"rgba":"rgb");var l=(r=re(r))<<16|(i=re(i))<<8|(o=re(o)),u="000000"+l.toString(16);u=u.substr(u.length-6);var c="0"+re(255*a).toString(16);switch(c=c.substr(c.length-2),s.toLowerCase()){case"rgba":return"#"+u+c;case"argb":return"#"+c+u;default:return"#"+u}},oe=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ae=/^#?([A-Fa-f0-9]{8})$/,se=function(e){if(e.match(oe)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(ae)){9===e.length&&(e=e.substr(1));var n=parseInt(e,16);return[n>>24&255,n>>16&255,n>>8&255,Math.round((255&n)/255*100)/100]}throw new Error("unknown hex color: "+e)},le=s.type;p.prototype.hex=function(e){return ie(this._rgb,e)},m.hex=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hex"])))},l.format.hex=se,l.autodetect.push({p:4,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===le(e)&&[3,4,6,7,8,9].includes(e.length))return"hex"}});var ue=s.unpack,ce=s.TWOPI,fe=Math.min,de=Math.sqrt,pe=Math.acos,he=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=ue(e,"rgb"),i=r[0],o=r[1],a=r[2],s=fe(i/=255,o/=255,a/=255),l=(i+o+a)/3,u=l>0?1-s/l:0;return 0===u?n=NaN:(n=(i-o+(i-a))/2,n/=de((i-o)*(i-o)+(i-a)*(o-a)),n=pe(n),a>o&&(n=ce-n),n/=ce),[360*n,u,l]},me=s.unpack,ge=s.limit,ve=s.TWOPI,be=s.PITHIRD,ye=Math.cos,we=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,o=(e=me(e,"hsi"))[0],a=e[1],s=e[2];return isNaN(o)&&(o=0),isNaN(a)&&(a=0),o>360&&(o-=360),o<0&&(o+=360),(o/=360)<1/3?r=1-((i=(1-a)/3)+(n=(1+a*ye(ve*o)/ye(be-ve*o))/3)):o<2/3?i=1-((n=(1-a)/3)+(r=(1+a*ye(ve*(o-=1/3))/ye(be-ve*o))/3)):n=1-((r=(1-a)/3)+(i=(1+a*ye(ve*(o-=2/3))/ye(be-ve*o))/3)),[255*(n=ge(s*n*3)),255*(r=ge(s*r*3)),255*(i=ge(s*i*3)),e.length>3?e[3]:1]},_e=s.unpack,xe=s.type;p.prototype.hsi=function(){return he(this._rgb)},m.hsi=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsi"])))},l.format.hsi=we,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=_e(e,"hsi"),"array"===xe(e)&&3===e.length)return"hsi"}});var Ee=s.unpack,Se=s.type;p.prototype.hsl=function(){return M(this._rgb)},m.hsl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsl"])))},l.format.hsl=F,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Ee(e,"hsl"),"array"===Se(e)&&3===e.length)return"hsl"}});var Ce=s.unpack,Oe=Math.min,ke=Math.max,Me=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,o=(e=Ce(e,"rgb"))[0],a=e[1],s=e[2],l=Oe(o,a,s),u=ke(o,a,s),c=u-l;return i=u/255,0===u?(n=Number.NaN,r=0):(r=c/u,o===u&&(n=(a-s)/c),a===u&&(n=2+(s-o)/c),s===u&&(n=4+(o-a)/c),(n*=60)<0&&(n+=360)),[n,r,i]},Ae=s.unpack,Te=Math.floor,Pe=function(){for(var e,t,n,r,i,o,a=[],s=arguments.length;s--;)a[s]=arguments[s];var l,u,c,f=(a=Ae(a,"hsv"))[0],d=a[1],p=a[2];if(p*=255,0===d)l=u=c=p;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var h=Te(f/=60),m=f-h,g=p*(1-d),v=p*(1-d*m),b=p*(1-d*(1-m));switch(h){case 0:l=(e=[p,b,g])[0],u=e[1],c=e[2];break;case 1:l=(t=[v,p,g])[0],u=t[1],c=t[2];break;case 2:l=(n=[g,p,b])[0],u=n[1],c=n[2];break;case 3:l=(r=[g,v,p])[0],u=r[1],c=r[2];break;case 4:l=(i=[b,g,p])[0],u=i[1],c=i[2];break;case 5:l=(o=[p,g,v])[0],u=o[1],c=o[2]}}return[l,u,c,a.length>3?a[3]:1]},je=s.unpack,Re=s.type;p.prototype.hsv=function(){return Me(this._rgb)},m.hsv=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsv"])))},l.format.hsv=Pe,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=je(e,"hsv"),"array"===Re(e)&&3===e.length)return"hsv"}});var De=18,Fe=.95047,Ie=1,Le=1.08883,Ne=.137931034,ze=.206896552,Be=.12841855,He=.008856452,Ue=s.unpack,$e=Math.pow,We=function(e){return(e/=255)<=.04045?e/12.92:$e((e+.055)/1.055,2.4)},Ge=function(e){return e>He?$e(e,1/3):e/Be+Ne},qe=function(e,t,n){return e=We(e),t=We(t),n=We(n),[Ge((.4124564*e+.3575761*t+.1804375*n)/Fe),Ge((.2126729*e+.7151522*t+.072175*n)/Ie),Ge((.0193339*e+.119192*t+.9503041*n)/Le)]},Ve=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Ue(e,"rgb"),r=n[0],i=n[1],o=n[2],a=qe(r,i,o),s=a[0],l=a[1],u=a[2],c=116*l-16;return[c<0?0:c,500*(s-l),200*(l-u)]},Ke=s.unpack,Qe=Math.pow,Ye=function(e){return 255*(e<=.00304?12.92*e:1.055*Qe(e,1/2.4)-.055)},Xe=function(e){return e>ze?e*e*e:Be*(e-Ne)},Ze=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,o=(e=Ke(e,"lab"))[0],a=e[1],s=e[2];return r=(o+16)/116,n=isNaN(a)?r:r+a/500,i=isNaN(s)?r:r-s/200,r=Ie*Xe(r),n=Fe*Xe(n),i=Le*Xe(i),[Ye(3.2404542*n-1.5371385*r-.4985314*i),Ye(-.969266*n+1.8760108*r+.041556*i),Ye(.0556434*n-.2040259*r+1.0572252*i),e.length>3?e[3]:1]},Je=s.unpack,et=s.type;p.prototype.lab=function(){return Ve(this._rgb)},m.lab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["lab"])))},l.format.lab=Ze,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Je(e,"lab"),"array"===et(e)&&3===e.length)return"lab"}});var tt=s.unpack,nt=s.RAD2DEG,rt=Math.sqrt,it=Math.atan2,ot=Math.round,at=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=tt(e,"lab"),r=n[0],i=n[1],o=n[2],a=rt(i*i+o*o),s=(it(o,i)*nt+360)%360;return 0===ot(1e4*a)&&(s=Number.NaN),[r,a,s]},st=s.unpack,lt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=st(e,"rgb"),r=n[0],i=n[1],o=n[2],a=Ve(r,i,o),s=a[0],l=a[1],u=a[2];return at(s,l,u)},ut=s.unpack,ct=s.DEG2RAD,ft=Math.sin,dt=Math.cos,pt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=ut(e,"lch"),r=n[0],i=n[1],o=n[2];return isNaN(o)&&(o=0),[r,dt(o*=ct)*i,ft(o)*i]},ht=s.unpack,mt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=ht(e,"lch"))[0],r=e[1],i=e[2],o=pt(n,r,i),a=o[0],s=o[1],l=o[2],u=Ze(a,s,l),c=u[0],f=u[1],d=u[2];return[c,f,d,e.length>3?e[3]:1]},gt=s.unpack,vt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=gt(e,"hcl").reverse();return mt.apply(void 0,n)},bt=s.unpack,yt=s.type;p.prototype.lch=function(){return lt(this._rgb)},p.prototype.hcl=function(){return lt(this._rgb).reverse()},m.lch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["lch"])))},m.hcl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hcl"])))},l.format.lch=mt,l.format.hcl=vt,["lch","hcl"].forEach(function(e){return l.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=bt(t,e),"array"===yt(t)&&3===t.length)return e}})});var wt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},_t=s.type;p.prototype.name=function(){for(var e=ie(this._rgb,"rgb"),t=0,n=Object.keys(wt);t0;)t[n]=arguments[n+1];if(!t.length&&"string"===_t(e)&&wt[e.toLowerCase()])return"named"}});var xt=s.unpack,Et=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=xt(e,"rgb"),r=n[0],i=n[1],o=n[2];return(r<<16)+(i<<8)+o},St=s.type,Ct=function(e){if("number"==St(e)&&e>=0&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)},Ot=s.type;p.prototype.num=function(){return Et(this._rgb)},m.num=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["num"])))},l.format.num=Ct,l.autodetect.push({p:5,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(1===e.length&&"number"===Ot(e[0])&&e[0]>=0&&e[0]<=16777215)return"num"}});var kt=s.unpack,Mt=s.type,At=Math.round;p.prototype.rgb=function(e){return void 0===e&&(e=!0),!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(At)},p.prototype.rgba=function(e){return void 0===e&&(e=!0),this._rgb.slice(0,4).map(function(t,n){return n<3?!1===e?t:At(t):t})},m.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["rgb"])))},l.format.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=kt(e,"rgba");return void 0===n[3]&&(n[3]=1),n},l.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=kt(e,"rgba"),"array"===Mt(e)&&(3===e.length||4===e.length&&"number"==Mt(e[3])&&e[3]>=0&&e[3]<=1))return"rgb"}});var Tt=Math.log,Pt=function(e){var t,n,r,i=e/100;return i<66?(t=255,n=-155.25485562709179-.44596950469579133*(n=i-2)+104.49216199393888*Tt(n),r=i<20?0:.8274096064007395*(r=i-10)-254.76935184120902+115.67994401066147*Tt(r)):(t=351.97690566805693+.114206453784165*(t=i-55)-40.25366309332127*Tt(t),n=325.4494125711974+.07943456536662342*(n=i-50)-28.0852963507957*Tt(n),r=255),[t,n,r,1]},jt=s.unpack,Rt=Math.round,Dt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n,r=jt(e,"rgb"),i=r[0],o=r[2],a=1e3,s=4e4,l=.4;s-a>l;){var u=Pt(n=.5*(s+a));u[2]/u[0]>=o/i?s=n:a=n}return Rt(n)};p.prototype.temp=p.prototype.kelvin=p.prototype.temperature=function(){return Dt(this._rgb)},m.temp=m.kelvin=m.temperature=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["temp"])))},l.format.temp=l.format.kelvin=l.format.temperature=Pt;var Ft=s.type;p.prototype.alpha=function(e,t){return void 0===t&&(t=!1),void 0!==e&&"number"===Ft(e)?t?(this._rgb[3]=e,this):new p([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},p.prototype.clipped=function(){return this._rgb._clipped||!1},p.prototype.darken=function(e){void 0===e&&(e=1);var t=this.lab();return t[0]-=De*e,new p(t,"lab").alpha(this.alpha(),!0)},p.prototype.brighten=function(e){return void 0===e&&(e=1),this.darken(-e)},p.prototype.darker=p.prototype.darken,p.prototype.brighter=p.prototype.brighten,p.prototype.get=function(e){var t=e.split("."),n=t[0],r=t[1],i=this[n]();if(r){var o=n.indexOf(r);if(o>-1)return i[o];throw new Error("unknown channel "+r+" in mode "+n)}return i};var It=s.type,Lt=Math.pow;p.prototype.luminance=function(e){if(void 0!==e&&"number"===It(e)){if(0===e)return new p([0,0,0,this._rgb[3]],"rgb");if(1===e)return new p([255,255,255,this._rgb[3]],"rgb");var t=this.luminance(),n=20,r=function(t,i){var o=t.interpolate(i,.5,"rgb"),a=o.luminance();return Math.abs(e-a)<1e-7||!n--?o:a>e?r(t,o):r(o,i)},i=(t>e?r(new p([0,0,0]),this):r(this,new p([255,255,255]))).rgb();return new p(i.concat([this._rgb[3]]))}return Nt.apply(void 0,this._rgb.slice(0,3))};var Nt=function(e,t,n){return.2126*(e=zt(e))+.7152*(t=zt(t))+.0722*(n=zt(n))},zt=function(e){return(e/=255)<=.03928?e/12.92:Lt((e+.055)/1.055,2.4)},Bt={},Ht=s.type,Ut=function(e,t,n){void 0===n&&(n=.5);for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var o=r[0]||"lrgb";if(Bt[o]||r.length||(o=Object.keys(Bt)[0]),!Bt[o])throw new Error("interpolation mode "+o+" is not defined");return"object"!==Ht(e)&&(e=new p(e)),"object"!==Ht(t)&&(t=new p(t)),Bt[o](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};p.prototype.mix=p.prototype.interpolate=function(e,t){void 0===t&&(t=.5);for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Ut.apply(void 0,[this,e,t].concat(n))},p.prototype.premultiply=function(e){void 0===e&&(e=!1);var t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new p([t[0]*n,t[1]*n,t[2]*n,n],"rgb")},p.prototype.saturate=function(e){void 0===e&&(e=1);var t=this.lch();return t[1]+=De*e,t[1]<0&&(t[1]=0),new p(t,"lch").alpha(this.alpha(),!0)},p.prototype.desaturate=function(e){return void 0===e&&(e=1),this.saturate(-e)};var $t=s.type;p.prototype.set=function(e,t,n){void 0===n&&(n=!1);var r=e.split("."),i=r[0],o=r[1],a=this[i]();if(o){var s=i.indexOf(o);if(s>-1){if("string"==$t(t))switch(t.charAt(0)){case"+":case"-":a[s]+=+t;break;case"*":a[s]*=+t.substr(1);break;case"/":a[s]/=+t.substr(1);break;default:a[s]=+t}else{if("number"!==$t(t))throw new Error("unsupported value for Color.set");a[s]=t}var l=new p(a,i);return n?(this._rgb=l._rgb,this):l}throw new Error("unknown channel "+o+" in mode "+i)}return a},Bt.rgb=function(e,t,n){var r=e._rgb,i=t._rgb;return new p(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};var Wt=Math.sqrt,Gt=Math.pow;Bt.lrgb=function(e,t,n){var r=e._rgb,i=r[0],o=r[1],a=r[2],s=t._rgb,l=s[0],u=s[1],c=s[2];return new p(Wt(Gt(i,2)*(1-n)+Gt(l,2)*n),Wt(Gt(o,2)*(1-n)+Gt(u,2)*n),Wt(Gt(a,2)*(1-n)+Gt(c,2)*n),"rgb")},Bt.lab=function(e,t,n){var r=e.lab(),i=t.lab();return new p(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};var qt=function(e,t,n,r){var i,o,a,s,l,u,c,f,d,h,m,g;return"hsl"===r?(a=e.hsl(),s=t.hsl()):"hsv"===r?(a=e.hsv(),s=t.hsv()):"hcg"===r?(a=e.hcg(),s=t.hcg()):"hsi"===r?(a=e.hsi(),s=t.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",a=e.hcl(),s=t.hcl()),"h"===r.substr(0,1)&&(l=(i=a)[0],c=i[1],d=i[2],u=(o=s)[0],f=o[1],h=o[2]),isNaN(l)||isNaN(u)?isNaN(l)?isNaN(u)?g=Number.NaN:(g=u,1!=d&&0!=d||"hsv"==r||(m=f)):(g=l,1!=h&&0!=h||"hsv"==r||(m=c)):g=l+n*(u>l&&u-l>180?u-(l+360):u180?u+360-l:u-l),void 0===m&&(m=c+n*(f-c)),new p([g,m,d+n*(h-d)],r)},Vt=function(e,t,n){return qt(e,t,n,"lch")};Bt.lch=Vt,Bt.hcl=Vt,Bt.num=function(e,t,n){var r=e.num(),i=t.num();return new p(r+n*(i-r),"num")},Bt.hcg=function(e,t,n){return qt(e,t,n,"hcg")},Bt.hsi=function(e,t,n){return qt(e,t,n,"hsi")},Bt.hsl=function(e,t,n){return qt(e,t,n,"hsl")},Bt.hsv=function(e,t,n){return qt(e,t,n,"hsv")};var Kt=s.clip_rgb,Qt=Math.pow,Yt=Math.sqrt,Xt=Math.PI,Zt=Math.cos,Jt=Math.sin,en=Math.atan2,tn=function(e){for(var t=1/e.length,n=[0,0,0,0],r=0,i=e;r.9999999&&(n[3]=1),new p(Kt(n))},nn=s.type,rn=Math.pow,on=function(e){var t="rgb",n=m("#ccc"),r=0,i=[0,1],o=[],a=[0,0],s=!1,l=[],u=!1,c=0,f=1,d=!1,p={},h=!0,g=1,v=function(e){if((e=e||["#fff","#000"])&&"string"===nn(e)&&m.brewer&&m.brewer[e.toLowerCase()]&&(e=m.brewer[e.toLowerCase()]),"array"===nn(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(var t=0;t2?function(e){if(null!=s){for(var t=s.length-1,n=0;n=s[n];)n++;return n-1}return 0}(e)/(s.length-2):f!==c?(e-c)/(f-c):1,u=y(u),r||(u=b(u)),1!==g&&(u=rn(u,g)),u=a[0]+u*(1-a[0]-a[1]),u=Math.min(1,Math.max(0,u));var d=Math.floor(1e4*u);if(h&&p[d])i=p[d];else{if("array"===nn(l))for(var v=0;v=w&&v===o.length-1){i=l[v];break}if(u>w&&u2){var u=e.map(function(t,n){return n/(e.length-1)}),d=e.map(function(e){return(e-c)/(f-c)});d.every(function(e,t){return u[t]===e})||(y=function(e){if(e<=0||e>=1)return e;for(var t=0;e>=d[t+1];)t++;var n=(e-d[t])/(d[t+1]-d[t]);return u[t]+n*(u[t+1]-u[t])})}}return i=[c,f],x},x.mode=function(e){return arguments.length?(t=e,_(),x):t},x.range=function(e,t){return v(e),x},x.out=function(e){return u=e,x},x.spread=function(e){return arguments.length?(r=e,x):r},x.correctLightness=function(e){return null==e&&(e=!0),d=e,_(),b=d?function(e){for(var t=w(0,!0).lab()[0],n=w(1,!0).lab()[0],r=t>n,i=w(e,!0).lab()[0],o=t+(n-t)*e,a=i-o,s=0,l=1,u=20;Math.abs(a)>.01&&u-- >0;)r&&(a*=-1),a<0?(s=e,e+=.5*(l-e)):(l=e,e+=.5*(s-e)),i=w(e,!0).lab()[0],a=i-o;return e}:function(e){return e},x},x.padding=function(e){return null!=e?("number"===nn(e)&&(e=[e,e]),a=e,x):a},x.colors=function(t,n){arguments.length<2&&(n="hex");var r=[];if(0===arguments.length)r=l.slice(0);else if(1===t)r=[x(.5)];else if(t>1){var o=i[0],a=i[1]-o;r=an(0,t,!1).map(function(e){return x(o+e/(t-1)*a)})}else{e=[];var u=[];if(s&&s.length>2)for(var c=1,f=s.length,d=1<=f;d?cf;d?c++:c--)u.push(.5*(s[c-1]+s[c]));else u=i;r=u.map(function(e){return x(e)})}return m[n]&&(r=r.map(function(e){return e[n]()})),r},x.cache=function(e){return null!=e?(h=e,x):h},x.gamma=function(e){return null!=e?(g=e,x):g},x.nodata=function(e){return null!=e?(n=m(e),x):n},x};function an(e,t,n){for(var r=[],i=eo;i?a++:a--)r.push(a);return r}var sn=function(e){var t,n,r,i,o,a,s;if(2===(e=e.map(function(e){return new p(e)})).length)t=e.map(function(e){return e.lab()}),o=t[0],a=t[1],i=function(e){var t=[0,1,2].map(function(t){return o[t]+e*(a[t]-o[t])});return new p(t,"lab")};else if(3===e.length)n=e.map(function(e){return e.lab()}),o=n[0],a=n[1],s=n[2],i=function(e){var t=[0,1,2].map(function(t){return(1-e)*(1-e)*o[t]+2*(1-e)*e*a[t]+e*e*s[t]});return new p(t,"lab")};else if(4===e.length){var l;r=e.map(function(e){return e.lab()}),o=r[0],a=r[1],s=r[2],l=r[3],i=function(e){var t=[0,1,2].map(function(t){return(1-e)*(1-e)*(1-e)*o[t]+3*(1-e)*(1-e)*e*a[t]+3*(1-e)*e*e*s[t]+e*e*e*l[t]});return new p(t,"lab")}}else if(5===e.length){var u=sn(e.slice(0,3)),c=sn(e.slice(2,5));i=function(e){return e<.5?u(2*e):c(2*(e-.5))}}return i},ln=function(e,t,n){if(!ln[n])throw new Error("unknown blend mode "+n);return ln[n](e,t)},un=function(e){return function(t,n){var r=m(n).rgb(),i=m(t).rgb();return m.rgb(e(r,i))}},cn=function(e){return function(t,n){var r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r}};ln.normal=un(cn(function(e){return e})),ln.multiply=un(cn(function(e,t){return e*t/255})),ln.screen=un(cn(function(e,t){return 255*(1-(1-e/255)*(1-t/255))})),ln.overlay=un(cn(function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))})),ln.darken=un(cn(function(e,t){return e>t?t:e})),ln.lighten=un(cn(function(e,t){return e>t?e:t})),ln.dodge=un(cn(function(e,t){return 255===e?255:(e=t/255*255/(1-e/255))>255?255:e})),ln.burn=un(cn(function(e,t){return 255*(1-(1-t/255)/(e/255))}));for(var fn=ln,dn=s.type,pn=s.clip_rgb,hn=s.TWOPI,mn=Math.pow,gn=Math.sin,vn=Math.cos,bn=Math.floor,yn=Math.random,wn=Math.log,_n=Math.pow,xn=Math.floor,En=Math.abs,Sn=function(e,t){void 0===t&&(t=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===o(e)&&(e=Object.values(e)),e.forEach(function(e){t&&"object"===o(e)&&(e=e[t]),null==e||isNaN(e)||(n.values.push(e),n.sum+=e,en.max&&(n.max=e),n.count+=1)}),n.domain=[n.min,n.max],n.limits=function(e,t){return Cn(n,e,t)},n},Cn=function(e,t,n){void 0===t&&(t="equal"),void 0===n&&(n=7),"array"==o(e)&&(e=Sn(e));var r=e.min,i=e.max,a=e.values.sort(function(e,t){return e-t});if(1===n)return[r,i];var s=[];if("c"===t.substr(0,1)&&(s.push(r),s.push(i)),"e"===t.substr(0,1)){s.push(r);for(var l=1;l 0");var u=Math.LOG10E*wn(r),c=Math.LOG10E*wn(i);s.push(r);for(var f=1;f200&&(w=!1)}for(var I={},L=0;L=360;)d-=360;i[f]=d}else i[f]=i[f]/o[f];return c/=n,new p(i,t).alpha(c>.99999?1:c,!0)},m.bezier=function(e){var t=sn(e);return t.scale=function(){return on(t)},t},m.blend=fn,m.cubehelix=function(e,t,n,r,i){void 0===e&&(e=300),void 0===t&&(t=-1.5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=[0,1]);var o,a=0;"array"===dn(i)?o=i[1]-i[0]:(o=0,i=[i,i]);var s=function(s){var l=hn*((e+120)/360+t*s),u=mn(i[0]+o*s,r),c=(0!==a?n[0]+s*a:n)*u*(1-u)/2,f=vn(l),d=gn(l);return m(pn([255*(u+c*(-.14861*f+1.78277*d)),255*(u+c*(-.29227*f-.90649*d)),255*(u+c*(1.97294*f)),1]))};return s.start=function(t){return null==t?e:(e=t,s)},s.rotations=function(e){return null==e?t:(t=e,s)},s.gamma=function(e){return null==e?r:(r=e,s)},s.hue=function(e){return null==e?n:("array"===dn(n=e)?0==(a=n[1]-n[0])&&(n=n[1]):a=0,s)},s.lightness=function(e){return null==e?i:("array"===dn(e)?(i=e,o=e[1]-e[0]):(i=[e,e],o=0),s)},s.scale=function(){return m.scale(s)},s.hue(n),s},m.mix=m.interpolate=Ut,m.random=function(){for(var e="#",t=0;t<6;t++)e+="0123456789abcdef".charAt(bn(16*yn()));return new p(e,"hex")},m.scale=on,m.analyze=On.analyze,m.contrast=function(e,t){e=new p(e),t=new p(t);var n=e.luminance(),r=t.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},m.deltaE=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1),e=new p(e),t=new p(t);for(var i=Array.from(e.lab()),o=i[0],a=i[1],s=i[2],l=Array.from(t.lab()),u=l[0],c=l[1],f=l[2],d=kn(a*a+s*s),h=kn(c*c+f*f),m=o<16?.511:.040975*o/(1+.01765*o),g=.0638*d/(1+.0131*d)+.638,v=d<1e-6?0:180*Mn(s,a)/Pn;v<0;)v+=360;for(;v>=360;)v-=360;var b=v>=164&&v<=345?.56+An(.2*Tn(Pn*(v+168)/180)):.36+An(.4*Tn(Pn*(v+35)/180)),y=d*d*d*d,w=kn(y/(y+1900)),_=g*(w*b+1-w),x=d-h,E=a-c,S=s-f,C=(o-u)/(n*m),O=x/(r*g);return kn(C*C+O*O+(E*E+S*S-x*x)/(_*_))},m.distance=function(e,t,n){void 0===n&&(n="lab"),e=new p(e),t=new p(t);var r=e.get(n),i=t.get(n),o=0;for(var a in r){var s=(r[a]||0)-(i[a]||0);o+=s*s}return Math.sqrt(o)},m.limits=On.limits,m.valid=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];try{return new(Function.prototype.bind.apply(p,[null].concat(e))),!0}catch(e){return!1}},m.scales=jn,m.colors=wt,m.brewer=Ln,m}()},ZQUmsjBA:function(e,exports,t){e.exports=t.p+"575de34923c2ff17f16538c6bf9c74b5.js"},ZVafN81z:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ii0bleBb")),r=o(t("ivGQtwpr")),i=o(t("PK8ZLj9Z"));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1?r[0]:n._UNCLASSIFIED_AREA,o=r.length>1?r[1]:r[0];e[i]||(e[i]=[]),e[i].push(o)});var t=[];return Object.keys(e).sort().forEach(function(r){t.push({label:r,disabled:!0,value:r});var i=o.default.uniq(e[r]).sort().map(function(e){return{value:r===n._UNCLASSIFIED_AREA?e:"".concat(r,"/").concat(e),label:e.replace("_"," ")}});t.push.apply(t,f(i))}),t}),g(h(n),"_renderOption",function(e){return e.disabled?r.default.createElement("span",{key:e.value,title:e.value},e.label):r.default.createElement("span",{key:e.value,title:e.value},"  ",e.label)}),n}var n,s,v;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,r["default"].Component),n=t,(s=[{key:"render",value:function(){var e=this,t=this._formatTimezones(),n=this.props,i=n.onChange,o=c(n,["onChange"]);return r.default.createElement(a.default,u({ref:function(t){e.timezone=t}},o,{onChange:i,placeholder:"Pick a time zone",options:t,optionRenderer:this._renderOption}))}}])&&d(n.prototype,s),v&&d(n,v),t}();g(v,"propTypes",{onChange:n.default.func});var b=v;exports.default=b,e.exports=exports.default},ZZUtB8B6:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=d(t("ii0bleBb")),r=d(t("ivGQtwpr")),i=d(t("PcYM+wZ7")),o=d(t("4KF7VOU5")),a=t("os2pWP01"),s=t("DlhHh5IY"),l=t("qOZsORvD"),u=t("mGX5yrPY"),c=d(t("1SPPmkhJ")),f=d(t("7QAbkgSv"));function d(e){return e&&e.__esModule?e:{default:e}}var p=c.default.getActions("Messages"),h=c.default.getActions("CodecTypes"),m=c.default.getActions("Inputs"),g=(f.default.getStore("Messages"),f.default.getStore("CodecTypes")),v=f.default.getStore("Inputs"),b=(0,i.default)({displayName:"RawMessageLoader",propTypes:{onMessageLoaded:n.default.func.isRequired,inputIdSelector:n.default.bool},mixins:[o.default.connect(g),o.default.connect(v)],getDefaultProps:function(){return{inputIdSelector:!1}},getInitialState:function(){return{loading:!1,message:"",remoteAddress:"",codec:"",codecConfiguration:{},inputId:void 0}},componentDidMount:function(){h.list(),this.props.inputIdSelector&&m.list()},DEFAULT_REMOTE_ADDRESS:"127.0.0.1",_loadMessage:function(e){var t=this;e.preventDefault();var n=this.state,r=n.message,i=n.remoteAddress,o=n.codec,a=n.codecConfiguration,s=n.inputId;this.setState({loading:!0});var l=p.loadRawMessage.triggerPromise(r,i||this.DEFAULT_REMOTE_ADDRESS,o,a);l.then(function(e){t.props.onMessageLoaded(e,{message:r,remoteAddress:i,codec:o,codecConfiguration:a,inputId:s})}),l.finally(function(){return t.setState({loading:!1})})},_bindValue:function(e){var t={};t[e.target.name]=e.target.value,this.setState(t)},_formatSelectOptions:function(){var e=this;if(!this.state.codecTypes)return[{value:"none",label:"Loading codec types...",disabled:!0}];var t=Object.keys(this.state.codecTypes);return 0===t.length?[{value:"none",label:"No codecs available"}]:t.filter(function(e){return"random-http-msg"!==e}).map(function(t){var n=e.state.codecTypes[t].name;return{value:t,label:""===n?t:n}}).sort(function(e,t){return e.label.toLowerCase().localeCompare(t.label.toLowerCase())})},_formatInputSelectOptions:function(){var e=this;if(!this.state.inputs)return[{value:"none",label:"Loading inputs...",disabled:!0}];var t=Object.keys(this.state.inputs);return 0===t.length?[{value:"none",label:"No inputs available"}]:t.map(function(t){var n=e.state.inputs[t].id;return{value:n,label:"".concat(n," / ").concat(e.state.inputs[t].title," / ").concat(e.state.inputs[t].name)}}).sort(function(e,t){return e.label.toLowerCase().localeCompare(t.label.toLowerCase())})},_onCodecSelect:function(e){this._bindValue({target:{name:"codec",value:e}}),this.setState({codecConfiguration:{}})},_onInputSelect:function(e){this.setState({inputId:e})},_onCodecConfigurationChange:function(e,t){var n=Object.assign(this.state.codecConfiguration);n[e]=t,this._bindValue({target:{name:"codecConfiguration",value:n}})},_formatConfigField:function(e,t){var n=this.state.codecConfiguration[e],i="RawMessageLoader",o="".concat(i,"-").concat(e);switch(t.type){case"text":return r.default.createElement(u.TextField,{key:o,typeName:i,title:e,field:t,value:n,onChange:this._onCodecConfigurationChange});case"number":return r.default.createElement(u.NumberField,{key:o,typeName:i,title:e,field:t,value:n,onChange:this._onCodecConfigurationChange});case"boolean":return r.default.createElement(u.BooleanField,{key:o,typeName:i,title:e,field:t,value:n,onChange:this._onCodecConfigurationChange});case"dropdown":return r.default.createElement(u.DropdownField,{key:o,typeName:i,title:e,field:t,value:n,onChange:this._onCodecConfigurationChange});default:return null}},_isSubmitDisabled:function(){return!this.state.message||!this.state.codec||this.state.loading},render:function(){var e,t,n=this;if(this.state.codecTypes&&this.state.codec){var i=this.state.codecTypes[this.state.codec].requested_configuration;e=Object.keys(i).sort(function(e,t){return i[e].is_optional-i[t].is_optional}).map(function(e){return n._formatConfigField(e,i[e])})}return this.props.inputIdSelector&&(t=r.default.createElement(s.Input,{id:"input",name:"input",label:r.default.createElement("span",null,"Message input ",r.default.createElement("small",null,"(optional)")),help:"Select the message input ID that should be assigned to the parsed message."},r.default.createElement(l.Select,{id:"input",placeholder:"Select input",options:this._formatInputSelectOptions(),matchProp:"label",onChange:this._onInputSelect,value:this.state.inputId}))),r.default.createElement(a.Row,null,r.default.createElement(a.Col,{md:7},r.default.createElement("form",{onSubmit:this._loadMessage},r.default.createElement("fieldset",null,r.default.createElement(s.Input,{id:"message",name:"message",type:"textarea",label:"Raw message",value:this.state.message,onChange:this._bindValue,rows:3,required:!0}),r.default.createElement(s.Input,{id:"remoteAddress",name:"remoteAddress",type:"text",label:r.default.createElement("span",null,"Source IP address ",r.default.createElement("small",null,"(optional)")),help:"Remote IP address to use as message source. Graylog will use ".concat(this.DEFAULT_REMOTE_ADDRESS," by default."),value:this.state.remoteAddress,onChange:this._bindValue})),t,r.default.createElement("fieldset",null,r.default.createElement("legend",null,"Codec configuration"),r.default.createElement(s.Input,{id:"codec",name:"codec",label:"Message codec",help:"Select the codec that should be used to decode the message.",required:!0},r.default.createElement(l.Select,{id:"codec",placeholder:"Select codec",options:this._formatSelectOptions(),matchProp:"label",onChange:this._onCodecSelect,value:this.state.codec})),e),r.default.createElement(a.Button,{type:"submit",bsStyle:"info",disabled:this._isSubmitDisabled()},this.state.loading?"Loading message...":"Load message"))))}});exports.default=b,e.exports=exports.default},"Ze/ig24s":function(e,exports,t){e.exports=t.p+"75d68f98f81d9fd92bb6a951dad8d465.js"},"Zeu+hqEU":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("HnBp4QXq"),r=t("ak+cODeF");exports.default=function(e){return function(){var t=e.getMonitor(),i=e.getRegistry();!function(e){r(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var o=t.getSourceId();return i.getSource(o,!0).endDrag(t,o),i.unpinSource(),{type:n.END_DRAG}}}},"ZhFGqF+H":function(e,exports,t){(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",p="[object Function]",h="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Null]",b="[object Object]",y="[object Proxy]",w="[object RegExp]",_="[object Set]",x="[object String]",E="[object Symbol]",S="[object Undefined]",C="[object ArrayBuffer]",O="[object DataView]",k=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[s]=A[l]=A[C]=A[c]=A[O]=A[f]=A[d]=A[p]=A[m]=A[g]=A[b]=A[w]=A[_]=A[x]=A["[object WeakMap]"]=!1;var T="object"==typeof e&&e&&e.Object===Object&&e,P="object"==typeof self&&self&&self.Object===Object&&self,j=T||P||Function("return this")(),R=exports&&!exports.nodeType&&exports,D=R&&"object"==typeof t&&t&&!t.nodeType&&t,F=D&&D.exports===R,I=F&&T.process,L=function(){try{return I&&I.binding&&I.binding("util")}catch(e){}}(),N=L&&L.isTypedArray;function z(e,t){for(var n=-1,r=null==e?0:e.length;++nu))return!1;var f=s.get(e);if(f&&s.get(t))return f==t;var d=-1,p=!0,h=n&o?new Oe:void 0;for(s.set(e,t),s.set(t,e);++d-1},Se.prototype.set=function(e,t){var n=this.__data__,r=Ae(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Ce.prototype.clear=function(){this.size=0,this.__data__={hash:new Ee,map:new(fe||Se),string:new Ee}},Ce.prototype.delete=function(e){var t=Le(this,e).delete(e);return this.size-=t?1:0,t},Ce.prototype.get=function(e){return Le(this,e).get(e)},Ce.prototype.has=function(e){return Le(this,e).has(e)},Ce.prototype.set=function(e,t){var n=Le(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Oe.prototype.add=Oe.prototype.push=function(e){return this.__data__.set(e,r),this},Oe.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.clear=function(){this.__data__=new Se,this.size=0},ke.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Se){var i=r.__data__;if(!fe||i.length-1&&e%1==0&&e-1&&e%1==0&&e<=a}function Qe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ye(e){return null!=e&&"object"==typeof e}var Xe=N?function(e){return function(t){return e(t)}}(N):function(e){return Ye(e)&&Ke(e.length)&&!!A[Te(e)]};function Ze(e){return null!=(t=e)&&Ke(t.length)&&!Ve(t)?Me(e):De(e);var t}t.exports=function(e,t){return je(e,t)}}).call(this,t("aY11sVfy"),t("9YbPW59L")(e))},ZiE7XXL5:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ii0bleBb")),r=o(t("ivGQtwpr")),i=o(t("IWoTIbq3"));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n=0;--i){var o,a=e[i];if("[]"===a)o=(o=[]).concat(r);else{o=n.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(s,10);!isNaN(l)&&a!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(o=[])[l]=r:o[s]=r}r=o}return r}(l,t,n)}};e.exports=function(e,t){var a=t?n.assign({},t):{};if(null!==a.decoder&&void 0!==a.decoder&&"function"!=typeof a.decoder)throw new TypeError("Decoder has to be a function.");if(a.ignoreQueryPrefix=!0===a.ignoreQueryPrefix,a.delimiter="string"==typeof a.delimiter||n.isRegExp(a.delimiter)?a.delimiter:i.delimiter,a.depth="number"==typeof a.depth?a.depth:i.depth,a.arrayLimit="number"==typeof a.arrayLimit?a.arrayLimit:i.arrayLimit,a.parseArrays=!1!==a.parseArrays,a.decoder="function"==typeof a.decoder?a.decoder:i.decoder,a.allowDots="boolean"==typeof a.allowDots?a.allowDots:i.allowDots,a.plainObjects="boolean"==typeof a.plainObjects?a.plainObjects:i.plainObjects,a.allowPrototypes="boolean"==typeof a.allowPrototypes?a.allowPrototypes:i.allowPrototypes,a.parameterLimit="number"==typeof a.parameterLimit?a.parameterLimit:i.parameterLimit,a.strictNullHandling="boolean"==typeof a.strictNullHandling?a.strictNullHandling:i.strictNullHandling,""===e||null==e)return a.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){for(var n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,s=o.split(t.delimiter,a),l=0;l-1},e.prototype.getItemType=function(){return this.store.getState().dragOperation.itemType},e.prototype.getItem=function(){return this.store.getState().dragOperation.item},e.prototype.getSourceId=function(){return this.store.getState().dragOperation.sourceId},e.prototype.getTargetIds=function(){return this.store.getState().dragOperation.targetIds},e.prototype.getDropResult=function(){return this.store.getState().dragOperation.dropResult},e.prototype.didDrop=function(){return this.store.getState().dragOperation.didDrop},e.prototype.isSourcePublic=function(){return this.store.getState().dragOperation.isSourcePublic},e.prototype.getInitialClientOffset=function(){return this.store.getState().dragOffset.initialClientOffset},e.prototype.getInitialSourceClientOffset=function(){return this.store.getState().dragOffset.initialSourceClientOffset},e.prototype.getClientOffset=function(){return this.store.getState().dragOffset.clientOffset},e.prototype.getSourceClientOffset=function(){return r.getSourceClientOffset(this.store.getState().dragOffset)},e.prototype.getDifferenceFromInitialOffset=function(){return r.getDifferenceFromInitialOffset(this.store.getState().dragOffset)},e}();exports.default=a},bARGMa9X:function(e,exports,t){"use strict";(function(n){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var r=c(t("ii0bleBb")),i=c(t("ivGQtwpr")),o=c(t("vU3dbCc2")),a=t("os2pWP01"),s=c(t("tEFgrcgr")),l=c(t("7QAbkgSv")),u=c(t("nXSFNspX"));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(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})(e)}function d(e,t){for(var n=0;nthis._numberOfPages())return e;var t=10*Math.ceil((e+1)/10);return Math.min(this._numberOfPages(),t)}},{key:"_onPageChanged",value:function(e){var t=this.props,n=t.currentPage;(0,t.onPageChange)("Previous"===e?n-1:"Next"===e?n+1:Number(e))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.children,o=n.currentPage,s=n.position,l=this.state.paginationWidth,u=[];u.push(i.default.createElement(a.Pager.Item,{href:"#",disabled:1===o,onSelect:function(){return t._onPageChanged("Previous")},key:"previous"},"Previous"));for(var c=function(e){u.push(i.default.createElement(a.Pager.Item,{href:"#",className:e===o&&"active",onSelect:function(){return t._onPageChanged(e)},key:"page".concat(e)},e))},f=this._minPage();f<=this._maxPage();f+=1)c(f);u.push(i.default.createElement(a.Pager.Item,{href:"#",onSelect:function(){return t._onPageChanged("Next")},disabled:o>=this._maxPage(),key:"next"},"Next"));var d=i.default.createElement("ul",{className:"pagination"},u);return e="bottom"===s?i.default.createElement("div",{ref:function(e){t.paginatorAffix=e}},r,i.default.createElement("nav",{className:"text-center",style:{width:l+20}},d)):i.default.createElement("nav",{className:"text-center"},d),i.default.createElement("div",{ref:function(e){t.paginatorContainer=e},id:"message-table-paginator-".concat(s)},e)}}])&&d(n.prototype,r),l&&d(n,l),t}();g(b,"propTypes",{resultCount:r.default.number.isRequired,currentPage:r.default.number.isRequired,children:r.default.oneOfType([r.default.arrayOf(r.default.element),r.default.element]),onPageChange:r.default.func.isRequired,pageSize:r.default.number,position:r.default.string}),g(b,"defaultProps",{pageSize:v.DEFAULT_LIMIT,children:void 0,position:""});var y=b;exports.default=y,e.exports=exports.default}).call(this,t("aY11sVfy"))},bAkv9MOw:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n={},r=exports.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null};exports.get=function(e,t,i,o){var a=e+"-"+t+"-"+i+(o?"-server":"");if(n[a])return n[a];var s=r(e,t,i,o);return n[a]=s,s}},bDBSvNud:function(e,exports,t){var n=t("u2mgHbaT");e.exports=function(e){return e==e&&!n(e)}},bJ0ANVZW:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("/RLM/Xkt"),r=t("ak+cODeF"),i=t("u2mgHbaT"),o=t("HnBp4QXq"),a={type:o.INIT_COORDS,payload:{clientOffset:null,sourceClientOffset:null}};exports.default=function(e){return function(t,s){void 0===t&&(t=[]),void 0===s&&(s={publishSource:!0});var l=s.publishSource,u=void 0===l||l,c=s.clientOffset,f=s.getSourceClientOffset,d=e.getMonitor(),p=e.getRegistry();e.dispatch(n.setClientOffset(c)),function(e,t,n){r(!t.isDragging(),"Cannot call beginDrag while dragging.");for(var i=0,o=e;i=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,d);if(null!==h){var m=null;c&&(!function(e){r("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(f),m=f(h)),e.dispatch(n.setClientOffset(c,m));var g=p.getSource(h).beginDrag(d,h);!function(e){r(i(e),"Item must be an object.")}(g),p.pinSource(h);var v=p.getSourceType(h);return{type:o.BEGIN_DRAG,payload:{itemType:v,item:g,sourceId:h,clientOffset:c||null,sourceClientOffset:m||null,isSourcePublic:!!u}}}e.dispatch(a)}}},"bO+NFsu2":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ADD_SOURCE="dnd-core/ADD_SOURCE",exports.ADD_TARGET="dnd-core/ADD_TARGET",exports.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",exports.REMOVE_TARGET="dnd-core/REMOVE_TARGET",exports.addSource=function(e){return{type:exports.ADD_SOURCE,payload:{sourceId:e}}},exports.addTarget=function(e){return{type:exports.ADD_TARGET,payload:{targetId:e}}},exports.removeSource=function(e){return{type:exports.REMOVE_SOURCE,payload:{sourceId:e}}},exports.removeTarget=function(e){return{type:exports.REMOVE_TARGET,payload:{targetId:e}}}},bRH0spL1:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.singletonStore=exports.singletonActions=exports.singleton=void 0;var n=function(e,t){return window.singletons[e]||(window.singletons[e]=t()),window.singletons[e]};exports.singleton=n;exports.singletonActions=function(e,t){return n("".concat(e,"Actions"),t)};exports.singletonStore=function(e,t){return n("".concat(e,"Store"),t)},void 0===window.singletons&&(window.singletons={})},bTNLy28q:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=s(t("ii0bleBb")),r=s(t("ivGQtwpr")),i=t("os2pWP01"),o=t("qOZsORvD"),a=s(t("fZ4OAAo6"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(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})(e)}function u(e,t){for(var n=0;nu.getPositionTopMax()?"bottom"===u.state.affixed?u.updateStateAtBottom():u.setState({affixed:"bottom",position:"absolute",top:null},function(){u._isMounted&&u.updateStateAtBottom()}):u.updateState("affix","fixed",n)}},u.getPositionTopMax=function(){return(0,p.default)((0,h.default)(u))-(0,i.default)(f.default.findDOMNode(u))-u.props.offsetBottom},u.updateState=function(e,t,n){if(e!==u.state.affixed||t!==u.state.position||n!==u.state.top){var r="affix"===e?"":e.charAt(0).toUpperCase()+e.substr(1);u.props["onAffix"+r]&&u.props["onAffix"+r](),u.setState({affixed:e,position:t,top:n},function(){u.props["onAffixed"+r]&&u.props["onAffixed"+r]()})}},u.updateStateAtBottom=function(){var e=u.getPositionTopMax(),t=(0,a.default)(f.default.findDOMNode(u)),n=(0,o.default)(t).top;u.updateState("bottom","absolute",e-n)},u.state={affixed:"top",position:null,top:null},u._needPositionUpdate=!1,u}return function(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)}(t,e),t.prototype.componentDidMount=function(){var e=this;this._isMounted=!0,this._windowScrollListener=(0,d.default)((0,m.default)(this),"scroll",function(){return e.onWindowScroll()}),this._documentClickListener=(0,d.default)((0,h.default)(this),"click",function(){return e.onDocumentClick()}),this.onUpdate()},t.prototype.componentWillReceiveProps=function(){this._needPositionUpdate=!0},t.prototype.componentDidUpdate=function(){this._needPositionUpdate&&(this._needPositionUpdate=!1,this.onUpdate())},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._windowScrollListener&&this._windowScrollListener.remove(),this._documentClickListener&&this._documentClickListener.remove()},t.prototype.render=function(){var e=c.default.Children.only(this.props.children),t=e.props,i=t.className,o=t.style,a=this.state,s=a.affixed,l={position:a.position,top:a.top},u=void 0,f=void 0;return"top"===s?(u=this.props.topClassName,f=this.props.topStyle):"bottom"===s?(u=this.props.bottomClassName,f=this.props.bottomStyle):(u=this.props.affixClassName,f=this.props.affixStyle),c.default.cloneElement(e,{className:(0,r.default)(u,i),style:n({},l,f,o)})},t}(c.default.Component);v.propTypes={offsetTop:u.default.number,viewportOffsetTop:u.default.number,offsetBottom:u.default.number,topClassName:u.default.string,topStyle:u.default.object,affixClassName:u.default.string,affixStyle:u.default.object,bottomClassName:u.default.string,bottomStyle:u.default.object,onAffix:u.default.func,onAffixed:u.default.func,onAffixTop:u.default.func,onAffixedTop:u.default.func,onAffixBottom:u.default.func,onAffixedBottom:u.default.func},v.defaultProps={offsetTop:0,viewportOffsetTop:null,offsetBottom:0},exports.default=v,e.exports=exports.default},bpwPG6jG:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Widget",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"WidgetConfigModal",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"WidgetCreationModal",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"WidgetEditConfigModal",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"WidgetFooter",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"WidgetHeader",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(exports,"WidgetVisualizationNotFound",{enumerable:!0,get:function(){return l.default}}),t("/xvO5NNp");var n=u(t("pIh2mMl0")),r=u(t("p+rVAM8X")),i=u(t("O2pRYafI")),o=u(t("t+SflOfx")),a=u(t("xwgAz7Xn")),s=u(t("t77z7czl")),l=u(t("jlZGV32V"));function u(e){return e&&e.__esModule?e:{default:e}}},brdXRh1o:function(e,exports,t){e.exports=t.p+"18eda77a98656fccead1ba601a10d759.js"},bxGYHeFD:function(e,exports,t){e.exports=t.p+"ac9180844f3e81f574b9129c7d3de15b.js"},"c59+uKGP":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;tt?r=1:e=n.state.previousNumber&&t!==h.HIGHER||n.state.currentNumber<=n.state.previousNumber&&t!==h.LOWER)&&(t===h.HIGHER&&(e=Math.abs(e-(n.NUMBER_OF_INDICATORS-1))),Math.abs(n.state.percentage)>=n.PERCENTAGE_PER_INDICATOR*e)}),p(f(n),"_getStrokeColor",function(e,t){if(!n._isIndicatorActive(e,t))return m;var r=n.props.config.lower_is_better?g:v,i=n.props.config.lower_is_better?v:g;return t===h.HIGHER?i:r}),p(f(n),"_getHigherStrokeColor",function(e){return n._getStrokeColor(e,h.HIGHER)}),p(f(n),"_getLowerStrokeColor",function(e){return n._getStrokeColor(e,h.LOWER)}),p(f(n),"_setAttribute",function(e,t){return function(n){n&&n.setAttribute(e,t)}}),n}var n,s,b;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,r["default"].Component),n=t,(s=[{key:"componentDidMount",value:function(){this._updateData(this.props.data,this.props.onRenderComplete)}},{key:"componentWillReceiveProps",value:function(e){(0,i.default)(this.props,e)||this._updateData(e.data,this.props.onRenderComplete)}},{key:"render",value:function(){var e,t=this.props,n=t.id,i=t.config,o=t.width,s=t.height;return i.trend&&(e=r.default.createElement("g",{transform:"translate(270,45)"},r.default.createElement("g",{transform:"translate(0,-17)"},r.default.createElement("path",{d:"M0 5 L5 0 L10 5",fill:"none",stroke:this._getHigherStrokeColor(0)}),r.default.createElement("path",{d:"M0 10 L5 5 L10 10",fill:"none",stroke:this._getHigherStrokeColor(1)}),r.default.createElement("path",{d:"M0 15 L5 10 L10 15",fill:"none",stroke:this._getHigherStrokeColor(2)})),r.default.createElement("g",{transform:"translate(0, 2) rotate(180,5,7.5)"},r.default.createElement("path",{d:"M0 5 L5 0 L10 5",fill:"none",stroke:this._getLowerStrokeColor(2)}),r.default.createElement("path",{d:"M0 10 L5 5 L10 10",fill:"none",stroke:this._getLowerStrokeColor(1)}),r.default.createElement("path",{d:"M0 15 L5 10 L10 15",fill:"none",stroke:this._getLowerStrokeColor(0)})))),r.default.createElement("div",{id:"visualization-".concat(n),className:a.default.container},r.default.createElement("svg",{viewBox:"0 0 300 100",className:a.default.number,width:"100%",height:"100%",style:{height:s,width:o}},r.default.createElement("text",{x:"150",y:"45",className:a.default.value,style:{fontSize:this._calculateFontSize()}},this._formatData()),e))}}])&&u(n.prototype,s),b&&u(n,b),t}();p(b,"propTypes",{id:n.default.string.isRequired,config:n.default.object.isRequired,data:n.default.oneOfType([n.default.object,n.default.number]).isRequired,height:n.default.number,width:n.default.number,onRenderComplete:n.default.func}),p(b,"defaultProps",{onRenderComplete:function(){}});var y=b;exports.default=y,e.exports=exports.default},cBp5vKSn:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=c(t("ii0bleBb")),r=c(t("ivGQtwpr")),i=c(t("H/eHg5XM")),o=t("os2pWP01"),a=t("qOZsORvD"),s=c(t("7QAbkgSv")),l=c(t("1SPPmkhJ")),u=t("J6m01YZl");function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(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})(e)}function d(e,t){for(var n=0;n1?{width:180}:{}}),g(h(n),"expandAll",function(){var e=(n.props.messages.length-n.state.expandedMessages.size)/100>.3,t=i.default.Set(n.props.messages.map(function(e){return"".concat(e.index,"-").concat(e.id)}));n.setState({expandedMessages:t,expandAllRenderAsync:e})}),g(h(n),"collapseAll",function(){n.setState({expandedMessages:i.default.Set()})}),g(h(n),"_handleSort",function(e,t,n){e.preventDefault(),b.sort(t,n)}),g(h(n),"_sortIcons",function(e){var t=null,i="sort-order-desc sort-order-item";return t=0===n.props.sortField.toLowerCase().localeCompare(e.toLowerCase())?0===n.props.sortOrder.toLowerCase().localeCompare("desc")?r.default.createElement("span",null,r.default.createElement(a.Icon,{name:"sort-amount-asc",className:"".concat(i," sort-order-active"),flip:"vertical"}),r.default.createElement("a",{href:"#",onClick:function(t){return n._handleSort(t,e,"asc")}},r.default.createElement(a.Icon,{name:"sort-amount-asc",className:"sort-order-item"}))):r.default.createElement("span",null,r.default.createElement(a.Icon,{name:"sort-amount-asc",className:"".concat("sort-order-item"," sort-order-active")}),r.default.createElement("a",{href:"#",onClick:function(t){return n._handleSort(t,e,"desc")}},r.default.createElement(a.Icon,{name:"sort-amount-asc",className:i,flip:"vertical"}))):r.default.createElement("span",{className:"sort-order"},r.default.createElement("a",{href:"#",onClick:function(t){return n._handleSort(t,e,"asc")}},r.default.createElement(a.Icon,{name:"sort-amount-asc",className:"sort-order-item"})),r.default.createElement("a",{href:"#",onClick:function(t){return n._handleSort(t,e,"desc")}},r.default.createElement(a.Icon,{name:"sort-amount-asc",className:i,flip:"vertical"}))),r.default.createElement("span",null,t)}),n}var n,s,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,r["default"].Component),n=t,(s=[{key:"componentDidMount",value:function(){var e=this;this.state.allStreamsLoaded||v.listStreams().done(function(t){return e._onStreamsLoaded(t)})}},{key:"componentDidUpdate",value:function(){var e=this;this.state.expandAllRenderAsync&&setTimeout(function(){return e.setState({expandAllRenderAsync:!1})},this.EXPAND_ALL_RENDER_ASYNC_DELAY)}},{key:"render",value:function(){var e=this,t=this._fieldColumns();return r.default.createElement("div",{className:"content-col"},r.default.createElement("h1",{className:"pull-left"},"Messages"),r.default.createElement(o.ButtonGroup,{bsSize:"small",className:"pull-right"},r.default.createElement(o.Button,{title:"Expand all messages",onClick:this.expandAll},r.default.createElement(a.Icon,{name:"expand"})),r.default.createElement(o.Button,{title:"Collapse all messages",onClick:this.collapseAll,disabled:0===this.state.expandedMessages.size},r.default.createElement(a.Icon,{name:"compress"}))),r.default.createElement(u.MessageTablePaginator,{currentPage:Number(this.props.page),onPageChange:this.props.onPageChange,pageSize:this.props.pageSize,position:"top",resultCount:this.props.resultCount}),r.default.createElement("div",{className:"search-results-table"},r.default.createElement("div",{className:"table-responsive"},r.default.createElement("div",{className:"messages-container"},r.default.createElement("table",{className:"table table-condensed messages"},r.default.createElement("thead",null,r.default.createElement("tr",null,r.default.createElement("th",{style:{width:180}},"Timestamp ",this._sortIcons("timestamp")),t.toSeq().map(function(t){return r.default.createElement("th",{key:t,style:e._columnStyle(t)},t," ",e._sortIcons(t))}))),this.props.messages.map(function(n){return r.default.createElement(u.MessageTableEntry,{key:"".concat(n.index,"-").concat(n.id),disableSurroundingSearch:e.props.disableSurroundingSearch,message:n,showMessageRow:e.props.selectedFields.contains("message"),selectedFields:t,expanded:e.state.expandedMessages.contains("".concat(n.index,"-").concat(n.id)),toggleDetail:e._toggleMessageDetail,inputs:e.props.inputs,streams:e.props.streams,allStreams:e.state.allStreams,allStreamsLoaded:e.state.allStreamsLoaded,nodes:e.props.nodes,highlight:e.props.highlight,highlightMessage:b.highlightMessage,expandAllRenderAsync:e.state.expandAllRenderAsync,searchConfig:e.props.searchConfig})}))))),r.default.createElement(u.MessageTablePaginator,{currentPage:Number(this.props.page),onPageChange:this.props.onPageChange,pageSize:this.props.pageSize,position:"bottom",resultCount:this.props.resultCount},r.default.createElement(o.ButtonGroup,{bsSize:"small",className:"pull-right",style:{position:"absolute",marginTop:20,right:10}},r.default.createElement(o.Button,{title:"Expand all messages",onClick:this.expandAll},r.default.createElement(a.Icon,{name:"expand"})),r.default.createElement(o.Button,{title:"Collapse all messages",onClick:this.collapseAll,disabled:0===this.state.expandedMessages.size},r.default.createElement(a.Icon,{name:"compress"})))))}}])&&d(n.prototype,s),l&&d(n,l),t}();g(w,"propTypes",{disableSurroundingSearch:n.default.bool,highlight:n.default.bool.isRequired,inputs:n.default.object.isRequired,messages:n.default.array.isRequired,nodes:n.default.object.isRequired,onPageChange:n.default.func,page:n.default.number.isRequired,pageSize:n.default.number,resultCount:n.default.number.isRequired,selectedFields:n.default.object.isRequired,sortField:n.default.string.isRequired,sortOrder:n.default.string.isRequired,streams:n.default.object.isRequired,searchConfig:n.default.object.isRequired}),g(w,"defaultProps",{disableSurroundingSearch:!1,onPageChange:function(e){b.page=e}});var _=w;exports.default=_,e.exports=exports.default},cCRmAcOk:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"FieldStatistics",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"FieldQuickValues",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"FieldGraphs",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"LegacyFieldGraph",{enumerable:!0,get:function(){return s.default}});var n=t("IQgAPhpj"),r=l(t("WquURH+Q")),i=l(t("NtfrhZUN")),o=l(t("zc7VLnfk")),a=l(t("KN5KfcWY")),s=l(t("PBqaqikg"));function l(e){return e&&e.__esModule?e:{default:e}}var u=new n.PluginManifest({},{fieldAnalyzers:[{refId:"fieldStatisticsComponent",displayName:"Statistics",component:i.default,displayPriority:2},{refId:"fieldQuickValuesComponent",displayName:"Quick values",component:o.default,displayPriority:1},{refId:"fieldGraphsComponent",displayName:"Generate chart",component:a.default,displayPriority:0},{refId:"fieldAnalyzerMapComponent",displayName:"World Map",component:r.default,displayPriority:100}]}),c=n.PluginStore.exports("fieldAnalyzers").map(function(e){return e.refId});u.exports.fieldAnalyzers.every(function(e){return c.includes(e.refId)})||n.PluginStore.register(u)},"cHkQCe+v":function(e,exports,t){var n=t("oPTuas+D"),r=t("BhV0e01c");e.exports=function(e){return n(function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&r(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++iNumber(l)?l:S})}if(_||this.props.lockAspectRatio&&!w){S=b+(g-p)/r;this.setState({maxWidth:S>Number(l)?l:S})}if(x&&this.resizable){S=(h-v)/r+this.resizable.size.height;this.setState({maxHeight:S>Number(u)?u:S})}if(E||this.props.lockAspectRatio&&!x){S=y+(v-h)/r;this.setState({maxHeight:S>Number(u)?u:S})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(e,t,n)},t.prototype.onResize=function(e,t,n,r){var i,o,a=this.getOffsetFromParent();/left/i.test(t)&&(i=this.state.original.x-r.width,this.draggable.setState({x:i}),i+=a.left),/top/i.test(t)&&(o=this.state.original.y-r.height,this.draggable.setState({y:o}),o+=a.top),void 0===i&&(i=this.getDraggablePosition().x+a.left),void 0===o&&(o=this.getDraggablePosition().y+a.top),this.resizingPosition={x:i,y:o},this.props.onResize&&this.props.onResize(e,t,n,r,{x:i,y:o})},t.prototype.onResizeStop=function(e,t,n,r){this.resizing=!1;var i=this.getMaxSizesFromProps(),o=i.maxWidth,a=i.maxHeight;this.setState({maxWidth:o,maxHeight:a}),this.props.onResizeStop&&this.props.onResizeStop(e,t,n,r,this.resizingPosition)},t.prototype.updateSize=function(e){this.resizable&&this.resizable.updateSize({width:e.width,height:e.height})},t.prototype.updatePosition=function(e){this.draggable.setState(e)},t.prototype.getOffsetFromParent=function(){var e=this.props.scale,t=this.getParent(),n=this.getSelfElement();if(!t||null===n)return{top:0,left:0};var r=t.getBoundingClientRect(),i=r.left,o=r.top,a=n.getBoundingClientRect(),s=this.getDraggablePosition();return{left:a.left-i-s.x*e,top:a.top-o-s.y*e}},t.prototype.render=function(){var e=this.props,t=e.disableDragging,n=e.style,o=e.dragHandleClassName,u=e.position,c=e.onMouseDown,f=e.onMouseUp,d=e.dragAxis,p=e.dragGrid,h=e.bounds,m=e.enableUserSelectHack,g=e.cancel,v=e.children,b=(e.onResizeStart,e.onResize,e.onResizeStop,e.onDragStart,e.onDrag,e.onDragStop,e.resizeHandleStyles),y=e.resizeHandleClasses,w=e.resizeHandleComponent,_=e.enableResizing,x=e.resizeGrid,E=e.resizeHandleWrapperClass,S=e.resizeHandleWrapperStyle,C=e.scale,O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0&&void 0!==arguments[0]?arguments[0]:{},t=e.sibling,n=void 0!==t&&t;return(0,r.css)([""," .dropdown-menu{> li > a{color:",";:hover,:focus{color:",";background-color:",";}}> .active > a{background-color:",";color:",";:hover,:focus{background-color:",";color:",";}}> .disabled > a{color:",";:hover,:focus{background-color:",";color:",";}}}"],n&&"& ~",i.default.primary.tre,o.util.contrastingColor(i.default.secondary.due),i.default.secondary.due,i.default.tertiary.due,o.util.contrastingColor(i.default.tertiary.due),i.default.tertiary.uno,o.util.contrastingColor(i.default.tertiary.uno),o.util.contrastingColor(i.default.primary.tre,"AA"),i.default.secondary.due,o.util.contrastingColor(i.default.primary.tre,"AAA"))};exports.default=a,e.exports=exports.default},e9JqUn9W:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("1SPPmkhJ")),r=o(t("7QAbkgSv")),i=o(t("Mcd/Xly4"));function o(e){return e&&e.__esModule?e:{default:e}}var a=n.default.getActions("Alerts"),s=r.default.getStore("Streams"),l={streams:[],initialize:function(){var e=this;s.listStreams().then(function(t){e.streams=t})},fillAlertAnnotator:function(e,t,n,r){var i=this;if(e&&e[0]&&e[0].x){var o=e[0].x;(t?a.list.triggerPromise(t,o):a.listAllStreams.triggerPromise(o)).then(function(e){i._addAnnotations(e.alerts,n),"function"==typeof r&&r()})}},_addAnnotations:function(e,t){var n=this;e.length>0&&!this.streams&&console.warn("Could not resolve stream names on alert annotations: stream list was not loaded."),e.forEach(function(e){var r=i.default.fromUTCDateTime(e.triggered_at).toMoment().unix();t.add(r,n._getAlertAnnotation(e)),t.update()})},_getAlertAnnotation:function(e){var t;return this.streams&&(t=this.streams.filter(function(t){return t.id===e.stream_id})[0])," Stream \"".concat((t=t||{title:"Undefined"}).title,'" triggered an alert: ').concat(e.description)}};l.initialize();var u=l;exports.default=u,e.exports=exports.default},eCP9gG8B:function(e,exports){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r0?k+O:""}},ej3mU2x1:function(e,exports,t){e.exports=t.p+"59ee52f1f4039ec528f2204c77117956.js"},enBdM1XB:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ivGQtwpr")),r=o(t("ii0bleBb")),i=t("os2pWP01");function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n"):Array.isArray(e)?e.join(", "):String(e),n.default.createElement("li",{key:"".concat(o,"-").concat(t)},n.default.createElement("div",{className:"key"},t,":")," ",n.default.createElement("div",{className:"value"},i))}),f(u(r),"_formatPasswordField",function(e,t){var i=r.props.id;return n.default.createElement("li",{key:"".concat(i,"-").concat(t)},n.default.createElement("div",{className:"key"},t,":"),n.default.createElement("div",{className:"value"},r.PASSWORD_PLACEHOLDER))}),f(u(r),"_formatConfiguration",function(e,t,i){if(!t)return"";var o=Object.keys(t).sort().map(function(e){var n=t[e],o=i&&i.requested_configuration?i.requested_configuration[e]:void 0;return o&&o.attributes.indexOf("is_password")>-1?r._formatPasswordField(n,e):r._formatRegularField(n,e)});return o.length<1&&o.push(n.default.createElement("li",{key:"placeholder"},"-- no configuration --")),n.default.createElement("ul",null,o)}),r}var r,o,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,n["default"].Component),r=t,(o=[{key:"render",value:function(){var e=this.props,t=e.id,r=e.configuration,o=e.typeDefinition;return n.default.createElement(i.Well,{bsSize:"small",className:"configuration-well react-configuration-well"},this._formatConfiguration(t,r,o))}}])&&s(r.prototype,o),d&&s(r,d),t}();f(d,"propTypes",{id:r.default.string.isRequired,configuration:r.default.any,typeDefinition:r.default.object}),f(d,"defaultProps",{configuration:void 0,typeDefinition:{}});var p=d;exports.default=p,e.exports=exports.default},enjB4QzD:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ChromePointer=void 0;var n=i(t("ivGQtwpr")),r=i(t("zGS59GCK"));function i(e){return e&&e.__esModule?e:{default:e}}var o=exports.ChromePointer=function(){var e=(0,r.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return n.default.createElement("div",{style:e.picker})};exports.default=o},eor5MVfv:function(e,exports,t){var n=t("wZCk8eAc");e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},"erY/L2X9":function(e,exports,t){var n=t("OZDaeQRv");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t("5omYMvbi")(n,r);n.locals&&(e.exports=n.locals)},esOzjksv:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("ak+cODeF"),r=!1,i=function(){function e(e){this.internalMonitor=e.getMonitor()}return e.prototype.receiveHandlerId=function(e){this.targetId=e},e.prototype.canDrop=function(){n(!r,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html");try{return r=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{r=!1}},e.prototype.isOver=function(e){return this.internalMonitor.isOverTarget(this.targetId,e)},e.prototype.getItemType=function(){return this.internalMonitor.getItemType()},e.prototype.getItem=function(){return this.internalMonitor.getItem()},e.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},e.prototype.didDrop=function(){return this.internalMonitor.didDrop()},e.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},e.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},e.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},e.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},e.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();exports.TargetMonitor=i,exports.default=function(e){return new i(e)}},et3biX5x:function(e,exports,t){e.exports=t.p+"17af9478fec68703338004d5d3763199.js"},eyc2cEAy:function(e,exports,t){e.exports=t.p+"35b142b2ed7e122864e44a2d1d5fb28d.js"},"f//VuARZ":function(e,exports,t){e.exports=t.p+"98adfb0e6de1309dc4fccc43167bd6f2.js"},fD2cps9S:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=u(t("ii0bleBb")),r=u(t("ivGQtwpr")),i=u(t("PcYM+wZ7")),o=u(t("DJcN75oM")),a=u(t("y6gqf0G9")),s=t("DlhHh5IY"),l=t("qwOa7NSh");function u(e){return e&&e.__esModule?e:{default:e}}var c=(0,i.default)({displayName:"AlertForm",propTypes:{onSubmit:n.default.func.isRequired},contextTypes:{intl:n.default.object.isRequired},mixins:[o.default],componentWillMount:function(){var e={placeholderTitle:this.context.intl.formatMessage({id:"wizard.placeholderCloneTitle",defaultMessage:"A descriptive name of the new alert rule"})};this.setState({messages:e})},getInitialState:function(){return{title:"",description:""}},_resetValues:function(){this.setState({title:""}),this.setState({description:""})},_onSubmit:function(){this.props.onSubmit(this.state.origTitle,this.state.title,this.state.description),this.refs.modal.close()},open:function(e){this.setState({origTitle:e}),this._resetValues(),this.refs.modal.open()},close:function(){this.refs.modal.close()},_onValueChanged:function(e){var t,n,r;this.setState((t={},n=e.target.name,r=e.target.value,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))},render:function(){return r.default.createElement(a.default,{ref:"modal",title:r.default.createElement(l.FormattedMessage,{id:"wizard.cloneAlertRule",defaultMessage:'Cloning Alert Rule "{title}"',values:{title:this.state.origTitle}}),onSubmitForm:this._onSubmit,cancelButtonText:r.default.createElement(l.FormattedMessage,{id:"wizard.cancel",defaultMessage:"Cancel"}),submitButtonText:r.default.createElement(l.FormattedMessage,{id:"wizard.save",defaultMessage:"Save"})},r.default.createElement(s.Input,{id:"title",type:"text",required:!0,label:r.default.createElement(l.FormattedMessage,{id:"wizard.title",defaultMessage:"Title"}),name:"title",placeholder:this.state.messages.placeholderTitle,onChange:this._onValueChanged,autoFocus:!0}),r.default.createElement(s.Input,{id:"description",type:"text",label:r.default.createElement(l.FormattedMessage,{id:"wizard.fieldDescription",defaultMessage:"Description"}),name:"description",onChange:this._onValueChanged}))}});exports.default=c,e.exports=exports.default},"fT+KanPF":function(e,exports,t){e.exports=t.p+"f1cba92ba013e9c7c1b5d8d890acc6f3.js"},fTtZer2A:function(e,exports,t){"use strict";exports.__esModule=!0,exports.default=exports.EXITING=exports.ENTERED=exports.ENTERING=exports.EXITED=exports.UNMOUNTED=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(t("ii0bleBb")),r=a(t("ivGQtwpr")),i=a(t("vU3dbCc2")),o=t("NxirUgr1");t("e122pN7r");function a(e){return e&&e.__esModule?e:{default:e}}var s="unmounted";exports.UNMOUNTED=s;var l="exited";exports.EXITED=l;var u="entering";exports.ENTERING=u;var c="entered";exports.ENTERED=c;exports.EXITING="exiting";var f=function(e){var t,n;function o(t,n){var r;r=e.call(this,t,n)||this;var i,o=n.transitionGroup,a=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i=l,r.appearStatus=u):i=c:i=t.unmountOnExit||t.mountOnEnter?s:l,r.state={status:i},r.nextCallback=null,r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=o.prototype;return a.getChildContext=function(){return{transitionGroup:null}},o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:l}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==u&&n!==c&&(t=u):n!==u&&n!==c||(t="exiting")}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=i.default.findDOMNode(this);t===u?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:s})},a.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;t||r?(this.props.onEnter(e,i),this.safeSetState({status:u},function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,function(){n.safeSetState({status:c},function(){n.props.onEntered(e,i)})})})):this.safeSetState({status:c},function(){n.props.onEntered(e)})},a.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:l},function(){t.props.onExited(e)})})})):this.safeSetState({status:l},function(){t.props.onExited(e)})},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,["children"]);if(delete i.in,delete i.mountOnEnter,delete i.unmountOnExit,delete i.appear,delete i.enter,delete i.exit,delete i.timeout,delete i.addEndListener,delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,"function"==typeof n)return n(e,i);var o=r.default.Children.only(n);return r.default.cloneElement(o,i)},o}(r.default.Component);function d(){}f.contextTypes={transitionGroup:n.object},f.childContextTypes={transitionGroup:function(){}},f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},f.UNMOUNTED=0,f.EXITED=1,f.ENTERING=2,f.ENTERED=3,f.EXITING=4;var p=(0,o.polyfill)(f);exports.default=p},fZ4OAAo6:function(e,exports,t){var n=t("4n0j/lOJ");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t("5omYMvbi")(n,r);n.locals&&(e.exports=n.locals)},fa5q4Bq7:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=m(t("ivGQtwpr")),r=m(t("NV2C8ebe")),i=t("ii0bleBb"),o=t("/H8ohJ6c"),a=m(t("6HZFg4d4")),s=m(t("nWIS8De6")),l=m(t("/LO7rk3x")),u=m(t("cIusrLvy")),c=t("os2pWP01"),f=m(t("P7iCYbBy")),d=m(t("cpQ7ef1b")),p=m(t("B0I5DBk0")),h=m(t("6VM4uOSz"));function m(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var n=0;n-1}},"gS+o5XrU":function(e,exports,t){e.exports=t.p+"14f102a63e9d6f0187e8e822099d2f16.js"},gf8Vy4wu:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r=t("KX2Ezx4E"),i=t("tUPJ+u4I"),o=t("SMGljI5q"),a=(n=t("PV/MXHm+"))&&n.__esModule?n:{default:n};var s=function(e){var t=e.bsStyle,n=function(e){var n="link"===t,a=function(e){return n?e:o.util.contrastingColor(e)},s=function(e,t){return n?t:(e<0?i.lighten:i.darken)(Math.abs(e),t)},l=(0,i.getLuminance)(e)>.5?i.darken:i.lighten,u=n?"transparent":e,c=n?"transparent":l(.05,e),f=a(e),d=n?"transparent":l(.1,e),p=n?"transparent":l(.15,e),h=a(l(.1,e)),m=n?"transparent":l(.2,e),g=n?"transparent":l(.15,e),v=a(l(.2,e));return(0,r.css)(["background-color:",";border-color:",";color:",";transition:background-color 150ms ease-in-out,border 150ms ease-in-out,color 150ms ease-in-out;:hover{background-color:",";border-color:",";color:",";}&.active{background-color:",";border-color:",";color:",";:hover{background-color:",";border-color:",";color:",";}}&[disabled],&.disabled{background-color:",";border-color:",";color:",";:hover{background-color:",";border-color:",";color:",";}}"],u,c,f,s(.05,u),s(.05,c),s(.05,f),d,p,h,s(.05,d),s(.05,p),s(.05,h),m,g,v,s(-.05,m),s(-.05,g),s(-.05,v))};return(0,a.default)(n,{link:{teinte:n(o.teinte.tertiary.quattro)}})};exports.default=s,e.exports=exports.default},"gnVokHG/":function(e,exports,t){e.exports=t.p+"b06871f281fee6b241d60582ae9369b9.ttf"},gnucK2Fx:function(e,exports,t){e.exports=t.p+"c7d3041669874ef8ad71f336ae87e32a.js"},grghezTV:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=h(t("ivGQtwpr")),r=h(t("PcYM+wZ7")),i=h(t("7wHi4ydR")),o=t("qwOa7NSh"),a=h(t("z/eN47+5")),s=t("os2pWP01"),l=h(t("a4RCL6F0")),u=t("qOZsORvD"),c=t("wkvtUUMm"),f=h(t("TSSCj36W")),d=h(t("6H5fCDEz")),p=h(t("Mcd/Xly4"));function h(e){return e&&e.__esModule?e:{default:e}}var m=t("5mip0w5Y"),g=navigator.language.split(/[-_]/)[0];(0,o.addLocaleData)(m);var v={fr:a.default},b=(0,r.default)({displayName:"ExportListPage",getInitialState:function(){return{}},componentDidMount:function(){var e=this;l.default.list().then(function(t){e.setState({alertLists:t})})},isEmpty:function(e){return void 0===e||("function"==typeof e.count?0===e.count():0===e.length)},selectAllAlertLists:function(){var e=this;Object.keys(this.refs).forEach(function(t){0===t.indexOf("alertLists")&&(e.refs[t].checked=!0)})},formatAlertList:function(e){return n.default.createElement("div",{className:"checkbox",key:"alertList_checkbox-".concat(e.title)},n.default.createElement("label",{className:"checkbox"},n.default.createElement("input",{ref:"alertLists.".concat(e.title),type:"checkbox",name:"alertLists",id:"alertList_".concat(e.title),value:e.title}),e.title),n.default.createElement("span",{className:"help-inline"},n.default.createElement(o.FormattedMessage,{id:"wizard.fieldDescription",defaultMessage:"Description"}),": ",n.default.createElement("tt",null,e.description)),n.default.createElement("span",{className:"help-inline"},n.default.createElement(o.FormattedMessage,{id:"wizard.fieldLists",defaultMessage:"Lists"}),": ",n.default.createElement("tt",null,e.lists)))},onSubmit:function(e){var t=this;e.preventDefault();var n={titles:[]};Object.keys(this.refs).forEach(function(e){0===e.indexOf("alertLists")&&!0===t.refs[e].checked&&n.titles.push(t.refs[e].value)}),l.default.exportAlertLists(n).then(function(e){d.default.success("Successfully export alert lists. Starting download...","Success!");var t=p.default.ignoreTZ(p.default.now()).toString(p.default.Formats.DATETIME).replace(/:/g,"").replace(/ /g,"_");f.default.save(e,t+"_alert_lists.json","application/json","utf-8")})},render:function(){return n.default.createElement(o.IntlProvider,{locale:g,messages:v[g]},n.default.createElement(u.DocumentTitle,{title:"Export list"},n.default.createElement("div",null,n.default.createElement(u.PageHeader,{title:n.default.createElement(o.FormattedMessage,{id:"wizard.exportWizardList",defaultMessage:"Wizard: Export lists"})},n.default.createElement("span",null,n.default.createElement(o.FormattedMessage,{id:"wizard.exportAlertList",defaultMessage:"You can export a list."})),n.default.createElement("span",null,n.default.createElement(o.FormattedMessage,{id:"wizard.documentationlist",defaultMessage:"Read more about Wizard lists in the documentation."})),n.default.createElement("span",null,n.default.createElement(c.LinkContainer,{to:i.default.pluginRoute("WIZARD_LISTS")},n.default.createElement(s.Button,{bsStyle:"info"},n.default.createElement(o.FormattedMessage,{id:"wizard.backlist",defaultMessage:"Back to lists"})))," ")),n.default.createElement(s.Row,{className:"content"},n.default.createElement(s.Col,{md:6},n.default.createElement("form",{className:"form-horizontal build-content-pack",onSubmit:this.onSubmit},n.default.createElement("div",{className:"form-group"},n.default.createElement(s.Col,{sm:2},n.default.createElement("label",{className:"control-label",htmlFor:"name"},n.default.createElement(o.FormattedMessage,{id:"wizard.alertsLists",defaultMessage:"Lists"}))),n.default.createElement(s.Col,{sm:10},this.isEmpty(this.state.alertLists)?n.default.createElement("span",{className:"help-block help-standalone"},n.default.createElement(o.FormattedMessage,{id:"wizard.noListsToExport",defaultMessage:"There is no lists to export."})):n.default.createElement("span",null,n.default.createElement(s.Button,{className:"btn btn-sm btn-link select-all",onClick:this.selectAllAlertLists},n.default.createElement(o.FormattedMessage,{id:"wizard.selectAll",defaultMessage:"Select all"})),this.state.alertLists.sort(function(e,t){return e.title.localeCompare(t.title)}).map(this.formatAlertList)))),n.default.createElement("div",{className:"form-group"},n.default.createElement(s.Col,{smOffset:2,sm:10},n.default.createElement(s.Button,{bsStyle:"success",type:"submit"},n.default.createElement("i",{className:"fa fa-cloud-download"}),n.default.createElement(o.FormattedMessage,{id:"wizard.downloadContentPack",defaultMessage:"Download my content pack"}))))))))))}});exports.default=b,e.exports=exports.default},gwZH8cpA:function(e,exports,t){e.exports=t.p+"f7829c4f04f5f0384db6dd037c8835fd.js"},gwvofwM5:function(e,exports,t){e.exports=t.p+"9565ba96fc7434d4ebe12064592cf416.js"},h4y7VvKK:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=h(t("ivGQtwpr")),r=h(t("KX2Ezx4E")),i=t("tUPJ+u4I"),o=p(t("wNbjxLFG")),a=p(t("vQSmUFCW")),s=t("os2pWP01"),l=t("DlhHh5IY"),u=t("INV8sDNi"),c=p(t("/STJr0I1")),f=p(t("B0I5DBk0")),d=p(t("T5tT1uSg"));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var v=r.default.div.withConfig({displayName:"Scratchpad__ContentArea",componentId:"sc-1jcqem9-0"})(["display:flex;flex-direction:column;height:100%;"]),b=r.default.p.withConfig({displayName:"Scratchpad__Description",componentId:"sc-1jcqem9-1"})(["color:",";margin:9px 0 6px;"],a.default.primary.due),y=r.default.textarea.withConfig({displayName:"Scratchpad__Textarea",componentId:"sc-1jcqem9-2"})(function(e){return(0,r.css)(["width:100%;padding:3px;resize:none;flex:1;margin-bottom:15px;border:1px solid ",";box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px ",';transition:border 150ms ease-in-out,box-shadow 150ms ease-in-out;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:14px;:focus{border-color:',";outline:none;}"],e.copied?a.default.tertiary.tre:a.default.secondary.tre,(0,i.rgba)(e.copied?a.default.tertiary.tre:a.default.secondary.tre,.6),a.default.tertiary.due)}),w=(0,r.default)(s.Alert).withConfig({displayName:"Scratchpad__StyledAlert",componentId:"sc-1jcqem9-3"})(["&&{padding:6px 12px;margin-bottom:9px;display:flex;align-items:center;}"]),_=r.default.em.withConfig({displayName:"Scratchpad__AlertNote",componentId:"sc-1jcqem9-4"})(["margin-left:6px;flex:1;"]),x=r.default.footer.withConfig({displayName:"Scratchpad__Footer",componentId:"sc-1jcqem9-5"})(["display:flex;align-items:center;padding-bottom:9px;"]),E=r.default.span.withConfig({displayName:"Scratchpad__SavingMessage",componentId:"sc-1jcqem9-6"})(function(e){var t=e.visible;return"\n flex: 1;\n color: ".concat(a.default.tertiary.tre,";\n font-style: italic;\n opacity: ").concat(t?"1":"0",";\n transition: opacity 150ms ease-in-out;\n")}),S=function(){var e,t=(0,n.useRef)(),r=(0,n.useRef)(),i=(0,n.useContext)(u.ScratchpadContext),a=i.isScratchpadVisible,p=i.setScratchpadVisibility,h=i.localStorageItem,S=d.default.get(h)||{},C=g((0,n.useState)(S.securityConfirmed||!1),2),O=C[0],k=C[1],M=g((0,n.useState)(S.value||""),2),A=M[0],T=M[1],P=g((0,n.useState)(S.size||void 0),2),j=P[0],R=P[1],D=g((0,n.useState)(!1),2),F=D[0],I=D[1],L=g((0,n.useState)(!1),2),N=L[0],z=L[1],B=g((0,n.useState)(!1),2),H=B[0],U=B[1],W=g((0,n.useState)(S.position||void 0),2),G=W[0],q=W[1],V=function(e){var t=d.default.get(h);d.default.set(h,function(e){for(var t=1;t=400){var s="cannot "+t.method+" "+t.url+" ("+a.status+")";(e=new o(s)).status=a.status,e.body=a.body,e.res=a,r(e)}else i?r(new o(i.message,i)):n(a)}),"function"==typeof i&&i(function(){t.abort()})})},i.prototype.then=function(){var e=this.promise();return e.then.apply(e,arguments)},i.prototype.catch=function(){var e=this.promise();return e.catch.apply(e,arguments)}},hdQHfdSM:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function e(t,n){return"string"==typeof t||"symbol"==typeof t||!!n&&Array.isArray(t)&&t.every(function(t){return e(t,!1)})}},hdcso7KI:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SwatchesColor=void 0;var n=s(t("ivGQtwpr")),r=s(t("zGS59GCK")),i=s(t("kOI9bxm6")),o=t("50Juodil"),a=s(t("FIH0PMrk"));function s(e){return e&&e.__esModule?e:{default:e}}var l=exports.SwatchesColor=function(e){var t=e.color,s=e.onClick,l=void 0===s?function(){}:s,u=e.onSwatchHover,c=e.first,f=e.last,d=e.active,p=(0,r.default)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:i.default.getContrastingColor(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:c,last:f,active:d,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return n.default.createElement(o.Swatch,{color:t,style:p.color,onClick:l,onHover:u,focusStyle:{boxShadow:"0 0 4px "+t}},n.default.createElement("div",{style:p.check},n.default.createElement(a.default,null)))};exports.default=l},hgg5N7gh:function(e,exports,t){var n=t("O+YxuZGn"),r=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}},hjJtbEt7:function(e,exports,t){e.exports=t.p+"f2acd1aab459563bc17a2d4c6839455e.js"},hkBRTQ1C:function(e,exports,t){e.exports=t.p+"157d3a341b3d1602f9dc029331bf4643.js"},hkYW3t1d:function(e,exports,t){var n=t("CupN+4mD"),r=t("U1UKruUk"),i=t("IF7lHyDi"),o=t("Eom51AvC"),a=t("bYbldQND"),s=t("yRXRscZV"),l=t("owiykrTV"),u=l(n),c=l(r),f=l(i),d=l(o),p=l(a),h=s;(n&&"[object DataView]"!=h(new n(new ArrayBuffer(1)))||r&&"[object Map]"!=h(new r)||i&&"[object Promise]"!=h(i.resolve())||o&&"[object Set]"!=h(new o)||a&&"[object WeakMap]"!=h(new a))&&(h=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case u:return"[object DataView]";case c:return"[object Map]";case f:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=h},hkmbQdkX:function(e,exports){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII="},hlVUI3ji:function(e,exports,t){var n=t("yiYgn92r"),r=t("Dd9klwgo");e.exports=function(e,t){return e&&n(t,r(t),e)}},hroej4vc:function(e,exports,t){"use strict";exports.__esModule=!0;var n=Object.assign||function(e){for(var t=1;te.w||n>e.maxW?new Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(e,t){var n=e[t];return"number"!=typeof n?new Error("maxWidth not Number"):ne.h||n>e.maxH?new Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(e,t){var n=e[t];return"number"!=typeof n?new Error("maxHeight not Number"):n-1},c=function(e){return Number(String(e).replace(/%/g,""))},f=exports.EditableInput=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t=c(e.target.value);if(!isNaN(t)&&u(e.keyCode)){var r=n.getArrowOffset(),i=e.keyCode===s?t+r:t-r;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n}return function(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)}(t,r.PureComponent||r.Component),n(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.input;e.value!==this.state.value&&(t===document.activeElement?this.setState({blurValue:String(e.value).toUpperCase()}):this.setState({value:String(e.value).toUpperCase(),blurValue:!this.state.blurValue&&String(e.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=null!==this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t);var r,i=function(e){return String(e).indexOf("%")>-1}(t.target.value);this.setState({value:i?(r=e,r+"%"):e})}},{key:"render",value:function(){var e=this,t=(0,o.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return i.default.createElement("div",{style:t.wrap},i.default.createElement("input",{style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?i.default.createElement("span",{style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}();exports.default=f},iG1AjSQm:function(e,exports,t){var n=t("SzBuSUKx"),r=1,i=4;e.exports=function(e){return n(e,r|i)}},iHmf1uM0:function(e,exports,t){e.exports=t.p+"674f50d287a8c48dc19ba404d20fe713.eot"},iLnaOEZx:function(e,exports,t){e.exports=t("jaIgFIJB")(298)},iQdEDQ35:function(e,exports,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n2&&void 0!==arguments[2]?arguments[2]:0,i=n.join("-");return r&&(i+="-"+r),f[i]?e(t,n,r+1):(f[i]=t,i)},p=function(e){return f[e]},h=function(){return l({},f)},m="__LOADABLE_STATE__",g="@@loadable-components/loadable";function v(){if("undefined"==typeof window)return Promise.reject(new Error("loadable-components: `loadComponents` must be called client-side: `window` is undefined"));var e=window[m];return e?function e(t){return t.children?Promise.all(t.children.map(function(t){var n=p(t.id);if(!n)return console.warn("loadable-component client modules:",h()),console.warn("loadable-component server modules:",window[m]),Promise.reject(new Error('loadable-components: module "'+t.id+'" is not found, client and server modules are not sync. You are probably not using the same resolver on server and client.'));var r=n[g];return"function"!=typeof r?Promise.reject(new Error('loadable-components: module "'+t.id+'" is not a loadable component, please verify your SSR setup')):r().load().then(function(){return e(t)})})):Promise.resolve(null)}(e):Promise.reject(new Error("loadable-components state not found. You have a problem server-side. Please verify that you have called `loadableState.getScriptTag()` server-side."))}function b(){var e,t=h(),n=Object.keys(t).reduce(function(e,n){var r=t[n];return r.loadingPromise?[].concat(e,[{id:r.componentId}]):e},[]);return(e={})[m]={children:n},e}var y=function(e){return e.default||e},w=function(){return null};var _=Object.freeze({track:d,get:p,getAll:h,reset:function(){f={}}});t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ErrorComponent,r=void 0===n?w:n,o=t.LoadingComponent,f=void 0===o?w:o,p=t.render,h=t.modules,m=t.asyncMode,v=function(t){function n(e){s(this,n);var r=c(this,t.call(this,e));return r.state={Component:n.Component,error:null,loading:!n.Component},r.mounted=!1,r.loadingPromise=null,"undefined"!=typeof window&&null===r.state.Component&&null===r.loadingPromise&&(r.loadingPromise=n.load().then(function(e){r.safeSetState({Component:e,loading:!1})}).catch(function(e){r.safeSetState({error:e,loading:!1})})),r}return u(n,t),n.load=function(){return n.loadingPromise||(n.loadingPromise=e().then(function(e){var t,r=y(e);return n.Component=r,a()(n,r,((t={Component:!0,loadingPromise:!0,load:!0})[g]=!0,t.componentId=!0,t)),r}).catch(function(e){throw n.loadingPromise=null,e})),n.loadingPromise},n.prototype.componentDidMount=function(){this.mounted=!0},n.prototype.componentWillUnmount=function(){this.mounted=!1},n.prototype.safeSetState=function(e){this.mounted&&this.setState(e)},n.prototype.render=function(){var e=this.state,t=e.Component,n=e.error;if("function"==typeof p)return p(l({},this.state,{ownProps:this.props}));if(null!==t)return i.a.createElement(t,this.props);if(null!==n)return i.a.createElement(r,{error:n,ownProps:this.props});if(m)throw this.loadingPromise;return i.a.createElement(f,this.props)},n}(i.a.Component);if(v.Component=null,v.loadingPromise=null,v[g]=function(){return v},h){var b=d(v,h);v.componentId=b}return v}},ii0bleBb:function(e,exports,t){e.exports=t("jaIgFIJB")(9)},ikzlDpcK:function(e,exports,t){var n=t("eXnMMeS9");e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},iqTv9aq3:function(e,exports,t){"use strict";function n(e){return new Date(e.getTime())}function r(e,t){var r=n(e);return r.setMonth(e.getMonth()+t),r}function i(e,t){return!(!e||!t)&&(e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear())}function o(e,t){return n(e).setHours(0,0,0,0)n(t).setHours(0,0,0,0)}function s(e){var t=new Date;return t.setHours(0,0,0,0),o(e,t)}function l(e){var t=new Date((new Date).getTime()+864e5);return t.setHours(0,0,0,0),e>=t}function u(e,t,r){var i=n(e);return i.setHours(0,0,0,0),a(i,t)&&o(i,r)||a(i,r)&&o(i,t)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:null,to:null},n=t.from,r=t.to;return n?n&&r&&i(n,r)&&i(e,n)?(n=null,r=null):r&&o(e,n)?n=e:r&&i(e,r)?(n=e,r=e):o(r=e,n)&&(r=n,n=e):n=e,{from:n,to:r}}function f(e,t){var n=t.from,r=t.to;return n&&i(e,n)||r&&i(e,r)||n&&r&&u(e,n,r)}function d(e){var t=n(e);return t.setHours(0,0,0),t.setDate(t.getDate()+4-(t.getDay()||7)),Math.ceil(((t-new Date(t.getFullYear(),0,1))/864e5+1)/7)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.clone=n,exports.addMonths=r,exports.isSameDay=i,exports.isDayBefore=o,exports.isDayAfter=a,exports.isPastDay=s,exports.isFutureDay=l,exports.isDayBetween=u,exports.addDayToRange=c,exports.isDayInRange=f,exports.getWeekNumber=d,exports.default={addDayToRange:c,addMonths:r,clone:n,getWeekNumber:d,isDayAfter:a,isDayBefore:o,isDayBetween:u,isDayInRange:f,isFutureDay:l,isPastDay:s,isSameDay:i}},ivGQtwpr:function(e,exports,t){e.exports=t("jaIgFIJB")(0)},"ixmX+3Tv":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(t("ivGQtwpr")),r=f(t("ii0bleBb")),i=f(t("bcEkMz+H")),o=f(t("KWzh15eC")),a=f(t("45N4IsJL")),s=f(t("7wHi4ydR")),l=t("os2pWP01"),u=t("C96fpu2F"),c=f(t("a6scfHpn"));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){for(var t=1;t0?d({},l,{streams:a.join(",")}):l;return"".concat(s.default.SEARCH,"?").concat(i.default.stringify(c))}(n,(0,o.default)(t).subtract(Number(e),"seconds").toISOString(),(0,o.default)(t).add(Number(e),"seconds").toISOString(),[],function(e,t){var n=t.surrounding_filter_fields;return(void 0===n?[]:n).reduce(function(t,n){return d({},t,p({},n,e[n]))},{})}(r,a),l)},g=function(e){var t,r,i=e.searchConfig,s=e.timestamp,u=e.id,f=e.messageFields,g=(0,n.useContext)(c.default).streams,v=(t=i.surrounding_timerange_options,r=void 0===t?{}:t,Object.entries(r).reduce(function(e,t){var n=h(t,2),r=n[0],i=n[1];return d({},e,p({},o.default.duration(r).asSeconds(),i))},{})),b=Object.keys(v).sort(function(e,t){return(0,a.default)(e,t)}).map(function(e){return n.createElement(l.MenuItem,{key:e,href:m(e,s,u,f,i,g),target:"_blank",rel:"noopener noreferrer"},v[e])});return n.createElement(l.DropdownButton,{title:"Show surrounding messages",bsSize:"small",id:"surrounding-search-dropdown"},b)};g.propTypes={id:r.default.string.isRequired,timestamp:r.default.string.isRequired,searchConfig:r.default.object.isRequired,messageFields:r.default.object.isRequired};var v=g;exports.default=v,e.exports=exports.default},iz46sUwP:function(e,exports){e.exports=function(e,t){return null!=e&&t in Object(e)}},j4xtFCjZ:function(e,exports,t){e.exports=t.p+"d86cc6d49f658806bd73214df8d339b3.js"},j6rLq9rU:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){var i=(0,r.default)(e);return i?i.innerHeight:t?e.clientHeight:(0,n.default)(e).height};var n=i(t("uFFaJ7o2")),r=i(t("PoZw58Gy"));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=exports.default},"jBfUYu/J":function(e,exports,t){var n=t("36gvFkyC"),r=t("PIvmiIaU"),i=t("RNZ0AJ6u"),o=t("ujvxbrYf"),a=t("eor5MVfv");function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t1&&new r.default.Graph.Axis.Time({graph:t,ticksTreatment:"glow",timeFixture:new r.default.Fixtures.Graylog2Time}),new r.default.Graph.HoverDetail({graph:t,formatter:function(e,t,n){var r=new i.default(1e3*t).toString(i.default.Formats.COMPLETE),o=''.concat(r,"");return"".concat((0,a.default)(parseInt(n)).format("0,0")," messages
").concat(o)},xFormatter:function(e){return new Date(1e3*e).toDateString()}}),new r.default.Graph.Graylog2Selector({graph:t}),this._annotator=new r.default.Graph.Annotate({graph:t,element:this._graphTimeline[0]}),o.default.fillAlertAnnotator(this._histogram,this._stream,this._annotator),t.render(),this._resultHistogramGraph=t}},updateData:function(e){void 0!==this._resultHistogramGraph&&(this._histogram=e,this._resultHistogramGraph.series[0].data=e,this._resetAlertAnnotator(),this._resultHistogramGraph.update())},_resetAlertAnnotator:function(){var e=(0,n.default)(".content",this._graphTimeline);o.default.fillAlertAnnotator(this._histogram,this._stream,this._annotator,function(){e.remove()})},redrawResultGraph:function(){this._histogram.length>0&&void 0!==this._resultHistogramGraph&&(this._resultHistogramGraph.configure({width:this._getHistogramContainerWidth()}),this._resultHistogramGraph.render())}};exports.default=l,e.exports=exports.default},jpvNhKcR:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=t("4bh9nC3d"),r=a(t("KX2Ezx4E")),i=t("tUPJ+u4I"),o=a(t("vQSmUFCW"));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,r.default)(n.Pagination).withConfig({displayName:"Pagination",componentId:"sc-1u3exqe-0"})(["> li{> a,> span{color:",";background-color:",";border-color:",";&:hover,&:focus{color:",";background-color:",";border-color:",";}}}> .active > a,> .active > span{&,&:hover,&:focus{color:",";background-color:",";border-color:",";}}> .disabled{> span,> span:hover,> span:focus,> a,> a:hover,> a:focus{color:",";background-color:",";border-color:",";}}"],o.default.tertiary.quattro,o.default.primary.due,o.default.secondary.tre,(0,i.darken)(.15,o.default.tertiary.quattro),o.default.secondary.due,o.default.secondary.tre,o.default.primary.due,o.default.tertiary.quattro,o.default.tertiary.quattro,(0,i.darken)(.25,o.default.secondary.tre),o.default.primary.due,o.default.secondary.tre);exports.default=s,e.exports=exports.default},jswCRRRc:function(e,exports,t){var n,r,i,o,a; /*! Moment Duration Format v2.2.2 * https://github.com/jsmreese/moment-duration-format * Date: 2018-02-16 * * Duration format plugin function for the Moment.js library * http://momentjs.com/ * * Copyright 2018 John Madhavan-Reese * Released under the MIT license */o=this,a=function(e){var t=!1,n=!1,r="escape years months weeks days hours minutes seconds milliseconds general".split(" "),i=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function o(e,t){return!(t.length>e.length)&&-1!==e.indexOf(t)}function a(e){for(var t="";e;)t+="0",e-=1;return t}function s(e,t,r){var i,o,l,u=t.useToLocaleString,c=t.useGrouping,f=c&&t.grouping.slice(),d=t.maximumSignificantDigits,p=t.minimumIntegerDigits||1,h=t.fractionDigits||0,m=t.groupingSeparator,g=t.decimalSeparator;if(u&&r){var v={minimumIntegerDigits:p,useGrouping:c};if(h&&(v.maximumFractionDigits=h,v.minimumFractionDigits=h),d&&e>0&&(v.maximumSignificantDigits=d),!n){var b=_({},t);b.useGrouping=!1,b.decimalSeparator=".",e=parseFloat(s(e,b),10)}return e.toLocaleString(r,v)}var y=(d?e.toPrecision(d+1):e.toFixed(h+1)).split("e");l=y[1]||"",o=(y=y[0].split("."))[1]||"";var w=(i=y[0]||"").length,x=o.length,E=w+x,S=i+o;(d&&E===d+1||!d&&x===h+1)&&((S=function(e){for(var t=e.split("").reverse(),n=0,r=!0;r&&n0?o.length<=C?(i+=o+=a(C-o.length),o=""):(i+=o.slice(0,C),o=o.slice(C)):C<0&&(o=a(Math.abs(C)-i.length)+i+o,i="0"),d||((o=o.slice(0,h)).lengtht.label.length?-1:e.label.length0,V=q?a.precision:0,K=V,Q=a.minValue,Y=!1,X=a.maxValue,Z=!1,J=a.useToLocaleString,ee=a.groupingSeparator,te=a.decimalSeparator,ne=a.grouping;J=J&&t;var re=a.trim;f(re)&&(re=re.join(" ")),null===re&&(F||X||q)&&(re="all"),null!==re&&!0!==re&&"left"!==re&&"right"!==re||(re="large"),!1===re&&(re="");var ie=function(e){return e.test(re)},oe=/both/,ae=/^all|[^sm]all/,se=F>0||E([/large/,oe,ae],ie),le=E([/small/,oe,ae],ie),ue=E([/mid/,ae],ie),ce=E([/final/,ae],ie),fe=m(j.match(P),function(e,t){var n=T(e);return"*"===e.slice(0,1)&&(e=e.slice(1),"escape"!==n&&"general"!==n&&I.push(n)),{index:t,length:e.length,text:"",token:"escape"===n?e.replace(A.escape,"$1"):e,type:"escape"===n||"general"===n?null:n}}),de={index:0,length:0,token:"",text:"",type:null},pe=[];z&&fe.reverse(),h(fe,function(e){if(e.type)return(de.type||de.text)&&pe.push(de),void(de=e);z?de.text=e.token+de.text:de.text+=e.token}),(de.type||de.text)&&pe.push(de),z&&pe.reverse();var he=y(r,b(v(g(pe,"type"))));if(!he.length)return g(pe,"text").join("");he=m(he,function(e,t){var n,r=t+1===he.length,i=!t;n="years"===e||"months"===e?k.as(e):O.as(e);var o=Math.floor(n),s=n-o,l=p(pe,function(t){return e===t.type});return i&&X&&n>X&&(Z=!0),r&&Q&&Math.abs(a.duration.as(e))1&&(U=!0),O.subtract(o,e),k.subtract(o,e),{rawValue:n,wholeValue:o,decimalValue:r?s:0,isSmallest:r,isLargest:i,type:e,tokenLength:l.length}});var me,ge=G?Math.floor:Math.round,ve=function(e,t){var n=Math.pow(10,t);return ge(e*n)/n},be=!1,ye=!1,we=function(e,t){var n={useGrouping:W,groupingSeparator:ee,decimalSeparator:te,grouping:ne,useToLocaleString:J};return q&&(V<=0?(e.rawValue=0,e.wholeValue=0,e.decimalValue=0):(n.maximumSignificantDigits=V,e.significantDigits=V)),Z&&!ye&&(e.isLargest?(e.wholeValue=X,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),Y&&!ye&&(e.isSmallest?(e.wholeValue=Q,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),e.isSmallest||e.significantDigits&&e.significantDigits-e.wholeValue.toString().length<=0?H<0?e.value=ve(e.wholeValue,H):0===H?e.value=ge(e.wholeValue+e.decimalValue):q?(e.value=G?ve(e.rawValue,V-e.wholeValue.toString().length):e.rawValue,e.wholeValue&&(V-=e.wholeValue.toString().length)):(n.fractionDigits=H,e.value=G?e.wholeValue+ve(e.decimalValue,H):e.wholeValue+e.decimalValue):q&&e.wholeValue?(e.value=Math.round(ve(e.wholeValue,e.significantDigits-e.wholeValue.toString().length)),V-=e.wholeValue.toString().length):e.value=e.wholeValue,e.tokenLength>1&&(U||be)&&(n.minimumIntegerDigits=e.tokenLength,ye&&n.maximumSignificantDigits0||""===re||p(I,e.type)||p(R,e.type))&&(be=!0),e.formattedValue=s(e.value,n,N),n.useGrouping=!1,n.decimalSeparator=".",e.formattedValueEn=s(e.value,n,"en"),2===e.tokenLength&&"milliseconds"===e.type&&(e.formattedValueMS=s(e.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),e};if((he=v(he=m(he,we))).length>1){var _e=function(e){return p(he,function(t){return t.type===e})};h(i,function(e){var t=_e(e.type);t&&h(e.targets,function(e){var n=_e(e.type);n&&parseInt(t.formattedValueEn,10)===e.value&&(t.rawValue=0,t.wholeValue=0,t.decimalValue=0,n.rawValue+=1,n.wholeValue+=1,n.decimalValue=0,n.formattedValueEn=n.wholeValue.toString(),ye=!0)})})}return ye&&(be=!1,V=K,he=v(he=m(he,we))),!R||Z&&!a.trim?(se&&(he=w(he,function(e){return!e.isSmallest&&!e.wholeValue&&!p(I,e.type)})),F&&he.length&&(he=he.slice(0,F)),le&&he.length>1&&(me=function(e){return!e.wholeValue&&!p(I,e.type)&&!e.isLargest},he=w(he.slice().reverse(),me).reverse()),ue&&(he=v(he=m(he,function(e,t){return t>0&&t ",Z=!1,Y=!1),C&&(t.value>0||""===re||p(I,t.type)||p(R,t.type))&&(n+="-",C=!1),"milliseconds"===e.type&&t.formattedValueMS?n+=t.formattedValueMS:n+=t.formattedValue,z||(n+=e.text),n})).join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function O(){var e=this.duration,t=function(t){return e._data[t]},n=p(this.types,t),r=function(e,t){for(var n=e.length;n-=1;)if(t(e[n]))return e[n]}(this.types,t);switch(n){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(n===r)return"d __";case"weeks":return n===r?"w __":(null===this.trim&&(this.trim="both"),"w __, d __, h __");case"months":if(n===r)return"M __";case"years":return n===r?"y __":(null===this.trim&&(this.trim="both"),"y __, M __, d __");default:return null===this.trim&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function k(e){if(!e)throw"Moment Duration Format init cannot find moment instance.";e.duration.format=S,e.duration.fn.format=C,e.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:O,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},e.updateLocale("en",c)}return t=!!((u=(u=!0)&&function(){try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}())&&(u=(u=(u=u&&"1"===1..toLocaleString("en",{minimumIntegerDigits:1}))&&"01"===1..toLocaleString("en",{minimumIntegerDigits:2}))&&"001"===1..toLocaleString("en",{minimumIntegerDigits:3}))&&(u=(u=(u=(u=u&&"100"===99.99.toLocaleString("en",{maximumFractionDigits:0,minimumFractionDigits:0}))&&"100.0"===99.99.toLocaleString("en",{maximumFractionDigits:1,minimumFractionDigits:1}))&&"99.99"===99.99.toLocaleString("en",{maximumFractionDigits:2,minimumFractionDigits:2}))&&"99.990"===99.99.toLocaleString("en",{maximumFractionDigits:3,minimumFractionDigits:3}))&&(u=(u=(u=(u=(u=u&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:1}))&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:2}))&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:3}))&&"99.99"===99.99.toLocaleString("en",{maximumSignificantDigits:4}))&&"99.99"===99.99.toLocaleString("en",{maximumSignificantDigits:5}))&&(u=(u=u&&"1,000"===1e3.toLocaleString("en",{useGrouping:!0}))&&"1000"===1e3.toLocaleString("en",{useGrouping:!1}))),n=t&&"3.6"===3.55.toLocaleString("en",{useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:1,maximumFractionDigits:1}),k(e),k},r=[t("KWzh15eC")],void 0===(i="function"==typeof(n=a)?n.apply(exports,r):n)||(e.exports=i),o&&(o.momentDurationFormatSetup=o.moment?a(o.moment):a)},jwcVOobq:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),o=(!i&&Object.prototype.__defineGetter__,i?Object.defineProperty:function(e,t,r){"get"in r&&e.__defineGetter__?e.__defineGetter__(t,r.get):(!n.call(e,t)||"value"in r)&&(e[t]=r.value)});exports.defineProperty=o;var a=Object.create||function(e,t){var r,i;function a(){}for(i in a.prototype=e,r=new a,t)n.call(t,i)&&o(r,i,t[i]);return r};exports.objCreate=a;var s=Array.prototype.indexOf||function(e,t){if(!this.length)return-1;for(var n=t||0,r=this.length;n=128?"#000":"#fff"},exports.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}};exports.default=exports},kVtgjVzv:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(t("KX2Ezx4E")),i=t("4bh9nC3d"),o=t("tUPJ+u4I"),a=t("SMGljI5q"),s=(n=t("PV/MXHm+"))&&n.__esModule?n:{default:n};var l=(0,r.default)(i.Panel).withConfig({displayName:"Panel__StyledPanel",componentId:"niu1uf-0"})(["background-color:",";.panel-footer{background-color:",";border-top-color:",";}.panel-group{.panel-heading{+ .panel-collapse > .panel-body,+ .panel-collapse > .list-group{border-top-color:",";}}.panel-footer{+ .panel-collapse .panel-body{border-bottom-color:",";}}}",""],a.teinte.primary.due,a.teinte.secondary.tre,a.teinte.secondary.due,a.teinte.secondary.due,a.teinte.secondary.due,(0,s.default)(function(e){var t=a.util.colorLevel(e,-9),n=(0,o.darken)(.05,(0,o.adjustHue)(-10,e));return(0,r.css)(["border-color:",";& > .panel-heading{color:",";background-color:",";border-color:",";+ .panel-collapse > .panel-body{border-top-color:",";}.badge{color:",";background-color:",";}}& > .panel-footer{+ .panel-collapse > .panel-body{border-bottom-color:",";}}"],n,a.util.colorLevel(t,9),t,n,n,t,e,n)}));exports.default=l,e.exports=exports.default},kY6sTFvr:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return void 0===e&&(e=0),e+1}},"keG7qm/e":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){for(var n=[],r=2;r0)}},{key:"allowYearChange",value:function(){return this.props.canChangeMonth}},{key:"showMonth",value:function(e,t){var n=this;this.allowMonth(e)&&this.setState({currentMonth:f.startOfMonth(e)},function(){t&&t(),n.props.onMonthChange&&n.props.onMonthChange(n.state.currentMonth)})}},{key:"showNextMonth",value:function(e){if(this.allowNextMonth()){var t=this.props.pagedNavigation?this.props.numberOfMonths:1,n=d.addMonths(this.state.currentMonth,t);this.showMonth(n,e)}}},{key:"showPreviousMonth",value:function(e){if(this.allowPreviousMonth()){var t=this.props.pagedNavigation?this.props.numberOfMonths:1,n=d.addMonths(this.state.currentMonth,-t);this.showMonth(n,e)}}},{key:"showNextYear",value:function(){if(this.allowYearChange()){var e=d.addMonths(this.state.currentMonth,12);this.showMonth(e)}}},{key:"showPreviousYear",value:function(){if(this.allowYearChange()){var e=d.addMonths(this.state.currentMonth,-12);this.showMonth(e)}}},{key:"focusFirstDayOfMonth",value:function(){this.getDayNodes()[0].focus()}},{key:"focusLastDayOfMonth",value:function(){var e=this.getDayNodes();e[e.length-1].focus()}},{key:"focusPreviousDay",value:function(e){var t=this,n=this.getDayNodes(),r=[].concat(_(n)).indexOf(e);0===r?this.showPreviousMonth(function(){return t.focusLastDayOfMonth()}):n[r-1].focus()}},{key:"focusNextDay",value:function(e){var t=this,n=this.getDayNodes(),r=[].concat(_(n)).indexOf(e);r===n.length-1?this.showNextMonth(function(){return t.focusFirstDayOfMonth()}):n[r+1].focus()}},{key:"focusNextWeek",value:function(e){var t=this,n=this.getDayNodes(),r=[].concat(_(n)).indexOf(e);r>n.length-8?this.showNextMonth(function(){var e=7-(n.length-r);t.getDayNodes()[e].focus()}):n[r+7].focus()}},{key:"focusPreviousWeek",value:function(e){var t=this,n=this.getDayNodes(),r=[].concat(_(n)).indexOf(e);r<=6?this.showPreviousMonth(function(){var e=t.getDayNodes();e[e.length-7+r].focus()}):n[r-7].focus()}},{key:"handleKeyDown",value:function(e){switch(e.persist(),e.keyCode){case g.default.LEFT:this.showPreviousMonth();break;case g.default.RIGHT:this.showNextMonth();break;case g.default.UP:this.showPreviousYear();break;case g.default.DOWN:this.showNextYear()}this.props.onKeyDown&&this.props.onKeyDown(e)}},{key:"handleDayKeyDown",value:function(e,t,n){switch(n.persist(),n.keyCode){case g.default.LEFT:f.cancelEvent(n),this.focusPreviousDay(n.target);break;case g.default.RIGHT:f.cancelEvent(n),this.focusNextDay(n.target);break;case g.default.UP:f.cancelEvent(n),this.focusPreviousWeek(n.target);break;case g.default.DOWN:f.cancelEvent(n),this.focusNextWeek(n.target);break;case g.default.ENTER:case g.default.SPACE:f.cancelEvent(n),this.props.onDayClick&&this.handleDayClick(e,t,n)}this.props.onDayKeyDown&&this.props.onDayKeyDown(e,t,n)}},{key:"handleDayClick",value:function(e,t,n){n.persist(),t.outside&&this.handleOutsideDayClick(e),this.props.onDayClick(e,t,n)}},{key:"handleOutsideDayClick",value:function(e){var t=this.state.currentMonth,n=this.props.numberOfMonths,r=f.getMonthsDiff(t,e);r>0&&r>=n?this.showNextMonth():r<0&&this.showPreviousMonth()}},{key:"renderNavbar",value:function(){var e=this.props,t=e.labels,n=e.locale,r=e.localeUtils,i=e.canChangeMonth,a=e.navbarElement,s=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["labels","locale","localeUtils","canChangeMonth","navbarElement"]);if(!i)return null;var l={classNames:this.props.classNames,className:this.props.classNames.navBar,nextMonth:this.getNextNavigableMonth(),previousMonth:this.getPreviousNavigableMonth(),showPreviousButton:this.allowPreviousMonth(),showNextButton:this.allowNextMonth(),onNextClick:this.showNextMonth,onPreviousClick:this.showPreviousMonth,dir:s.dir,labels:t,locale:n,localeUtils:r};return o.default.isValidElement(a)?o.default.cloneElement(a,l):o.default.createElement(a,l)}},{key:"renderDayInMonth",value:function(e,t){var n=f.getModifiersFromProps(this.props),r=h.getModifiersForDay(e,n);d.isSameDay(e,new Date)&&!Object.prototype.hasOwnProperty.call(n,this.props.classNames.today)&&r.push(this.props.classNames.today),e.getMonth()!==t.getMonth()&&r.push(this.props.classNames.outside);var i=e.getMonth()!==t.getMonth(),a=null;this.props.onDayClick&&!i&&(a=-1,1===e.getDate()&&(a=this.props.tabIndex));var s=""+e.getFullYear()+e.getMonth()+e.getDate(),l={};return r.forEach(function(e){l[e]=!0}),o.default.createElement(u.default,{key:(i?"outside-":"")+s,classNames:this.props.classNames,day:e,modifiers:l,modifiersStyles:this.props.modifiersStyles,empty:i&&!this.props.enableOutsideDays&&!this.props.fixedWeeks,tabIndex:a,ariaLabel:this.props.localeUtils.formatDay(e,this.props.locale),ariaDisabled:i||r.indexOf("disabled")>-1,ariaSelected:r.indexOf("selected")>-1,onMouseEnter:this.props.onDayMouseEnter,onMouseLeave:this.props.onDayMouseLeave,onKeyDown:this.handleDayKeyDown,onTouchStart:this.props.onDayTouchStart,onTouchEnd:this.props.onDayTouchEnd,onFocus:this.props.onDayFocus,onClick:this.props.onDayClick?this.handleDayClick:void 0},this.props.renderDay(e,l))}},{key:"renderMonths",value:function(){for(var e=[],t=f.getFirstDayOfWeekFromProps(this.props),n=0;n1&&e.fromMonth){var n=f.getMonthsDiff(e.fromMonth,t);t=d.addMonths(e.fromMonth,Math.floor(n/e.numberOfMonths)*e.numberOfMonths)}return{currentMonth:t}},this.dayPicker=null,this.handleTodayButtonClick=function(t){e.showMonth(new Date),t.target.blur()}};exports.default=x},lAxVS0uB:function(e,exports,t){var n=t("Eom51AvC"),r=t("PNF6DnrT"),i=t("lC7W8rzW"),o=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r;e.exports=o},lC7W8rzW:function(e,exports){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},"lDA9+fNM":function(e,exports,t){(function(e){var n=t("RMa3hR3V"),r=exports&&!exports.nodeType&&exports,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}).call(this,t("9YbPW59L")(e))},lOXTQv9i:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=d(t("ii0bleBb")),r=d(t("ivGQtwpr")),i=d(t("PcYM+wZ7")),o=t("os2pWP01"),a=t("DlhHh5IY"),s=t("qOZsORvD"),l=d(t("SIdPoB4K")),u=t("qwOa7NSh"),c=d(t("7QAbkgSv")),f=d(t("8FtKQWAV"));function d(e){return e&&e.__esModule?e:{default:e}}var p=c.default.getStore("Fields"),h=(0,i.default)({displayName:"StatisticalCondition",propTypes:{onUpdate:n.default.func.isRequired},getInitialState:function(){return{type:this.props.type,field:this.props.field,threshold:this.props.threshold,threshold_type:this.props.threshold_type}},componentDidMount:function(){var e=this;p.loadFields().then(function(t){e.state.field&&""!==e.state.field&&t.indexOf(e.state.field)<0&&t.push(e.state.field),e.setState({fields:t})})},_availableAggregationTypes:function(){return[{value:"AVG",label:r.default.createElement(u.FormattedMessage,{id:"wizard.meanValue",defaultMessage:"average value"})},{value:"STDDEV",label:r.default.createElement(u.FormattedMessage,{id:"wizard.standardDeviation",defaultMessage:"standard deviation"})},{value:"MIN",label:r.default.createElement(u.FormattedMessage,{id:"wizard.minValue",defaultMessage:"min value"})},{value:"MAX",label:r.default.createElement(u.FormattedMessage,{id:"wizard.maxValue",defaultMessage:"max value"})},{value:"SUM",label:r.default.createElement(u.FormattedMessage,{id:"wizard.sum",defaultMessage:"sum"})},{value:"CARD",label:r.default.createElement(u.FormattedMessage,{id:"wizard.card",defaultMessage:"cardinality"})},{value:"COUNT",label:r.default.createElement(u.FormattedMessage,{id:"wizard.count",defaultMessage:"count"})},{value:"SUMOFSQUARES",label:r.default.createElement(u.FormattedMessage,{id:"wizard.sum",defaultMessage:"sum of squares"})},{value:"VARIANCE",label:r.default.createElement(u.FormattedMessage,{id:"wizard.variance",defaultMessage:"variance"})}]},_onAggregationTypeSelect:function(e){this.setState({type:e}),this.props.onUpdate("type",e)},_availableThresholdTypes:function(){return[{value:">",label:r.default.createElement(u.FormattedMessage,{id:"wizard.higher",defaultMessage:"higher than"})},{value:">=",label:r.default.createElement(u.FormattedMessage,{id:"wizard.higherEqual",defaultMessage:"higher or equal than"})},{value:"<",label:r.default.createElement(u.FormattedMessage,{id:"wizard.lower",defaultMessage:"lower than"})},{value:"<=",label:r.default.createElement(u.FormattedMessage,{id:"wizard.lowerEqual",defaultMessage:"lower or equal than"})},{value:"==",label:r.default.createElement(u.FormattedMessage,{id:"wizard.equal",defaultMessage:"equal"})}]},_onThresholdTypeSelect:function(e){this.setState({threshold_type:e}),this.props.onUpdate("threshold_type",e)},_updateAlertField:function(e,t){var n=l.default.clone(this.state);n[e]=t,this.setState({parameters:n}),this.props.onUpdate(e,t)},_onThresholdChanged:function(){var e=this;return function(t){e.setState({threshold:t.target.value}),e.props.onUpdate("threshold",t.target.value)}},_onParameterFieldSelect:function(e){if(this.setState({field:e}),this.props.onUpdate("field",e),""!==e&&this.state.fields.indexOf(e)<0){var t=l.default.clone(this.state.fields);t.push(e),this.setState({fields:t})}},_formatOption:function(e,t){return{value:t,label:e}},_isLoading:function(){return!this.state.fields},render:function(){var e=this;if(this._isLoading())return r.default.createElement("div",{style:{marginLeft:10}},r.default.createElement(s.Spinner,null));var t=Object.keys(this.state.fields).map(function(t){return e._formatOption(e.state.fields[t],e.state.fields[t])}).sort(function(e,t){return(0,f.default)(e.label.toLowerCase(),t.label.toLowerCase())});return r.default.createElement(o.Row,null,r.default.createElement(o.Col,{md:2,style:{marginTop:5,marginBottom:0}},r.default.createElement("label",{className:"pull-right"},r.default.createElement(u.FormattedMessage,{id:"wizard.statisticalCondition",defaultMessage:"Statistical Condition"}))),r.default.createElement(o.Col,{md:10},r.default.createElement("label",null,r.default.createElement(u.FormattedMessage,{id:"wizard.the",defaultMessage:"The"})),r.default.createElement(a.Input,{ref:"type",id:"type",name:"type",required:!0},r.default.createElement("div",{style:{width:"200px"}},r.default.createElement(s.Select,{required:!0,value:this.state.type,options:this._availableAggregationTypes(),matchProp:"value",onChange:this._onAggregationTypeSelect,placeholder:r.default.createElement(u.FormattedMessage,{id:"wizard.select",defaultMessage:"Select..."})}))),r.default.createElement("label",null,"  "),r.default.createElement("label",null,r.default.createElement(u.FormattedMessage,{id:"wizard.of",defaultMessage:"of"})),r.default.createElement(a.Input,{ref:"field",id:"field",name:"field"},r.default.createElement("div",{style:{width:"200px"}},r.default.createElement(s.Select,{required:!0,value:this.state.field,options:t,matchProp:"value",onChange:this._onParameterFieldSelect,allowCreate:!0,placeholder:r.default.createElement(u.FormattedMessage,{id:"wizard.select",defaultMessage:"Select..."})}))),r.default.createElement("label",null," "),r.default.createElement("label",null,r.default.createElement(u.FormattedMessage,{id:"wizard.mustBe",defaultMessage:"must be"})),r.default.createElement(a.Input,{ref:"threshold_type",id:"threshold_type",name:"threshold_type",required:!0},r.default.createElement("div",{style:{width:"200px"}},r.default.createElement(s.Select,{required:!0,value:this.state.threshold_type,options:this._availableThresholdTypes(),matchProp:"value",onChange:this._onThresholdTypeSelect,placeholder:r.default.createElement(u.FormattedMessage,{id:"wizard.select",defaultMessage:"Select..."})}))),r.default.createElement(a.Input,{ref:"threshold",id:"threshold",name:"threshold",type:"number",min:"0",onChange:this._onThresholdChanged(),value:this.state.threshold,style:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",height:"36px",width:"100px"}})))}});exports.default=h,e.exports=exports.default},lObuJAOx:function(e,exports,t){"use strict";var n,r=Object.assign||function(e){for(var t=1;t li{> a{&:hover,&:focus{background-color:",";}}&.disabled > a{color:",";&:hover,&:focus{color:",";}}}.open > a{&,&:hover,&:focus{background-color:",";border-color:",";}}}&.nav-pills{> li{&.active > a{&,&:hover,&:focus{color:",";background-color:",";}}}}&",""],o.util.colorLevel(o.teinte.secondary.due,-3),o.teinte.secondary.tre,o.teinte.secondary.tre,o.util.colorLevel(o.teinte.secondary.due,-3),e,o.teinte.primary.due,e,(0,a.default)())});exports.default=s,e.exports=exports.default},mKUXduhk:function(e,exports,t){var n=t("Qf0Q7TmK"),r=t("gI5LzRMl"),i=t("eCP9gG8B"),o=t("REt7egjG"),a=t("VX7NnWTC"),s=t("CPEza9Tj"),l=200;e.exports=function(e,t,u,c){var f=-1,d=r,p=!0,h=e.length,m=[],g=t.length;if(!h)return m;u&&(t=o(t,a(u))),c?(d=i,p=!1):t.length>=l&&(d=s,p=!1,t=new n(t));e:for(;++f, or turn it into a drag source or a drop target itself.")}}(o);var a=i?function(t){return e(t,i)}:e;return r.default(o,a)}e(t,i)}}exports.default=function(e){var t={};return Object.keys(e).forEach(function(n){var r=i(e[n]);t[n]=function(){return r}}),t}},mezkKiZX:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=i(t("ivGQtwpr")),r=i(t("M01PpR+7"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return(a=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=function(e){var t=e.iconClass,r=e.children,a=s(e,["iconClass","children"]);return n.default.createElement(i.Button,a,n.default.createElement(o.default,{iconClass:t},r))};l.propTypes={href:r.default.string.isRequired,children:r.default.node.isRequired,bsStyle:r.default.string,bsSize:r.default.string,target:r.default.string,iconClass:r.default.string,className:r.default.string,disabled:r.default.bool},l.defaultProps={bsStyle:"default",bsSize:void 0,target:"_blank",iconClass:"fa-external-link",className:"",disabled:!1};var u=l;exports.default=u,e.exports=exports.default},mqdqrxWG:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ChromeFields=void 0;var n=function(){function e(e,t){for(var n=0;n1&&(e.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),r.props.onChange({h:e.h||r.props.hsl.h,s:Number(e.s&&e.s||r.props.hsl.s),l:Number(e.l&&e.l||r.props.hsl.l),source:"hsl"},t))},r.showHighlight=function(e){e.currentTarget.style.background="#eee"},r.hideHighlight=function(e){e.currentTarget.style.background="transparent"},u(r,n)}return function(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)}(t,r.default.Component),n(t,[{key:"componentDidMount",value:function(){1===this.props.hsl.a&&"hex"!==this.state.view?this.setState({view:"hex"}):"rgb"!==this.state.view&&"hsl"!==this.state.view&&this.setState({view:"rgb"})}},{key:"componentWillReceiveProps",value:function(e){1!==e.hsl.a&&"hex"===this.state.view&&this.setState({view:"rgb"})}},{key:"render",value:function(){var e=this,t=(0,i.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=r.default.createElement("div",{style:t.fields,className:"flexbox-fix"},r.default.createElement("div",{style:t.field},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=r.default.createElement("div",{style:t.fields,className:"flexbox-fix"},r.default.createElement("div",{style:t.field},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),r.default.createElement("div",{style:t.field},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),r.default.createElement("div",{style:t.field},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),r.default.createElement("div",{style:t.alpha},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=r.default.createElement("div",{style:t.fields,className:"flexbox-fix"},r.default.createElement("div",{style:t.field},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),r.default.createElement("div",{style:t.field},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),r.default.createElement("div",{style:t.field},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),r.default.createElement("div",{style:t.alpha},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),r.default.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,r.default.createElement("div",{style:t.toggle},r.default.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},r.default.createElement(s.default,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}]),t}();exports.default=c},mrYkOj7D:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PhotoshopPreviews=void 0;var n=i(t("ivGQtwpr")),r=i(t("zGS59GCK"));function i(e){return e&&e.__esModule?e:{default:e}}var o=exports.PhotoshopPreviews=function(e){var t=e.rgb,i=e.currentColor,o=(0,r.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:i,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return n.default.createElement("div",null,n.default.createElement("div",{style:o.label},"new"),n.default.createElement("div",{style:o.swatches},n.default.createElement("div",{style:o.new}),n.default.createElement("div",{style:o.current})),n.default.createElement("div",{style:o.label},"current"))};exports.default=o},msOnkrfp:function(e,exports,t){e.exports=t.p+"bb736bb16827a36442a0f5efefc8d9f9.js"},msWzOuBO:function(e,exports,t){e.exports=t.p+"33d52a9795241693b49ab4613df88926.js"},"mw4dFkN/":function(e,exports,t){"use strict";exports.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t0){var v=1/0,b=1/0;g.forEach(function(e){e.x>h.x&&(v=Math.min(v,e.x)),e.y>h.y&&(b=Math.min(b,e.y))}),Number.isFinite(v)&&(h.w=v-h.x),Number.isFinite(b)&&(h.h=b-h.y)}}m||(h.w=t,h.h=r);var y={w:h.w,h:h.h,x:h.x,y:h.y,static:!0,i:e};this.props.onResize(u,c,h,y,o,a),this.setState({layout:(0,s.compact)(u,this.compactType(),d),activeDrag:y})}},t.prototype.onResizeStop=function(e,t,n,r){var i=r.e,o=r.node,a=this.state,l=a.layout,u=a.oldResizeItem,c=this.props.cols,f=(0,s.getLayoutItem)(l,e);this.props.onResizeStop(l,u,f,null,i,o);var d=(0,s.compact)(l,this.compactType(),c),p=this.state.oldLayout;this.setState({activeDrag:null,layout:d,oldResizeItem:null,oldLayout:null}),this.onLayoutMaybeChanged(d,p)},t.prototype.placeholder=function(){var e=this.state.activeDrag;if(!e)return null;var t=this.props,n=t.width,i=t.cols,o=t.margin,a=t.containerPadding,s=t.rowHeight,u=t.maxRows,c=t.useCSSTransforms;return r.default.createElement(l.default,{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,className:"react-grid-placeholder",containerWidth:n,cols:i,margin:o,containerPadding:a||o,maxRows:u,rowHeight:s,isDraggable:!1,isResizable:!1,useCSSTransforms:c},r.default.createElement("div",null))},t.prototype.processGridItem=function(e){if(e&&e.key){var t=(0,s.getLayoutItem)(this.state.layout,String(e.key));if(!t)return null;var n=this.props,i=n.width,o=n.cols,a=n.margin,u=n.containerPadding,c=n.rowHeight,f=n.maxRows,d=n.isDraggable,p=n.isResizable,h=n.useCSSTransforms,m=n.draggableCancel,g=n.draggableHandle,v=this.state.mounted,b=Boolean(!t.static&&d&&(t.isDraggable||null==t.isDraggable)),y=Boolean(!t.static&&p&&(t.isResizable||null==t.isResizable));return r.default.createElement(l.default,{containerWidth:i,cols:o,margin:a,containerPadding:u||a,maxRows:f,rowHeight:c,cancel:m,handle:g,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:b,isResizable:y,useCSSTransforms:h&&v,usePercentages:!v,w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,minH:t.minH,minW:t.minW,maxH:t.maxH,maxW:t.maxW,static:t.static},e)}},t.prototype.render=function(){var e=this,t=this.props,i=t.className,o=t.style,s=(0,a.default)("react-grid-layout",i),l=n({height:this.containerHeight()},o);return r.default.createElement("div",{className:s,style:l},r.default.Children.map(this.props.children,function(t){return e.processGridItem(t)}),this.placeholder())},t}(r.default.Component);c.displayName="ReactGridLayout",c.propTypes={className:i.default.string,style:i.default.object,width:i.default.number,autoSize:i.default.bool,cols:i.default.number,draggableCancel:i.default.string,draggableHandle:i.default.string,verticalCompact:function(e){e.verticalCompact,0},compactType:i.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;void 0!==t&&(0,s.validateLayout)(t,"layout")},margin:i.default.arrayOf(i.default.number),containerPadding:i.default.arrayOf(i.default.number),rowHeight:i.default.number,maxRows:i.default.number,isDraggable:i.default.bool,isResizable:i.default.bool,preventCollision:i.default.bool,useCSSTransforms:i.default.bool,onLayoutChange:i.default.func,onDragStart:i.default.func,onDrag:i.default.func,onDragStop:i.default.func,onResizeStart:i.default.func,onResize:i.default.func,onResizeStop:i.default.func,children:function(e,t){var n=e[t],i={};r.default.Children.forEach(n,function(e){if(i[e.key])throw new Error('Duplicate child key "'+e.key+'" found! This will cause problems in ReactGridLayout.');i[e.key]=!0})}},c.defaultProps={autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isDraggable:!0,isResizable:!0,useCSSTransforms:!0,verticalCompact:!0,compactType:"vertical",preventCollision:!1,onLayoutChange:s.noop,onDragStart:s.noop,onDrag:s.noop,onDragStop:s.noop,onResizeStart:s.noop,onResize:s.noop,onResizeStop:s.noop};var f=function(){this.state={activeDrag:null,layout:(0,s.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,this.compactType()),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null}};exports.default=c},mxCHE3jz:function(e,exports,t){e.exports=t.p+"04112e82e90aa011eb21161acbc1128a.js"},n3MRiktB:function(e,exports,t){var n=t("Qf0Q7TmK"),r=t("gI5LzRMl"),i=t("eCP9gG8B"),o=t("REt7egjG"),a=t("VX7NnWTC"),s=t("CPEza9Tj"),l=Math.min;e.exports=function(e,t,u){for(var c=u?i:r,f=e[0].length,d=e.length,p=d,h=Array(d),m=1/0,g=[];p--;){var v=e[p];p&&t&&(v=o(v,a(t))),m=l(v.length,m),h[p]=!u&&(t||f>=120&&v.length>=120)?new n(p&&v):void 0}v=e[0];var b=-1,y=h[0];e:for(;++b1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function i(){var n,l,u;a(this,i);for(var c=arguments.length,f=Array(c),d=0;d1&&(r=r.substr(1,r.length-1),t=n.default.parse(r)),t},getParsedHash:function(e){var t={},r=e.hash;return r&&0===r.indexOf("#")&&r.length>1&&(r=r.substr(1,r.length-1),t=n.default.parse(r)),t},replaceHashParam:function(e,t){var r=this.getParsedHash(window.location);r[e]=t,window.location.replace("#".concat(n.default.stringify(r)))},concatURLPath:function(){for(var e=Array(arguments.length),t=0;t1&&void 0!==arguments[1]?arguments[1]:s,n=new URL(e);return t.includes(n.protocol)}};exports.default=l,e.exports=exports.default},nWroukhr:function(e,exports,t){e.exports=t.p+"01da0b465eafcfc2810bd896463ac177.js"},nXSFNspX:function(e,exports,t){e.exports=t("jaIgFIJB")(339)},nZX7QwTg:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=function(){function e(){for(var e=[],t=0;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var p=["danger","info","success","warning"],h=function(e){var t=(0,o.lighten)(.3,e),n="#fff"===t?(0,o.darken)(.08,e):t,r=(0,o.lighten)(.4,e),a="#fff"===r?(0,o.darken)(.05,e):r,l=s.util.readableColor(a);return(0,i.css)(["background-color:",";border-color:",";color:",";& a{color:",";}"],a,n,l,s.util.colorLevel(e,7))},m=(0,n.forwardRef)(function(e,t){var r=e.bsStyle,o=d(e,["bsStyle"]),s=(0,n.useMemo)(function(){return(0,i.default)(a.Alert).withConfig({displayName:"Alert",componentId:"sc-1yucn9g-0"})(["",""],(0,l.default)(h,{},p))},[r]);return n.default.createElement(s,f({bsStyle:r,ref:t},o))});m.propTypes={bsStyle:r.default.oneOf(p)},m.defaultProps={bsStyle:"info"};var g=m;exports.default=g,e.exports=exports.default},oIKiQKTM:function(e,exports,t){"use strict";e.exports=function(e){return null!==e&&"object"==typeof e}},oP9RRvH8:function(e,exports,t){e.exports=t("jaIgFIJB")(552)},"oPTuas+D":function(e,exports,t){var n=t("9GW11MM0"),r=t("tIY68Q+U"),i=t("KiHc5gqA");e.exports=function(e,t){return i(r(e,t,n),e+"")}},oPuVB10z:function(e,exports,t){e.exports=t.p+"fa6e5689c0aa30ec42cbc8317e07e98a.js"},oWUpaK4e:function(e,exports,t){e.exports=t.p+"c01becee0a5e9e847c9dd4a789761925.js"},ohxm0TWs:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("2R7xyiAu")),r=o(t("KWzh15eC")),i=o(t("X5aBUarr"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.namespace("Rickshaw.Fixtures.Graylog2Time");var a=function(){var e=this;this.months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],this.units=[{name:"decade",seconds:315576e3,formatter:function(t){return e.formatDate(t)}},{name:"year",seconds:31557600,formatter:function(t){return e.formatDate(t)}},{name:"month",seconds:2635200,formatter:function(t){return e.formatDate(t)}},{name:"week",seconds:604800,formatter:function(t){return e.formatDate(t)}},{name:"day",seconds:86400,formatter:function(t){return e.formatDate(t)}},{name:"3 hours",seconds:10800,formatter:function(t){return e.formatDateTime(t)}},{name:"hour",seconds:3600,formatter:function(t){return e.formatDateTime(t)}},{name:"15 minutes",seconds:900,formatter:function(t){return e.formatDateTime(t)}},{name:"5 minutes",seconds:300,formatter:function(t){return e.formatDateTime(t)}},{name:"minute",seconds:60,formatter:function(t){return e.formatDateTime(t)}},{name:"15 second",seconds:15,formatter:function(t){return e.formatDateTime(t)}},{name:"second",seconds:1,formatter:function(t){return e.formatDateTime(t)}},{name:"millisecond",seconds:.001,formatter:function(t){return e.formatDateTime(t)}}],this.unit=function(e){return this.units.filter(function(t){return e==t.name}).shift()},this.formatDateTime=i.default.customDateTimeFormat(),this.formatDate=i.default.customDateTimeFormat(0),this.ceil=function(e,t){var n,i;if("week"==t.name){var o=r.default.utc(1e3*e);return o.startOf("isoWeek"),o.unix()==e?e:(o.add(1,"week"),o.unix())}if("month"==t.name){if(n=new Date(1e3*e),Date.UTC(n.getUTCFullYear(),n.getUTCMonth())/1e3==e)return e;i=n.getUTCFullYear();var a=n.getUTCMonth();return 11==a?(a=0,i+=1):a+=1,Date.UTC(i,a)/1e3}return"year"==t.name?(n=new Date(1e3*e),Date.UTC(n.getUTCFullYear(),0)/1e3==e?e:(i=n.getUTCFullYear()+1,Date.UTC(i,0)/1e3)):Math.ceil(e/t.seconds)*t.seconds}};n.default.Fixtures.Graylog2Time=a;var s=a;exports.default=s,e.exports=exports.default},oj9xBZdX:function(e,exports,t){e.exports=t("jaIgFIJB")(299)},"oogp+FOg":function(e,exports,t){(e.exports=t("MAMP9hQI")(!1)).push([e.i,".field-analyzer{margin:5px 5px 5px 12px}.field-analyzer .panel-body{padding:5px}.field-analyzer ul{padding-left:10px}.field-selector{margin-left:25px}",""])},or6tiE3i:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ivGQtwpr")),r=t("N/FPCcIo"),i=o(t("7wHi4ydR"));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}(e,["component","childFactory"]),o=u(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?o:r.default.createElement(t,i,o)},i}(r.default.Component);c.childContextTypes={transitionGroup:n.default.object.isRequired},c.propTypes={},c.defaultProps={component:"div",childFactory:function(e){return e}};var f=(0,i.polyfill)(c);exports.default=f,e.exports=exports.default},pIh2mMl0:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=h(t("ii0bleBb")),r=h(t("ivGQtwpr")),i=h(t("PcYM+wZ7")),o=h(t("nXSFNspX")),a=h(t("4KF7VOU5")),s=t("bpwPG6jG"),l=t("qOZsORvD"),u=t("IQgAPhpj"),c=h(t("7QAbkgSv")),f=h(t("7wHi4ydR")),d=h(t("tEFgrcgr")),p=h(t("Maji1yex"));function h(e){return e&&e.__esModule?e:{default:e}}var m=h(t("y48dxWbc")).default.get("Widgets"),g=m.WidgetsStore,v=m.WidgetsActions,b=c.default.getStore("CurrentUser"),y=(0,i.default)({displayName:"Widget",propTypes:{widget:n.default.object.isRequired,dashboardId:n.default.string.isRequired,shouldUpdate:n.default.bool.isRequired,locked:n.default.bool.isRequired,streamIds:n.default.object.isRequired},mixins:[a.default.connect(b),p.default],getInitialState:function(){var e=this.props.widget;return this.widgetPlugin=this._getWidgetPlugin(e.type),{result:void 0,calculatedAt:void 0,error:!1,errorMessage:void 0,height:void 0,width:void 0}},componentDidMount:function(){this._loadValue();var e=this.props.widget;this.loadValueInterval=setInterval(this._loadValue,Math.min(1e3*e.cache_time,this.DEFAULT_WIDGET_VALUE_REFRESH)),this.eventsThrottler=new d.default,(0,o.default)(window).on("resize",this._onResize)},componentWillReceiveProps:function(e){this.widgetPlugin=this._getWidgetPlugin(e.widget.type)},componentDidUpdate:function(){this.state.deleted||this._calculateWidgetSize()},componentWillUnmount:function(){clearInterval(this.loadValueInterval),(0,o.default)(window).off("resize",this._onResize)},DEFAULT_WIDGET_VALUE_REFRESH:1e4,WIDGET_HEADER_HEIGHT:25,WIDGET_FOOTER_HEIGHT:20,_getWidgetPlugin:function(e){return u.PluginStore.exports("widgets").filter(function(t){return t.type.toUpperCase()===e.toUpperCase()})[0]},_isBoundToStream:function(){var e=this.props.widget;return"stream_id"in e.config&&null!==e.config.stream_id},_getWidgetNode:function(){return this.node},_loadValue:function(){var e=this,t=this.state,n=t.result,r=t.deleted,i=this.props,o=i.widget,a=i.shouldUpdate,s=i.dashboardId;if(!r&&(void 0===n||a)){var l=this.node.clientWidth;g.loadValue(s,o.id,l).then(function(t){var n=e.state.calculatedAt;if(t.calculated_at!==n){var r={result:t.result,calculatedAt:t.calculated_at,error:!1,errorMessage:void 0};t.computation_time_range&&(r.computationTimeRange=t.computation_time_range),e.setState(r)}},function(t){var n=t.message;e.setState(function(e){return{result:void 0===e.result?"N/A":e.result,error:!0,errorMessage:"Error loading widget value: ".concat(n)}})})}},_onResize:function(){var e=this.props.widget;this.eventsThrottler.throttle(this._calculateWidgetSize,void 0,e.id)},_calculateWidgetSize:function(){var e=this._getWidgetNode();if(e){var t=(0,o.default)(e),n=t.height()-(this.WIDGET_HEADER_HEIGHT+this.WIDGET_FOOTER_HEIGHT),r=t.width(),i=this.state,a=i.height,s=i.width;n===a&&r===s||this.setState({height:n,width:r})}},_getVisualization:function(){var e=this.props,t=e.widget,n=e.locked;if(""===t.type)return null;var i=this.state,o=i.result,a=i.computationTimeRange,u=i.height,c=i.width;return void 0===o?r.default.createElement("div",{className:"loading"},r.default.createElement(l.Icon,{name:"refresh",spin:!0,size:"3x",className:"spinner"})):"N/A"===o?r.default.createElement("div",{className:"not-available"},o):this.widgetPlugin?r.default.createElement(this.widgetPlugin.visualizationComponent,{id:t.id,config:t.config,data:o,height:u,width:c,computationTimeRange:a,locked:!n}):r.default.createElement(s.WidgetVisualizationNotFound,{widgetClassName:t.type})},_getTimeRange:function(){var e=this.props.widget.config,t=e.timerange.type,n={rangetype:t};switch(t){case"relative":n[t]=e.timerange.range;break;case"absolute":n.from=e.timerange.from,n.to=e.timerange.to;break;case"keyword":n[t]=e.timerange.keyword}return n},replayUrl:function(){var e=this.props.widget.config;return this._isBoundToStream()?f.default.stream_search(e.stream_id,e.query,this._getTimeRange(),e.interval):f.default.search(e.query,this._getTimeRange(),e.interval)},_showConfig:function(){this.configModal.open()},_showEditConfig:function(){this.editModal.open()},updateWidget:function(e){var t=e,n=this.props,r=n.widget,i=n.dashboardId;t.id=r.id,g.updateWidget(i,t)},deleteWidget:function(){var e=this.props,t=e.widget,n=e.dashboardId;window.confirm('Do you really want to delete "'.concat(t.description,'"?'))&&(this.setState({deleted:!0}),v.removeWidget(n,t.id))},_stopPropagation:function(e){e.stopPropagation()},render:function(){var e=this,t=this.state,n=t.currentUser,i=t.errorMessage,o=t.deleted,a=t.error,l=t.calculatedAt;if(o)return r.default.createElement("span",null);var u=this.props,c=u.widget,f=u.locked,d=u.streamIds,p=u.dashboardId,h=r.default.createElement(s.WidgetConfigModal,{ref:function(t){e.configModal=t},dashboardId:p,widget:c,boundToStream:this._isBoundToStream()}),m=r.default.createElement(s.WidgetEditConfigModal,{ref:function(t){e.editModal=t},widget:c,onUpdate:this.updateWidget}),g=c.config.stream_id&&null!=d&&d[c.config.stream_id],v=!c.config.stream_id&&this.isPermitted(n.permissions,["searches:absolute","searches:keyword","searches:relative"]),b=!g&&!v;return r.default.createElement("div",{role:"presentation",ref:function(t){e.node=t},className:"widget","data-widget-id":c.id},r.default.createElement(s.WidgetHeader,{title:c.description}),this._getVisualization(),r.default.createElement(s.WidgetFooter,{locked:f,onShowConfig:this._showConfig,onEditConfig:this._showEditConfig,onDelete:this.deleteWidget,replayHref:this.replayUrl(),replayDisabled:b,calculatedAt:l,error:a,errorMessage:i}),r.default.createElement("div",{role:"presentation",onClick:this._stopPropagation,onMouseDown:this._stopPropagation},f?h:m))}});exports.default=y,e.exports=exports.default},pL6zch2t:function(e,exports,t){var n=t("jBfUYu/J");e.exports=function(){this.__data__=new n,this.size=0}},pP8FZxkQ:function(e,exports,t){var n=t("yiYgn92r"),r=t("S0mlcvmt");e.exports=function(e,t){return e&&n(t,r(t),e)}},pP9ICs5Z:function(e,exports,t){"use strict";var n=t("QidTUS7W").default;t(1),(exports=e.exports=n).default=exports},pR9Be5s7:function(e,exports,t){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1e30?e.toPrecision(1):s.default.format(".2s")(e)}),this._chart.on("postRender",this.props.onRenderComplete()),this._chart.render()},_redrawChart:function(){var e=this.state,t=e.data,n=e.timerange,r=e.interval,i=e.limit;this._crossfilter.remove(),this._crossfilter.add(t),this._addChartStacks(i),this._chart.x(s.default.time.scale.utc().domain([n.from,n.to])).round(s.default.time[r].utc.round).xUnits(s.default.time[r].utc.range),this._chart.rescale().redraw()},_resizeChart:function(e,t){this._addChartLegend(e,t),this._chart.width(e).height(t).rescale().redraw()},render:function(){var e=this;return n.default.createElement("div",null,n.default.createElement("div",{ref:function(t){e._chartRef=t},id:"visualization-".concat(this.props.id),style:{width:"100%"}}))}});exports.default=h,e.exports=exports.default},pfEsQUpv:function(e,exports){e.exports=function(e,t){return e===t||e!=e&&t!=t}},pfvJ3fbC:function(e,exports,t){var n=t("fqmHMD+U");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t("5omYMvbi")(n,r);n.locals&&(e.exports=n.locals)},pllINsA4:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PhotoshopPicker=void 0;var n=a(t("ivGQtwpr")),r=a(t("zGS59GCK")),i=a(t("kOI9bxm6")),o=t("50Juodil");function a(e){return e&&e.__esModule?e:{default:e}}var s=exports.PhotoshopPicker=function(e){var t=e.onChange,a=e.rgb,s=e.hsv,l=e.hex,u=(0,r.default)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),c=function(e,n){e["#"]?i.default.isValidHex(e["#"])&&t({hex:e["#"],source:"hex"},n):e.r||e.g||e.b?t({r:e.r||a.r,g:e.g||a.g,b:e.b||a.b,source:"rgb"},n):(e.h||e.s||e.v)&&t({h:e.h||s.h,s:e.s||s.s,v:e.v||s.v,source:"hsv"},n)};return n.default.createElement("div",{style:u.fields},n.default.createElement(o.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"h",value:Math.round(s.h),onChange:c}),n.default.createElement(o.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"s",value:Math.round(100*s.s),onChange:c}),n.default.createElement(o.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"v",value:Math.round(100*s.v),onChange:c}),n.default.createElement("div",{style:u.divider}),n.default.createElement(o.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:a.r,onChange:c}),n.default.createElement(o.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:a.g,onChange:c}),n.default.createElement(o.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:a.b,onChange:c}),n.default.createElement("div",{style:u.divider}),n.default.createElement(o.EditableInput,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"#",value:l.replace("#",""),onChange:c}),n.default.createElement("div",{style:u.fieldSymbols},n.default.createElement("div",{style:u.symbol},"°"),n.default.createElement("div",{style:u.symbol},"%"),n.default.createElement("div",{style:u.symbol},"%")))};exports.default=s},pn98uRNp:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getEmptyImage=exports.NativeTypes=void 0,exports.default=function(e){return new n.default(e)};var n=o(t("0/yTsIJR")),r=o(t("Xg/rnC81")),i=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}(t("UlwEtMr4"));function o(e){return e&&e.__esModule?e:{default:e}}exports.NativeTypes=i,exports.getEmptyImage=r.default},pru6Ypqw:function(e,exports,t){e.exports=t.p+"cf7b9d5e5b7a6f969008ed447483131f.js"},pxKVDeTW:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=a(t("ii0bleBb")),r=a(t("ivGQtwpr")),i=t("DlhHh5IY"),o=t("eKkJgIdI");function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(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})(e)}function l(e,t){for(var n=0;n0){if(++i>=t)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}},"qAPAV+Vm":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=t("KX2Ezx4E"),r=t("teb/PGDc");function i(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n ",";\n"]);return i=function(){return e},e}var o=(0,n.createGlobalStyle)(i(),r.progressBarStyles);exports.default=o,e.exports=exports.default},qAefrEwE:function(e,exports,t){var n=t("LsNTLhVP")();e.exports=n},qB5pYI5I:function(e,exports,t){e.exports=t.p+"3d85c1dddb6f352187fb79292f4d34a2.js"},qBzosy5p:function(e,exports,t){e.exports=t.p+"4717081a951cc768d8f215fc660f57d8.js"},qEG1zA7m:function(e,exports,t){var n=t("wdC4LyWE");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t("5omYMvbi")(n,r);n.locals&&(e.exports=n.locals)},qGj1hbi5:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r,i=function(){function e(e,t){for(var n=0;n0}},{key:"leave",value:function(e){var t=this.entered.length;return this.entered=(0,i.default)(this.entered.filter(function(e){return document.documentElement.contains(e)}),e),t>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}]),e}();exports.default=a},qiKrhS7F:function(e,exports,t){var n=t("GNQIsKIF");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t("5omYMvbi")(n,r);n.locals&&(e.exports=n.locals)},qlsT7e3T:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=y(t("ii0bleBb")),r=y(t("ivGQtwpr")),i=y(t("4KF7VOU5")),o=y(t("PcYM+wZ7")),a=y(t("K43sr58x")),s=y(t("18sD0i4u")),l=y(t("7QAbkgSv")),u=t("SJE+bKc0"),c=t("qOZsORvD"),f=t("os2pWP01"),d=y(t("Maji1yex")),p=y(t("7wHi4ydR")),h=t("wkvtUUMm"),m=y(t("fD2cps9S")),g=y(t("Mcd/Xly4")),v=t("qwOa7NSh"),b=y(t("LnywYJLu"));function y(e){return e&&e.__esModule?e:{default:e}}var w=l.default.getStore("Streams"),_=(0,o.default)({displayName:"AlertRuleList",mixins:[i.default.connect(a.default),d.default],propTypes:{config:n.default.object.isRequired},contextTypes:{intl:n.default.object.isRequired},componentWillMount:function(){var e={title:this.context.intl.formatMessage({id:"wizard.title",defaultMessage:"Title"}),severity:this.context.intl.formatMessage({id:"wizard.severity",defaultMessage:"Severity"}),description:this.context.intl.formatMessage({id:"wizard.fieldDescription",defaultMessage:"Description"}),created:this.context.intl.formatMessage({id:"wizard.created",defaultMessage:"Created"}),lastModified:this.context.intl.formatMessage({id:"wizard.lastModified",defaultMessage:"Last Modified"}),user:this.context.intl.formatMessage({id:"wizard.user",defaultMessage:"User"}),alerts:this.context.intl.formatMessage({id:"wizard.alerts",defaultMessage:"Alerts"}),status:this.context.intl.formatMessage({id:"wizard.status",defaultMessage:"Status"}),actions:this.context.intl.formatMessage({id:"wizard.actions",defaultMessage:"Actions"}),rule:this.context.intl.formatMessage({id:"wizard.rule",defaultMessage:"Rule"})},t={infoDelete:this.context.intl.formatMessage({id:"wizard.buttonInfoDelete",defaultMessage:"Delete this alert rule"}),infoUpdate:this.context.intl.formatMessage({id:"wizard.buttonInfoUpdate",defaultMessage:"Edit this alert rule"}),infoEnable:this.context.intl.formatMessage({id:"wizard.buttonInfoEnable",defaultMessage:"Enable this alert rule"}),infoDisable:this.context.intl.formatMessage({id:"wizard.buttonInfoDisable",defaultMessage:"Disable this alert rule"}),infoAdvanced:this.context.intl.formatMessage({id:"wizard.buttonInfoAdvanced",defaultMessage:"Advanced settings for this alert rule"}),infoClone:this.context.intl.formatMessage({id:"wizard.buttonInfoClone",defaultMessage:"Clone this alert rule"}),createAlert:this.context.intl.formatMessage({id:"wizard.createAlert",defaultMessage:"Create alert rule"}),importAlert:this.context.intl.formatMessage({id:"wizard.importAlert",defaultMessage:"Import alert rules"}),exportAlert:this.context.intl.formatMessage({id:"wizard.exportAlert",defaultMessage:"Export alert rules"}),confirmDeletion:this.context.intl.formatMessage({id:"wizard.confirmDeletion",defaultMessage:"Do you really want to delete the alert rule"}),confirmDisable:this.context.intl.formatMessage({id:"wizard.confirmDisable",defaultMessage:"Do you really want to disable the alert rule"})};this.setState({fieldsTitle:e}),this.setState({messages:t}),this.list()},list:function(){var e=this;s.default.listWithData().then(function(t){e.setState({alerts:t})})},deleteAlert:function(e){s.default.deleteByName(e)},_deleteAlertFunction:function(e){var t=this;return function(){window.confirm("".concat(t.state.messages.confirmDeletion,' "').concat(e,'" ?'))&&t.deleteAlert(e)}},_onResume:function(e,t){var n=this;return function(){w.resume(e,function(e){return e}).finally(function(){return n.list()}),null!==t&&""!==t&&w.resume(t,function(e){return e}).finally(function(){return n.list()})}},_onPause:function(e,t,n){var r=this;return function(){window.confirm("".concat(r.state.messages.confirmDisable,' "').concat(e,'" ?'))&&(w.pause(t,function(e){return e}).finally(function(){return r.list()}),null!==n&&""!==n&&w.pause(n,function(e){return e}))}},_headerCellFormatter:function(e){var t;switch(e.toLocaleLowerCase()){case"":t=r.default.createElement("th",{className:"user-type"},e);break;case"actions":t=r.default.createElement("th",{className:"actions"},e);break;default:t=r.default.createElement("th",null,e)}return t},_onClone:function(e){var t=this;return function(){t.refs.cloneForm.open(e)}},_onCloneSubmit:function(e,t,n){var r=this;s.default.clone(e,t,n).finally(function(){return r.list()})},_availableSeverityTypes:function(){return[{value:"info",label:r.default.createElement(v.FormattedMessage,{id:"wizard.info",defaultMessage:"Info"})},{value:"low",label:r.default.createElement(v.FormattedMessage,{id:"wizard.low",defaultMessage:"Low"})},{value:"medium",label:r.default.createElement(v.FormattedMessage,{id:"wizard.medium",defaultMessage:"Medium"})},{value:"high",label:r.default.createElement(v.FormattedMessage,{id:"wizard.high",defaultMessage:"High"})}]},_getSeverityType:function(e){return this._availableSeverityTypes().filter(function(t){return t.value===e})[0].label},_availableFieldName:function(){return[{value:"Severity",label:this.state.fieldsTitle.severity},{value:"Description",label:this.state.fieldsTitle.description},{value:"Created",label:this.state.fieldsTitle.created},{value:"Last Modified",label:this.state.fieldsTitle.lastModified},{value:"User",label:this.state.fieldsTitle.user},{value:"Alerts",label:this.state.fieldsTitle.alerts},{value:"Status",label:this.state.fieldsTitle.status},{value:"Rule",label:this.state.fieldsTitle.rule}]},_getFieldName:function(e){return this._availableFieldName().filter(function(t){return t.value===e})[0].label},_alertInfoFormatter:function(e){var t,n,i,o=this;null===e.condition_parameters||null===e.stream?(t=!1,n="#F7230C",i=""):(t=!0,n="#000000",i=e.stream.id,e.disabled&&(n="#ABABAB"));var a=null;e.second_stream&&(a=e.second_stream.id);var s,l=r.default.createElement(c.IfPermitted,{permissions:"wizard_alerts_rules:delete"},r.default.createElement("button",{id:"delete-alert",type:"button",className:"btn btn-md btn-primary",title:this.state.messages.infoDelete,onClick:this._deleteAlertFunction(e.title)},r.default.createElement(v.FormattedMessage,{id:"wizard.delete",defaultMessage:"Delete"}))),d=r.default.createElement(c.IfPermitted,{permissions:"wizard_alerts_rules:read"},r.default.createElement(h.LinkContainer,{to:p.default.pluginRoute("WIZARD_UPDATEALERT_ALERTRULETITLE")(e.title.replace(/\//g,"%2F")),disabled:!t},r.default.createElement(f.Button,{bsStyle:"info",type:"submit",title:this.state.messages.infoUpdate},r.default.createElement(v.FormattedMessage,{id:"wizard.edit",defaultMessage:"Edit"}))));s=e.disabled?r.default.createElement(f.Button,{bsStyle:"success",onClick:this._onResume(i,a),disabled:!t,title:this.state.messages.infoEnable,style:{whiteSpace:"pre"}},r.default.createElement(v.FormattedMessage,{id:"wizard.enable",defaultMessage:"Enable "})):r.default.createElement(f.Button,{bsStyle:"primary",onClick:this._onPause(e.title,i,a),disabled:!t,title:this.state.messages.infoDisable},r.default.createElement(v.FormattedMessage,{id:"wizard.disable",defaultMessage:"Disable"}));var m=r.default.createElement(h.LinkContainer,{disabled:!t,to:p.default.ALERTS.DEFINITIONS.edit(e.condition)},r.default.createElement(f.Button,{bsStyle:"info",title:this.state.messages.infoAdvanced},r.default.createElement(v.FormattedMessage,{id:"wizard.advancedSettings",defaultMessage:"Advanced settings"}))),y=r.default.createElement(f.Button,{id:"clone-alert",type:"button",bsStyle:"info",onClick:this._onClone(e.title),disabled:!t,title:this.state.messages.infoClone},r.default.createElement(v.FormattedMessage,{id:"wizard.clone",defaultMessage:"Clone"})),w=r.default.createElement("div",{className:"alert-actions pull-left"},d," ",m," ",y," ",l," ",s," "),_=r.default.createElement(u.Tooltip,{id:"default-alert-count-tooltip"},r.default.createElement(v.FormattedMessage,{id:"wizard.tooltipAlerts",defaultMessage:"The daily throughput and the total number of triggered alerts since the last modification of the alert rule"})),x=r.default.createElement(u.Tooltip,{id:"default-user-tooltip"},r.default.createElement(v.FormattedMessage,{id:"wizard.tooltipUser",defaultMessage:"The last user who modified the alert rule"})),E=(g.default.now()-g.default.parseFromString(e.last_modified).toMoment())/1e3/60/60/24,S=Math.round(e.alert_count/Math.ceil(E)),C=[r.default.createElement("td",{className:"limited"},e.title_condition)];return this.props.config.field_order.map(function(n){if(n.enabled)switch(n.name){case"Severity":C.push(r.default.createElement("td",{className:"limited"},e.severity?o._getSeverityType(e.severity):""));break;case"Description":C.push(r.default.createElement("td",{className:"limited"},r.default.createElement("span",{style:{whiteSpace:"pre-line"}},e.description)));break;case"Created":C.push(r.default.createElement("td",{className:"limited"},r.default.createElement(c.Timestamp,{dateTime:g.default.parseFromString(e.created_at).toString(g.default.Formats.DATETIME),relative:!0})));break;case"Last Modified":C.push(r.default.createElement("td",{className:"limited"},r.default.createElement(c.Timestamp,{dateTime:g.default.parseFromString(e.last_modified).toString(g.default.Formats.DATETIME),relative:!0})));break;case"User":C.push(r.default.createElement("td",{className:"limited"},r.default.createElement(c.OverlayElement,{overlay:x,placement:"top",useOverlay:!0,trigger:["hover","focus"]},e.creator_user_id)));break;case"Alerts":C.push(r.default.createElement("td",{className:"limited"},r.default.createElement(c.OverlayElement,{overlay:_,placement:"top",useOverlay:!0,trigger:["hover","focus"]},r.default.createElement("div",null,r.default.createElement(v.FormattedMessage,{id:"wizard.manualCount",defaultMessage:"{alertDay} alerts/day ({alertCount} total)",values:{alertDay:S,alertCount:e.alert_count}})))));break;case"Status":t?C.push(r.default.createElement("td",{className:"limited"},e.disabled?r.default.createElement("span",{style:{backgroundColor:"orange",color:"white"}},r.default.createElement(v.FormattedMessage,{id:"wizard.disabled",defaultMessage:"Disabled"})):r.default.createElement(v.FormattedMessage,{id:"wizard.enabled",defaultMessage:"Enabled"}))):C.push(r.default.createElement("td",{className:"limited"},r.default.createElement(v.FormattedMessage,{id:"wizard.corrupted",defaultMessage:"Corrupted"})));break;case"Rule":C.push(r.default.createElement("td",{className:"limited"},r.default.createElement(b.default,{alert:e})))}}),r.default.createElement("tr",{key:e.title,style:{color:n}},C,r.default.createElement("td",{style:{whiteSpace:"nowrap"}},w))},render:function(){var e=this,t=[this.state.fieldsTitle.title];return this.props.config.field_order.map(function(n){n.enabled&&t.push(e._getFieldName(n.name))}),t.push(this.state.fieldsTitle.actions),this.state.alerts?r.default.createElement("div",null,r.default.createElement("div",{className:"alert-actions pull-right"},r.default.createElement(h.LinkContainer,{to:p.default.pluginRoute("WIZARD_NEWALERT")},r.default.createElement(f.Button,{bsStyle:"success",type:"submit",title:this.state.messages.createAlert},r.default.createElement(v.FormattedMessage,{id:"wizard.create",defaultMessage:"Create"})))," ",r.default.createElement(h.LinkContainer,{to:p.default.pluginRoute("WIZARD_IMPORTALERT")},r.default.createElement(f.Button,{bsStyle:"success",type:"submit",title:this.state.messages.importAlert},r.default.createElement(v.FormattedMessage,{id:"wizard.import",defaultMessage:"Import"})))," ",r.default.createElement(h.LinkContainer,{to:p.default.pluginRoute("WIZARD_EXPORTALERT")},r.default.createElement(f.Button,{bsStyle:"success",type:"submit",title:this.state.messages.exportAlert},r.default.createElement(v.FormattedMessage,{id:"wizard.export",defaultMessage:"Export"})))),r.default.createElement(c.DataTable,{id:"alert-list",className:"table-hover",headers:t,headerCellFormatter:this._headerCellFormatter,sortByKey:"title",rows:this.state.alerts,filterBy:"title",dataRowFormatter:this._alertInfoFormatter,filterLabel:r.default.createElement(v.FormattedMessage,{id:"wizard.filter",defaultMessage:"Filter alert rules"}),filterKeys:["title","severity","created_at","last_modified","creator_user_id"]}),r.default.createElement(m.default,{ref:"cloneForm",onSubmit:this._onCloneSubmit})):r.default.createElement(c.Spinner,null)}});exports.default=_,e.exports=exports.default},qmPJWXAk:function(e,exports,t){var n,r=t("wF2fOgH3"),i=(n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},qo58AzIE:function(e,exports,t){var n=t("x/xG5mIM");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t("5omYMvbi")(n,r);n.locals&&(e.exports=n.locals)},qoMaInN7:function(e,exports,t){e.exports=t.p+"af24c9cedc7295cdfe53f1cc4ec44c93.js"},"qq/6TaOw":function(e,exports,t){e.exports=t.p+"042d4668efd06f2bcf3f2ad07cbcda83.js"},qr68WRh3:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("bJ0ANVZW"),r=t("OxqIY8AL"),i=t("MWPKojw5"),o=t("pR9Be5s7"),a=t("Zeu+hqEU");!function(e){for(var t in e)exports.hasOwnProperty(t)||(exports[t]=e[t])}(t("HnBp4QXq")),exports.default=function(e){return{beginDrag:n.default(e),publishDragSource:r.default(e),hover:i.default(e),drop:o.default(e),endDrag:a.default(e)}}},qrptdJjD:function(e,exports,t){"use strict";exports.type=function(e){return e.split(/ *; */).shift()},exports.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),r=n.shift(),i=n.shift();return r&&i&&(e[r]=i),e},{})},exports.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e},{})},exports.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},qwOa7NSh:function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),o=n("pP9ICs5Z"),a=n.n(o),s=n("1awGhqz8"),l=n.n(s),u=n("ii0bleBb"),c=n.n(u),f=n("ivGQtwpr"),d=n.n(f),p=n("dwl9AoTn"),h=n.n(p),m=n("ak+cODeF"),g=n.n(m);function v(e){return JSON.stringify(e.map(function(e){return e&&"object"==typeof e?(t=e,Object.keys(t).sort().map(function(e){var n;return(n={})[e]=t[e],n})):e;var t}))}var b=function(e,t){return void 0===t&&(t={}),function(){for(var n,r=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(e)?e:[e]).forEach(function(e){e&&e.locale&&(a.a.__addLocaleData(e),l.a.__addLocaleData(e))})}function _(e){var t=e&&e.toLowerCase();return!(!a.a.__localeData__[t]||!l.a.__localeData__[t])}var x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=(function(){function e(e){this.value=e}function t(t){var n,r;function i(n,r){try{var a=t[n](r),s=a.value;s instanceof e?Promise.resolve(s.value).then(function(e){i("next",e)},function(e){i("throw",e)}):o(a.done?"return":"normal",a.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?i(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise(function(o,a){var s={key:e,arg:t,resolve:o,reject:a,next:null};r?r=r.next=s:(n=r=s,i(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),S=function(){function e(e,t){for(var n=0;n":">","<":"<",'"':""","'":"'"},J=/[&><"']/g;function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce(function(t,r){return e.hasOwnProperty(r)?t[r]=e[r]:n.hasOwnProperty(r)&&(t[r]=n[r]),t},{})}function te(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intl;g()(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function ne(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":x(e))||null===e||"object"!==(void 0===t?"undefined":x(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),o=0;o3&&void 0!==arguments[3]?arguments[3]:{},l=a.intl,u=void 0===l?{}:l,c=s.intl,f=void 0===c?{}:c;return!ne(t,r)||!ne(n,i)||!(f===u||ne(ee(f,X),ee(u,X)))}function ie(e,t){return"[React Intl] "+e+(t?"\n"+t:"")}function oe(e){0}function ae(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.intlPropName,i=void 0===r?"intl":r,o=n.withRef,a=void 0!==o&&o,s=function(t){function n(e,t){E(this,n);var r=M(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return te(t),r}return k(n,t),S(n,[{key:"getWrappedInstance",value:function(){return g()(a,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this._wrappedInstance}},{key:"render",value:function(){var t=this;return d.a.createElement(e,O({},this.props,C({},i,this.context.intl),{ref:a?function(e){return t._wrappedInstance=e}:null}))}}]),n}(f.Component);return s.displayName="InjectIntl("+((t=e).displayName||t.name||"Component")+")",s.contextTypes={intl:q},s.WrappedComponent=e,h()(s,e)}function se(e){return e}function le(e){return a.a.prototype._resolveLocale(e)}function ue(e){return a.a.prototype._findPluralRuleFunction(e)}var ce=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};E(this,e);var r="ordinal"===n.style,i=ue(le(t));this.format=function(e){return i(e,r)}},fe=Object.keys(V),de=Object.keys(K),pe=Object.keys(Q),he=Object.keys(Y),me={second:60,minute:60,hour:24,day:30,month:12};function ge(e){var t=l.a.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month,t["second-short"]=e["second-short"],t["minute-short"]=e["minute-short"],t["hour-short"]=e["hour-short"],t["day-short"]=e["day-short"],t["month-short"]=e["month-short"]}function ve(e,t,n,r){var i=e&&e[t]&&e[t][n];if(i)return i;r(ie("No "+t+" format named: "+n))}function be(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=e.messages,s=e.defaultLocale,l=e.defaultFormats,u=n.id,c=n.defaultMessage;g()(u,"[React Intl] An `id` must be provided to format a message.");var f=a&&a[u];if(!(Object.keys(r).length>0))return f||c||u;var d=void 0,p=e.onError||oe;if(f)try{d=t.getMessageFormat(f,i,o).format(r)}catch(e){p(ie('Error formatting message: "'+u+'" for locale: "'+i+'"'+(c?", using default message as fallback.":""),e))}else(!c||i&&i.toLowerCase()!==s.toLowerCase())&&p(ie('Missing message: "'+u+'" for locale: "'+i+'"'+(c?", using default message as fallback.":"")));if(!d&&c)try{d=t.getMessageFormat(c,s,l).format(r)}catch(e){p(ie('Error formatting the default message for: "'+u+'"',e))}return d||p(ie('Cannot format message: "'+u+'", using message '+(f||c?"source":"id")+" as fallback.")),d||f||c||u}var ye=Object.freeze({formatDate:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=e.timeZone,s=r.format,l=e.onError||oe,u=new Date(n),c=O({},a&&{timeZone:a},s&&ve(o,"date",s,l)),f=ee(r,fe,c);try{return t.getDateTimeFormat(i,f).format(u)}catch(e){l(ie("Error formatting date.",e))}return String(u)},formatTime:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=e.timeZone,s=r.format,l=e.onError||oe,u=new Date(n),c=O({},a&&{timeZone:a},s&&ve(o,"time",s,l)),f=ee(r,fe,c);f.hour||f.minute||f.second||(f=O({},f,{hour:"numeric",minute:"numeric"}));try{return t.getDateTimeFormat(i,f).format(u)}catch(e){l(ie("Error formatting time.",e))}return String(u)},formatRelative:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=r.format,s=e.onError||oe,u=new Date(n),c=new Date(r.now),f=a&&ve(o,"relative",a,s),d=ee(r,pe,f),p=O({},l.a.thresholds);ge(me);try{return t.getRelativeFormat(i,d).format(u,{now:isFinite(c)?c:t.now()})}catch(e){s(ie("Error formatting relative time.",e))}finally{ge(p)}return String(u)},formatNumber:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=r.format,s=e.onError||oe,l=a&&ve(o,"number",a,s),u=ee(r,de,l);try{return t.getNumberFormat(i,u).format(n)}catch(e){s(ie("Error formatting number.",e))}return String(n)},formatPlural:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=ee(r,he),a=e.onError||oe;try{return t.getPluralFormat(i,o).format(n)}catch(e){a(ie("Error formatting plural.",e))}return"other"},formatMessage:be,formatHTMLMessage:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return be(e,t,n,Object.keys(r).reduce(function(e,t){var n=r[t];return e[t]="string"==typeof n?(""+n).replace(J,function(e){return Z[e]}):n,e},{}))}}),we=Object.keys(W),_e=Object.keys(G),xe={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{},onError:oe},Ee=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};E(this,t);var r=M(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));g()("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var i=n.intl,o=void 0;o=isFinite(e.initialNow)?Number(e.initialNow):i?i.now():Date.now();var s=(i||{}).formatters,u=void 0===s?{getDateTimeFormat:b(Intl.DateTimeFormat),getNumberFormat:b(Intl.NumberFormat),getMessageFormat:b(a.a),getRelativeFormat:b(l.a),getPluralFormat:b(ce)}:s;return r.state=O({},u,{now:function(){return r._didDisplay?Date.now():o}}),r}return k(t,e),S(t,[{key:"getConfig",value:function(){var e=this.context.intl,t=ee(this.props,we,e);for(var n in xe)void 0===t[n]&&(t[n]=xe[n]);if(!function(e){for(var t=(e||"").split("-");t.length>0;){if(_(t.join("-")))return!0;t.pop()}return!1}(t.locale)){var r=t,i=r.locale,o=r.defaultLocale,a=r.defaultFormats;(0,r.onError)(ie('Missing locale data for locale: "'+i+'". Using default locale: "'+o+'" as fallback.')),t=O({},t,{locale:o,formats:a,messages:xe.messages})}return t}},{key:"getBoundFormatFns",value:function(e,t){return _e.reduce(function(n,r){return n[r]=ye[r].bind(null,e,t),n},{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,r=n.now,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["now"]);return{intl:O({},e,t,{formatters:i,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n1?i-1:0),a=1;a0){var b=Math.floor(1099511627776*Math.random()).toString(16),y=(e=0,function(){return"ELEMENT-"+b+"-"+(e+=1)});m="@__"+b+"__@",g={},v={},Object.keys(c).forEach(function(e){var t=c[e];if(Object(f.isValidElement)(t)){var n=y();g[e]=m+n+m,v[n]=t}else g[e]=t})}var w=r({id:s,description:l,defaultMessage:u},g||c),_=void 0;return _=v&&Object.keys(v).length>0?w.split(m).filter(function(e){return!!e}).map(function(e){return v[e]||e}):[w],"function"==typeof h?h.apply(void 0,A(_)):f.createElement.apply(void 0,[p,null].concat(A(_)))}}]),t}(f.Component);Fe.displayName="FormattedMessage",Fe.contextTypes={intl:q},Fe.defaultProps={values:{}};var Ie=function(e){function t(e,n){E(this,t);var r=M(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return te(n),r}return k(t,e),S(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!ne(n,t))return!0;for(var r=O({},e,{values:t}),i=arguments.length,o=Array(i>1?i-1:0),a=1;a1&&a(l,"")>-1&&(s=RegExp(this.source,n.replace.call(o(this),"g","")),n.replace.call(e.slice(l.index),s,function(){for(var e=1;el.index&&this.lastIndex--}return l},i||(RegExp.prototype.test=function(e){var t=n.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(require,exports,e){function t(){}Function.prototype.bind||(Function.prototype.bind=function(e){var n=this;if("function"!=typeof n)throw new TypeError("Function.prototype.bind called on incompatible "+n);var r=c.call(arguments,1),i=function(){if(this instanceof i){var t=n.apply(this,r.concat(c.call(arguments)));return Object(t)===t?t:this}return n.apply(e,r.concat(c.call(arguments)))};return n.prototype&&(t.prototype=n.prototype,i.prototype=new t,t.prototype=null),i});var n,r,i,o,a,s=Function.prototype.call,l=Array.prototype,u=Object.prototype,c=l.slice,f=s.bind(u.toString),d=s.bind(u.hasOwnProperty);if((a=d(u,"__defineGetter__"))&&(n=s.bind(u.__defineGetter__),r=s.bind(u.__defineSetter__),i=s.bind(u.__lookupGetter__),o=s.bind(u.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,n=[];if(n.splice.apply(n,e(20)),n.splice.apply(n,e(26)),t=n.length,n.splice(5,0,"XXX"),n.length,t+1==n.length)return!0}()){var p=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?p.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(c.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):null==e?e=0:e<0&&(e=Math.max(n+e,0)),e+ts)for(d=u;d--;)this[l+d]=this[s+d];if(o&&e===f)this.length=f,this.push.apply(this,i);else for(this.length=f+o,d=0;d>>0;if("[object Function]"!=f(e))throw new TypeError;for(;++i>>0,i=Array(r),o=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var a=0;a>>0,o=[],a=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var s=0;s>>0,i=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var o=0;o>>0,i=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var o=0;o>>0;if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var i,o=0;if(arguments.length>=2)i=arguments[1];else for(;;){if(o in n){i=n[o++];break}if(++o>=r)throw new TypeError("reduce of empty array with no initial value")}for(;o>>0;if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var i,o=r-1;if(arguments.length>=2)i=arguments[1];else for(;;){if(o in n){i=n[o--];break}if(--o<0)throw new TypeError("reduceRight of empty array with no initial value")}do{o in this&&(i=e.call(void 0,i,n[o],o,t))}while(o--);return i}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){var t=v&&"[object String]"==f(this)?this.split(""):T(this),n=t.length>>>0;if(!n)return-1;var r=0;for(arguments.length>1&&(r=A(arguments[1])),r=r>=0?r:Math.max(0,n+r);r>>0;if(!n)return-1;var r=n-1;for(arguments.length>1&&(r=Math.min(r,A(arguments[1]))),r=r>=0?r:n-Math.abs(r);r>=0;r--)if(r in t&&e===t[r])return r;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+e);if(d(e,t)){var n;if(n={enumerable:!0,configurable:!0},a){var r=e.__proto__;e.__proto__=u;var s=i(e,t),l=o(e,t);if(e.__proto__=r,s||l)return s&&(n.get=s),l&&(n.set=l),n}return n.value=e[t],n}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create)||(h=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var n;if(null===e)n=h();else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var r=function(){};r.prototype=e,(n=new r).__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n});function b(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(e){}}if(Object.defineProperty){var y=b({}),w="undefined"==typeof document||b(document.createElement("div"));if(!y||!w)var _=Object.defineProperty}if(!Object.defineProperty||_){Object.defineProperty=function(e,t,s){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.defineProperty called on non-object: "+e);if("object"!=typeof s&&"function"!=typeof s||null===s)throw new TypeError("Property description must be an object: "+s);if(_)try{return _.call(Object,e,t,s)}catch(e){}if(d(s,"value"))if(a&&(i(e,t)||o(e,t))){var l=e.__proto__;e.__proto__=u,delete e[t],e[t]=s.value,e.__proto__=l}else e[t]=s.value;else{if(!a)throw new TypeError("getters & setters can not be defined on this javascript engine");d(s,"get")&&n(e,t,s.get),d(s,"set")&&r(e,t,s.set)}return e}}Object.defineProperties||(Object.defineProperties=function(e,t){for(var n in t)d(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze(function(){})}catch(e){Object.freeze=(m=Object.freeze,function(e){return"function"==typeof e?e:m(e)})}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(e){return!1}),Object.isFrozen||(Object.isFrozen=function(e){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;for(var t="";d(e,t);)t+="?";e[t]=!0;var n=d(e,t);return delete e[t],n}),!Object.keys){var x=!0,E=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],S=E.length;for(var C in{toString:null})x=!1;Object.keys=function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on a non-object");var t=[];for(var n in e)d(e,n)&&t.push(n);if(x)for(var r=0,i=S;r0||-1)*Math.floor(Math.abs(e))),e}var T=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)}}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(require,exports,e){"use strict";require("./regexp"),require("./es5-shim"),"undefined"==typeof Element||Element.prototype.remove||Object.defineProperty(Element.prototype,"remove",{enumerable:!1,writable:!0,configurable:!0,value:function(){this.parentNode&&this.parentNode.removeChild(this)}})}),ace.define("ace/lib/useragent",["require","exports","module"],function(require,exports,e){"use strict";if(exports.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},exports.getOS=function(){return exports.isMac?exports.OS.MAC:exports.isLinux?exports.OS.LINUX:exports.OS.WINDOWS},"object"==typeof navigator){var t=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),n=navigator.userAgent;exports.isWin="win"==t,exports.isMac="mac"==t,exports.isLinux="linux"==t,exports.isIE="Microsoft Internet Explorer"==navigator.appName||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((n.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((n.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),exports.isOldIE=exports.isIE&&exports.isIE<9,exports.isGecko=exports.isMozilla=n.match(/ Gecko\/\d+/),exports.isOpera=window.opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),exports.isWebKit=parseFloat(n.split("WebKit/")[1])||void 0,exports.isChrome=parseFloat(n.split(" Chrome/")[1])||void 0,exports.isEdge=parseFloat(n.split(" Edge/")[1])||void 0,exports.isAIR=n.indexOf("AdobeAIR")>=0,exports.isIPad=n.indexOf("iPad")>=0,exports.isAndroid=n.indexOf("Android")>=0,exports.isChromeOS=n.indexOf(" CrOS ")>=0,exports.isIOS=/iPad|iPhone|iPod/.test(n)&&!window.MSStream,exports.isIOS&&(exports.isMac=!0),exports.isMobile=exports.isIPad||exports.isAndroid}}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(require,exports,e){"use strict";var t=require("./useragent");if(exports.buildDom=function e(t,n,r){if("string"==typeof t&&t){var i=document.createTextNode(t);return n&&n.appendChild(i),i}if(!Array.isArray(t))return t;if("string"!=typeof t[0]||!t[0]){for(var o=[],a=0;a=1.5,"undefined"!=typeof document){var n=document.createElement("div");exports.HI_DPI&&void 0!==n.style.transform&&(exports.HAS_CSS_TRANSFORMS=!0),t.isEdge||void 0===n.style.animationName||(exports.HAS_CSS_ANIMATION=!0),n=null}exports.HAS_CSS_TRANSFORMS?exports.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:exports.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/oop",["require","exports","module"],function(require,exports,e){"use strict";exports.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},exports.implement=function(e,t){exports.mixin(e,t)}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(require,exports,e){"use strict";var t=require("./oop"),n=function(){var e,n,r={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",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"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(n in r.FUNCTION_KEYS)e=r.FUNCTION_KEYS[n].toLowerCase(),r[e]=parseInt(n,10);for(n in r.PRINTABLE_KEYS)e=r.PRINTABLE_KEYS[n].toLowerCase(),r[e]=parseInt(n,10);return t.mixin(r,r.MODIFIER_KEYS),t.mixin(r,r.PRINTABLE_KEYS),t.mixin(r,r.FUNCTION_KEYS),r.enter=r.return,r.escape=r.esc,r.del=r.delete,r[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)r.KEY_MODS[t]=e.filter(function(e){return t&r.KEY_MODS[e]}).join("-")+"-"}(),r.KEY_MODS[0]="",r.KEY_MODS[-1]="input-",r}();t.mixin(exports,n),exports.keyCodeToString=function(e){var t=n[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(require,exports,e){"use strict";var t=require("./keys"),n=require("./useragent"),r=null,i=0;exports.addListener=function(e,t,n){if(e.addEventListener)return e.addEventListener(t,n,!1);if(e.attachEvent){var r=function(){n.call(e,window.event)};n._wrapper=r,e.attachEvent("on"+t,r)}},exports.removeListener=function(e,t,n){if(e.removeEventListener)return e.removeEventListener(t,n,!1);e.detachEvent&&e.detachEvent("on"+t,n._wrapper||n)},exports.stopEvent=function(e){return exports.stopPropagation(e),exports.preventDefault(e),!1},exports.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},exports.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},exports.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||n.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},exports.capture=function(e,t,n){function r(e){t&&t(e),n&&n(e),exports.removeListener(document,"mousemove",t,!0),exports.removeListener(document,"mouseup",r,!0),exports.removeListener(document,"dragstart",r,!0)}return exports.addListener(document,"mousemove",t,!0),exports.addListener(document,"mouseup",r,!0),exports.addListener(document,"dragstart",r,!0),r},exports.addTouchMoveListener=function(e,t){var n,r;exports.addListener(e,"touchstart",function(e){var t=e.touches[0];n=t.clientX,r=t.clientY}),exports.addListener(e,"touchmove",function(e){var i=e.touches;if(!(i.length>1)){var o=i[0];e.wheelX=n-o.clientX,e.wheelY=r-o.clientY,n=o.clientX,r=o.clientY,t(e)}})},exports.addMouseWheelListener=function(e,t){"onmousewheel"in e?exports.addListener(e,"mousewheel",function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),t(e)}):"onwheel"in e?exports.addListener(e,"wheel",function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}t(e)}):exports.addListener(e,"DOMMouseScroll",function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),t(e)})},exports.addMultiMouseDownListener=function(e,t,r,i){var o,a,s,l=0,u={2:"dblclick",3:"tripleclick",4:"quadclick"};function c(e){if(0!==exports.getButton(e)?l=0:e.detail>1?++l>4&&(l=1):l=1,n.isIE){var c=Math.abs(e.clientX-o)>5||Math.abs(e.clientY-a)>5;s&&!c||(l=1),s&&clearTimeout(s),s=setTimeout(function(){s=null},t[l-1]||600),1==l&&(o=e.clientX,a=e.clientY)}if(e._clicks=l,r[i]("mousedown",e),l>4)l=0;else if(l>1)return r[i](u[l],e)}function f(e){l=2,s&&clearTimeout(s),s=setTimeout(function(){s=null},t[l-1]||600),r[i]("mousedown",e),r[i](u[l],e)}Array.isArray(e)||(e=[e]),e.forEach(function(e){exports.addListener(e,"mousedown",c),n.isOldIE&&exports.addListener(e,"dblclick",f)})};var o=!n.isMac||!n.isOpera||"KeyboardEvent"in window?function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)}:function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)};function a(e,a,s){var l=o(a);if(!n.isMac&&r){if(a.getModifierState&&(a.getModifierState("OS")||a.getModifierState("Win"))&&(l|=8),r.altGr){if(3==(3&l))return;r.altGr=0}if(18===s||17===s){var u="location"in a?a.location:a.keyLocation;if(17===s&&1===u)1==r[s]&&(i=a.timeStamp);else if(18===s&&3===l&&2===u){a.timeStamp-i<50&&(r.altGr=!0)}}}if((s in t.MODIFIER_KEYS&&(s=-1),8&l&&s>=91&&s<=93&&(s=-1),!l&&13===s)&&(3===(u="location"in a?a.location:a.keyLocation)&&(e(a,l,-s),a.defaultPrevented)))return;if(n.isChromeOS&&8&l){if(e(a,l,s),a.defaultPrevented)return;l&=-9}return!!(l||s in t.FUNCTION_KEYS||s in t.PRINTABLE_KEYS)&&e(a,l,s)}function s(){r=Object.create(null)}if(exports.getModifierString=function(e){return t.KEY_MODS[o(e)]},exports.addCommandKeyListener=function(e,t){var i=exports.addListener;if(n.isOldGecko||n.isOpera&&!("KeyboardEvent"in window)){var o=null;i(e,"keydown",function(e){o=e.keyCode}),i(e,"keypress",function(e){return a(t,e,o)})}else{var l=null;i(e,"keydown",function(e){r[e.keyCode]=(r[e.keyCode]||0)+1;var n=a(t,e,e.keyCode);return l=e.defaultPrevented,n}),i(e,"keypress",function(e){l&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(exports.stopEvent(e),l=null)}),i(e,"keyup",function(e){r[e.keyCode]=null}),r||(s(),i(window,"focus",s))}},"object"==typeof window&&window.postMessage&&!n.isOldIE){var l=1;exports.nextTick=function(e,t){t=t||window;var n="zero-timeout-message-"+l++,r=function(i){i.data==n&&(exports.stopPropagation(i),exports.removeListener(t,"message",r),e())};exports.addListener(t,"message",r),t.postMessage(n,"*")}}exports.$idleBlocked=!1,exports.onIdle=function(e,t){return setTimeout(function t(){exports.$idleBlocked?setTimeout(t,100):e()},t)},exports.$idleBlockId=null,exports.blockIdle=function(e){exports.$idleBlockId&&clearTimeout(exports.$idleBlockId),exports.$idleBlocked=!0,exports.$idleBlockId=setTimeout(function(){exports.$idleBlocked=!1},e||100)},exports.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),exports.nextFrame?exports.nextFrame=exports.nextFrame.bind(window):exports.nextFrame=function(e){setTimeout(e,17)}}),ace.define("ace/range",["require","exports","module"],function(require,exports,e){"use strict";var t=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,r=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(r.row,r.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(r.row,r.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,n){if(this.end.row>n)var r={row:n+1,column:0};else if(this.end.rown)var i={row:n+1,column:0};else if(this.start.row0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var t=/^\s\s*/,n=/\s\s*$/;exports.stringTrimLeft=function(e){return e.replace(t,"")},exports.stringTrimRight=function(e){return e.replace(n,"")},exports.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},exports.copyArray=function(e){for(var t=[],n=0,r=e.length;n63,l=require("../lib/keys"),u=l.KEY_MODS,c=n.isIOS,f=c?/\s/:/\n/;exports.TextInput=function(e,d){var p=r.createElement("textarea");p.className="ace_text-input",p.setAttribute("wrap","off"),p.setAttribute("autocorrect","off"),p.setAttribute("autocapitalize","off"),p.setAttribute("spellcheck",!1),p.style.opacity="0",e.insertBefore(p,e.firstChild);var h=!1,m=!1,g=!1,v=!1,b="";n.isMobile||(p.style.fontSize="1px");var y=!1,w=!1,_="",x=0,E=0;try{var S=document.activeElement===p}catch(e){}t.addListener(p,"blur",function(e){w||(d.onBlur(e),S=!1)}),t.addListener(p,"focus",function(e){if(!w){if(S=!0,n.isEdge)try{if(!document.hasFocus())return}catch(e){}d.onFocus(e),n.isEdge?setTimeout(C):C()}}),this.$focusScroll=!1,this.focus=function(){if(b||s||"browser"==this.$focusScroll)return p.focus({preventScroll:!0});var e=p.style.top;p.style.position="fixed",p.style.top="0px";try{var t=0!=p.getBoundingClientRect().top}catch(e){return}var n=[];if(t)for(var r=p.parentElement;r&&1==r.nodeType;)n.push(r),r.setAttribute("ace_nocontext",!0),r=!r.parentElement&&r.getRootNode?r.getRootNode().host:r.parentElement;p.focus({preventScroll:!0}),t&&n.forEach(function(e){e.removeAttribute("ace_nocontext")}),setTimeout(function(){p.style.position="","0px"==p.style.top&&(p.style.top=e)},0)},this.blur=function(){p.blur()},this.isFocused=function(){return S},d.on("beforeEndOperation",function(){d.curOp&&"insertstring"==d.curOp.command.name||(g&&(_=p.value="",I()),C())});var C=c?function(e){if(S&&(!h||e)&&!v){e||(e="");var t="\n ab"+e+"cde fg\n";t!=p.value&&(p.value=_=t);var n=4+(e.length||(d.selection.isEmpty()?0:1));4==x&&E==n||p.setSelectionRange(4,n),x=4,E=n}}:function(){if(!g&&!v&&(S||k)){g=!0;var e=d.selection,t=e.getRange(),n=e.cursor.row,r=t.start.column,i=t.end.column,o=d.session.getLine(n);if(t.start.row!=n){var a=d.session.getLine(n-1);r=t.start.rown+1?s.length:i,i+=o.length+1,o=o+"\n"+s}o.length>400&&(r<400&&i<400?o=o.slice(0,400):(o="\n",r=0,i=1));var l=o+"\n\n";if(l!=_&&(p.value=_=l,x=E=l.length),k&&(x=p.selectionStart,E=p.selectionEnd),E!=i||x!=r||p.selectionEnd!=E)try{p.setSelectionRange(r,i),x=r,E=i}catch(e){}g=!1}};S&&d.onFocus();var O=null;this.setInputHandler=function(e){O=e},this.getInputHandler=function(){return O};var k=!1,M=function(e,t){if(k&&(k=!1),m)return C(),e&&d.onPaste(e),m=!1,"";for(var n=p.selectionStart,r=p.selectionEnd,i=x,o=_.length-E,a=e,s=e.length-n,l=e.length-r,u=0;i>0&&_[u]==e[u];)u++,i--;for(a=a.slice(u),u=1;o>0&&_.length-u>x-1&&_[_.length-u]==e[e.length-u];)u++,o--;return s-=u-1,l-=u-1,a=a.slice(0,a.length-u+1),t||s!=a.length||i||o||l?(v=!0,a&&!i&&!o&&!s&&!l||y?d.onTextInput(a):d.onTextInput(a,{extendLeft:i,extendRight:o,restoreStart:s,restoreEnd:l}),v=!1,_=e,x=n,E=r,a):""},A=function(e){if(g)return F();var t=p.value,n=M(t,!0);(t.length>500||f.test(n))&&C()},T=function(e,t,n){var r=e.clipboardData||window.clipboardData;if(r&&!o){var i=a||n?"Text":"text/plain";try{return t?!1!==r.setData(i,t):r.getData(i)}catch(e){if(!n)return T(e,t,!0)}}},P=function(e,n){var r=d.getCopyText();if(!r)return t.preventDefault(e);T(e,r)?(c&&(C(r),h=r,setTimeout(function(){h=!1},10)),n?d.onCut():d.onCopy(),t.preventDefault(e)):(h=!0,p.value=r,p.select(),setTimeout(function(){h=!1,C(),n?d.onCut():d.onCopy()}))},j=function(e){P(e,!0)},R=function(e){P(e,!1)},D=function(e){var r=T(e);"string"==typeof r?(r&&d.onPaste(r,e),n.isIE&&setTimeout(C),t.preventDefault(e)):(p.value="",m=!0)};t.addCommandKeyListener(p,d.onCommandKey.bind(d)),t.addListener(p,"select",function(e){g||(h?h=!1:function(e){return 0===e.selectionStart&&e.selectionEnd>=_.length&&e.value===_&&_&&e.selectionEnd!==E}(p)&&(d.selectAll(),C()))}),t.addListener(p,"input",A),t.addListener(p,"cut",j),t.addListener(p,"copy",R),t.addListener(p,"paste",D),"oncut"in p&&"oncopy"in p&&"onpaste"in p||t.addListener(e,"keydown",function(e){if((!n.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:R(e);break;case 86:D(e);break;case 88:j(e)}});var F=function(){if(g&&d.onCompositionUpdate&&!d.$readOnly){if(y)return L();if(g.useTextareaForIME)d.onCompositionUpdate(p.value);else{var e=p.value;M(e),g.markerRange&&(g.context&&(g.markerRange.start.column=g.selectionStart=g.context.compositionStartOffset),g.markerRange.end.column=g.markerRange.start.column+E-g.selectionStart)}}},I=function(e){d.onCompositionEnd&&!d.$readOnly&&(g=!1,d.onCompositionEnd(),d.off("mousedown",L),e&&A())};function L(){w=!0,p.blur(),p.focus(),w=!1}var N,z=i.delayedCall(F,50).schedule.bind(null,null);function B(){clearTimeout(N),N=setTimeout(function(){b&&(p.style.cssText=b,b=""),null==d.renderer.$keepTextAreaAtCursor&&(d.renderer.$keepTextAreaAtCursor=!0,d.renderer.$moveTextAreaToCursor())},0)}t.addListener(p,"compositionstart",function(e){if(!g&&d.onCompositionStart&&!d.$readOnly&&(g={},!y)){setTimeout(F,0),d.on("mousedown",L);var t=d.getSelectionRange();t.end.row=t.start.row,t.end.column=t.start.column,g.markerRange=t,g.selectionStart=x,d.onCompositionStart(g),g.useTextareaForIME?(p.value="",_="",x=0,E=0):(p.msGetInputContext&&(g.context=p.msGetInputContext()),p.getInputContext&&(g.context=p.getInputContext()))}}),t.addListener(p,"compositionupdate",F),t.addListener(p,"keyup",function(e){27==e.keyCode&&p.value.lengthE&&"\n"==_[o]?a=l.end:rE&&_.slice(0,o).split("\n").length>2?a=l.down:o>E&&" "==_[o-1]?(a=l.right,s=u.option):(o>E||o==E&&E!=x&&r==o)&&(a=l.right),r!==o&&(s|=u.shift),a&&(t.onCommandKey(null,s,a),x=r,E=o,C(""))}};document.addEventListener("selectionchange",o),t.on("destroy",function(){document.removeEventListener("selectionchange",o)})}(0,d,p)}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(require,exports,e){"use strict";var t=require("../lib/useragent");function n(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e)),t.setDefaultHandler("touchmove",this.onTouchMove.bind(e));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(t){e[t]=this[t]},this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function r(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var n=e.inSelection(),r=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,o=e.getButton();return 0!==o?((i.getSelectionRange().isEmpty()||1==o)&&i.selection.moveToPosition(r),void(2==o&&(i.textInput.onContextMenu(e.domEvent),t.isMozilla||e.preventDefault()))):(this.mousedownEvent.time=Date.now(),!n||i.isFocused()||(i.focus(),!this.$focusTimeout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(r,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e)))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var i=this.$clickSelection.comparePoint(n);if(-1==i)e=this.$clickSelection.end;else if(1==i)e=this.$clickSelection.start;else{var o=r(this.$clickSelection,n);n=o.cursor,e=o.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,i=n.renderer.screenToTextCoordinates(this.x,this.y),o=n.selection[e](i.row,i.column);if(this.$clickSelection){var a=this.$clickSelection.comparePoint(o.start),s=this.$clickSelection.comparePoint(o.end);if(-1==a&&s<=0)t=this.$clickSelection.end,o.end.row==i.row&&o.end.column==i.column||(i=o.start);else if(1==s&&a>=0)t=this.$clickSelection.start,o.start.row==i.row&&o.start.column==i.column||(i=o.end);else if(-1==a&&1==s)i=o.end,t=o.start;else{var l=r(this.$clickSelection,i);i=l.cursor,t=l.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(i),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,n,r,i=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,n=this.x,r=this.y,Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))),o=Date.now();(i>0||o-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session.getBracketRange(t);r?(r.isEmpty()&&(r.start.column--,r.end.column++),this.setState("select")):(r=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=r,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var r=n.getSelectionRange();r.isMultiLine()&&r.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(r.start.row),this.$clickSelection.end=n.selection.getLineRange(r.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,r=e.domEvent.timeStamp,i=r-n.t,o=i?e.wheelX/i:n.vx,a=i?e.wheelY/i:n.vy;i<550&&(o=(o+n.vx)/2,a=(a+n.vy)/2);var s=Math.abs(o/a),l=!1;if(s>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),s<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l)n.allowed=r;else if(r-n.allowed<550){Math.abs(o)<=1.5*Math.abs(n.vx)&&Math.abs(a)<=1.5*Math.abs(n.vy)?(l=!0,n.allowed=r):n.allowed=0}return n.t=r,n.vx=o,n.vy=a,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},this.onTouchMove=function(e){this.editor._emit("mousewheel",e)}}).call(n.prototype),exports.DefaultHandlers=n}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(require,exports,e){"use strict";require("./lib/oop");var t=require("./lib/dom");function n(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=t.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){t.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(n.prototype),exports.Tooltip=n}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(require,exports,e){"use strict";var t=require("../lib/dom"),n=require("../lib/oop"),r=require("../lib/event"),i=require("../tooltip").Tooltip;function o(e){i.call(this,e)}n.inherits(o,i),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),a=this.getHeight();(e+=15)+o>n&&(e-=e+o-n),(t+=15)+a>r&&(t-=20+a),i.prototype.setPosition.call(this,e,t)}}.call(o.prototype),exports.GutterHandler=function(e){var n,i,a,s=e.editor,l=s.renderer.$gutterLayer,u=new o(s.container);function c(){n&&(n=clearTimeout(n)),a&&(u.hide(),a=null,s._signal("hideGutterTooltip",u),s.removeEventListener("mousewheel",c))}function f(e){u.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",function(t){if(s.isFocused()&&0==t.getButton()&&"foldWidgets"!=l.getRegion(t)){var n=t.getDocumentPosition().row,r=s.session.selection;if(t.getShiftKey())r.selectTo(n,0);else{if(2==t.domEvent.detail)return s.selectAll(),t.preventDefault();e.$clickSelection=s.selection.getLineRange(n)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}}),e.editor.setDefaultHandler("guttermousemove",function(r){var o=r.domEvent.target||r.domEvent.srcElement;if(t.hasCssClass(o,"ace_fold-widget"))return c();a&&e.$tooltipFollowsMouse&&f(r),i=r,n||(n=setTimeout(function(){n=null,i&&!e.isMousePressed?function(){var t=i.getDocumentPosition().row,n=l.$annotations[t];if(!n)return c();if(t==s.session.getLength()){var r=s.renderer.pixelToScreenCoordinates(0,i.y).row,o=i.$pos;if(r>s.session.documentToScreenRow(o.row,o.column))return c()}if(a!=n)if(a=n.text.join("
"),u.setHtml(a),u.show(),s._signal("showGutterTooltip",u),s.on("mousewheel",c),e.$tooltipFollowsMouse)f(i);else{var d=i.domEvent.target.getBoundingClientRect(),p=u.getElement().style;p.left=d.right+"px",p.top=d.bottom+"px"}}():c()},50))}),r.addListener(s.renderer.$gutter,"mouseout",function(e){i=null,a&&!n&&(n=setTimeout(function(){n=null,c()},50))}),s.on("changeSession",c)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(require,exports,e){"use strict";var t=require("../lib/event"),n=require("../lib/useragent"),r=exports.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){t.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){t.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return t.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=n.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(r.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(require,exports,e){"use strict";var t=require("../lib/dom"),n=require("../lib/event"),r=require("../lib/useragent"),i=200,o=200,a=5;function s(e){var s=e.editor,u=t.createElement("img");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",r.isOpera&&(u.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(t){e[t]=this[t]},this),s.addEventListener("mousedown",this.onMouseDown.bind(e));var c,f,d,p,h,m,g,v,b,y,w,_=s.container,x=0;function E(){var e=m;(function(e,t){var n=Date.now(),r=!t||e.row!=t.row,i=!t||e.column!=t.column;!y||r||i?(s.moveCursorToPosition(e),y=n,w={x:f,y:d}):l(w.x,w.y,f,d)>a?y=null:n-y>=o&&(s.renderer.scrollCursorIntoView(),y=null)})(m=s.renderer.screenToTextCoordinates(f,d),e),function(e,t){var n=Date.now(),r=s.renderer.layerConfig.lineHeight,o=s.renderer.layerConfig.characterWidth,a=s.renderer.scroller.getBoundingClientRect(),l={x:{left:f-a.left,right:a.right-f},y:{top:d-a.top,bottom:a.bottom-d}},u=Math.min(l.x.left,l.x.right),c=Math.min(l.y.top,l.y.bottom),p={row:e.row,column:e.column};u/o<=2&&(p.column+=l.x.left=i&&s.renderer.scrollCursorIntoView(p):b=n:b=null}(m,e)}function S(){h=s.selection.toOrientedRange(),c=s.session.addMarker(h,"ace_selection",s.getSelectionStyle()),s.clearSelection(),s.isFocused()&&s.renderer.$cursorLayer.setBlinking(!1),clearInterval(p),E(),p=setInterval(E,20),x=0,n.addListener(document,"mousemove",k)}function C(){clearInterval(p),s.session.removeMarker(c),c=null,s.selection.fromOrientedRange(h),s.isFocused()&&!v&&s.renderer.$cursorLayer.setBlinking(!s.getReadOnly()),h=null,m=null,x=0,b=null,y=null,n.removeListener(document,"mousemove",k)}this.onDragStart=function(e){if(this.cancelDrag||!_.draggable){var t=this;return setTimeout(function(){t.startSelect(),t.captureMouse(e)},0),e.preventDefault()}h=s.getSelectionRange();var n=e.dataTransfer;n.effectAllowed=s.getReadOnly()?"copy":"copyMove",r.isOpera&&(s.container.appendChild(u),u.scrollTop=0),n.setDragImage&&n.setDragImage(u,0,0),r.isOpera&&s.container.removeChild(u),n.clearData(),n.setData("Text",s.session.getTextRange()),v=!0,this.setState("drag")},this.onDragEnd=function(e){if(_.draggable=!1,v=!1,this.setState(null),!s.getReadOnly()){var t=e.dataTransfer.dropEffect;g||"move"!=t||s.session.remove(s.getSelectionRange()),s.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!s.getReadOnly()&&M(e.dataTransfer))return f=e.clientX,d=e.clientY,c||S(),x++,e.dataTransfer.dropEffect=g=A(e),n.preventDefault(e)},this.onDragOver=function(e){if(!s.getReadOnly()&&M(e.dataTransfer))return f=e.clientX,d=e.clientY,c||(S(),x++),null!==O&&(O=null),e.dataTransfer.dropEffect=g=A(e),n.preventDefault(e)},this.onDragLeave=function(e){if(--x<=0&&c)return C(),g=null,n.preventDefault(e)},this.onDrop=function(e){if(m){var t=e.dataTransfer;if(v)switch(g){case"move":h=h.contains(m.row,m.column)?{start:m,end:m}:s.moveText(h,m);break;case"copy":h=s.moveText(h,m,!0)}else{var r=t.getData("Text");h={start:m,end:s.session.insert(m,r)},s.focus(),g=null}return C(),n.preventDefault(e)}},n.addListener(_,"dragstart",this.onDragStart.bind(e)),n.addListener(_,"dragend",this.onDragEnd.bind(e)),n.addListener(_,"dragenter",this.onDragEnter.bind(e)),n.addListener(_,"dragover",this.onDragOver.bind(e)),n.addListener(_,"dragleave",this.onDragLeave.bind(e)),n.addListener(_,"drop",this.onDrop.bind(e));var O=null;function k(){null==O&&(O=setTimeout(function(){null!=O&&c&&C()},20))}function M(e){var t=e.types;return!t||Array.prototype.some.call(t,function(e){return"text/plain"==e||"Text"==e})}function A(e){var t=["copy","copymove","all","uninitialized"],n=r.isMac?e.altKey:e.ctrlKey,i="uninitialized";try{i=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var o="none";return n&&t.indexOf(i)>=0?o="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(i)>=0?o="move":t.indexOf(i)>=0&&(o="copy"),o}}function l(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=r.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;r.isIE&&"dragReady"==this.state&&(l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop());"dragWait"===this.state&&(l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),i=e.getButton();if(1===(e.domEvent.detail||1)&&0===i&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var o=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in o&&(o.unselectable="on"),t.getDragDelay()){if(r.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(s.prototype),exports.DragdropHandler=s}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(require,exports,e){"use strict";var t=require("./dom");exports.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},exports.loadScript=function(e,n){var r=t.getDocumentHead(),i=document.createElement("script");i.src=e,r.appendChild(i),i.onload=i.onreadystatechange=function(e,t){!t&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,t||n())}},exports.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(require,exports,e){"use strict";var t={},n=function(){this.propagationStopped=!0},r=function(){this.defaultPrevented=!0};t._emit=t._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[e]||[],o=this._defaultHandlers[e];if(i.length||o){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=n),t.preventDefault||(t.preventDefault=r),i=i.slice();for(var a=0;a1&&(i=n[n.length-2]);var s=a[t+"Path"];return null==s?s=a.basePath:"/"==r&&(t=r=""),s&&"/"!=s.slice(-1)&&(s+="/"),s+t+r+i+this.get("suffix")},exports.setModuleUrl=function(e,t){return a.$moduleUrls[e]=t},exports.$loading={},exports.loadModule=function(e,t){var n,i;Array.isArray(e)&&(i=e[0],e=e[1]);try{n=require(e)}catch(e){}if(n&&!exports.$loading[e])return t&&t(n);if(exports.$loading[e]||(exports.$loading[e]=[]),exports.$loading[e].push(t),!(exports.$loading[e].length>1)){var o=function(){require([e],function(t){exports._emit("load.module",{name:e,module:t});var n=exports.$loading[e];exports.$loading[e]=null,n.forEach(function(e){e&&e(t)})})};if(!exports.get("packaged"))return o();r.loadScript(exports.moduleUrl(e,i),o),s()}};var s=function(){a.basePath||a.workerPath||a.modePath||a.themePath||Object.keys(a.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),s=function(){})};function l(n){if(o&&o.document){a.packaged=n||require.packaged||e.packaged||o.define&&t("MNGAHOYH").packaged;for(var r,i={},s="",l=document.currentScript||document._currentScript,u=(l&&l.ownerDocument||document).getElementsByTagName("script"),c=0;c=e){for(a=d+1;a=e;)a++;for(s=d,u=a-1;s=n.length||(l=a[s-1])!=f&&l!=d||(M=n[s+1])!=f&&M!=d?p:(r&&(M=d),M==l?M:p);case y:return(l=s>0?a[s-1]:h)==f&&s+10&&a[s-1]==f)return f;if(r)return p;for(T=s+1,A=n.length;T=1425&&j<=2303||64286==j;if(l=n[T],R&&(l==c||l==g))return c}return s<1||(l=n[s-1])==h?p:a[s-1];case h:return r=!1,i=!0,t;case m:return o=!0,p;case x:case E:case C:case O:case S:r=!1;case k:return p}}function j(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?u:M[t]:5==n?/[\u0591-\u05f4]/.test(e)?c:u:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?_:/[\u0660-\u0669\u066b-\u066c]/.test(e)?d:1642==t?w:/[\u06f0-\u06f9]/.test(e)?f:g:32==n&&t<=8287?A[255&t]:254==n&&t>=65136?g:p}exports.L=u,exports.R=c,exports.EN=f,exports.ON_R=3,exports.AN=4,exports.R_H=5,exports.B=6,exports.RLE=7,exports.DOT="·",exports.doBidiReorder=function(e,u,f){if(e.length<2)return{};var b=e.split(""),y=new Array(b.length),w=new Array(b.length),_=[];t=f?l:0,function(e,l,u,c){var f=t?s:a,d=null,p=null,g=null,b=0,y=null,w=-1,_=null,x=null,E=[];if(!c)for(_=0,c=[];_0)if(16==y){for(_=w;_-1){for(_=w;_=0&&c[S]==v;S--)l[S]=t}}(b,_,b.length,u);for(var E=0;Eg&&u[E]0&&"ل"===b[E-1]&&/\u0622|\u0623|\u0625|\u0627/.test(b[E])&&(_[E-1]=_[E]=exports.R_H,E++);b[b.length-1]===exports.DOT&&(_[b.length-1]=exports.B),"‫"===b[0]&&(_[0]=exports.RLE);for(E=0;E=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,r=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===r;)r=n,e++;else e=this.currentRow;return e},this.updateRowLine=function(e,r){void 0===e&&(e=this.getDocumentRow());var i=e===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[e];o&&(void 0===r&&(r=this.getSplitIndex()),r>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[t.L],this.line=rn?this.session.getOverwrite()?e:e-1:n,i=t.getVisualFromLogicalIdx(r,this.bidiMap),o=this.bidiMap.bidiLevels,a=0;!this.session.getOverwrite()&&e<=n&&o[i]%2!=0&&i++;for(var s=0;sn&&o[i]%2==0&&(a+=this.charWidths[o[i]]),this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(a+=this.rtlLineOffset),a},this.getSelections=function(e,t){var n,r=this.bidiMap,i=r.bidiLevels,o=[],a=0,s=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,u=!1,c=!1,f=0;this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var d,p=0;p=s&&dn+o/2;){if(n+=o,r===i.length-1){o=0;break}o=this.charWidths[i[++r]]}return r>0&&i[r-1]%2!=0&&i[r]%2==0?(e0&&i[r-1]%2==0&&i[r]%2!=0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===i.length-1&&0===o&&i[r-1]%2==0||!this.isRtlDir&&0===r&&i[r]%2!=0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&i[r-1]%2!=0&&0!==o&&r--,t=this.bidiMap.logicalFromVisual[r]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(i.prototype),exports.BidiHandler=i}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(require,exports,e){"use strict";var t=require("./lib/oop"),n=require("./lib/lang"),r=require("./lib/event_emitter").EventEmitter,i=require("./range").Range,o=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)}),this.anchor.on("change",function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")})};(function(){t.implement(this,r),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?i.fromPoints(t,t):this.isBackwards()?i.fromPoints(t,e):i.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start,r=t?e.start:e.end;this.$setSelection(n.row,n.column,r.row,r.column)},this.$setSelection=function(e,t,n,r){var o=this.$isEmpty,a=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,r),this.$isEmpty=!i.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||a)&&this._emit("changeSelection")},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,r="number"==typeof e?e:this.lead.row,o=this.session.getFoldLine(r);return o?(r=o.start.row,n=o.end.row):n=r,!0===t?new i(r,0,n,this.session.getLine(n).length):new i(r,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var r=e.column,i=e.column+t;return n<0&&(r=e.column-t,i=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,i).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(t.column=r)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var i=this.session.getFoldAt(e,t,1);if(i)this.moveCursorTo(i.end.row,i.end.column);else{if(this.session.nonTokenRe.exec(r)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e0&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(r-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,r)}},this.$shortWordEndIndex=function(e){var t,n=0,r=/\s/,i=this.session.tokenRe;if(i.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&r.test(t);)n++;if(n<1)for(i.lastIndex=0;(t=e[n])&&!i.test(t);)if(i.lastIndex=0,n++,r.test(t)){if(n>2){n--;break}for(;(t=e[n])&&r.test(t);)n++;if(n>2)break}}return i.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t),i=this.session.getFoldAt(e,t,1);if(i)return this.moveCursorTo(i.end.row,i.end.column);if(t==n.length){var o=this.doc.getLength();do{e++,r=this.doc.getLine(e)}while(e0&&/^\s*$/.test(i));r=i.length,/\s+$/.test(i)||(i="")}var o=n.stringReverse(i),a=this.$shortWordEndIndex(o);return this.moveCursorTo(t,r-a)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,r=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column);var i=this.session.screenToDocumentPosition(r.row+e,r.column,n);0!==e&&0===t&&i.row===this.lead.row&&i.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[i.row]&&(i.row>0||e>0)&&i.row++,this.moveCursorTo(i.row,i.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var r=this.session.getFoldAt(e,t,1);r&&(e=r.start.row,t=r.start.column),this.$keepDesiredColumnOnChange=!0;var i=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(i.charAt(t))&&i.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var r=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(r.row,r.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return i.fromPoints(t,n)}catch(e){return i.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map(function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t});else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=i.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(o.prototype),exports.Selection=o}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(require,exports,e){"use strict";var t=require("./config"),n=2e3,r=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],r=[],i=0,o=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],l=0;l1?this.$applyToken:u.token),f>1&&(/\\\d/.test(u.regex)?c=u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+i+1)}):(f=1,c=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),o[i]=l,i+=f,r.push(c),u.onMatch||(u.onMatch=null)}}r.length||(o[0]=0,r.push("$")),s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+r.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){n=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var r=[],i=0,o=n.length;ic){var v=e.substring(c,g-m.length);d.type==p?d.value+=v:(d.type&&u.push(d),d={type:p,value:v})}for(var b=0;bn){for(f>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});c1&&r[0]!==i&&r.unshift("#tmp",i),{tokens:u,state:r.length?r:i}},this.reportError=t.reportError}).call(r.prototype),exports.Tokenizer=r}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(require,exports,e){"use strict";var t=require("../lib/lang"),n=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var r=e[n],i=0;i=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;for(n=0;t>0;)n+=e[t-=1].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],n=this.getCurrentTokenColumn();return new t(this.$row,n,this.$row,n+e.value.length)}}).call(n.prototype),exports.TokenIterator=n}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(require,exports,e){"use strict";var t,n=require("../../lib/oop"),r=require("../behaviour").Behaviour,i=require("../../token_iterator").TokenIterator,o=require("../../lib/lang"),a=["text","paren.rparen","punctuation.operator"],s=["text","paren.rparen","punctuation.operator","comment"],l={},u={'"':'"',"'":"'"},c=function(e){var n=-1;if(e.multiSelect&&(n=e.selection.index,l.rangeCount!=e.multiSelect.rangeCount&&(l={rangeCount:e.multiSelect.rangeCount})),l[n])return t=l[n];t=l[n]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(e,t,n,r){var i=e.end.row-e.start.row;return{text:n+t+r,selection:[0,e.start.column+1,i,e.end.column+(i?0:1)]}},d=function(e){this.add("braces","insertion",function(n,r,i,a,s){var l=i.getCursorPosition(),u=a.doc.getLine(l.row);if("{"==s){c(i);var p=i.getSelectionRange(),h=a.doc.getTextRange(p);if(""!==h&&"{"!==h&&i.getWrapBehavioursEnabled())return f(p,h,"{","}");if(d.isSaneInsertion(i,a))return/[\]\}\)]/.test(u[l.column])||i.inMultiSelectMode||e&&e.braces?(d.recordAutoInsert(i,a,"}"),{text:"{}",selection:[1,1]}):(d.recordMaybeInsert(i,a,"{"),{text:"{",selection:[1,1]})}else if("}"==s){if(c(i),"}"==u.substring(l.column,l.column+1))if(null!==a.$findOpeningBracket("}",{column:l.column+1,row:l.row})&&d.isAutoInsertedClosing(l,u,s))return d.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==s||"\r\n"==s){c(i);var m="";if(d.isMaybeInsertedClosing(l,u)&&(m=o.stringRepeat("}",t.maybeInsertedBrackets),d.clearMaybeInsertedClosing()),"}"===u.substring(l.column,l.column+1)){var g=a.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!g)return null;var v=this.$getIndent(a.getLine(g.row))}else{if(!m)return void d.clearMaybeInsertedClosing();v=this.$getIndent(u)}var b=v+a.getTabString();return{text:"\n"+b+"\n"+v+m,selection:[1,b.length,1,b.length]}}d.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(e,n,r,i,o){var a=i.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==a){if(c(r),"}"==i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;t.maybeInsertedBrackets--}}),this.add("parens","insertion",function(e,t,n,r,i){if("("==i){c(n);var o=n.getSelectionRange(),a=r.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return f(o,a,"(",")");if(d.isSaneInsertion(n,r))return d.recordAutoInsert(n,r,")"),{text:"()",selection:[1,1]}}else if(")"==i){c(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row);if(")"==l.substring(s.column,s.column+1))if(null!==r.$findOpeningBracket(")",{column:s.column+1,row:s.row})&&d.isAutoInsertedClosing(s,l,i))return d.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"("==o&&(c(n),")"==r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i}),this.add("brackets","insertion",function(e,t,n,r,i){if("["==i){c(n);var o=n.getSelectionRange(),a=r.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return f(o,a,"[","]");if(d.isSaneInsertion(n,r))return d.recordAutoInsert(n,r,"]"),{text:"[]",selection:[1,1]}}else if("]"==i){c(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row);if("]"==l.substring(s.column,s.column+1))if(null!==r.$findOpeningBracket("]",{column:s.column+1,row:s.row})&&d.isAutoInsertedClosing(s,l,i))return d.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"["==o&&(c(n),"]"==r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i}),this.add("string_dquotes","insertion",function(e,t,n,r,i){var o=r.$mode.$quotes||u;if(1==i.length&&o[i]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(i))return;c(n);var a=i,s=n.getSelectionRange(),l=r.doc.getTextRange(s);if(!(""===l||1==l.length&&o[l])&&n.getWrapBehavioursEnabled())return f(s,l,a,a);if(!l){var d=n.getCursorPosition(),p=r.doc.getLine(d.row),h=p.substring(d.column-1,d.column),m=p.substring(d.column,d.column+1),g=r.getTokenAt(d.row,d.column),v=r.getTokenAt(d.row,d.column+1);if("\\"==h&&g&&/escape/.test(g.type))return null;var b,y=g&&/string|escape/.test(g.type),w=!v||/string|escape/.test(v.type);if(m==a)(b=y!==w)&&/string\.end/.test(v.type)&&(b=!1);else{if(y&&!w)return null;if(y&&w)return null;var _=r.$mode.tokenRe;_.lastIndex=0;var x=_.test(h);_.lastIndex=0;var E=_.test(h);if(x||E)return null;if(m&&!/[\s;,.})\]\\]/.test(m))return null;b=!0}return{text:b?a+a:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(e,t,n,r,i){var o=r.$mode.$quotes||u,a=r.doc.getTextRange(i);if(!i.isMultiLine()&&o.hasOwnProperty(a)&&(c(n),r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)==a))return i.end.column++,i})};d.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),r=new i(t,n.row,n.column);if(!this.$matchTokenType(r.getCurrentToken()||"text",a)){var o=new i(t,n.row,n.column+1);if(!this.$matchTokenType(o.getCurrentToken()||"text",a))return!1}return r.stepForward(),r.getCurrentTokenRow()!==n.row||this.$matchTokenType(r.getCurrentToken()||"text",s)},d.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},d.recordAutoInsert=function(e,n,r){var i=e.getCursorPosition(),o=n.doc.getLine(i.row);this.isAutoInsertedClosing(i,o,t.autoInsertedLineEnd[0])||(t.autoInsertedBrackets=0),t.autoInsertedRow=i.row,t.autoInsertedLineEnd=r+o.substr(i.column),t.autoInsertedBrackets++},d.recordMaybeInsert=function(e,n,r){var i=e.getCursorPosition(),o=n.doc.getLine(i.row);this.isMaybeInsertedClosing(i,o)||(t.maybeInsertedBrackets=0),t.maybeInsertedRow=i.row,t.maybeInsertedLineStart=o.substr(0,i.column)+r,t.maybeInsertedLineEnd=o.substr(i.column),t.maybeInsertedBrackets++},d.isAutoInsertedClosing=function(e,n,r){return t.autoInsertedBrackets>0&&e.row===t.autoInsertedRow&&r===t.autoInsertedLineEnd[0]&&n.substr(e.column)===t.autoInsertedLineEnd},d.isMaybeInsertedClosing=function(e,n){return t.maybeInsertedBrackets>0&&e.row===t.maybeInsertedRow&&n.substr(e.column)===t.maybeInsertedLineEnd&&n.substr(0,e.column)==t.maybeInsertedLineStart},d.popAutoInsertedClosing=function(){t.autoInsertedLineEnd=t.autoInsertedLineEnd.substr(1),t.autoInsertedBrackets--},d.clearMaybeInsertedClosing=function(){t&&(t.maybeInsertedBrackets=0,t.maybeInsertedRow=-1)},n.inherits(d,r),exports.CstyleBehaviour=d}),ace.define("ace/unicode",["require","exports","module"],function(require,exports,e){"use strict";for(var t=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],n=0,r=[],i=0;i2?r%u!=u-1:r%u==0})}else{if(!this.blockComment)return!1;var p=this.blockComment.start,h=this.blockComment.end,m=new RegExp("^(\\s*)(?:"+a.escapeRegExp(p)+")"),g=new RegExp("(?:"+a.escapeRegExp(h)+")\\s*$"),v=function(e,t){y(e,t)||o&&!/\S/.test(e)||(i.insertInLine({row:t,column:e.length},h),i.insertInLine({row:t,column:l},p))},b=function(e,t){var n;(n=e.match(g))&&i.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(m))&&i.removeInLine(t,n[1].length,n[0].length)},y=function(e,n){if(m.test(e))return!0;for(var r=t.getTokens(n),i=0;ie.length&&(_=e.length)}),l==1/0&&(l=_,o=!1,s=!1),c&&l%u!=0&&(l=Math.floor(l/u)*u),w(s?b:v)},this.toggleBlockComment=function(e,t,n,r){var i=this.blockComment;if(i){!i.start&&i[0]&&(i=i[0]);var o,a,u=(m=new s(t,r.row,r.column)).getCurrentToken(),c=(t.selection,t.selection.toOrientedRange());if(u&&/comment/.test(u.type)){for(var f,d;u&&/comment/.test(u.type);){if(-1!=(g=u.value.indexOf(i.start))){var p=m.getCurrentTokenRow(),h=m.getCurrentTokenColumn()+g;f=new l(p,h,p,h+i.start.length);break}u=m.stepBackward()}var m;for(u=(m=new s(t,r.row,r.column)).getCurrentToken();u&&/comment/.test(u.type);){var g;if(-1!=(g=u.value.indexOf(i.end))){p=m.getCurrentTokenRow(),h=m.getCurrentTokenColumn()+g;d=new l(p,h,p,h+i.end.length);break}u=m.stepForward()}d&&t.remove(d),f&&(t.remove(f),o=f.start.row,a=-i.start.length)}else a=i.start.length,o=n.start.row,t.insert(n.end,i.end),t.insert(n.start,i.start);c.start.row==o&&(c.start.column+=a),c.end.row==o&&(c.end.column+=a),t.selection.fromOrientedRange(c)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var n in this.$embeds=[],this.$modes={},e)if(e[n]){var r=e[n],i=r.prototype.$id,o=t.$modes[i];o||(t.$modes[i]=o=new r),t.$modes[n]||(t.$modes[n]=o),this.$embeds.push(n),this.$modes[n]=o}var a=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(n=0;nthis.row)){var n=function(t,n,r){var i="insert"==t.action,o=(i?1:-1)*(t.end.row-t.start.row),a=(i?1:-1)*(t.end.column-t.start.column),s=t.start,l=i?s:t.end;if(e(n,s,r))return{row:n.row,column:n.column};if(e(l,n,!r))return{row:n.row+o,column:n.column+(n.row==l.row?a:0)};return{row:s.row,column:s.column}}(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(r.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(require,exports,e){"use strict";var t=require("./lib/oop"),n=require("./apply_delta").applyDelta,r=require("./lib/event_emitter").EventEmitter,i=require("./range").Range,o=require("./anchor").Anchor,a=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){t.implement(this,r),this.setValue=function(e){var t=this.getLength()-1;this.remove(new i(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new o(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return null==t&&(t=r.length),{row:e,column:t=Math.min(Math.max(t,0),r.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))0,r=t=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof i||(e=i.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var r="insert"==e.action;(r?e.lines.length<=1&&!e.lines[0]:!i.comparePoints(e.start,e.end))||(r&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(n(this.$lines,e,t),this._signal("change",e)))},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,r=n.length-t+1,i=e.start.row,o=e.start.column,a=0,s=0;a20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==r&&(r=t),o<=r&&n.fireUpdateEvent(o,r)}}};(function(){t.implement(this,n),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens}}).call(r.prototype),exports.BackgroundTokenizer=r}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(require,exports,e){"use strict";var t=require("./lib/lang"),n=(require("./lib/oop"),require("./range").Range),r=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,r,i,o){if(this.regExp)for(var a=o.firstRow,s=o.lastRow,l=a;l<=s;l++){var u=this.cache[l];null==u&&((u=t.getMatchOffsets(i.getLine(l),this.regExp)).length>this.MAX_RANGES&&(u=u.slice(0,this.MAX_RANGES)),u=u.map(function(e){return new n(l,e.offset,l,e.offset+e.length)}),this.cache[l]=u.length?u:"");for(var c=u.length;c--;)r.drawSingleLineMarker(e,u[c].toScreenRange(i),this.clazz,o)}}}).call(r.prototype),exports.SearchHighlight=r}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(require,exports,e){"use strict";var t=require("../range").Range;function n(e,n){this.foldData=e,Array.isArray(n)?this.folds=n:n=this.folds=[n];var r=n[n.length-1];this.range=new t(n[0].start.row,n[0].start.column,r.end.row,r.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach(function(t){t.start.row+=e,t.end.row+=e})},this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var r,i,o=0,a=this.folds,s=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l0)){var l=t(e,a.start);return 0===s?n&&0!==l?-o-2:o:l>0||0===l&&!n?o:-o-1}}return-o-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var r=this.pointIndex(e.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){for(var e,n=[],r=this.ranges,i=(r=r.sort(function(e,n){return t(e.start,n.start)}))[0],o=1;o=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row=r)break}if("insert"==e.action)for(var l=i-r,u=-t.column+n.column;ar)break;if(c.start.row==r&&c.start.column>=t.column&&(c.start.column==t.column&&this.$insertRight||(c.start.column+=u,c.start.row+=l)),c.end.row==r&&c.end.column>=t.column){if(c.end.column==t.column&&this.$insertRight)continue;c.end.column==t.column&&u>0&&ac.start.column&&c.end.column==o[a+1].start.column&&(c.end.column-=u),c.end.column+=u,c.end.row+=l}}else for(l=r-i,u=t.column-n.column;ai)break;c.end.rowt.column)&&(c.end.column=t.column,c.end.row=t.row):(c.end.column+=u,c.end.row+=l):c.end.row>i&&(c.end.row+=l),c.start.rowt.column)&&(c.start.column=t.column,c.start.row=t.row):(c.start.column+=u,c.start.row+=l):c.start.row>i&&(c.start.row+=l)}if(0!=l&&a=e)return i;if(i.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0);r=e)return i}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,i=0;i=t){s=e?r-=t-s:r=0);break}a>=e&&(r-=s>=e?a-s:a-e+1)}return r},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(e,t){return e.start.row-t.start.row}),e},this.addFold=function(e,t){var i,o=this.$foldData,a=!1;e instanceof r?i=e:(i=new r(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(i.range);var s=i.start.row,l=i.start.column,u=i.end.row,c=i.end.column;if(!(s0&&(this.removeFolds(p),p.forEach(function(e){i.addSubFold(e)}));for(var h=0;h0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,n){var r,i;if(null==e?(r=new t(0,0,this.getLength(),0),n=!0):r="number"==typeof e?new t(e,0,e,this.getLine(e).length):"row"in e?t.fromPoints(e,e):e,i=this.getFoldsInRangeList(r),n)this.removeFolds(i);else for(var o=i;o.length;)this.expandFolds(o),o=this.getFoldsInRangeList(r);if(i.length)return i},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,r,i){null==r&&(r=e.start.row),null==i&&(i=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var o=this.doc,a="";return e.walk(function(e,t,n,s){if(!(tc)break}while(a&&l.test(a.type));a=o.stepBackward()}else a=o.getCurrentToken();return u.end.row=o.getCurrentTokenRow(),u.end.column=o.getCurrentTokenColumn()+a.value.length-2,u}},this.foldAll=function(e,t,n){null==n&&(n=1e5);var r=this.foldWidgets;if(r){t=t||this.getLength();for(var i=e=e||0;i=e){i=o.end.row;try{var a=this.addFold("...",o);a&&(a.collapseChildren=n)}catch(e){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var r,i=e-1;i>=0;){var o=n[i];if(null==o&&(o=n[i]=this.getFoldWidget(i)),"start"==o){var a=this.getFoldWidgetRange(i);if(r||(r=a),a&&a.end.row>=e)break}i--}return{range:-1!==i&&a,firstRange:r}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var r=t.target||t.srcElement;r&&/ace_fold-widget/.test(r.className)&&(r.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),r=this.getLine(e),i="end"===n?-1:1,o=this.getFoldAt(e,-1===i?0:r.length,i);if(o)return t.children||t.all?this.removeFold(o):this.expandFold(o),o;var a=this.getFoldWidgetRange(e,!0);if(a&&!a.isMultiLine()&&(o=this.getFoldAt(a.start.row,a.start.column,1))&&a.isEqual(o.range))return this.removeFold(o),o;if(t.siblings){var s=this.getParentFoldRangeData(e);if(s.range)var l=s.range.start.row+1,u=s.range.end.row;this.foldAll(l,u,t.all?1e4:0)}else t.children?(u=a?a.end.row:this.getLength(),this.foldAll(e+1,u,t.all?1e4:0)):a&&(t.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var r=this.getParentFoldRangeData(t,!0);if(n=r.range||r.firstRange){t=n.start.row;var i=this.getFoldAt(t,this.getLine(t).length,1);i?this.removeFold(i):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(require,exports,e){"use strict";var t=require("../token_iterator").TokenIterator,n=require("../range").Range;exports.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var r=n.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e):null},this.getBracketRange=function(e){var t,r=this.getLine(e.row),i=!0,o=r.charAt(e.column-1),a=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(a||(o=r.charAt(e.column),e={row:e.row,column:e.column+1},a=o&&o.match(/([\(\[\{])|([\)\]\}])/),i=!1),!a)return null;if(a[1]){if(!(s=this.$findClosingBracket(a[1],e)))return null;t=n.fromPoints(e,s),i||(t.end.column++,t.start.column--),t.cursor=t.end}else{var s;if(!(s=this.$findOpeningBracket(a[2],e)))return null;t=n.fromPoints(s,e),i||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,n,r){var i=this.$brackets[e],o=1,a=new t(this,n.row,n.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){r||(r=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var l=n.column-a.getCurrentTokenColumn()-2,u=s.value;;){for(;l>=0;){var c=u.charAt(l);if(c==i){if(0==(o-=1))return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else c==e&&(o+=1);l-=1}do{s=a.stepBackward()}while(s&&!r.test(s.type));if(null==s)break;l=(u=s.value).length-1}return null}},this.$findClosingBracket=function(e,n,r){var i=this.$brackets[e],o=1,a=new t(this,n.row,n.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){r||(r=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var l=n.column-a.getCurrentTokenColumn();;){for(var u=s.value,c=u.length;ln&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>1,o=e[i];if(t>o)n=i+1;else{if(!(t=t);o++);return(n=r[o])?(n.index=o,n.start=i-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=n.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?n.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t0&&(r=!!n.charAt(t-1).match(this.tokenRe)),r||(r=!!n.charAt(t).match(this.tokenRe)),r)var i=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))i=/\s/;else i=this.nonTokenRe;var o=t;if(o>0){do{o--}while(o>=0&&n.charAt(o).match(i));o++}for(var a=t;ae&&(e=t.screenWidth)}),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,i=0,o=this.$foldData[i],a=o?o.start.row:1/0,s=t.length,l=0;la){if((l=o.end.row+1)>=s)break;a=(o=this.$foldData[i++])?o.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>r&&(r=n[l])}this.screenWidth=r}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var r=e[n];"insert"==r.action||"remove"==r.action?this.doc.revertDelta(r):r.folds&&this.addFolds(r.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;ne.end.column&&(o.start.column+=c),o.end.row==e.end.row&&o.end.column>e.end.column&&(o.end.column+=c)),a&&o.start.row>=e.end.row&&(o.start.row+=a,o.end.row+=a)}if(o.end=this.insert(o.start,r),i.length){var s=e.start,u=o.start,c=(a=u.row-s.row,u.column-s.column);this.addFolds(i.map(function(e){return(e=e.clone()).start.row==s.row&&(e.start.column+=c),e.end.row==s.row&&(e.end.column+=c),e.start.row+=a,e.end.row+=a,e}))}return o},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new l(0,0,0,0),r=this.getTabSize(),i=t.start.row;i<=t.end.row;++i){var o=this.getLine(i);n.start.row=i,n.end.row=i;for(var a=0;a0){var i;if((i=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;r=i-t}else{e=this.$clipRowToDocument(e);r=(t=this.$clipRowToDocument(t))-e+1}var o=new l(e,0,t,Number.MAX_VALUE),a=this.getFoldsInRange(o).map(function(e){return(e=e.clone()).start.row+=r,e.end.row+=r,e}),s=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+r,s),a.length&&this.addFolds(a),r},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var r=this.$constrainWrapLimit(e,n.min,n.max);return r!=this.$wrapLimit&&r>1&&(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,r=e.start,i=e.end,o=r.row,a=i.row,s=a-o,l=null;if(this.$updating=!0,0!=s)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(o,s);var u=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var c=0;if(m=this.getFoldLine(i.row)){m.addRemoveChars(i.row,i.column,r.column-i.column),m.shiftRow(-s);var f=this.getFoldLine(o);f&&f!==m&&(f.merge(m),m=f),c=u.indexOf(m)+1}for(;c=i.row&&m.shiftRow(-s)}a=o}else{var d=Array(s);d.unshift(o,0);var p=t?this.$wrapData:this.$rowLengthCache;p.splice.apply(p,d);u=this.$foldData,c=0;if(m=this.getFoldLine(o)){var h=m.range.compareInside(r.row,r.column);0==h?(m=m.split(r.row,r.column))&&(m.shiftRow(s),m.addRemoveChars(a,0,i.column-r.column)):-1==h&&(m.addRemoveChars(o,0,i.column-r.column),m.shiftRow(s)),c=u.indexOf(m)+1}for(;c=o&&m.shiftRow(s)}}else s=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),s=-s),(m=this.getFoldLine(o))&&m.addRemoveChars(o,r.column,s);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(o,a):this.$updateRowLengthCache(o,a),l},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(t,n){var i,o,a=this.doc.getAllLines(),s=this.getTabSize(),l=this.$wrapData,u=this.$wrapLimit,c=t;for(n=Math.min(n,a.length-1);c<=n;)(o=this.getFoldLine(c,o))?(i=[],o.walk(function(t,n,o,s){var l;if(null!=t){(l=this.$getDisplayTokens(t,i.length))[0]=e;for(var u=1;u=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(t,n,i){if(0==t.length)return[];var o=[],s=t.length,l=0,c=0,f=this.$wrapAsCode,p=this.$indentedSoftWrap,h=n<=Math.max(2*i,8)||!1===p?0:Math.floor(n/2);function m(e){for(var n=e-l,r=l;rn-g;){var v=l+n-g;if(t[v-1]>=a&&t[v]>=a)m(v);else if(t[v]!=e&&t[v]!=r){for(var b=Math.max(v-(n-(n>>2)),l-1);v>b&&t[v]b&&t[v]b&&9==t[v];)v--}else for(;v>b&&t[v]b?m(++v):(2==t[v=l+n]&&v--,m(v-g))}else{for(;v!=l-1&&t[v]!=e;v--);if(v>l){m(v);continue}for(v=l+n;v39&&o<48||o>57&&o<64?r.push(9):o>=4352&&p(o)?r.push(1,2):r.push(1)}return r},this.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var r,i;for(null==t&&(t=1/0),n=n||0,i=0;i=4352&&p(r)?n+=2:n+=1,!(n>t));i++);return[n,i]},this.lineWidgets=null,this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]=0){s=u[c],o=this.$docRowCache[c];var d=e>u[f-1]}else d=!f;for(var p=this.getLength()-1,h=this.getNextFoldLine(o),m=h?h.start.row:1/0;s<=e&&!(s+(l=this.getRowLength(o))>e||o>=p);)s+=l,++o>m&&(o=h.end.row+1,m=(h=this.getNextFoldLine(o,h))?h.start.row:1/0),d&&(this.$docRowCache.push(o),this.$screenRowCache.push(s));if(h&&h.start.row<=o)r=this.getFoldDisplayLine(h),o=h.start.row;else{if(s+l<=e||o>p)return{row:p,column:this.getLine(p).length};r=this.getLine(o),h=null}var g=0,v=Math.floor(e-s);if(this.$useWrapMode){var b=this.$wrapData[o];b&&(i=b[v],v>0&&b.length&&(g=b.indent,a=b[v-1]||b[b.length-1],r=r.substring(a)))}return void 0!==n&&this.$bidiHandler.isBidiRow(s+v,o,v)&&(t=this.$bidiHandler.offsetToCol(n)),a+=this.$getStringScreenWidth(r,t-g)[1],this.$useWrapMode&&a>=i&&(a=i-1),h?h.idxToPosition(a):{row:o,column:a}},this.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var r,i=0,o=null;(r=this.getFoldAt(e,t,1))&&(e=r.start.row,t=r.start.column);var a,s=0,l=this.$docRowCache,u=this.$getRowCacheIndex(l,e),c=l.length;if(c&&u>=0){s=l[u],i=this.$screenRowCache[u];var f=e>l[c-1]}else f=!c;for(var d=this.getNextFoldLine(s),p=d?d.start.row:1/0;s=p){if((a=d.end.row+1)>e)break;p=(d=this.getNextFoldLine(a,d))?d.start.row:1/0}else a=s+1;i+=this.getRowLength(s),s=a,f&&(this.$docRowCache.push(s),this.$screenRowCache.push(i))}var h="";d&&s>=p?(h=this.getFoldDisplayLine(d,e,t),o=d.start.row):(h=this.getLine(e).substring(0,t),o=e);var m=0;if(this.$useWrapMode){var g=this.$wrapData[o];if(g){for(var v=0;h.length>=g[v];)i++,v++;h=h.substring(g[v-1]||0,h.length),m=v>0?g.indent:0}}return{row:i,column:m+this.$getStringScreenWidth(h)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,r=0,i=(s=0,(t=this.$foldData[s++])?t.start.row:1/0);ri&&(r=t.end.row+1,i=(t=this.$foldData[s++])?t.start.row:1/0)}else{e=this.getLength();for(var a=this.$foldData,s=0;sn);o++);return[r,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=p}.call(d.prototype),require("./edit_session/folding").Folding.call(d.prototype),require("./edit_session/bracket_match").BracketMatch.call(d.prototype),i.defineOptions(d.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){e=parseInt(e),isNaN(e)||this.$tabSize===e||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),exports.EditSession=d}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(require,exports,e){"use strict";var t=require("./lib/lang"),n=require("./lib/oop"),r=require("./range").Range,i=function(){this.$options={}};(function(){this.set=function(e){return n.mixin(this.$options,e),this},this.getOptions=function(){return t.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var i=null;return n.forEach(function(e,n,o,a){return i=new r(e,n,o,a),!(n==a&&t.start&&t.start.start&&0!=t.skipCurrent&&i.isEqual(t.start))||(i=null,!1)}),i},this.findAll=function(e){var n=this.$options;if(!n.needle)return[];this.$assembleRegExp(n);var i=n.range,o=i?e.getLines(i.start.row,i.end.row):e.doc.getAllLines(),a=[],s=n.re;if(n.$isMultiLine){var l,u=s.length,c=o.length-u;e:for(var f=s.offset||0;f<=c;f++){for(var d=0;dm||(a.push(l=new r(f,m,f+u-1,g)),u>2&&(f=f+u-2))}}else for(var v=0;v_&&a[d].end.row==i.end.row;)d--;for(a=a.slice(v,d+1),v=0,d=a.length;v=s;n--)if(f(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,s=a.row;n>=s;n--)if(f(n,Number.MAX_VALUE,e))return}};else u=function(e){var n=a.row;if(!f(n,a.column,e)){for(n+=1;n<=l;n++)if(f(n,0,e))return;if(0!=t.wrap)for(n=s,l=a.row;n<=l;n++)if(f(n,0,e))return}};if(t.$isMultiLine)var c=n.length,f=function(t,i,o){var a=r?t-c+1:t;if(!(a<0)){var s=e.getLine(a),l=s.search(n[0]);if(!(!r&&li))return!!o(a,l,a+c-1,f)||void 0}}};else if(r)f=function(t,r,i){var o,a=e.getLine(t),s=[],l=0;for(n.lastIndex=0;o=n.exec(a);){var u=o[0].length;if(l=o.index,!u){if(l>=a.length)break;n.lastIndex=l+=1}if(o.index+u>r)break;s.push(o.index,u)}for(var c=s.length-1;c>=0;c-=2){var f=s[c-1];if(i(t,f,t,f+(u=s[c])))return!0}};else f=function(t,r,i){var o,a,s=e.getLine(t);for(n.lastIndex=r;a=n.exec(s);){var l=a[0].length;if(i(t,o=a.index,t,o+l))return!0;if(!l&&(n.lastIndex=o+=1,o>=s.length))return!1}};return{forEach:u}}}).call(i.prototype),exports.Search=i}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(require,exports,e){"use strict";var t=require("../lib/keys"),n=require("../lib/useragent"),r=t.KEY_MODS;function i(e,t){this.platform=t||(n.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function o(e,t){i.call(this,e,t),this.$singleCommand=!1}o.prototype=i.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var r=this.commandKeyBinding;for(var i in r){var o=r[i];if(o==e)delete r[i];else if(Array.isArray(o)){var a=o.indexOf(e);-1!=a&&(o.splice(a,1),1==o.length&&(r[i]=o[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach(function(e){var i="";if(-1!=e.indexOf(" ")){var o=e.split(/\s+/);e=o.pop(),o.forEach(function(e){var t=this.parseKeys(e),n=r[t.hashId]+t.key;i+=(i?" ":"")+n,this._addCommandToBinding(i,"chainKeys")},this),i+=" "}var a=this.parseKeys(e),s=r[a.hashId]+a.key;this._addCommandToBinding(i+s,t,n)},this)},this._addCommandToBinding=function(t,n,r){var i,o=this.commandKeyBinding;if(n)if(!o[t]||this.$singleCommand)o[t]=n;else{Array.isArray(o[t])?-1!=(i=o[t].indexOf(n))&&o[t].splice(i,1):o[t]=[o[t]],"number"!=typeof r&&(r=e(n));var a=o[t];for(i=0;ir)break}a.splice(i,0,n)}else delete o[t]},this.addCommands=function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"function"==typeof n&&(n={exec:n}),"object"==typeof n&&(n.name||(n.name=t),this.addCommand(n))}},this)},this.removeCommands=function(e){Object.keys(e).forEach(function(t){this.removeCommand(e[t])},this)},this.bindKeys=function(e){Object.keys(e).forEach(function(t){this.bindKey(t,e[t])},this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var n=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),r=n.pop(),i=t[r];if(t.FUNCTION_KEYS[i])r=t.FUNCTION_KEYS[i].toLowerCase();else{if(!n.length)return{key:r,hashId:-1};if(1==n.length&&"shift"==n[0])return{key:r.toUpperCase(),hashId:-1}}for(var o=0,a=n.length;a--;){var s=t.KEY_MODS[n[a]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+n[a]+" in "+e),!1;o|=s}return{key:r,hashId:o}},this.findKeyCommand=function(e,t){var n=r[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,i){if(!(i<0)){var o=r[t]+n,a=this.commandKeyBinding[o];return e.$keyChain&&(e.$keyChain+=" "+o,a=this.commandKeyBinding[e.$keyChain]||a),!a||"chainKeys"!=a&&"chainKeys"!=a[a.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||i>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:a}):(e.$keyChain=e.$keyChain||o,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(i.prototype),exports.HashHandler=i,exports.MultiHashHandler=o}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(require,exports,e){"use strict";var t=require("../lib/oop"),n=require("../keyboard/hash_handler").MultiHashHandler,r=require("../lib/event_emitter").EventEmitter,i=function(e,t){n.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",function(e){return e.command.exec(e.editor,e.args||{})})};t.inherits(i,n),function(){t.implement(this,r),this.exec=function(e,t,n){if(Array.isArray(e)){for(var r=e.length;r--;)if(this.exec(e[r],t,n))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var i={editor:t,command:e,args:n};return i.returnValue=this._emit("exec",i),this._signal("afterExec",i),!1!==i.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach(function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map(function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e})}}.call(i.prototype),exports.CommandManager=i}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(require,exports,e){"use strict";var t=require("../lib/lang"),n=require("../config"),r=require("../range").Range;function i(e,t){return{win:e,mac:t}}exports.commands=[{name:"showSettingsMenu",bindKey:i("Ctrl-,","Command-,"),exec:function(e){n.loadModule("ace/ext/settings_menu",function(t){t.init(e),e.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:i("Alt-E","F4"),exec:function(e){n.loadModule("./ext/error_marker",function(t){t.showErrorMarker(e,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:i("Alt-Shift-E","Shift-F4"),exec:function(e){n.loadModule("./ext/error_marker",function(t){t.showErrorMarker(e,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:i("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:i(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:i("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:i("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:i("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:i("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:i("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:i(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:i("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:i("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:i("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:i("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:i("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:i("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:i("Ctrl-F","Command-F"),exec:function(e){n.loadModule("ace/ext/searchbox",function(t){t.Search(e)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:i("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:i("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:i("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:i("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:i("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:i("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:i("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:i("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:i("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:i("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:i("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:i("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:i("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:i("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:i("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:i("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:i("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:i("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:i("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:i("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:i(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:i("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:i(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:i("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:i("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:i("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:i("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:i("Ctrl-P","Ctrl-P"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:i("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:i("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:i(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:i("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:i("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:i("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:i("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:i("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:i("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:i("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:i("Ctrl-H","Command-Option-F"),exec:function(e){n.loadModule("ace/ext/searchbox",function(t){t.Search(e,!0)})}},{name:"undo",description:"Undo",bindKey:i("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:i("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:i("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:i("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:i("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:i("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:i("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:i("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:i("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:i("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:i("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:i("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:i("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:i("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:i("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:i("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:i("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:i("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:i("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,n){e.insert(t.stringRepeat(n.text||"",n.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:i(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:i("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:i("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:i("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",description:"Expand to line",bindKey:i("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:i(null,null),exec:function(e){for(var n=e.selection.isBackwards(),i=n?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),o=n?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),a=e.session.doc.getLine(i.row).length,s=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,l=e.session.doc.getLine(i.row),u=i.row+1;u<=o.row+1;u++){var c=t.stringTrimLeft(t.stringTrimRight(e.session.doc.getLine(u)));0!==c.length&&(c=" "+c),l+=c}o.row+10?(e.selection.moveCursorTo(i.row,i.column),e.selection.selectTo(i.row,i.column+s)):(a=e.session.doc.getLine(i.row).length>a?a+1:a,e.selection.moveCursorTo(i.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:i(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,o=[];i.length<1&&(i=[e.selection.getRange()]);for(var a=0;a=i.lastRow||r.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var o=this.selection.toJSON();this.curOp.selectionAfter=o,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(o),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,r=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var i=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\s/.test(i)||/\s/.test(t.args)),this.mergeNextCommand=!0}else r=r&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;m.loadModule(["keybinding",e],function(r){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(r&&r.handler),t&&t()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||n.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout(function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=t.findMatchingBracket(e.getCursorPosition());if(n)var r=new f(n.row,n.column,n.row,n.column+1);else if(t.$mode.getMatching)r=t.$mode.getMatching(e.session);r&&(t.$bracketHighlight=t.addMarker(r,"ace_bracket","text"))}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout(function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),r=new g(e.session,n.row,n.column),i=r.getCurrentToken();if(!i||!/\b(?:tag-open|tag-name)/.test(i.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1==i.type.indexOf("tag-open")||(i=r.stepForward())){var o=i.value,a=0,s=r.stepBackward();if("<"==s.value)do{s=i,(i=r.stepForward())&&i.value===o&&-1!==i.type.indexOf("tag-name")&&("<"===s.value?a++:"=0);else{do{i=s,s=r.stepBackward(),i&&i.value===o&&-1!==i.type.indexOf("tag-name")&&("<"===s.value?a++:"1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new f(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),r=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",r)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,r=t.end.column,i=e.getLine(t.start.row),o=i.substring(n,r);if(!(o.length>5e3)&&/[\w\d]/.test(o)){var a=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:o}),s=i.substring(n-1,r+1);if(a.test(s))return a}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var r=this.selection.getAllRanges(),i=0;io.length||i.length<2||!i[1])return this.commands.exec("insertstring",this,t);for(var a=o.length;a--;){var s=o[a];s.isEmpty()||r.remove(s),r.insert(s.start,i[a])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,r=n.getMode(),i=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var o=r.transformAction(n.getState(i.row),"insertion",this,n,e);o&&(e!==o.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),e=o.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){(a=new f.fromPoints(i,i)).end.column+=e.length,this.session.remove(a)}}else{var a=this.getSelectionRange();i=this.session.remove(a),this.clearSelection()}if("\n"==e||"\r\n"==e){var s=n.getLine(i.row);if(i.column>s.search(/\S|$/)){var l=s.substr(i.column).search(/\S|$/);n.doc.removeInLine(i.row,i.column,i.column+l)}}this.clearSelection();var u=i.column,c=n.getState(i.row),d=(s=n.getLine(i.row),r.checkOutdent(c,s,e));n.insert(i,e);if(o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new f(i.row,u+o.selection[0],i.row,u+o.selection[1])):this.selection.setSelectionRange(new f(i.row+o.selection[0],o.selection[1],i.row+o.selection[2],o.selection[3]))),n.getDocument().isNewLine(e)){var p=r.getNextLineIndent(c,s.slice(0,i.column),n.getTabString());n.insert({row:i.row+1,column:0},p)}d&&r.autoOutdent(c,n,i.row)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(e,t){var n;(t.extendLeft||t.extendRight)&&((n=this.selection.getRange()).start.column-=t.extendLeft,n.end.column+=t.extendRight,this.selection.setRange(n),e||n.isEmpty()||this.remove());(!e&&this.selection.isEmpty()||this.insert(e,!0),t.restoreStart||t.restoreEnd)&&((n=this.selection.getRange()).start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},this.onCommandKey=function(e,t,n){this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),i=n.getMode().transformAction(r,"deletion",this,n,t);if(0===t.end.column){var o=n.getTextRange(t);if("\n"==o[o.length-1]){var a=n.getLine(t.end.row);/^\s+$/.test(a)&&(t.end.column=a.length)}}i&&(t=i)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,r,i=this.session.getLine(e.row);tt.toLowerCase()?1:0});var i=new f(0,0,0,0);for(r=e.first;r<=e.last;r++){var o=t.getLine(r);i.start.row=r,i.end.row=r,i.end.column=o.length,t.replace(i,n[r-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var r=this.session.getLine(e);n.lastIndex=t)return{value:i[0],start:i.index,end:i.index+i[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,r=new f(t,n-1,t,n),i=this.session.getTextRange(r);if(!isNaN(parseFloat(i))&&isFinite(i)){var o=this.getNumberAt(t,n);if(o){var a=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,s=o.start+o.value.length-a,l=parseFloat(o.value);l*=Math.pow(10,s),a!==o.end&&n=s&&a<=l&&(n=t,u.selection.clearSelection(),u.moveCursorTo(e,s+i),u.selection.selectTo(e,l+i)),s=l});for(var c,f=this.$toggleWordPairs,d=0;dp+1)break;p=h.last}for(c--,s=this.session.$moveLines(d,p,t?0:e),t&&-1==e&&(f=c+1);f<=c;)a[f].moveBy(s,0),f++;t||(s=0),l+=s}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,i=e*Math.floor(r.height/r.lineHeight);!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(i,0)}):!1===t&&(this.selection.moveCursorBy(i,0),this.selection.clearSelection());var o=n.scrollTop;n.scrollBy(0,i*r.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new g(this.session,n.row,n.column),i=r.getCurrentToken(),o=i||r.stepForward();if(o){var a,s,l=!1,u={},c=n.column-o.start,d={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;c=0;--o)this.$tryReplace(n[o],e)&&r++;return this.selection.setSelectionRange(i),r},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,n,r){n||(n={}),"string"==typeof e||e instanceof RegExp?n.needle=e:"object"==typeof e&&t.mixin(n,e);var i=this.selection.getRange();null==n.needle&&((e=this.session.getTextRange(i)||this.$search.$options.needle)||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(n),n.start||this.$search.set({start:i});var o=this.$search.find(this.session);return n.preventScroll?o:o?(this.revealRange(o,r),o):(n.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var i=this.$scrollAnchor;i.style.cssText="position:absolute",this.container.insertBefore(i,this.container.firstChild);var o=this.on("changeSelection",function(){r=!0}),a=this.renderer.on("beforeRender",function(){r&&(t=n.renderer.container.getBoundingClientRect())}),s=this.renderer.on("afterRender",function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,o=e.$cursorLayer.$pixelPos,a=e.layerConfig,s=o.top-a.offset;null!=(r=o.top>=0&&s+t.top<0||!(o.topwindow.innerHeight)&&null)&&(i.style.top=s+"px",i.style.left=o.left+"px",i.style.height=a.lineHeight+"px",i.scrollIntoView(r)),r=t=null}});this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",a))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,n.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,n){var r=this;m.loadModule("./ext/prompt",function(i){i.prompt(r,e,t,n)})}}.call(b.prototype),m.defineOptions(b.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?y.attach(this):y.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?y.attach(this):y.detach(this)}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var y={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};exports.Editor=b}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(require,exports,e){"use strict";var t=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t,n){this.$fromUndo||e!=this.$lastDelta&&(!1!==t&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev),"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e))},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,r=n.length;r--;){var i=n[r][0];if(i.id<=e)break;i.id0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?o(e):o(this.$undoStack)+"\n---\n"+o(this.$redoStack)}}).call(t.prototype);var n=require("./range").Range,r=n.comparePoints;n.comparePoints;function i(e){return{row:e.row,column:e.column}}function o(e){if(e=e||this,Array.isArray(e))return e.map(o).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(a).join("\n"):a(e.value)),e.start&&(t+=a(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function a(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function s(e,t){var n="insert"==e.action,i="insert"==t.action;if(n&&i)if(r(t.start,e.end)>=0)c(t,e,-1);else{if(!(r(t.start,e.start)<=0))return null;c(e,t,1)}else if(n&&!i)if(r(t.start,e.end)>=0)c(t,e,-1);else{if(!(r(t.end,e.start)<=0))return null;c(e,t,-1)}else if(!n&&i)if(r(t.start,e.start)>=0)c(t,e,1);else{if(!(r(t.start,e.start)<=0))return null;c(e,t,1)}else if(!n&&!i)if(r(t.start,e.start)>=0)c(t,e,1);else{if(!(r(t.end,e.start)<=0))return null;c(e,t,-1)}return[t,e]}function l(e,t){for(var n=e.length;n--;)for(var r=0;r=0?c(e,t,-1):r(e.start,t.start)<=0?c(t,e,1):(c(e,n.fromPoints(t.start,e.start),-1),c(t,e,1));else if(!i&&o)r(t.start,e.end)>=0?c(t,e,-1):r(t.start,e.start)<=0?c(e,t,1):(c(t,n.fromPoints(e.start,t.start),-1),c(e,t,1));else if(!i&&!o)if(r(t.start,e.end)>=0)c(t,e,-1);else{var a,s;if(!(r(t.end,e.start)<=0))return r(e.start,t.start)<0&&(a=e,e=d(e,t.start)),r(e.end,t.end)>0&&(s=d(e,t.end)),f(t.end,e.start,e.end,-1),s&&!a&&(e.lines=s.lines,e.start=s.start,e.end=s.end,s=e),[t,a,s].filter(Boolean);c(e,t,-1)}return[t,e]}function c(e,t,n){f(e.start,t.start,t.end,n),f(e.end,t.start,t.end,n)}function f(e,t,n,r){e.row==(1==r?t:n).row&&(e.column+=r*(n.column-t.column)),e.row+=r*(n.row-t.row)}function d(e,t){var n=e.lines,r=e.end;e.end=i(t);var o=e.end.row-e.start.row,a=n.splice(o,n.length),s=o?t.column:t.column-e.start.column;return n.push(a[0].substring(0,s)),a[0]=a[0].substr(s),{start:i(t),end:r,lines:a,action:e.action}}function p(e,t){t=function(e){return{start:i(e.start),end:i(e.end),action:e.action,lines:e.lines.slice()}}(t);for(var n=e.length;n--;){for(var r=e[n],o=0;oo&&(u=i.end.row+1,o=(i=t.getNextFoldLine(u,i))?i.start.row:1/0),u>r){for(;this.$lines.getLength()>l+1;)this.$lines.pop();break}(a=this.$lines.get(++l))?a.row=u:(a=this.$lines.createCell(u,e,this.session,s),this.$lines.push(a)),this.$renderCell(a,e,i,u),u++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,r=t.$firstLineNumber,i=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(i=t.getLength()+r-1);var o=n?n.getWidth(t,i,e):i.toString().length*e.characterWidth,a=this.$padding||this.$computePadding();(o+=a.left+a.right)===this.gutterWidth||isNaN(o)||(this.gutterWidth=o,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",o))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n=this.$cursorRow){if(r.row>this.$cursorRow){var i=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&i&&i.start.row==t[n-1].row))break;r=t[n-1]}r.element.className="ace_gutter-active-line "+r.element.className,this.$cursorCell=r;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),r=this.oldLastRow;if(this.oldLastRow=n,!t||r0;i--)this.$lines.shift();if(r>n)for(i=this.session.getFoldedRowCount(n+1,r);i>0;i--)this.$lines.pop();e.firstRowr&&this.$lines.push(this.$renderLines(e,r+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){for(var r=[],i=t,o=this.session.getNextFoldLine(i),a=o?o.start.row:1/0;i>a&&(i=o.end.row+1,a=(o=this.session.getNextFoldLine(i,o))?o.start.row:1/0),!(i>n);){var l=this.$lines.createCell(i,e,this.session,s);this.$renderCell(l,e,o,i),r.push(l),i++}return r},this.$renderCell=function(e,n,r,i){var o=e.element,a=this.session,s=o.childNodes[0],l=o.childNodes[1],u=a.$firstLineNumber,c=a.$breakpoints,f=a.$decorations,d=a.gutterRenderer||this.$renderer,p=this.$showFoldWidgets&&a.foldWidgets,h=r?r.start.row:Number.MAX_VALUE,m="ace_gutter-cell ";if(this.$highlightGutterLine&&(i==this.$cursorRow||r&&i=h&&this.$cursorRow<=r.end.row)&&(m+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),c[i]&&(m+=c[i]),f[i]&&(m+=f[i]),this.$annotations[i]&&(m+=this.$annotations[i].className),o.className!=m&&(o.className=m),p){var g=p[i];null==g&&(g=p[i]=a.getFoldWidget(i))}if(g){m="ace_fold-widget ace_"+g;"start"==g&&i==h&&in.right-t.right?"foldWidgets":void 0}}).call(a.prototype),exports.Gutter=a}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(require,exports,e){"use strict";var t=require("../range").Range,n=require("../lib/dom"),r=function(e){this.element=n.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var r=this.markers[n];if(r.range){var i=r.range.clipRows(e.firstRow,e.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),r.renderer){var o=this.$getTop(i.start.row,e),a=this.$padding+i.start.column*e.characterWidth;r.renderer(t,i,a,o,e)}else"fullLine"==r.type?this.drawFullLineMarker(t,i,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,i,r.clazz,e):i.isMultiLine()?"text"==r.type?this.drawTextMarker(t,i,r.clazz,e):this.drawMultiLineMarker(t,i,r.clazz,e):this.drawSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",e)}else r.update(t,this,this.session,e)}if(-1!=this.i)for(;this.id?4:0)|(u==l?8:0)),i,u==l?0:1,o)},this.drawMultiLineMarker=function(e,t,n,r,i){var o=this.$padding,a=r.lineHeight,s=this.$getTop(t.start.row,r),l=o+t.start.column*r.characterWidth;(i=i||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((u=t.clone()).end.row=u.start.row,u.end.column=this.session.getLine(u.start.row).length,this.drawBidiSingleLineMarker(e,u,n+" ace_br1 ace_start",r,null,i)):this.elt(n+" ace_br1 ace_start","height:"+a+"px;right:0;top:"+s+"px;left:"+l+"px;"+(i||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var u;(u=t.clone()).start.row=u.end.row,u.start.column=0,this.drawBidiSingleLineMarker(e,u,n+" ace_br12",r,null,i)}else{s=this.$getTop(t.end.row,r);var c=t.end.column*r.characterWidth;this.elt(n+" ace_br12","height:"+a+"px;width:"+c+"px;top:"+s+"px;left:"+o+"px;"+(i||""))}if(!((a=(t.end.row-t.start.row-1)*r.lineHeight)<=0)){s=this.$getTop(t.start.row+1,r);var f=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(f?" ace_br"+f:""),"height:"+a+"px;right:0;top:"+s+"px;left:"+o+"px;"+(i||""))}},this.drawSingleLineMarker=function(e,t,n,r,i,o){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,r,i,o);var a=r.lineHeight,s=(t.end.column+(i||0)-t.start.column)*r.characterWidth,l=this.$getTop(t.start.row,r),u=this.$padding+t.start.column*r.characterWidth;this.elt(n,"height:"+a+"px;width:"+s+"px;top:"+l+"px;left:"+u+"px;"+(o||""))},this.drawBidiSingleLineMarker=function(e,t,n,r,i,o){var a=r.lineHeight,s=this.$getTop(t.start.row,r),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach(function(e){this.elt(n,"height:"+a+"px;width:"+e.width+(i||0)+"px;top:"+s+"px;left:"+(l+e.left)+"px;"+(o||""))},this)},this.drawFullLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,r)-o),this.elt(n,"height:"+a+"px;top:"+o+"px;left:0;right:0;"+(i||""))},this.drawScreenLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;this.elt(n,"height:"+a+"px;top:"+o+"px;left:0;right:0;"+(i||""))}}).call(r.prototype),exports.Marker=r}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(require,exports,e){"use strict";var t=require("../lib/oop"),n=require("../lib/dom"),r=require("../lib/lang"),i=require("./lines").Lines,o=require("../lib/event_emitter").EventEmitter,a=function(e){this.dom=n,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new i(this.element)};(function(){t.implement(this,o),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;nc&&(s=l.end.row+1,c=(l=this.session.getNextFoldLine(s,l))?l.start.row:1/0),!(s>i);){var f=o[a++];if(f){this.dom.removeChildren(f),this.$renderLine(f,s,s==c&&l);var d=e.lineHeight*this.session.getRowLength(s)+"px";f.style.height!=d&&(u=!0,f.style.height=d)}s++}if(u)for(;a0;i--)this.$lines.shift();if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);i>0;i--)this.$lines.pop();e.firstRowt.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,r){for(var i=[],o=t,a=this.session.getNextFoldLine(o),s=a?a.start.row:1/0;o>s&&(o=a.end.row+1,s=(a=this.session.getNextFoldLine(o,a))?a.start.row:1/0),!(o>r);){var l=this.$lines.createCell(o,e,this.session),u=l.element;this.dom.removeChildren(u),n.setStyle(u.style,"height",this.$lines.computeLineHeight(o,e,this.session)+"px"),n.setStyle(u.style,"top",this.$lines.computeLineTop(o,e,this.session)+"px"),this.$renderLine(u,o,o==s&&a),this.$useLineGroups()?u.className="ace_line_group":u.className="ace_line",i.push(l),o++}return i},this.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var t=e.firstRow,n=e.lastRow,r=this.$lines;r.getLength();)r.pop();r.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,i){for(var o,a=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,s=this.dom.createFragment(this.element),l=0;o=a.exec(i);){var u=o[1],c=o[2],f=o[3],d=o[4],p=o[5];if(this.showInvisibles||!c){var h=l!=o.index?i.slice(l,o.index):"";if(l=o.index+o[0].length,h&&s.appendChild(this.dom.createTextNode(h,this.element)),u){var m=this.session.getScreenTabSize(t+o.index);s.appendChild(this.$tabStrings[m].cloneNode(!0)),t+=m-1}else if(c){if(this.showInvisibles)(v=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",v.textContent=r.stringRepeat(this.SPACE_CHAR,c.length),s.appendChild(v);else s.appendChild(this.com.createTextNode(c,this.element))}else if(f){(v=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",v.textContent=r.stringRepeat(this.SPACE_CHAR,f.length),s.appendChild(v)}else if(d){this.showInvisibles&&this.SPACE_CHAR;t+=1,(v=this.dom.createElement("span")).style.width=2*this.config.characterWidth+"px",v.className=this.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",v.textContent=this.showInvisibles?this.SPACE_CHAR:"",s.appendChild(v)}else if(p){t+=1,(v=this.dom.createElement("span")).style.width=2*this.config.characterWidth+"px",v.className="ace_cjk",v.textContent=p,s.appendChild(v)}}}if(s.appendChild(this.dom.createTextNode(l?i.slice(l):i,this.element)),this.$textToken[n.type])e.appendChild(s);else{var g="ace_"+n.type.replace(/\./g," ace_"),v=this.dom.createElement("span");"fold"==n.type&&(v.style.width=n.value.length*this.config.characterWidth+"px"),v.className=g,v.appendChild(s),e.appendChild(v)}return t+i.length},this.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);if(r<=0||r>=n)return t;if(" "==t[0]){for(var i=(r-=r%this.tabSize)/this.tabSize,o=0;o=a;)s=this.$renderToken(l,s,c,f.substring(0,a-i)),f=f.substring(a-i),i=a,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(r.stringRepeat(" ",n.indent),this.element)),s=0,a=n[++o]||Number.MAX_VALUE;0!=f.length&&(i+=f.length,s=this.$renderToken(l,s,c,f))}}},this.$renderSimpleLine=function(e,t){var n=0,r=t[0],i=r.value;this.displayIndentGuides&&(i=this.renderIndentGuide(e,i)),i&&(n=this.$renderToken(e,n,r,i));for(var o=1;othis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,r,i);n=this.$renderToken(e,n,r,i)}},this.$renderOverflowMessage=function(e,t,n,r){this.$renderToken(e,t,n,r.slice(0,this.MAX_LINE_LENGTH-t));var i=this.dom.createElement("span");i.className="ace_inline_button ace_keyword ace_toggle_wrap",i.style.position="absolute",i.style.right="0",i.textContent="",e.appendChild(i)},this.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var r=this.$getFoldLineTokens(t,n);else r=this.session.getTokens(t);var i=e;if(r.length){var o=this.session.getRowSplitData(t);if(o&&o.length){this.$renderWrappedLine(e,r,o);i=e.lastChild}else{i=e;this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i)),this.$renderSimpleLine(i,r)}}else this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i));if(this.showInvisibles&&i){n&&(t=n.end.row);var a=this.dom.createElement("span");a.className="ace_invisible ace_invisible_eol",a.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,i.appendChild(a)}},this.$getFoldLineTokens=function(e,t){var n=this.session,r=[];var i=n.getTokens(e);return t.walk(function(e,t,o,a,s){null!=e?r.push({type:"fold",value:e}):(s&&(i=n.getTokens(t)),i.length&&function(e,t,n){for(var i=0,o=0;o+e[i].value.lengthn-t&&(a=a.substring(0,n-t)),r.push({type:e[i].type,value:a}),o=t+a.length,i+=1);on?r.push({type:e[i].type,value:a.substring(0,n-o)}):r.push(e[i]),o+=a.length,i+=1}}(i,a,o))},t.end.row,this.session.getLine(t.end.row).length),r},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(a.prototype),exports.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(require,exports,e){"use strict";var t=require("../lib/dom"),n=function(e){this.element=t.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),t.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var n=this.cursors,r=n.length;r--;)t.setStyle(n[r].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,n=e.length;n--;)e[n].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){t.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){t.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,t.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=t.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,t.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,t.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&t.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&setTimeout(function(){t.addCssClass(this.element,"ace_smooth-blinking")}.bind(this)),t.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var n=function(){this.timeoutId=setTimeout(function(){e(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){e(!0),n()},this.blinkInterval),n()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(e,t){return e.top>=0&&e.tope.height+e.offset||a.top<0)&&r>1)){var s=this.cursors[i++]||this.addCursor(),l=s.style;this.drawCursor?this.drawCursor(s,a,e,n[r],this.session):this.isCursorInView(a,e)?(t.setStyle(l,"display","block"),t.translate(s,a.left,a.top),t.setStyle(l,"width",Math.round(e.characterWidth)+"px"),t.setStyle(l,"height",e.lineHeight+"px")):t.setStyle(l,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var u=this.session.getOverwrite();this.$setOverwrite(u),this.$pixelPos=a,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?t.addCssClass(this.element,"ace_overwrite-cursors"):t.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(n.prototype),exports.Cursor=n}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(require,exports,e){"use strict";var t=require("./lib/oop"),n=require("./lib/dom"),r=require("./lib/event"),i=require("./lib/event_emitter").EventEmitter,o=function(e){this.element=n.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=n.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,r.addListener(this.element,"scroll",this.onScroll.bind(this)),r.addListener(this.element,"mousedown",r.preventDefault)};(function(){t.implement(this,i),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(o.prototype);var a=function(e,t){o.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=n.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};t.inherits(a,o),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>32768?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(a.prototype);var s=function(e,t){o.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};t.inherits(s,o),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(s.prototype),exports.ScrollBar=a,exports.ScrollBarV=a,exports.ScrollBarH=s,exports.VScrollBar=a,exports.HScrollBar=s}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(require,exports,e){"use strict";var t=require("./lib/event"),n=function(e,n){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=n||window;var r=this;this._flush=function(e){r.pending=!1;var n=r.changes;if(n&&(t.blockIdle(100),r.changes=0,r.onRender(n)),r.changes){if(r.$recursionLimit--<0)return;r.schedule()}else r.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(t.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(n.prototype),exports.RenderLoop=n}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(require,exports,e){var t=require("../lib/oop"),n=require("../lib/dom"),r=require("../lib/lang"),i=require("../lib/event"),o=require("../lib/useragent"),a=require("../lib/event_emitter").EventEmitter,s="function"==typeof ResizeObserver,l=200,u=exports.FontMetrics=function(e){this.el=n.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=n.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=n.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.innerHTML=r.stringRepeat("X",256),this.$characterSize={width:0,height:0},s?this.$addObserver():this.checkForSizeChanges()};(function(){t.implement(this,a),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",o.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver(function(t){var n=t[0].contentRect;e.checkForSizeChanges({height:n.height,width:n.width/256})}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=i.onIdle(function t(){e.checkForSizeChanges(),i.onIdle(t,500)},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/256};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.innerHTML=r.stringRepeat(e,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=n.buildDom([e(0,0),e(l,0),e(0,l),e(l,l)],this.el)},this.transformCoordinates=function(e,t){e&&(e=o(1/this.$getZoom(this.el),e));function n(e,t,n){var r=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/r,(+e[1]*n[0]-e[0]*n[1])/r]}function r(e,t){return[e[0]-t[0],e[1]-t[1]]}function i(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e*t[0],e*t[1]]}function a(e){var t=e.getBoundingClientRect();return[t.left,t.top]}this.els||this.$initTransformMeasureNodes();var s=a(this.els[0]),u=a(this.els[1]),c=a(this.els[2]),f=a(this.els[3]),d=n(r(f,u),r(f,c),r(i(u,c),i(f,s))),p=o(1+d[0],r(u,s)),h=o(1+d[1],r(c,s));if(t){var m=t,g=d[0]*m[0]/l+d[1]*m[1]/l+1,v=i(o(m[0],p),o(m[1],h));return i(o(1/g/l,v),s)}var b=r(e,s),y=n(r(p,o(d[0],b)),r(h,o(d[1],b)),b);return o(l,y)}}).call(u.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(require,exports,e){"use strict";var t=require("./lib/oop"),n=require("./lib/dom"),r=require("./config"),i=require("./layer/gutter").Gutter,o=require("./layer/marker").Marker,a=require("./layer/text").Text,s=require("./layer/cursor").Cursor,l=require("./scrollbar").HScrollBar,u=require("./scrollbar").VScrollBar,c=require("./renderloop").RenderLoop,f=require("./layer/font_metrics").FontMetrics,d=require("./lib/event_emitter").EventEmitter,p='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;perspective: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}',h=require("./lib/useragent"),m=h.isIE;n.importCssString(p,"ace_editor.css");var g=function(e,t){var d=this;this.container=e||n.createElement("div"),n.addCssClass(this.container,"ace_editor"),n.HI_DPI&&n.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),this.$gutter=n.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=n.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=n.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new i(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var p=this.$textLayer=new a(this.content);this.canvas=p.element,this.$markerFront=new o(this.content),this.$cursorLayer=new s(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new u(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.addEventListener("scroll",function(e){d.$scrollAnimation||d.session.setScrollTop(e.data-d.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(e){d.$scrollAnimation||d.session.setScrollLeft(e.data-d.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new f(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",function(e){d.updateCharacterSize(),d.onResize(!0,d.gutterWidth,d.$size.width,d.$size.height),d._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!h.isIOS,this.$loop=new c(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),r.resetOptions(this),r._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,t.implement(this,d),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,r){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var i=this.container;r||(r=i.clientHeight||i.scrollHeight),n||(n=i.clientWidth||i.scrollWidth);var o=this.$updateCachedSize(e,t,n,r);if(!this.$size.scrollerHeight||!n&&!r)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,r,i){i-=this.$extraHeight||0;var o=0,a=this.$size,s={width:a.width,height:a.height,scrollerHeight:a.scrollerHeight,scrollerWidth:a.scrollerWidth};if(i&&(e||a.height!=i)&&(a.height=i,o|=this.CHANGE_SIZE,a.scrollerHeight=a.height,this.$horizScroll&&(a.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),r&&(e||a.width!=r)){o|=this.CHANGE_SIZE,a.width=r,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,n.setStyle(this.scrollBarH.element.style,"left",t+"px"),n.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),a.scrollerWidth=Math.max(0,r-t-this.scrollBarV.getWidth()-this.margin.h),n.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";n.setStyle(this.scrollBarH.element.style,"right",l),n.setStyle(this.scroller.style,"right",l),n.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(o|=this.CHANGE_FULL)}return a.$dirty=!r||!i,o&&this._signal("resize",s),o},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=n.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=n.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){var e=this.textarea.style;if(this.$keepTextAreaAtCursor){var t=this.$cursorLayer.$pixelPos;if(t){var r=this.$composition;r&&r.markerRange&&(t=this.$cursorLayer.getPixelPosition(r.markerRange.start,!0));var i=this.layerConfig,o=t.top,a=t.left;o-=i.offset;var s=r&&r.useTextareaForIME?this.lineHeight:m?0:1;if(o<0||o>i.height-s)n.translate(this.textarea,0,0);else{var l=1;if(r)if(r.useTextareaForIME){var u=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(u)[0],s+=2}else o+=this.lineHeight+2;else o+=this.lineHeight;(a-=this.scrollLeft)>this.$size.scrollerWidth-l&&(a=this.$size.scrollerWidth-l),a+=this.gutterWidth+this.margin.left,n.setStyle(e,"height",s+"px"),n.setStyle(e,"width",l+"px"),n.translate(this.textarea,Math.min(a,this.$size.scrollerWidth-l),Math.min(o,this.$size.height-s))}}}else n.translate(this.textarea,-100,0)},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,r){var i=this.scrollMargin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,i.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-i.top),this.updateFull()},this.setMargin=function(e,t,n,r){var i=this.margin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var r=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),r.firstRow!=this.layerConfig.firstRow&&r.firstRowScreen==this.layerConfig.firstRowScreen){var i=this.scrollTop+(r.firstRow-this.layerConfig.firstRow)*this.lineHeight;i>0&&(this.scrollTop=i,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}r=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),n.translate(this.content,-this.scrollLeft,-r.offset);var o=r.width+2*this.$padding+"px",a=r.minHeight+"px";n.setStyle(this.content.style,"width",o),n.setStyle(this.content.style,"height",a)}if(e&this.CHANGE_H_SCROLL&&(n.translate(this.content,-this.scrollLeft,-r.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$textLayer.update(r),this.$showGutter&&this.$gutterLayer.update(r),this.$markerBack.update(r),this.$markerFront.update(r),this.$cursorLayer.update(r),this.$moveTextAreaToCursor(),void this._signal("afterRender");if(e&this.CHANGE_SCROLL)return e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(r):this.$textLayer.scrollLines(r),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(r):this.$gutterLayer.scrollLines(r)),this.$markerBack.update(r),this.$markerFront.update(r),this.$cursorLayer.update(r),this.$moveTextAreaToCursor(),void this._signal("afterRender");e&this.CHANGE_TEXT?(this.$textLayer.update(r),this.$showGutter&&this.$gutterLayer.update(r)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(r):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(r):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(r),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(r),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(r),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(r),this._signal("afterRender")}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var r=!(n<=2*this.lineHeight)&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||r!=this.$vScroll){r!=this.$vScroll&&(this.$vScroll=r,this.scrollBarV.setVisible(r));var i=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,i,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,r=this.session.getScreenLength()*this.lineHeight,i=this.$getLongestLine(),o=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-i-2*this.$padding<0),a=this.$horizScroll!==o;a&&(this.$horizScroll=o,this.scrollBarH.setVisible(o));var s=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var l=t.scrollerHeight+this.lineHeight,u=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;r+=u;var c=this.scrollMargin;this.session.setScrollTop(Math.max(-c.top,Math.min(this.scrollTop,r-t.scrollerHeight+c.bottom))),this.session.setScrollLeft(Math.max(-c.left,Math.min(this.scrollLeft,i+2*this.$padding-t.scrollerWidth+c.right)));var f=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-r+u<0||this.scrollTop>c.top),d=s!==f;d&&(this.$vScroll=f,this.scrollBarV.setVisible(f));var p,h,m=this.scrollTop%this.lineHeight,g=Math.ceil(l/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-m)/this.lineHeight)),b=v+g,y=this.lineHeight;v=e.screenToDocumentRow(v,0);var w=e.getFoldLine(v);w&&(v=w.start.row),p=e.documentToScreenRow(v,0),h=e.getRowLength(v)*y,b=Math.min(e.screenToDocumentRow(b,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(b)*y+h,m=this.scrollTop-p*y;var _=0;return(this.layerConfig.width!=i||a)&&(_=this.CHANGE_H_SCROLL),(a||d)&&(_|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),d&&(i=this.$getLongestLine())),this.layerConfig={width:i,padding:this.$padding,firstRow:v,firstRowScreen:p,lastRow:b,lineHeight:y,characterWidth:this.characterWidth,minHeight:l,maxHeight:r,offset:m,gutterOffset:y?Math.max(0,Math.ceil((m+t.height-t.scrollerHeight)/y)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(i-this.$padding),_},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||tthis.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var r=this.$cursorLayer.getPixelPosition(e),i=r.left,o=r.top,a=n&&n.top||0,s=n&&n.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+a>o?(t&&l+a>o+this.lineHeight&&(o-=t*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):l+this.$size.scrollerHeight-si?(i=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,o=i/this.characterWidth,a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),s=this.$blockCursor?Math.floor(o):Math.round(o);return{row:a,column:s,side:o-s>0?1:-1,offsetX:i}},this.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,o=i/this.characterWidth,a=this.$blockCursor?Math.floor(o):Math.round(o),s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(s,Math.max(a,0),i)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(e,t),i=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,e)?this.session.$bidiHandler.getPosLeft(r.column):Math.round(r.column*this.characterWidth)),o=r.row*this.lineHeight;return{pageX:n.left+i-this.scrollLeft,pageY:n.top+o-this.scrollTop}},this.visualizeFocus=function(){n.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){n.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText,e.keepTextAreaAtCursor=this.$keepTextAreaAtCursor),e.useTextareaForIME=this.$useTextareaForIME,this.$useTextareaForIME?(this.$keepTextAreaAtCursor=!0,n.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),n.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null,this.$cursorLayer.element.style.display="")},this.addToken=function(e,t,n,r){var i=this.session;i.bgTokenizer.lines[n]=null;var o={type:t,value:e},a=i.getTokens(n);if(null==r)a.push(o);else for(var s=0,l=0;l50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(a.prototype);exports.UIWorkerClient=function(e,t,n){var o=null,s=!1,l=Object.create(r),u=[],c=new a({messageBuffer:u,terminate:function(){},postMessage:function(e){u.push(e),o&&(s?setTimeout(f):f())}});c.setEmitSync=function(e){s=e};var f=function(){var e=u.shift();e.command?o[e.command].apply(o,e.args):e.event&&l._signal(e.event,e.data)};return l.postMessage=function(e){c.onMessage({data:e})},l.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},l.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},i.loadModule(["worker",t],function(e){for(o=new e[n](l);u.length;)f()}),c},exports.WorkerClient=a,exports.createWorker=o}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(require,exports,e){"use strict";var t=require("./range").Range,n=require("./lib/event_emitter").EventEmitter,r=require("./lib/oop"),i=function(e,t,n,r,i,o){var a=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=i,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=r,this.$onCursorChange=function(){setTimeout(function(){a.onCursorChange()})},this.$pos=n;var s=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){r.implement(this,n),this.setup=function(){var e=this,n=this.doc,r=this.session;this.selectionBefore=r.selection.toJSON(),r.selection.inMultiSelectMode&&r.selection.toSingleRange(),this.pos=n.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=r.addMarker(new t(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(t){var r=n.createAnchor(t.row,t.column);r.$insertRight=!0,r.detach(),e.others.push(r)}),r.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,n=this;this.othersActive=!0,this.others.forEach(function(r){r.markerId=e.addMarker(new t(r.row,r.column,r.row,r.column+n.length),n.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&n.start.column<=this.pos.column+this.length+1,o=n.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=r),i&&!this.session.$fromUndo)if("insert"===e.action)for(var a=this.others.length-1;a>=0;a--){var s={row:(l=this.others[a]).row,column:l.column+o};this.doc.insertMergedLines(s,e.lines)}else if("remove"===e.action)for(a=this.others.length-1;a>=0;a--){var l;s={row:(l=this.others[a]).row,column:l.column+o};this.doc.remove(new t(s.row,s.column,s.row,s.column-r))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,n=this.session,r=function(r,i){n.removeMarker(r.markerId),r.markerId=n.addMarker(new t(r.row,r.column,r.row,r.column+e.length),i,null,!1)};r(this.pos,this.mainClass);for(var i=this.others.length;i--;)r(this.others[i],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var r=this.ranges.indexOf(e[n]);this.ranges.splice(r,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new t,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],r=n.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(r,t.cursor==t.start)}else{r=this.getRange();var i=this.isBackwards(),o=r.start.row,a=r.end.row;if(o==a){if(i)var s=r.end,l=r.start;else s=r.start,l=r.end;return this.addRange(n.fromPoints(l,l)),void this.addRange(n.fromPoints(s,s))}var u=[],c=this.getLineRange(o,!0);c.start.column=r.start.column,u.push(c);for(var f=o+1;f1){var e=this.rangeList.ranges,t=e[e.length-1],r=n.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(r,t.cursor==t.start)}else{var i=this.session.documentToScreenPosition(this.cursor),o=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(i,o).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,r){var i=[],o=e.column0;)b--;if(b>0)for(var y=0;i[y].isEmpty();)y++;for(var w=b;w>=y;w--)i[w].isEmpty()&&i.splice(w,1)}return i}}.call(r.prototype);var c=require("./editor").Editor;function f(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=exports.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",i),e.commands.addCommands(s.defaultCommands),function(e){var t=e.textInput.getElement(),n=!1;function r(t){n&&(e.renderer.setMouseCursor(""),n=!1)}o.addListener(t,"keydown",function(t){var i=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&i?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&r()}),o.addListener(t,"keyup",r),o.addListener(t,"blur",r)}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var r=e[n];if(r.marker){this.session.removeMarker(r.marker);var i=t.indexOf(r);-1!=i&&t.splice(i,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(s.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(s.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?r=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?r=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),r=t.exec(n,e.args||{})):r=t.multiSelectAction(n,e.args||{});else{var r=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return r}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,o=n&&n.keepOrder,a=1==n||n&&n.$byLines,s=this.session,l=this.selection,u=l.rangeList,c=(o?l:u).ranges;if(!c.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var f=l._eventRegistry;l._eventRegistry={};var d=new r(s);this.inVirtualSelectionMode=!0;for(var p=c.length;p--;){if(a)for(;p>0&&c[p].start.row==c[p-1].end.row;)p--;d.fromOrientedRange(c[p]),d.index=p,this.selection=s.selection=d;var h=e.exec?e.exec(this,t||{}):e(this,t||{});i||void 0===h||(i=h),d.toOrientedRange(c[p])}d.detach(),this.selection=s.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=f,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var m=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),m&&m.from==m.to&&this.renderer.animateScrolling(m.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],r=0;rs&&(s=n.column),rc?e.insert(i,a.stringRepeat(" ",o-c)):e.remove(new n(i.row,i.column,i.row,i.column-o+c)),t.start.column=t.end.column=s,t.start.row=t.end.row=i.row,t.cursor=t.end}),t.fromOrientedRange(r[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var c=this.selection.getRange(),f=c.start.row,d=c.end.row,p=f==d;if(p){var h,m=this.session.getLength();do{h=this.session.getLine(d)}while(/[=:]/.test(h)&&++d0);f<0&&(f=0),d>=m&&(d=m-1)}var g=this.session.removeFullLines(f,d);g=this.$reAlignText(g,p),this.session.insert({row:f,column:0},g.join("\n")+"\n"),p||(c.start.column=0,c.end.column=g[g.length-1].length),this.selection.setRange(c)}},this.$reAlignText=function(e,t){var n,r,i,o=!0,s=!0;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,r=t[2].length,i=t[3].length,t):(n+r+i!=t[1].length+t[2].length+t[3].length&&(s=!1),n!=t[1].length&&(o=!1),n>t[1].length&&(n=t[1].length),rt[3].length&&(i=t[3].length),t):[e]}).map(t?u:o?s?function(e){return e[2]?l(n+r-e[2].length)+e[2]+l(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:u:function(e){return e[2]?l(n)+e[2]+l(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function l(e){return a.stringRepeat(" ",e)}function u(e){return e[2]?l(n)+e[2]+l(r-e[2].length+i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(c.prototype),exports.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},exports.MultiSelect=f,require("./config").defineOptions(c.prototype,"editor",{enableMultiselect:{set:function(e){f(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",i)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",i))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(require,exports,e){"use strict";var t=require("../../range").Range,n=exports.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,n,r){var i=/\S/,o=e.getLine(n),a=o.search(i);if(-1!=a){for(var s=r||o.length,l=e.getLength(),u=n,c=n;++nu){var d=e.getLine(c).length;return new t(u,s,c,d)}}},this.openingBracketBlock=function(e,n,r,i,o){var a={row:r,column:i+1},s=e.$findClosingBracket(n,a,o);if(s){var l=e.foldWidgets[s.row];return null==l&&(l=e.getFoldWidget(s.row)),"start"==l&&s.row>a.row&&(s.row--,s.column=e.getLine(s.row).length),t.fromPoints(a,s)}},this.closingBracketBlock=function(e,n,r,i,o){var a={row:r,column:i},s=e.$findOpeningBracket(n,a);if(s)return s.column++,a.column--,t.fromPoints(s,a)}}).call(n.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(require,exports,e){"use strict";exports.isDark=!1,exports.cssClass="ace-tm",exports.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',exports.$id="ace/theme/textmate",require("../lib/dom").importCssString(exports.cssText,exports.cssClass)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],function(require,exports,e){"use strict";require("./lib/oop");var t=require("./lib/dom");require("./range").Range;function n(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach(function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)}),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var r=e.data,i=r.start.row,o=r.end.row,a="add"==e.action,s=i+1;s0&&!r[i];)i--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var a=i;a<=o;a++){var s=r[a];if(s&&s.el)if(s.hidden)s.el.style.top=-100-(s.pixelHeight||0)+"px";else{s._inDocument||(s._inDocument=!0,t.container.appendChild(s.el));var l=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;s.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=l-n.offset+"px";var u=s.coverGutter?0:t.gutterWidth;s.fixedWidth||(u-=t.scrollLeft),s.el.style.left=u+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=n.width+2*n.padding+"px"),s.fixedWidth?s.el.style.right=t.scrollBar.getWidth()+"px":s.el.style.right=""}}}}}).call(n.prototype),exports.LineWidgets=n}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(require,exports,e){"use strict";var t=require("../line_widgets").LineWidgets,n=require("../lib/dom"),r=require("../range").Range;exports.showErrorMarker=function(e,i){var o=e.session;o.widgetManager||(o.widgetManager=new t(o),o.widgetManager.attach(e));var a=e.getCursorPosition(),s=a.row,l=o.widgetManager.getWidgetsAtRow(s).filter(function(e){return"errorMarker"==e.type})[0];l?l.destroy():s-=i;var u,c=function(e,t,n){var i=e.getAnnotations().sort(r.comparePoints);if(i.length){var o=function(e,t,n){for(var r=0,i=e.length-1;r<=i;){var o=r+i>>1,a=n(t,e[o]);if(a>0)r=o+1;else{if(!(a<0))return o;i=o-1}}return-(r+1)}(i,{row:t,column:-1},r.comparePoints);o<0&&(o=-o-1),o>=i.length?o=n>0?0:i.length-1:0===o&&n<0&&(o=i.length-1);var a=i[o];if(a&&n){if(a.row===t){do{a=i[o+=n]}while(a&&a.row===t);if(!a)return i.slice()}var s=[];t=a.row;do{s[n<0?"unshift":"push"](a),a=i[o+=n]}while(a&&a.row==t);return s.length&&s}}}(o,s,i);if(c){var f=c[0];a.column=(f.pos&&"number"!=typeof f.column?f.pos.sc:f.column)||0,a.row=f.row,u=e.renderer.$gutterLayer.$annotations[a.row]}else{if(l)return;u={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(a.row),e.selection.moveToPosition(a);var d={row:a.row,fixedWidth:!0,coverGutter:!0,el:n.createElement("div"),type:"errorMarker"},p=d.el.appendChild(n.createElement("div")),h=d.el.appendChild(n.createElement("div"));h.className="error_widget_arrow "+u.className;var m=e.renderer.$cursorLayer.getPixelPosition(a).left;h.style.left=m+e.renderer.gutterWidth-5+"px",d.el.className="error_widget_wrapper",p.className="error_widget "+u.className,p.innerHTML=u.text.join("
"),p.appendChild(n.createElement("div"));var g=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return d.destroy(),{command:"null"}};d.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(g),o.widgetManager.removeLineWidget(d),e.off("changeSelection",d.destroy),e.off("changeSession",d.destroy),e.off("mouseup",d.destroy),e.off("change",d.destroy))},e.keyBinding.addKeyboardHandler(g),e.on("changeSelection",d.destroy),e.on("changeSession",d.destroy),e.on("mouseup",d.destroy),e.on("change",d.destroy),e.session.widgetManager.addLineWidget(d),d.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:d.el.offsetHeight})},n.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(require,exports,e){"use strict";require("./lib/fixoldbrowsers");var n=require("./lib/dom"),r=require("./lib/event"),i=require("./range").Range,o=require("./editor").Editor,a=require("./edit_session").EditSession,s=require("./undomanager").UndoManager,l=require("./virtual_renderer").VirtualRenderer;require("./worker/worker_client"),require("./keyboard/hash_handler"),require("./placeholder"),require("./multi_select"),require("./mode/folding/fold_mode"),require("./theme/textmate"),require("./ext/error_marker"),exports.config=require("./config"),exports.require=require,exports.define=t("MNGAHOYH"),exports.edit=function(e,t){if("string"==typeof e){var i=e;if(!(e=document.getElementById(i)))throw new Error("ace.edit can't find div #"+i)}if(e&&e.env&&e.env.editor instanceof o)return e.env.editor;var a="";if(e&&/input|textarea/i.test(e.tagName)){var s=e;a=s.value,e=n.createElement("pre"),s.parentNode.replaceChild(e,s)}else e&&(a=e.textContent,e.innerHTML="");var u=exports.createEditSession(a),c=new o(new l(e),u,t),f={document:u,editor:c,onResize:c.resize.bind(c,null)};return s&&(f.textarea=s),r.addListener(window,"resize",f.onResize),c.on("destroy",function(){r.removeListener(window,"resize",f.onResize),f.editor.container.env=null}),c.container.env=c.env=f,c},exports.createEditSession=function(e,t){var n=new a(e,t);return n.setUndoManager(new s),n},exports.Range=i,exports.Editor=o,exports.EditSession=a,exports.UndoManager=s,exports.VirtualRenderer=l,exports.version="1.4.4"}),ace.require(["ace/ace"],function(t){for(var n in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(n)&&(window.ace[n]=t[n]);window.ace.default=window.ace,e&&(e.exports=window.ace)})}).call(this,t("9YbPW59L")(e))},rMVFYw76:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ii0bleBb")),r=o(t("ivGQtwpr")),i=o(t("kEiyTVQL"));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n0&&o(c)?i>1?e(c,i-1,o,a,s):n(s,c):a||(s[s.length]=c)}return s}},rZc0UIEO:function(e,exports,t){var n=t("q0qK9moz");(e.exports=t("MAMP9hQI")(!1)).push([e.i,"/*!\n * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome\n * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */@font-face{font-family:FontAwesome;src:url("+n(t("OTxH4Ayd"))+");src:url("+n(t("iHmf1uM0"))+'?#iefix&v=4.7.0) format("embedded-opentype"),url('+n(t("idX3t5+b"))+') format("woff2"),url('+n(t("6ZbkxlDS"))+') format("woff"),url('+n(t("gnVokHG/"))+') format("truetype"),url('+n(t("5mQk2bhZ"))+'#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scaleY(-1);-ms-transform:scaleY(-1);transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\\F000"}.fa-music:before{content:"\\F001"}.fa-search:before{content:"\\F002"}.fa-envelope-o:before{content:"\\F003"}.fa-heart:before{content:"\\F004"}.fa-star:before{content:"\\F005"}.fa-star-o:before{content:"\\F006"}.fa-user:before{content:"\\F007"}.fa-film:before{content:"\\F008"}.fa-th-large:before{content:"\\F009"}.fa-th:before{content:"\\F00A"}.fa-th-list:before{content:"\\F00B"}.fa-check:before{content:"\\F00C"}.fa-close:before,.fa-remove:before,.fa-times:before{content:"\\F00D"}.fa-search-plus:before{content:"\\F00E"}.fa-search-minus:before{content:"\\F010"}.fa-power-off:before{content:"\\F011"}.fa-signal:before{content:"\\F012"}.fa-cog:before,.fa-gear:before{content:"\\F013"}.fa-trash-o:before{content:"\\F014"}.fa-home:before{content:"\\F015"}.fa-file-o:before{content:"\\F016"}.fa-clock-o:before{content:"\\F017"}.fa-road:before{content:"\\F018"}.fa-download:before{content:"\\F019"}.fa-arrow-circle-o-down:before{content:"\\F01A"}.fa-arrow-circle-o-up:before{content:"\\F01B"}.fa-inbox:before{content:"\\F01C"}.fa-play-circle-o:before{content:"\\F01D"}.fa-repeat:before,.fa-rotate-right:before{content:"\\F01E"}.fa-refresh:before{content:"\\F021"}.fa-list-alt:before{content:"\\F022"}.fa-lock:before{content:"\\F023"}.fa-flag:before{content:"\\F024"}.fa-headphones:before{content:"\\F025"}.fa-volume-off:before{content:"\\F026"}.fa-volume-down:before{content:"\\F027"}.fa-volume-up:before{content:"\\F028"}.fa-qrcode:before{content:"\\F029"}.fa-barcode:before{content:"\\F02A"}.fa-tag:before{content:"\\F02B"}.fa-tags:before{content:"\\F02C"}.fa-book:before{content:"\\F02D"}.fa-bookmark:before{content:"\\F02E"}.fa-print:before{content:"\\F02F"}.fa-camera:before{content:"\\F030"}.fa-font:before{content:"\\F031"}.fa-bold:before{content:"\\F032"}.fa-italic:before{content:"\\F033"}.fa-text-height:before{content:"\\F034"}.fa-text-width:before{content:"\\F035"}.fa-align-left:before{content:"\\F036"}.fa-align-center:before{content:"\\F037"}.fa-align-right:before{content:"\\F038"}.fa-align-justify:before{content:"\\F039"}.fa-list:before{content:"\\F03A"}.fa-dedent:before,.fa-outdent:before{content:"\\F03B"}.fa-indent:before{content:"\\F03C"}.fa-video-camera:before{content:"\\F03D"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:"\\F03E"}.fa-pencil:before{content:"\\F040"}.fa-map-marker:before{content:"\\F041"}.fa-adjust:before{content:"\\F042"}.fa-tint:before{content:"\\F043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\\F044"}.fa-share-square-o:before{content:"\\F045"}.fa-check-square-o:before{content:"\\F046"}.fa-arrows:before{content:"\\F047"}.fa-step-backward:before{content:"\\F048"}.fa-fast-backward:before{content:"\\F049"}.fa-backward:before{content:"\\F04A"}.fa-play:before{content:"\\F04B"}.fa-pause:before{content:"\\F04C"}.fa-stop:before{content:"\\F04D"}.fa-forward:before{content:"\\F04E"}.fa-fast-forward:before{content:"\\F050"}.fa-step-forward:before{content:"\\F051"}.fa-eject:before{content:"\\F052"}.fa-chevron-left:before{content:"\\F053"}.fa-chevron-right:before{content:"\\F054"}.fa-plus-circle:before{content:"\\F055"}.fa-minus-circle:before{content:"\\F056"}.fa-times-circle:before{content:"\\F057"}.fa-check-circle:before{content:"\\F058"}.fa-question-circle:before{content:"\\F059"}.fa-info-circle:before{content:"\\F05A"}.fa-crosshairs:before{content:"\\F05B"}.fa-times-circle-o:before{content:"\\F05C"}.fa-check-circle-o:before{content:"\\F05D"}.fa-ban:before{content:"\\F05E"}.fa-arrow-left:before{content:"\\F060"}.fa-arrow-right:before{content:"\\F061"}.fa-arrow-up:before{content:"\\F062"}.fa-arrow-down:before{content:"\\F063"}.fa-mail-forward:before,.fa-share:before{content:"\\F064"}.fa-expand:before{content:"\\F065"}.fa-compress:before{content:"\\F066"}.fa-plus:before{content:"\\F067"}.fa-minus:before{content:"\\F068"}.fa-asterisk:before{content:"\\F069"}.fa-exclamation-circle:before{content:"\\F06A"}.fa-gift:before{content:"\\F06B"}.fa-leaf:before{content:"\\F06C"}.fa-fire:before{content:"\\F06D"}.fa-eye:before{content:"\\F06E"}.fa-eye-slash:before{content:"\\F070"}.fa-exclamation-triangle:before,.fa-warning:before{content:"\\F071"}.fa-plane:before{content:"\\F072"}.fa-calendar:before{content:"\\F073"}.fa-random:before{content:"\\F074"}.fa-comment:before{content:"\\F075"}.fa-magnet:before{content:"\\F076"}.fa-chevron-up:before{content:"\\F077"}.fa-chevron-down:before{content:"\\F078"}.fa-retweet:before{content:"\\F079"}.fa-shopping-cart:before{content:"\\F07A"}.fa-folder:before{content:"\\F07B"}.fa-folder-open:before{content:"\\F07C"}.fa-arrows-v:before{content:"\\F07D"}.fa-arrows-h:before{content:"\\F07E"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\\F080"}.fa-twitter-square:before{content:"\\F081"}.fa-facebook-square:before{content:"\\F082"}.fa-camera-retro:before{content:"\\F083"}.fa-key:before{content:"\\F084"}.fa-cogs:before,.fa-gears:before{content:"\\F085"}.fa-comments:before{content:"\\F086"}.fa-thumbs-o-up:before{content:"\\F087"}.fa-thumbs-o-down:before{content:"\\F088"}.fa-star-half:before{content:"\\F089"}.fa-heart-o:before{content:"\\F08A"}.fa-sign-out:before{content:"\\F08B"}.fa-linkedin-square:before{content:"\\F08C"}.fa-thumb-tack:before{content:"\\F08D"}.fa-external-link:before{content:"\\F08E"}.fa-sign-in:before{content:"\\F090"}.fa-trophy:before{content:"\\F091"}.fa-github-square:before{content:"\\F092"}.fa-upload:before{content:"\\F093"}.fa-lemon-o:before{content:"\\F094"}.fa-phone:before{content:"\\F095"}.fa-square-o:before{content:"\\F096"}.fa-bookmark-o:before{content:"\\F097"}.fa-phone-square:before{content:"\\F098"}.fa-twitter:before{content:"\\F099"}.fa-facebook-f:before,.fa-facebook:before{content:"\\F09A"}.fa-github:before{content:"\\F09B"}.fa-unlock:before{content:"\\F09C"}.fa-credit-card:before{content:"\\F09D"}.fa-feed:before,.fa-rss:before{content:"\\F09E"}.fa-hdd-o:before{content:"\\F0A0"}.fa-bullhorn:before{content:"\\F0A1"}.fa-bell:before{content:"\\F0F3"}.fa-certificate:before{content:"\\F0A3"}.fa-hand-o-right:before{content:"\\F0A4"}.fa-hand-o-left:before{content:"\\F0A5"}.fa-hand-o-up:before{content:"\\F0A6"}.fa-hand-o-down:before{content:"\\F0A7"}.fa-arrow-circle-left:before{content:"\\F0A8"}.fa-arrow-circle-right:before{content:"\\F0A9"}.fa-arrow-circle-up:before{content:"\\F0AA"}.fa-arrow-circle-down:before{content:"\\F0AB"}.fa-globe:before{content:"\\F0AC"}.fa-wrench:before{content:"\\F0AD"}.fa-tasks:before{content:"\\F0AE"}.fa-filter:before{content:"\\F0B0"}.fa-briefcase:before{content:"\\F0B1"}.fa-arrows-alt:before{content:"\\F0B2"}.fa-group:before,.fa-users:before{content:"\\F0C0"}.fa-chain:before,.fa-link:before{content:"\\F0C1"}.fa-cloud:before{content:"\\F0C2"}.fa-flask:before{content:"\\F0C3"}.fa-cut:before,.fa-scissors:before{content:"\\F0C4"}.fa-copy:before,.fa-files-o:before{content:"\\F0C5"}.fa-paperclip:before{content:"\\F0C6"}.fa-floppy-o:before,.fa-save:before{content:"\\F0C7"}.fa-square:before{content:"\\F0C8"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:"\\F0C9"}.fa-list-ul:before{content:"\\F0CA"}.fa-list-ol:before{content:"\\F0CB"}.fa-strikethrough:before{content:"\\F0CC"}.fa-underline:before{content:"\\F0CD"}.fa-table:before{content:"\\F0CE"}.fa-magic:before{content:"\\F0D0"}.fa-truck:before{content:"\\F0D1"}.fa-pinterest:before{content:"\\F0D2"}.fa-pinterest-square:before{content:"\\F0D3"}.fa-google-plus-square:before{content:"\\F0D4"}.fa-google-plus:before{content:"\\F0D5"}.fa-money:before{content:"\\F0D6"}.fa-caret-down:before{content:"\\F0D7"}.fa-caret-up:before{content:"\\F0D8"}.fa-caret-left:before{content:"\\F0D9"}.fa-caret-right:before{content:"\\F0DA"}.fa-columns:before{content:"\\F0DB"}.fa-sort:before,.fa-unsorted:before{content:"\\F0DC"}.fa-sort-desc:before,.fa-sort-down:before{content:"\\F0DD"}.fa-sort-asc:before,.fa-sort-up:before{content:"\\F0DE"}.fa-envelope:before{content:"\\F0E0"}.fa-linkedin:before{content:"\\F0E1"}.fa-rotate-left:before,.fa-undo:before{content:"\\F0E2"}.fa-gavel:before,.fa-legal:before{content:"\\F0E3"}.fa-dashboard:before,.fa-tachometer:before{content:"\\F0E4"}.fa-comment-o:before{content:"\\F0E5"}.fa-comments-o:before{content:"\\F0E6"}.fa-bolt:before,.fa-flash:before{content:"\\F0E7"}.fa-sitemap:before{content:"\\F0E8"}.fa-umbrella:before{content:"\\F0E9"}.fa-clipboard:before,.fa-paste:before{content:"\\F0EA"}.fa-lightbulb-o:before{content:"\\F0EB"}.fa-exchange:before{content:"\\F0EC"}.fa-cloud-download:before{content:"\\F0ED"}.fa-cloud-upload:before{content:"\\F0EE"}.fa-user-md:before{content:"\\F0F0"}.fa-stethoscope:before{content:"\\F0F1"}.fa-suitcase:before{content:"\\F0F2"}.fa-bell-o:before{content:"\\F0A2"}.fa-coffee:before{content:"\\F0F4"}.fa-cutlery:before{content:"\\F0F5"}.fa-file-text-o:before{content:"\\F0F6"}.fa-building-o:before{content:"\\F0F7"}.fa-hospital-o:before{content:"\\F0F8"}.fa-ambulance:before{content:"\\F0F9"}.fa-medkit:before{content:"\\F0FA"}.fa-fighter-jet:before{content:"\\F0FB"}.fa-beer:before{content:"\\F0FC"}.fa-h-square:before{content:"\\F0FD"}.fa-plus-square:before{content:"\\F0FE"}.fa-angle-double-left:before{content:"\\F100"}.fa-angle-double-right:before{content:"\\F101"}.fa-angle-double-up:before{content:"\\F102"}.fa-angle-double-down:before{content:"\\F103"}.fa-angle-left:before{content:"\\F104"}.fa-angle-right:before{content:"\\F105"}.fa-angle-up:before{content:"\\F106"}.fa-angle-down:before{content:"\\F107"}.fa-desktop:before{content:"\\F108"}.fa-laptop:before{content:"\\F109"}.fa-tablet:before{content:"\\F10A"}.fa-mobile-phone:before,.fa-mobile:before{content:"\\F10B"}.fa-circle-o:before{content:"\\F10C"}.fa-quote-left:before{content:"\\F10D"}.fa-quote-right:before{content:"\\F10E"}.fa-spinner:before{content:"\\F110"}.fa-circle:before{content:"\\F111"}.fa-mail-reply:before,.fa-reply:before{content:"\\F112"}.fa-github-alt:before{content:"\\F113"}.fa-folder-o:before{content:"\\F114"}.fa-folder-open-o:before{content:"\\F115"}.fa-smile-o:before{content:"\\F118"}.fa-frown-o:before{content:"\\F119"}.fa-meh-o:before{content:"\\F11A"}.fa-gamepad:before{content:"\\F11B"}.fa-keyboard-o:before{content:"\\F11C"}.fa-flag-o:before{content:"\\F11D"}.fa-flag-checkered:before{content:"\\F11E"}.fa-terminal:before{content:"\\F120"}.fa-code:before{content:"\\F121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\\F122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\\F123"}.fa-location-arrow:before{content:"\\F124"}.fa-crop:before{content:"\\F125"}.fa-code-fork:before{content:"\\F126"}.fa-chain-broken:before,.fa-unlink:before{content:"\\F127"}.fa-question:before{content:"\\F128"}.fa-info:before{content:"\\F129"}.fa-exclamation:before{content:"\\F12A"}.fa-superscript:before{content:"\\F12B"}.fa-subscript:before{content:"\\F12C"}.fa-eraser:before{content:"\\F12D"}.fa-puzzle-piece:before{content:"\\F12E"}.fa-microphone:before{content:"\\F130"}.fa-microphone-slash:before{content:"\\F131"}.fa-shield:before{content:"\\F132"}.fa-calendar-o:before{content:"\\F133"}.fa-fire-extinguisher:before{content:"\\F134"}.fa-rocket:before{content:"\\F135"}.fa-maxcdn:before{content:"\\F136"}.fa-chevron-circle-left:before{content:"\\F137"}.fa-chevron-circle-right:before{content:"\\F138"}.fa-chevron-circle-up:before{content:"\\F139"}.fa-chevron-circle-down:before{content:"\\F13A"}.fa-html5:before{content:"\\F13B"}.fa-css3:before{content:"\\F13C"}.fa-anchor:before{content:"\\F13D"}.fa-unlock-alt:before{content:"\\F13E"}.fa-bullseye:before{content:"\\F140"}.fa-ellipsis-h:before{content:"\\F141"}.fa-ellipsis-v:before{content:"\\F142"}.fa-rss-square:before{content:"\\F143"}.fa-play-circle:before{content:"\\F144"}.fa-ticket:before{content:"\\F145"}.fa-minus-square:before{content:"\\F146"}.fa-minus-square-o:before{content:"\\F147"}.fa-level-up:before{content:"\\F148"}.fa-level-down:before{content:"\\F149"}.fa-check-square:before{content:"\\F14A"}.fa-pencil-square:before{content:"\\F14B"}.fa-external-link-square:before{content:"\\F14C"}.fa-share-square:before{content:"\\F14D"}.fa-compass:before{content:"\\F14E"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:"\\F150"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:"\\F151"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:"\\F152"}.fa-eur:before,.fa-euro:before{content:"\\F153"}.fa-gbp:before{content:"\\F154"}.fa-dollar:before,.fa-usd:before{content:"\\F155"}.fa-inr:before,.fa-rupee:before{content:"\\F156"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:"\\F157"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:"\\F158"}.fa-krw:before,.fa-won:before{content:"\\F159"}.fa-bitcoin:before,.fa-btc:before{content:"\\F15A"}.fa-file:before{content:"\\F15B"}.fa-file-text:before{content:"\\F15C"}.fa-sort-alpha-asc:before{content:"\\F15D"}.fa-sort-alpha-desc:before{content:"\\F15E"}.fa-sort-amount-asc:before{content:"\\F160"}.fa-sort-amount-desc:before{content:"\\F161"}.fa-sort-numeric-asc:before{content:"\\F162"}.fa-sort-numeric-desc:before{content:"\\F163"}.fa-thumbs-up:before{content:"\\F164"}.fa-thumbs-down:before{content:"\\F165"}.fa-youtube-square:before{content:"\\F166"}.fa-youtube:before{content:"\\F167"}.fa-xing:before{content:"\\F168"}.fa-xing-square:before{content:"\\F169"}.fa-youtube-play:before{content:"\\F16A"}.fa-dropbox:before{content:"\\F16B"}.fa-stack-overflow:before{content:"\\F16C"}.fa-instagram:before{content:"\\F16D"}.fa-flickr:before{content:"\\F16E"}.fa-adn:before{content:"\\F170"}.fa-bitbucket:before{content:"\\F171"}.fa-bitbucket-square:before{content:"\\F172"}.fa-tumblr:before{content:"\\F173"}.fa-tumblr-square:before{content:"\\F174"}.fa-long-arrow-down:before{content:"\\F175"}.fa-long-arrow-up:before{content:"\\F176"}.fa-long-arrow-left:before{content:"\\F177"}.fa-long-arrow-right:before{content:"\\F178"}.fa-apple:before{content:"\\F179"}.fa-windows:before{content:"\\F17A"}.fa-android:before{content:"\\F17B"}.fa-linux:before{content:"\\F17C"}.fa-dribbble:before{content:"\\F17D"}.fa-skype:before{content:"\\F17E"}.fa-foursquare:before{content:"\\F180"}.fa-trello:before{content:"\\F181"}.fa-female:before{content:"\\F182"}.fa-male:before{content:"\\F183"}.fa-gittip:before,.fa-gratipay:before{content:"\\F184"}.fa-sun-o:before{content:"\\F185"}.fa-moon-o:before{content:"\\F186"}.fa-archive:before{content:"\\F187"}.fa-bug:before{content:"\\F188"}.fa-vk:before{content:"\\F189"}.fa-weibo:before{content:"\\F18A"}.fa-renren:before{content:"\\F18B"}.fa-pagelines:before{content:"\\F18C"}.fa-stack-exchange:before{content:"\\F18D"}.fa-arrow-circle-o-right:before{content:"\\F18E"}.fa-arrow-circle-o-left:before{content:"\\F190"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:"\\F191"}.fa-dot-circle-o:before{content:"\\F192"}.fa-wheelchair:before{content:"\\F193"}.fa-vimeo-square:before{content:"\\F194"}.fa-try:before,.fa-turkish-lira:before{content:"\\F195"}.fa-plus-square-o:before{content:"\\F196"}.fa-space-shuttle:before{content:"\\F197"}.fa-slack:before{content:"\\F198"}.fa-envelope-square:before{content:"\\F199"}.fa-wordpress:before{content:"\\F19A"}.fa-openid:before{content:"\\F19B"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:"\\F19C"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\\F19D"}.fa-yahoo:before{content:"\\F19E"}.fa-google:before{content:"\\F1A0"}.fa-reddit:before{content:"\\F1A1"}.fa-reddit-square:before{content:"\\F1A2"}.fa-stumbleupon-circle:before{content:"\\F1A3"}.fa-stumbleupon:before{content:"\\F1A4"}.fa-delicious:before{content:"\\F1A5"}.fa-digg:before{content:"\\F1A6"}.fa-pied-piper-pp:before{content:"\\F1A7"}.fa-pied-piper-alt:before{content:"\\F1A8"}.fa-drupal:before{content:"\\F1A9"}.fa-joomla:before{content:"\\F1AA"}.fa-language:before{content:"\\F1AB"}.fa-fax:before{content:"\\F1AC"}.fa-building:before{content:"\\F1AD"}.fa-child:before{content:"\\F1AE"}.fa-paw:before{content:"\\F1B0"}.fa-spoon:before{content:"\\F1B1"}.fa-cube:before{content:"\\F1B2"}.fa-cubes:before{content:"\\F1B3"}.fa-behance:before{content:"\\F1B4"}.fa-behance-square:before{content:"\\F1B5"}.fa-steam:before{content:"\\F1B6"}.fa-steam-square:before{content:"\\F1B7"}.fa-recycle:before{content:"\\F1B8"}.fa-automobile:before,.fa-car:before{content:"\\F1B9"}.fa-cab:before,.fa-taxi:before{content:"\\F1BA"}.fa-tree:before{content:"\\F1BB"}.fa-spotify:before{content:"\\F1BC"}.fa-deviantart:before{content:"\\F1BD"}.fa-soundcloud:before{content:"\\F1BE"}.fa-database:before{content:"\\F1C0"}.fa-file-pdf-o:before{content:"\\F1C1"}.fa-file-word-o:before{content:"\\F1C2"}.fa-file-excel-o:before{content:"\\F1C3"}.fa-file-powerpoint-o:before{content:"\\F1C4"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:"\\F1C5"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:"\\F1C6"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:"\\F1C7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\\F1C8"}.fa-file-code-o:before{content:"\\F1C9"}.fa-vine:before{content:"\\F1CA"}.fa-codepen:before{content:"\\F1CB"}.fa-jsfiddle:before{content:"\\F1CC"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:"\\F1CD"}.fa-circle-o-notch:before{content:"\\F1CE"}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:"\\F1D0"}.fa-empire:before,.fa-ge:before{content:"\\F1D1"}.fa-git-square:before{content:"\\F1D2"}.fa-git:before{content:"\\F1D3"}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:"\\F1D4"}.fa-tencent-weibo:before{content:"\\F1D5"}.fa-qq:before{content:"\\F1D6"}.fa-wechat:before,.fa-weixin:before{content:"\\F1D7"}.fa-paper-plane:before,.fa-send:before{content:"\\F1D8"}.fa-paper-plane-o:before,.fa-send-o:before{content:"\\F1D9"}.fa-history:before{content:"\\F1DA"}.fa-circle-thin:before{content:"\\F1DB"}.fa-header:before{content:"\\F1DC"}.fa-paragraph:before{content:"\\F1DD"}.fa-sliders:before{content:"\\F1DE"}.fa-share-alt:before{content:"\\F1E0"}.fa-share-alt-square:before{content:"\\F1E1"}.fa-bomb:before{content:"\\F1E2"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:"\\F1E3"}.fa-tty:before{content:"\\F1E4"}.fa-binoculars:before{content:"\\F1E5"}.fa-plug:before{content:"\\F1E6"}.fa-slideshare:before{content:"\\F1E7"}.fa-twitch:before{content:"\\F1E8"}.fa-yelp:before{content:"\\F1E9"}.fa-newspaper-o:before{content:"\\F1EA"}.fa-wifi:before{content:"\\F1EB"}.fa-calculator:before{content:"\\F1EC"}.fa-paypal:before{content:"\\F1ED"}.fa-google-wallet:before{content:"\\F1EE"}.fa-cc-visa:before{content:"\\F1F0"}.fa-cc-mastercard:before{content:"\\F1F1"}.fa-cc-discover:before{content:"\\F1F2"}.fa-cc-amex:before{content:"\\F1F3"}.fa-cc-paypal:before{content:"\\F1F4"}.fa-cc-stripe:before{content:"\\F1F5"}.fa-bell-slash:before{content:"\\F1F6"}.fa-bell-slash-o:before{content:"\\F1F7"}.fa-trash:before{content:"\\F1F8"}.fa-copyright:before{content:"\\F1F9"}.fa-at:before{content:"\\F1FA"}.fa-eyedropper:before{content:"\\F1FB"}.fa-paint-brush:before{content:"\\F1FC"}.fa-birthday-cake:before{content:"\\F1FD"}.fa-area-chart:before{content:"\\F1FE"}.fa-pie-chart:before{content:"\\F200"}.fa-line-chart:before{content:"\\F201"}.fa-lastfm:before{content:"\\F202"}.fa-lastfm-square:before{content:"\\F203"}.fa-toggle-off:before{content:"\\F204"}.fa-toggle-on:before{content:"\\F205"}.fa-bicycle:before{content:"\\F206"}.fa-bus:before{content:"\\F207"}.fa-ioxhost:before{content:"\\F208"}.fa-angellist:before{content:"\\F209"}.fa-cc:before{content:"\\F20A"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:"\\F20B"}.fa-meanpath:before{content:"\\F20C"}.fa-buysellads:before{content:"\\F20D"}.fa-connectdevelop:before{content:"\\F20E"}.fa-dashcube:before{content:"\\F210"}.fa-forumbee:before{content:"\\F211"}.fa-leanpub:before{content:"\\F212"}.fa-sellsy:before{content:"\\F213"}.fa-shirtsinbulk:before{content:"\\F214"}.fa-simplybuilt:before{content:"\\F215"}.fa-skyatlas:before{content:"\\F216"}.fa-cart-plus:before{content:"\\F217"}.fa-cart-arrow-down:before{content:"\\F218"}.fa-diamond:before{content:"\\F219"}.fa-ship:before{content:"\\F21A"}.fa-user-secret:before{content:"\\F21B"}.fa-motorcycle:before{content:"\\F21C"}.fa-street-view:before{content:"\\F21D"}.fa-heartbeat:before{content:"\\F21E"}.fa-venus:before{content:"\\F221"}.fa-mars:before{content:"\\F222"}.fa-mercury:before{content:"\\F223"}.fa-intersex:before,.fa-transgender:before{content:"\\F224"}.fa-transgender-alt:before{content:"\\F225"}.fa-venus-double:before{content:"\\F226"}.fa-mars-double:before{content:"\\F227"}.fa-venus-mars:before{content:"\\F228"}.fa-mars-stroke:before{content:"\\F229"}.fa-mars-stroke-v:before{content:"\\F22A"}.fa-mars-stroke-h:before{content:"\\F22B"}.fa-neuter:before{content:"\\F22C"}.fa-genderless:before{content:"\\F22D"}.fa-facebook-official:before{content:"\\F230"}.fa-pinterest-p:before{content:"\\F231"}.fa-whatsapp:before{content:"\\F232"}.fa-server:before{content:"\\F233"}.fa-user-plus:before{content:"\\F234"}.fa-user-times:before{content:"\\F235"}.fa-bed:before,.fa-hotel:before{content:"\\F236"}.fa-viacoin:before{content:"\\F237"}.fa-train:before{content:"\\F238"}.fa-subway:before{content:"\\F239"}.fa-medium:before{content:"\\F23A"}.fa-y-combinator:before,.fa-yc:before{content:"\\F23B"}.fa-optin-monster:before{content:"\\F23C"}.fa-opencart:before{content:"\\F23D"}.fa-expeditedssl:before{content:"\\F23E"}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:"\\F240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\\F241"}.fa-battery-2:before,.fa-battery-half:before{content:"\\F242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\\F243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\\F244"}.fa-mouse-pointer:before{content:"\\F245"}.fa-i-cursor:before{content:"\\F246"}.fa-object-group:before{content:"\\F247"}.fa-object-ungroup:before{content:"\\F248"}.fa-sticky-note:before{content:"\\F249"}.fa-sticky-note-o:before{content:"\\F24A"}.fa-cc-jcb:before{content:"\\F24B"}.fa-cc-diners-club:before{content:"\\F24C"}.fa-clone:before{content:"\\F24D"}.fa-balance-scale:before{content:"\\F24E"}.fa-hourglass-o:before{content:"\\F250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\\F251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\\F252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\\F253"}.fa-hourglass:before{content:"\\F254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\\F255"}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:"\\F256"}.fa-hand-scissors-o:before{content:"\\F257"}.fa-hand-lizard-o:before{content:"\\F258"}.fa-hand-spock-o:before{content:"\\F259"}.fa-hand-pointer-o:before{content:"\\F25A"}.fa-hand-peace-o:before{content:"\\F25B"}.fa-trademark:before{content:"\\F25C"}.fa-registered:before{content:"\\F25D"}.fa-creative-commons:before{content:"\\F25E"}.fa-gg:before{content:"\\F260"}.fa-gg-circle:before{content:"\\F261"}.fa-tripadvisor:before{content:"\\F262"}.fa-odnoklassniki:before{content:"\\F263"}.fa-odnoklassniki-square:before{content:"\\F264"}.fa-get-pocket:before{content:"\\F265"}.fa-wikipedia-w:before{content:"\\F266"}.fa-safari:before{content:"\\F267"}.fa-chrome:before{content:"\\F268"}.fa-firefox:before{content:"\\F269"}.fa-opera:before{content:"\\F26A"}.fa-internet-explorer:before{content:"\\F26B"}.fa-television:before,.fa-tv:before{content:"\\F26C"}.fa-contao:before{content:"\\F26D"}.fa-500px:before{content:"\\F26E"}.fa-amazon:before{content:"\\F270"}.fa-calendar-plus-o:before{content:"\\F271"}.fa-calendar-minus-o:before{content:"\\F272"}.fa-calendar-times-o:before{content:"\\F273"}.fa-calendar-check-o:before{content:"\\F274"}.fa-industry:before{content:"\\F275"}.fa-map-pin:before{content:"\\F276"}.fa-map-signs:before{content:"\\F277"}.fa-map-o:before{content:"\\F278"}.fa-map:before{content:"\\F279"}.fa-commenting:before{content:"\\F27A"}.fa-commenting-o:before{content:"\\F27B"}.fa-houzz:before{content:"\\F27C"}.fa-vimeo:before{content:"\\F27D"}.fa-black-tie:before{content:"\\F27E"}.fa-fonticons:before{content:"\\F280"}.fa-reddit-alien:before{content:"\\F281"}.fa-edge:before{content:"\\F282"}.fa-credit-card-alt:before{content:"\\F283"}.fa-codiepie:before{content:"\\F284"}.fa-modx:before{content:"\\F285"}.fa-fort-awesome:before{content:"\\F286"}.fa-usb:before{content:"\\F287"}.fa-product-hunt:before{content:"\\F288"}.fa-mixcloud:before{content:"\\F289"}.fa-scribd:before{content:"\\F28A"}.fa-pause-circle:before{content:"\\F28B"}.fa-pause-circle-o:before{content:"\\F28C"}.fa-stop-circle:before{content:"\\F28D"}.fa-stop-circle-o:before{content:"\\F28E"}.fa-shopping-bag:before{content:"\\F290"}.fa-shopping-basket:before{content:"\\F291"}.fa-hashtag:before{content:"\\F292"}.fa-bluetooth:before{content:"\\F293"}.fa-bluetooth-b:before{content:"\\F294"}.fa-percent:before{content:"\\F295"}.fa-gitlab:before{content:"\\F296"}.fa-wpbeginner:before{content:"\\F297"}.fa-wpforms:before{content:"\\F298"}.fa-envira:before{content:"\\F299"}.fa-universal-access:before{content:"\\F29A"}.fa-wheelchair-alt:before{content:"\\F29B"}.fa-question-circle-o:before{content:"\\F29C"}.fa-blind:before{content:"\\F29D"}.fa-audio-description:before{content:"\\F29E"}.fa-volume-control-phone:before{content:"\\F2A0"}.fa-braille:before{content:"\\F2A1"}.fa-assistive-listening-systems:before{content:"\\F2A2"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:"\\F2A3"}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:"\\F2A4"}.fa-glide:before{content:"\\F2A5"}.fa-glide-g:before{content:"\\F2A6"}.fa-sign-language:before,.fa-signing:before{content:"\\F2A7"}.fa-low-vision:before{content:"\\F2A8"}.fa-viadeo:before{content:"\\F2A9"}.fa-viadeo-square:before{content:"\\F2AA"}.fa-snapchat:before{content:"\\F2AB"}.fa-snapchat-ghost:before{content:"\\F2AC"}.fa-snapchat-square:before{content:"\\F2AD"}.fa-pied-piper:before{content:"\\F2AE"}.fa-first-order:before{content:"\\F2B0"}.fa-yoast:before{content:"\\F2B1"}.fa-themeisle:before{content:"\\F2B2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\\F2B3"}.fa-fa:before,.fa-font-awesome:before{content:"\\F2B4"}.fa-handshake-o:before{content:"\\F2B5"}.fa-envelope-open:before{content:"\\F2B6"}.fa-envelope-open-o:before{content:"\\F2B7"}.fa-linode:before{content:"\\F2B8"}.fa-address-book:before{content:"\\F2B9"}.fa-address-book-o:before{content:"\\F2BA"}.fa-address-card:before,.fa-vcard:before{content:"\\F2BB"}.fa-address-card-o:before,.fa-vcard-o:before{content:"\\F2BC"}.fa-user-circle:before{content:"\\F2BD"}.fa-user-circle-o:before{content:"\\F2BE"}.fa-user-o:before{content:"\\F2C0"}.fa-id-badge:before{content:"\\F2C1"}.fa-drivers-license:before,.fa-id-card:before{content:"\\F2C2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\\F2C3"}.fa-quora:before{content:"\\F2C4"}.fa-free-code-camp:before{content:"\\F2C5"}.fa-telegram:before{content:"\\F2C6"}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:"\\F2C7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\\F2C8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\\F2C9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\\F2CA"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\\F2CB"}.fa-shower:before{content:"\\F2CC"}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:"\\F2CD"}.fa-podcast:before{content:"\\F2CE"}.fa-window-maximize:before{content:"\\F2D0"}.fa-window-minimize:before{content:"\\F2D1"}.fa-window-restore:before{content:"\\F2D2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\\F2D3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\\F2D4"}.fa-bandcamp:before{content:"\\F2D5"}.fa-grav:before{content:"\\F2D6"}.fa-etsy:before{content:"\\F2D7"}.fa-imdb:before{content:"\\F2D8"}.fa-ravelry:before{content:"\\F2D9"}.fa-eercast:before{content:"\\F2DA"}.fa-microchip:before{content:"\\F2DB"}.fa-snowflake-o:before{content:"\\F2DC"}.fa-superpowers:before{content:"\\F2DD"}.fa-wpexplorer:before{content:"\\F2DE"}.fa-meetup:before{content:"\\F2E0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}',""])},rgMnVXRc:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t>0?i.default.primary.tre:i.default.primary.due,o=.08*Math.abs(t);return(0,r.mix)(o,n,e)};var n,r=t("tUPJ+u4I"),i=(n=t("vQSmUFCW"))&&n.__esModule?n:{default:n};e.exports=exports.default},riOTCLtz:function(e,exports,t){e.exports=t.p+"bd5da5efd82f688648b28f49db8b3a3e.js"},rmNt5wnL:function(e,exports,t){var n=t("4cLJWkbQ"),r=t("TZbuAMSu"),i=1,o=2;e.exports=function(e,t,a,s){var l=a.length,u=l,c=!s;if(null==e)return!u;for(e=Object(e);l--;){var f=a[l];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++l').concat(t,"")}},{key:"versionedDocsHomePage",value:function(){return this.toString("")}}])&&i(t.prototype,n),a&&i(t,a),e}());exports.default=a,e.exports=exports.default},s7OgWrle:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Swatch=void 0;var n=Object.assign||function(e){for(var t=1;t6&&void 0!==arguments[6]&&arguments[6],f=[],d=s&&s>0?s:4e3;if("object"===a(e)&&!Array.isArray(e)){var p=this._firstDataPointTimestamp(e,t.from,l),h=n.default.utc(t.to),m=(0,n.default)(p),g=n.default.duration(1,o),v=((h.valueOf()-p.valueOf())/g.as("milliseconds")).toFixed(),b=v>d?(v/d).toFixed():1,y=0;for(m=r.default.startOfResolution(m,o);m.isBefore(h)||m.isSame(h);){if(y%b==0){var w=String(m.unix()),_=e[w],x=0;null!=_&&("object"===a(_)?_.hasOwnProperty(u)&&(x=_[u]):x=_),f.push({x:c?m.unix():m.valueOf(),y:i.default.normalizeGraphNumber(x)})}y+=1,m.add(g)}}return f}};exports.default=s,e.exports=exports.default},tEFgrcgr:function(e,exports,t){"use strict";function n(e,t){for(var n=0;nr?1:0});return[{value:"und",label:"Default locale"}].concat(t)},_renderOption:function(e){return r.default.createElement("span",{key:e.value,title:"{option.value} [{option.value}]"},e.label," [",e.value,"]")},render:function(){var e=this;if(!this.state.locales)return r.default.createElement(Spinner,null);var t=this._formatLocales(this.state.locales);return r.default.createElement(a.default,l({ref:function(t){e.locale=t}},this.props,{placeholder:"Pick a locale",options:t,optionRenderer:this._renderOption}))}});exports.default=c,e.exports=exports.default},"u/GSwJIY":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(t("ivGQtwpr")),r=s(t("KX2Ezx4E")),i=t("4bh9nC3d"),o=s(t("gf8Vy4wu")),a=t("M8vIDdnF");function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;ta?1:Math.round(100*c/a)/100,t.a!==f)return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}else{var d=void 0;if(r!==(d=u<0?0:u>o?1:Math.round(100*u/o)/100))return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}return null}},uMDj5sQi:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=f(t("ivGQtwpr")),r=c(t("ii0bleBb")),i=f(t("KX2Ezx4E")),o=t("4bh9nC3d"),a=t("tUPJ+u4I"),s=t("XrQdyzHl"),l=t("SMGljI5q"),u=c(t("PV/MXHm+"));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function d(){return(d=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var h=function(e,t){var n=l.util.colorLevel(e,-9),r=l.util.colorLevel(e,6);return(0,i.css)(["&.list-group-item-","{color:",";background-color:",";a&,button&{color:",";.list-group-item-heading{color:inherit;font-weight:bold;}&:hover,&:focus{color:",";background-color:",";}&.active,&.active:hover,&.active:focus{color:#fff;background-color:",";border-color:",";}}}"],t,r,n,r,r,(0,a.darken)(.2,n),r,r)},m=(0,n.forwardRef)(function(e,t){var r=e.bsStyle,a=p(e,["bsStyle"]),c=(0,s.useTheme)().colors,f=(0,n.useMemo)(function(){return(0,i.default)(o.ListGroupItem).withConfig({displayName:"ListGroupItem",componentId:"sc-1ky0joo-0"})(["background-color:",";border-color:",";.list-group-item-heading{font-weight:bold;}&.disabled,&.disabled:hover,&.disabled:focus{color:",";background-color:",";.list-group-item-heading{color:inherit;font-weight:bold;}.list-group-item-text{color:",";}}&.active,&.active:hover,&.active:focus{color:",";border-color:",";background-color:",";.list-group-item-heading,.list-group-item-heading > small,.list-group-item-heading > .small{color:inherit;font-weight:bold;}.list-group-item-text{color:",";}}a&,button&{color:",";.list-group-item-heading{color:",";font-weight:bold;}&:hover:not(.disabled),&:focus:not(.disabled){background-color:",";color:",";&.active{color:",";border-color:",";background-color:",";}}}",""],c.primary.due,c.secondary.tre,l.util.contrastingColor(c.secondary.due,"AA"),c.secondary.due,l.util.contrastingColor(c.secondary.due,"AA"),l.util.readableColor(c.tertiary.quattro),c.tertiary.quattro,c.tertiary.quattro,l.util.contrastingColor(c.tertiary.quattro),c.primary.tre,l.util.readableColor(c.primary.due),c.secondary.due,l.util.readableColor(c.secondary.due,c.tertiary.quattro),l.util.readableColor(c.tertiary.quattro),c.tertiary.quattro,c.tertiary.quattro,(0,u.default)(h))},[r,c]);return n.default.createElement(f,d({bsStyle:r,ref:t},a))});m.propTypes={bsStyle:r.default.oneOf(["success","warning","danger","info"])},m.defaultProps={bsStyle:void 0};var g=m;exports.default=g,e.exports=exports.default},uRLsxEc6:function(e,exports,t){e.exports=t("jaIgFIJB")(7)},"uTpwwmj/":function(e,exports,t){var n=t("yRXRscZV"),r=t("QoaPbia1"),i=t("8qRsGgWC"),o="[object Object]",a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!i(e)||n(e)!=o)return!1;var t=r(e);if(null===t)return!0;var a=u.call(t,"constructor")&&t.constructor;return"function"==typeof a&&a instanceof a&&l.call(a)==c}},uZ7OzA1d:function(e,exports,t){e.exports=t.p+"992d12460a13aad4f32e5cbd7f8c8452.js"},ueqGRl4b:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=0;exports.default=function(){return n++}},ufRrDXPs:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=t("4bh9nC3d"),r=a(t("KX2Ezx4E")),i=t("tUPJ+u4I"),o=a(t("vQSmUFCW"));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,r.default)(n.HelpBlock).withConfig({displayName:"HelpBlock",componentId:"i8is92-0"})(["display:block;margin-top:5px;margin-bottom:10px;color:",";"],(0,i.lighten)(.5,o.default.primary.tre));exports.default=s,e.exports=exports.default},uhDfhf9N:function(e,exports,t){"use strict";function n(e){for(var t in e)exports.hasOwnProperty(t)||(exports[t]=e[t])}Object.defineProperty(exports,"__esModule",{value:!0}),n(t("1sI50TlS")),n(t("S8PHH+Nm"))},uhYZwyeG:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=p(t("ii0bleBb")),r=p(t("ivGQtwpr")),i=p(t("PcYM+wZ7")),o=p(t("SIdPoB4K")),a=t("qwOa7NSh"),s=p(t("9K+LxPk5")),l=p(t("nhjeObmE")),u=p(t("CTDVjRMQ")),c=p(t("Vlmmfvoh")),f=p(t("BrroONhh")),d=t("os2pWP01");function p(e){return e&&e.__esModule?e:{default:e}}var h={matching_type:"",field_rule:[{field:"",type:"",value:""}]},m=(0,i.default)({displayName:"OrCondition",propTypes:{onUpdate:n.default.func},getInitialState:function(){return{alert:o.default.clone(this.props.alert)}},_handleChangeCondition:function(e,t){var n=o.default.clone(this.state.alert);n.condition_parameters[e]="threshold"===e||"additional_threshold"===e||"time"===e?parseInt(t):t,this.setState({alert:n}),this.props.onUpdate("condition_parameters",n.condition_parameters)},_handleChangeStream:function(e,t){var n=o.default.clone(this.state.alert);n.stream[e]=t,this.setState({alert:n}),this.props.onUpdate("stream",n.stream)},_handleChangeSecondStream:function(e,t){var n=o.default.clone(this.state.alert);null===n.second_stream&&(n.second_stream=h),n.second_stream[e]=t,this.setState({alert:n}),this.props.onUpdate("second_stream",n.second_stream)},render:function(){var e,t;return this.props.alert.condition_parameters.time>=1440?(e=this.props.alert.condition_parameters.time/1440,t=1440):this.props.alert.condition_parameters.time>=60?(e=this.props.alert.condition_parameters.time/60,t=60):(e=this.props.alert.condition_parameters.time,t=1),r.default.createElement("div",null,r.default.createElement(s.default,{onUpdate:this.props.onUpdate,title:this.props.alert.title,severity:this.props.alert.severity,isPluginLoggingAlertPresent:this.props.isPluginLoggingAlertPresent}),r.default.createElement("br",null),r.default.createElement("div",{style:{backgroundColor:"#f6f6f6",padding:"10px"}},r.default.createElement(l.default,{stream:this.props.alert.stream,onSaveStream:this._handleChangeStream,message:this.props.message,matchData:this.props.matchData})),r.default.createElement("br",null),r.default.createElement(d.Row,{style:{marginBottom:"0px"}},r.default.createElement(d.Col,{md:2}),r.default.createElement(d.Col,{md:10},r.default.createElement("label",null,r.default.createElement(a.FormattedMessage,{id:"wizard.or",defaultMessage:"OR"})))),r.default.createElement("br",null),r.default.createElement("div",{style:{backgroundColor:"#f6f6f6",padding:"10px"}},r.default.createElement(l.default,{stream:this.props.alert.second_stream,onSaveStream:this._handleChangeSecondStream,message:this.props.message})),r.default.createElement("br",null),r.default.createElement(u.default,{onUpdate:this._handleChangeCondition,threshold:this.props.alert.condition_parameters.threshold,threshold_type:this.props.alert.condition_parameters.threshold_type}),r.default.createElement("br",null),r.default.createElement(c.default,{onUpdate:this._handleChangeCondition,time:e.toString(),time_type:t.toString()}),r.default.createElement("br",null),r.default.createElement(f.default,{onUpdate:this.props.onUpdate,description:this.props.alert.description}),r.default.createElement("br",null))}});exports.default=m,e.exports=exports.default},"ui+Kt1aD":function(e,exports,t){var n=t("yiYgn92r"),r=t("PjrWv4IS");e.exports=function(e,t){return n(e,r(e),t)}},ujvxbrYf:function(e,exports,t){var n=t("wZCk8eAc");e.exports=function(e){return n(this.__data__,e)>-1}},umYlv8lo:function(e,exports,t){e.exports=t("jaIgFIJB")(47)},"unSaZaQ/":function(e,exports,t){e.exports=t.p+"94ff6406831f31e178e6d61551cc3428.js"},uoiDsqNY:function(e,exports,t){(exports=e.exports=t("MAMP9hQI")(!1)).push([e.i,".-HNR5l41jTfXEGyWmDcIN.alert.alert-info{box-shadow:0 2px 10px rgba(0,0,0,.2);position:fixed;top:60px;left:50%;height:32px;width:200px;margin-left:-100px;padding:5px 10px;text-align:center;z-index:2000}",""]),exports.locals={loadingIndicator:"-HNR5l41jTfXEGyWmDcIN"}},utJIRWV0:function(e,exports,t){"use strict";var n=h(t("QLhBnj4h")),r=t("AztyBNMT"),i=h(t("DPPTk4Ev")),o=h(t("EmV2JDvx")),a=h(t("nE+JleYi")),s=h(t("VqqJzeSw")),l=h(t("hIqb7d3c")),u=h(t("2YNh/UI8")),c=h(t("SJplc4tT")),f=h(t("swlbrGM3")),d=h(t("PpLtiLbc")),p=h(t("grghezTV"));function h(e){return e&&e.__esModule?e:{default:e}}r.PluginStore.register(new r.PluginManifest(n.default,{routes:[{path:"/wizard/AlertRules",component:i.default,permissions:"WIZARD_ALERTS_RULES_READ"},{path:"/wizard/NewAlert",component:o.default,permissions:"WIZARD_ALERTS_RULES_CREATE"},{path:"/wizard/UpdateAlert/:alertRuleTitle",component:a.default,permissions:"WIZARD_ALERTS_RULES_UPDATE"},{path:"/wizard/ExportAlert",component:s.default,permissions:"WIZARD_ALERTS_RULES_READ"},{path:"/wizard/ImportAlert",component:l.default,permissions:"WIZARD_ALERTS_RULES_READ"},{path:"/wizard/Lists",component:u.default},{path:"/wizard/NewList",component:c.default},{path:"/wizard/UpdateList/:alertListTitle",component:f.default},{path:"/wizard/ImportList",component:d.default},{path:"/wizard/ExportList",component:p.default}],navigation:[{description:"Wizard",children:[{path:"/wizard/AlertRules",description:"Alert Rules"},{path:"/wizard/Lists",description:"Lists"}]}]}))},uxFQxVCi:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=u(t("ii0bleBb")),r=u(t("ivGQtwpr")),i=u(t("PcYM+wZ7")),o=u(t("wxSXYi6/")),a=t("os2pWP01"),s=u(t("17WYifhy")),l=t("qOZsORvD");function u(e){return e&&e.__esModule?e:{default:e}}var c=(0,i.default)({displayName:"ShowQueryModal",propTypes:{builtQuery:n.default.string},mixins:[o.default],open:function(){this.modal.open()},close:function(){this.modal.close()},render:function(){var e=this,t=JSON.stringify(JSON.parse(this.props.builtQuery),null," ");return r.default.createElement(s.default,{ref:function(t){e.modal=t}},r.default.createElement(a.Modal.Header,{closeButton:!0},r.default.createElement(a.Modal.Title,null,"Elasticsearch Query")),r.default.createElement(a.Modal.Body,null,r.default.createElement("pre",null,t)),r.default.createElement(a.Modal.Footer,null,r.default.createElement(l.ClipboardButton,{title:"Copy query",target:".modal-body pre"})))}});exports.default=c,e.exports=exports.default},v7Leiqji:function(e,exports,t){var n=t("4cLJWkbQ"),r=t("Kgd3s3VL"),i=t("FCNzzYog"),o=t("taFwQE02"),a=t("hkYW3t1d"),s=t("Ai8uwR4r"),l=t("FTyHBy/Q"),u=t("5OQmTD4y"),c=1,f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,m,g,v,b){var y=s(e),w=s(t),_=y?d:a(e),x=w?d:a(t),E=(_=_==f?p:_)==p,S=(x=x==f?p:x)==p,C=_==x;if(C&&l(e)){if(!l(t))return!1;y=!0,E=!1}if(C&&!E)return b||(b=new n),y||u(e)?r(e,t,m,g,v,b):i(e,t,_,m,g,v,b);if(!(m&c)){var O=E&&h.call(e,"__wrapped__"),k=S&&h.call(t,"__wrapped__");if(O||k){var M=O?e.value():e,A=k?t.value():t;return b||(b=new n),v(M,A,m,g,b)}}return!!C&&(b||(b=new n),o(e,t,m,g,v,b))}},vA5QEKni:function(e,exports,t){var n=t("hkYW3t1d"),r=t("8qRsGgWC"),i="[object Map]";e.exports=function(e){return r(e)&&n(e)==i}},vG2EKdwe:function(e,exports,t){e.exports=t.p+"3add4652188e0bc4d09415003a97f4d4.js"},vQSmUFCW:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n={primary:{uno:"#FF3633",due:"#FFF",tre:"#1F1F1F"},secondary:{uno:"#FF3B00",due:"#F1F2F2",tre:"#DCE1E5"},tertiary:{uno:"#16ACE3",due:"#6DC6E7",tre:"#8DC63F",quattro:"#9E1F63",cinque:"#FF6418",sei:"#FFD200"}};exports.default=n,e.exports=exports.default},vU3dbCc2:function(e,exports,t){e.exports=t("jaIgFIJB")(21)},vXLdN8sj:function(e,exports,t){e.exports=t.p+"2119e845826f29976f25500f5b385be5.js"},"vq17oy4/":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"AddToDashboardMenu",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"Dashboard",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"DashboardList",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"DashboardListPage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"EditDashboardModal",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"EditDashboardModalTrigger",{enumerable:!0,get:function(){return s.default}});var n=l(t("IWoTIbq3")),r=l(t("b0ixPeDu")),i=l(t("qzLWmYRe")),o=l(t("5zaXzykF")),a=l(t("+/gOYE00")),s=l(t("5u3+/lB8"));function l(e){return e&&e.__esModule?e:{default:e}}},vqPidpSq:function(e,exports,t){"use strict";function n(e,t){for(var n=0;n— '):"timestamp"===e.props.field&&(i=t(n.term)),void 0!==e.pieChart&&"Others"!==e.dataTable.group()(n)){var o=e.pieChart.colors()(n.term);r='')}return"".concat(r," ").concat(i)},function(e){return g.default.formatPercentage(e.percentage)},function(e){return g.default.formatNumber(e.count)}];return this.props.displayAddToSearchButton&&n.push(function(t){return e._getAddToSearchButton(t.term)}),n},_getSortOrder:function(e){switch(e){case"desc":return c.default.descending;case"asc":return c.default.ascending;default:return c.default.descending}},_groupOrderFunc:function(e){return function(t){return"asc"===e?-1*t:t}},_renderDataTable:function(e){var t=this,n=this._table,r=this._getConfig("limit",e.config),i=this._getConfig("data_table_limit",e.config),o=this._getConfig("sort_order",e.config);this.dataTable=u.default.dataTable(n,this.dcGroupName),this.dataTable.dimension(this.dimensionByCount).group(function(e){var n=t.group.order(t._groupOrderFunc(o)).top(r).some(function(t){return 0===e.term.localeCompare(t.key)}),i="".concat("desc"===o?"Top":"Bottom"," ").concat(r," values");return n?i:"Others"}).sortBy(function(e){return e.count}).order(this._getSortOrder(o)).size(i).columns(this._getDataTableColumns()),this.props.interactive&&this.dataTable.on("renderlet",function(n){n.selectAll(".dc-table-group").classed("info",!0),n.selectAll("td.dc-table-column button").on("click",function(){var n=(0,d.default)(c.default.event.target).closest("button").data("term");w.addSearchTermWithMapping(t.state.termsMapping,e.id,n)})}),this.dataTable.on("postRender",this._handleRender("dataTable")),this.dataTable.render()},_renderPieChart:function(e){var t=this,n=this._graph;this.pieChart=u.default.pieChart(n,this.dcGroupName),this.pieChart.dimension(this.dimensionByTerm).group(this.group).othersGrouper(function(e){var n=t.pieChart,r=n.group().all().map(n.keyAccessor()),i=e.map(n.keyAccessor()),o=c.default.set(i),a=c.default.sum(e,u.default.pluck("value")),s=t.state.total-t.state.missing-a;return e.concat([{others:r.filter(function(e){return!o.has(e)}),key:"Others",value:s}])}).renderLabel(!1).renderTitle(!1).slicesCap(this._getConfig("limit",e.config)).ordering(function(e){return e.value}).colors(h.default.glColourPalette()),this.pieChart.on("postRender",this._handleRender("pieChart")),this._resizeVisualization(e.width,e.height,this._getConfig("show_data_table",e.config)),this.props.interactive&&(h.default.tooltipRenderlet(this.pieChart,"g.pie-slice",this._formatGraphTooltip),(0,d.default)(n).tooltip({selector:'[rel="tooltip"]',container:"body",placement:"auto",delay:{show:300,hide:100},html:!0})),this.pieChart.render()},_formatGraphTooltip:function(e){var t="".concat(e.data.key,": ").concat(g.default.formatNumber(e.value));return'
'.concat(t,"
")},_setPieChartSize:function(e){this.pieChart.width(e).height(e).radius(e/2-10),this.triggerRender=!0},_resizeVisualization:function(e,t,n){var r;this._getConfig("show_pie_chart")&&(n?r=this.DEFAULT_PIE_CHART_SIZE:(r=Math.min(e,t),r-=this.MARGIN_TOP),void 0!==this.pieChart&&this.pieChart.width()!==r&&this._setPieChartSize(r))},_clearDataFilters:function(){void 0!==this.pieChart&&(this.filters=this.pieChart.filters(),this.pieChart.filterAll())},_restoreDataFilters:function(){var e=this;void 0!==this.pieChart&&(this.filters.forEach(function(t){return e.pieChart.filter(t)}),this.filters=[])},drawData:function(){this.shouldUpdateData&&(this._clearDataFilters(),this.quickValuesData.remove(),this.quickValuesData.add(this.state.terms.toJS()),this._restoreDataFilters(),this.dataTable.redraw()),this._getConfig("show_pie_chart")&&(this.triggerRender?(this.pieChart.render(),this.triggerRender=!1):this.pieChart.redraw())},_getTotalMessagesWithField:function(){return this.state.total-this.state.missing},_getAnalysisInformation:function(){var e=["Found ".concat(g.default.formatNumber(this._getTotalMessagesWithField())," messages with field ").concat(this.props.field,"")];if(0!==this.state.missing){var t=0===this.state.others?" and":"";t+=" ".concat(g.default.formatNumber(this.state.missing)," messages without field ").concat(this.props.field,""),e.push(t)}return 0!==this.state.others&&e.push(" and ".concat(g.default.formatNumber(this.state.others)," other values")),i.default.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(e.join(","),".")}})},render:function(){var e,t,n,r=this,o=this.props,a=o.horizontal,l=o.displayAnalysisInformation,u=o.height,c=o.id,f=o.displayAddToSearchButton,d=o.limitHeight,p={};return this._getConfig("show_pie_chart")?a?(e="col-md-4",p.textAlign="center"):e="col-md-12":e="hidden",t=this._getConfig("show_data_table")||!this._getConfig("show_pie_chart")?a?"col-md-8":"col-md-12":"hidden",n=l?i.default.createElement(s.Panel,null,i.default.createElement(s.ListGroup,{fill:!0},i.default.createElement(s.ListGroupItem,null,i.default.createElement("div",{ref:function(e){r._graph=e},className:"quickvalues-graph"})),i.default.createElement(s.ListGroupItem,null,this._getAnalysisInformation()))):i.default.createElement("div",{ref:function(e){r._graph=e},className:"quickvalues-graph"}),i.default.createElement("div",{id:"visualization-".concat(c),className:"quickvalues-visualization",style:d?{height:u}:{}},i.default.createElement("div",{className:"container-fluid"},i.default.createElement("div",{className:"row",style:{marginBottom:0}},i.default.createElement("div",{className:"".concat(e," ").concat(b.default.pieChart),style:p},n),i.default.createElement("div",{className:t},i.default.createElement("div",{className:"quickvalues-table"},i.default.createElement("table",{ref:function(e){r._table=e},className:"table table-condensed table-hover"},i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",{style:{width:"60%"}},"Value"),i.default.createElement("th",null,"%"),i.default.createElement("th",null,"Count"),f&&i.default.createElement("th",{style:{width:30}}," ")))))))))}});exports.default=_,e.exports=exports.default}).call(this,t("aY11sVfy"))},vrtyIT4C:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.filtersToStreamSet=exports.filtersForQuery=exports.createElasticsearchQueryString=void 0;var n,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(t("H/eHg5XM")),i=(n=t("OE6Y/0FI"))&&n.__esModule?n:{default:n},o=t("NV2C8ebe");function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"";return{type:"elasticsearch",query_string:e}};exports.filtersForQuery=function(e){return e&&0!==e.length?{type:"or",filters:e.map(function(e){return r.default.Map({type:"stream",id:e})})}:null};exports.filtersToStreamSet=function e(t){return t?"stream"===t.get("type")?r.default.Set([t.get("id")]):t.get("filters",r.default.List()).map(e).reduce(function(e,t){return e.merge(t)},r.default.Set()):r.default.Set()};var c=function(){function e(t,n,r,i,o){a(this,e),u(this,"_value",void 0),this._value={id:t,query:n,timerange:r,filter:i,searchTypes:o}}return l(e,[{key:"toBuilder",value:function(){var t=this._value,n=t.id,r=t.query,i=t.timerange,o=t.filter,a=t.searchTypes;return e.builder().id(n).query(r).timerange(i).filter(o).searchTypes(a)}},{key:"equals",value:function(t){return void 0!==t&&(t instanceof e&&!!(this.id===t.id&&(0,o.isEqual)(this.query,t.query)&&(0,o.isEqual)(this.timerange,t.timerange)&&(0,r.is)(this.filter,t.filter)&&(0,r.is)(this.searchTypes,t.searchTypes)))}},{key:"toJSON",value:function(){var e=this._value;return{id:e.id,query:e.query,timerange:e.timerange,filter:e.filter,search_types:e.searchTypes}}},{key:"id",get:function(){return this._value.id}},{key:"query",get:function(){return this._value.query}},{key:"timerange",get:function(){return this._value.timerange}},{key:"filter",get:function(){return this._value.filter}},{key:"searchTypes",get:function(){return this._value.searchTypes}}],[{key:"builder",value:function(){return(new f).searchTypes([])}},{key:"fromJSON",value:function(t){var n=t.id,i=t.query,o=t.timerange,a=t.filter,s=t.search_types;return new e(n,i,o,r.default.fromJS(a),s)}}]),e}();exports.default=c;var f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.default.Map();a(this,e),u(this,"value",void 0),this.value=t}return l(e,[{key:"id",value:function(t){return new e(this.value.set("id",t))}},{key:"newId",value:function(){return this.id((0,i.default)())}},{key:"query",value:function(t){return new e(this.value.set("query",t))}},{key:"timerange",value:function(t){return new e(this.value.set("timerange",t))}},{key:"filter",value:function(t){return new e(this.value.set("filter",r.default.fromJS(t)))}},{key:"searchTypes",value:function(t){return new e(this.value.set("searchTypes",t))}},{key:"build",value:function(){var e=this.value.toObject(),t=e.id,n=e.query,r=e.timerange,i=e.filter,o=e.searchTypes;return new c(t,n,r,i,o)}}]),e}()},vtqJixv4:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=y(t("ii0bleBb")),r=y(t("ivGQtwpr")),i=y(t("PcYM+wZ7")),o=y(t("vU3dbCc2")),a=t("8mAVzjyp"),s=y(t("Ept3tno1")),l=y(t("HM+Bgqj5")),u=y(t("45N4IsJL")),c=t("os2pWP01"),f=t("qOZsORvD"),d=y(t("Mcd/Xly4")),p=y(t("7QAbkgSv")),h=t("J6m01YZl"),m=y(t("17WYifhy")),g=y(t("nWIS8De6")),v=y(t("/LO7rk3x")),b=y(t("tEFgrcgr"));function y(e){return e&&e.__esModule?e:{default:e}}var w=p.default.getStore("Session"),_=p.default.getStore("Search"),x=(0,i.default)({displayName:"SearchSidebar",propTypes:{builtQuery:n.default.any,currentSavedSearch:n.default.string,fields:n.default.array,fieldAnalyzers:n.default.array,onFieldAnalyzer:n.default.func,onFieldToggled:n.default.func,permissions:n.default.array,predefinedFieldSelection:n.default.func,result:n.default.object,searchInStream:n.default.object,selectedFields:n.default.object,shouldHighlight:n.default.bool,showAllFields:n.default.bool,showHighlightToggle:n.default.bool,togglePageFields:n.default.func,toggleShouldHighlight:n.default.func,loadingSearch:n.default.bool,searchConfig:n.default.object.isRequired},getInitialState:function(){return{availableHeight:1e3,lastResultsUpdate:d.default.now().toISOString()}},componentDidMount:function(){this._updateHeight(),window.addEventListener("resize",this._resizeCallback)},componentWillReceiveProps:function(e){this.props.loadingSearch&&!e.loadingSearch&&this.setState({lastResultsUpdate:d.default.now().toISOString()})},componentWillUnmount:function(){window.removeEventListener("resize",this._resizeCallback)},eventsThrottler:new b.default,SIDEBAR_MARGIN_BOTTOM:10,_resizeCallback:function(){var e=this;this.eventsThrottler.throttle(function(){return e._updateHeight()})},_updateHeight:function(){var e=window.innerHeight,t=o.default.findDOMNode(this.sidebar),n=window.getComputedStyle(o.default.findDOMNode(t)),r=e-parseFloat(n.getPropertyValue("padding-bottom"))-this.SIDEBAR_MARGIN_BOTTOM;this.setState({availableHeight:r})},_getURLForExportAsCSV:function(){var e=_.getOriginalSearchURLParams(),t=this.props.searchInStream?this.props.searchInStream.id:void 0,n=""===e.get("q")?"*":e.get("q"),r=this.props.selectedFields,i=e.get("rangetype"),o={};switch(i){case"relative":o.range=e.get("relative");break;case"absolute":o.from=e.get("from"),o.to=e.get("to");break;case"keyword":o.keyword=e.get("keyword")}var a=new l.default(g.default.qualifyUrl(v.default.UniversalSearchApiController.export(i,n,o,t,0,0,r.toJS()).url));return g.default.areCredentialsInURLSupported()&&a.username(w.getSessionId()).password("session"),a.toString()},_closeModal:function(e){return function(){return e.close()}},_openModal:function(e){return function(){[arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1]].some(function(e){return!(!e||!e.preventDefault)&&(e.preventDefault(),!0)}),e.open()}},_getExportModal:function(){var e=this,t=g.default.areCredentialsInURLSupported()?'Please right click the download link below and choose "Save Link As..." to download the CSV file.':"Please click the download link below. Your browser may ask for your username and password to download the CSV file.";return r.default.createElement(m.default,{ref:function(t){e.exportModal=t}},r.default.createElement(c.Modal.Header,{closeButton:!0},r.default.createElement(c.Modal.Title,null,"Export search results as CSV")),r.default.createElement(c.Modal.Body,null,r.default.createElement("p",null,t),r.default.createElement("p",null,r.default.createElement("a",{href:this._getURLForExportAsCSV(),target:"_blank"},r.default.createElement(f.Icon,{name:"cloud-download"}),"  Download"))),r.default.createElement(c.Modal.Footer,null,r.default.createElement(c.Button,{onClick:this._closeModal(this.exportModal)},"Close")))},render:function(){var e=this,t=this.props.result.used_indices.sort(function(e,t){return(0,u.default)(e.index_name.toLowerCase(),t.index_name.toLowerCase())}).map(function(e){return r.default.createElement("li",{key:e.index_name}," ",e.index_name)}),n=r.default.createElement(m.default,{ref:function(t){e.indicesModal=t}},r.default.createElement(c.Modal.Header,{closeButton:!0},r.default.createElement(c.Modal.Title,null,"Used indices")),r.default.createElement(c.Modal.Body,null,r.default.createElement("p",null,"Graylog is intelligently selecting the indices it needs to search upon based on the time frame you selected. This list of indices is mainly useful for debugging purposes."),r.default.createElement("h4",null,"Indices used for this search:"),r.default.createElement("ul",{className:"index-list"},t)),r.default.createElement(c.Modal.Footer,null,r.default.createElement(c.Button,{onClick:this._closeModal(this.indicesModal)},"Close"))),i=null,o=[r.default.createElement(c.MenuItem,{key:"export",onSelect:this._openModal(this.exportModal)},"Export as CSV")];return i=this.props.searchInStream?r.default.createElement("span",null,this.props.searchInStream.title):r.default.createElement("span",null,"Search result"),o.push(r.default.createElement(c.MenuItem,{divider:!0,key:"div2"})),o.push(r.default.createElement(c.MenuItem,{key:"showQuery",onSelect:this._openModal(this.showQueryModal)},"Show query")),r.default.createElement(a.AutoAffix,{affixClassName:"affix"},r.default.createElement("div",{className:"content-col",ref:function(t){e.sidebar=t},style:{top:void 0,position:void 0}},r.default.createElement("div",null,r.default.createElement("h2",null,i),r.default.createElement("p",{style:{marginTop:3}},"Found ",r.default.createElement("strong",null,(0,s.default)(this.props.result.total_results).format("0,0")," messages")," ","in ",(0,s.default)(this.props.result.time).format("0,0")," ms, searched in ",r.default.createElement("a",{href:"#",onClick:this._openModal(this.indicesModal)},this.props.result.used_indices.length," ",1===this.props.result.used_indices.length?"index":"indices"),".",n,r.default.createElement("br",null),"Results retrieved at ",r.default.createElement(f.Timestamp,{dateTime:this.state.lastResultsUpdate,format:d.default.Formats.DATETIME}),"."),r.default.createElement("div",{className:"actions"},r.default.createElement(h.AddSearchCountToDashboard,{searchInStream:this.props.searchInStream,permissions:this.props.permissions}),r.default.createElement(h.SavedSearchControls,{currentSavedSearch:this.props.currentSavedSearch}),r.default.createElement("div",{style:{display:"inline-block"}},r.default.createElement(c.DropdownButton,{bsSize:"small",title:"More actions",id:"search-more-actions-dropdown"},o),r.default.createElement(h.ShowQueryModal,{key:"debugQuery",ref:function(t){e.showQueryModal=t},builtQuery:this.props.builtQuery}))),this._getExportModal(),r.default.createElement("hr",null)),r.default.createElement(c.Tabs,{id:"searchSidebarTabs",animation:!1},r.default.createElement(c.Tab,{eventKey:1,title:r.default.createElement("h4",null,"Fields")},r.default.createElement(h.FieldAnalyzersSidebar,{fields:this.props.fields,fieldAnalyzers:this.props.fieldAnalyzers,onFieldAnalyzer:this.props.onFieldAnalyzer,onFieldToggled:this.props.onFieldToggled,maximumHeight:this.state.availableHeight,predefinedFieldSelection:this.props.predefinedFieldSelection,result:this.props.result,searchConfig:this.props.searchConfig,selectedFields:this.props.selectedFields,shouldHighlight:this.props.shouldHighlight,showAllFields:this.props.showAllFields,showHighlightToggle:this.props.showHighlightToggle,togglePageFields:this.props.togglePageFields,toggleShouldHighlight:this.props.toggleShouldHighlight})),r.default.createElement(c.Tab,{eventKey:2,title:r.default.createElement("h4",null,"Decorators")},r.default.createElement(h.DecoratorSidebar,{stream:this.props.searchInStream?this.props.searchInStream.id:void 0,maximumHeight:this.state.availableHeight})))))}});exports.default=x,e.exports=exports.default},w0HPB8Uu:function(e,exports,t){var n=t("q0qK9moz");(e.exports=t("MAMP9hQI")(!1)).push([e.i,".leaflet-image-layer,.leaflet-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane,.leaflet-pane>canvas,.leaflet-pane>svg,.leaflet-tile,.leaflet-tile-container,.leaflet-zoom-box{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-overlay-pane svg,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-width:none!important;max-height:none!important}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-bottom,.leaflet-top{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-tile{will-change:opacity}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.leaflet-zoom-anim .leaflet-zoom-animated{will-change:transform;-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-pan-anim .leaflet-tile,.leaflet-zoom-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-image-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-marker-icon.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline:0}.leaflet-container a{color:#0078a8}.leaflet-container a.leaflet-active{outline:2px solid orange}.leaflet-zoom-box{border:2px dotted #38f;background:hsla(0,0%,100%,.5)}.leaflet-container{font:12px/1.5 Helvetica Neue,Arial,Helvetica,sans-serif}.leaflet-bar{box-shadow:0 1px 5px rgba(0,0,0,.65);border-radius:4px}.leaflet-bar a,.leaflet-bar a:hover{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px rgba(0,0,0,.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url("+n(t("036YLPXk"))+");width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url("+n(t("hkmbQdkX"))+");background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers-expanded .leaflet-control-layers-toggle,.leaflet-control-layers .leaflet-control-layers-list{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url("+n(t("5knZ9Wnl"))+')}.leaflet-container .leaflet-control-attribution{background:#fff;background:hsla(0,0%,100%,.7);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover{text-decoration:underline}.leaflet-container .leaflet-control-attribution,.leaflet-container .leaflet-control-scale{font-size:11px}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;font-size:11px;white-space:nowrap;overflow:hidden;-moz-box-sizing:border-box;box-sizing:border-box;background:#fff;background:hsla(0,0%,100%,.5)}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers{box-shadow:none}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-layers{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 19px;line-height:1.4}.leaflet-popup-content p{margin:18px 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px rgba(0,0,0,.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;padding:4px 4px 0 0;border:none;text-align:center;width:18px;height:14px;font:16px/14px Tahoma,Verdana,sans-serif;color:#c3c3c3;text-decoration:none;font-weight:700;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover{color:#999}.leaflet-popup-scrolled{overflow:auto;border-bottom:1px solid #ddd;border-top:1px solid #ddd}.leaflet-oldie .leaflet-popup-content-wrapper{zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678,M12=0.70710678,M21=-0.70710678,M22=0.70710678)}.leaflet-oldie .leaflet-popup-tip-container{margin-top:-1px}.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px rgba(0,0,0,.4)}.leaflet-tooltip.leaflet-clickable{cursor:pointer;pointer-events:auto}.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before,.leaflet-tooltip-top:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}',""])},"w2A+o00Z":function(e,exports,t){e.exports=t("jaIgFIJB")(356)},w7sDHmSl:function(e,exports,t){e.exports=t.p+"3936ef40547d9c8994a1aa6cedef8777.js"},"w80tXR+p":function(e,exports,t){e.exports=t.p+"8687930b3057f3b023b29dacbcfb3bf7.js"},w9ICOQ2Z:function(e,exports,t){"use strict";var n=t("oIKiQKTM");function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,this},r.prototype.parse=function(e){return this._parser=e,this},r.prototype.responseType=function(e){return this._responseType=e,this},r.prototype.serialize=function(e){return this._serializer=e,this},r.prototype.timeout=function(e){if(!e||"object"!=typeof e)return this._timeout=e,this._responseTimeout=0,this;for(var t in e)switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;default:console.warn("Unknown timeout option",t)}return this},r.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var i=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];r.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!=t.status)return!0;if(e){if(e.code&&~i.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},r.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},r.prototype.then=function(e,t){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){n.end(function(n,r){n?t(n):e(r)})})}return this._fullfilledPromise.then(e,t)},r.prototype.catch=function(e){return this.then(void 0,e)},r.prototype.use=function(e){return e(this),this},r.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},r.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},r.prototype.get=function(e){return this._header[e.toLowerCase()]},r.prototype.getHeader=r.prototype.get,r.prototype.set=function(e,t){if(n(e)){for(var r in e)this.set(r,e[r]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},r.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},r.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),n(e)){for(var r in e)this.field(r,e[r]);return this}if(Array.isArray(t)){for(var i in t)this.field(e,t[i]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},r.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},r.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},r.prototype.withCredentials=function(e){return null==e&&(e=!0),this._withCredentials=e,this},r.prototype.redirects=function(e){return this._maxRedirects=e,this},r.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},r.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},r.prototype.send=function(e){var t=n(e),r=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&n(this._data))for(var i in e)this._data[i]=e[i];else"string"==typeof e?(r||this.type("form"),r=this._header["content-type"],this._data="application/x-www-form-urlencoded"==r?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)?this:(r||this.type("json"),this)},r.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},r.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.substring(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,t)+"?"+n.join("&")}}},r.prototype._appendQueryString=function(){console.trace("Unsupported")},r.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error(e+t+"ms exceeded");r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},r.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},wF2fOgH3:function(e,exports,t){var n=t("RMa3hR3V")["__core-js_shared__"];e.exports=n},wLweOw0N:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=a(t("GQq1IDzf")),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(t("ivGQtwpr")),i=a(t("ii0bleBb")),o=a(t("y57+zKqG"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(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})(e)}function l(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{left:[],right:[]},t=[],n={left:[],right:[]},r=0;r.5});return n.default.createElement("div",{style:i.picker})};exports.default=o},wNbjxLFG:function(e,exports,t){ /*! * clipboard.js v2.0.4 * https://zenorocha.github.io/clipboard.js * * Licensed MIT © Zeno Rocha */ var n;n=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(exports,e,t){n.o(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:t})},n.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,exports,t){"use strict";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=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===n(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,a.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new i.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return u("action",e)}},{key:"defaultTarget",value:function(e){var t=u("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return u("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}();function u(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=l},function(e,exports,t){"use strict";var n,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=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=s},function(e,exports){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},function(e,exports){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r.react-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,.4);border-bottom:2px solid rgba(0,0,0,.4)}',""])},"wfR/RgDk":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ii0bleBb")),r=o(t("ivGQtwpr")),i=t("os2pWP01");function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n0,c=function(){return t.stopPropagation(),t.preventDefault(),t.returnValue=!1,!1};return!u&&-l>r-s-n?(e.scrollTop=r,c()):u&&l>n?(e.scrollTop=0,c()):void 0}};exports.default=function(e){var t=n(e),r=(e.addEventListener||e.attachEvent).bind(e),i=(e.removeEventListener||e.detachEvent).bind(e);return r("mousewheel",t),r("DOMMouseScroll",t),function(){i("mousewheel",t),i("DOMMouseScroll",t)}},e.exports=exports.default},xG4tHsxw:function(e,exports,t){"use strict";var n=String.prototype.replace,r=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,r,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},xMbo1SLQ:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=s(t("ii0bleBb")),r=s(t("ivGQtwpr")),i=t("ApKkJKuH"),o=t("NV2C8ebe");t("qEG1zA7m"),t("EKxC/bLL");var a=s(t("WYA0yMvV"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(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})(e)}function u(e,t){for(var n=0;n1);s++)n.splice(0,1);r[a]=n.join("")}var l=-1,u=0,c=0,f=-1,d=!1;for(a=0;au&&(l=f,u=c)):"0"===r[a]&&(d=!0,f=a,c=1);c>u&&(l=f,u=c),u>1&&r.splice(l,u,""),i=r.length;var p="";for(""===r[0]&&(p=":"),a=0;at.length?e:t,a=e.length>t.length?t:e,s=o.indexOf(a);if(-1!=s)return i=[[1,o.substring(0,s)],[0,a],[1,o.substring(s+a.length)]],e.length>t.length&&(i[0][0]=i[2][0]=-1),i;if(1==a.length)return[[-1,e],[1,t]];var l=this.diff_halfMatch_(e,t);if(l){var u=l[0],c=l[1],f=l[2],d=l[3],p=l[4],h=this.diff_main(u,f,n,r),m=this.diff_main(c,d,n,r);return h.concat([[0,p]],m)}return n&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)},t.prototype.diff_lineMode_=function(e,t,n){e=(c=this.diff_linesToChars_(e,t)).chars1,t=c.chars2;var r=c.lineArray,i=this.diff_main(e,t,!1,n);this.diff_charsToLines_(i,r),this.diff_cleanupSemantic(i),i.push([0,""]);for(var o=0,a=0,s=0,l="",u="";o=1&&s>=1){i.splice(o-a-s,a+s),o=o-a-s;for(var c,f=(c=this.diff_main(l,u,!1,n)).length-1;f>=0;f--)i.splice(o,0,c[f]);o+=c.length}s=0,a=0,l="",u=""}o++}return i.pop(),i},t.prototype.diff_bisect_=function(e,t,n){for(var r=e.length,i=t.length,o=Math.ceil((r+i)/2),a=o,s=2*o,l=new Array(s),u=new Array(s),c=0;cn);v++){for(var b=-v+p;b<=v-h;b+=2){for(var y=a+b,w=(C=b==-v||b!=v&&l[y-1]r)h+=2;else if(w>i)p+=2;else if(d){if((E=a+f-b)>=0&&E=(x=r-u[E]))return this.diff_bisectSplit_(e,t,C,w,n)}}for(var _=-v+m;_<=v-g;_+=2){for(var x,E=a+_,S=(x=_==-v||_!=v&&u[E-1]r)g+=2;else if(S>i)m+=2;else if(!d){if((y=a+f-_)>=0&&y=(x=r-x))return this.diff_bisectSplit_(e,t,C,w,n)}}}}return[[-1,e],[1,t]]},t.prototype.diff_bisectSplit_=function(e,t,n,r,i){var o=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),u=this.diff_main(o,a,!1,i),c=this.diff_main(s,l,!1,i);return u.concat(c)},t.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function i(e){for(var t="",i=0,o=-1,a=n.length;or?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,o,a,s,c]:null}var a,s,l,u,c,f=o(n,r,Math.ceil(n.length/4)),d=o(n,r,Math.ceil(n.length/2));return f||d?(a=d?f&&f[4].length>d[4].length?f:d:f,e.length>t.length?(s=a[0],l=a[1],u=a[2],c=a[3]):(u=a[0],c=a[1],s=a[2],l=a[3]),[s,l,u,c,a[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var t=!1,n=[],r=0,i=null,o=0,a=0,s=0,l=0,u=0;o0?n[r-1]:-1,a=0,s=0,l=0,u=0,i=null,t=!0)),o++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),o=1;o=p?(d>=c.length/2||d>=f.length/2)&&(e.splice(o,0,[0,f.substring(0,d)]),e[o-1][1]=c.substring(0,c.length-d),e[o+1][1]=f.substring(d),o++):(p>=c.length/2||p>=f.length/2)&&(e.splice(o,0,[0,c.substring(0,p)]),e[o-1][0]=1,e[o-1][1]=f.substring(0,f.length-p),e[o+1][0]=-1,e[o+1][1]=c.substring(p),o++),o++}o++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var r=e.charAt(e.length-1),i=n.charAt(0),o=r.match(t.nonAlphaNumericRegex_),a=i.match(t.nonAlphaNumericRegex_),s=o&&r.match(t.whitespaceRegex_),l=a&&i.match(t.whitespaceRegex_),u=s&&r.match(t.linebreakRegex_),c=l&&i.match(t.linebreakRegex_),f=u&&e.match(t.blanklineEndRegex_),d=c&&n.match(t.blanklineStartRegex_);return f||d?5:u||c?4:o&&!s&&l?3:s||l?2:o||a?1:0}for(var r=1;r=d&&(d=p,u=i,c=o,f=a)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(e.splice(r-1,1),r--),e[r][1]=c,f?e[r+1][1]=f:(e.splice(r+1,1),r--))}r++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,n=[],r=0,i=null,o=0,a=!1,s=!1,l=!1,u=!1;o0?n[r-1]:-1,l=u=!1),t=!0)),o++;t&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push([0,""]);for(var t,n=0,r=0,i=0,o="",a="";n1?(0!==r&&0!==i&&(0!==(t=this.diff_commonPrefix(a,o))&&(n-r-i>0&&0==e[n-r-i-1][0]?e[n-r-i-1][1]+=a.substring(0,t):(e.splice(0,0,[0,a.substring(0,t)]),n++),a=a.substring(t),o=o.substring(t)),0!==(t=this.diff_commonSuffix(a,o))&&(e[n][1]=a.substring(a.length-t)+e[n][1],a=a.substring(0,a.length-t),o=o.substring(0,o.length-t))),0===r?e.splice(n-i,r+i,[1,a]):0===i?e.splice(n-r,r+i,[-1,o]):e.splice(n-r-i,r+i,[-1,o],[1,a]),n=n-r-i+(r?1:0)+(i?1:0)+1):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,i=0,r=0,o="",a=""}""===e[e.length-1][1]&&e.pop();var s=!1;for(n=1;nt));n++)o=r,a=i;return e.length!=n&&-1===e[n][0]?a:a+(t-o)},t.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,r=//g,o=/\n/g,a=0;a");switch(s){case 1:t[a]=''+l+"";break;case-1:t[a]=''+l+"";break;case 0:t[a]=""+l+""}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),i=this;function o(e,r){var o=e/t.length,a=Math.abs(n-r);return i.Match_Distance?o+a/i.Match_Distance:a?1:o}var a=this.Match_Threshold,s=e.indexOf(t,n);-1!=s&&(a=Math.min(o(0,s),a),-1!=(s=e.lastIndexOf(t,n+t.length))&&(a=Math.min(o(0,s),a)));var l,u,c=1<=h;v--){var b=r[e.charAt(v-1)];if(g[v]=0===p?(g[v+1]<<1|1)&b:(g[v+1]<<1|1)&b|(f[v+1]|f[v])<<1|1|f[v+1],g[v]&c){var y=o(p,v-1);if(y<=a){if(a=y,!((s=v-1)>n))break;h=Math.max(1,2*n-s)}}}if(o(p+1,n)>a)break;f=g}return s},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(o),this.diff_cleanupEfficiency(o));else if(e&&"object"==typeof e&&void 0===n&&void 0===r)o=e,i=this.diff_text1(o);else if("string"==typeof e&&n&&"object"==typeof n&&void 0===r)i=e,o=n;else{if("string"!=typeof e||"string"!=typeof n||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");i=e,o=r}if(0===o.length)return[];for(var a=[],s=new t.patch_obj,l=0,u=0,c=0,f=i,d=i,p=0;p=2*this.Patch_Margin&&l&&(this.patch_addContext_(s,f),a.push(s),s=new t.patch_obj,l=0,f=d,u=c)}1!==h&&(u+=m.length),-1!==h&&(c+=m.length)}return l&&(this.patch_addContext_(s,f),a.push(s)),a},t.prototype.patch_deepCopy=function(e){for(var n=[],r=0;rthis.Match_MaxBits?-1!=(a=this.match_main(t,u.substring(0,this.Match_MaxBits),l))&&(-1==(c=this.match_main(t,u.substring(u.length-this.Match_MaxBits),l+u.length-this.Match_MaxBits))||a>=c)&&(a=-1):a=this.match_main(t,u,l),-1==a)i[o]=!1,r-=e[o].length2-e[o].length1;else if(i[o]=!0,r=a-l,u==(s=-1==c?t.substring(a,a+u.length):t.substring(a,c+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[o].diffs)+t.substring(a+u.length);else{var f=this.diff_main(u,s,!1);if(u.length>this.Match_MaxBits&&this.diff_levenshtein(f)/u.length>this.Patch_DeleteThreshold)i[o]=!1;else{this.diff_cleanupSemanticLossless(f);for(var d,p=0,h=0;ho[0][1].length){var a=t-o[0][1].length;o[0][1]=n.substring(o[0][1].length)+o[0][1],i.start1-=a,i.start2-=a,i.length1+=a,i.length2+=a}if(0==(o=(i=e[e.length-1]).diffs).length||0!=o[o.length-1][0])o.push([0,n]),i.length1+=t,i.length2+=t;else if(t>o[o.length-1][1].length){a=t-o[o.length-1][1].length;o[o.length-1][1]+=n.substring(0,a),i.length1+=a,i.length2+=a}return n},t.prototype.patch_splitMax=function(e){for(var n=this.Match_MaxBits,r=0;r2*n?(l.length1+=f.length,o+=f.length,u=!1,l.diffs.push([c,f]),i.diffs.shift()):(f=f.substring(0,n-l.length1-this.Patch_Margin),l.length1+=f.length,o+=f.length,0===c?(l.length2+=f.length,a+=f.length):u=!1,l.diffs.push([c,f]),f==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(f.length))}s=(s=this.diff_text2(l.diffs)).substring(s.length-this.Patch_Margin);var d=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==d&&(l.length1+=d.length,l.length2+=d.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=d:l.diffs.push([0,d])),u||e.splice(++r,0,l)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["autoWidth","viewportOffsetTop","children"]),u=this.state,c=u.offsetTop,f=u.offsetBottom,d=u.width;delete a.container;var p=Math.max(c,i||0),h=this.props,m=h.affixStyle,g=h.bottomStyle;return r&&(m=n({width:d},m),g=n({width:d},g)),s.default.createElement("div",null,s.default.createElement("div",{ref:function(t){e.positioner=t}}),s.default.createElement(l.default,n({},a,{offsetTop:p,viewportOffsetTop:i,offsetBottom:f,affixStyle:m,bottomStyle:g}),o))},t}(s.default.Component);g.displayName="AutoAffix",g.propTypes=m,g.defaultProps={viewportOffsetTop:0,autoWidth:!0},exports.default=g,e.exports=exports.default},yIeo43dt:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=x(t("ii0bleBb")),r=x(t("ivGQtwpr")),i=x(t("PcYM+wZ7")),o=t("os2pWP01"),a=t("qOZsORvD"),s=x(t("SIdPoB4K")),l=x(t("18sD0i4u")),u=x(t("7wHi4ydR")),c=t("wkvtUUMm"),f=t("qGj1hbi5");t("qiKrhS7F");var d=t("qwOa7NSh"),p=x(t("7QAbkgSv")),h=x(t("JEBYGNMv")),m=x(t("dq6Nd5bz")),g=x(t("4Ci73f+q")),v=x(t("Cs307gU5")),b=x(t("yw71i8I3")),y=x(t("uhYZwyeG")),w=x(t("76+uEHdX")),_=x(t("9O9awptg"));function x(e){return e&&e.__esModule?e:{default:e}}var E=x(t("1SPPmkhJ")).default.getActions("Nodes"),S=p.default.getStore("Streams"),C=p.default.getStore("Plugins"),O={title:"",severity:"",condition_type:"COUNT",condition_parameters:{time:1,threshold_type:"",threshold:0,additional_threshold_type:"",additional_threshold:0,grouping_fields:[],distinction_fields:[],field:"",type:""},stream:{matching_type:"",field_rule:[{field:"",type:"",value:""}]},second_stream:{matching_type:"",field_rule:[{field:"",type:"",value:""}]}},k=(0,i.default)({displayName:"CreateAlertInput",propTypes:{alert:n.default.object,create:n.default.bool.isRequired},contextTypes:{intl:n.default.object.isRequired},componentWillMount:function(){var e={titlePopup:this.context.intl.formatMessage({id:"wizard.titlePopup",defaultMessage:"Alert rule is saved"}),messagePopup:this.context.intl.formatMessage({id:"wizard.messagePopup",defaultMessage:"Go to Advanced settings?"}),advancedSettings:this.context.intl.formatMessage({id:"wizard.advancedSettings",defaultMessage:"Advanced settings"}),done:this.context.intl.formatMessage({id:"wizard.done",defaultMessage:"I'm done!"}),placeholderTitle:this.context.intl.formatMessage({id:"wizard.placeholderTitle",defaultMessage:"Title of the alert rule "}),add:this.context.intl.formatMessage({id:"wizard.add",defaultMessage:"Add"}),ruleType:this.context.intl.formatMessage({id:"wizard.ruleType",defaultMessage:"Rule Type"}),tooltipCountCondition:this.context.intl.formatMessage({id:"wizard.tooltipCountCondition",defaultMessage:"Count Condition"}),tooltipGroupDistinctCondition:this.context.intl.formatMessage({id:"wizard.tooltipGroupDistinctCondition",defaultMessage:"Group / Distinct Condition"}),tooltipStatisticalCondition:this.context.intl.formatMessage({id:"wizard.tooltipStatisticalCondition",defaultMessage:"Statistical Condition"}),tooltipThenCondition:this.context.intl.formatMessage({id:"wizard.tooltipThenCondition",defaultMessage:"THEN Condition"}),tooltipAndCondition:this.context.intl.formatMessage({id:"wizard.tooltipAndCondition",defaultMessage:"AND Condition"}),tooltipOrCondition:this.context.intl.formatMessage({id:"wizard.tooltipOrCondition",defaultMessage:"OR Condition"})};this.setState({messages:e})},componentDidMount:function(){this._isPluginsPresent()},getDefaultProps:function(){return{alert:O,default_values:{title:"",severity:"",matching_type:"",threshold_type:"",threshold:0,time:1,time_type:1,field:"",field_type:"",field_value:"",repeat_notifications:!1,grace:1,backlog:500}}},getInitialState:function(){var e,t,n=s.default.clone(this.props.alert);return this.props.create?(n.title=this.props.default_values.title,n.severity=this.props.default_values.severity,n.condition_parameters.threshold_type=this.props.default_values.threshold_type,n.condition_parameters.threshold=this.props.default_values.threshold,n.stream.matching_type=this.props.default_values.matching_type,n.stream.field_rule[0].field=this.props.default_values.field,n.stream.field_rule[0].type=this.props.default_values.field_type.toString(),n.stream.field_rule[0].value=this.props.default_values.field_value,e=this.props.default_values.time,t=this.props.default_values.time_type,n.condition_parameters.time=e*t,n.condition_parameters.repeat_notifications=this.props.default_values.repeat_notifications,n.condition_parameters.grace=this.props.default_values.grace,n.condition_parameters.backlog=this.props.default_values.backlog):(n.title=this.props.alert.title_condition,this.props.alert.condition_parameters.time>=1440?(e=this.props.alert.condition_parameters.time/1440,t=1440):this.props.alert.condition_parameters.time>=60?(e=this.props.alert.condition_parameters.time/60,t=60):(e=this.props.alert.condition_parameters.time,t=1)),{alert:n,isModified:!1,isValid:!1,time:e,time_type:t,contentComponent:r.default.createElement(a.Spinner,null),isPluginAggregation:!0,isPluginCorrelation:!0,isPluginLoggingAlert:!0}},_isPluginsPresent:function(){var e=this;E.list().then(function(t){t.nodes[0]&&C.list(t.nodes[0].node_id).then(function(t){for(var n=!1,r=!1,i=!1,o=0;o0&&null!==e.condition_parameters.time&&""!==e.condition_parameters.threshold_type&&null!==e.condition_parameters.threshold&&!isNaN(e.condition_parameters.threshold)&&this._isFieldRulesValid(e.stream))},_checkAlert:function(e){var t=this._isAlertValid(e);this.state.isValid!==t&&this.setState({isValid:t})},_onMessageLoaded:function(e){var t=this;this.setState({message:e}),void 0!==e&&this.state.alert.stream.id?S.testMatch(this.state.alert.stream.id,{message:e.fields},function(e){t.setState({matchData:e}),t._handleSelect(t.state.alert.condition_type)}):this.setState({matchData:void 0})},_handleSelect:function(e){var t=s.default.clone(this.state.alert);switch(t.condition_type!==e&&(this._updateAlertField("condition_type",e),t.condition_type=e),e){case"COUNT":this.setState({contentComponent:r.default.createElement(w.default,{onUpdate:this._updateAlertField,alert:t,message:this.state.message,matchData:this.state.matchData,isPluginLoggingAlertPresent:this.state.isPluginLoggingAlert})});break;case"GROUP_DISTINCT":this.setState({contentComponent:r.default.createElement(v.default,{onUpdate:this._updateAlertField,alert:t,message:this.state.message,matchData:this.state.matchData,isPluginLoggingAlertPresent:this.state.isPluginLoggingAlert})});break;case"STATISTICAL":this.setState({contentComponent:r.default.createElement(g.default,{onUpdate:this._updateAlertField,alert:t,message:this.state.message,matchData:this.state.matchData,isPluginLoggingAlertPresent:this.state.isPluginLoggingAlert})});break;case"THEN":case"AND":this.setState({contentComponent:r.default.createElement(b.default,{onUpdate:this._updateAlertField,onUpdateAlert:this._updateAlert,alert:t,message:this.state.message,matchData:this.state.matchData,isPluginLoggingAlertPresent:this.state.isPluginLoggingAlert})});break;case"OR":this.setState({contentComponent:r.default.createElement(y.default,{onUpdate:this._updateAlertField,alert:t,message:this.state.message,matchData:this.state.matchData,isPluginLoggingAlertPresent:this.state.isPluginLoggingAlert})});break;default:this.setState({contentComponent:r.default.createElement("div",null)})}},render:function(){var e,t,n,i=this,a=r.default.createElement(c.LinkContainer,{to:u.default.pluginRoute("WIZARD_ALERTRULES")},r.default.createElement(o.Button,null,r.default.createElement(d.FormattedMessage,{id:"wizard.cancel",defaultMessage:"Cancel"})));t=this.props.create?r.default.createElement(o.Button,{onClick:this._save,bsStyle:"primary",disabled:!this.state.isValid,className:"btn btn-md btn-primary"},r.default.createElement(d.FormattedMessage,{id:"wizard.save",defaultMessage:"Save"})):r.default.createElement(o.Button,{onClick:this._update,bsStyle:"primary",disabled:!(this.state.isModified&&this.state.isValid),className:"btn btn-md btn-primary"},r.default.createElement(d.FormattedMessage,{id:"wizard.save",defaultMessage:"Save"})),e=r.default.createElement("div",{className:"alert-actions pull-left"},a," ",t," "),this.props.create||(n=r.default.createElement("div",{className:"alert-actions pull-right"},r.default.createElement(c.LinkContainer,{disabled:this.state.isModified,to:u.default.ALERTS.DEFINITIONS.edit(this.state.alert.condition)},r.default.createElement(o.Button,{bsStyle:"info",title:"Advanced settings for this alert rule"},r.default.createElement(d.FormattedMessage,{id:"wizard.advancedSettings",defaultMessage:"Advanced settings"})))));var s=r.default.createElement(o.Nav,{stacked:!0,bsStyle:"pills",activeKey:this.state.alert.condition_type,onSelect:function(e){return i._handleSelect(e)}},r.default.createElement(o.NavItem,{key:"divider",disabled:!0,title:"Rule Type",className:m.default.divider},this.state.messages.ruleType),r.default.createElement(o.NavItem,{eventKey:"COUNT",title:this.state.messages.tooltipCountCondition},r.default.createElement(d.FormattedMessage,{id:"wizard.countCondition",defaultMessage:"Count"})),r.default.createElement(o.NavItem,{eventKey:"GROUP_DISTINCT",title:this.state.messages.tooltipGroupDistinctCondition,disabled:!this.state.isPluginAggregation},r.default.createElement(d.FormattedMessage,{id:"wizard.groupDistinctCondition",defaultMessage:"Group / Distinct"})),r.default.createElement(o.NavItem,{eventKey:"STATISTICAL",title:this.state.messages.tooltipStatisticalCondition},r.default.createElement(d.FormattedMessage,{id:"wizard.StatisticsCondition",defaultMessage:"Statistics"})),r.default.createElement(o.NavItem,{eventKey:"THEN",title:this.state.messages.tooltipThenCondition,disabled:!this.state.isPluginCorrelation},r.default.createElement(d.FormattedMessage,{id:"wizard.thenCondition",defaultMessage:"THEN"})),r.default.createElement(o.NavItem,{eventKey:"AND",title:this.state.messages.tooltipAndCondition,disabled:!this.state.isPluginCorrelation},r.default.createElement(d.FormattedMessage,{id:"wizard.andCondition",defaultMessage:"AND"})),r.default.createElement(o.NavItem,{eventKey:"OR",title:this.state.messages.tooltipOrCondition},r.default.createElement(d.FormattedMessage,{id:"wizard.orCondition",defaultMessage:"OR"})));return r.default.createElement("div",null,r.default.createElement(o.Row,null,r.default.createElement(o.Col,{md:2,className:m.default.subnavigation},s),r.default.createElement(o.Col,{md:10,className:m.default.contentpane},r.default.createElement("h2",null,r.default.createElement(d.FormattedMessage,{id:"wizard.loadMessage",defaultMessage:"Load a message to test fields conditions"})),r.default.createElement("div",{className:"stream-loader"},r.default.createElement(h.default,{messageId:this.props.messageId,index:this.props.index,onMessageLoaded:this._onMessageLoaded})),r.default.createElement("hr",null),r.default.createElement("h2",null,r.default.createElement(d.FormattedMessage,{id:"wizard.titleParameters",defaultMessage:"Alert rule parameters"})),n,r.default.createElement("p",{className:"description"},r.default.createElement(d.FormattedMessage,{id:"wizard.descripionParameters",defaultMessage:"Define the parameters of the alert rule."})),r.default.createElement("form",{className:"form-inline"},this.state.contentComponent),e)))}});exports.default=k,e.exports=exports.default},yLZIYifI:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Slider=void 0;var n=u(t("ivGQtwpr")),r=u(t("ii0bleBb")),i=u(t("zGS59GCK")),o=u(t("C19pcrjQ")),a=t("50Juodil"),s=u(t("A09+FXxw")),l=u(t("XroQk7b7"));function u(e){return e&&e.__esModule?e:{default:e}}var c=exports.Slider=function(e){var t=e.hsl,r=e.onChange,l=e.pointer,u=e.styles,c=void 0===u?{}:u,f=e.className,d=void 0===f?"":f,p=(0,i.default)((0,o.default)({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},c));return n.default.createElement("div",{style:p.wrap||{},className:"slider-picker "+d},n.default.createElement("div",{style:p.hue},n.default.createElement(a.Hue,{style:p.Hue,hsl:t,pointer:l,onChange:r})),n.default.createElement("div",{style:p.swatches},n.default.createElement(s.default,{hsl:t,onClick:r})))};c.propTypes={styles:r.default.object},c.defaultProps={pointer:l.default,styles:{}},exports.default=(0,a.ColorWrap)(c)},yNOyHG0A:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=a(t("ii0bleBb")),r=a(t("ivGQtwpr")),i=t("os2pWP01"),o=t("DlhHh5IY");function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(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})(e)}function l(e,t){for(var n=0;n-1}).map(function(t){return r.default.createElement(i.MenuItem,{key:t.value,onSelect:function(){return e._onValueTypeSelect(t.value)}},t.label)});return r.default.createElement(i.FormGroup,{validationState:this.props.validationState},this.props.label&&r.default.createElement(i.ControlLabel,{className:this.props.labelClassName},this.props.label),r.default.createElement(o.InputWrapper,{className:this.props.wrapperClassName},r.default.createElement(i.InputGroup,null,r.default.createElement(i.FormControl,{type:"text",onChange:this._onUpdate,value:this.state.value,required:this.props.required}),r.default.createElement(i.DropdownButton,{componentClass:i.InputGroup.Button.type,id:"input-dropdown-addon",bsStyle:"error"===this.props.validationState?"danger":null,title:p.filter(function(t){return t.value===e.props.valueType})[0].label},t)),this.props.help&&r.default.createElement(i.HelpBlock,null,this.props.help)))}}])&&l(n.prototype,a),h&&l(n,h),t}();d(h,"propTypes",{update:n.default.func.isRequired,label:n.default.string,help:n.default.oneOfType([n.default.string,n.default.object]),required:n.default.bool,validationState:n.default.string,value:n.default.string,valueType:n.default.oneOf(p.map(function(e){return e.value})),allowedTypes:function(e,t,n){var r=p.map(function(e){return e.value}),i=[];return e[t]instanceof Array?(e[t].forEach(function(e){r.indexOf(e)<0&&i.push(e)}),i.length>0?new Error("Invalid prop ".concat(t," supplied to ").concat(n,". Expected array of ").concat(r," but got invalid ").concat(i)):null):new Error("Invalid prop ".concat(t," supplied to ").concat(n,". Expected an array but got ").concat(e[t]))},labelClassName:n.default.string,wrapperClassName:n.default.string}),d(h,"defaultProps",{value:"",valueType:"STRING",allowedTypes:p.map(function(e){return e.value}),label:"",help:"",required:!1,validationState:null,labelClassName:void 0,wrapperClassName:void 0});var m=h;exports.default=m,e.exports=exports.default},yOXgu0pF:function(e,exports,t){"use strict";function n(e,t){return{x:e.x+t.x,y:e.y+t.y}}function r(e,t){return{x:e.x-t.x,y:e.y-t.y}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.add=n,exports.subtract=r,exports.getSourceClientOffset=function(e){var t=e.clientOffset,i=e.initialClientOffset,o=e.initialSourceClientOffset;return t&&i&&o?r(n(t,o),i):null},exports.getDifferenceFromInitialOffset=function(e){var t=e.clientOffset,n=e.initialClientOffset;return t&&n?r(t,n):null}},yRXRscZV:function(e,exports,t){var n=t("mCEiX8iM"),r=t("7nYOdoup"),i=t("r5em9lfo"),o="[object Null]",a="[object Undefined]",s=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?a:o:s&&s in Object(e)?r(e):i(e)}},yUGuIfBf:function(e,exports,t){!function(exports){function e(e){return e}function t(e,t){for(var n=0,r=t.length,i=new Array(r);n>>1;n>>1;e(t[o])>>1);--o>0;)n(e,o,i,t);return e}function n(t,n,r,i){for(var o,a=t[--i+n],s=e(a);(o=n<<1)<=r&&(oe(t[i+o+1])&&o++,!(s<=e(t[i+o])));)t[i+n]=t[i+o],n=o;t[i+n]=a}return t.sort=function(e,t,r){for(var i,o=r-t;--o>0;)i=e[t],e[t]=e[t+o],e[t+o]=i,n(e,1,o,t);return e},t}function o(e){var t=i(e);return function(n,r,i,o){var a,s,l,u=new Array(o=Math.min(i-r,o));for(s=0;sa&&(u[0]=l,a=e(t(u,0,o)[0]))}while(++rn&&e(t[o-1])>s;--o)t[o]=t[o-1];t[o]=a}return t}}function s(e){var t=a(e);function n(e,n,i){return(i-n>1,c=u-a,f=u+a,d=t[s],p=e(d),h=t[c],m=e(h),g=t[u],v=e(g),b=t[f],y=e(b),w=t[l],_=e(w);p>m&&(o=d,d=h,h=o,o=p,p=m,m=o),y>_&&(o=b,b=w,w=o,o=y,y=_,_=o),p>v&&(o=d,d=g,g=o,o=p,p=v,v=o),m>v&&(o=h,h=g,g=o,o=m,m=v,v=o),p>y&&(o=d,d=b,b=o,o=p,p=y,y=o),v>y&&(o=g,g=b,b=o,o=v,v=y,y=o),m>_&&(o=h,h=w,w=o,o=m,m=_,_=o),m>v&&(o=h,h=g,g=o,o=m,m=v,v=o),y>_&&(o=b,b=w,w=o,o=y,y=_,_=o);var x=h,E=m,S=b,C=y;t[s]=d,t[c]=t[r],t[u]=g,t[f]=t[i-1],t[l]=w;var O=r+1,k=i-2,M=E<=C&&E>=C;if(M)for(var A=O;A<=k;++A){var T=t[A];if((j=e(T))E)for(;;){if(!((R=e(t[k]))>E)){if(RC)for(;;){if(!((R=e(t[k]))>C)){Rl){for(var P;(P=e(t[O]))<=E&&P>=E;)++O;for(;(R=e(t[k]))<=C&&R>=C;)--k;for(A=O;A<=k;A++){var j;T=t[A];if((j=e(T))<=E&&j>=E)A!==O&&(t[A]=t[O],t[O]=T),O++;else if(j<=C&&j>=C)for(;;){var R;if(!((R=e(t[k]))<=C&&R>=C)){R32)throw new Error("invalid array width!");return e};function h(e){for(var t=new Array(e),n=-1;++nr;)h[--l]=0},dimension:function(r){var u,k,M,A,T,P={filter:function(e){return null==e?V():Array.isArray(e)?q(e):"function"==typeof e?K(e):G(e)},filterExact:G,filterRange:q,filterFunction:K,filterAll:V,top:function(e){var t,n=[],r=z;for(;--r>=N&&e>0;)h[t=k[r]]||(n.push(a[t]),--e);return n},bottom:function(e){var t,n=[],r=N;for(;r0;)h[t=k[r]]||(n.push(a[t]),--e),r++;return n},group:Y,groupAll:function(){var e=Y(g),t=e.all;return delete e.all,delete e.top,delete e.order,delete e.orderNatural,delete e.size,e.value=function(){return t()[0].value},e},dispose:X,remove:X},j=~c&-~c,R=~j,D=s(function(e){return M[e]}),F=m,I=[],L=[],N=0,z=0;C.unshift(B),C.push(H),O.push(U),c|=j,(f>=32?!j:c&-(1<N)for(r=N,i=Math.min(t,z);rz)for(r=Math.max(t,z),i=n;r1?d(s,l):E(l,T),k&&(f=(c=w[0]).key);I=v);)++I;for(;Iy||(s[u=n[I]+i]=P,h[u]&R||(b.value=C(b.value,a[u])),++I>=o));)v=t(e[I]);L()}for(;jj)for(j=0;j1?(D=U,F=G):(!P&&z&&(P=1,r=[{key:null,value:O()}]),1===P?(D=W,F=q):(D=g,F=g),s=null),x[u]=D}function H(){if(P>1){for(var e=P,t=r,n=E(e,e),i=0,o=0;i1)for(i=0;i1?(F=G,D=U):1===P?(F=q,D=W):F=D=g}else if(1===P){if(z)return;for(i=0;i=0&&x.splice(e,1),(e=I.indexOf(B))>=0&&I.splice(e,1),(e=O.indexOf(H))>=0&&O.splice(e,1),n}return arguments.length<1&&(t=e),x.push(D),I.push(B),O.push(H),B(u,k,0,l),Q().orderNatural()}function X(){L.forEach(function(e){e.dispose()});var e=C.indexOf(B);return e>=0&&C.splice(e,1),(e=C.indexOf(H))>=0&&C.splice(e,1),(e=O.indexOf(U))>=0&&O.splice(e,1),c&=R,V()}return B(a,0,l),H(a,0,l),P},groupAll:function(){var e,t,n,r,i={reduce:c,reduceCount:f,reduceSum:function(e){return c(w(e),_(e),v)},value:function(){o&&(function(){var n;for(e=r(),n=0;n=0&&x.splice(e),(e=C.indexOf(s))>=0&&C.splice(e),i}return x.push(u),C.push(s),s(a,0),f()},size:function(){return l}},a=[],l=0,c=0,f=8,h=u(0),x=[],C=[],O=[];function k(e){var t=l,n=e.length;return n&&(a=a.concat(e),h=d(h,l+=n),C.forEach(function(r){r(e,t,n)})),r}return arguments.length?k(arguments[0]):r}function E(e,t){return(t<257?u:t<65537?c:f)(e)}function S(e){return 8===e?256:16===e?65536:4294967296}"undefined"!=typeof Uint8Array&&(u=function(e){return new Uint8Array(e)},c=function(e){return new Uint16Array(e)},f=function(e){return new Uint32Array(e)},d=function(e,t){if(e.length>=t)return e;var n=new e.constructor(t);return n.set(e),n},p=function(e,t){var n;switch(t){case 16:n=c(e.length);break;case 32:n=f(e.length);break;default:throw new Error("invalid array width!")}return n.set(e),n}),exports.crossfilter=x}(exports||this)},yUwKKE5x:function(e,exports,t){"use strict";var n=Array.isArray,r=Object.keys,i=Object.prototype.hasOwnProperty;e.exports=function e(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){var a,s,l,u=n(t),c=n(o);if(u&&c){if((s=t.length)!=o.length)return!1;for(a=s;0!=a--;)if(!e(t[a],o[a]))return!1;return!0}if(u!=c)return!1;var f=t instanceof Date,d=o instanceof Date;if(f!=d)return!1;if(f&&d)return t.getTime()==o.getTime();var p=t instanceof RegExp,h=o instanceof RegExp;if(p!=h)return!1;if(p&&h)return t.toString()==o.toString();var m=r(t);if((s=m.length)!==r(o).length)return!1;for(a=s;0!=a--;)if(!i.call(o,m[a]))return!1;for(a=s;0!=a--;)if(!e(t[l=m[a]],o[l]))return!1;return!0}return t!=t&&o!=o}},yVnb1Yom:function(e,exports,t){var n=t("oDdu0vts"),r=t("NYE3wwKJ");e.exports=function(e){return null!=e&&r(e.length)&&!n(e)}},yWnzs2n2:function(e,exports,t){e.exports=t.p+"c7a831b1e1fd7f1280db48af9ddb0a9a.js"},yYvTPilW:function(e,exports,t){e.exports=t.p+"1623e30dcf0af56ef56363082b62120f.js"},ybot7P0S:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CustomPicker=exports.TwitterPicker=exports.SwatchesPicker=exports.SliderPicker=exports.SketchPicker=exports.PhotoshopPicker=exports.MaterialPicker=exports.HuePicker=exports.GithubPicker=exports.CompactPicker=exports.ChromePicker=exports.default=exports.CirclePicker=exports.BlockPicker=exports.AlphaPicker=void 0;var n=t("TlkBKPFQ");Object.defineProperty(exports,"AlphaPicker",{enumerable:!0,get:function(){return v(n).default}});var r=t("TohfJLGw");Object.defineProperty(exports,"BlockPicker",{enumerable:!0,get:function(){return v(r).default}});var i=t("m/EOH/1h");Object.defineProperty(exports,"CirclePicker",{enumerable:!0,get:function(){return v(i).default}});var o=t("Nnu6OYeX");Object.defineProperty(exports,"ChromePicker",{enumerable:!0,get:function(){return v(o).default}});var a=t("CTscPvbn");Object.defineProperty(exports,"CompactPicker",{enumerable:!0,get:function(){return v(a).default}});var s=t("jdj53D7Q");Object.defineProperty(exports,"GithubPicker",{enumerable:!0,get:function(){return v(s).default}});var l=t("krarzO/E");Object.defineProperty(exports,"HuePicker",{enumerable:!0,get:function(){return v(l).default}});var u=t("aHBOerTE");Object.defineProperty(exports,"MaterialPicker",{enumerable:!0,get:function(){return v(u).default}});var c=t("M1wFS+FZ");Object.defineProperty(exports,"PhotoshopPicker",{enumerable:!0,get:function(){return v(c).default}});var f=t("3l3fajAv");Object.defineProperty(exports,"SketchPicker",{enumerable:!0,get:function(){return v(f).default}});var d=t("yLZIYifI");Object.defineProperty(exports,"SliderPicker",{enumerable:!0,get:function(){return v(d).default}});var p=t("CUs3OVlX");Object.defineProperty(exports,"SwatchesPicker",{enumerable:!0,get:function(){return v(p).default}});var h=t("VNmdgZcm");Object.defineProperty(exports,"TwitterPicker",{enumerable:!0,get:function(){return v(h).default}});var m=t("99KYJWxP");Object.defineProperty(exports,"CustomPicker",{enumerable:!0,get:function(){return v(m).default}});var g=v(o);function v(e){return e&&e.__esModule?e:{default:e}}exports.default=g.default},ye8DUcb2:function(e,exports,t){e.exports=t("jaIgFIJB")(112)},yhk8OI6O:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ii0bleBb")),r=o(t("ivGQtwpr")),i=o(t("B0I5DBk0"));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n=this.maxSize&&(this.list.remove(i),delete this.hash[i.key],this.size--),(n=this.hash[e])?(n.val=t,this.list.moveToFront(n)):(n=new r(e,t),this.list.add(n),this.hash[e]=n,this.size++)},get:function(e){var t=this.hash[e];if(t)return this.list.moveToFront(t),t.val},reset:function(){this.size=0,this.hash={},this.list=new n}}),e.mixin(n.prototype,{add:function(e){this.head&&(e.next=this.head,this.head.prev=e),this.head=e,this.tail=this.tail||e},remove:function(e){e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev},moveToFront:function(e){this.remove(e),this.add(e)}}),t}(),i=function(){"use strict";var t;try{(t=window.localStorage).setItem("~~~","!"),t.removeItem("~~~")}catch(e){t=null}function n(n,r){this.prefix=["__",n,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+e.escapeRegExChars(this.prefix)),this.ls=r||t,!this.ls&&this._noop()}return e.mixin(n.prototype,{_prefix:function(e){return this.prefix+e},_ttlKey:function(e){return this._prefix(e)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=e.noop},_safeSet:function(e,t){try{this.ls.setItem(e,t)}catch(e){"QuotaExceededError"===e.name&&(this.clear(),this._noop())}},get:function(e){return this.isExpired(e)&&this.remove(e),o(this.ls.getItem(this._prefix(e)))},set:function(t,n,o){return e.isNumber(o)?this._safeSet(this._ttlKey(t),i(r()+o)):this.ls.removeItem(this._ttlKey(t)),this._safeSet(this._prefix(t),i(n))},remove:function(e){return this.ls.removeItem(this._ttlKey(e)),this.ls.removeItem(this._prefix(e)),this},clear:function(){var e,n=function(e){var n,r,i=[],o=t.length;for(n=0;nn)}}),n;function r(){return(new Date).getTime()}function i(t){return JSON.stringify(e.isUndefined(t)?null:t)}function o(e){return $.parseJSON(e)}}(),o=function(){"use strict";var t=0,n={},i=6,o=new r(10);function a(e){e=e||{},this.cancelled=!1,this.lastReq=null,this._send=e.transport,this._get=e.limiter?e.limiter(this._get):this._get,this._cache=!1===e.cache?new r(0):o}return a.setMaxPendingRequests=function(e){i=e},a.resetCache=function(){o.reset()},e.mixin(a.prototype,{_fingerprint:function(e){return(e=e||{}).url+e.type+$.param(e.data||{})},_get:function(e,r){var o,a,s=this;function l(e){r(null,e),s._cache.set(o,e)}function u(){r(!0)}function c(){t--,delete n[o],s.onDeckRequestArgs&&(s._get.apply(s,s.onDeckRequestArgs),s.onDeckRequestArgs=null)}o=this._fingerprint(e),this.cancelled||o!==this.lastReq||((a=n[o])?a.done(l).fail(u):tt[r]?r++:(i.push(e[n]),n++,r++);return i}(a,l):l}),a?e.map(function(e){for(var t={},n=[],r=0,i=e.length;r',menu:'
'}),selectors:n(o)}).css,html:i.html,classes:i.classes,selectors:i.selectors,mixin:function(t){e.mixin(t,i)}}};function n(t){var n={};return e.each(t,function(e,t){n[t]="."+e}),n}}(),r=function(){"use strict";var t;function n(e){e&&e.el||$.error("EventBus initialized without el"),this.$el=$(e.el)}return t={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},e.mixin(n.prototype,{_trigger:function(e,t){var n;return n=$.Event("typeahead:"+e),(t=t||[]).unshift(n),this.$el.trigger.apply(this.$el,t),n},before:function(e){var t;return t=[].slice.call(arguments,1),this._trigger("before"+e,t).isDefaultPrevented()},trigger:function(e){var n;this._trigger(e,[].slice.call(arguments,1)),(n=t[e])&&this._trigger(n,[].slice.call(arguments,1))}}),n}(),i=function(){"use strict";var e=/\s+/,t=window.setImmediate?function(e){n(function(){e()})}:function(e){setTimeout(function(){e()},0)};return{onSync:function(e,t,n){return r.call(this,"sync",e,t,n)},onAsync:function(e,t,n){return r.call(this,"async",e,t,n)},off:function(t){var n;if(!this._callbacks)return this;for(t=t.split(e);n=t.shift();)delete this._callbacks[n];return this},trigger:function(n){var r,o,a,s,l;if(!this._callbacks)return this;for(n=n.split(e),a=[].slice.call(arguments,1);(r=n.shift())&&(o=this._callbacks[r]);)s=i(o.sync,this,[r].concat(a)),l=i(o.async,this,[r].concat(a)),s()&&t(l);return this}};function r(t,n,r,i){var o;if(!r)return this;for(n=n.split(e),r=i?function(e,t){return e.bind?e.bind(t):function(){e.apply(t,[].slice.call(arguments,0))}}(r,i):r,this._callbacks=this._callbacks||{};o=n.shift();)this._callbacks[o]=this._callbacks[o]||{sync:[],async:[]},this._callbacks[o][t].push(r);return this}function i(e,t,n){return function(){for(var r,i=0,o=e.length;!r&&i