web-interface.assets.builtins.8082683cbeb94d06c5f9.js Maven / Gradle / Ivy
/*! For license information please see builtins.8082683cbeb94d06c5f9.js.LICENSE.txt */
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(exports,t,e){n.o(exports,t)||Object.defineProperty(exports,t,{enumerable:!0,get:e})},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(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({"+CppQpVm":function(t,e,n){"use strict";var r=n("PdklNqvR");window.graylogHistory||(window.graylogHistory=Object(r.createBrowserHistory)()),e.a=window.graylogHistory},"+I+lImdb":function(t,exports,e){"use strict";var n=e("yAcToaBS"),r=e("OPxZozoA").isArrayOrTypedArray;function i(t,e){return function(){var n,o,a,s,u,c=t;for(s=0;se?1:t>=e?0:NaN}function v(t){return null===t?NaN:+t}function y(t){return!isNaN(t)}function m(t){return{left:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}i.ascending=g,i.descending=function(t,e){return et?1:e>=t?0:NaN},i.min=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++ir&&(n=r)}else{for(;++i=r){n=r;break}for(;++ir&&(n=r)}return n},i.max=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++in&&(n=r)}else{for(;++i=r){n=r;break}for(;++in&&(n=r)}return n},i.extent=function(t,e){var n,r,i,o=-1,a=t.length;if(1===arguments.length){for(;++o=r){n=i=r;break}for(;++or&&(n=r),i=r){n=i=r;break}for(;++or&&(n=r),i1)return a/(u-1)},i.deviation=function(){var t=i.variance.apply(this,arguments);return t?Math.sqrt(t):t};var b=m(g);function _(t){return t.length}i.bisectLeft=b.left,i.bisect=i.bisectRight=b.right,i.bisector=function(t){return m(1===t.length?function(e,n){return g(t(e),n)}:t)},i.shuffle=function(t,e,n){(o=arguments.length)<3&&(n=t.length,o<2&&(e=0));for(var r,i,o=n-e;o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t},i.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},i.pairs=function(t){for(var e=0,n=t.length-1,r=t[0],i=new Array(n<0?0:n);e=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n};var w=Math.abs;function x(t){for(var e=1;t*e%1;)e*=10;return e}function S(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function O(){this._=Object.create(null)}i.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n==1/0)throw new Error("infinite range");var r,i=[],o=x(w(n)),a=-1;if(t*=o,e*=o,(n*=o)<0)for(;(r=t+n*++a)>e;)i.push(r/o);else for(;(r=t+n*++a)=r.length)return e?e.call(n,o):t?o.sort(t):o;for(var u,c,l,f,h=-1,d=o.length,p=r[s++],g=new O;++h=r.length)return t;var n=[],i=o[e++];return t.forEach((function(t,r){n.push({key:t,values:s(r,e)})})),i?n.sort((function(t,e){return i(t.key,e.key)})):n}return n.map=function(t,e){return a(e,t,0)},n.entries=function(t){return s(a(i.map,t,0),0)},n.key=function(t){return r.push(t),n},n.sortKeys=function(t){return o[r.length-1]=t,n},n.sortValues=function(e){return t=e,n},n.rollup=function(t){return e=t,n},n},i.set=function(t){var e=new M;if(t)for(var n=0,r=t.length;n=0&&(r=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},i.event=null,i.requote=function(t){return t.replace(H,"\\$&")};var H=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,V={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]};function G(t){return V(t,K),t}var W=function(t,e){return e.querySelector(t)},J=function(t,e){return e.querySelectorAll(t)},Q=function(t,e){var n=t.matches||t[D(t,"matchesSelector")];return(Q=function(t,e){return n.call(t,e)})(t,e)};"function"==typeof Sizzle&&(W=function(t,e){return Sizzle(t,e)[0]||null},J=Sizzle,Q=Sizzle.matchesSelector),i.selection=function(){return i.select(s.documentElement)};var K=i.selection.prototype=[];function Y(t){return"function"==typeof t?t:function(){return W(t,this)}}function X(t){return"function"==typeof t?t:function(){return J(t,this)}}K.select=function(t){var e,n,r,i,o=[];t=Y(t);for(var a=-1,s=this.length;++a=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),tt.hasOwnProperty(n)?{space:tt[n],local:t}:t}},K.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return(t=i.ns.qualify(t)).local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(et(e,t[e]));return this}return this.each(et(t,e))},K.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=it(t)).length,i=-1;if(e=n.classList){for(;++i=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},K.sort=function(t){t=dt.apply(this,arguments);for(var e=-1,n=this.length;++e=e&&(e=i+1);!(a=s[e])&&++e0&&(t=t.slice(0,o));var u=bt.get(t);function c(){var e=this[r];e&&(this.removeEventListener(t,e,e.$),delete this[r])}return u&&(t=u,s=wt),o?e?function(){var i=s(e,a(arguments));c.call(this),this.addEventListener(t,this[r]=i,i.$=n),i._=e}:c:e?F:function(){var e,n=new RegExp("^__on([^.]+)"+i.requote(t)+"$");for(var r in this)if(e=r.match(n)){var o=this[r];this.removeEventListener(e[1],o,o.$),delete this[r]}}}i.selection.enter=gt,i.selection.enter.prototype=vt,vt.append=K.append,vt.empty=K.empty,vt.node=K.node,vt.call=K.call,vt.size=K.size,vt.select=function(t){for(var e,n,r,i,o,a=[],s=-1,u=this.length;++s0?1:t<0?-1:0}function Ft(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function Lt(t){return t>1?0:t<-1?jt:Math.acos(t)}function Nt(t){return t>1?It:t<-1?-It:Math.asin(t)}function zt(t){return((t=Math.exp(t))+1/t)/2}function Bt(t){return(t=Math.sin(t/2))*t}var qt=Math.SQRT2;i.interpolateZoom=function(t,e){var n,r,i=t[0],o=t[1],a=t[2],s=e[0],u=e[1],c=e[2],l=s-i,f=u-o,h=l*l+f*f;if(h0&&(t=t.transition().duration(g)),t.call(x.event)}function A(){u&&u.domain(a.range().map((function(t){return(t-h.x)/h.k})).map(a.invert)),f&&f.domain(l.range().map((function(t){return(t-h.y)/h.k})).map(l.invert))}function C(t){v++||t({type:"zoomstart"})}function E(t){A(),t({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function j(t){--v||(t({type:"zoomend"}),e=null)}function R(){var t=this,e=w.of(t,arguments),n=0,r=i.select(c(t)).on(m,s).on(b,u),o=S(i.mouse(t)),a=Ot(t);function s(){n=1,T(i.mouse(t),o),E(e)}function u(){r.on(m,null).on(b,null),a(n),j(e)}Us.call(t),C(e)}function M(){var t,e=this,n=w.of(e,arguments),r={},a=0,s=".zoom-"+i.event.changedTouches[0].identifier,u="touchmove"+s,c="touchend"+s,l=[],f=i.select(e),d=Ot(e);function p(){var n=i.touches(e);return t=h.k,n.forEach((function(t){t.identifier in r&&(r[t.identifier]=S(t))})),n}function g(){var t=i.event.target;i.select(t).on(u,v).on(c,m),l.push(t);for(var n=i.event.changedTouches,s=0,f=n.length;s1){y=d[0];var b=d[1],_=y[0]-b[0],w=y[1]-b[1];a=_*_+w*w}}function v(){var s,u,c,l,f=i.touches(e);Us.call(e);for(var h=0,d=f.length;h360?t-=360:t<0&&(t+=360),t<60?r+(i-r)*t/60:t<180?i:t<240?r+(i-r)*(240-t)/60:r}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)||e<0?0:e>1?1:e,r=2*(n=n<0?0:n>1?1:n)-(i=n<=.5?n*(1+e):n+e-n*e),new ce(o(t+120),o(t),o(t-120))}function Yt(t,e,n){return this instanceof Yt?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof Yt?new Yt(t.h,t.c,t.l):oe(t instanceof $t?t.l:(t=ve((t=i.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new Yt(t,e,n)}Qt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Jt(this.h,this.s,this.l/t)},Qt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Jt(this.h,this.s,t*this.l)},Qt.rgb=function(){return Kt(this.h,this.s,this.l)},i.hcl=Yt;var Xt=Yt.prototype=new Wt;function Zt(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new $t(n,Math.cos(t*=Pt)*e,Math.sin(t)*e)}function $t(t,e,n){return this instanceof $t?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof $t?new $t(t.l,t.a,t.b):t instanceof Yt?Zt(t.h,t.c,t.l):ve((t=ce(t)).r,t.g,t.b):new $t(t,e,n)}Xt.brighter=function(t){return new Yt(this.h,this.c,Math.min(100,this.l+te*(arguments.length?t:1)))},Xt.darker=function(t){return new Yt(this.h,this.c,Math.max(0,this.l-te*(arguments.length?t:1)))},Xt.rgb=function(){return Zt(this.h,this.c,this.l).rgb()},i.lab=$t;var te=18,ee=.95047,ne=1.08883,re=$t.prototype=new Wt;function ie(t,e,n){var r=(t+16)/116,i=r+e/500,o=r-n/200;return new ce(ue(3.2404542*(i=ae(i)*ee)-1.5371385*(r=1*ae(r))-.4985314*(o=ae(o)*ne)),ue(-.969266*i+1.8760108*r+.041556*o),ue(.0556434*i-.2040259*r+1.0572252*o))}function oe(t,e,n){return t>0?new Yt(Math.atan2(n,e)*Dt,Math.sqrt(e*e+n*n),t):new Yt(NaN,NaN,t)}function ae(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function se(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function ue(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ce(t,e,n){return this instanceof ce?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof ce?new ce(t.r,t.g,t.b):pe(""+t,ce,Kt):new ce(t,e,n)}function le(t){return new ce(t>>16,t>>8&255,255&t)}function fe(t){return le(t)+""}re.brighter=function(t){return new $t(Math.min(100,this.l+te*(arguments.length?t:1)),this.a,this.b)},re.darker=function(t){return new $t(Math.max(0,this.l-te*(arguments.length?t:1)),this.a,this.b)},re.rgb=function(){return ie(this.l,this.a,this.b)},i.rgb=ce;var he=ce.prototype=new Wt;function de(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function pe(t,e,n){var r,i,o,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(me(i[0]),me(i[1]),me(i[2]))}return(o=be.get(t))?e(o.r,o.g,o.b):(null==t||"#"!==t.charAt(0)||isNaN(o=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&o)>>4,a|=a>>4,s=240&o,s|=s>>4,u=15&o,u|=u<<4):7===t.length&&(a=(16711680&o)>>16,s=(65280&o)>>8,u=255&o)),e(a,s,u))}function ge(t,e,n){var r,i,o=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),s=a-o,u=(a+o)/2;return s?(i=u<.5?s/(a+o):s/(2-a-o),r=t==a?(e-n)/s+(e0&&u<1?0:r),new Jt(r,i,u)}function ve(t,e,n){var r=se((.4124564*(t=ye(t))+.3575761*(e=ye(e))+.1804375*(n=ye(n)))/ee),i=se((.2126729*t+.7151522*e+.072175*n)/1);return $t(116*i-16,500*(r-i),200*(i-se((.0193339*t+.119192*e+.9503041*n)/ne)))}function ye(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function me(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}he.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b,i=30;return e||n||r?(e&&e=200&&e<300||304===e){try{t=n.call(o,c)}catch(t){return void s.error.call(o,t)}s.load.call(o,t)}else s.error.call(o,c)}return this.XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(t)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState>3&&f()},c.onprogress=function(t){var e=i.event;i.event=t;try{s.progress.call(o,c)}finally{i.event=e}},o.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==e?delete u[t]:u[t]=e+"",o)},o.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",o):e},o.responseType=function(t){return arguments.length?(l=t,o):l},o.response=function(t){return n=t,o},["get","post"].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(a(arguments)))}})),o.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),c.open(n,t,!0),null==e||"accept"in u||(u.accept=e+",*/*"),c.setRequestHeader)for(var a in u)c.setRequestHeader(a,u[a]);return null!=e&&c.overrideMimeType&&c.overrideMimeType(e),null!=l&&(c.responseType=l),null!=i&&o.on("error",i).on("load",(function(t){i(null,t)})),s.beforesend.call(o,c),c.send(null==r?null:r),o},o.abort=function(){return c.abort(),o},i.rebind(o,s,"on"),null==r?o:o.get(function(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}(r))}be.forEach((function(t,e){be.set(t,le(e))})),i.functor=_e,i.xhr=we(I),i.dsv=function(t,e){var n=new RegExp('["'+t+"\n]"),r=t.charCodeAt(0);function i(t,n,r){arguments.length<3&&(r=n,n=null);var i=xe(t,e,null==n?o:a(n),r);return i.row=function(t){return arguments.length?i.response(null==(n=t)?o:a(t)):n},i}function o(t){return i.parse(t.responseText)}function a(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(u).join(t)}function u(t){return n.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}return i.parse=function(t,e){var n;return i.parseRows(t,(function(t,r){if(n)return n(t,r-1);var i=new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+"]"})).join(",")+"}");n=e?function(t,n){return e(i(t),n)}:i}))},i.parseRows=function(t,e){var n,i,o={},a={},s=[],u=t.length,c=0,l=0;function f(){if(c>=u)return a;if(i)return i=!1,o;var e=c;if(34===t.charCodeAt(e)){for(var n=e;n++24?(isFinite(e)&&(clearTimeout(ke),ke=setTimeout(Ee,e)),Te=0):(Te=1,Ae(Ee))}function je(){for(var t=Date.now(),e=Se;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Re(){for(var t,e=Se,n=1/0;e;)e.c?(e.t8?function(t){return t/n}:function(t){return t*n},symbol:t}}));function Pe(t){var e=t.decimal,n=t.thousands,r=t.grouping,o=t.currency,a=r&&n?function(t,e){for(var i=t.length,o=[],a=0,s=r[0],u=0;i>0&&s>0&&(u+s+1>e&&(s=Math.max(1,e-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>e));)s=r[a=(a+1)%r.length];return o.reverse().join(n)}:I;return function(t){var n=De.exec(t),r=n[1]||" ",s=n[2]||">",u=n[3]||"-",c=n[4]||"",l=n[5],f=+n[6],h=n[7],d=n[8],p=n[9],g=1,v="",y="",m=!1,b=!0;switch(d&&(d=+d.substring(1)),(l||"0"===r&&"="===s)&&(l=r="0",s="="),p){case"n":h=!0,p="g";break;case"%":g=100,y="%",p="f";break;case"p":g=100,y="%",p="r";break;case"b":case"o":case"x":case"X":"#"===c&&(v="0"+p.toLowerCase());case"c":b=!1;case"d":m=!0,d=0;break;case"s":g=-1,p="r"}"$"===c&&(v=o[0],y=o[1]),"r"!=p||d||(p="g"),null!=d&&("g"==p?d=Math.max(1,Math.min(21,d)):"e"!=p&&"f"!=p||(d=Math.max(0,Math.min(20,d)))),p=Ue.get(p)||Fe;var _=l&&h;return function(t){var n=y;if(m&&t%1)return"";var o=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===u?"":u;if(g<0){var c=i.formatPrefix(t,d);t=c.scale(t),n=c.symbol+y}else t*=g;var w,x,S=(t=p(t,d)).lastIndexOf(".");if(S<0){var O=b?t.lastIndexOf("e"):-1;O<0?(w=t,x=""):(w=t.substring(0,O),x=t.substring(O))}else w=t.substring(0,S),x=e+t.substring(S+1);!l&&h&&(w=a(w,1/0));var T=v.length+w.length+x.length+(_?0:o.length),k=T"===s?k+o+t:"^"===s?k.substring(0,T>>=1)+o+t+k.substring(T):o+(_?t:k+t))+n}}}i.formatPrefix=function(t,e){var n=0;return(t=+t)&&(t<0&&(t*=-1),e&&(t=i.round(t,Me(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Ie[8+n/3]};var De=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Ue=i.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=i.round(t,Me(t,e))).toFixed(Math.max(0,Math.min(20,Me(t*(1+1e-15),e))))}});function Fe(t){return t+""}var Le=i.time={},Ne=Date;function ze(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}ze.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Be.setUTCDate.apply(this._,arguments)},setDay:function(){Be.setUTCDay.apply(this._,arguments)},setFullYear:function(){Be.setUTCFullYear.apply(this._,arguments)},setHours:function(){Be.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Be.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Be.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Be.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Be.setUTCSeconds.apply(this._,arguments)},setTime:function(){Be.setTime.apply(this._,arguments)}};var Be=Date.prototype;function qe(t,e,n){function r(e){var n=t(e),r=o(n,1);return e-n1)for(;a=c)return-1;if(37===(i=e.charCodeAt(s++))){if(a=e.charAt(s++),!(o=x[a in Ge?e.charAt(s++):a])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}l.utc=function(t){var e=l(t);function n(t){try{var n=new(Ne=ze);return n._=t,e(n)}finally{Ne=Date}}return n.parse=function(t){try{Ne=ze;var n=e.parse(t);return n&&n._}finally{Ne=Date}},n.toString=e.toString,n},l.multi=l.utc.multi=dn;var h=i.map(),d=Ke(a),p=Ye(a),g=Ke(s),v=Ye(s),y=Ke(u),m=Ye(u),b=Ke(c),_=Ye(c);o.forEach((function(t,e){h.set(t.toLowerCase(),e)}));var w={a:function(t){return s[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:l(e),d:function(t,e){return Qe(t.getDate(),e,2)},e:function(t,e){return Qe(t.getDate(),e,2)},H:function(t,e){return Qe(t.getHours(),e,2)},I:function(t,e){return Qe(t.getHours()%12||12,e,2)},j:function(t,e){return Qe(1+Le.dayOfYear(t),e,3)},L:function(t,e){return Qe(t.getMilliseconds(),e,3)},m:function(t,e){return Qe(t.getMonth()+1,e,2)},M:function(t,e){return Qe(t.getMinutes(),e,2)},p:function(t){return o[+(t.getHours()>=12)]},S:function(t,e){return Qe(t.getSeconds(),e,2)},U:function(t,e){return Qe(Le.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Qe(Le.mondayOfYear(t),e,2)},x:l(n),X:l(r),y:function(t,e){return Qe(t.getFullYear()%100,e,2)},Y:function(t,e){return Qe(t.getFullYear()%1e4,e,4)},Z:fn,"%":function(){return"%"}},x={a:function(t,e,n){g.lastIndex=0;var r=g.exec(e.slice(n));return r?(t.w=v.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){d.lastIndex=0;var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){b.lastIndex=0;var r=b.exec(e.slice(n));return r?(t.m=_.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){y.lastIndex=0;var r=y.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,e,n){return f(t,w.c.toString(),e,n)},d:on,e:on,H:sn,I:sn,j:an,L:ln,m:rn,M:un,p:function(t,e,n){var r=h.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)},S:cn,U:Ze,w:Xe,W:$e,x:function(t,e,n){return f(t,w.x.toString(),e,n)},X:function(t,e,n){return f(t,w.X.toString(),e,n)},y:en,Y:tn,Z:nn,"%":hn};return l}Le.year=qe((function(t){return(t=Le.day(t)).setMonth(0,1),t}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t){return t.getFullYear()})),Le.years=Le.year.range,Le.years.utc=Le.year.utc.range,Le.day=qe((function(t){var e=new Ne(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t){return t.getDate()-1})),Le.days=Le.day.range,Le.days.utc=Le.day.utc.range,Le.dayOfYear=function(t){var e=Le.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(t,e){e=7-e;var n=Le[t]=qe((function(t){return(t=Le.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t}),(function(t,e){t.setDate(t.getDate()+7*Math.floor(e))}),(function(t){var n=Le.year(t).getDay();return Math.floor((Le.dayOfYear(t)+(n+e)%7)/7)-(n!==e)}));Le[t+"s"]=n.range,Le[t+"s"].utc=n.utc.range,Le[t+"OfYear"]=function(t){var n=Le.year(t).getDay();return Math.floor((Le.dayOfYear(t)+(n+e)%7)/7)}})),Le.week=Le.sunday,Le.weeks=Le.sunday.range,Le.weeks.utc=Le.sunday.utc.range,Le.weekOfYear=Le.sundayOfYear;var Ge={"-":"",_:" ",0:"0"},We=/^\s*\d+/,Je=/^%/;function Qe(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+i[0].length):-1}function nn(t,e,n){return/^[+-]\d{4}$/.test(e=e.slice(n,n+5))?(t.Z=-e,n+5):-1}function rn(t,e,n){We.lastIndex=0;var r=We.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function on(t,e,n){We.lastIndex=0;var r=We.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function an(t,e,n){We.lastIndex=0;var r=We.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function sn(t,e,n){We.lastIndex=0;var r=We.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function un(t,e,n){We.lastIndex=0;var r=We.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function cn(t,e,n){We.lastIndex=0;var r=We.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ln(t,e,n){We.lastIndex=0;var r=We.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function fn(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=w(e)/60|0,i=w(e)%60;return n+Qe(r,"0",2)+Qe(i,"0",2)}function hn(t,e,n){Je.lastIndex=0;var r=Je.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function dn(t){for(var e=t.length,n=-1;++n=0?1:-1,s=a*o,u=Math.cos(e),c=Math.sin(e),l=i*c,f=r*u+l*Math.cos(s),h=l*a*Math.sin(s);Dn.add(Math.atan2(h,f)),n=t,r=u,i=c}Un.point=function(a,s){Un.point=o,n=(t=a)*Pt,r=Math.cos(s=(e=s)*Pt/2+jt/4),i=Math.sin(s)},Un.lineEnd=function(){o(t,e)}}function Ln(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function Nn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function zn(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Bn(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function qn(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Hn(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Vn(t){return[Math.atan2(t[1],t[0]),Nt(t[2])]}function Gn(t,e){return w(t[0]-e[0])Ct?r=90:c<-Ct&&(e=-90),f[0]=t,f[1]=n}};function d(i,o){l.push(f=[t=i,n=i]),or&&(r=o)}function p(i,a){var s=Ln([i*Pt,a*Pt]);if(u){var c=zn(u,s),l=zn([c[1],-c[0],0],c);Hn(l),l=Vn(l);var f=i-o,h=f>0?1:-1,p=l[0]*Dt*h,g=w(f)>180;if(g^(h*or&&(r=v);else if(g^(h*o<(p=(p+360)%360-180)&&pr&&(r=a);g?i_(t,n)&&(n=i):_(i,n)>_(t,n)&&(t=i):n>=t?(in&&(n=i)):i>o?_(t,i)>_(t,n)&&(n=i):_(i,n)>_(t,n)&&(t=i)}else d(i,a);u=s,o=i}function g(){h.point=p}function v(){f[0]=t,f[1]=n,h.point=d,u=null}function y(t,e){if(u){var n=t-o;c+=w(n)>180?n+(n>0?360:-360):n}else a=t,s=e;Un.point(t,e),p(t,e)}function m(){Un.lineStart()}function b(){y(a,s),Un.lineEnd(),w(c)>Ct&&(t=-(n=180)),f[0]=t,f[1]=n,u=null}function _(t,e){return(e-=t)<0?e+360:e}function x(t,e){return t[0]-e[0]}function S(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t_(g[0],g[1])&&(g[1]=d[1]),_(d[0],g[1])>_(g[0],g[1])&&(g[0]=d[0])):s.push(g=d);for(var u,c,d,p=-1/0,g=(a=0,s[c=s.length-1]);a<=c;g=d,++a)d=s[a],(u=_(g[1],d[0]))>p&&(p=u,t=d[0],n=g[1])}return l=f=null,t===1/0||e===1/0?[[NaN,NaN],[NaN,NaN]]:[[t,e],[n,r]]}}(),i.geo.centroid=function(t){On=Tn=kn=An=Cn=En=jn=Rn=Mn=In=Pn=0,i.geo.stream(t,Wn);var e=Mn,n=In,r=Pn,o=e*e+n*n+r*r;return o=0;--s)i.point((f=l[s])[0],f[1]);else r(d.x,d.p.x,-1,i);d=d.p}l=(d=d.o).z,p=!p}while(!d.v);i.lineEnd()}}}function er(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,S=x*w,O=S>jt,T=p*b;if(Dn.add(Math.atan2(T*x*Math.sin(S),g*_+T*Math.cos(S))),o+=O?w+x*Rt:w,O^h>=n^y>=n){var k=zn(Ln(f),Ln(t));Hn(k);var A=zn(i,k);Hn(A);var C=(O^w>=0?-1:1)*Nt(A[2]);(r>C||r===C&&(k[0]||k[1]))&&(a+=O^w>=0?1:-1)}if(!v++)break;h=y,p=b,g=_,f=t}}return(o<-Ct||o0){for(b||(a.polygonStart(),b=!0),a.lineStart();++o1&&2&e&&n.push(n.pop().concat(n.shift())),s.push(n.filter(ir))}return l}}function ir(t){return t.length>1}function or(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:F,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function ar(t,e){return((t=t.x)[0]<0?t[1]-It-Ct:It-t[1])-((e=e.x)[0]<0?e[1]-It-Ct:It-e[1])}var sr=rr($n,(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var s=o>0?jt:-jt,u=w(o-n);w(u-jt)0?It:-It),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(o,r),e=0):i!==s&&u>=jt&&(w(n-i)Ct?Math.atan((Math.sin(e)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(e))*Math.sin(t))/(i*o*a)):(e+r)/2}(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=o,r=a),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*It,r.point(-jt,i),r.point(0,i),r.point(jt,i),r.point(jt,0),r.point(jt,-i),r.point(0,-i),r.point(-jt,-i),r.point(-jt,0),r.point(-jt,i);else if(w(t[0]-e[0])>Ct){var o=t[0]0,r=w(e)>Ct;return rr(i,(function(t){var e,s,u,c,l;return{lineStart:function(){c=u=!1,l=1},point:function(f,h){var d,p=[f,h],g=i(f,h),v=n?g?0:a(f,h):g?a(f+(f<0?jt:-jt),h):0;if(!e&&(c=u=g)&&t.lineStart(),g!==u&&(d=o(e,p),(Gn(e,d)||Gn(p,d))&&(p[0]+=Ct,p[1]+=Ct,g=i(p[0],p[1]))),g!==u)l=0,g?(t.lineStart(),d=o(p,e),t.point(d[0],d[1])):(d=o(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(r&&e&&n^g){var y;v&s||!(y=o(p,e,!0))||(l=0,n?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||e&&Gn(e,p)||t.point(p[0],p[1]),e=p,u=g,s=v},lineEnd:function(){u&&t.lineEnd(),e=null},clean:function(){return l|(c&&u)<<1}}}),Gr(t,6*Pt),n?[0,-t]:[-jt,t-jt]);function i(t,n){return Math.cos(t)*Math.cos(n)>e}function o(t,n,r){var i=[1,0,0],o=zn(Ln(t),Ln(n)),a=Nn(o,o),s=o[0],u=a-s*s;if(!u)return!r&&t;var c=e*a/u,l=-e*s/u,f=zn(i,o),h=qn(i,c);Bn(h,qn(o,l));var d=f,p=Nn(h,d),g=Nn(d,d),v=p*p-g*(Nn(h,h)-1);if(!(v<0)){var y=Math.sqrt(v),m=qn(d,(-p-y)/g);if(Bn(m,h),m=Vn(m),!r)return m;var b,_=t[0],x=n[0],S=t[1],O=n[1];x<_&&(b=_,_=x,x=b);var T=x-_,k=w(T-jt)0^m[1]<(w(m[0]-_)jt^(_<=m[0]&&m[0]<=x)){var A=qn(d,(-p+y)/g);return Bn(A,h),[m,Vn(A)]}}}function a(e,r){var i=n?t:jt-t,o=0;return e<-i?o|=1:e>i&&(o|=2),r<-i?o|=4:r>i&&(o|=8),o}}function cr(t,e,n,r){return function(i){var o,a=i.a,s=i.b,u=a.x,c=a.y,l=0,f=1,h=s.x-u,d=s.y-c;if(o=t-u,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>f)return;o>l&&(l=o)}if(o=n-u,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>l&&(l=o)}else if(h>0){if(o0)){if(o/=d,d<0){if(o0){if(o>f)return;o>l&&(l=o)}if(o=r-c,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>l&&(l=o)}else if(d>0){if(o0&&(i.a={x:u+l*h,y:c+l*d}),f<1&&(i.b={x:u+f*h,y:c+f*d}),i}}}}}}var lr=1e9;function fr(t,e,n,r){return function(u){var c,l,f,h,d,p,g,v,y,m,b,_=u,w=or(),x=cr(t,e,n,r),S={point:k,lineStart:function(){S.point=A,l&&l.push(f=[]);m=!0,y=!1,g=v=NaN},lineEnd:function(){c&&(A(h,d),p&&y&&w.rejoin(),c.push(w.buffer()));S.point=k,y&&u.lineEnd()},polygonStart:function(){u=w,c=[],l=[],b=!0},polygonEnd:function(){u=_,c=i.merge(c);var e=function(t){for(var e=0,n=l.length,r=t[1],i=0;ir&&Ft(c,o,t)>0&&++e:o[1]<=r&&Ft(c,o,t)<0&&--e,c=o;return 0!==e}([t,r]),n=b&&e,o=c.length;(n||o)&&(u.polygonStart(),n&&(u.lineStart(),O(null,null,1,u),u.lineEnd()),o&&tr(c,a,e,O,u),u.polygonEnd()),c=l=f=null}};function O(i,a,u,c){var l=0,f=0;if(null==i||(l=o(i,u))!==(f=o(a,u))||s(i,a)<0^u>0)do{c.point(0===l||3===l?t:n,l>1?r:e)}while((l=(l+u+4)%4)!==f);else c.point(a[0],a[1])}function T(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function k(t,e){T(t,e)&&u.point(t,e)}function A(t,e){var n=T(t=Math.max(-1e9,Math.min(lr,t)),e=Math.max(-1e9,Math.min(lr,e)));if(l&&f.push([t,e]),m)h=t,d=e,p=n,m=!1,n&&(u.lineStart(),u.point(t,e));else if(n&&y)u.point(t,e);else{var r={a:{x:g,y:v},b:{x:t,y:e}};x(r)?(y||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),b=!1):n&&(u.lineStart(),u.point(t,e),b=!1)}g=t,v=e,y=n}return S};function o(r,i){return w(r[0]-t)0?0:3:w(r[0]-n)0?2:1:w(r[1]-e)0?1:0:i>0?3:2}function a(t,e){return s(t.x,e.x)}function s(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}}function hr(t){var e=0,n=jt/3,r=Fr(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*jt/180,n=t[1]*jt/180):[e/jt*180,n/jt*180]},i}function dr(t,e){var n=Math.sin(t),r=(n+Math.sin(e))/2,i=1+n*(2*r-n),o=Math.sqrt(i)/r;function a(t,e){var n=Math.sqrt(i-2*r*Math.sin(e))/r;return[n*Math.sin(t*=r),o-n*Math.cos(t)]}return a.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/r,Nt((i-(t*t+n*n)*r*r)/(2*r))]},a}i.geo.clipExtent=function(){var t,e,n,r,i,o,a={stream:function(t){return i&&(i.valid=!1),(i=o(t)).valid=!0,i},extent:function(s){return arguments.length?(o=fr(t=+s[0][0],e=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),a):[[t,e],[n,r]]}};return a.extent([[0,0],[960,500]])},(i.geo.conicEqualArea=function(){return hr(dr)}).raw=dr,i.geo.albers=function(){return i.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},i.geo.albersUsa=function(){var t,e,n,r,o=i.geo.albers(),a=i.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=i.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(e,n){t=[e,n]}};function c(i){var o=i[0],a=i[1];return t=null,e(o,a),t||(n(o,a),t)||r(o,a),t}return c.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?s:o).invert(t)},c.stream=function(t){var e=o.stream(t),n=a.stream(t),r=s.stream(t);return{point:function(t,i){e.point(t,i),n.point(t,i),r.point(t,i)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},c.precision=function(t){return arguments.length?(o.precision(t),a.precision(t),s.precision(t),c):o.precision()},c.scale=function(t){return arguments.length?(o.scale(t),a.scale(.35*t),s.scale(t),c.translate(o.translate())):o.scale()},c.translate=function(t){if(!arguments.length)return o.translate();var i=o.scale(),l=+t[0],f=+t[1];return e=o.translate(t).clipExtent([[l-.455*i,f-.238*i],[l+.455*i,f+.238*i]]).stream(u).point,n=a.translate([l-.307*i,f+.201*i]).clipExtent([[l-.425*i+Ct,f+.12*i+Ct],[l-.214*i-Ct,f+.234*i-Ct]]).stream(u).point,r=s.translate([l-.205*i,f+.212*i]).clipExtent([[l-.214*i+Ct,f+.166*i+Ct],[l-.115*i-Ct,f+.234*i-Ct]]).stream(u).point,c},c.scale(1070)};var pr,gr,vr,yr,mr,br,_r={point:F,lineStart:F,lineEnd:F,polygonStart:function(){gr=0,_r.lineStart=wr},polygonEnd:function(){_r.lineStart=_r.lineEnd=_r.point=F,pr+=w(gr/2)}};function wr(){var t,e,n,r;function i(t,e){gr+=r*t-n*e,n=t,r=e}_r.point=function(o,a){_r.point=i,t=n=o,e=r=a},_r.lineEnd=function(){i(t,e)}}var xr={point:function(t,e){tmr&&(mr=t);ebr&&(br=e)},lineStart:F,lineEnd:F,polygonStart:F,polygonEnd:F};function Sr(){var t=Or(4.5),e=[],n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(e){return t=Or(e),n},result:function(){if(e.length){var t=e.join("");return e=[],t}}};function r(n,r){e.push("M",n,",",r,t)}function i(t,r){e.push("M",t,",",r),n.point=o}function o(t,n){e.push("L",t,",",n)}function a(){n.point=r}function s(){e.push("Z")}return n}function Or(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}var Tr,kr={point:Ar,lineStart:Cr,lineEnd:Er,polygonStart:function(){kr.lineStart=jr},polygonEnd:function(){kr.point=Ar,kr.lineStart=Cr,kr.lineEnd=Er}};function Ar(t,e){kn+=t,An+=e,++Cn}function Cr(){var t,e;function n(n,r){var i=n-t,o=r-e,a=Math.sqrt(i*i+o*o);En+=a*(t+n)/2,jn+=a*(e+r)/2,Rn+=a,Ar(t=n,e=r)}kr.point=function(r,i){kr.point=n,Ar(t=r,e=i)}}function Er(){kr.point=Ar}function jr(){var t,e,n,r;function i(t,e){var i=t-n,o=e-r,a=Math.sqrt(i*i+o*o);En+=a*(n+t)/2,jn+=a*(r+e)/2,Rn+=a,Mn+=(a=r*t-n*e)*(n+t),In+=a*(r+e),Pn+=3*a,Ar(n=t,r=e)}kr.point=function(o,a){kr.point=i,Ar(t=n=o,e=r=a)},kr.lineEnd=function(){i(t,e)}}function Rr(t){var e=4.5,n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(t){return e=t,n},result:F};function r(n,r){t.moveTo(n+e,r),t.arc(n,r,e,0,Rt)}function i(e,r){t.moveTo(e,r),n.point=o}function o(e,n){t.lineTo(e,n)}function a(){n.point=r}function s(){t.closePath()}return n}function Mr(t){var e=.5,n=Math.cos(30*Pt),r=16;function i(t){return(r?a:o)(t)}function o(e){return Dr(e,(function(n,r){n=t(n,r),e.point(n[0],n[1])}))}function a(e){var n,i,o,a,u,c,l,f,h,d,p,g,v={point:y,lineStart:m,lineEnd:_,polygonStart:function(){e.polygonStart(),v.lineStart=w},polygonEnd:function(){e.polygonEnd(),v.lineStart=m}};function y(n,r){n=t(n,r),e.point(n[0],n[1])}function m(){f=NaN,v.point=b,e.lineStart()}function b(n,i){var o=Ln([n,i]),a=t(n,i);s(f,h,l,d,p,g,f=a[0],h=a[1],l=n,d=o[0],p=o[1],g=o[2],r,e),e.point(f,h)}function _(){v.point=y,e.lineEnd()}function w(){m(),v.point=x,v.lineEnd=S}function x(t,e){b(n=t,e),i=f,o=h,a=d,u=p,c=g,v.point=b}function S(){s(f,h,l,d,p,g,i,o,n,a,u,c,r,e),v.lineEnd=_,_()}return v}function s(r,i,o,a,u,c,l,f,h,d,p,g,v,y){var m=l-r,b=f-i,_=m*m+b*b;if(_>4*e&&v--){var x=a+d,S=u+p,O=c+g,T=Math.sqrt(x*x+S*S+O*O),k=Math.asin(O/=T),A=w(w(O)-1)e||w((m*R+b*M)/_-.5)>.3||a*d+u*p+c*g0&&16,i):Math.sqrt(e)},i}function Ir(t){var e=Mr((function(e,n){return t([e*Dt,n*Dt])}));return function(t){return Lr(e(t))}}function Pr(t){this.stream=t}function Dr(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function Ur(t){return Fr((function(){return t}))()}function Fr(t){var e,n,r,o,a,s,u=Mr((function(t,n){return[(t=e(t,n))[0]*c+o,a-t[1]*c]})),c=150,l=480,f=250,h=0,d=0,p=0,g=0,v=0,y=sr,m=I,b=null,_=null;function w(t){return[(t=r(t[0]*Pt,t[1]*Pt))[0]*c+o,a-t[1]*c]}function x(t){return(t=r.invert((t[0]-o)/c,(a-t[1])/c))&&[t[0]*Dt,t[1]*Dt]}function S(){r=Zn(n=Br(p,g,v),e);var t=e(h,d);return o=l-t[0]*c,a=f+t[1]*c,O()}function O(){return s&&(s.valid=!1,s=null),w}return w.stream=function(t){return s&&(s.valid=!1),(s=Lr(y(n,u(m(t))))).valid=!0,s},w.clipAngle=function(t){return arguments.length?(y=null==t?(b=t,sr):ur((b=+t)*Pt),O()):b},w.clipExtent=function(t){return arguments.length?(_=t,m=t?fr(t[0][0],t[0][1],t[1][0],t[1][1]):I,O()):_},w.scale=function(t){return arguments.length?(c=+t,S()):c},w.translate=function(t){return arguments.length?(l=+t[0],f=+t[1],S()):[l,f]},w.center=function(t){return arguments.length?(h=t[0]%360*Pt,d=t[1]%360*Pt,S()):[h*Dt,d*Dt]},w.rotate=function(t){return arguments.length?(p=t[0]%360*Pt,g=t[1]%360*Pt,v=t.length>2?t[2]%360*Pt:0,S()):[p*Dt,g*Dt,v*Dt]},i.rebind(w,u,"precision"),function(){return e=t.apply(this,arguments),w.invert=e.invert&&x,S()}}function Lr(t){return Dr(t,(function(e,n){t.point(e*Pt,n*Pt)}))}function Nr(t,e){return[t,e]}function zr(t,e){return[t>jt?t-Rt:t<-jt?t+Rt:t,e]}function Br(t,e,n){return t?e||n?Zn(Hr(t),Vr(e,n)):Hr(t):e||n?Vr(e,n):zr}function qr(t){return function(e,n){return[(e+=t)>jt?e-Rt:e<-jt?e+Rt:e,n]}}function Hr(t){var e=qr(t);return e.invert=qr(-t),e}function Vr(t,e){var n=Math.cos(t),r=Math.sin(t),i=Math.cos(e),o=Math.sin(e);function a(t,e){var a=Math.cos(e),s=Math.cos(t)*a,u=Math.sin(t)*a,c=Math.sin(e),l=c*n+s*r;return[Math.atan2(u*i-l*o,s*n-c*r),Nt(l*i+u*o)]}return a.invert=function(t,e){var a=Math.cos(e),s=Math.cos(t)*a,u=Math.sin(t)*a,c=Math.sin(e),l=c*i-u*o;return[Math.atan2(u*i+c*o,s*n+l*r),Nt(l*n-s*r)]},a}function Gr(t,e){var n=Math.cos(t),r=Math.sin(t);return function(i,o,a,s){var u=a*e;null!=i?(i=Wr(n,i),o=Wr(n,o),(a>0?io)&&(i+=a*Rt)):(i=t+a*Rt,o=t-.5*u);for(var c,l=i;a>0?l>o:l2?t[2]*Pt:0),e.invert=function(e){return(e=t.invert(e[0]*Pt,e[1]*Pt))[0]*=Dt,e[1]*=Dt,e},e},zr.invert=Nr,i.geo.circle=function(){var t,e,n=[0,0],r=6;function i(){var t="function"==typeof n?n.apply(this,arguments):n,r=Br(-t[0]*Pt,-t[1]*Pt,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=r(t,e)),t[0]*=Dt,t[1]*=Dt}}),{type:"Polygon",coordinates:[i]}}return i.origin=function(t){return arguments.length?(n=t,i):n},i.angle=function(n){return arguments.length?(e=Gr((t=+n)*Pt,r*Pt),i):t},i.precision=function(n){return arguments.length?(e=Gr(t*Pt,(r=+n)*Pt),i):r},i.angle(90)},i.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Pt,i=t[1]*Pt,o=e[1]*Pt,a=Math.sin(r),s=Math.cos(r),u=Math.sin(i),c=Math.cos(i),l=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*a)*n+(n=c*l-u*f*s)*n),u*l+c*f*s)},i.geo.graticule=function(){var t,e,n,r,o,a,s,u,c,l,f,h,d=10,p=d,g=90,v=360,y=2.5;function m(){return{type:"MultiLineString",coordinates:b()}}function b(){return i.range(Math.ceil(r/g)*g,n,g).map(f).concat(i.range(Math.ceil(u/v)*v,s,v).map(h)).concat(i.range(Math.ceil(e/d)*d,t,d).filter((function(t){return w(t%g)>Ct})).map(c)).concat(i.range(Math.ceil(a/p)*p,o,p).filter((function(t){return w(t%v)>Ct})).map(l))}return m.lines=function(){return b().map((function(t){return{type:"LineString",coordinates:t}}))},m.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(h(s).slice(1),f(n).reverse().slice(1),h(u).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.majorExtent(t).minorExtent(t):m.minorExtent()},m.majorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],u=+t[0][1],s=+t[1][1],r>n&&(t=r,r=n,n=t),u>s&&(t=u,u=s,s=t),m.precision(y)):[[r,u],[n,s]]},m.minorExtent=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],o=+n[1][1],e>t&&(n=e,e=t,t=n),a>o&&(n=a,a=o,o=n),m.precision(y)):[[e,a],[t,o]]},m.step=function(t){return arguments.length?m.majorStep(t).minorStep(t):m.minorStep()},m.majorStep=function(t){return arguments.length?(g=+t[0],v=+t[1],m):[g,v]},m.minorStep=function(t){return arguments.length?(d=+t[0],p=+t[1],m):[d,p]},m.precision=function(i){return arguments.length?(y=+i,c=Jr(a,o,90),l=Qr(e,t,y),f=Jr(u,s,90),h=Qr(r,n,y),m):y},m.majorExtent([[-180,-90+Ct],[180,90-Ct]]).minorExtent([[-180,-80-Ct],[180,80+Ct]])},i.geo.greatArc=function(){var t,e,n=Kr,r=Yr;function o(){return{type:"LineString",coordinates:[t||n.apply(this,arguments),e||r.apply(this,arguments)]}}return o.distance=function(){return i.geo.distance(t||n.apply(this,arguments),e||r.apply(this,arguments))},o.source=function(e){return arguments.length?(n=e,t="function"==typeof e?null:e,o):n},o.target=function(t){return arguments.length?(r=t,e="function"==typeof t?null:t,o):r},o.precision=function(){return arguments.length?o:0},o},i.geo.interpolate=function(t,e){return n=t[0]*Pt,r=t[1]*Pt,i=e[0]*Pt,o=e[1]*Pt,a=Math.cos(r),s=Math.sin(r),u=Math.cos(o),c=Math.sin(o),l=a*Math.cos(n),f=a*Math.sin(n),h=u*Math.cos(i),d=u*Math.sin(i),p=2*Math.asin(Math.sqrt(Bt(o-r)+a*u*Bt(i-n))),g=1/Math.sin(p),(v=p?function(t){var e=Math.sin(t*=p)*g,n=Math.sin(p-t)*g,r=n*l+e*h,i=n*f+e*d,o=n*s+e*c;return[Math.atan2(i,r)*Dt,Math.atan2(o,Math.sqrt(r*r+i*i))*Dt]}:function(){return[n*Dt,r*Dt]}).distance=p,v;var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v},i.geo.length=function(t){return Tr=0,i.geo.stream(t,Xr),Tr};var Xr={sphere:F,point:F,lineStart:function(){var t,e,n;function r(r,i){var o=Math.sin(i*=Pt),a=Math.cos(i),s=w((r*=Pt)-t),u=Math.cos(s);Tr+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=n*o-e*a*u)*s),e*o+n*a*u),t=r,e=o,n=a}Xr.point=function(i,o){t=i*Pt,e=Math.sin(o*=Pt),n=Math.cos(o),Xr.point=r},Xr.lineEnd=function(){Xr.point=Xr.lineEnd=F}},lineEnd:F,polygonStart:F,polygonEnd:F};function Zr(t,e){function n(e,n){var r=Math.cos(e),i=Math.cos(n),o=t(r*i);return[o*i*Math.sin(e),o*Math.sin(n)]}return n.invert=function(t,n){var r=Math.sqrt(t*t+n*n),i=e(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(t*o,r*a),Math.asin(r&&n*o/r)]},n}var $r=Zr((function(t){return Math.sqrt(2/(1+t))}),(function(t){return 2*Math.asin(t/2)}));(i.geo.azimuthalEqualArea=function(){return Ur($r)}).raw=$r;var ti=Zr((function(t){var e=Math.acos(t);return e&&e/Math.sin(e)}),I);function ei(t,e){var n=Math.cos(t),r=function(t){return Math.tan(jt/4+t/2)},i=t===e?Math.sin(t):Math.log(n/Math.cos(e))/Math.log(r(e)/r(t)),o=n*Math.pow(r(t),i)/i;if(!i)return ii;function a(t,e){o>0?e<-It+Ct&&(e=-It+Ct):e>It-Ct&&(e=It-Ct);var n=o/Math.pow(r(e),i);return[n*Math.sin(i*t),o-n*Math.cos(i*t)]}return a.invert=function(t,e){var n=o-e,r=Ut(i)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/i,2*Math.atan(Math.pow(o/r,1/i))-It]},a}function ni(t,e){var n=Math.cos(t),r=t===e?Math.sin(t):(n-Math.cos(e))/(e-t),i=n/r+t;if(w(r)1&&Ft(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function hi(t,e){return t[0]-e[0]||t[1]-e[1]}(i.geo.stereographic=function(){return Ur(si)}).raw=si,ui.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-It]},(i.geo.transverseMercator=function(){var t=oi(ui),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90])}).raw=ui,i.geom={},i.geom.hull=function(t){var e=ci,n=li;if(arguments.length)return r(t);function r(t){if(t.length<3)return[];var r,i=_e(e),o=_e(n),a=t.length,s=[],u=[];for(r=0;r=0;--r)d.push(t[s[c[r]][2]]);for(r=+f;rCt)s=s.L;else{if(!((i=o-ji(s,a))>Ct)){r>-Ct?(e=s.P,n=s):i>-Ct?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}var u=Ti(t);if(bi.insert(e,u),e||n){if(e===n)return Di(e),n=Ti(e.site),bi.insert(u,n),u.edge=n.edge=Li(e.site,u.site),Pi(e),void Pi(n);if(n){Di(e),Di(n);var c=e.site,l=c.x,f=c.y,h=t.x-l,d=t.y-f,p=n.site,g=p.x-l,v=p.y-f,y=2*(h*v-d*g),m=h*h+d*d,b=g*g+v*v,_={x:(v*m-d*b)/y+l,y:(h*b-g*m)/y+f};zi(n.edge,c,p,_),u.edge=Li(c,t,null,_),n.edge=Li(t,p,null,_),Pi(e),Pi(n)}else u.edge=Li(e.site,u.site)}}function Ei(t,e){var n=t.site,r=n.x,i=n.y,o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(n=a.site).x,u=n.y,c=u-e;if(!c)return s;var l=s-r,f=1/o-1/c,h=l/c;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*c)-u+c/2+i-o/2)))/f+r:(r+s)/2}function ji(t,e){var n=t.N;if(n)return Ei(n,e);var r=t.site;return r.y===e?r.x:1/0}function Ri(t){this.site=t,this.edges=[]}function Mi(t,e){return e.angle-t.angle}function Ii(){Hi(this),this.x=this.y=this.arc=this.site=this.cy=null}function Pi(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var a=i.x,s=i.y,u=r.x-a,c=r.y-s,l=o.x-a,f=2*(u*(v=o.y-s)-c*l);if(!(f>=-Et)){var h=u*u+c*c,d=l*l+v*v,p=(v*h-c*d)/f,g=(u*d-l*h)/f,v=g+s,y=Si.pop()||new Ii;y.arc=t,y.site=i,y.x=p+a,y.y=v+Math.sqrt(p*p+g*g),y.cy=v,t.circle=y;for(var m=null,b=wi._;b;)if(y.y=s)return;if(h>p){if(o){if(o.y>=c)return}else o={x:v,y:u};n={x:v,y:c}}else{if(o){if(o.y1)if(h>p){if(o){if(o.y>=c)return}else o={x:(u-i)/r,y:u};n={x:(c-i)/r,y:c}}else{if(o){if(o.y=s)return}else o={x:a,y:r*a+i};n={x:s,y:r*s+i}}else{if(o){if(o.xCt||w(i-n)>Ct)&&(s.splice(a,0,new Bi(Ni(o.site,l,w(r-f)Ct?{x:f,y:w(e-f)Ct?{x:w(n-p)Ct?{x:h,y:w(e-h)Ct?{x:w(n-d)=n&&c.x<=i&&c.y>=r&&c.y<=a?[[n,a],[i,a],[i,r],[n,r]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(r(t,e)/Ct)*Ct,y:Math.round(i(t,e)/Ct)*Ct,i:e}}))}return a.links=function(t){return Ji(s(t)).edges.filter((function(t){return t.l&&t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},a.triangles=function(t){var e=[];return Ji(s(t)).cells.forEach((function(n,r){for(var i,o,a,s,u=n.site,c=n.edges.sort(Mi),l=-1,f=c.length,h=c[f-1].edge,d=h.l===u?h.r:h.l;++lo||f>a||h=w)<<1|e>=_,S=x+4;xo&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:no(n,r)})),o=oo.lastIndex;return og&&(g=u.x),u.y>v&&(v=u.y),c.push(u.x),l.push(u.y);else for(f=0;fg&&(g=b),_>v&&(v=_),c.push(b),l.push(_)}var x=g-d,S=v-p;function O(t,e,n,r,i,o,a,s){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var u=t.x,c=t.y;if(null!=u)if(w(u-n)+w(c-r)<.01)T(t,e,n,r,i,o,a,s);else{var l=t.point;t.x=t.y=t.point=null,T(t,l,u,c,i,o,a,s),T(t,e,n,r,i,o,a,s)}else t.x=n,t.y=r,t.point=e}else T(t,e,n,r,i,o,a,s)}function T(t,e,n,r,i,o,a,s){var u=.5*(i+a),c=.5*(o+s),l=n>=u,f=r>=c,h=f<<1|l;t.leaf=!1,l?i=u:a=u,f?o=c:s=c,O(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,n,r,i,o,a,s)}x>S?v=p+x:g=d+S;var k={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){O(k,t,+y(t,++f),+m(t,f),d,p,g,v)},visit:function(t){Zi(t,k,d,p,g,v)},find:function(t){return $i(k,t[0],t[1],d,p,g,v)}};if(f=-1,null==e){for(;++f=0&&!(n=i.interpolators[r](t,e)););return n}function so(t,e){var n,r=[],i=[],o=t.length,a=e.length,s=Math.min(t.length,e.length);for(n=0;n=1?1:t(e)}}function ho(t){return function(e){return 1-t(1-e)}}function po(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function go(t){return t*t}function vo(t){return t*t*t}function yo(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}function mo(t){return 1-Math.cos(t*It)}function bo(t){return Math.pow(2,10*(t-1))}function _o(t){return 1-Math.sqrt(1-t*t)}function wo(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function xo(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function So(t){var e,n,r,i=[t.a,t.b],o=[t.c,t.d],a=To(i),s=Oo(i,o),u=To(((e=o)[0]+=(r=-s)*(n=i)[0],e[1]+=r*n[1],e))||0;i[0]*o[1]=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=co.get(n)||uo,fo((r=lo.get(r)||I)(n.apply(null,o.call(arguments,1))))},i.interpolateHcl=function(t,e){t=i.hcl(t),e=i.hcl(e);var n=t.h,r=t.c,o=t.l,a=e.h-n,s=e.c-r,u=e.l-o;isNaN(s)&&(s=0,r=isNaN(r)?e.c:r);isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:a<-180&&(a+=360);return function(t){return Zt(n+a*t,r+s*t,o+u*t)+""}},i.interpolateHsl=function(t,e){t=i.hsl(t),e=i.hsl(e);var n=t.h,r=t.s,o=t.l,a=e.h-n,s=e.s-r,u=e.l-o;isNaN(s)&&(s=0,r=isNaN(r)?e.s:r);isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:a<-180&&(a+=360);return function(t){return Kt(n+a*t,r+s*t,o+u*t)+""}},i.interpolateLab=function(t,e){t=i.lab(t),e=i.lab(e);var n=t.l,r=t.a,o=t.b,a=e.l-n,s=e.a-r,u=e.b-o;return function(t){return ie(n+a*t,r+s*t,o+u*t)+""}},i.interpolateRound=xo,i.transform=function(t){var e=s.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new So(n?n.matrix:ko)})(t)},So.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ko={a:1,b:0,c:0,d:1,e:0,f:0};function Ao(t){return t.length?t.pop()+",":""}function Co(t,e){var n=[],r=[];return t=i.transform(t),e=i.transform(e),function(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:no(t[0],e[0])},{i:i-2,x:no(t[1],e[1])})}else(e[0]||e[1])&&n.push("translate("+e+")")}(t.translate,e.translate,n,r),function(t,e,n,r){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(Ao(n)+"rotate(",null,")")-2,x:no(t,e)})):e&&n.push(Ao(n)+"rotate("+e+")")}(t.rotate,e.rotate,n,r),function(t,e,n,r){t!==e?r.push({i:n.push(Ao(n)+"skewX(",null,")")-2,x:no(t,e)}):e&&n.push(Ao(n)+"skewX("+e+")")}(t.skew,e.skew,n,r),function(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var i=n.push(Ao(n)+"scale(",null,",",null,")");r.push({i:i-4,x:no(t[0],e[0])},{i:i-2,x:no(t[1],e[1])})}else 1===e[0]&&1===e[1]||n.push(Ao(n)+"scale("+e+")")}(t.scale,e.scale,n,r),t=e=null,function(t){for(var e,i=-1,o=r.length;++i0?n=e:(t.c=null,t.t=NaN,t=null,u.end({type:"end",alpha:n=0})):e>0&&(u.start({type:"start",alpha:n=e}),t=Ce(s.tick)),s):n},s.start=function(){var t,e,n,i=y.length,u=m.length,l=c[0],p=c[1];for(t=0;t=0;)n.push(i[r])}function Ho(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(o=t.children)&&(i=o.length))for(var i,o,a=-1;++a=0;)a.push(l=c[u]),l.parent=o,l.depth=o.depth+1;n&&(o.value=0),o.children=c}else n&&(o.value=+n.call(r,o,o.depth)||0),delete o.children;return Ho(i,(function(e){var r,i;t&&(r=e.children)&&r.sort(t),n&&(i=e.parent)&&(i.value+=e.value)})),s}return r.sort=function(e){return arguments.length?(t=e,r):t},r.children=function(t){return arguments.length?(e=t,r):e},r.value=function(t){return arguments.length?(n=t,r):n},r.revalue=function(t){return n&&(qo(t,(function(t){t.children&&(t.value=0)})),Ho(t,(function(t){var e;t.children||(t.value=+n.call(r,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)}))),t},r},i.layout.partition=function(){var t=i.layout.hierarchy(),e=[1,1];function n(t,e,r,i){var o=t.children;if(t.x=e,t.y=t.depth*i,t.dx=r,t.dy=i,o&&(a=o.length)){var a,s,u,c=-1;for(r=t.value?r/t.value:0;++cs&&(s=r),a.push(r)}for(n=0;ni&&(r=n,i=e);return r}function ra(t){return t.reduce(ia,0)}function ia(t,e){return t+e[1]}function oa(t,e){return aa(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function aa(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,o=[];++n<=e;)o[n]=i*n+r;return o}function sa(t){return[i.min(t),i.max(t)]}function ua(t,e){return t.value-e.value}function ca(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function la(t,e){t._pack_next=e,e._pack_prev=t}function fa(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return.999*i*i>n*n+r*r}function ha(t){if((e=t.children)&&(u=e.length)){var e,n,r,i,o,a,s,u,c=1/0,l=-1/0,f=1/0,h=-1/0;if(e.forEach(da),(n=e[0]).x=-n.r,n.y=0,b(n),u>1&&((r=e[1]).x=r.r,r.y=0,b(r),u>2))for(va(n,r,i=e[2]),b(i),ca(n,i),n._pack_prev=i,ca(i,r),r=n._pack_next,o=3;o0)for(a=-1;++a=f[0]&&u<=f[1]&&((s=c[i.bisect(h,u,1,p)-1]).y+=g,s.push(o[a]));return c}return o.value=function(t){return arguments.length?(e=t,o):e},o.range=function(t){return arguments.length?(n=_e(t),o):n},o.bins=function(t){return arguments.length?(r="number"==typeof t?function(e){return aa(e,t)}:_e(t),o):r},o.frequency=function(e){return arguments.length?(t=!!e,o):t},o},i.layout.pack=function(){var t,e=i.layout.hierarchy().sort(ua),n=0,r=[1,1];function o(i,o){var a=e.call(this,i,o),s=a[0],u=r[0],c=r[1],l=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,Ho(s,(function(t){t.r=+l(t.value)})),Ho(s,ha),n){var f=n*(t?1:Math.max(2*s.r/u,2*s.r/c))/2;Ho(s,(function(t){t.r+=f})),Ho(s,ha),Ho(s,(function(t){t.r-=f}))}return ga(s,u/2,c/2,t?1:1/Math.max(2*s.r/u,2*s.r/c)),a}return o.size=function(t){return arguments.length?(r=t,o):r},o.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,o):t},o.padding=function(t){return arguments.length?(n=+t,o):n},Bo(o,e)},i.layout.tree=function(){var t=i.layout.hierarchy().sort(null).value(null),e=ya,n=[1,1],r=null;function o(i,o){var c=t.call(this,i,o),l=c[0],f=function(t){var e,n={A:null,children:[t]},r=[n];for(;null!=(e=r.pop());)for(var i,o=e.children,a=0,s=o.length;ad.x&&(d=t),t.depth>p.depth&&(p=t)}));var g=e(h,d)/2-h.x,v=n[0]/(d.x+e(d,h)/2+g),y=n[1]/(p.depth||1);qo(l,(function(t){t.x=(t.x+g)*v,t.y=t.depth*y}))}return c}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n.length){!function(t){var e,n=0,r=0,i=t.children,o=i.length;for(;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,u=o.parent.children[0],c=o.m,l=a.m,f=s.m,h=u.m;s=ba(s),o=ma(o),s&&o;)u=ma(u),(a=ba(a)).a=t,(i=s.z+f-o.z-c+e(s._,o._))>0&&(_a(wa(s,t,r),t,i),c+=i,l+=i),f+=s.m,c+=o.m,h+=u.m,l+=a.m;s&&!ba(a)&&(a.t=s,a.m+=f-l),o&&!ma(u)&&(u.t=o,u.m+=c-h,r=t)}return r}(t,i,t.parent.A||r[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n[0],t.y=t.depth*n[1]}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(t){return arguments.length?(r=null==(n=t)?u:null,o):r?null:n},o.nodeSize=function(t){return arguments.length?(r=null==(n=t)?null:u,o):r?n:null},Bo(o,t)},i.layout.cluster=function(){var t=i.layout.hierarchy().sort(null).value(null),e=ya,n=[1,1],r=!1;function o(o,a){var s,u=t.call(this,o,a),c=u[0],l=0;Ho(c,(function(t){var n=t.children;n&&n.length?(t.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),t.y=function(t){return 1+i.max(t,(function(t){return t.y}))}(n)):(t.x=s?l+=e(t,s):0,t.y=0,s=t)}));var f=xa(c),h=Sa(c),d=f.x-e(f,h)/2,p=h.x+e(h,f)/2;return Ho(c,r?function(t){t.x=(t.x-c.x)*n[0],t.y=(c.y-t.y)*n[1]}:function(t){t.x=(t.x-d)/(p-d)*n[0],t.y=(1-(c.y?t.y/c.y:1))*n[1]}),u}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(t){return arguments.length?(r=null==(n=t),o):r?null:n},o.nodeSize=function(t){return arguments.length?(r=null!=(n=t),o):r?n:null},Bo(o,t)},i.layout.treemap=function(){var t,e=i.layout.hierarchy(),n=Math.round,r=[1,1],o=null,a=Oa,s=!1,u="squarify",c=.5*(1+Math.sqrt(5));function l(t,e){for(var n,r,i=-1,o=t.length;++i0;)s.push(n=c[i-1]),s.area+=n.area,"squarify"!==u||(r=d(s,g))<=h?(c.pop(),h=r):(s.area-=s.pop().area,p(s,g,o,!1),g=Math.min(o.dx,o.dy),s.length=s.area=0,h=1/0);s.length&&(p(s,g,o,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&&e.length){var n,r=a(t),i=e.slice(),o=[];for(l(i,r.dx*r.dy/t.value),o.area=0;n=i.pop();)o.push(n),o.area+=n.area,null!=n.z&&(p(o,n.z?r.dx:r.dy,r,!i.length),o.length=o.area=0);e.forEach(h)}}function d(t,e){for(var n,r=t.area,i=0,o=1/0,a=-1,s=t.length;++ai&&(i=n));return e*=e,(r*=r)?Math.max(e*i*c/r,r/(e*o*c)):1/0}function p(t,e,r,i){var o,a=-1,s=t.length,u=r.x,c=r.y,l=e?n(t.area/e):0;if(e==r.dx){for((i||l>r.dy)&&(l=r.dy);++ar.dx)&&(l=r.dx);++a1);return t+e*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=i.random.normal.apply(i,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=i.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;n2?Ma:Ca,u=r?jo:Eo;return i=a(t,e,u,n),o=a(e,t,u,ao),s}function s(t){return i(t)}return s.invert=function(t){return o(t)},s.domain=function(e){return arguments.length?(t=e.map(Number),a()):t},s.range=function(t){return arguments.length?(e=t,a()):e},s.rangeRound=function(t){return s.range(t).interpolate(xo)},s.clamp=function(t){return arguments.length?(r=t,a()):r},s.interpolate=function(t){return arguments.length?(n=t,a()):n},s.ticks=function(e){return Fa(t,e)},s.tickFormat=function(e,n){return La(t,e,n)},s.nice=function(e){return Da(t,e),a()},s.copy=function(){return Ia(t,e,n,r)},a()}function Pa(t,e){return i.rebind(t,e,"range","rangeRound","interpolate","clamp")}function Da(t,e){return Ea(t,ja(Ua(t,e)[2])),Ea(t,ja(Ua(t,e)[2])),t}function Ua(t,e){null==e&&(e=10);var n=ka(t),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),o=e/r*i;return o<=.15?i*=10:o<=.35?i*=5:o<=.75&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function Fa(t,e){return i.range.apply(i,Ua(t,e))}function La(t,e,n){var r=Ua(t,e);if(n){var o=De.exec(n);if(o.shift(),"s"===o[8]){var a=i.formatPrefix(Math.max(w(r[0]),w(r[1])));return o[7]||(o[7]="."+za(a.scale(r[2]))),o[8]="f",n=i.format(o.join("")),function(t){return n(a.scale(t))+a.symbol}}o[7]||(o[7]="."+function(t,e){var n=za(e[2]);return t in Na?Math.abs(n-za(Math.max(w(e[0]),w(e[1]))))+ +("e"!==t):n-2*("%"===t)}(o[8],r)),n=o.join("")}else n=",."+za(r[2])+"f";return i.format(n)}i.scale.linear=function(){return Ia([0,1],[0,1],ao,!1)};var Na={s:1,g:1,p:1,r:1,e:1};function za(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Ba(t,e,n,r){function o(t){return(n?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function a(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function s(e){return t(o(e))}return s.invert=function(e){return a(t.invert(e))},s.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(o)),s):r},s.base=function(n){return arguments.length?(e=+n,t.domain(r.map(o)),s):e},s.nice=function(){var e=Ea(r.map(o),n?Math:Ha);return t.domain(e),r=e.map(a),s},s.ticks=function(){var t=ka(r),i=[],s=t[0],u=t[1],c=Math.floor(o(s)),l=Math.ceil(o(u)),f=e%1?2:e;if(isFinite(l-c)){if(n){for(;c0;h--)i.push(a(c)*h);for(c=0;i[c]u;l--);i=i.slice(c,l)}return i},s.tickFormat=function(t,n){if(!arguments.length)return qa;arguments.length<2?n=qa:"function"!=typeof n&&(n=i.format(n));var r=Math.max(1,e*t/s.ticks().length);return function(t){var i=t/a(Math.round(o(t)));return i*e0?n[r-1]:t[0],rf?0:1;if(c=Mt)return u(c,d)+(s?u(s,1-d):"")+"Z";var p,g,v,y,m,b,_,w,x,S,O,T,k=0,A=0,C=[];if((y=(+a.apply(this,arguments)||0)/2)&&(v=r===ns?Math.sqrt(s*s+c*c):+r.apply(this,arguments),d||(A*=-1),c&&(A=Nt(v/c*Math.sin(y))),s&&(k=Nt(v/s*Math.sin(y)))),c){m=c*Math.cos(l+A),b=c*Math.sin(l+A),_=c*Math.cos(f-A),w=c*Math.sin(f-A);var E=Math.abs(f-l-2*A)<=jt?0:1;if(A&&us(m,b,_,w)===d^E){var j=(l+f)/2;m=c*Math.cos(j),b=c*Math.sin(j),_=w=null}}else m=b=0;if(s){x=s*Math.cos(f-k),S=s*Math.sin(f-k),O=s*Math.cos(l+k),T=s*Math.sin(l+k);var R=Math.abs(l-f+2*k)<=jt?0:1;if(k&&us(x,S,O,T)===1-d^R){var M=(l+f)/2;x=s*Math.cos(M),S=s*Math.sin(M),O=T=null}}else x=S=0;if(h>Ct&&(p=Math.min(Math.abs(c-s)/2,+n.apply(this,arguments)))>.001){g=s0?0:1}function cs(t,e,n,r,i){var o=t[0]-e[0],a=t[1]-e[1],s=(i?r:-r)/Math.sqrt(o*o+a*a),u=s*a,c=-s*o,l=t[0]+u,f=t[1]+c,h=e[0]+u,d=e[1]+c,p=(l+h)/2,g=(f+d)/2,v=h-l,y=d-f,m=v*v+y*y,b=n-r,_=l*d-h*f,w=(y<0?-1:1)*Math.sqrt(Math.max(0,b*b*m-_*_)),x=(_*y-v*w)/m,S=(-_*v-y*w)/m,O=(_*y+v*w)/m,T=(-_*v+y*w)/m,k=x-p,A=S-g,C=O-p,E=T-g;return k*k+A*A>C*C+E*E&&(x=O,S=T),[[x-u,S-c],[x*n/b,S*n/b]]}function ls(t){var e=ci,n=li,r=$n,i=hs,o=i.key,a=.7;function s(o){var s,u=[],c=[],l=-1,f=o.length,h=_e(e),d=_e(n);function p(){u.push("M",i(t(c),a))}for(;++l1&&i.push("H",r[0]);return i.join("")},"step-before":ps,"step-after":gs,basis:ms,"basis-open":function(t){if(t.length<4)return hs(t);var e,n=[],r=-1,i=t.length,o=[0],a=[0];for(;++r<3;)e=t[r],o.push(e[0]),a.push(e[1]);n.push(bs(xs,o)+","+bs(xs,a)),--r;for(;++r9&&(i=3*e/Math.sqrt(i),a[s]=i*n,a[s+1]=i*r);s=-1;for(;++s<=u;)i=(t[Math.min(u,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),o.push([i||0,a[s]*i||0]);return o}(t))}});function hs(t){return t.length>1?t.join("L"):t+"Z"}function ds(t){return t.join("L")+"Z"}function ps(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e1){s=e[1],o=t[u],u++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1];for(var c=2;cjt)+",1 "+e}function u(t,e,n,r){return"Q 0,0 "+r}return o.radius=function(t){return arguments.length?(n=_e(t),o):n},o.source=function(e){return arguments.length?(t=_e(e),o):t},o.target=function(t){return arguments.length?(e=_e(t),o):e},o.startAngle=function(t){return arguments.length?(r=_e(t),o):r},o.endAngle=function(t){return arguments.length?(i=_e(t),o):i},o},i.svg.diagonal=function(){var t=Kr,e=Yr,n=Cs;function r(r,i){var o=t.call(this,r,i),a=e.call(this,r,i),s=(o.y+a.y)/2,u=[o,{x:o.x,y:s},{x:a.x,y:s},a];return"M"+(u=u.map(n))[0]+"C"+u[1]+" "+u[2]+" "+u[3]}return r.source=function(e){return arguments.length?(t=_e(e),r):t},r.target=function(t){return arguments.length?(e=_e(t),r):e},r.projection=function(t){return arguments.length?(n=t,r):n},r},i.svg.diagonal.radial=function(){var t=i.svg.diagonal(),e=Cs,n=t.projection;return t.projection=function(t){return arguments.length?n(Es(e=t)):e},t},i.svg.symbol=function(){var t=Rs,e=js;function n(n,r){return(Is.get(t.call(this,n,r))||Ms)(e.call(this,n,r))}return n.type=function(e){return arguments.length?(t=_e(e),n):t},n.size=function(t){return arguments.length?(e=_e(t),n):e},n};var Is=i.map({circle:Ms,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Ds)),n=e*Ds;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/Ps),n=e*Ps/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Ps),n=e*Ps/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});i.svg.symbolTypes=Is.keys();var Ps=Math.sqrt(3),Ds=Math.tan(30*Pt);K.transition=function(t){for(var e,n,r=Ns||++qs,i=Gs(t),o=[],a=zs||{time:Date.now(),ease:yo,delay:0,duration:250},s=-1,u=this.length;++s0;)c[--h].call(t,a);if(o>=1)return f.event&&f.event.end.call(t,t.__data__,e),--l.count?delete l[r]:delete t[n],1}f||(o=i.time,a=Ce((function(t){var e=f.delay;if(a.t=e+o,e<=t)return h(t-e);a.c=h}),0,o),f=l[r]={tween:new O,time:o,timer:a,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++l.count)}Bs.call=K.call,Bs.empty=K.empty,Bs.node=K.node,Bs.size=K.size,i.transition=function(t,e){return t&&t.transition?Ns?t.transition(e):t:i.selection().transition(t)},i.transition.prototype=Bs,Bs.select=function(t){var e,n,r,i=this.id,o=this.namespace,a=[];t=Y(t);for(var s=-1,u=this.length;++srect,.s>rect").attr("width",a[1]-a[0])}function g(t){t.select(".extent").attr("y",s[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function v(){var f,v,y=this,m=i.select(i.event.target),b=n.of(y,arguments),_=i.select(y),w=m.datum(),x=!/^(n|s)$/.test(w)&&r,S=!/^(e|w)$/.test(w)&&o,O=m.classed("extent"),T=Ot(y),k=i.mouse(y),A=i.select(c(y)).on("keydown.brush",j).on("keyup.brush",R);if(i.event.changedTouches?A.on("touchmove.brush",M).on("touchend.brush",P):A.on("mousemove.brush",M).on("mouseup.brush",P),_.interrupt().selectAll("*").interrupt(),O)k[0]=a[0]-k[0],k[1]=s[0]-k[1];else if(w){var C=+/w$/.test(w),E=+/^n/.test(w);v=[a[1-C]-k[0],s[1-E]-k[1]],k[0]=a[C],k[1]=s[E]}else i.event.altKey&&(f=k.slice());function j(){32==i.event.keyCode&&(O||(f=null,k[0]-=a[1],k[1]-=s[1],O=2),z())}function R(){32==i.event.keyCode&&2==O&&(k[0]+=a[1],k[1]+=s[1],O=0,z())}function M(){var t=i.mouse(y),e=!1;v&&(t[0]+=v[0],t[1]+=v[1]),O||(i.event.altKey?(f||(f=[(a[0]+a[1])/2,(s[0]+s[1])/2]),k[0]=a[+(t[0]1?{floor:function(e){for(;s(e=t.floor(e));)e=iu(e-1);return e},ceil:function(e){for(;s(e=t.ceil(e));)e=iu(+e+1);return e}}:t))},r.ticks=function(t,e){var n=ka(r.domain()),i=null==t?o(n,10):"number"==typeof t?o(n,t):!t.range&&[{range:t},e];return i&&(t=i[0],e=i[1]),t.range(n[0],iu(+n[1]+1),e<1?1:e)},r.tickFormat=function(){return n},r.copy=function(){return ru(t.copy(),e,n)},Pa(r,t)}function iu(t){return new Date(t)}$s.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?nu:eu,nu.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},nu.toString=eu.toString,Le.second=qe((function(t){return new Ne(1e3*Math.floor(t/1e3))}),(function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))}),(function(t){return t.getSeconds()})),Le.seconds=Le.second.range,Le.seconds.utc=Le.second.utc.range,Le.minute=qe((function(t){return new Ne(6e4*Math.floor(t/6e4))}),(function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))}),(function(t){return t.getMinutes()})),Le.minutes=Le.minute.range,Le.minutes.utc=Le.minute.utc.range,Le.hour=qe((function(t){var e=t.getTimezoneOffset()/60;return new Ne(36e5*(Math.floor(t/36e5-e)+e))}),(function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))}),(function(t){return t.getHours()})),Le.hours=Le.hour.range,Le.hours.utc=Le.hour.utc.range,Le.month=qe((function(t){return(t=Le.day(t)).setDate(1),t}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t){return t.getMonth()})),Le.months=Le.month.range,Le.months.utc=Le.month.utc.range;var ou=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],au=[[Le.second,1],[Le.second,5],[Le.second,15],[Le.second,30],[Le.minute,1],[Le.minute,5],[Le.minute,15],[Le.minute,30],[Le.hour,1],[Le.hour,3],[Le.hour,6],[Le.hour,12],[Le.day,1],[Le.day,2],[Le.week,1],[Le.month,1],[Le.month,3],[Le.year,1]],su=$s.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",$n]]),uu={range:function(t,e,n){return i.range(Math.ceil(t/n)*n,+e,n).map(iu)},floor:I,ceil:I};au.year=Le.year,Le.scale=function(){return ru(i.scale.linear(),au,su)};var cu=au.map((function(t){return[t[0].utc,t[1]]})),lu=tu.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",$n]]);function fu(t){return JSON.parse(t.responseText)}function hu(t){var e=s.createRange();return e.selectNode(s.body),e.createContextualFragment(t.responseText)}cu.year=Le.year.utc,Le.scale.utc=function(){return ru(i.scale.linear(),cu,lu)},i.text=we((function(t){return t.responseText})),i.json=function(t,e){return xe(t,"application/json",fu,e)},i.html=function(t,e){return xe(t,"text/html",hu,e)},i.xml=we((function(t){return t.responseXML})),this.d3=i,void 0===(r="function"==typeof(n=i)?n.call(exports,e,exports,t):n)||(t.exports=r)}()},"/GL+Bo9v":function(t,exports){t.exports=function(t,e,n,r,i,o,a){var s=1/(e-n),u=1/(r-i),c=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(a+o)*c,t[15]=1,t}},"/Llx+klj":function(t,exports,e){"use strict";var n=e("EW1eGdmB"),r=e("0Ft3SWJB").isArrayOrTypedArray;t.exports=function(t,e,i,o){function a(n){var r=t[n];return void 0!==r?r:(e._template||{})[n]}var s=a("tick0"),u=a("dtick"),c=a("tickvals"),l=i("tickmode",r(c)?"array":u?"linear":"auto");if("auto"===l)i("nticks");else if("linear"===l){var f=e.dtick=n.dtick(u,o);e.tick0=n.tick0(s,o,e.calendar,f)}else if("multicategory"!==o){void 0===i("tickvals")?e.tickmode="auto":i("ticktext")}}},"/UP5lv0M":function(t,exports,e){"use strict";t.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}},"/oRevOrA":function(t,exports,e){"use strict";var n=e("y1n3bGum"),r=e("yAcToaBS"),i=t.exports={},o=e("Khpmx9F5");i.defaults=o.defaults;var a=i.defaultLine=o.defaultLine;i.lightLine=o.lightLine;var s=i.background=o.background;function u(t){if(r(t)||"string"!=typeof t)return t;var e=t.trim();if("rgb"!==e.substr(0,3))return t;var n=e.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return t;var i=n[1].trim().split(/\s*[\s,]\s*/),o="a"===e.charAt(3)&&4===i.length;if(!o&&3!==i.length)return t;for(var a=0;a=0))return t;if(3===a)i[a]>1&&(i[a]=1);else if(i[a]>=1)return t}var s=Math.round(255*i[0])+", "+Math.round(255*i[1])+", "+Math.round(255*i[2]);return o?"rgba("+s+", "+i[3]+")":"rgb("+s+")"}i.tinyRGB=function(t){var e=t.toRgb();return"rgb("+Math.round(e.r)+", "+Math.round(e.g)+", "+Math.round(e.b)+")"},i.rgb=function(t){return i.tinyRGB(n(t))},i.opacity=function(t){return t?n(t).getAlpha():0},i.addOpacity=function(t,e){var r=n(t).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+e+")"},i.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var i=n(e||s).toRgb(),o=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},a={r:o.r*(1-r.a)+r.r*r.a,g:o.g*(1-r.a)+r.g*r.a,b:o.b*(1-r.a)+r.b*r.a};return n(a).toRgbString()},i.contrast=function(t,e,r){var o=n(t);return 1!==o.getAlpha()&&(o=n(i.combine(t,s))),(o.isDark()?e?o.lighten(e):s:r?o.darken(r):a).toString()},i.stroke=function(t,e){var r=n(e);t.style({stroke:i.tinyRGB(r),"stroke-opacity":r.getAlpha()})},i.fill=function(t,e){var r=n(e);t.style({fill:i.tinyRGB(r),"fill-opacity":r.getAlpha()})},i.clean=function(t){if(t&&"object"==typeof t){var e,n,r,o,a=Object.keys(t);for(e=0;ea?s:i(t)?Number(t):s:s},u.isIndex=function(t,e){return!(void 0!==e&&t>=e)&&(i(t)&&t>=0&&t%1==0)},u.noop=e("lHLBDM7v"),u.identity=e("jKiUIMfn"),u.repeat=function(t,e){for(var n=new Array(e),r=0;rn?Math.max(n,Math.min(e,t)):Math.max(e,Math.min(n,t))},u.bBoxIntersect=function(t,e,n){return n=n||0,t.left<=e.right+n&&e.left<=t.right+n&&t.top<=e.bottom+n&&e.top<=t.bottom+n},u.simpleMap=function(t,e,n,r,i){for(var o=t.length,a=new Array(o),s=0;s=Math.pow(2,n)?i>10?(u.warn("randstr failed uniqueness"),c):t(e,n,r,(i||0)+1):c},u.OptionControl=function(t,e){t||(t={}),e||(e="opt");var n={optionList:[],_newoption:function(r){r[e]=t,n[r.name]=r,n.optionList.push(r)}};return n["_"+e]=t,n},u.smooth=function(t,e){if((e=Math.round(e)||0)<2)return t;var n,r,i,o,a=t.length,s=2*a,u=2*e-1,c=new Array(u),l=new Array(a);for(n=0;n=s&&(i-=s*Math.floor(i/s)),i<0?i=-1-i:i>=a&&(i=s-1-i),o+=t[i]*c[r];l[n]=o}return l},u.syncOrAsync=function(t,e,n){var r;function i(){return u.syncOrAsync(t,e,n)}for(;t.length;)if((r=(0,t.splice(0,1)[0])(e))&&r.then)return r.then(i).then(void 0,u.promiseError);return n&&n(e)},u.stripTrailingSlash=function(t){return"/"===t.substr(-1)?t.substr(0,t.length-1):t},u.noneOrAll=function(t,e,n){if(t){var r,i=!1,o=!0;for(r=0;r0?e:0}))},u.fillArray=function(t,e,n,r){if(r=r||u.identity,u.isArrayOrTypedArray(t))for(var i=0;i1?i+a[1]:"";if(o&&(a.length>1||s.length>4||n))for(;r.test(s);)s=s.replace(r,"$1"+o+"$2");return s+u},u.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var j=/^\w*$/;u.templateString=function(t,e){var n={};return t.replace(u.TEMPLATE_STRING_REGEX,(function(t,r){var i;return j.test(r)?i=e[r]:(n[r]=n[r]||u.nestedProperty(e,r).get,i=n[r]()),u.isValidTextValue(i)?i:""}))};var R={max:10,count:0,name:"hovertemplate"};u.hovertemplateString=function(){return P.apply(R,arguments)};var M={max:10,count:0,name:"texttemplate"};u.texttemplateString=function(){return P.apply(M,arguments)};var I=/^[:|\|]/;function P(t,e,i){var o=this,a=arguments;e||(e={});var s={};return t.replace(u.TEMPLATE_STRING_REGEX,(function(t,c,l){var f,h,d,p;for(d=3;d=48&&a<=57,c=s>=48&&s<=57;if(u&&(r=10*r+a-48),c&&(i=10*i+s-48),!u||!c){if(r!==i)return r-i;if(a!==s)return a-s}}return i-r};var D=2e9;u.seedPseudoRandom=function(){D=2e9},u.pseudoRandom=function(){var t=D;return D=(69069*D+1)%4294967296,Math.abs(D-t)<429496729?u.pseudoRandom():D/4294967296},u.fillText=function(t,e,n){var r=Array.isArray(n)?function(t){n.push(t)}:function(t){n.text=t},i=u.extractOption(t,e,"htx","hovertext");if(u.isValidTextValue(i))return r(i);var o=u.extractOption(t,e,"tx","text");return u.isValidTextValue(o)?r(o):void 0},u.isValidTextValue=function(t){return t||0===t},u.formatPercent=function(t,e){e=e||0;for(var n=(Math.round(100*t*Math.pow(10,e))*Math.pow(.1,e)).toFixed(e)+"%",r=0;r1&&(l=1):l=0,u.strTranslate(i-l*(n+a),o-l*(r+s))+u.strScale(l)+(c?"rotate("+c+(e?"":" "+n+" "+r)+")":"")},u.ensureUniformFontSize=function(t,e){var n=u.extendFlat({},e);return n.size=Math.max(e.size,t._fullLayout.uniformtext.minsize||0),n},u.join2=function(t,e,n){var r=t.length;return r>1?t.slice(0,-1).join(e)+n+t[r-1]:t.join(e)}},"0JON8+ab":function(t,exports,e){"use strict";t.exports={mod:function(t,e){var n=t%e;return n<0?n+e:n},modHalf:function(t,e){return Math.abs(t)>e/2?t-Math.round(t/e)*e:t}}},"0P6BOAlX":function(t,e,n){"use strict";n.r(e),n.d(e,"timeFormatDefaultLocale",(function(){return oe})),n.d(e,"timeFormat",(function(){return F})),n.d(e,"timeParse",(function(){return L})),n.d(e,"utcFormat",(function(){return N})),n.d(e,"utcParse",(function(){return z})),n.d(e,"timeFormatLocale",(function(){return D})),n.d(e,"isoFormat",(function(){return se})),n.d(e,"isoParse",(function(){return ue}));var r=new Date,i=new Date;function o(t,e,n,a){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},s.round=function(t){var e=s(t),n=s.ceil(t);return t-e0))return a;do{a.push(o=new Date(+n)),e(n,i),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(s.count=function(e,o){return r.setTime(+e),i.setTime(+o),t(r),t(i),Math.floor(n(r,i))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(a?function(e){return a(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var a=864e5,s=6048e5;function u(t){return o((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/s}))}var c=u(0),l=u(1),f=u(2),h=u(3),d=u(4),p=u(5),g=u(6),v=(c.range,l.range,f.range,h.range,d.range,p.range,g.range,o((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/a}),(function(t){return t.getUTCDate()-1}))),y=v;v.range;function m(t){return o((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/s}))}var b=m(0),_=m(1),w=m(2),x=m(3),S=m(4),O=m(5),T=m(6),k=(b.range,_.range,w.range,x.range,S.range,O.range,T.range,o((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/a}),(function(t){return t.getDate()-1}))),A=k,C=(k.range,o((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));C.every=function(t){return isFinite(t=Math.floor(t))&&t>0?o((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var E=C,j=(C.range,o((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));j.every=function(t){return isFinite(t=Math.floor(t))&&t>0?o((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var R=j;j.range;function M(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function I(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function P(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function D(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=J(i),f=Q(i),h=J(o),d=Q(o),p=J(a),g=Q(a),v=J(s),m=Q(s),b=J(u),w=Q(u),x={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:vt,e:vt,f:wt,g:Mt,G:Pt,H:yt,I:mt,j:bt,L:_t,m:xt,M:St,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:re,s:ie,S:Ot,u:Tt,U:kt,V:Ct,w:Et,W:jt,x:null,X:null,y:Rt,Y:It,Z:Dt,"%":ne},S={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Ut,e:Ut,f:Bt,g:Zt,G:te,H:Ft,I:Lt,j:Nt,L:zt,m:qt,M:Ht,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:re,s:ie,S:Vt,u:Gt,U:Wt,V:Qt,w:Kt,W:Yt,x:null,X:null,y:Xt,Y:$t,Z:ee,"%":ne},O={a:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=g[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=b.exec(e.slice(n));return r?(t.m=w[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return C(t,e,n,r)},d:at,e:at,f:ht,g:nt,G:et,H:ut,I:ut,j:st,L:ft,m:ot,M:ct,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=f[r[0].toLowerCase()],n+r[0].length):-1},q:it,Q:pt,s:gt,S:lt,u:Y,U:X,V:Z,w:K,W:tt,x:function(t,e,r){return C(t,n,e,r)},X:function(t,e,n){return C(t,r,e,n)},y:nt,Y:et,Z:rt,"%":dt};function T(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=I(P(o.y,0,1))).getUTCDay(),r=i>4||0===i?l.ceil(r):l(r),r=y.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=M(P(o.y,0,1))).getDay(),r=i>4||0===i?_.ceil(r):_(r),r=A.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?I(P(o.y,0,1)).getUTCDay():M(P(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,I(o)):M(o)}}function C(t,e,n,r){for(var i,o,a=0,s=e.length,u=n.length;a=u)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=O[i in B?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return x.x=T(n,x),x.X=T(r,x),x.c=T(e,x),S.x=T(n,S),S.X=T(r,S),S.c=T(e,S),{format:function(t){var e=T(t+="",x);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=T(t+="",S);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}var U,F,L,N,z,B={"-":"",_:" ",0:"0"},q=/^\s*\d+/,H=/^%/,V=/[\\^$*+?|[\]().{}]/g;function G(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function rt(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function it(t,e,n){var r=q.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ot(t,e,n){var r=q.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function at(t,e,n){var r=q.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function st(t,e,n){var r=q.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ut(t,e,n){var r=q.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ct(t,e,n){var r=q.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function lt(t,e,n){var r=q.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ft(t,e,n){var r=q.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function ht(t,e,n){var r=q.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function dt(t,e,n){var r=H.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function pt(t,e,n){var r=q.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function gt(t,e,n){var r=q.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function vt(t,e){return G(t.getDate(),e,2)}function yt(t,e){return G(t.getHours(),e,2)}function mt(t,e){return G(t.getHours()%12||12,e,2)}function bt(t,e){return G(1+A.count(E(t),t),e,3)}function _t(t,e){return G(t.getMilliseconds(),e,3)}function wt(t,e){return _t(t,e)+"000"}function xt(t,e){return G(t.getMonth()+1,e,2)}function St(t,e){return G(t.getMinutes(),e,2)}function Ot(t,e){return G(t.getSeconds(),e,2)}function Tt(t){var e=t.getDay();return 0===e?7:e}function kt(t,e){return G(b.count(E(t)-1,t),e,2)}function At(t){var e=t.getDay();return e>=4||0===e?S(t):S.ceil(t)}function Ct(t,e){return t=At(t),G(S.count(E(t),t)+(4===E(t).getDay()),e,2)}function Et(t){return t.getDay()}function jt(t,e){return G(_.count(E(t)-1,t),e,2)}function Rt(t,e){return G(t.getFullYear()%100,e,2)}function Mt(t,e){return G((t=At(t)).getFullYear()%100,e,2)}function It(t,e){return G(t.getFullYear()%1e4,e,4)}function Pt(t,e){var n=t.getDay();return G((t=n>=4||0===n?S(t):S.ceil(t)).getFullYear()%1e4,e,4)}function Dt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+G(e/60|0,"0",2)+G(e%60,"0",2)}function Ut(t,e){return G(t.getUTCDate(),e,2)}function Ft(t,e){return G(t.getUTCHours(),e,2)}function Lt(t,e){return G(t.getUTCHours()%12||12,e,2)}function Nt(t,e){return G(1+y.count(R(t),t),e,3)}function zt(t,e){return G(t.getUTCMilliseconds(),e,3)}function Bt(t,e){return zt(t,e)+"000"}function qt(t,e){return G(t.getUTCMonth()+1,e,2)}function Ht(t,e){return G(t.getUTCMinutes(),e,2)}function Vt(t,e){return G(t.getUTCSeconds(),e,2)}function Gt(t){var e=t.getUTCDay();return 0===e?7:e}function Wt(t,e){return G(c.count(R(t)-1,t),e,2)}function Jt(t){var e=t.getUTCDay();return e>=4||0===e?d(t):d.ceil(t)}function Qt(t,e){return t=Jt(t),G(d.count(R(t),t)+(4===R(t).getUTCDay()),e,2)}function Kt(t){return t.getUTCDay()}function Yt(t,e){return G(l.count(R(t)-1,t),e,2)}function Xt(t,e){return G(t.getUTCFullYear()%100,e,2)}function Zt(t,e){return G((t=Jt(t)).getUTCFullYear()%100,e,2)}function $t(t,e){return G(t.getUTCFullYear()%1e4,e,4)}function te(t,e){var n=t.getUTCDay();return G((t=n>=4||0===n?d(t):d.ceil(t)).getUTCFullYear()%1e4,e,4)}function ee(){return"+0000"}function ne(){return"%"}function re(t){return+t}function ie(t){return Math.floor(+t/1e3)}function oe(t){return U=D(t),F=U.format,L=U.parse,N=U.utcFormat,z=U.utcParse,U}oe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var ae="%Y-%m-%dT%H:%M:%S.%LZ";var se=Date.prototype.toISOString?function(t){return t.toISOString()}:N(ae);var ue=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:z(ae)},"0c+KX6ru":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("QlBQbb2U"),a=n("8GJ6oOEd"),s=n("HbbeyvOy"),u=n("L+5XEiOD"),c=i.a.createStore({listenables:[],set:function(t,e,n){var r=this,i=Object(s.f)(o.a.UsersApiController.update(t).url),c={};return e&&n&&(c.type=e,c.id=n),Object(u.b)("PUT",i,{startpage:c}).then((function(t){return r.trigger(),a.a.success("Your start page was changed successfully"),t}),(function(t){return a.a.error("Changing your start page failed with error: ".concat(t),"Could not change your start page")}))}});e.default=c},"0cs6LEsq":function(t,exports,e){"use strict";var n=e("yAcToaBS"),r=e("OPxZozoA").isArrayOrTypedArray;exports.aggNums=function(t,e,i,o){var a,s;if((!o||o>i.length)&&(o=i.length),n(e)||(e=!1),r(i[0])){for(s=new Array(o),a=0;at.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},"11o/5ssK":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("HbbeyvOy"),a=n("L+5XEiOD"),s=n("QlBQbb2U"),u=n("21p8kIWv");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:"";return Object(s.f)("".concat(this.sourceUrl,"/").concat(t))},refresh:function(){this.getLicenseInfo()},getLicenseInfo:function(){var t=this,e=Object(c.b)("GET",this.enterpriseUrl("license/info"));e.then((function(e){return t.licenseStatus=e.free_license_info.license_status,t.propagateChanges(),e}),(function(t){var e=a.a.get(t,"additional.body.message",t.message);u.a.error("Couldn't load license information: ".concat(e),"Error")})),l.getLicenseInfo.promise(e)},requestFreeEnterpriseLicense:function(t){var e=this,n={first_name:t.firstName,last_name:t.lastName,company:t.company,email:t.email,phone:t.phone},r=Object(c.b)("POST",this.enterpriseUrl("license"),n);r.then((function(t){return u.a.success("Your free Graylog Enterprise license should be on the way.","Success!"),e.refresh(),t}),(function(t){var e=a.a.get(t,"additional.body.message",t.message);u.a.error("Requesting a free Graylog Enterprise license failed: ".concat(e),"Error")})),l.requestFreeEnterpriseLicense.promise(r)}});e.default=f},"1pBLIPSB":function(t,exports,e){var n,r;!function(i,o){"use strict";t.exports?t.exports=o():void 0===(r="function"==typeof(n=o)?n.call(exports,e,exports,t):n)||(t.exports=r)}(0,(function(t){"use strict";var e=t&&t.IPv6;return{best:function(t){var e,n,r=t.toLowerCase().split(":"),i=r.length,o=8;for(""===r[0]&&""===r[1]&&""===r[2]?(r.shift(),r.shift()):""===r[0]&&""===r[1]?r.shift():""===r[i-1]&&""===r[i-2]&&r.pop(),-1!==r[(i=r.length)-1].indexOf(".")&&(o=7),e=0;e1);s++)n.splice(0,1);r[a]=n.join("")}var u=-1,c=0,l=0,f=-1,h=!1;for(a=0;ac&&(u=f,c=l)):"0"===r[a]&&(h=!0,f=a,l=1);l>c&&(u=f,c=l),c>1&&r.splice(u,c,""),i=r.length;var d="";for(""===r[0]&&(d=":"),a=0;a, please ensure it wasn't deleted."),"Could not retrieve Event Notification")})),h.get.promise(e)},create:function(t){var e=this,n=Object(f.b)("POST",this.eventNotificationsUrl({}),t);n.then((function(n){return l.a.success("Notification created successfully",'Notification "'.concat(t.title,'" was created successfully.')),e.refresh(),n}),(function(e){400===e.status&&e.additional.body&&e.additional.body.failed||l.a.error('Creating Notification "'.concat(t.title,'" failed with status: ').concat(e),"Could not save Notification")})),h.create.promise(n)},update:function(t,e){var n=this,r=Object(f.b)("PUT",this.eventNotificationsUrl({segments:[t]}),e);r.then((function(t){return l.a.success("Notification updated successfully",'Notification "'.concat(e.title,'" was updated successfully.')),n.refresh(),t}),(function(t){400===t.status&&t.additional.body&&t.additional.body.failed||l.a.error('Updating Notification "'.concat(e.title,'" failed with status: ').concat(t),"Could not update Notification")})),h.update.promise(r)},delete:function(t){var e=this,n=Object(f.b)("DELETE",this.eventNotificationsUrl({segments:[t.id]}));n.then((function(){l.a.success("Notification deleted successfully",'Notification "'.concat(t.title,'" was deleted successfully.')),e.refresh()}),(function(e){l.a.error('Deleting Notification "'.concat(t.title,'" failed with status: ').concat(e),"Could not delete Notification")})),h.delete.promise(n)},test:function(t){var e=Object(f.b)("POST",this.eventNotificationsUrl({segments:["test"]}),t);h.test.promise(e)},testPersisted:function(t){var e=Object(f.b)("POST",this.eventNotificationsUrl({segments:[t.id,"test"]}));h.testPersisted.promise(e)},listAllLegacyTypes:function(){var t=this,e=Object(f.b)("GET",this.eventNotificationsUrl({segments:["legacy","types"]}));e.then((function(e){return t.allLegacyTypes=e.types,t.propagateChanges(),e})),h.listAllLegacyTypes.promise(e)}});e.default=d},"41+/evxh":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("HbbeyvOy"),a=n("QlBQbb2U"),s=n("L+5XEiOD"),u=n("JBQWIv26").a.getActions("IndexerOverview"),c=i.a.createStore({listenables:[u],indexerOverview:void 0,indexerOverviewError:void 0,getInitialState:function(){return{indexerOverview:this.indexerOverview,indexerOverviewError:this.indexerOverviewError}},list:function(t){var e=this,n=Object(o.f)(a.a.IndexerOverviewApiResource.list(t).url),r=Object(s.b)("GET",n);return r.then((function(t){e.trigger({indexerOverview:t,indexerOverviewError:void 0})}),(function(t){if(t.additional&&503===t.additional.status){var n=t.additional.body&&t.additional.body.message?t.additional.body.message:"Elasticsearch is unavailable. Check your configuration and logs for more information.";e.trigger({indexerOverviewError:n})}})),u.list.promise(r),r}});e.default=c},"46lPXjlm":function(t,exports,e){"use strict";t.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},"4KF7VOU5":function(t,exports,e){t.exports=e("jaIgFIJB")(610)},"4eKcM05w":function(t,exports,e){"use strict";var n=String.prototype.replace,r=/%20/g,i="RFC1738",o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return n.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:i,RFC3986:o}},"4jYmNgIv":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("gCzbTwtZ"),a=n.n(o),s=n("DD8nok+7"),u=n.n(s),c=n("07OJAgAB"),l=n("HbbeyvOy"),f=n("QlBQbb2U"),h=n("L+5XEiOD"),d=n("LHgfPCv1"),p=i.a.createStore({DEFAULT_LIMIT:150,listenables:[],search:function(t,e,n,r,i,o,s,g,v){var y=p.extractTimeRange(t,n),m=i||this.DEFAULT_LIMIT,b=(o-1)*m,_=l.f(f.a.UniversalSearchApiController.search(t,e,y,r,m,b,s,g,v).url);return Object(h.b)("GET",_).then((function(t){var e=a.a.extend({},t);return e.fields=t.fields.map((function(t){return{hash:u()(t),name:t,standard_selected:t===d.i||t===d.m}})),e.messages=e.messages.map((function(t){return c.a.formatMessageSummary(t)})),e}))}});p.extractTimeRange=function(t,e){return"relative"===t?{range:e.range||e.relative}:e},e.default=p},"4vELQILI":function(t,exports){t.exports=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],c=e[8],l=e[9],f=e[10],h=e[11];e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=o*i-c*r,t[1]=a*i-l*r,t[2]=s*i-f*r,t[3]=u*i-h*r,t[8]=o*r+c*i,t[9]=a*r+l*i,t[10]=s*r+f*i,t[11]=u*r+h*i,t}},"5XAAJc+x":function(t,exports,e){"use strict";exports.isLeftAnchor=function(t){return"left"===t.xanchor||"auto"===t.xanchor&&t.x<=1/3},exports.isCenterAnchor=function(t){return"center"===t.xanchor||"auto"===t.xanchor&&t.x>1/3&&t.x<2/3},exports.isRightAnchor=function(t){return"right"===t.xanchor||"auto"===t.xanchor&&t.x>=2/3},exports.isTopAnchor=function(t){return"top"===t.yanchor||"auto"===t.yanchor&&t.y>=2/3},exports.isMiddleAnchor=function(t){return"middle"===t.yanchor||"auto"===t.yanchor&&t.y>1/3&&t.y<2/3},exports.isBottomAnchor=function(t){return"bottom"===t.yanchor||"auto"===t.yanchor&&t.y<=1/3}},"5tOsSiMj":function(t,exports,e){"use strict";var n=e("0Ft3SWJB"),r=e("A5P9b9BX"),i=e("/Llx+klj"),o=e("NycC/quU"),a=e("pyDFBVwV"),s=e("jyzIzA3P");t.exports=function(t,e,u){var c=r.newContainer(e,"colorbar"),l=t.colorbar||{};function f(t,e){return n.coerce(l,c,s,t,e)}var h=f("thicknessmode");f("thickness","fraction"===h?30/(u.width-u.margin.l-u.margin.r):30);var d=f("lenmode");f("len","fraction"===d?1:u.height-u.margin.t-u.margin.b),f("x"),f("xanchor"),f("xpad"),f("y"),f("yanchor"),f("ypad"),n.noneOrAll(l,c,["x","y"]),f("outlinecolor"),f("outlinewidth"),f("bordercolor"),f("borderwidth"),f("bgcolor");var p=f("ticklabelposition");i(l,c,f,"linear");var g={outerTicks:!1,font:u.font};-1!==p.indexOf("inside")&&(g.bgColor="black"),a(l,c,f,"linear",g),o(l,c,f,"linear",g),f("title.text",u._dfltTitle.colorbar),n.coerceFont(f,"title.font",u.font),f("title.side")}},"5tQR8N0J":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({listAll:{asyncResult:!0},listAllLegacyTypes:{asyncResult:!0},listPaginated:{asyncResult:!0},get:{asyncResult:!0},create:{asyncResult:!0},update:{asyncResult:!0},delete:{asyncResult:!0},test:{asyncResult:!0},testPersisted:{asyncResult:!0}});e.default=i},"5u0twCBb":function(t,exports,e){"use strict";var n=e("/8dZfPfB"),r=e("jGt2471r"),i=e("mi7jljcm"),o=e("x4lDX9p9");function a(t){var e=t&&t.parentNode;e&&e.removeChild(t)}function s(t,e,n){var i="plotly.js-style-"+t,o=document.getElementById(i);o||((o=document.createElement("style")).setAttribute("id",i),o.appendChild(document.createTextNode("")),document.head.appendChild(o));var a=o.sheet;a.insertRule?a.insertRule(e+"{"+n+"}",0):a.addRule?a.addRule(e,n,0):r.warn("addStyleRule failed")}function u(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-o-transform")||e.getPropertyValue("transform");return"none"===n?null:n.replace("matrix","").replace("3d","").slice(1,-1).split(",").map((function(t){return+t}))}function c(t){for(var e=[];l(t);)e.push(t),t=t.parentNode;return e}function l(t){return t&&(t instanceof Element||t instanceof HTMLElement)}t.exports={getGraphDiv:function(t){var e;if("string"==typeof t){if(null===(e=document.getElementById(t)))throw new Error("No DOM element with id '"+t+"' exists on the page.");return e}if(null==t)throw new Error("DOM element provided is null or undefined");return t},isPlotDiv:function(t){var e=n.select(t);return e.node()instanceof HTMLElement&&e.size()&&e.classed("js-plotly-plot")},removeElement:a,addStyleRule:function(t,e){s("global",t,e)},addRelatedStyleRule:s,deleteRelatedStyleRule:function(t){var e="plotly.js-style-"+t,n=document.getElementById(e);n&&a(n)},getFullTransformMatrix:function(t){var e=c(t),n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(t){var e=u(t);if(e){var r=i.convertCssMatrix(e);n=o.multiply(n,n,r)}})),n},getElementTransformMatrix:u,getElementAndAncestors:c,equalDomRects:function(t,e){return t&&e&&t.x===e.x&&t.y===e.y&&t.top===e.top&&t.left===e.left&&t.right===e.right&&t.bottom===e.bottom}}},"6Xnj3wDA":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("YPyIcTeH"),a=n.n(o),s=n("QlBQbb2U"),u=n("L+5XEiOD"),c=n("JBQWIv26"),l=n("iXyuIF6s"),f=n("HbbeyvOy"),h=n("8GJ6oOEd"),d=c.a.getActions("Extractors");function p(t){var e={};t.converters.forEach((function(t){e[t.type]=t.config}));var n=t.condition_type&&"none"!==t.condition_type?t.condition_value:"";return{title:t.title,cut_or_copy:t.cursor_strategy||"copy",source_field:t.source_field,target_field:t.target_field,extractor_type:t.type||t.extractor_type,extractor_config:t.extractor_config,converters:e,condition_type:t.condition_type||"none",condition_value:n,order:t.order}}var g=i.a.createStore({listenables:[d],sourceUrl:"/system/inputs/",extractors:void 0,extractor:void 0,init:function(){this.trigger({extractors:this.extractors,extractor:this.extractor})},list:function(t){var e=this,n=Object(u.b)("GET",f.f(f.c(this.sourceUrl,t,"extractors")));n.then((function(t){e.extractors=t.extractors,e.trigger({extractors:e.extractors})})),d.list.promise(n)},new:function(t,e){if(-1===l.a.EXTRACTOR_TYPES.indexOf(t))throw new Error("Invalid extractor type provided: ".concat(t));return{type:t,source_field:e,converters:[],extractor_config:{},target_field:""}},get:function(t,e){var n=this,r=Object(u.b)("GET",f.f(f.c(this.sourceUrl,t,"extractors",e)));r.then((function(t){n.extractor=t,n.trigger({extractor:n.extractor})})),d.get.promise(r)},save:function(t,e){var n;n=e.id?this.update(t,e,!0):this.create(t,e,!0),d.save.promise(n)},_silentExtractorCreate:function(t,e){var n=f.f(s.a.ExtractorsController.create(t).url);return Object(u.b)("POST",n,p(e))},create:function(t,e,n){var r=this,i=this._silentExtractorCreate(t,e);return i.then((function(){h.a.success("Extractor ".concat(e.title," created successfully")),r.extractor&&d.get.triggerPromise(t,e.id)})).catch((function(t){h.a.error("Creating extractor failed: ".concat(t),"Could not create extractor")})),n||d.create.promise(i),i},update:function(t,e,n){var r=this,i=f.f(s.a.ExtractorsController.update(t,e.id).url),o=Object(u.b)("PUT",i,p(e));return o.then((function(){h.a.success('Extractor "'.concat(e.title,'" updated successfully')),r.extractor&&d.get.triggerPromise(t,e.id)})).catch((function(t){h.a.error("Updating extractor failed: ".concat(t),"Could not update extractor")})),n||d.update.promise(o),o},delete:function(t,e){var n=this,r=f.f(s.a.ExtractorsController.delete(t,e.id).url),i=Object(u.b)("DELETE",r);i.then((function(){h.a.success('Extractor "'.concat(e.title,'" deleted successfully')),n.extractors&&d.list.triggerPromise(t)})).catch((function(t){h.a.error("Deleting extractor failed: ".concat(t),"Could not delete extractor ".concat(e.title))})),d.delete.promise(i)},order:function(t,e){var n=this,r=f.f(s.a.ExtractorsController.order(t).url),i={};e.forEach((function(t,e){return i[e]=t.id}));var o=Object(u.b)("POST",r,{order:i});o.then((function(){h.a.success("Extractor positions updated successfully"),n.extractors&&d.list.triggerPromise(t)})),o.catch((function(t){h.a.error("Changing extractor positions failed: ".concat(t),"Could not update extractor positions")})),d.order.promise(o)},import:function(t,e){var n=this,r=0,i=0,o=[];e.forEach((function(e){var a=n._silentExtractorCreate(t,e);a.then((function(){return r++})).catch((function(){return i++})),o.push(a)})),a.a.settle(o).then((function(){0===i?h.a.success("Import results: ".concat(r," extractor(s) imported."),"Import operation successful"):h.a.warning("Import results: ".concat(r," extractor(s) imported, ").concat(i," error(s)."),"Import operation completed")}))}});e.default=g},"6aqzefQH":function(t,exports,e){t.exports=e("jaIgFIJB")(800)},"6hgZTaCd":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("HbbeyvOy"),a=n("L+5XEiOD"),s=n("QlBQbb2U"),u=n("8GJ6oOEd");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:Object(r.Map)();u(this,t),this.value=e}return l(t,[{key:"v",value:function(t){return this.value=this.value.set("v",t),this}},{key:"id",value:function(t){return this.value=this.value.set("id",t),this}},{key:"rev",value:function(t){return this.value=this.value.set("rev",t),this}},{key:"name",value:function(t){return this.value=this.value.set("name",t),this}},{key:"summary",value:function(t){return this.value=this.value.set("summary",t),this}},{key:"description",value:function(t){return this.value=this.value.set("description",t),this}},{key:"vendor",value:function(t){return this.value=this.value.set("vendor",t),this}},{key:"url",value:function(t){return this.value=this.value.set("url",t),this}},{key:"parameters",value:function(t){return this.value=this.value.set("parameters",t),this}},{key:"removeParameter",value:function(t){var e=this.value.get("parameters").slice(0);return Object(i.remove)(e,(function(e){return e.name===t.name})),this.value=this.value.set("parameters",e),this}},{key:"addParameter",value:function(t){var e=this.value.get("parameters"),n=Object(i.concat)(e,t);return this.value=this.value.set("parameters",n),this}},{key:"entities",value:function(t){return this.value=this.value.set("entities",t),this}},{key:"build",value:function(){var t=this.value.toObject(),e=t.v,n=t.id,r=t.rev,i=t.name,o=t.summary,a=t.description,s=t.vendor,u=t.url,c=t.parameters,l=t.entities;return new f(e,n,r,i,o,a,s,u,c,l)}}]),t}()},"7cemt1Ep":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("HbbeyvOy"),a=n("QlBQbb2U"),s=n("L+5XEiOD"),u=n("JBQWIv26").a.getActions("IndexerCluster"),c=i.a.createStore({listenables:[u],state:{},init:function(){this.update()},update:function(){var t=this;Promise.all([this.health().then((function(e){t.state.health=e})),this.name().then((function(e){t.state.name=e.name}))]).then((function(){return t.trigger(t.state)}))},getInitialState:function(){return this.state},health:function(){var t=o.f(a.a.IndexerClusterApiController.health().url),e=Object(s.b)("GET",t);return u.health.promise(e),e},name:function(){var t=o.f(a.a.IndexerClusterApiController.name().url),e=Object(s.b)("GET",t);return u.name.promise(e),e}});e.default=c},"7mxP2006":function(t,exports,e){"use strict";t.exports=i,t.exports.isMobile=i,t.exports.default=i;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function i(t){t||(t={});var e=t.ua;if(e||"undefined"==typeof navigator||(e=navigator.userAgent),e&&e.headers&&"string"==typeof e.headers["user-agent"]&&(e=e.headers["user-agent"]),"string"!=typeof e)return!1;var i=t.tablet?r.test(e):n.test(e);return!i&&t.tablet&&t.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==e.indexOf("Macintosh")&&-1!==e.indexOf("Safari")&&(i=!0),i}},"843IJxye":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({listPaginated:{asyncResult:!0},getSidecar:{asyncResult:!0},getSidecarActions:{asyncResult:!0},restartCollector:{asyncResult:!0},assignConfigurations:{asyncResult:!0}});e.default=i},"8FtKQWAV":function(t,exports){t.exports=function t(e,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})/,u=/^0x[0-9a-f]+$/i,c=/^0/,l=function(e){return t.insensitive&&(""+e).toLowerCase()||""+e},f=l(e).replace(a,"")||"",h=l(n).replace(a,"")||"",d=f.replace(o,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),p=h.replace(o,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),g=parseInt(f.match(u),16)||1!==d.length&&f.match(s)&&Date.parse(f),v=parseInt(h.match(u),16)||g&&h.match(s)&&Date.parse(h)||null;if(v){if(gv)return 1}for(var y=0,m=Math.max(d.length,p.length);yi)return 1}return 0}},"8GJ6oOEd":function(t,e,n){"use strict";var r=n("ieFRrI0A"),i=n.n(r),o=n("dFpwyWHg"),a=n.n(o),s=n("iZv4FjGd"),u={insert:"head",singleton:!1};a()(s.a,u),s.a.locals;function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;eClose",progressBar:!0,preventDuplicates:!0},d={error:function(t,e){i.a.error(t,e||"Error",l(l({},h),{},{timeOut:1e4}))},warning:function(t,e){i.a.warning(t,e||"Attention",h)},success:function(t,e){i.a.success(t,e||"Information",h)}};e.a=d},"8Yr86ech":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("8GJ6oOEd"),a=n("HbbeyvOy"),s=(n("QlBQbb2U"),n("L+5XEiOD")),u=i.a.createStore({listenables:[],sourceUrl:function(t){return"/system/inputs/".concat(t,"/staticfields")},create:function(t,e,n){var r=this,i=a.f(this.sourceUrl(t.id)),u=Object(s.b)("POST",i,{key:e,value:n});return u.then((function(n){return r.trigger({}),o.a.success("Static field '".concat(e,"' added to '").concat(t.title,"' successfully")),n}),(function(e){o.a.error("Adding static field to input failed with: ".concat(e),"Could not add static field to input '".concat(t.title,"'"))})),u},destroy:function(t,e){var n=this,r=a.f("".concat(this.sourceUrl(t.id),"/").concat(e)),i=Object(s.b)("DELETE",r);return i.then((function(r){return n.trigger({}),o.a.success("Static field '".concat(e,"' removed from '").concat(t.title,"' successfully")),r}),(function(n){o.a.error("Removing static field from input failed with: ".concat(n),"Could not remove static field '".concat(e," from input '").concat(t.title,"'"))})),i}});e.default=u},"8rIlJz84":function(t,exports){t.exports=function(t,e,n,r,i){var o=1/Math.tan(e/2),a=1/(r-i);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+r)*a,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*r*a,t[15]=0,t}},"9SZBCN7s":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({list:{asyncResult:!0},get:{asyncResult:!0}});e.default=i},"9YbPW59L":function(t,exports,e){t.exports=e("jaIgFIJB")(354)},"9bxIX4ke":function(t,exports,e){"use strict";var n={};function r(t){t&&null!==t.timer&&(clearTimeout(t.timer),t.timer=null)}exports.throttle=function(t,e,i){var o=n[t],a=Date.now();if(!o){for(var s in n)n[s].tso.ts+e?u():o.timer=setTimeout((function(){u(),o.timer=null}),e)},exports.done=function(t){var e=n[t];return e&&e.timer?new Promise((function(t){var n=e.onDone;e.onDone=function(){n&&n(),t(),e.onDone=null}})):Promise.resolve()},exports.clear=function(t){if(t)r(n[t]),delete n[t];else for(var e in n)exports.clear(e)}},"9pBmxVng":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("nHcjWeCO"),a=n.n(o),s=n("HbbeyvOy"),u=n("QlBQbb2U"),c=n("L+5XEiOD"),l=n("JBQWIv26"),f=n("VPaD/Np4"),h=n.n(f);function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:h.a.Map();d(this,t),this.value=e}return g(t,[{key:"id",value:function(e){return new t(this.value.set("id",e))}},{key:"title",value:function(e){return new t(this.value.set("title",e))}},{key:"type",value:function(e){return new t(this.value.set("type",e))}},{key:"build",value:function(){var t=this.value.toObject(),e=t.id,n=t.title,r=t.type;return new v(e,n,r)}}]),t}(),m=l.a.getActions("Catalog"),b=i.a.createStore({listenables:[m],showEntityIndex:function(){var t=this,e=s.f(u.a.CatalogsController.showEntityIndex().url),n=Object(c.b)("GET",e).then((function(e){var n=a.a.groupBy(e.entities.map((function(t){return v.fromJSON(t)})),"type.name");return t.trigger({entityIndex:n}),e}));m.showEntityIndex.promise(n)},getSelectedEntities:function(t){var e=Object.keys(t).reduce((function(e,n){return e.concat(t[n].filter((function(t){return t instanceof v})).map((function(t){return t.toJSON()})))}),[]),n=s.f(u.a.CatalogsController.queryEntities().url),r=Object(c.b)("POST",n,{entities:e});m.getSelectedEntities.promise(r)}});e.default=b},A5P9b9BX:function(t,exports,e){"use strict";var n=e("0Ft3SWJB"),r=e("FDg8C/At"),i={name:{valType:"string",role:"style",editType:"none",description:["When used in a template, named items are created in the output figure","in addition to any items the figure already has in this array.","You can modify these items in the output figure by making your own","item with `templateitemname` matching this `name`","alongside your modifications (including `visible: false` or","`enabled: false` to hide it).","Has no effect outside of a template."].join(" ")}};function o(t){return t&&"string"==typeof t}function a(t){var e=t.length-1;return"s"!==t.charAt(e)&&n.warn("bad argument to arrayDefaultKey: "+t),t.substr(0,t.length-1)+"defaults"}i.templateitemname={valType:"string",role:"info",editType:"calc",description:["Used to refer to a named item in this array in the template. Named","items from the template will be created even without a matching item","in the input figure, but you can modify one by making an item with","`templateitemname` matching its `name`, alongside your modifications","(including `visible: false` or `enabled: false` to hide it).","If there is no template or no matching item, this item will be","hidden unless you explicitly show it with `visible: true`."].join(" ")},exports.templatedArray=function(t,e){return e._isLinkedToArray=t,e.name=i.name,e.templateitemname=i.templateitemname,e},exports.traceTemplater=function(t){var e,i,o={};for(e in t)i=t[e],Array.isArray(i)&&i.length&&(o[e]=0);return{newTrace:function(a){var s={type:e=n.coerce(a,{},r,"type"),_template:null};if(e in o){i=t[e];var u=o[e]%i.length;o[e]++,s._template=i[u]}return s}}},exports.newContainer=function(t,e,r){var i=t._template,o=i&&(i[e]||r&&i[r]);return n.isPlainObject(o)||(o=null),t[e]={_template:o}},exports.arrayTemplater=function(t,e,n){var r=t._template,i=r&&r[a(e)],s=r&&r[e];Array.isArray(s)&&s.length||(s=[]);var u={};return{newItem:function(t){var e={name:t.name,_input:t},r=e.templateitemname=t.templateitemname;if(!o(r))return e._template=i,e;for(var a=0;a=i&&(r._input||{})._templateitemname;a&&(o=i);var s,u=e+"["+o+"]";function c(){s={},a&&(s[u]={},s[u].templateitemname=a)}function l(t,e){a?n.nestedProperty(s[u],t).set(e):s[u+"."+t]=e}function f(){var t=s;return c(),t}return c(),{modifyBase:function(t,e){s[t]=e},modifyItem:l,getUpdateObj:f,applyUpdate:function(e,r){e&&l(e,r);var i=f();for(var o in i)n.nestedProperty(t,o).set(i[o])}}}},"A91Apzz+":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({list:{asyncResult:!0},getJob:{asyncResult:!0},cancelJob:{asyncResult:!0}});e.default=i},AFTZni7Z:function(t,exports,e){var n,r;!function(i,o){"use strict";t.exports?t.exports=o():void 0===(r="function"==typeof(n=o)?n.call(exports,e,exports,t):n)||(t.exports=r)}(0,(function(t){"use strict";var e=t&&t.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(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;var r=t.lastIndexOf(".",e-1);if(r<=0||r>=e-1)return!1;var i=n.list[t.slice(e+1)];return!!i&&i.indexOf(" "+t.slice(r+1,e)+" ")>=0},is:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;if(t.lastIndexOf(".",e-1)>=0)return!1;var r=n.list[t.slice(e+1)];return!!r&&r.indexOf(" "+t.slice(0,e)+" ")>=0},get:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return null;var r=t.lastIndexOf(".",e-1);if(r<=0||r>=e-1)return null;var i=n.list[t.slice(e+1)];return i?i.indexOf(" "+t.slice(r+1,e)+" ")<0?null:t.slice(r+1):null},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=e),this}};return n}))},AKMpLma3:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("QlBQbb2U"),a=n("L+5XEiOD"),s=n("HbbeyvOy"),u=n("8GJ6oOEd"),c=n("21p8kIWv").a.get("CodecTypes").CodecTypesActions,l=i.a.createStore({listenables:[c],codecTypes:void 0,getInitialState:function(){return{codecTypes:this.codecTypes}},list:function(){var t=this,e=Object(a.b)("GET",s.f(o.a.CodecTypesController.list().url));e.then((function(e){t.codecTypes=e,t.trigger(t.getInitialState())}),(function(t){u.a.error("Fetching codec types failed with status: ".concat(t),"Could not retrieve codec types")})),c.list.promise(e)}});e.default=l},"AXCy/LZT":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({all:{asyncResult:!0},list:{asyncResult:!0},listUploads:{asyncResult:!0},getConfiguration:{asyncResult:!0},getConfigurationSidecars:{asyncResult:!0},getUploads:{asyncResult:!0},createConfiguration:{asyncResult:!0},updateConfiguration:{asyncResult:!0},renderPreview:{asyncResult:!0},copyConfiguration:{asyncResult:!0},delete:{asyncResult:!0},validate:{asyncResult:!0}});e.default=i},AztyBNMT:function(t,exports,e){t.exports={PluginManifest:e("2nHm30BR"),PluginStore:e("Mv52k5JB")}},BLeQIiIw:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("nHcjWeCO"),a=n.n(o),s=n("8GJ6oOEd"),u=n("HbbeyvOy"),c=n("QlBQbb2U"),l=n("L+5XEiOD"),f=n("JBQWIv26").a.getActions("AlertConditions"),h=i.a.createStore({listenables:f,allAlertConditions:void 0,availableConditions:void 0,getInitialState:function(){return{availableConditions:this.availableConditions,allAlertConditions:this.allAlertConditions}},available:function(){var t=this,e=u.f(c.a.AlertConditionsApiController.available().url),n=Object(l.b)("GET",e).then((function(e){t.availableConditions=e,t.trigger({availableConditions:t.availableConditions})}));return f.available.promise(n),n},delete:function(t,e){var n=u.f(c.a.StreamAlertsApiController.delete(t,e).url),r=Object(l.b)("DELETE",n).then((function(){f.listAll(),s.a.success("Condition deleted successfully")}),(function(t){s.a.error("Removing Alert Condition failed with status: ".concat(t),"Could not remove Alert Conditions")}));return f.delete.promise(r),r},listAll:function(){var t=this,e=u.f(c.a.AlertConditionsApiController.list().url),n=Object(l.b)("GET",e).then((function(e){return t.allAlertConditions=e.conditions,t.trigger({allAlertConditions:t.allAlertConditions}),t.allAlertConditions}),(function(t){s.a.error("Fetching alert conditions failed with status: ".concat(t),"Could not get alert conditions")}));f.listAll.promise(n)},list:function(t){var e=this,n=u.f(c.a.StreamAlertsApiController.list(t).url),r=Object(l.b)("GET",n).then((function(n){var r=n.conditions.map((function(e){var n=a.a.clone(e);return n.stream_id=t,n}));return e.trigger({alertConditions:r}),r}),(function(t){s.a.error("Fetching Alert Conditions failed with status: ".concat(t),"Could not retrieve Alert Conditions")}));return f.list.promise(r),r},save:function(t,e){var n=u.f(c.a.StreamAlertsApiController.create(t).url),r=Object(l.b)("POST",n,e).then((function(t){return s.a.success("Condition created successfully"),t.alert_condition_id}),(function(t){s.a.error("Saving Alert Condition failed with status: ".concat(t),"Could not save Alert Condition")}));return f.save.promise(r),r},update:function(t,e,n){var r=u.f(c.a.StreamAlertsApiController.update(t,e).url),i=Object(l.b)("PUT",r,n).then((function(t){return s.a.success("Condition updated successfully"),t}),(function(t){s.a.error("Saving Alert Condition failed with status: ".concat(t),"Could not save Alert Condition")}));return f.update.promise(i),i},get:function(t,e,n){var r=this,i=u.f(c.a.StreamAlertsApiController.get(t,e).url),o=Object(l.b)("GET",i);o.then((function(t){return r.trigger({alertCondition:t}),t}),(function(t){return"function"==typeof n?n(t):function(t){s.a.error("Fetching Alert Condition ".concat(e," failed with status: ").concat(t),"Could not retrieve Alert Condition")}(t)})),f.get.promise(o)},test:function(t,e){var n=u.f(c.a.StreamAlertsApiController.test(t,e).url),r=Object(l.b)("POST",n);f.test.promise(r)}});e.default=h},BSRFGq4X:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({login:{asyncResult:!0},logout:{asyncResult:!0},validate:{asyncResult:!0}});e.default=i},Bise7ZaT:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("8GJ6oOEd"),a=n("HbbeyvOy"),s=n("QlBQbb2U"),u=n("L+5XEiOD"),c=n("21p8kIWv").a.get("Pipelines").PipelinesActions,l=i.a.createStore({listenables:[c],pipelines:void 0,getInitialState:function(){return{pipelines:this.pipelines}},_updatePipelinesState:function(t){this.pipelines?this.pipelines.some((function(e){return e.id===t.id}))?this.pipelines=this.pipelines.map((function(e){return e.id===t.id?t:e})):this.pipelines.push(t):this.pipelines=[t];this.trigger({pipelines:this.pipelines})},list:function(){var t=this,e=Object(a.f)(s.a.PipelinesController.list().url);return Object(u.b)("GET",e).then((function(e){t.pipelines=e,t.trigger({pipelines:e})}),(function(t){o.a.error("Fetching pipelines failed with status: ".concat(t.message),"Could not retrieve processing pipelines")}))},get:function(t){var e=Object(a.f)(s.a.PipelinesController.get(t).url);Object(u.b)("GET",e).then(this._updatePipelinesState,(function(e){o.a.error("Fetching pipeline failed with status: ".concat(e.message),'Could not retrieve processing pipeline "'.concat(t,'"'))}))},save:function(t){var e=this,n=Object(a.f)(s.a.PipelinesController.create().url),r={title:t.title,description:t.description,source:t.source},i=Object(u.b)("POST",n,r);i.then((function(t){e._updatePipelinesState(t),o.a.success('Pipeline "'.concat(r.title,'" created successfully'))}),(function(t){o.a.error("Saving pipeline failed with status: ".concat(t.message),"Could not save processing pipeline")})),c.save.promise(i)},update:function(t){var e=this,n=Object(a.f)(s.a.PipelinesController.update(t.id).url),r={id:t.id,title:t.title,description:t.description,source:t.source},i=Object(u.b)("PUT",n,r);i.then((function(t){e._updatePipelinesState(t),o.a.success('Pipeline "'.concat(r.title,'" updated successfully'))}),(function(t){o.a.error("Updating pipeline failed with status: ".concat(t.message),"Could not update processing pipeline")})),c.update.promise(i)},delete:function(t){var e=this,n=Object(a.f)(s.a.PipelinesController.delete(t).url);return Object(u.b)("DELETE",n).then((function(){var n=e.pipelines||[];e.pipelines=n.filter((function(e){return e.id!==t})),e.trigger({pipelines:e.pipelines}),o.a.success('Pipeline "'.concat(t,'" deleted successfully'))}),(function(e){o.a.error("Deleting pipeline failed with status: ".concat(e.message),'Could not delete processing pipeline "'.concat(t,'"'))}))},parse:function(t,e){var n=Object(a.f)(s.a.PipelinesController.parse().url),r={title:t.title,description:t.description,source:t.source};return Object(u.b)("POST",n,r).then((function(){e([])}),(function(t){400===t.status&&e(t.additional.body)}))}});e.default=l},BrPJAV99:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({get:{asyncResult:!0}});e.default=i},C7WUsZ7w:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({get:{asyncResult:!0},list:{asyncResult:!0},listPaginated:{asyncResult:!0},listAllPaginated:{asyncResult:!0},listAllStreams:{asyncResult:!0}});e.default=i},CG95fjBK:function(t,exports){t.exports=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],a=e[5],s=e[6],u=e[7],c=e[8],l=e[9],f=e[10],h=e[11];e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=o*i+c*r,t[5]=a*i+l*r,t[6]=s*i+f*r,t[7]=u*i+h*r,t[8]=c*i-o*r,t[9]=l*i-a*r,t[10]=f*i-s*r,t[11]=h*i-u*r,t}},COXm4vGc:function(t,exports,e){var n;!function(r,i){"use strict";var o="function",a="undefined",s="object",u="model",c="name",l="type",f="vendor",h="version",d="architecture",p="console",g="mobile",v="tablet",y="smarttv",m="wearable",b={extend:function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n},has:function(t,e){return"string"==typeof t&&-1!==e.toLowerCase().indexOf(t.toLowerCase())},lowerize:function(t){return t.toLowerCase()},major:function(t){return"string"==typeof t?t.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},_={rgx:function(t,e){for(var n,r,a,u,c,l,f=0;f0?2==u.length?typeof u[1]==o?this[u[0]]=u[1].call(this,l):this[u[0]]=u[1]:3==u.length?typeof u[1]!==o||u[1].exec&&u[1].test?this[u[0]]=l?l.replace(u[1],u[2]):i:this[u[0]]=l?u[1].call(this,l,u[2]):i:4==u.length&&(this[u[0]]=l?u[3].call(this,l.replace(u[1],u[2])):i):this[u]=l||i;f+=2}},str:function(t,e){for(var n in e)if(typeof e[n]===s&&e[n].length>0){for(var r=0;r>>24)|4278255360&(s[d]<<24|s[d]>>>8);s[u>>>5]|=128<>>9<<4)]=u;var p=a._ff,g=a._gg,v=a._hh,y=a._ii;for(d=0;d>>0,l=l+b>>>0,f=f+_>>>0,h=h+w>>>0}return n.endian([c,l,f,h])})._ff=function(t,e,n,r,i,o,a){var s=t+(e&n|~e&r)+(i>>>0)+a;return(s<>>32-o)+e},a._gg=function(t,e,n,r,i,o,a){var s=t+(e&r|n&~r)+(i>>>0)+a;return(s<>>32-o)+e},a._hh=function(t,e,n,r,i,o,a){var s=t+(e^n^r)+(i>>>0)+a;return(s<>>32-o)+e},a._ii=function(t,e,n,r,i,o,a){var s=t+(n^(e|~r))+(i>>>0)+a;return(s<>>32-o)+e},a._blocksize=16,a._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(a(t,e));return e&&e.asBytes?r:e&&e.asString?o.bytesToString(r):n.bytesToHex(r)}},"DGPF6u+k":function(t,exports,e){"use strict";t.exports=function(t){for(var e,n=t.length,r=0;r13)&&32!==e&&133!==e&&160!==e&&5760!==e&&6158!==e&&(e<8192||e>8205)&&8232!==e&&8233!==e&&8239!==e&&8287!==e&&8288!==e&&12288!==e&&65279!==e)return!1;return!0}},DUuaJyXG:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("L+5XEiOD"),a=n("QlBQbb2U"),s=n("HbbeyvOy"),u=n("8GJ6oOEd"),c=i.a.createStore({OUTPUTS_URL:s.f(a.a.OutputsApiController.index().url),load:function(t){Object(o.b)("GET",this.OUTPUTS_URL).then(t,this._failCallback)},loadForStreamId:function(t,e){var n=s.f(a.a.StreamOutputsApiController.index(t).url);Object(o.b)("GET",n).then(e,this._failCallback)},loadAvailableTypes:function(t){var e=s.f(a.a.OutputsApiController.availableTypes().url);Object(o.b)("GET",e).then(t,this._failCallback)},loadAvailable:function(t,e){var n=s.f(a.a.OutputsApiController.availableTypes().url);Object(o.b)("GET",n).then((function(e){return e.types[t]}),this._failCallback).then(e)},remove:function(t,e){var n=s.f(a.a.OutputsApiController.delete(t).url);Object(o.b)("DELETE",n).then(e,(function(t){u.a.error("Terminating output failed with status: ".concat(t),"Could not terminate output")}))},save:function(t,e){var n=s.f(a.a.OutputsApiController.create().url);Object(o.b)("POST",n,t).then(e,(function(e){u.a.error('Saving Output "'.concat(t.title,'" failed with status: ').concat(e),"Could not save Output")}))},update:function(t,e,n){var r=s.f(a.a.OutputsApiController.update(t.id).url);Object(o.b)("PUT",r,e).then(n,(function(e){u.a.error('Updating Output "'.concat(t.title,'" failed with status: ').concat(e),"Could not update Output")}))},_failCallback:function(t){u.a.error("Loading outputs failed with status: ".concat(t),"Could not load outputs")}});e.default=c},DjJvgDaP:function(t,exports,e){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o, please ensure it wasn't deleted."),"Could not retrieve Event Definition")})),g.get.promise(e)},setAlertFlag:function(t){var e=t.notifications.length>0;return d(d({},t),{},{alert:e})},extractSchedulerInfo:function(t){var e=u.a.cloneDeep(t),n=u.a.pick(e.config,["_is_scheduled"])._is_scheduled;return e.config=u.a.omit(e.config,["_is_scheduled"]),{eventDefinition:e,isScheduled:u.a.defaultTo(n,!0)}},create:function(t){var e=this,n=this.extractSchedulerInfo(t),r=n.eventDefinition,i=n.isScheduled,o=Object(f.b)("POST",this.eventDefinitionsUrl({query:{schedule:i}}),this.setAlertFlag(r));o.then((function(t){return l.a.success("Event Definition created successfully",'Event Definition "'.concat(r.title,'" was created successfully.')),e.refresh(),t}),(function(t){400===t.status&&t.additional.body&&t.additional.body.failed||l.a.error('Creating Event Definition "'.concat(r.title,'" failed with status: ').concat(t),"Could not save Event Definition")})),g.create.promise(o)},update:function(t,e){var n=this,r=this.extractSchedulerInfo(e),i=r.eventDefinition,o=r.isScheduled,a=Object(f.b)("PUT",this.eventDefinitionsUrl({segments:[t],query:{schedule:o}}),this.setAlertFlag(i));a.then((function(t){return l.a.success("Event Definition updated successfully",'Event Definition "'.concat(i.title,'" was updated successfully.')),n.refresh(),t}),(function(t){400===t.status&&t.additional.body&&t.additional.body.failed||l.a.error('Updating Event Definition "'.concat(i.title,'" failed with status: ').concat(t),"Could not update Event Definition")})),g.update.promise(a)},delete:function(t){var e=this,n=Object(f.b)("DELETE",this.eventDefinitionsUrl({segments:[t.id]}));n.then((function(){l.a.success("Event Definition deleted successfully",'Event Definition "'.concat(t.title,'" was deleted successfully.')),e.refresh()}),(function(e){l.a.error('Deleting Event Definition "'.concat(t.title,'" failed with status: ').concat(e),"Could not delete Event Definition")})),g.delete.promise(n)},enable:function(t){var e=this,n=Object(f.b)("PUT",this.eventDefinitionsUrl({segments:[t.id,"schedule"]}));n.then((function(n){return l.a.success("Event Definition successfully enabled",'Event Definition "'.concat(t.title,'" was successfully enabled.')),e.refresh(),n}),(function(e){400===e.status&&e.additional.body&&e.additional.body.failed||l.a.error('Enabling Event Definition "'.concat(t.title,'" failed with status: ').concat(e),"Could not enable Event Definition")})),g.enable.promise(n)},disable:function(t){var e=this,n=Object(f.b)("PUT",this.eventDefinitionsUrl({segments:[t.id,"unschedule"]}));n.then((function(n){return l.a.success("Event Definition successfully disabled",'Event Definition "'.concat(t.title,'" was successfully disabled.')),e.refresh(),n}),(function(e){400===e.status&&e.additional.body&&e.additional.body.failed||l.a.error('Disabling Event Definition "'.concat(t.title,'" failed with status: ').concat(e),"Could not disable Event Definition")})),g.disable.promise(n)}});e.default=v},"FDg8C/At":function(t,exports,e){"use strict";var n=e("CPF8cYDb");t.exports={type:{valType:"enumerated",role:"info",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],role:"info",dflt:!0,editType:"calc",description:["Determines whether or not this trace is visible.","If *legendonly*, the trace is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")},showlegend:{valType:"boolean",role:"info",dflt:!0,editType:"style",description:["Determines whether or not an item corresponding to this","trace is shown in the legend."].join(" ")},legendgroup:{valType:"string",role:"info",dflt:"",editType:"style",description:["Sets the legend group for this trace.","Traces part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")},opacity:{valType:"number",role:"style",min:0,max:1,dflt:1,editType:"style",description:"Sets the opacity of the trace."},name:{valType:"string",role:"info",editType:"style",description:["Sets the trace name.","The trace name appear as the legend item and on hover."].join(" ")},uid:{valType:"string",role:"info",editType:"plot",anim:!0,description:["Assign an id to this trace,","Use this to provide object constancy between traces during animations","and transitions."].join(" ")},ids:{valType:"data_array",editType:"calc",anim:!0,description:["Assigns id labels to each datum.","These ids for object constancy of data points during animation.","Should be an array of strings, not numbers or any other type."].join(" ")},customdata:{valType:"data_array",editType:"calc",description:["Assigns extra data each datum.","This may be useful when listening to hover, click and selection events.","Note that, *scatter* traces also appends customdata items in the markers","DOM elements"].join(" ")},meta:{valType:"any",arrayOk:!0,role:"info",editType:"plot",description:["Assigns extra meta information associated with this trace","that can be used in various text attributes.","Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text`","`rangeselector`, `updatemenues` and `sliders` `label` text","all support `meta`.","To access the trace `meta` values in an attribute in the same trace, simply use","`%{meta[i]}` where `i` is the index or key of the `meta`","item in question.","To access trace `meta` in layout attributes, use","`%{data[n[.meta[i]}` where `i` is the index or key of the `meta`","and `n` is the trace index."].join(" ")},selectedpoints:{valType:"any",role:"info",editType:"calc",description:["Array containing integer indices of selected points.","Has an effect only for traces that support selections.","Note that an empty array means an empty selection where the `unselected`","are turned on for all points, whereas, any other non-array values means no","selection all where the `selected` and `unselected` styles have no effect."].join(" ")},hoverinfo:{valType:"flaglist",role:"info",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none",description:["Determines which trace information appear on hover.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired."].join(" ")},hoverlabel:n.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,role:"info",editType:"calc",description:["The stream id number links a data trace on a plot with a stream.","See https://chart-studio.plotly.com/settings for more details."].join(" ")},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,role:"info",editType:"calc",description:["Sets the maximum number of points to keep on the plots from an","incoming stream.","If `maxpoints` is set to *50*, only the newest 50 points will","be displayed on the plot."].join(" ")},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc",description:["An array of operations that manipulate the trace data,","for example filtering or sorting the data arrays."].join(" ")},uirevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of some user-driven changes to the trace:","`constraintrange` in `parcoords` traces, as well as some","`editable: true` modifications such as `name` and `colorbar.title`.","Defaults to `layout.uirevision`.","Note that other user-driven trace attribute changes are controlled","by `layout` attributes:","`trace.visible` is controlled by `layout.legend.uirevision`,","`selectedpoints` is controlled by `layout.selectionrevision`,","and `colorbar.(x|y)` (accessible with `config: {editable: true}`)","is controlled by `layout.editrevision`.","Trace changes are tracked by `uid`, which only falls back on trace","index if no `uid` is provided. So if your app can add/remove traces","before the end of the `data` array, such that the same trace has a","different index, you can still preserve user-driven changes if you","give each trace a `uid` that stays with it as it moves."].join(" ")}}},Facw8pjZ:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({loggers:{asyncResult:!0},subsystems:{asyncResult:!0},setSubsystemLoggerLevel:{asyncResult:!0}});e.default=i},G8RuLtbf:function(t,e,n){"use strict";var r=n("mRXwKqDg");function i(t,e){for(var n=0;n"))}},{key:"registerSubtype",value:function(t,e){this.__registrations[t.toLocaleLowerCase()]=e}}],(n=[{key:"type",get:function(){return this._value.type}},{key:"name",get:function(){return this._value.name}},{key:"title",get:function(){return this._value.title}},{key:"description",get:function(){return this._value.description}},{key:"dataType",get:function(){return this._value.dataType}},{key:"defaultValue",get:function(){return this._value.defaultValue}},{key:"optional",get:function(){return this._value.optional}},{key:"needsBinding",get:function(){return!0}},{key:"binding",get:function(){return this._value.binding}}])&&i(e.prototype,n),r&&i(e,r),t}();o(a,"__registrations",{});var s=Object(r.a)("views.logic.parameters.Parameter",(function(){return a}));e.a=s},GHO4z1CW:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({list:{asyncResult:!0},listSearchesClusterConfig:{asyncResult:!0},listMessageProcessorsConfig:{asyncResult:!0},listEventsClusterConfig:{asyncResult:!0},listWhiteListConfig:{asyncResult:!0},update:{asyncResult:!0},updateWhitelist:{asyncResult:!0},updateMessageProcessorsConfig:{asyncResult:!0}});e.default=i},H1SnJhgx:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i={tempDocument:document.createElement("textarea"),capitalizeFirstLetter:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},escapeHTML:function(t){return this.tempDocument.textContent=t,this.tempDocument.innerHTML},unescapeHTML:function(t){return this.tempDocument.innerHTML=t,this.tempDocument.textContent},pluralize:function(t,e,n){return 1===t||"1"===t?e:n},stringify:function(t){return("object"===r(t)?JSON.stringify(t):String(t))||""},replaceSpaces:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return t.replace(/\s/g,e)},truncateWithEllipses:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return t.length>e?"".concat(t.substring(0,e)).concat(n):t}};e.a=i},HQf5gZZO:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("YPyIcTeH"),a=n.n(o),s=n("HbbeyvOy"),u=n("QlBQbb2U"),c=n("L+5XEiOD"),l=i.a.createStore({system:void 0,locales:void 0,init:function(){var t=this;this.info().then((function(e){t.trigger({system:e}),t.system=e})),this.systemLocales().then((function(e){t.trigger({locales:e}),t.locales=e.locales}))},getInitialState:function(){return{system:this.system,locales:this.locales}},info:function(){var t=s.f(u.a.SystemApiController.info().url);return Object(c.b)("GET",t)},jvm:function(){var t=s.f(u.a.SystemApiController.jvm().url);return Object(c.b)("GET",t)},systemLocales:function(){var t=s.f(u.a.SystemApiController.locales().url);return Object(c.b)("GET",t)},elasticsearchVersion:function(){var t=s.f(u.a.ClusterApiResource.elasticsearchStats().url);return new a.a((function(e,n){Object(c.b)("GET",t).then((function(t){var n=t.cluster_version.split(".");e({major:n[0],minor:n[1],patch:n[2]})})).catch(n)}))}});e.default=l},HQzwY43I:function(t,exports){t.exports=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],g=e[13],v=e[14],y=e[15],m=n*s-r*a,b=n*u-i*a,_=n*c-o*a,w=r*u-i*s,x=r*c-o*s,S=i*c-o*u,O=l*g-f*p,T=l*v-h*p,k=l*y-d*p,A=f*v-h*g,C=f*y-d*g,E=h*y-d*v,j=m*E-b*C+_*A+w*k-x*T+S*O;if(!j)return null;return j=1/j,t[0]=(s*E-u*C+c*A)*j,t[1]=(i*C-r*E-o*A)*j,t[2]=(g*S-v*x+y*w)*j,t[3]=(h*x-f*S-d*w)*j,t[4]=(u*k-a*E-c*T)*j,t[5]=(n*E-i*k+o*T)*j,t[6]=(v*_-p*S-y*b)*j,t[7]=(l*S-h*_+d*b)*j,t[8]=(a*C-s*k+c*O)*j,t[9]=(r*k-n*C-o*O)*j,t[10]=(p*x-g*_+y*m)*j,t[11]=(f*_-l*x-d*m)*j,t[12]=(s*T-a*A-u*O)*j,t[13]=(n*A-r*T+i*O)*j,t[14]=(g*b-p*w-v*m)*j,t[15]=(l*w-f*b+h*m)*j,t}},HYSesDUg:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("HbbeyvOy"),a=n("L+5XEiOD"),s=n("8GJ6oOEd");function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&(n=n.substr(1,n.length-1),e=i.a.parse(n)),e},getParsedHash:function(t){var e={},n=t.hash;return n&&0===n.indexOf("#")&&n.length>1&&(n=n.substr(1,n.length-1),e=i.a.parse(n)),e},replaceHashParam:function(t,e){var n=this.getParsedHash(window.location);n[t]=e,window.location.replace("#".concat(i.a.stringify(n)))},concatURLPath:function(){for(var t=Array(arguments.length),e=0;e1&&void 0!==arguments[1]?arguments[1]:l,n=new URL(t);return e.includes(n.protocol)}},h=function(t,e){var n=new a.a(f.qualifyUrl(t));if(f.areCredentialsInURLSupported()){var r=void 0!==e?e:"";n=n.username(r).password("session")}return n.toString()},d=(f.parser,f.appPrefixed),p=(f.getParsedHash,f.getParsedSearch,f.qualifyUrl),g=(f.replaceHashParam,f.concatURLPath),v=f.areCredentialsInURLSupported,y=f.isValidURL,m=f.hasAcceptedProtocol},"HlG8UEh+":function(t,exports,e){"use strict";t.exports={mode:{valType:"enumerated",dflt:"afterall",role:"info",values:["immediate","next","afterall"],description:["Describes how a new animate call interacts with currently-running","animations. If `immediate`, current animations are interrupted and","the new animation is started. If `next`, the current frame is allowed","to complete, after which the new animation is started. If `afterall`","all existing frames are animated to completion before the new animation","is started."].join(" ")},direction:{valType:"enumerated",role:"info",values:["forward","reverse"],dflt:"forward",description:["The direction in which to play the frames triggered by the animation call"].join(" ")},fromcurrent:{valType:"boolean",dflt:!1,role:"info",description:["Play frames starting at the current frame instead of the beginning."].join(" ")},frame:{duration:{valType:"number",role:"info",min:0,dflt:500,description:["The duration in milliseconds of each frame. If greater than the frame","duration, it will be limited to the frame duration."].join(" ")},redraw:{valType:"boolean",role:"info",dflt:!0,description:["Redraw the plot at completion of the transition. This is desirable","for transitions that include properties that cannot be transitioned,","but may significantly slow down updates that do not require a full","redraw of the plot"].join(" ")}},transition:{duration:{valType:"number",role:"info",min:0,dflt:500,editType:"none",description:["The duration of the transition, in milliseconds. If equal to zero,","updates are synchronous."].join(" ")},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],role:"info",editType:"none",description:"The easing function used for the transition"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",role:"info",editType:"none",description:["Determines whether the figure's layout or traces smoothly transitions","during updates that make both traces and layout change."].join(" ")}}}},HoF8EwuB:function(t,exports,e){"use strict";t.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},"I4+ngRkl":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("QlBQbb2U"),a=n("L+5XEiOD"),s=n("HbbeyvOy"),u=n("8GJ6oOEd"),c=n("JBQWIv26").a.getActions("Alerts"),l=i.a.createStore({listenables:[c],list:function(t,e){var n=this,r=s.f(o.a.AlertsApiController.list(t.id,e).url),i=Object(a.b)("GET",r);i.then((function(t){return n.trigger({alerts:t})}),(function(e){u.a.error('Fetching alerts for stream "'.concat(t.title,'" failed with status: ').concat(e.message),'Could not retrieve alerts for stream "'.concat(t.title,'".'))})),c.list.promise(i)},listPaginated:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"any",l=s.f(o.a.AlertsApiController.listPaginated(t,e,n,i).url),f=Object(a.b)("GET",l);f.then((function(t){return r.trigger({alerts:t})}),(function(t){u.a.error("Fetching alerts failed with status: ".concat(t.message),"Could not retrieve alerts.")})),c.listPaginated.promise(f)},listAllPaginated:function(t,e,n){var r=this,i=s.f(o.a.AlertsApiController.listAllPaginated(t,e,n).url),l=Object(a.b)("GET",i);l.then((function(t){return r.trigger({alerts:t})}),(function(t){u.a.error("Fetching alerts failed with status: ".concat(t.message),"Could not retrieve alerts.")})),c.listAllPaginated.promise(l)},listAllStreams:function(t){var e=this,n=s.f(o.a.AlertsApiController.listAllStreams(t).url),r=Object(a.b)("GET",n);r.then((function(t){return e.trigger({alerts:t})}),(function(t){u.a.error("Fetching alerts failed with status: ".concat(t.message),"Could not retrieve alerts.")})),c.listAllStreams.promise(r)},get:function(t){var e=this,n=s.f(o.a.AlertsApiController.get(t).url),r=Object(a.b)("GET",n);r.then((function(t){return e.trigger({alert:t}),t}),(function(e){u.a.error("Fetching alert '".concat(t,"' failed with status: ").concat(e.message),"Could not retrieve alert.")})),c.get.promise(r)}});e.default=l},I7axAJ76:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({list:{asyncResult:!0},listPaginated:{asyncResult:!0},get:{asyncResult:!0},update:{asyncResult:!0},create:{asyncResult:!0},delete:{asyncResult:!0},setDefault:{asyncResult:!0},stats:{asyncResult:!0}});e.default=i},"IXv/bX4c":function(t,exports,e){"use strict";t.exports=function(t){for(var e={},n=[],r=0,i=0;i-1;s--){var u=o[s];if("Version/"===u.substr(0,8)){var c=u.substr(8).split(".")[0];if(n(c)&&(c=+c),c>=13)return!0}}}return i}},Jg5wVMAu:function(t,exports,e){(function(e){var n=Math.floor(16777215*Math.random()),r=o.index=parseInt(16777215*Math.random(),10),i=(void 0===e||"number"!=typeof e.pid?Math.floor(1e5*Math.random()):e.pid)%65535;function o(t){if(!(this instanceof o))return new o(t);if(t&&(t instanceof o||"ObjectID"===t._bsontype))return t;var e,n;if(null!=(n=t)&&n.constructor&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)||Array.isArray(t)&&12===t.length)e=Array.prototype.slice.call(t);else if("string"==typeof t){if(12!==t.length&&!o.isValid(t))throw new Error("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");e=u(t)}else/number|undefined/.test(typeof t)&&(e=u(a(t)));Object.defineProperty(this,"id",{enumerable:!0,get:function(){return String.fromCharCode.apply(this,e)}}),Object.defineProperty(this,"str",{get:function(){return e.map(s.bind(this,2)).join("")}})}function a(t){return"number"!=typeof t&&(t=Date.now()/1e3),s(8,t=parseInt(t,10)%4294967295)+s(6,n)+s(4,i)+s(6,r=(r+1)%16777215)}function s(t,e){return(e=e.toString(16)).length===t?e:"00000000".substring(e.length,t)+e}function u(t){var e=0,n=[];if(24===t.length)for(;e<24;n.push(parseInt(t[e]+t[e+1],16)),e+=2);else if(12===t.length)for(;e<12;n.push(t.charCodeAt(e)),e++);return n}t.exports=o,o.generate=a,o.default=o,o.createFromTime=function(t){return new o(s(8,t=parseInt(t,10)%4294967295)+"0000000000000000")},o.createFromHexString=function(t){if(!o.isValid(t))throw new Error("Invalid ObjectID hex string");return new o(t)},o.isValid=function(t){return!(!t||"string"!=typeof t&&("object"!=typeof t||Array.isArray(t)||"function"!=typeof t.toString))&&/^[0-9A-F]{24}$/i.test(t.toString())},o.setMachineID=function(t){var e;if("string"==typeof t){if(e=parseInt(t,16),isNaN(e)){t=("000000"+t).substr(-7,6),e="";for(var r=0;r<6;r++)e+=t.charCodeAt(r)}}else/number|undefined/.test(typeof t)&&(e=0|t);n=16777215&e},o.getMachineID=function(){return n},o.prototype={_bsontype:"ObjectID",constructor:o,toHexString:function(){return this.str},equals:function(t){return!!t&&this.str===t.toString()},getTimestamp:function(){return new Date(1e3*parseInt(this.str.substr(0,8),16))}};var c=Symbol&&Symbol.for("nodejs.util.inspect.custom")||"inspect";o.prototype[c]=function(){return"ObjectID("+this+")"},o.prototype.toJSON=o.prototype.toHexString,o.prototype.toString=o.prototype.toHexString}).call(this,e("JtWfgI3/"))},"JtWfgI3/":function(t,exports,e){t.exports=e("jaIgFIJB")(104)},"K/u0IGVS":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({list:{asyncResult:!0},get:{asyncResult:!0},getOptional:{asyncResult:!0},create:{asyncResult:!0},delete:{asyncResult:!0},update:{asyncResult:!0}});e.default=i},K8s00lb3:function(t,exports,e){"use strict";var n=e("0Ft3SWJB"),r=e("A5P9b9BX"),i=e("L/KVaTuj"),o=e("NfKInJuD");t.exports=function(t,e){function a(r,o){return n.coerce(t,e,i,r,o)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var s,u,c=e._colorAxes;function l(t,e){return n.coerce(s,u,i.coloraxis,t,e)}for(var f in c){var h=c[f];if(h[0])s=t[f]||{},(u=r.newContainer(e,f,"coloraxis"))._name=f,o(s,u,e,l,{prefix:"",cLetter:"c"});else{for(var d=0;d=n&&t<=r?t:c}if("string"!=typeof t&&"number"!=typeof t)return c;t=String(t);var u=_(e),v=t.charAt(0);!u||"G"!==v&&"g"!==v||(t=t.substr(1),e="");var w=u&&"chinese"===e.substr(0,7),x=t.match(w?m:y);if(!x)return c;var S=x[1],O=x[3]||"1",T=Number(x[5]||1),k=Number(x[7]||0),A=Number(x[9]||0),C=Number(x[11]||0);if(u){if(2===S.length)return c;var E;S=Number(S);try{var j=g.getComponentMethod("calendars","getCal")(e);if(w){var R="i"===O.charAt(O.length-1);O=parseInt(O,10),E=j.newDate(S,j.toMonthIndex(S,O,R),T)}else E=j.newDate(S,Number(O),T)}catch(t){return c}return E?(E.toJD()-p)*l+k*f+A*h+C*d:c}S=2===S.length?(Number(S)+2e3-b)%100+b:Number(S),O-=1;var M=new Date(Date.UTC(2e3,O,T,k,A));return M.setUTCFullYear(S),M.getUTCMonth()!==O||M.getUTCDate()!==T?c:M.getTime()+C*d},n=exports.MIN_MS=exports.dateTime2ms("-9999"),r=exports.MAX_MS=exports.dateTime2ms("9999-12-31 23:59:59.9999"),exports.isDateTime=function(t,e){return exports.dateTime2ms(t,e)!==c};var x=90*l,S=3*f,O=5*h;function T(t,e,n,r,i){if((e||n||r||i)&&(t+=" "+w(e,2)+":"+w(n,2),(r||i)&&(t+=":"+w(r,2),i))){for(var o=4;i%10==0;)o-=1,i/=10;t+="."+w(i,o)}return t}exports.ms2DateTime=function(t,e,i){if("number"!=typeof t||!(t>=n&&t<=r))return c;e||(e=0);var o,a,u,y,m,b,w=Math.floor(10*s(t+.05,1)),k=Math.round(t-w/10);if(_(i)){var A=Math.floor(k/l)+p,C=Math.floor(s(t,l));try{o=g.getComponentMethod("calendars","getCal")(i).fromJD(A).formatDate("yyyy-mm-dd")}catch(t){o=v("G%Y-%m-%d")(new Date(k))}if("-"===o.charAt(0))for(;o.length<11;)o="-0"+o.substr(1);else for(;o.length<10;)o="0"+o;a=e=n+l&&t<=r-l))return c;var e=Math.floor(10*s(t+.05,1)),o=new Date(Math.round(t-e/10));return T(i("%Y-%m-%d")(o),o.getHours(),o.getMinutes(),o.getSeconds(),10*o.getUTCMilliseconds()+e)},exports.cleanDate=function(t,e,n){if(t===c)return e;if(exports.isJSDate(t)||"number"==typeof t&&isFinite(t)){if(_(n))return a.error("JS Dates and milliseconds are incompatible with world calendars",t),e;if(!(t=exports.ms2DateTimeLocal(+t))&&void 0!==e)return e}else if(!exports.isDateTime(t,n))return a.error("unrecognized date",t),e;return t};var k=/%\d?f/g;function A(t,e,n,r){t=t.replace(k,(function(t){var n=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(n).substr(2).replace(/0+$/,"")||"0"}));var i=new Date(Math.floor(e+.05));if(_(r))try{t=g.getComponentMethod("calendars","worldCalFmt")(t,e,r)}catch(t){return"Invalid"}return n(t)(i)}var C=[59,59.9,59.99,59.999,59.9999];exports.formatDate=function(t,e,n,r,i,a){if(i=_(i)&&i,!e)if("y"===n)e=a.year;else if("m"===n)e=a.month;else{if("d"!==n)return function(t,e){var n=s(t+.05,l),r=w(Math.floor(n/f),2)+":"+w(s(Math.floor(n/h),60),2);if("M"!==e){o(e)||(e=0);var i=(100+Math.min(s(t/d,60),C[e])).toFixed(e).substr(1);e>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),r+=":"+i}return r}(t,n)+"\n"+A(a.dayMonthYear,t,r,i);e=a.dayMonth+"\n"+a.year}return A(e,t,r,i)};var E=3*l;exports.incrementMonth=function(t,e,n){n=_(n)&&n;var r=s(t,l);if(t=Math.round(t-r),n)try{var i=Math.round(t/l)+p,o=g.getComponentMethod("calendars","getCal")(n),u=o.fromJD(i);return e%12?o.add(u,e,"m"):o.add(u,e/12,"y"),(u.toJD()-p)*l+r}catch(e){a.error("invalid ms "+t+" in calendar "+n)}var c=new Date(t+E);return c.setUTCMonth(c.getUTCMonth()+e)+r-E},exports.findExactDates=function(t,e){for(var n,r,i=0,a=0,s=0,u=0,c=_(e)&&g.getComponentMethod("calendars","getCal")(e),f=0;ft.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==h[1]?h[1]:y,u=null===(n=e.headers)||void 0===n?void 0:n.get("Content-Type"),t.next=4,null!=u&&u.startsWith("application/json")?e.json().then((function(t){return t})):null==e||null===(i=e.text)||void 0===i?void 0:i.call(e);case 4:throw c=t.sent,l=o.a.getStore("Session"),f=new r.a(e.statusText,e.status,m(c)),l.isLoggedIn()&&401===e.status&&a.a.getActions("Session").logout(l.getSessionId()),l.isLoggedIn()&&403===e.status&&s(f),e&&!e.status&&a.a.getActions("ServerAvailability").reportError(f),f;case 11:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){g(o,r,i,a,s,"next",t)}function s(t){g(o,r,i,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),_=function(t){return t&&"string"!=typeof t?JSON.stringify(t):t},w=function(t){if(t.ok){var e=t.status,n=Number.parseInt(t.headers.get("Content-Length"),10),r=204===e||0===n;return v(),r?null:t.json()}throw t},x=function(){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"options",{}),p(this,"url",void 0),p(this,"method",void 0),p(this,"body",void 0),p(this,"accept",void 0),p(this,"responseHandler",void 0),p(this,"errorHandler",void 0),this.method=t,this.url=n.replace(/([^:])\/\//,"$1/"),this.options={"X-Requested-With":"XMLHttpRequest","X-Requested-By":"XMLHttpRequest"},this.responseHandler=function(t){return t},this.errorHandler=void 0}var n,r,i;return n=e,(r=[{key:"authenticated",value:function(){var t=o.a.getStore("Session").getSessionId();return this.session(t)}},{key:"session",value:function(e){var n=t.from("".concat(e,":session"));return this.options=h(h({},this.options),{},{Authorization:"Basic ".concat(n.toString("base64"))}),this}},{key:"setHeader",value:function(t,e){return this.options=h(h({},this.options),{},p({},t,e)),this}},{key:"json",value:function(t){return this.body={body:_(t),mimeType:"application/json"},this.accept="application/json",this.responseHandler=w,this.errorHandler=function(t){return b(t)},this}},{key:"formData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"application/json";return this.body={body:t},this.accept=e,this.responseHandler=w,this.errorHandler=function(t){return b(t)},this}},{key:"file",value:function(t,e){return this.body={body:_(t),mimeType:"application/json"},this.accept=e,this.responseHandler=function(t){if(t.ok)return v(),t.text();throw t},this.errorHandler=function(t){return b(t)},this}},{key:"plaintext",value:function(t){var e=function(){return c.a.replace(u.a.STARTPAGE)};return this.body={body:t,mimeType:"text/plain"},this.accept="application/json",this.responseHandler=function(t){if(t.ok)return v(),t.json();throw t},this.errorHandler=function(t){return b(t,e)},this}},{key:"noSessionExtension",value:function(){return this.options=h(h({},this.options),{},{"X-Graylog-No-Session-Extension":"true"}),this}},{key:"build",value:function(){var t=this.body&&this.body.mimeType?h(h({},this.options),{},{"Content-Type":this.body.mimeType}):this.options;return this.accept&&(t.Accept=this.accept),l.a.of(window.fetch(this.url,{method:this.method,headers:t,body:this.body?this.body.body:void 0})).then(this.responseHandler,this.errorHandler).catch(this.errorHandler)}}])&&d(n.prototype,r),i&&d(n,i),e}();function S(t){return o.a.getStore("Session").isLoggedIn()?t:function(){return l.a.of(new Promise((function(e,n){a.a.getActions("Session").login.completed.listen((function(){t().then(e,n)}))})))}}function O(t,e,n){return S((function(){return new x(t,e).authenticated().json(n).build()}))()}function T(t,e,n){return S((function(){return new x(t,e).authenticated().plaintext(n).build()}))()}function k(t,e,n){return S((function(){return new x(t,e).authenticated().noSessionExtension().json(n).build()}))()}function A(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"text/csv",i=function(){return new x(t,e).authenticated().file(n,r).build()};return S(i)()}}).call(this,n("O+Yk9+nc").Buffer)},"L/KVaTuj":function(t,exports,e){"use strict";var n=e("xE+ZFgwY").extendFlat,r=e("kwWFMz5J"),i=e("CckoZzjI").scales,o="Note that `autocolorscale` must be true for this attribute to work.";t.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:i.Reds,role:"style",editType:"calc",description:["Sets the default sequential colorscale for positive values.",o].join(" ")},sequentialminus:{valType:"colorscale",dflt:i.Blues,role:"style",editType:"calc",description:["Sets the default sequential colorscale for negative values.",o].join(" ")},diverging:{valType:"colorscale",dflt:i.RdBu,role:"style",editType:"calc",description:["Sets the default diverging colorscale.",o].join(" ")}},coloraxis:n({_isSubplotObj:!0,editType:"calc",description:[""].join(" ")},r("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},"L/bPEX35":function(t,exports,e){"use strict";var n=e("0Ft3SWJB"),r=e("s48LrSF+").hasColorscale,i=e("s48LrSF+").extractOpts;t.exports=function(t,e){function o(t,e){var n=t["_"+e];void 0!==n&&(t[e]=n)}function a(t,r){var a=r.container?n.nestedProperty(t,r.container).get():t;if(a)if(a.coloraxis)a._colorAx=e[a.coloraxis];else{var s=i(a),u=s.auto;(u||void 0===s.min)&&o(a,r.min),(u||void 0===s.max)&&o(a,r.max),s.autocolorscale&&o(a,"colorscale")}}for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:r.Map();u(this,t),f(this,"value",void 0),this.value=e}return l(t,[{key:"id",value:function(e){return new t(this.value.set("id",e))}},{key:"newId",value:function(){return this.id((new o.a).toString())}},{key:"queries",value:function(e){return new t(this.value.set("queries",e))}},{key:"parameters",value:function(e){return new t(this.value.set("parameters",e))}},{key:"build",value:function(){var t=this.value.toObject(),e=t.id,n=t.queries,r=t.parameters;return new h(e,n,r)}}]),t}()},L6CWRq7U:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("nHcjWeCO"),a=n.n(o),s=n("HbbeyvOy"),u=n("8GJ6oOEd"),c=n("L+5XEiOD"),l=n("21p8kIWv").a.get("ConfigurationVariable").ConfigurationVariableActions,f=i.a.createStore({listenables:[l],sourceUrl:"/sidecar/configuration_variables",all:function(){var t=Object(c.b)("GET",s.f(this.sourceUrl));t.catch((function(t){u.a.error("Fetching configuration variables failed with status: ".concat(t),"Could not retrieve configuration variables")})),l.all.promise(t)},save:function(t){var e,n,r={id:t.id,name:t.name,description:t.description,content:t.content},i=s.f("".concat(this.sourceUrl));""===t.id?(e="POST",n="created"):(i+="/".concat(t.id),e="PUT",n="updated");var o=Object(c.b)(e,i,r);o.then((function(){u.a.success('Configuration variable "'.concat(t.name,'" successfully ').concat(n))}),(function(e){u.a.error('Saving variable "'.concat(t.name,'" failed with status: ').concat(e.message),"Could not save variable")})),l.save.promise(o)},getConfigurations:function(t){var e=s.f("".concat(this.sourceUrl,"/").concat(t.id,"/configurations")),n=Object(c.b)("GET",e);n.catch((function(t){u.a.error("Fetching configurations for this variable failed with status: ".concat(t))})),l.getConfigurations.promise(n)},delete:function(t){var e=s.f("".concat(this.sourceUrl,"/").concat(t.id)),n=Object(c.b)("DELETE",e);n.then((function(){u.a.success('Configuration variable "'.concat(t.name,'" successfully deleted'))}),(function(e){u.a.error('Deleting variable "'.concat(t.name,'" failed with status: ').concat(e.message),"Could not delete variable")})),l.delete.promise(n)},validate:function(t){var e={id:" ",name:" ",content:" "};a.a.merge(e,t);var n=Object(c.b)("POST",s.f("".concat(this.sourceUrl,"/validate")),e);n.catch((function(e){u.a.error('Validating variable "'.concat(t.name,'" failed with status: ').concat(e.message),"Could not validate variable")})),l.validate.promise(n)}});e.default=f},LHgfPCv1:function(t,e,n){"use strict";n.d(e,"h",(function(){return a})),n.d(e,"n",(function(){return s})),n.d(e,"i",(function(){return u})),n.d(e,"m",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"k",(function(){return f})),n.d(e,"j",(function(){return h})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"f",(function(){return g})),n.d(e,"g",(function(){return v})),n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return m})),n.d(e,"o",(function(){return b})),n.d(e,"l",(function(){return _})),n.d(e,"y",(function(){return w})),n.d(e,"x",(function(){return x})),n.d(e,"u",(function(){return O})),n.d(e,"w",(function(){return T})),n.d(e,"q",(function(){return k})),n.d(e,"t",(function(){return A})),n.d(e,"r",(function(){return C})),n.d(e,"v",(function(){return E})),n.d(e,"s",(function(){return j})),n.d(e,"p",(function(){return R}));var r=n("m4G3HF66"),i=n.n(r),o=n("Yf3UL7lG"),a="full_message",s="timestamp",u="message",c="source",l=[s,c],f=0,h={DEFAULT_LIMIT:150},d="relative",p=300,g=p-60,v={type:d,from:p},y=o.b.create("#ffec3d"),m=i.a.scale(["lightyellow","lightgreen","lightblue","red"]).mode("lch").colors(40),b={seconds:"Seconds",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Weeks",months:"Months"},_=[{type:"seconds",label:"Seconds"},{type:"minutes",label:"Minutes"},{type:"hours",label:"Hours"},{type:"days",label:"Days"}],w="/views",x="".concat(w,"/:viewId"),S="/search",O="".concat(S,"/new"),T="".concat(S,"/:viewId"),k="/dashboards",A="".concat(k,"/new"),C="".concat(k,"/tv/:viewId"),E="".concat(k,"/:viewId"),j="/extendedsearch",R=[{type:"relative",name:"Relative"},{type:"absolute",name:"Absolute"},{type:"keyword",name:"Keyword"}]},LLaL8Jiu:function(t,e,n){"use strict";n.r(e),n.d(e,"AuthenticationActions",(function(){return v.default})),n.d(e,"AuthenticationStore",(function(){return _}));var r=n("4KF7VOU5"),i=n.n(r),o=n("VPaD/Np4"),a=n("PHBdwNAQ");function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:o.Map();s(this,t),l(this,"value",void 0),this.value=e}return c(t,[{key:"id",value:function(e){return new t(this.value.set("id",e))}},{key:"title",value:function(e){return new t(this.value.set("title",e))}},{key:"description",value:function(e){return new t(this.value.set("description",e))}},{key:"defaultRoles",value:function(e){return new t(this.value.set("defaultRoles",e))}},{key:"config",value:function(e){return new t(this.value.set("config",e))}},{key:"build",value:function(){var t=this.value.toObject(),e=t.id,n=t.title,r=t.description,i=t.defaultRoles,o=t.config;return new f(e,n,r,i,o)}}]),t}(),d=n("HbbeyvOy"),p=n("L+5XEiOD"),g=n("mRXwKqDg"),v=n("ZjKKVWZh"),y=n("mR82218M"),m=n("QlBQbb2U"),b=n("apjOhdII"),_=Object(g.c)("Authentication",(function(){return i.a.createStore({listenables:[v.default],getInitialState:function(){return{authenticators:null}},create:function(t){var e=Object(d.f)(m.a.AuthenticationController.create().url),n=Object(p.b)("POST",e,t).then((function(t){return t?{backend:f.fromJSON(t.backend)}:null}));return v.default.create.promise(n),n},load:function(t){var e=Object(d.f)(m.a.AuthenticationController.load(encodeURIComponent(t)).url),n=Object(p.b)("GET",e).then((function(t){return t?{backend:f.fromJSON(t.backend)}:null}));return v.default.load.promise(n),n},loadActive:function(){var t=Object(d.f)(m.a.AuthenticationController.loadActive().url),e=Object(p.b)("GET",t).then((function(t){return t?{backend:t.backend?f.fromJSON(t.backend):null,context:{backendsTotal:t.context.backends_total}}:null}));return v.default.loadActive.promise(e),e},update:function(t,e){var n=Object(d.f)(m.a.AuthenticationController.update(t).url),r=Object(p.b)("PUT",n,e).then((function(t){return t?{backend:f.fromJSON(t.backend)}:null}));return v.default.update.promise(r),r},delete:function(t){var e=Object(d.f)(m.a.AuthenticationController.delete(t).url),n=Object(p.b)("DELETE",e);return v.default.delete.promise(n),n},testConnection:function(t){var e=Object(d.f)(m.a.AuthenticationController.testConnection().url),n=Object(p.b)("POST",e,t);return v.default.testConnection.promise(n),n},testLogin:function(t){var e=Object(d.f)(m.a.AuthenticationController.testLogin().url),n=Object(p.b)("POST",e,t);return v.default.testLogin.promise(n),n},setActiveBackend:function(t){var e=Object(d.f)(m.a.AuthenticationController.updateConfiguration().url),n=Object(p.b)("POST",e,{active_backend:t});return v.default.setActiveBackend.promise(n),n},loadBackendsPaginated:function(t){var e=t.page,n=t.perPage,r=t.query,i=Object(y.a)(m.a.AuthenticationController.servicesPaginated().url,e,n,r),a=Object(p.b)("GET",Object(d.f)(i)).then((function(t){return{context:{activeBackend:t.context.active_backend},list:o.List(t.backends.map((function(t){return f.fromJSON(t)}))),pagination:{page:t.page,perPage:t.per_page,query:t.query,count:t.count,total:t.total}}}));return v.default.loadBackendsPaginated.promise(a),a},loadUsersPaginated:function(t,e){var n=e.page,r=e.perPage,i=e.query,a=Object(y.a)(m.a.AuthenticationController.loadUsersPaginated(t).url,n,r,i),s=Object(p.b)("GET",Object(d.f)(a)).then((function(t){return{list:o.List(t.users.map((function(t){return b.a.fromJSON(t)}))),pagination:{page:t.page,perPage:t.per_page,query:t.query,count:t.count,total:t.total}}}));return v.default.loadUsersPaginated.promise(s),s},loadActiveBackendType:function(){var t=Object(d.f)(m.a.AuthenticationController.loadActiveBackendType().url),e=new p.a("GET",t).build().then((function(t){return t.json()})).then((function(t){return t.backend}));return v.default.loadActiveBackendType.promise(e),e}})}));e.default=_},LXU4I1ih:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({searchPaginated:{asyncResult:!0},reloadPage:{asyncResult:!0},get:{asyncResult:!0},create:{asyncResult:!0},delete:{asyncResult:!0},update:{asyncResult:!0},getTypes:{asyncResult:!0},lookup:{asyncResult:!0},validate:{asyncResult:!0}});e.default=i},LZ3mZdqo:function(t,exports,e){"use strict";exports.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",role:"style",editType:"style",description:["Sets the dash style of lines. Set to a dash type string","(*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*)","or a dash length list in px (eg *5px,10px,2px,2px*)."].join(" ")}},LduFMkfw:function(t,exports){t.exports=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=r+r,u=i+i,c=o+o,l=r*s,f=r*u,h=r*c,d=i*u,p=i*c,g=o*c,v=a*s,y=a*u,m=a*c;return t[0]=1-(d+g),t[1]=f+m,t[2]=h-y,t[3]=0,t[4]=f-m,t[5]=1-(l+g),t[6]=p+v,t[7]=0,t[8]=h+y,t[9]=p-v,t[10]=1-(l+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}},M8845gaG:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("HbbeyvOy"),a=n("8GJ6oOEd"),s=n("L+5XEiOD"),u=i.a.createStore({sourceUrl:function(t){return"/cluster/".concat(t,"/journal")},get:function(t){var e=Object(s.b)("GET",o.f(this.sourceUrl(t)));return e.catch((function(e){a.a.error("Getting journal information on node ".concat(t," failed: ").concat(e),"Could not get journal information")})),e}});e.default=u},MGblGC5b:function(t,exports,e){"use strict";function n(t){return!0===t.visible}function r(t){var e=t[0].trace;return!0===e.visible&&0!==e._length}t.exports=function(t){for(var e,i=(e=t,Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace?r:n),o=[],a=0;a0?this.registrations[t]-1:0,0===this.registrations[t]&&delete this.registrations[t]}});e.default=h},"NycC/quU":function(t,exports,e){"use strict";var n=e("0Ft3SWJB"),r=e("zSF5pjBO");t.exports=function(t,e,i,o){var a=n.coerce2(t,e,r,"ticklen"),s=n.coerce2(t,e,r,"tickwidth"),u=n.coerce2(t,e,r,"tickcolor",e.color);i("ticks",o.outerTicks||a||s||u?"outside":"")||(delete e.ticklen,delete e.tickwidth,delete e.tickcolor)}},"O+Yk9+nc":function(t,exports,e){"use strict";(function(t){var n=e("lxFo35Wx"),r=e("SmLI5obc"),i=e("W1b4ieg2");function o(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function d(t,e){if(s.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(t).length;default:if(r)return z(t).length;e=(""+e).toLowerCase(),r=!0}}function p(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return E(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return A(this,e,n);case"latin1":case"binary":return C(this,e,n);case"base64":return O(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=s.from(e,r)),s.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"==typeof e)return e&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,h=0;hi&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function O(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function T(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(t){var e=t.length;if(e<=k)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),""},s.prototype.compare=function(t,e,n,r,i){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),u=Math.min(o,a),c=this.slice(r,i),l=t.slice(e,n),f=0;fi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return m(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return x(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function A(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;ir)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,n,r,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function I(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function P(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function D(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(t,e,n,i,o){return o||D(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function F(t,e,n,i,o){return o||D(t,0,n,8),r.write(t,e,n,i,52,8),n+8}s.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},s.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},s.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),r.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),r.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),r.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),r.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||M(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},s.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},s.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},s.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):P(this,t,e,!0),e+4},s.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},s.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);M(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},s.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);M(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},s.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},s.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},s.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):P(this,t,e,!0),e+4},s.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},s.prototype.writeFloatLE=function(t,e,n){return U(this,t,e,!0,n)},s.prototype.writeFloatBE=function(t,e,n){return U(this,t,e,!1,n)},s.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},s.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},s.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function B(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(L,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function q(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,e("aY11sVfy"))},"O/XBOW6x":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("HbbeyvOy"),a=n("QlBQbb2U"),s=n("L+5XEiOD"),u=i.a.createStore({listenables:[],all:function(t){var e=o.f(a.a.SystemMessagesApiController.all(t).url);return Object(s.d)("GET",e)}});e.default=u},OCgyXZDB:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({searchPaginated:{asyncResult:!0},reloadPage:{asyncResult:!0},get:{asyncResult:!0},create:{asyncResult:!0},delete:{asyncResult:!0},update:{asyncResult:!0},getErrors:{asyncResult:!0},lookup:{asyncResult:!0},purgeKey:{asyncResult:!0},purgeAll:{asyncResult:!0},validate:{asyncResult:!0}});e.default=i},OG4cRe8e:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("HbbeyvOy"),a=n("8GJ6oOEd"),s=n("L+5XEiOD"),u=i.a.createStore({sourceUrl:function(t){return"/cluster/".concat(t,"/plugins")},list:function(t){return Object(s.b)("GET",o.f(this.sourceUrl(t))).then((function(t){return t.plugins}),(function(e){return a.a.error('Getting plugins on node "'.concat(t,'" failed: ').concat(e),"Could not get plugins")}))}});e.default=u},OK84qaE1:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("JBQWIv26"),a=n("8GJ6oOEd"),s=n("HbbeyvOy"),u=n("QlBQbb2U"),c=n("L+5XEiOD"),l=o.a.getActions("AlarmCallbacks"),f=i.a.createStore({listenables:[l],list:function(t){var e=s.f(u.a.AlarmCallbacksApiController.list(t).url),n=Object(c.b)("GET",e).then((function(t){return t.alarmcallbacks}),(function(t){return a.a.error("Fetching alert notifications failed with status: ".concat(t.message),"Could not retrieve alert notification")}));l.list.promise(n)},save:function(t,e){var n=s.f(u.a.AlarmCallbacksApiController.create(t).url),r=Object(c.b)("POST",n,e);r.then((function(){return a.a.success("Alert notification saved successfully")}),(function(t){var e=t.additional&&400===t.additional.status?t.additional.body.message:t.message;a.a.error("Saving alert notification failed with status: ".concat(e),"Could not save alert notification")})),l.save.promise(r)},delete:function(t,e){var n=s.f(u.a.AlarmCallbacksApiController.delete(t,e).url),r=Object(c.b)("DELETE",n);r.then((function(){return a.a.success("Alert notification deleted successfully")}),(function(t){return a.a.error("Removing alert notification failed with status: ".concat(t.message),"Could not remove alert notification")})),l.delete.promise(r)},update:function(t,e,n){var r=s.f(u.a.AlarmCallbacksApiController.update(t,e).url),i=Object(c.b)("PUT",r,n);i.then((function(){return a.a.success("Alert notification updated successfully")}),(function(t){var n=t.additional&&400===t.additional.status?t.additional.body.message:t.message;a.a.error("Updating alert notification '".concat(e,"' failed with status: ").concat(n),"Could not update alert notification")})),l.update.promise(i)}});e.default=f},OPxZozoA:function(t,exports,e){"use strict";var n=Array.isArray,r="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},i="undefined"==typeof DataView?function(){}:DataView;function o(t){return r.isView(t)&&!(t instanceof i)}function a(t){return n(t)||o(t)}function s(t,e,n){if(a(t)){if(a(t[0])){for(var r=n,i=0;i1&&void 0!==arguments[1]&&arguments[1];i(this,t),a(this,"_isCanceled",void 0),a(this,"_promise",void 0),a(this,r,void 0),this._promise=e,this._isCanceled=n}var e,n,s;return e=t,s=[{key:"of",value:function(e){return new t(e)}}],(n=[{key:"then",value:function(e,n){return new t(this._promise.then(e,n),this._isCanceled)}},{key:"catch",value:function(e){return new t(this._promise.catch(e),this._isCanceled)}},{key:"finally",value:function(e){return new t(this._promise.finally(e),this._isCanceled)}},{key:"cancel",value:function(){return this._isCanceled=!0,this}},{key:"isCancelled",value:function(){return this._isCanceled}}])&&o(e.prototype,n),s&&o(e,s),t}();e.a=s},Oq1Cqb7p:function(t,exports,e){"use strict";var n=e("0Ft3SWJB"),r=n.extendFlat,i=n.isPlainObject,o={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"],description:["trace attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full `Plotly.plot` starting by clearing `gd.calcdata`","to force it to be regenerated","*clearAxisTypes* resets the types of the axes this trace is on, because new data could","cause the automatic axis type detection to change. Log type will not be cleared, as that","is never automatically chosen so must have been user-specified.","*plot* calls `Plotly.plot` but without first clearing `gd.calcdata`.","*style* only calls `module.style` (or module.editStyle) for all trace modules and redraws the legend.","*markerSize* is like *style*, but propagate axis-range changes due to scatter `marker.size`","*colorbars* only redraws colorbars."].join(" ")},a={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"],description:["layout attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full `Plotly.plot` starting by clearing `gd.calcdata`","to force it to be regenerated","*plot* calls `Plotly.plot` but without first clearing `gd.calcdata`.","*legend* only redraws the legend.","*ticks* only redraws axis ticks, labels, and gridlines.","*axrange* minimal sequence when updating axis ranges.","*layoutstyle* reapplies global and SVG cartesian axis styles.","*modebar* just updates the modebar.","*camera* just updates the camera settings for gl3d scenes.","*arraydraw* allows component arrays to invoke the redraw routines just for the","component(s) that changed.","*colorbars* only redraws colorbars."].join(" ")},s=o.flags.slice().concat(["fullReplot"]),u=a.flags.slice().concat("layoutReplot");function c(t){for(var e={},n=0;n/dist/topojson/","to render geographical feature using the topojson files","that ship with the plotly.js module."].join(" ")},mapboxAccessToken:{valType:"string",dflt:null,description:["Mapbox access token (required to plot mapbox trace types)","If using an Mapbox Atlas server, set this option to ''","so that plotly.js won't attempt to authenticate to the public Mapbox server."].join(" ")},logging:{valType:"integer",min:0,max:2,dflt:1,description:["Turn all console logging on or off (errors will be thrown)","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0,description:["Set on-graph logging (notifier) level","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no on-graph logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},queueLength:{valType:"integer",min:0,dflt:0,description:"Sets the length of the undo/redo queue."},globalTransforms:{valType:"any",dflt:[],description:["Set global transform to be applied to all traces with no","specification needed"].join(" ")},locale:{valType:"string",dflt:"en-US",description:["Which localization should we use?","Should be a string like 'en' or 'en-US'."].join(" ")},locales:{valType:"any",dflt:{},description:["Localization definitions","Locales can be provided either here (specific to one chart) or globally","by registering them as modules.","Should be an object of objects {locale: {dictionary: {...}, format: {...}}}","{"," da: {"," dictionary: {'Reset axes': 'Nulstil aksler', ...},"," format: {months: [...], shortMonths: [...]}"," },"," ...","}","All parts are optional. When looking for translation or format fields, we","look first for an exact match in a config locale, then in a registered","module. If those fail, we strip off any regionalization ('en-US' -> 'en')","and try each (config, registry) again. The final fallback for translation","is untranslated (which is US English) and for formats is the base English","(the only consequence being the last fallback date format %x is DD/MM/YYYY","instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored","for our automatic number formatting, but can be used in custom formats."].join(" ")}},r={};!function t(e,n){for(var r in e){var i=e[r];i.valType?n[r]=i.dflt:(n[r]||(n[r]={}),t(i,n[r]))}}(n,r),t.exports={configAttributes:n,dfltConfig:r}},Osspz6vV:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({list:{asyncResult:!0},refreshList:{asyncResult:!0},setAction:{asyncResult:!0}});e.default=i},PHBdwNAQ:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return a}));var r=n("AztyBNMT"),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r.PluginStore.exports("authentication.services")||[],i=n.find((function(e){return e.name===t}));if(!i&&e)throw new Error('Authentication service with type "'.concat(t,'" not found.'));return i},o=function(){var t=r.PluginStore.exports("authentication.enterprise.directoryServices.groupSync");return null==t?void 0:t[0]},a=function(){var t=r.PluginStore.exports("authentication.enterprise");return null==t?void 0:t[0]}},PLeiNRHt:function(t,exports,e){"use strict";t.exports=function(t,e){if(!e)return t;var n=1/Math.abs(e),r=n>1?(n*t+n*e)/n:t+e,i=String(r).length;if(i>16){var o=String(e).length;if(i>=String(t).length+o){var a=parseFloat(r).toPrecision(12);-1===a.indexOf("e+")&&(r=+a)}}return r}},"PbfD+MHS":function(t,exports){t.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},PdklNqvR:function(t,exports,e){t.exports=e("jaIgFIJB")(446)},PfYIlAqQ:function(t,exports){t.exports=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},Pny8KqFd:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("HbbeyvOy"),a=n("8GJ6oOEd"),s=n("L+5XEiOD"),u=n("1VnJesae"),c=u.a.getStore("Nodes"),l=u.a.getStore("SystemProcessing"),f=u.a.getStore("SystemLoadBalancer"),h=i.a.createStore({sourceUrl:"/cluster",clusterOverview:void 0,init:function(){this.cluster(),this.listenTo(l,this.cluster),this.listenTo(f,this.cluster),this.listenTo(c,this.cluster)},getInitialState:function(){return{clusterOverview:this.clusterOverview}},cluster:function(){var t=this,e=Object(s.b)("GET",o.f(this.sourceUrl));return e.then((function(e){t.clusterOverview=e,t.trigger({clusterOverview:t.clusterOverview})}),(function(t){return a.a.error("Getting cluster overview failed: ".concat(t),"Could not get cluster overview")})),e},threadDump:function(t){return Object(s.b)("GET",o.f("".concat(this.sourceUrl,"/").concat(t,"/threaddump"))).then((function(t){return t.threaddump}),(function(e){return a.a.error("Getting thread dump for node '".concat(t,"' failed: ").concat(e),"Could not get thread dump")}))},processbufferDump:function(t){return Object(s.b)("GET",o.f("".concat(this.sourceUrl,"/").concat(t,"/processbufferdump"))).then((function(t){return t.processbuffer_dump}),(function(e){return a.a.error("Getting process buffer dump for node '".concat(t,"' failed: ").concat(e),"Could not get process buffer dump")}))},jvm:function(t){var e=Object(s.b)("GET",o.f("".concat(this.sourceUrl,"/").concat(t,"/jvm")));return e.catch((function(e){return a.a.error("Getting JVM information for node '".concat(t,"' failed: ").concat(e),"Could not get JVM information")})),e}});e.default=h},Q5pcoIBS:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({simulate:{asyncResult:!0}});e.default=i},QCsxvQAc:function(t,exports){t.exports=function(t,e,n,r,i,o,a){var s=1/(n-e),u=1/(i-r),c=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(a+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*c,t[15]=0,t}},QO2VALLf:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("HbbeyvOy"),a=n("QlBQbb2U"),s=n("L+5XEiOD");function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(t){var e=function(t,e){if("object"!==u(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===u(e)?e:String(e)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e>1,l=-7,f=n?i-1:0,h=n?-1:1,d=t[e+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},exports.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;t[n+d]=255&a,d+=p,a/=256,c-=8);t[n+d-p]|=128*g}},TLqgrVSx:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("HbbeyvOy"),a=n("QlBQbb2U"),s=n("8GJ6oOEd"),u=n("L+5XEiOD"),c=n("JBQWIv26"),l=n("mRXwKqDg");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e1||g<0||g>1?null:{x:t+u*g,y:e+f*g}}function s(t,e,n,r,i){var o=r*t+i*e;if(o<0)return r*r+i*i;if(o>n){var a=r-t,s=i-e;return a*a+s*s}var u=r*e-i*t;return u*u/n}exports.segmentsIntersect=a,exports.segmentDistance=function(t,e,n,r,i,o,u,c){if(a(t,e,n,r,i,o,u,c))return 0;var l=n-t,f=r-e,h=u-i,d=c-o,p=l*l+f*f,g=h*h+d*d,v=Math.min(s(l,f,p,i-t,o-e),s(l,f,p,u-t,c-e),s(h,d,g,t-i,e-o),s(h,d,g,n-i,r-o));return Math.sqrt(v)},exports.getTextLocation=function(t,e,a,s){if(t===r&&s===i||(n={},r=t,i=s),n[a])return n[a];var u=t.getPointAtLength(o(a-s/2,e)),c=t.getPointAtLength(o(a+s/2,e)),l=Math.atan((c.y-u.y)/(c.x-u.x)),f=t.getPointAtLength(o(a,e)),h={x:(4*f.x+u.x+c.x)/6,y:(4*f.y+u.y+c.y)/6,theta:l};return n[a]=h,h},exports.clearLocationCache=function(){r=null},exports.getVisibleSegment=function(t,e,n){var r,i,o=e.left,a=e.right,s=e.top,u=e.bottom,c=0,l=t.getTotalLength(),f=l;function h(e){var n=t.getPointAtLength(e);0===e?r=n:e===l&&(i=n);var c=n.xa?n.x-a:0,f=n.yu?n.y-u:0;return Math.sqrt(c*c+f*f)}for(var d=h(c);d;){if((c+=d+n)>f)return;d=h(c)}for(d=h(f);d;){if(c>(f-=d+n))return;d=h(f)}return{min:c,max:f,len:f-c,total:l,isClosed:0===c&&f===l&&Math.abs(r.x-i.x)<.1&&Math.abs(r.y-i.y)<.1}},exports.findPointOnPath=function(t,e,n,r){for(var i,o,a,s=(r=r||{}).pathLength||t.getTotalLength(),u=r.tolerance||.001,c=r.iterationLimit||30,l=t.getPointAtLength(0)[n]>t.getPointAtLength(s)[n]?-1:1,f=0,h=0,d=s;f0?d=i:h=i,f++}return o}},V7AGmkLH:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("HbbeyvOy"),a=n("QlBQbb2U"),s=n("L+5XEiOD"),u=n("JBQWIv26"),c=n("nHcjWeCO"),l=n("6va0yrcj");function f(t,e){for(var n=0;n>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?k(t)+e:e}function C(){return!0}function E(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function j(t,e){return M(t,e,0)}function R(t,e){return M(t,e,e)}function M(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var I=0,P=1,D=2,U="function"==typeof Symbol&&Symbol.iterator,F="@@iterator",L=U||F;function N(t){this.next=t}function z(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function B(){return{value:void 0,done:!0}}function q(t){return!!G(t)}function H(t){return t&&"function"==typeof t.next}function V(t){var e=G(t);return e&&e.call(t)}function G(t){var e=t&&(U&&t[U]||t[F]);if("function"==typeof e)return e}function W(t){return t&&"number"==typeof t.length}function J(t){return null==t?st():a(t)?t.toSeq():lt(t)}function Q(t){return null==t?st().toKeyedSeq():a(t)?s(t)?t.toSeq():t.fromEntrySeq():ut(t)}function K(t){return null==t?st():a(t)?s(t)?t.entrySeq():t.toIndexedSeq():ct(t)}function Y(t){return(null==t?st():a(t)?s(t)?t.entrySeq():t:ct(t)).toSetSeq()}N.prototype.toString=function(){return"[Iterator]"},N.KEYS=I,N.VALUES=P,N.ENTRIES=D,N.prototype.inspect=N.prototype.toSource=function(){return this.toString()},N.prototype[L]=function(){return this},e(J,n),J.of=function(){return J(arguments)},J.prototype.toSeq=function(){return this},J.prototype.toString=function(){return this.__toString("Seq {","}")},J.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},J.prototype.__iterate=function(t,e){return ht(this,t,e,!0)},J.prototype.__iterator=function(t,e){return dt(this,t,e,!0)},e(Q,J),Q.prototype.toKeyedSeq=function(){return this},e(K,J),K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(t,e){return ht(this,t,e,!1)},K.prototype.__iterator=function(t,e){return dt(this,t,e,!1)},e(Y,J),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},J.isSeq=at,J.Keyed=Q,J.Set=Y,J.Indexed=K;var X,Z,tt,et="@@__IMMUTABLE_SEQ__@@";function nt(t){this._array=t,this.size=t.length}function rt(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function it(t){this._iterable=t,this.size=t.length||t.size}function ot(t){this._iterator=t,this._iteratorCache=[]}function at(t){return!(!t||!t[et])}function st(){return X||(X=new nt([]))}function ut(t){var e=Array.isArray(t)?new nt(t).fromEntrySeq():H(t)?new ot(t).fromEntrySeq():q(t)?new it(t).fromEntrySeq():"object"==typeof t?new rt(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function ct(t){var e=ft(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function lt(t){var e=ft(t)||"object"==typeof t&&new rt(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function ft(t){return W(t)?new nt(t):H(t)?new ot(t):q(t)?new it(t):void 0}function ht(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===e(s[1],r?s[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function dt(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,a=0;return new N((function(){var t=i[n?o-a:a];return a++>o?B():z(e,r?t[0]:a-1,t[1])}))}return t.__iteratorUncached(e,n)}function pt(t,e){return e?gt(e,t,"",{"":t}):vt(t)}function gt(t,e,n,r){return Array.isArray(e)?t.call(r,n,K(e).map((function(n,r){return gt(t,n,r,e)}))):yt(e)?t.call(r,n,Q(e).map((function(n,r){return gt(t,n,r,e)}))):e}function vt(t){return Array.isArray(t)?K(t).map(vt).toList():yt(t)?Q(t).map(vt).toMap():t}function yt(t){return t&&(t.constructor===Object||void 0===t.constructor)}function mt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function bt(t,e){if(t===e)return!0;if(!a(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||u(t)!==u(e)||l(t)!==l(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!c(t);if(l(t)){var r=t.entries();return e.every((function(t,e){var i=r.next().value;return i&&mt(i[1],t)&&(n||mt(i[0],e))}))&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var f=!0,h=e.__iterate((function(e,r){if(n?!t.has(e):i?!mt(e,t.get(r,b)):!mt(t.get(r,b),e))return f=!1,!1}));return f&&t.size===h}function _t(t,e){if(!(this instanceof _t))return new _t(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Z)return Z;Z=this}}function wt(t,e){if(!t)throw new Error(e)}function xt(t,e,n){if(!(this instanceof xt))return new xt(t,e,n);if(wt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),er?B():z(t,i,n[e?r-i++:i++])}))},e(rt,Q),rt.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},rt.prototype.has=function(t){return this._object.hasOwnProperty(t)},rt.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[e?i-o:o];if(!1===t(n[a],a,this))return o+1}return o},rt.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,o=0;return new N((function(){var a=r[e?i-o:o];return o++>i?B():z(t,a,n[a])}))},rt.prototype[p]=!0,e(it,K),it.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=V(this._iterable),r=0;if(H(n))for(var i;!(i=n.next()).done&&!1!==t(i.value,r++,this););return r},it.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=V(this._iterable);if(!H(n))return new N(B);var r=0;return new N((function(){var e=n.next();return e.done?e:z(t,r++,e.value)}))},e(ot,K),ot.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return z(t,i,r[i++])}))},e(_t,K),_t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},_t.prototype.get=function(t,e){return this.has(t)?this._value:e},_t.prototype.includes=function(t){return mt(this._value,t)},_t.prototype.slice=function(t,e){var n=this.size;return E(t,e,n)?this:new _t(this._value,R(e,n)-j(t,n))},_t.prototype.reverse=function(){return this},_t.prototype.indexOf=function(t){return mt(this._value,t)?0:-1},_t.prototype.lastIndexOf=function(t){return mt(this._value,t)?this.size:-1},_t.prototype.__iterate=function(t,e){for(var n=0;n=0&&e=0&&nn?B():z(t,o++,a)}))},xt.prototype.equals=function(t){return t instanceof xt?this._start===t._start&&this._end===t._end&&this._step===t._step:bt(this,t)},e(St,n),e(Ot,St),e(Tt,St),e(kt,St),St.Keyed=Ot,St.Indexed=Tt,St.Set=kt;var At="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function Ct(t){return t>>>1&1073741824|3221225471&t}function Et(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){if(t!=t||t===1/0)return 0;var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return Ct(n)}if("string"===e)return t.length>zt?jt(t):Rt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return Mt(t);if("function"==typeof t.toString)return Rt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function jt(t){var e=Ht[t];return void 0===e&&(e=Rt(t),qt===Bt&&(qt=0,Ht={}),qt++,Ht[t]=e),e}function Rt(t){for(var e=0,n=0;n0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}var Ut,Ft="function"==typeof WeakMap;Ft&&(Ut=new WeakMap);var Lt=0,Nt="__immutablehash__";"function"==typeof Symbol&&(Nt=Symbol(Nt));var zt=16,Bt=255,qt=0,Ht={};function Vt(t){wt(t!==1/0,"Cannot perform this action with an infinite size.")}function Gt(t){return null==t?oe():Wt(t)&&!l(t)?t:oe().withMutations((function(e){var n=r(t);Vt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function Wt(t){return!(!t||!t[Qt])}e(Gt,Ot),Gt.of=function(){var e=t.call(arguments,0);return oe().withMutations((function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},Gt.prototype.toString=function(){return this.__toString("Map {","}")},Gt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Gt.prototype.set=function(t,e){return ae(this,t,e)},Gt.prototype.setIn=function(t,e){return this.updateIn(t,b,(function(){return e}))},Gt.prototype.remove=function(t){return ae(this,t,b)},Gt.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return b}))},Gt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},Gt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=ye(this,Sn(t),e,n);return r===b?void 0:r},Gt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):oe()},Gt.prototype.merge=function(){return de(this,void 0,arguments)},Gt.prototype.mergeWith=function(e){return de(this,e,t.call(arguments,1))},Gt.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,oe(),(function(t){return"function"==typeof t.merge?t.merge.apply(t,n):n[n.length-1]}))},Gt.prototype.mergeDeep=function(){return de(this,pe,arguments)},Gt.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return de(this,ge(e),n)},Gt.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,oe(),(function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]}))},Gt.prototype.sort=function(t){return He(hn(this,t))},Gt.prototype.sortBy=function(t,e){return He(hn(this,e,t))},Gt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Gt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new O)},Gt.prototype.asImmutable=function(){return this.__ensureOwner()},Gt.prototype.wasAltered=function(){return this.__altered},Gt.prototype.__iterator=function(t,e){return new ee(this,t,e)},Gt.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate((function(e){return r++,t(e[1],e[0],n)}),e),r},Gt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?ie(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Gt.isMap=Wt;var Jt,Qt="@@__IMMUTABLE_MAP__@@",Kt=Gt.prototype;function Yt(t,e){this.ownerID=t,this.entries=e}function Xt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Zt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function $t(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function te(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function ee(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&re(t._root)}function ne(t,e){return z(t,e[0],e[1])}function re(t,e){return{node:t,index:0,__prev:e}}function ie(t,e,n,r){var i=Object.create(Kt);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function oe(){return Jt||(Jt=ie(0))}function ae(t,e,n){var r,i;if(t._root){var o=x(_),a=x(w);if(r=se(t._root,t.__ownerID,0,void 0,e,n,o,a),!a.value)return t;i=t.size+(o.value?n===b?-1:1:0)}else{if(n===b)return t;i=1,r=new Yt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?ie(i,r):oe()}function se(t,e,n,r,i,o,a,s){return t?t.update(e,n,r,i,o,a,s):o===b?t:(S(s),S(a),new te(e,r,[i,o]))}function ue(t){return t.constructor===te||t.constructor===$t}function ce(t,e,n,r,i){if(t.keyHash===r)return new $t(e,r,[t.entry,i]);var o,a=(0===n?t.keyHash:t.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Xt(e,1<>>=1)a[s]=1&n?e[o++]:void 0;return a[r]=i,new Zt(t,o+1,a)}function de(t,e,n){for(var i=[],o=0;o>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function be(t,e,n,r){var i=r?t:T(t);return i[e]=n,i}function _e(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var o=new Array(i),a=0,s=0;s=xe)return le(t,u,r,i);var h=t&&t===this.ownerID,d=h?u:T(u);return f?s?c===l-1?d.pop():d[c]=d.pop():d[c]=[r,i]:d.push([r,i]),h?(this.entries=d,this):new Yt(t,d)}},Xt.prototype.get=function(t,e,n,r){void 0===e&&(e=Et(n));var i=1<<((0===t?e:e>>>t)&m),o=this.bitmap;return 0==(o&i)?r:this.nodes[me(o&i-1)].get(t+v,e,n,r)},Xt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=Et(r));var s=(0===e?n:n>>>e)&m,u=1<=Se)return he(t,h,c,s,p);if(l&&!p&&2===h.length&&ue(h[1^f]))return h[1^f];if(l&&p&&1===h.length&&ue(p))return p;var g=t&&t===this.ownerID,y=l?p?c:c^u:c|u,_=l?p?be(h,f,p,g):we(h,f,g):_e(h,f,p,g);return g?(this.bitmap=y,this.nodes=_,this):new Xt(t,y,_)},Zt.prototype.get=function(t,e,n,r){void 0===e&&(e=Et(n));var i=(0===t?e:e>>>t)&m,o=this.nodes[i];return o?o.get(t+v,e,n,r):r},Zt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=Et(r));var s=(0===e?n:n>>>e)&m,u=i===b,c=this.nodes,l=c[s];if(u&&!l)return this;var f=se(l,t,e+v,n,r,i,o,a);if(f===l)return this;var h=this.count;if(l){if(!f&&--h0&&r=0&&t>>e&m;if(r>=this.array.length)return new Ee([],t);var i,o=0===r;if(e>0){var a=this.array[r];if((i=a&&a.removeBefore(t,e-v,n))===a&&o)return this}if(o&&!i)return this;var s=Le(this,t);if(!o)for(var u=0;u>>e&m;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((r=o&&o.removeAfter(t,e-v,n))===o&&i===this.array.length-1)return this}var a=Le(this,t);return a.array.splice(i+1),r&&(a.array[i]=r),a};var je,Re,Me={};function Ie(t,e){var n=t._origin,r=t._capacity,i=qe(r),o=t._tail;return a(t._root,t._level,0);function a(t,e,n){return 0===e?s(t,n):u(t,e,n)}function s(t,a){var s=a===i?o&&o.array:t&&t.array,u=a>n?0:n-a,c=r-a;return c>y&&(c=y),function(){if(u===c)return Me;var t=e?--c:u++;return s&&s[t]}}function u(t,i,o){var s,u=t&&t.array,c=o>n?0:n-o>>i,l=1+(r-o>>i);return l>y&&(l=y),function(){for(;;){if(s){var t=s();if(t!==Me)return t;s=null}if(c===l)return Me;var n=e?--l:c++;s=a(u&&u[n],i-v,o+(n<=t.size||e<0)return t.withMutations((function(t){e<0?ze(t,e).set(0,n):ze(t,0,e+1).set(e,n)}));e+=t._origin;var r=t._tail,i=t._root,o=x(w);return e>=qe(t._capacity)?r=Fe(r,t.__ownerID,0,e,n,o):i=Fe(i,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):Pe(t._origin,t._capacity,t._level,i,r):t}function Fe(t,e,n,r,i,o){var a,s=r>>>n&m,u=t&&s0){var c=t&&t.array[s],l=Fe(c,e,n-v,r,i,o);return l===c?t:((a=Le(t,e)).array[s]=l,a)}return u&&t.array[s]===i?t:(S(o),a=Le(t,e),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Le(t,e){return e&&t&&e===t.ownerID?t:new Ee(t?t.array.slice():[],e)}function Ne(t,e){if(e>=qe(t._capacity))return t._tail;if(e<1<0;)n=n.array[e>>>r&m],r-=v;return n}}function ze(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new O,i=t._origin,o=t._capacity,a=i+e,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return t;if(a>=s)return t.clear();for(var u=t._level,c=t._root,l=0;a+l<0;)c=new Ee(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=v);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=qe(o),h=qe(s);h>=1<f?new Ee([],r):d;if(d&&h>f&&av;y-=v){var b=f>>>y&m;g=g.array[b]=Le(g.array[b],r)}g.array[f>>>v&m]=d}if(s=h)a-=h,s-=h,u=v,c=null,p=p&&p.removeBefore(r,0,a);else if(a>i||h>>u&m;if(_!==h>>>u&m)break;_&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ho&&(o=c.size),a(u)||(c=c.map((function(t){return pt(t)}))),r.push(c)}return o>t.size&&(t=t.setSize(o)),ve(t,e,r)}function qe(t){return t>>v<=y&&a.size>=2*o.size?(r=(i=a.filter((function(t,e){return void 0!==t&&s!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return t;r=o,i=a.set(s,[e,n])}else r=o.set(e,a.size),i=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):Ge(r,i)}function Qe(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Ke(t){this._iter=t,this.size=t.size}function Ye(t){this._iter=t,this.size=t.size}function Xe(t){this._iter=t,this.size=t.size}function Ze(t){var e=_n(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=wn,e.__iterateUncached=function(e,n){var r=this;return t.__iterate((function(t,n){return!1!==e(n,t,r)}),n)},e.__iteratorUncached=function(e,n){if(e===D){var r=t.__iterator(e,n);return new N((function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(e===P?I:P,n)},e}function $e(t,e,n){var r=_n(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var o=t.get(r,b);return o===b?i:e.call(n,o,r,t)},r.__iterateUncached=function(r,i){var o=this;return t.__iterate((function(t,i,a){return!1!==r(e.call(n,t,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=t.__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,e.call(n,a[1],s,t),i)}))},r}function tn(t,e){var n=_n(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Ze(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=wn,n.__iterate=function(e,n){var r=this;return t.__iterate((function(t,n){return e(t,n,r)}),!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function en(t,e,n,r){var i=_n(t);return r&&(i.has=function(r){var i=t.get(r,b);return i!==b&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,b);return o!==b&&e.call(n,o,r,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return t.__iterate((function(t,o,u){if(e.call(n,t,o,u))return s++,i(t,r?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=t.__iterator(D,o),s=0;return new N((function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(e.call(n,l,c,t))return z(i,r?c:s++,l,o)}}))},i}function nn(t,e,n){var r=Gt().asMutable();return t.__iterate((function(i,o){r.update(e.call(n,i,o,t),0,(function(t){return t+1}))})),r.asImmutable()}function rn(t,e,n){var r=s(t),i=(l(t)?He():Gt()).asMutable();t.__iterate((function(o,a){i.update(e.call(n,o,a,t),(function(t){return(t=t||[]).push(r?[a,o]:o),t}))}));var o=bn(t);return i.map((function(e){return vn(t,o(e))}))}function on(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n===1/0?n=i:n|=0),E(e,n,i))return t;var o=j(e,i),a=R(n,i);if(o!=o||a!=a)return on(t.toSeq().cacheResult(),e,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=_n(t);return c.size=0===s?s:t.size&&s||void 0,!r&&at(t)&&s>=0&&(c.get=function(e,n){return(e=A(this,e))>=0&&es)return B();var t=i.next();return r||e===P?t:z(e,u-1,e===I?void 0:t.value[1],t)}))},c}function an(t,e,n){var r=_n(t);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return t.__iterate((function(t,i,s){return e.call(n,t,i,s)&&++a&&r(t,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=t.__iterator(D,i),s=!0;return new N((function(){if(!s)return B();var t=a.next();if(t.done)return t;var i=t.value,u=i[0],c=i[1];return e.call(n,c,u,o)?r===D?t:z(r,u,c,t):(s=!1,B())}))},r}function sn(t,e,n,r){var i=_n(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return t.__iterate((function(t,o,c){if(!s||!(s=e.call(n,t,o,c)))return u++,i(t,r?o:u-1,a)})),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(D,o),u=!0,c=0;return new N((function(){var t,o,l;do{if((t=s.next()).done)return r||i===P?t:z(i,c++,i===I?void 0:t.value[1],t);var f=t.value;o=f[0],l=f[1],u&&(u=e.call(n,l,o,a))}while(u);return i===D?t:z(i,o,l,t)}))},i}function un(t,e){var n=s(t),i=[t].concat(e).map((function(t){return a(t)?n&&(t=r(t)):t=n?ut(t):ct(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===i.length)return t;if(1===i.length){var o=i[0];if(o===t||n&&s(o)||u(t)&&u(o))return o}var c=new nt(i);return n?c=c.toKeyedSeq():u(t)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),c}function cn(t,e,n){var r=_n(t);return r.__iterateUncached=function(r,i){var o=0,s=!1;function u(t,c){var l=this;t.__iterate((function(t,i){return(!e||c0}function gn(t,e,r){var i=_n(t);return i.size=new nt(r).map((function(t){return t.size})).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(P,e),i=0;!(n=r.next()).done&&!1!==t(n.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=r.map((function(t){return t=n(t),V(i?t.reverse():t)})),a=0,s=!1;return new N((function(){var n;return s||(n=o.map((function(t){return t.next()})),s=n.some((function(t){return t.done}))),s?B():z(t,a++,e.apply(null,n.map((function(t){return t.value}))))}))},i}function vn(t,e){return at(t)?e:t.constructor(e)}function yn(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function mn(t){return Vt(t.size),k(t)}function bn(t){return s(t)?r:u(t)?i:o}function _n(t){return Object.create((s(t)?Q:u(t)?K:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):J.prototype.cacheResult.call(this)}function xn(t,e){return t>e?1:t=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Kn(t,e)},Vn.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;Vt(t.size);var e=this.size,n=this._head;return t.reverse().forEach((function(t){e++,n={value:t,next:n}})),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Kn(e,n)},Vn.prototype.pop=function(){return this.slice(1)},Vn.prototype.unshift=function(){return this.push.apply(this,arguments)},Vn.prototype.unshiftAll=function(t){return this.pushAll(t)},Vn.prototype.shift=function(){return this.pop.apply(this,arguments)},Vn.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):Yn()},Vn.prototype.slice=function(t,e){if(E(t,e,this.size))return this;var n=j(t,this.size);if(R(e,this.size)!==this.size)return Tt.prototype.slice.call(this,t,e);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):Kn(r,i)},Vn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Kn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Vn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},Vn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new N((function(){if(r){var e=r.value;return r=r.next,z(t,n++,e)}return B()}))},Vn.isStack=Gn;var Wn,Jn="@@__IMMUTABLE_STACK__@@",Qn=Vn.prototype;function Kn(t,e,n,r){var i=Object.create(Qn);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Yn(){return Wn||(Wn=Kn(0))}function Xn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}Qn[Jn]=!0,Qn.withMutations=Kt.withMutations,Qn.asMutable=Kt.asMutable,Qn.asImmutable=Kt.asImmutable,Qn.wasAltered=Kt.wasAltered,n.Iterator=N,Xn(n,{toArray:function(){Vt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,n){t[n]=e})),t},toIndexedSeq:function(){return new Ke(this)},toJS:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJS?t.toJS():t})).__toJS()},toJSON:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t})).__toJS()},toKeyedSeq:function(){return new Qe(this,!0)},toMap:function(){return Gt(this.toKeyedSeq())},toObject:function(){Vt(this.size);var t={};return this.__iterate((function(e,n){t[n]=e})),t},toOrderedMap:function(){return He(this.toKeyedSeq())},toOrderedSet:function(){return Ln(s(this)?this.valueSeq():this)},toSet:function(){return jn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Ye(this)},toSeq:function(){return u(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Vn(s(this)?this.valueSeq():this)},toList:function(){return Te(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return vn(this,un(this,t.call(arguments,0)))},includes:function(t){return this.some((function(e){return mt(e,t)}))},entries:function(){return this.__iterator(D)},every:function(t,e){Vt(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!t.call(e,r,i,o))return n=!1,!1})),n},filter:function(t,e){return vn(this,en(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return Vt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Vt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate((function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""})),e},keys:function(){return this.__iterator(I)},map:function(t,e){return vn(this,$e(this,t,e))},reduce:function(t,e,n){var r,i;return Vt(this.size),arguments.length<2?i=!0:r=e,this.__iterate((function(e,o,a){i?(i=!1,r=e):r=t.call(n,r,e,o,a)})),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return vn(this,tn(this,!0))},slice:function(t,e){return vn(this,on(this,t,e,!0))},some:function(t,e){return!this.every(nr(t),e)},sort:function(t){return vn(this,hn(this,t))},values:function(){return this.__iterator(P)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return k(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return nn(this,t,e)},equals:function(t){return bt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new nt(t._cache);var e=t.toSeq().map(er).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(nr(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate((function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1})),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(C)},flatMap:function(t,e){return vn(this,ln(this,t,e))},flatten:function(t){return vn(this,cn(this,t,!0))},fromEntrySeq:function(){return new Xe(this)},get:function(t,e){return this.find((function(e,n){return mt(n,t)}),void 0,e)},getIn:function(t,e){for(var n,r=this,i=Sn(t);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,b):b)===b)return e}return r},groupBy:function(t,e){return rn(this,t,e)},has:function(t){return this.get(t,b)!==b},hasIn:function(t){return this.getIn(t,b)!==b},isSubset:function(t){return t="function"==typeof t.includes?t:n(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:n(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(e){return mt(e,t)}))},keySeq:function(){return this.toSeq().map(tr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return dn(this,t)},maxBy:function(t,e){return dn(this,e,t)},min:function(t){return dn(this,t?rr(t):ar)},minBy:function(t,e){return dn(this,e?rr(e):ar,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return vn(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return vn(this,sn(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(nr(t),e)},sortBy:function(t,e){return vn(this,hn(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return vn(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return vn(this,an(this,t,e))},takeUntil:function(t,e){return this.takeWhile(nr(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=sr(this))}});var Zn=n.prototype;Zn[f]=!0,Zn[L]=Zn.values,Zn.__toJS=Zn.toArray,Zn.__toStringMapper=ir,Zn.inspect=Zn.toSource=function(){return this.toString()},Zn.chain=Zn.flatMap,Zn.contains=Zn.includes,Xn(r,{flip:function(){return vn(this,Ze(this))},mapEntries:function(t,e){var n=this,r=0;return vn(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return vn(this,this.toSeq().flip().map((function(r,i){return t.call(e,r,i,n)})).flip())}});var $n=r.prototype;function tr(t,e){return e}function er(t,e){return[e,t]}function nr(t){return function(){return!t.apply(this,arguments)}}function rr(t){return function(){return-t.apply(this,arguments)}}function ir(t){return"string"==typeof t?JSON.stringify(t):String(t)}function or(){return T(arguments)}function ar(t,e){return te?-1:0}function sr(t){if(t.size===1/0)return 0;var e=l(t),n=s(t),r=e?1:0;return ur(t.__iterate(n?e?function(t,e){r=31*r+cr(Et(t),Et(e))|0}:function(t,e){r=r+cr(Et(t),Et(e))|0}:e?function(t){r=31*r+Et(t)|0}:function(t){r=r+Et(t)|0}),r)}function ur(t,e){return e=At(e,3432918353),e=At(e<<15|e>>>-15,461845907),e=At(e<<13|e>>>-13,5),e=At((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=Ct((e=At(e^e>>>13,3266489909))^e>>>16)}function cr(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return $n[h]=!0,$n[L]=Zn.entries,$n.__toJS=Zn.toObject,$n.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+ir(t)},Xn(i,{toKeyedSeq:function(){return new Qe(this,!1)},filter:function(t,e){return vn(this,en(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return vn(this,tn(this,!1))},slice:function(t,e){return vn(this,on(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=j(t,t<0?this.count():this.size);var r=this.slice(0,t);return vn(this,1===n?r:r.concat(T(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(t){return vn(this,cn(this,t,!1))},get:function(t,e){return(t=A(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=A(this,t))>=0&&(void 0!==this.size?this.size===1/0||t>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],n=0,r=0;n>>5]|=t[n]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},bytesToHex:function(t){for(var e=[],n=0;n>>4).toString(16)),e.push((15&t[n]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],n=0;n>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r>>6-2*i);return n}},t.exports=n},"Vq8+Ip3e":function(t,exports,e){"use strict";var n=e("oaJ8xVPa").counter;t.exports={idRegex:{x:n("x","( domain)?"),y:n("y","( domain)?")},attrRegex:n("[xy]axis"),xAxisMatch:n("xaxis"),yAxisMatch:n("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:"-select",DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},"Vv+Cyhd5":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r).a.createActions({list:{asyncResult:!0}});e.default=i},VyT2TXtt:function(t,exports){t.exports=function(t,e,n,r){var i,o,a,s,u,c,l,f,h,d,p,g,v,y,m,b,_,w,x,S,O,T,k,A,C=r[0],E=r[1],j=r[2],R=Math.sqrt(C*C+E*E+j*j);if(Math.abs(R)<1e-6)return null;C*=R=1/R,E*=R,j*=R,i=Math.sin(n),o=Math.cos(n),a=1-o,s=e[0],u=e[1],c=e[2],l=e[3],f=e[4],h=e[5],d=e[6],p=e[7],g=e[8],v=e[9],y=e[10],m=e[11],b=C*C*a+o,_=E*C*a+j*i,w=j*C*a-E*i,x=C*E*a-j*i,S=E*E*a+o,O=j*E*a+C*i,T=C*j*a+E*i,k=E*j*a-C*i,A=j*j*a+o,t[0]=s*b+f*_+g*w,t[1]=u*b+h*_+v*w,t[2]=c*b+d*_+y*w,t[3]=l*b+p*_+m*w,t[4]=s*x+f*S+g*O,t[5]=u*x+h*S+v*O,t[6]=c*x+d*S+y*O,t[7]=l*x+p*S+m*O,t[8]=s*T+f*k+g*A,t[9]=u*T+h*k+v*A,t[10]=c*T+d*k+y*A,t[11]=l*T+p*k+m*A,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},"W+sNG9T1":function(t,e,n){"use strict";var r=n("AztyBNMT"),i=n("oCSEoDew"),o=n.n(i),a=n("mlLZmLl3"),s=n("LHgfPCv1");function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var c={STARTPAGE:"/",NOTFOUND:"/notfound",SEARCH:"/search",STREAMS:"/streams",LEGACY_ALERTS:{LIST:"/legacy/alerts",CONDITIONS:"/legacy/alerts/conditions",NEW_CONDITION:"/legacy/alerts/conditions/new",NOTIFICATIONS:"/legacy/alerts/notifications",NEW_NOTIFICATION:"/legacy/alerts/notifications/new"},ALERTS:{LIST:"/alerts",DEFINITIONS:{LIST:"/alerts/definitions",CREATE:"/alerts/definitions/new",edit:function(t){return"/alerts/definitions/".concat(t,"/edit")},show:function(t){return"/alerts/definitions/".concat(t)}},NOTIFICATIONS:{LIST:"/alerts/notifications",CREATE:"/alerts/notifications/new",edit:function(t){return"/alerts/notifications/".concat(t,"/edit")},show:function(t){return"/alerts/notifications/".concat(t)}}},SOURCES:"/sources",DASHBOARDS:"/dashboards",GETTING_STARTED:"/gettingstarted",SYSTEM:{CONFIGURATIONS:"/system/configurations",CONTENTPACKS:{LIST:"/system/contentpacks",EXPORT:"/system/contentpacks/export",CREATE:"/system/contentpacks/create",edit:function(t,e){return"/system/contentpacks/".concat(t,"/").concat(e,"/edit")},show:function(t){return"/system/contentpacks/".concat(t)}},GROKPATTERNS:"/system/grokpatterns",INDICES:{LIST:"/system/indices",FAILURES:"/system/indices/failures"},INDEX_SETS:{CONFIGURATION:function(t,e){return e?"/system/index_sets/".concat(t,"/configuration?from=").concat(e):"/system/index_sets/".concat(t,"/configuration")},SHOW:function(t){return"/system/index_sets/".concat(t)},CREATE:"/system/index_sets/create"},INPUTS:"/system/inputs",LOGGING:"/system/logging",METRICS:function(t){return"/system/metrics/node/".concat(t)},NODES:{LIST:"/system/nodes",SHOW:function(t){return"/system/nodes/".concat(t)}},THREADDUMP:function(t){return"/system/threaddump/".concat(t)},OUTPUTS:"/system/outputs",OVERVIEW:"/system/overview",PROCESSBUFFERDUMP:function(t){return"/system/processbufferdump/".concat(t)},AUTHENTICATION:{BACKENDS:{OVERVIEW:"/system/authentication/services",ACTIVE:"/system/authentication/services/active",CREATE:"/system/authentication/services/create",createBackend:function(t){return"/system/authentication/services/create/".concat(t)},show:function(t){return"/system/authentication/services/".concat(t)},edit:function(t,e){var n="/system/authentication/services/edit/".concat(t);return e?"".concat(n,"?initialStepKey=").concat(e):n}},AUTHENTICATORS:{SHOW:"/system/authentication/authenticator",EDIT:"/system/authentication/authenticator/edit"}},USERS:{CREATE:"/system/users/new",edit:function(t){return"/system/users/edit/".concat(t)},TOKENS:{edit:function(t){return"/system/users/tokens/".concat(t)}},OVERVIEW:"/system/users",show:function(t){return"/system/users/".concat(t)}},AUTHZROLES:{OVERVIEW:"/system/roles",show:function(t){return"/system/roles/".concat(t)},edit:function(t){return"/system/roles/edit/".concat(t)}},LOOKUPTABLES:{OVERVIEW:"/system/lookuptables",CREATE:"/system/lookuptables/create",show:function(t){return"/system/lookuptables/table/".concat(t)},edit:function(t){return"/system/lookuptables/table/".concat(t,"/edit")},CACHES:{OVERVIEW:"/system/lookuptables/caches",CREATE:"/system/lookuptables/caches/create",show:function(t){return"/system/lookuptables/caches/".concat(t)},edit:function(t){return"/system/lookuptables/caches/".concat(t,"/edit")}},DATA_ADAPTERS:{OVERVIEW:"/system/lookuptables/data_adapters",CREATE:"/system/lookuptables/data_adapters/create",show:function(t){return"/system/lookuptables/data_adapter/".concat(t)},edit:function(t){return"/system/lookuptables/data_adapter/".concat(t,"/edit")}}},PIPELINES:{OVERVIEW:"/system/pipelines",PIPELINE:function(t){return"/system/pipelines/".concat(t)},RULES:"/system/pipelines/rules",RULE:function(t){return"/system/pipelines/rules/".concat(t)},SIMULATOR:"/system/pipelines/simulate"},ENTERPRISE:"/system/enterprise",SIDECARS:{OVERVIEW:"/system/sidecars",STATUS:function(t){return"/system/sidecars/".concat(t,"/status")},ADMINISTRATION:"/system/sidecars/administration",CONFIGURATION:"/system/sidecars/configuration",NEW_CONFIGURATION:"/system/sidecars/configuration/new",EDIT_CONFIGURATION:function(t){return"/system/sidecars/configuration/edit/".concat(t)},NEW_COLLECTOR:"/system/sidecars/collector/new",EDIT_COLLECTOR:function(t){return"/system/sidecars/collector/edit/".concat(t)}}},VIEWS:{LIST:s.y,VIEWID:function(t){return"".concat(s.y,"/").concat(t)}},EXTENDEDSEARCH:s.s,search_with_query:function(t,e,n){var r=new o.a(c.SEARCH),i={q:t};return e&&n&&(i[e]=n),r.query(i),r.resource()},_common_search_url:function(t,e,n,r){var i=new o.a(t),a={q:e,interval:r};return n&&Object.keys(n).forEach((function(t){a[t]=n[t]})),i.query(a),i.resource()},search:function(t,e,n){return c._common_search_url(c.SEARCH,t,e,n)},message_show:function(t,e){return"/messages/".concat(t,"/").concat(e)},stream_edit:function(t){return"/streams/".concat(t,"/edit")},stream_edit_example:function(t,e,n){return"".concat(c.stream_edit(t),"?index=").concat(e,"&message_id=").concat(n)},stream_outputs:function(t){return"/streams/".concat(t,"/outputs")},stream_search:function(t,e,n,r){return c._common_search_url("".concat(c.STREAMS,"/").concat(t,"/search"),e,n,r)},stream_alerts:function(t){return"/alerts/?stream_id=".concat(t)},legacy_stream_search:function(t){return"/streams/".concat(t,"/messages")},show_alert:function(t){return"".concat(c.LEGACY_ALERTS.LIST,"/").concat(t)},show_alert_condition:function(t,e){return"".concat(c.LEGACY_ALERTS.CONDITIONS,"/").concat(t,"/").concat(e)},new_alert_condition_for_stream:function(t){return"".concat(c.LEGACY_ALERTS.NEW_CONDITION,"?stream_id=").concat(t)},new_alert_notification_for_stream:function(t){return"".concat(c.LEGACY_ALERTS.NEW_NOTIFICATION,"?stream_id=").concat(t)},dashboard_show:function(t){return"/dashboards/".concat(t)},node:function(t){return"/system/nodes/".concat(t)},node_inputs:function(t){return"".concat(c.SYSTEM.INPUTS,"/").concat(t)},global_input_extractors:function(t){return"/system/inputs/".concat(t,"/extractors")},local_input_extractors:function(t,e){return"/system/inputs/".concat(t,"/").concat(e,"/extractors")},export_extractors:function(t,e){return"".concat(c.local_input_extractors(t,e),"/export")},import_extractors:function(t,e){return"".concat(c.local_input_extractors(t,e),"/import")},new_extractor:function(t,e,n,r,i,a){var s=new o.a("/system/inputs/".concat(t,"/").concat(e,"/extractors/new")),u={extractor_type:n,field:r,example_index:i,example_id:a};return s.search(u),s.resource()},edit_extractor:function(t,e,n){return"/system/inputs/".concat(t,"/").concat(e,"/extractors/").concat(n,"/edit")},edit_input_extractor:function(t,e,n){return"/system/inputs/".concat(t,"/").concat(e,"/extractors/").concat(n,"/edit")},getting_started:function(t){return"".concat(c.GETTING_STARTED,"?menu=").concat(t)},filtered_metrics:function(t,e){return"".concat(c.SYSTEM.METRICS(t),"?filter=").concat(e)}},l=function t(e,n){var r={};return Object.keys(e).forEach((function(i){switch(u(e[i])){case"string":r[i]=new o.a("".concat(n,"/").concat(e[i])).normalizePath().resource();break;case"function":r[i]=function(){var t=e[i].apply(e,arguments);return new o.a("".concat(n,"/").concat(t)).normalizePath().resource()};break;case"object":r[i]=t(e[i],n)}})),r},f=a.a.gl2AppPathPrefix()?l(c,a.a.gl2AppPathPrefix()):c;f.unqualified=c,f.pluginRoute=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};r.PluginStore.exports("routes").forEach((function(t){var e=new o.a(t.path),r=e.segment(),i=r.map((function(t){return t.replace(":","")})).join("_").toUpperCase(),a=r.filter((function(t){return t.startsWith(":")}));a.length>0?n[i]=function(){for(var t=arguments.length,n=new Array(t),i=0;ie}function l(t,e){return t>=e}exports.findBin=function(t,e,i){if(n(e.start))return i?Math.ceil((t-e.start)/e.size-a)-1:Math.floor((t-e.start)/e.size+a);var o,f,h=0,d=e.length,p=0,g=d>1?(e[d-1]-e[0])/(d-1):1;for(f=g>=0?i?s:u:i?l:c,t+=g*a*(i?-1:1)*(g>=0?1:-1);h90&&r.log("Long binary search..."),h-1},exports.sorterAsc=function(t,e){return t-e},exports.sorterDes=function(t,e){return e-t},exports.distinctVals=function(t,e){var n,r=(e||{}).unitMinDiff,i=t.slice();for(i.sort(exports.sorterAsc),n=i.length-1;n>-1&&i[n]===o;n--);var a=1;r||(a=i[n]-i[0]||1);for(var s,u=a/(n||1)/1e4,c=[],l=0;l<=n;l++){var f=i[l],h=f-s;void 0===s?(c.push(f),s=f):h>u&&(a=Math.min(a,h),c.push(f),s=f)}return{vals:c,minDiff:a}},exports.roundUp=function(t,e,n){for(var r,i=0,o=e.length-1,a=0,s=n?0:1,u=n?1:0,c=n?Math.ceil:Math.floor;i0&&(r=1),n&&r)return t.sort(e)}return r?t:t.reverse()},exports.findIndexOfMin=function(t,e){e=e||i;for(var n,r=1/0,o=0;o2&&void 0!==arguments[2]?arguments[2]:"server";s(this,t),this._value={type:e,plugin:r,version:n}}return c(t,[{key:"type",get:function(){return this._value.type}},{key:"plugin",get:function(){return this._value.plugin}},{key:"version",get:function(){return this._value.version}},{key:"toBuilder",value:function(){var t=this._value,e=t.type,n=t.plugin,r=t.version;return new f(i.a.Map({type:e,plugin:n,version:r}))}},{key:"toJSON",value:function(){var t=this._value,e=t.type,n=t.plugin,r=t.version;return"server"===n?{type:e,version:r}:{type:e,plugin:n,version:r}}},{key:"equals",value:function(t){return!!(t.version&&t.plugin&&t.type)&&(t.version===this.version&&t.type===this.type&&t.plugin===this.plugin)}}],[{key:"create",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"server";return new t(e,n,r)}},{key:"fromJSON",value:function(e){var n=e.type,r=e.version,i=e.plugin;return t.create(n,r,i)}},{key:"builder",value:function(){return(new f).plugin("server")}}]),t}(),f=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.a.Map();s(this,t),this.value=e}return c(t,[{key:"type",value:function(e){return new t(this.value.set("type",e))}},{key:"plugin",value:function(e){return new t(this.value.set("plugin",e))}},{key:"version",value:function(e){return new t(this.value.set("version",e))}},{key:"build",value:function(){var t=this.value.toObject(),e=t.type,n=t.plugin,r=t.version;return new l(e,r,n)}}]),t}();function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[];h(this,t);var u=a.map((function(t){return t instanceof l?t:l.fromJSON(t)}));this._value={v:e,type:n,id:r,data:i,constraints:u,fromServer:o,parameters:s}}return p(t,[{key:"v",get:function(){return this._value.v}},{key:"type",get:function(){return this._value.type}},{key:"id",get:function(){return this._value.id}},{key:"data",get:function(){return this._value.data}},{key:"fromServer",get:function(){return this._value.fromServer}},{key:"constraints",get:function(){return this._value.constraints}},{key:"title",get:function(){var t=this.getValueFromData("title");return t||(t=this.getValueFromData("name")),t||""}},{key:"description",get:function(){return this.getValueFromData("description")||""}},{key:"isEntity",get:function(){return!0}},{key:"getValueFromData",value:function(t){var e=this._value.data;if(e&&e[t]){if(a.a.dataIsValueRef(e[t])){var n=(e[t]||{})[a.a.VALUE_REF_VALUE_FIELD];if(a.a.dataValueIsParameter(e[t])){var r=Object(o.findIndex)(this._value.parameters,{name:n});if(r>=0&&this._value.parameters[r].default_value)return this._value.parameters[r].default_value}return n}return e[t]}}},{key:"toBuilder",value:function(){var t=this._value,e=t.v,n=t.type,i=t.id,o=t.data,a=t.constraints,s=t.fromServer,u=t.parameters;return new v(Object(r.Map)({v:e,type:n,id:i,data:o,constraints:a,fromServer:s,parameters:u}))}},{key:"toJSON",value:function(){var t=this._value;return{v:t.v,type:t.type,id:t.id,data:t.data,constraints:t.constraints}}}],[{key:"fromJSON",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=e.v,o=e.type,a=e.id,s=e.data,u=e.constraints;return new t(i,o,a,s,n,u,r)}},{key:Symbol.hasInstance,value:function(t){return!!t.isEntity}},{key:"builder",value:function(){return new v}}]),t}(),v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object(r.Map)();h(this,t),this.value=e}return p(t,[{key:"v",value:function(t){return this.value=this.value.set("v",t),this}},{key:"type",value:function(t){return this.value=this.value.set("type",t),this}},{key:"id",value:function(t){return this.value=this.value.set("id",t),this}},{key:"data",value:function(t){return this.value=this.value.set("data",t),this}},{key:"fromServer",value:function(t){return this.value=this.value.set("fromServer",t),this}},{key:"constraints",value:function(t){return this.value=this.value.set("constraints",t),this}},{key:"parameters",value:function(t){return this.value=this.value.set("parameters",t),this}},{key:"build",value:function(){var t=this.value.toObject(),e=t.v,n=t.type,r=t.id,i=t.data,o=t.constraints,a=t.fromServer,s=t.parameters;return new g(e,n,r,i,a,o,s)}}]),t}()},"X/Uj5g7g":function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("HbbeyvOy"),a=n("8GJ6oOEd"),s=n("L+5XEiOD"),u=i.a.createStore({sourceUrl:function(t){return"/cluster/".concat(t,"/processing")},pause:function(t){var e=this;return Object(s.b)("POST",o.f("".concat(this.sourceUrl(t),"/pause"))).then((function(){e.trigger({}),a.a.success("Message processing paused successfully in '".concat(t,"'"))}),(function(e){a.a.error("Pausing message processing in '".concat(t,"' failed: ").concat(e),"Could not pause message processing in node '".concat(t,"'"))}))},resume:function(t){var e=this;return Object(s.b)("POST",o.f("".concat(this.sourceUrl(t),"/resume"))).then((function(){e.trigger({}),a.a.success("Message processing resumed successfully in '".concat(t,"'"))}),(function(e){a.a.error("Resuming message processing in '".concat(t,"' failed: ").concat(e),"Could not resume message processing in node '".concat(t,"'"))}))}});e.default=u},X4gaAC3A:function(t,exports,e){var n=e("PbfD+MHS");t.exports=function(t,e,r,i){var o,a,s,u,c,l,f,h,d,p,g=e[0],v=e[1],y=e[2],m=i[0],b=i[1],_=i[2],w=r[0],x=r[1],S=r[2];if(Math.abs(g-w)<1e-6&&Math.abs(v-x)<1e-6&&Math.abs(y-S)<1e-6)return n(t);f=g-w,h=v-x,d=y-S,p=1/Math.sqrt(f*f+h*h+d*d),o=b*(d*=p)-_*(h*=p),a=_*(f*=p)-m*d,s=m*h-b*f,(p=Math.sqrt(o*o+a*a+s*s))?(o*=p=1/p,a*=p,s*=p):(o=0,a=0,s=0);u=h*s-d*a,c=d*o-f*s,l=f*a-h*o,(p=Math.sqrt(u*u+c*c+l*l))?(u*=p=1/p,c*=p,l*=p):(u=0,c=0,l=0);return t[0]=o,t[1]=u,t[2]=f,t[3]=0,t[4]=a,t[5]=c,t[6]=h,t[7]=0,t[8]=s,t[9]=l,t[10]=d,t[11]=0,t[12]=-(o*g+a*v+s*y),t[13]=-(u*g+c*v+l*y),t[14]=-(f*g+h*v+d*y),t[15]=1,t}},XVyiyjEH:function(t,e,n){"use strict";n.r(e);var r=n("4KF7VOU5"),i=n.n(r),o=n("L+5XEiOD"),a=n("mR82218M"),s=n("QlBQbb2U"),u=n("HbbeyvOy"),c=n("8GJ6oOEd"),l=i.a.createStore({URL:Object(u.f)("/system/grok"),loadPatterns:function(t){return Object(o.b)("GET",this.URL).then((function(e){var n=e.patterns;return n.sort((function(t,e){return t.name.toLowerCase().localeCompare(e.name.toLowerCase())})),t(n),e}),(function(t){c.a.error("Loading Grok patterns failed with status: ".concat(t.message),"Could not load Grok patterns")}))},searchPaginated:function(t,e,n){var r=Object(a.a)(s.a.GrokPatternsController.paginated().url,t,e,n);return Object(o.b)("GET",Object(u.f)(r)).then((function(t){var e={count:t.count,total:t.total,page:t.page,perPage:t.per_page,query:n};return{patterns:t.patterns,pagination:e}})).catch((function(t){c.a.error("Loading patterns failed with status: ".concat(t),"Could not load streams")}))},testPattern:function(t,e,n){var r={grok_pattern:{name:t.name,pattern:t.pattern},sampleData:t.sampleData};Object(o.b)("POST",Object(u.f)(s.a.GrokPatternsController.test().url),r).then((function(t){return e(t),t}),(function(t){var e=t.message,r=t.additional.body;r&&r.message&&(e=t.additional.body.message),n(e)}))},savePattern:function(t,e){var n,r={id:t.id,pattern:t.pattern,name:t.name,content_pack:t.content_pack},i=this.URL;""===t.id?n="POST":(i+="/".concat(t.id),n="PUT"),Object(o.b)(n,i,r).then((function(n){e();var r=""===t.id?"created":"updated",i='Grok pattern "'.concat(t.name,'" successfully ').concat(r);return c.a.success(i),n}),(function(e){var n=e.message,r=e.additional.body;r&&r.message&&(n=e.additional.body.message),c.a.error('Testing Grok pattern "'.concat(t.name,'" failed with status: ').concat(n),"Could not test Grok pattern")}))},deletePattern:function(t,e){Object(o.b)("DELETE","".concat(this.URL,"/").concat(t.id)).then((function(n){return e(),c.a.success('Grok pattern "'.concat(t.name,'" successfully deleted')),n}),(function(e){c.a.error('Deleting Grok pattern "'.concat(t.name,'" failed with status: ').concat(e.message),"Could not delete Grok pattern")}))},bulkImport:function(t,e){var n=Object(o.e)("POST","".concat(this.URL,"?replace=").concat(String(e)),t);return n.catch((function(t){var e=t.message,n=t.additional.body;if(n&&n.validation_errors&&n.validation_errors._){e="";for(var r=n.validation_errors._,i=0,o=r.length;i0;)u(t)}function u(t){var e=t.shift();if("function"!=typeof e)e._settlePromises();else{var n=t.shift(),r=t.shift();e.call(n,r)}}a.prototype.setScheduler=function(t){var e=this._schedule;return this._schedule=t,this._customScheduler=!0,e},a.prototype.hasCustomScheduler=function(){return this._customScheduler},a.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},a.prototype.fatalError=function(t,n){n?(e.stderr.write("Fatal "+(t instanceof Error?t.stack:t)+"\n"),e.exit(2)):this.throwLater(t)},a.prototype.throwLater=function(t,e){if(1===arguments.length&&(e=t,t=function(){throw e}),"undefined"!=typeof setTimeout)setTimeout((function(){t(e)}),0);else try{this._schedule((function(){t(e)}))}catch(t){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},a.prototype.invokeLater=function(t,e,n){this._lateQueue.push(t,e,n),this._queueTick()},a.prototype.invoke=function(t,e,n){this._normalQueue.push(t,e,n),this._queueTick()},a.prototype.settlePromises=function(t){this._normalQueue._pushOne(t),this._queueTick()},a.prototype._drainQueues=function(){s(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,s(this._lateQueue)},a.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},a.prototype._reset=function(){this._isTickUsed=!1},n.exports=a,n.exports.firstLineError=r},{"./queue":26,"./schedule":29}],3:[function(t,e,exports){"use strict";e.exports=function(t,e,n,r){var i=!1,o=function(t,e){this._reject(e)},a=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(o,o,null,this,t)},s=function(t,e){0==(50397184&this._bitField)&&this._resolveCallback(e.target)},u=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(o){i||(i=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var c=n(o),l=new t(e);l._propagateFrom(this,1);var f=this._target();if(l._setBoundTo(c),c instanceof t){var h={promiseRejectionQueued:!1,promise:l,target:f,bindingPromise:c};f._then(e,a,void 0,l,h),c._then(s,u,void 0,l,h),l._setOnCancel(c)}else l._resolveCallback(f);return l},t.prototype._setBoundTo=function(t){void 0!==t?(this._bitField=2097152|this._bitField,this._boundTo=t):this._bitField=-2097153&this._bitField},t.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},t.bind=function(e,n){return t.resolve(n).bind(e)}}},{}],4:[function(t,e,exports){"use strict";var n;"undefined"!=typeof Promise&&(n=Promise);var r=t("./promise")();r.noConflict=function(){try{Promise===r&&(Promise=n)}catch(t){}return r},e.exports=r},{"./promise":22}],5:[function(t,e,exports){"use strict";var n=Object.create;if(n){var r=n(null),i=n(null);r[" size"]=i[" size"]=0}e.exports=function(e){var n=t("./util"),r=n.canEvaluate;function i(t){return function(t,r){var i;if(null!=t&&(i=t[r]),"function"!=typeof i){var o="Object "+n.classString(t)+" has no method '"+n.toString(r)+"'";throw new e.TypeError(o)}return i}(t,this.pop()).apply(t,this)}function o(t){return t[this]}function a(t){var e=+this;return e<0&&(e=Math.max(0,e+t.length)),t[e]}n.isIdentifier,e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(i,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e;if("number"==typeof t)e=a;else if(r){var n=(void 0)(t);e=null!==n?n:o}else e=o;return this._then(e,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,e,exports){"use strict";e.exports=function(e,n,r,i){var o=t("./util"),a=o.tryCatch,s=o.errorObj,u=e._async;e.prototype.break=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var t=this,e=t;t._isCancellable();){if(!t._cancelBy(e)){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}var n=t._cancellationParent;if(null==n||!n._isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),t._setWillBeCancelled(),e=t,t=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(t){return t===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),u.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(t,e){if(o.isArray(t))for(var n=0;n=0)return n[t]}return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.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 t=n.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},r.CapturedTrace=null,r.create=function(){if(e)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=t.prototype._pushContext,o=t.prototype._popContext,a=t._peekContext,s=t.prototype._peekContext,u=t.prototype._promiseCreated;r.deactivateLongStackTraces=function(){t.prototype._pushContext=n,t.prototype._popContext=o,t._peekContext=a,t.prototype._peekContext=s,t.prototype._promiseCreated=u,e=!1},e=!0,t.prototype._pushContext=r.prototype._pushContext,t.prototype._popContext=r.prototype._popContext,t._peekContext=t.prototype._peekContext=i,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},r}},{}],9:[function(t,n,exports){"use strict";n.exports=function(n,r,i,o){var a,s,u,c,l=n._async,f=t("./errors").Warning,h=t("./util"),d=t("./es5"),p=h.canAttachTrace,g=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,v=/\((?:timers\.js):\d+:\d+\)/,y=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,m=null,b=null,_=!1,w=!(0==h.env("BLUEBIRD_DEBUG")),x=!(0==h.env("BLUEBIRD_WARNINGS")||!w&&!h.env("BLUEBIRD_WARNINGS")),S=!(0==h.env("BLUEBIRD_LONG_STACK_TRACES")||!w&&!h.env("BLUEBIRD_LONG_STACK_TRACES")),O=0!=h.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(x||!!h.env("BLUEBIRD_W_FORGOTTEN_RETURN"));!function(){var t=[];function e(){for(var e=0;e0},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(t,e,n){return V(t,e,n||this)},n.onPossiblyUnhandledRejection=function(t){var e=n._getContext();s=h.contextBind(e,t)},n.onUnhandledRejectionHandled=function(t){var e=n._getContext();a=h.contextBind(e,t)};var T=function(){};n.longStackTraces=function(){if(l.haveItemsQueued()&&!rt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!rt.longStackTraces&&Y()){var t=n.prototype._captureStackTrace,e=n.prototype._attachExtraTrace,i=n.prototype._dereferenceTrace;rt.longStackTraces=!0,T=function(){if(l.haveItemsQueued()&&!rt.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=t,n.prototype._attachExtraTrace=e,n.prototype._dereferenceTrace=i,r.deactivateLongStackTraces(),rt.longStackTraces=!1},n.prototype._captureStackTrace=B,n.prototype._attachExtraTrace=q,n.prototype._dereferenceTrace=H,r.activateLongStackTraces()}},n.hasLongStackTraces=function(){return rt.longStackTraces&&Y()};var k={unhandledrejection:{before:function(){var t=h.global.onunhandledrejection;return h.global.onunhandledrejection=null,t},after:function(t){h.global.onunhandledrejection=t}},rejectionhandled:{before:function(){var t=h.global.onrejectionhandled;return h.global.onrejectionhandled=null,t},after:function(t){h.global.onrejectionhandled=t}}},A=function(){var t=function(t,e){if(!t)return!h.global.dispatchEvent(e);var n;try{return n=t.before(),!h.global.dispatchEvent(e)}finally{t.after(n)}};try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return h.global.dispatchEvent(e),function(e,n){e=e.toLowerCase();var r=new CustomEvent(e,{detail:n,cancelable:!0});return d.defineProperty(r,"promise",{value:n.promise}),d.defineProperty(r,"reason",{value:n.reason}),t(k[e],r)}}return"function"==typeof Event?(e=new Event("CustomEvent"),h.global.dispatchEvent(e),function(e,n){e=e.toLowerCase();var r=new Event(e,{cancelable:!0});return r.detail=n,d.defineProperty(r,"promise",{value:n.promise}),d.defineProperty(r,"reason",{value:n.reason}),t(k[e],r)}):((e=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),h.global.dispatchEvent(e),function(e,n){e=e.toLowerCase();var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,!1,!0,n),t(k[e],r)})}catch(t){}return function(){return!1}}(),C=h.isNode?function(){return e.emit.apply(e,arguments)}:h.global?function(t){var e="on"+t.toLowerCase(),n=h.global[e];return!!n&&(n.apply(h.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function E(t,e){return{promise:e}}var j={promiseCreated:E,promiseFulfilled:E,promiseRejected:E,promiseResolved:E,promiseCancelled:E,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:E},R=function(t){var e=!1;try{e=C.apply(null,arguments)}catch(t){l.throwLater(t),e=!0}var n=!1;try{n=A(t,j[t].apply(null,arguments))}catch(t){l.throwLater(t),n=!0}return n||e};function M(){return!1}function I(t,e,n){var r=this;try{t(e,n,(function(t){if("function"!=typeof t)throw new TypeError("onCancel must be a function, got: "+h.toString(t));r._attachCancellationCallback(t)}))}catch(t){return t}}function P(t){if(!this._isCancellable())return this;var e=this._onCancel();void 0!==e?h.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function D(){return this._onCancelField}function U(t){this._onCancelField=t}function F(){this._cancellationParent=void 0,this._onCancelField=void 0}function L(t,e){if(0!=(1&e)){this._cancellationParent=t;var n=t._branchesRemainingToCancel;void 0===n&&(n=0),t._branchesRemainingToCancel=n+1}0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}n.config=function(t){if("longStackTraces"in(t=Object(t))&&(t.longStackTraces?n.longStackTraces():!t.longStackTraces&&n.hasLongStackTraces()&&T()),"warnings"in t){var e=t.warnings;rt.warnings=!!e,O=rt.warnings,h.isObject(e)&&"wForgottenReturn"in e&&(O=!!e.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!rt.cancellation){if(l.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=F,n.prototype._propagateFrom=L,n.prototype._onCancel=D,n.prototype._setOnCancel=U,n.prototype._attachCancellationCallback=P,n.prototype._execute=I,N=L,rt.cancellation=!0}if("monitoring"in t&&(t.monitoring&&!rt.monitoring?(rt.monitoring=!0,n.prototype._fireEvent=R):!t.monitoring&&rt.monitoring&&(rt.monitoring=!1,n.prototype._fireEvent=M)),"asyncHooks"in t&&h.nodeSupportsAsyncResource){var r=rt.asyncHooks,a=!!t.asyncHooks;r!==a&&(rt.asyncHooks=a,a?i():o())}return n},n.prototype._fireEvent=M,n.prototype._execute=function(t,e,n){try{t(e,n)}catch(t){return t}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(t){},n.prototype._attachCancellationCallback=function(t){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._dereferenceTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(t,e){};var N=function(t,e){0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)};function z(){var t=this._boundTo;return void 0!==t&&t instanceof n?t.isFulfilled()?t.value():void 0:t}function B(){this._trace=new et(this._peekContext())}function q(t,e){if(p(t)){var n=this._trace;if(void 0!==n&&e&&(n=n._parent),void 0!==n)n.attachExtraTrace(t);else if(!t.__stackCleaned__){var r=W(t);h.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),h.notEnumerableProp(t,"__stackCleaned__",!0)}}}function H(){this._trace=void 0}function V(t,e,r){if(rt.warnings){var i,o=new f(t);if(e)r._attachExtraTrace(o);else if(rt.longStackTraces&&(i=n._peekContext()))i.attachExtraTrace(o);else{var a=W(o);o.stack=a.message+"\n"+a.stack.join("\n")}R("warning",o)||J(o,"",!0)}}function G(t){for(var e=[],n=0;n0?function(t){for(var e=t.stack.replace(/\s+$/g,"").split("\n"),n=0;n0&&"SyntaxError"!=t.name&&(e=e.slice(n)),e}(t):[" (No stack trace)"],{message:n,stack:"SyntaxError"==t.name?e:G(e)}}function J(t,e,n){if("undefined"!=typeof console){var r;if(h.isObject(t)){var i=t.stack;r=e+b(i,t)}else r=e+String(t);"function"==typeof u?u(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function Q(t,e,n,r){var i=!1;try{"function"==typeof e&&(i=!0,"rejectionHandled"===t?e(r):e(n,r))}catch(t){l.throwLater(t)}"unhandledRejection"===t?R(t,n,r)||i||J(n,"Unhandled rejection "):R(t,r)}function K(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{if(e=t&&"function"==typeof t.toString?t.toString():h.toString(t),/\[object [a-zA-Z0-9$_]+\]/.test(e))try{e=JSON.stringify(t)}catch(t){}0===e.length&&(e="(empty array)")}return"(<"+function(t){var e=41;return t.length, no stack trace)"}function Y(){return"function"==typeof nt}var X=function(){return!1},Z=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function tt(t){var e=t.match(Z);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function et(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);nt(this,et),e>32&&this.uncycle()}h.inherits(et,Error),r.CapturedTrace=et,et.prototype.uncycle=function(){var t=this._length;if(!(t<2)){for(var e=[],n={},r=0,i=this;void 0!==i;++r)e.push(i),i=i._parent;for(r=(t=this._length=r)-1;r>=0;--r){var o=e[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r0&&(e[a-1]._parent=void 0,e[a-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var s=r>0?e[r-1]:this;a=0;--c)e[c]._length=u,u++;return}}}},et.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=W(t),n=e.message,r=[e.stack],i=this;void 0!==i;)r.push(G(i.stack.split("\n"))),i=i._parent;!function(t){for(var e=t[0],n=1;n=0;--s)if(r[s]===o){a=s;break}for(s=a;s>=0;--s){var u=r[s];if(e[i]!==u)break;e.pop(),i--}e=r}}(r),function(t){for(var e=0;e=0)return m=/@/,b=e,_=!0,function(t){t.stack=(new Error).stack};try{throw new Error}catch(t){r="stack"in t}return!("stack"in i)&&r&&"number"==typeof Error.stackTraceLimit?(m=t,b=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6}):(b=function(t,e){return"string"==typeof t?t:"object"!=typeof e&&"function"!=typeof e||void 0===e.name||void 0===e.message?K(e):e.toString()},null)}();"undefined"!=typeof console&&void 0!==console.warn&&(u=function(t){console.warn(t)},h.isNode&&e.stderr.isTTY?u=function(t,e){var n=e?"[33m":"[31m";console.warn(n+t+"[0m\n")}:h.isNode||"string"!=typeof(new Error).stack||(u=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var rt={warnings:x,longStackTraces:!1,cancellation:!1,monitoring:!1,asyncHooks:!1};return S&&n.longStackTraces(),{asyncHooks:function(){return rt.asyncHooks},longStackTraces:function(){return rt.longStackTraces},warnings:function(){return rt.warnings},cancellation:function(){return rt.cancellation},monitoring:function(){return rt.monitoring},propagateFromFunction:function(){return N},boundValueFunction:function(){return z},checkForgottenReturns:function(t,e,n,r,i){if(void 0===t&&null!==e&&O){if(void 0!==i&&i._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var o="",a="";if(e._trace){for(var s=e._trace.stack.split("\n"),u=G(s),c=u.length-1;c>=0;--c){var l=u[c];if(!v.test(l)){var f=l.match(y);f&&(o="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(u.length>0){var h=u[0];for(c=0;c0&&(a="\n"+s[c-1]);break}}}var d="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(d,!0,e)}},setBounds:function(t,e){if(Y()){for(var n,r,i=(t.stack||"").split("\n"),o=(e.stack||"").split("\n"),a=-1,s=-1,u=0;u=s||(X=function(t){if(g.test(t))return!0;var e=tt(t);return!!(e&&e.fileName===n&&a<=e.line&&e.line<=s)})}},warn:V,deprecated:function(t,e){var n=t+" is deprecated and will be removed in a future version.";return e&&(n+=" Use "+e+" instead."),V(n)},CapturedTrace:et,fireDomEvent:A,fireGlobalEvent:C}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(t,e,exports){"use strict";e.exports=function(t){function e(){return this.value}function n(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(n){return n instanceof t&&n.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:n},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this._then(n,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:t},void 0);var e=arguments[1],r=function(){throw e};return this.caught(t,r)},t.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof t&&n.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:n},void 0);var r=arguments[1];r instanceof t&&r.suppressUnhandledRejections();var i=function(){return r};return this.caught(n,i)}}},{}],11:[function(t,e,exports){"use strict";e.exports=function(t,e){var n=t.reduce,r=t.all;function i(){return r(this)}t.prototype.each=function(t){return n(this,t,e,0)._then(i,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return n(this,t,e,e)},t.each=function(t,r){return n(t,r,e,0)._then(i,void 0,void 0,t,void 0)},t.mapSeries=function(t,r){return n(t,r,e,e)}}},{}],12:[function(t,e,exports){"use strict";var n,r,i=t("./es5"),o=i.freeze,a=t("./util"),s=a.inherits,u=a.notEnumerableProp;function c(t,e){function n(r){if(!(this instanceof n))return new n(r);u(this,"message","string"==typeof r?r:e),u(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return s(n,Error),n}var l=c("Warning","warning"),f=c("CancellationError","cancellation error"),h=c("TimeoutError","timeout error"),d=c("AggregateError","aggregate error");try{n=TypeError,r=RangeError}catch(t){n=c("TypeError","type error"),r=c("RangeError","range error")}for(var p="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),g=0;g1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function f(){return d.call(this,this.promise._target()._settledValue())}function h(t){if(!l(this,t))return a.e=t,a}function d(t){var i=this.promise,s=this.handler;if(!this.called){this.called=!0;var u=this.isFinallyHandler()?s.call(i._boundValue()):s.call(i._boundValue(),t);if(u===r)return u;if(void 0!==u){i._setReturnedNonUndefined();var d=n(u,i);if(d instanceof e){if(null!=this.cancelPromise){if(d._isCancelled()){var p=new o("late cancellation observer");return i._attachExtraTrace(p),a.e=p,a}d.isPending()&&d._attachCancellationCallback(new c(this))}return d._then(f,h,void 0,this,void 0)}}}return i.isRejected()?(l(this),a.e=t,a):(l(this),t)}return u.prototype.isFinallyHandler=function(){return 0===this.type},c.prototype._resultCancelled=function(){l(this.finallyHandler)},e.prototype._passThrough=function(t,e,n,r){return"function"!=typeof t?this.then():this._then(n,r,void 0,new u(this,e,t),void 0)},e.prototype.lastly=e.prototype.finally=function(t){return this._passThrough(t,0,d,d)},e.prototype.tap=function(t){return this._passThrough(t,1,d)},e.prototype.tapCatch=function(t){var n=arguments.length;if(1===n)return this._passThrough(t,1,void 0,d);var r,o=new Array(n-1),a=0;for(r=0;r0&&"function"==typeof arguments[e]&&(t=arguments[e]);var r=[].slice.call(arguments);t&&r.pop();var i=new n(r).promise();return void 0!==t?i.spread(t):i}}},{"./util":36}],18:[function(t,e,exports){"use strict";e.exports=function(e,n,r,i,o,a){var s=t("./util"),u=s.tryCatch,c=s.errorObj,l=e._async;function f(t,n,r,i){this.constructor$(t),this._promise._captureStackTrace();var a=e._getContext();if(this._callback=s.contextBind(a,n),this._preservedValues=i===o?new Array(this.length()):null,this._limit=r,this._inFlight=0,this._queue=[],l.invoke(this._asyncInit,this,void 0),s.isArray(t))for(var u=0;u=1?a:0,o).promise()}s.inherits(f,n),f.prototype._asyncInit=function(){this._init$(void 0,-2)},f.prototype._init=function(){},f.prototype._promiseFulfilled=function(t,n){var r=this._values,o=this.length(),s=this._preservedValues,l=this._limit;if(n<0){if(r[n=-1*n-1]=t,l>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(l>=1&&this._inFlight>=l)return r[n]=t,this._queue.push(n),!1;null!==s&&(s[n]=t);var f=this._promise,h=this._callback,d=f._boundValue();f._pushContext();var p=u(h).call(d,t,n,o),g=f._popContext();if(a.checkForgottenReturns(p,g,null!==s?"Promise.filter":"Promise.map",f),p===c)return this._reject(p.e),!0;var v=i(p,this._promise);if(v instanceof e){var y=(v=v._target())._bitField;if(0==(50397184&y))return l>=1&&this._inFlight++,r[n]=v,v._proxy(this,-1*(n+1)),!1;if(0==(33554432&y))return 0!=(16777216&y)?(this._reject(v._reason()),!0):(this._cancel(),!0);p=v._value()}r[n]=p}return++this._totalResolved>=o&&(null!==s?this._filter(r,s):this._resolve(r),!0)},f.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlight