web-interface.assets.app.7274e9222d07ea893176.js Maven / Gradle / Ivy
!function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(e,r,i){for(var a,s,u=0,l=[];u1&&(n=n.substr(1,n.length-1),e=o.default.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=o.default.parse(n)),e},replaceHashParam:function(t,e){var n=this.getParsedHash(window.location);n[t]=e,window.location.replace("#"+o.default.stringify(n))},concatURLPath:function(){for(var t=arguments.length,e=Array(t),n=0;n=0&&b.splice(e,1)}function a(t){var e=document.createElement("style");return t.attrs.type="text/css",u(e,t.attrs),o(t,e),e}function s(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",u(e,t.attrs),o(t,e),e}function u(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function l(t,e){var n,r,o,u;if(e.transform&&t.css){if(!(u=e.transform(t.css)))return function(){};t.css=u}if(e.singleton){var l=v++;n=m||(m=a(e)),r=c.bind(null,n,l,!1),o=c.bind(null,n,l,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(e),r=d.bind(null,n,e),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(e),r=f.bind(null,n),o=function(){i(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}function c(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=_(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function f(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function d(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=y(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var p={},h=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),g=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),m=null,v=0,b=[],y=e(493);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=h()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var o=r(t,e);return n(o,e),function(t){for(var i=[],a=0;a>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?h(t)+e:e}function m(){return!0}function v(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function b(t,e){return _(t,e,0)}function y(t,e){return _(t,e,e)}function _(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function x(t){this.next=t}function w(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function k(){return{value:void 0,done:!0}}function S(t){return!!A(t)}function E(t){return t&&"function"==typeof t.next}function C(t){var e=A(t);return e&&e.call(t)}function A(t){var e=t&&(kn&&t[kn]||t[Sn]);if("function"==typeof e)return e}function O(t){return t&&"number"==typeof t.length}function M(t){return null===t||void 0===t?z():i(t)?t.toSeq():q(t)}function T(t){return null===t||void 0===t?z().toKeyedSeq():i(t)?a(t)?t.toSeq():t.fromEntrySeq():L(t)}function D(t){return null===t||void 0===t?z():i(t)?a(t)?t.entrySeq():t.toIndexedSeq():U(t)}function P(t){return(null===t||void 0===t?z():i(t)?a(t)?t.entrySeq():t:U(t)).toSetSeq()}function F(t){this._array=t,this.size=t.length}function R(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function I(t){this._iterable=t,this.size=t.length||t.size}function j(t){this._iterator=t,this._iteratorCache=[]}function N(t){return!(!t||!t[Cn])}function z(){return An||(An=new F([]))}function L(t){var e=Array.isArray(t)?new F(t).fromEntrySeq():E(t)?new j(t).fromEntrySeq():S(t)?new I(t).fromEntrySeq():"object"==typeof t?new R(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function U(t){var e=B(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function q(t){var e=B(t)||"object"==typeof t&&new R(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function B(t){return O(t)?new F(t):E(t)?new j(t):S(t)?new I(t):void 0}function H(t,e,n,r){var o=t._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===e(s[1],r?s[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function G(t,e,n,r){var o=t._cache;if(o){var i=o.length-1,a=0;return new x(function(){var t=o[n?i-a:a];return a++>i?k():w(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function V(t,e){return e?W(e,t,"",{"":t}):Y(t)}function W(t,e,n,r){return Array.isArray(e)?t.call(r,n,D(e).map(function(n,r){return W(t,n,r,e)})):K(e)?t.call(r,n,T(e).map(function(n,r){return W(t,n,r,e)})):e}function Y(t){return Array.isArray(t)?D(t).map(Y).toList():K(t)?T(t).map(Y).toMap():t}function K(t){return t&&(t.constructor===Object||void 0===t.constructor)}function Q(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===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function X(t,e){if(t===e)return!0;if(!i(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||a(t)!==a(e)||s(t)!==s(e)||l(t)!==l(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(l(t)){var r=t.entries();return e.every(function(t,e){var o=r.next().value;return o&&Q(o[1],t)&&(n||Q(o[0],e))})&&r.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var c=t;t=e,e=c}var f=!0,d=e.__iterate(function(e,r){if(n?!t.has(e):o?!Q(e,t.get(r,vn)):!Q(t.get(r,vn),e))return f=!1,!1});return f&&t.size===d}function Z(t,e){if(!(this instanceof Z))return new Z(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(On)return On;On=this}}function J(t,e){if(!t)throw new Error(e)}function tt(t,e,n){if(!(this instanceof tt))return new tt(t,e,n);if(J(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),e>>1&1073741824|3221225471&t}function at(t){if(!1===t||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null===t||void 0===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;)t/=4294967295,n^=t;return it(n)}if("string"===e)return t.length>Nn?st(t):ut(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return lt(t);if("function"==typeof t.toString)return ut(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function st(t){var e=Un[t];return void 0===e&&(e=ut(t),Ln===zn&&(Ln=0,Un={}),Ln++,Un[t]=e),e}function ut(t){for(var e=0,n=0;n0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function ft(t){J(t!==1/0,"Cannot perform this action with an infinite size.")}function dt(t){return null===t||void 0===t?kt():pt(t)&&!l(t)?t:kt().withMutations(function(e){var r=n(t);ft(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function pt(t){return!(!t||!t[qn])}function ht(t,e){this.ownerID=t,this.entries=e}function gt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function mt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function vt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function bt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function yt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&xt(t._root)}function _t(t,e){return w(t,e[0],e[1])}function xt(t,e){return{node:t,index:0,__prev:e}}function wt(t,e,n,r){var o=Object.create(Bn);return o.size=t,o._root=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function kt(){return Hn||(Hn=wt(0))}function St(t,e,n){var r,o;if(t._root){var i=c(bn),a=c(yn);if(r=Et(t._root,t.__ownerID,0,void 0,e,n,i,a),!a.value)return t;o=t.size+(i.value?n===vn?-1:1:0)}else{if(n===vn)return t;o=1,r=new ht(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=o,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?wt(o,r):kt()}function Et(t,e,n,r,o,i,a,s){return t?t.update(e,n,r,o,i,a,s):i===vn?t:(f(s),f(a),new bt(e,r,[o,i]))}function Ct(t){return t.constructor===bt||t.constructor===vt}function At(t,e,n,r,o){if(t.keyHash===r)return new vt(e,r,[t.entry,o]);var i,a=(0===n?t.keyHash:t.keyHash>>>n)&mn,s=(0===n?r:r>>>n)&mn;return new gt(e,1<>>=1)a[s]=1&n?e[i++]:void 0;return a[r]=o,new mt(t,i+1,a)}function Dt(t,e,r){for(var o=[],a=0;a>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Nt(t,e,n,r){var o=r?t:p(t);return o[e]=n,o}function zt(t,e,n,r){var o=t.length+1;if(r&&e+1===o)return t[e]=n,t;for(var i=new Array(o),a=0,s=0;s0&&oi?0:i-n,l=a-n;return l>gn&&(l=gn),function(){if(o===l)return Xn;var t=e?--l:o++;return r&&r[t]}}function o(t,r,o){var s,u=t&&t.array,l=o>i?0:i-o>>r,c=1+(a-o>>r);return c>gn&&(c=gn),function(){for(;;){if(s){var t=s();if(t!==Xn)return t;s=null}if(l===c)return Xn;var i=e?--c:l++;s=n(u&&u[i],r-hn,o+(i<=t.size||e<0)return t.withMutations(function(t){e<0?Xt(t,e).set(0,n):Xt(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,o=t._root,i=c(yn);return e>=Zt(t._capacity)?r=Yt(r,t.__ownerID,0,e,n,i):o=Yt(o,t.__ownerID,t._level,e,n,i),i.value?t.__ownerID?(t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t):Gt(t._origin,t._capacity,t._level,o,r):t}function Yt(t,e,n,r,o,i){var a=r>>>n&mn,s=t&&a0){var l=t&&t.array[a],c=Yt(l,e,n-hn,r,o,i);return c===l?t:(u=Kt(t,e),u.array[a]=c,u)}return s&&t.array[a]===o?t:(f(i),u=Kt(t,e),void 0===o&&a===u.array.length-1?u.array.pop():u.array[a]=o,u)}function Kt(t,e){return e&&t&&e===t.ownerID?t:new Bt(t?t.array.slice():[],e)}function Qt(t,e){if(e>=Zt(t._capacity))return t._tail;if(e<1<0;)n=n.array[e>>>r&mn],r-=hn;return n}}function Xt(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new d,o=t._origin,i=t._capacity,a=o+e,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return t;if(a>=s)return t.clear();for(var u=t._level,l=t._root,c=0;a+c<0;)l=new Bt(l&&l.array.length?[void 0,l]:[],r),u+=hn,c+=1<=1<f?new Bt([],r):h;if(h&&p>f&&ahn;v-=hn){var b=f>>>v&mn;m=m.array[b]=Kt(m.array[b],r)}m.array[f>>>hn&mn]=h}if(s=p)a-=p,s-=p,u=hn,l=null,g=g&&g.removeBefore(r,0,a);else if(a>o||p>>u&mn;if(y!==p>>>u&mn)break;y&&(c+=(1<o&&(l=l.removeBefore(r,u,a-c)),l&&pa&&(a=l.size),i(u)||(l=l.map(function(t){return V(t)})),o.push(l)}return a>t.size&&(t=t.setSize(a)),Rt(t,e,o)}function Zt(t){return t>>hn<=gn&&a.size>=2*i.size?(o=a.filter(function(t,e){return void 0!==t&&s!==e}),r=o.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=o.__ownerID=t.__ownerID)):(r=i.remove(e),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return t;r=i,o=a.set(s,[e,n])}else r=i.set(e,a.size),o=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=o,t.__hash=void 0,t):ee(r,o)}function oe(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function ae(t){this._iter=t,this.size=t.size}function se(t){this._iter=t,this.size=t.size}function ue(t){var e=Me(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=Te,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===wn){var r=t.__iterator(e,n);return new x(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===xn?_n:xn,n)},e}function le(t,e,n){var r=Me(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,o){var i=t.get(r,vn);return i===vn?o:e.call(n,i,r,t)},r.__iterateUncached=function(r,o){var i=this;return t.__iterate(function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=t.__iterator(wn,o);return new x(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return w(r,s,e.call(n,a[1],s,t),o)})},r}function ce(t,e){var n=Me(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=ue(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=Te,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 fe(t,e,n,r){var o=Me(t);return r&&(o.has=function(r){var o=t.get(r,vn);return o!==vn&&!!e.call(n,o,r,t)},o.get=function(r,o){var i=t.get(r,vn);return i!==vn&&e.call(n,i,r,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return t.__iterate(function(t,i,u){if(e.call(n,t,i,u))return s++,o(t,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=t.__iterator(wn,i),s=0;return new x(function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],c=u[1];if(e.call(n,c,l,t))return w(o,r?l:s++,c,i)}})},o}function de(t,e,n){var r=dt().asMutable();return t.__iterate(function(o,i){r.update(e.call(n,o,i,t),0,function(t){return t+1})}),r.asImmutable()}function pe(t,e,n){var r=a(t),o=(l(t)?Jt():dt()).asMutable();t.__iterate(function(i,a){o.update(e.call(n,i,a,t),function(t){return t=t||[],t.push(r?[a,i]:i),t})});var i=Oe(t);return o.map(function(e){return Ee(t,i(e))})}function he(t,e,n,r){var o=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n===1/0?n=o:n|=0),v(e,n,o))return t;var i=b(e,o),a=y(n,o);if(i!==i||a!==a)return he(t.toSeq().cacheResult(),e,n,r);var s,u=a-i;u===u&&(s=u<0?0:u);var l=Me(t);return l.size=0===s?s:t.size&&s||void 0,!r&&N(t)&&s>=0&&(l.get=function(e,n){return e=g(this,e),e>=0&&es)return k();var t=o.next();return r||e===xn?t:e===_n?w(e,u-1,void 0,t):w(e,u-1,t.value[1],t)})},l}function ge(t,e,n){var r=Me(t);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return t.__iterate(function(t,o,s){return e.call(n,t,o,s)&&++a&&r(t,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=t.__iterator(wn,o),s=!0;return new x(function(){if(!s)return k();var t=a.next();if(t.done)return t;var o=t.value,u=o[0],l=o[1];return e.call(n,l,u,i)?r===wn?t:w(r,u,l,t):(s=!1,k())})},r}function me(t,e,n,r){var o=Me(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return t.__iterate(function(t,i,l){if(!s||!(s=e.call(n,t,i,l)))return u++,o(t,r?i:u-1,a)}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=t.__iterator(wn,i),u=!0,l=0;return new x(function(){var t,i,c;do{if(t=s.next(),t.done)return r||o===xn?t:o===_n?w(o,l++,void 0,t):w(o,l++,t.value[1],t);var f=t.value;i=f[0],c=f[1],u&&(u=e.call(n,c,i,a))}while(u);return o===wn?t:w(o,i,c,t)})},o}function ve(t,e){var r=a(t),o=[t].concat(e).map(function(t){return i(t)?r&&(t=n(t)):t=r?L(t):U(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===o.length)return t;if(1===o.length){var u=o[0];if(u===t||r&&a(u)||s(t)&&s(u))return u}var l=new F(o);return r?l=l.toKeyedSeq():s(t)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=o.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),l}function be(t,e,n){var r=Me(t);return r.__iterateUncached=function(r,o){function a(t,l){var c=this;t.__iterate(function(t,o){return(!e||l0}function Se(t,n,r){var o=Me(t);return o.size=new F(r).map(function(t){return t.size}).min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(xn,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=r.map(function(t){return t=e(t),C(o?t.reverse():t)}),a=0,s=!1;return new x(function(){var e;return s||(e=i.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?k():w(t,a++,n.apply(null,e.map(function(t){return t.value})))})},o}function Ee(t,e){return N(t)?e:t.constructor(e)}function Ce(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ae(t){return ft(t.size),h(t)}function Oe(t){return a(t)?n:s(t)?r:o}function Me(t){return Object.create((a(t)?T:s(t)?D:P).prototype)}function Te(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):M.prototype.cacheResult.call(this)}function De(t,e){return t>e?1:te?-1:0}function an(t){if(t.size===1/0)return 0;var e=l(t),n=a(t),r=e?1:0;return sn(t.__iterate(n?e?function(t,e){r=31*r+un(at(t),at(e))|0}:function(t,e){r=r+un(at(t),at(e))|0}:e?function(t){r=31*r+at(t)|0}:function(t){r=r+at(t)|0}),r)}function sn(t,e){return e=Dn(e,3432918353),e=Dn(e<<15|e>>>-15,461845907),e=Dn(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=Dn(e^e>>>16,2246822507),e=Dn(e^e>>>13,3266489909),e=it(e^e>>>16)}function un(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var ln=Array.prototype.slice;t(n,e),t(r,e),t(o,e),e.isIterable=i,e.isKeyed=a,e.isIndexed=s,e.isAssociative=u,e.isOrdered=l,e.Keyed=n,e.Indexed=r,e.Set=o;var cn="@@__IMMUTABLE_ITERABLE__@@",fn="@@__IMMUTABLE_KEYED__@@",dn="@@__IMMUTABLE_INDEXED__@@",pn="@@__IMMUTABLE_ORDERED__@@",hn=5,gn=1<r?k():w(t,o,n[e?r-o++:o++])})},t(R,T),R.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},R.prototype.has=function(t){return this._object.hasOwnProperty(t)},R.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[e?o-i:i];if(!1===t(n[a],a,this))return i+1}return i},R.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,o=r.length-1,i=0;return new x(function(){var a=r[e?o-i:i];return i++>o?k():w(t,a,n[a])})},R.prototype[pn]=!0,t(I,D),I.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=this._iterable,r=C(n),o=0;if(E(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,o++,this););return o},I.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,r=C(n);if(!E(r))return new x(k);var o=0;return new x(function(){var e=r.next();return e.done?e:w(t,o++,e.value)})},t(j,D),j.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n=this._iterator,r=this._iteratorCache,o=0;o=r.length){var e=n.next();if(e.done)return e;r[o]=e.value}return w(t,o,r[o++])})};var An;t(Z,D),Z.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Z.prototype.get=function(t,e){return this.has(t)?this._value:e},Z.prototype.includes=function(t){return Q(this._value,t)},Z.prototype.slice=function(t,e){var n=this.size;return v(t,e,n)?this:new Z(this._value,y(e,n)-b(t,n))},Z.prototype.reverse=function(){return this},Z.prototype.indexOf=function(t){return Q(this._value,t)?0:-1},Z.prototype.lastIndexOf=function(t){return Q(this._value,t)?this.size:-1},Z.prototype.__iterate=function(t,e){for(var n=0;n=0&&e=0&&nn?k():w(t,i++,a)})},tt.prototype.equals=function(t){return t instanceof tt?this._start===t._start&&this._end===t._end&&this._step===t._step:X(this,t)};var Mn;t(et,e),t(nt,et),t(rt,et),t(ot,et),et.Keyed=nt,et.Indexed=rt,et.Set=ot;var Tn,Dn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){t|=0,e|=0;var n=65535&t,r=65535&e;return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0},Pn=Object.isExtensible,Fn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Rn="function"==typeof WeakMap;Rn&&(Tn=new WeakMap);var In=0,jn="__immutablehash__";"function"==typeof Symbol&&(jn=Symbol(jn));var Nn=16,zn=255,Ln=0,Un={};t(dt,nt),dt.of=function(){var t=ln.call(arguments,0);return kt().withMutations(function(e){for(var n=0;n=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}})},dt.prototype.toString=function(){return this.__toString("Map {","}")},dt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},dt.prototype.set=function(t,e){return St(this,t,e)},dt.prototype.setIn=function(t,e){return this.updateIn(t,vn,function(){return e})},dt.prototype.remove=function(t){return St(this,t,vn)},dt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return vn})},dt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},dt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=It(this,Pe(t),e,n);return r===vn?void 0:r},dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):kt()},dt.prototype.merge=function(){return Dt(this,void 0,arguments)},dt.prototype.mergeWith=function(t){return Dt(this,t,ln.call(arguments,1))},dt.prototype.mergeIn=function(t){var e=ln.call(arguments,1);return this.updateIn(t,kt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},dt.prototype.mergeDeep=function(){return Dt(this,Pt,arguments)},dt.prototype.mergeDeepWith=function(t){var e=ln.call(arguments,1);return Dt(this,Ft(t),e)},dt.prototype.mergeDeepIn=function(t){var e=ln.call(arguments,1);return this.updateIn(t,kt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},dt.prototype.sort=function(t){return Jt(xe(this,t))},dt.prototype.sortBy=function(t,e){return Jt(xe(this,e,t))},dt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},dt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},dt.prototype.asImmutable=function(){return this.__ensureOwner()},dt.prototype.wasAltered=function(){return this.__altered},dt.prototype.__iterator=function(t,e){return new yt(this,t,e)},dt.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},dt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?wt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},dt.isMap=pt;var qn="@@__IMMUTABLE_MAP__@@",Bn=dt.prototype;Bn[qn]=!0,Bn.delete=Bn.remove,Bn.removeIn=Bn.deleteIn,ht.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i=Gn)return Ot(t,u,r,o);var h=t&&t===this.ownerID,g=h?u:p(u);return d?s?l===c-1?g.pop():g[l]=g.pop():g[l]=[r,o]:g.push([r,o]),h?(this.entries=g,this):new ht(t,g)}},gt.prototype.get=function(t,e,n,r){void 0===e&&(e=at(n));var o=1<<((0===t?e:e>>>t)&mn),i=this.bitmap;return 0==(i&o)?r:this.nodes[jt(i&o-1)].get(t+hn,e,n,r)},gt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=at(r));var s=(0===e?n:n>>>e)&mn,u=1<=Vn)return Tt(t,d,l,s,h);if(c&&!h&&2===d.length&&Ct(d[1^f]))return d[1^f];if(c&&h&&1===d.length&&Ct(h))return h;var g=t&&t===this.ownerID,m=c?h?l:l^u:l|u,v=c?h?Nt(d,f,h,g):Lt(d,f,g):zt(d,f,h,g);return g?(this.bitmap=m,this.nodes=v,this):new gt(t,m,v)},mt.prototype.get=function(t,e,n,r){void 0===e&&(e=at(n));var o=(0===t?e:e>>>t)&mn,i=this.nodes[o];return i?i.get(t+hn,e,n,r):r},mt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=at(r));var s=(0===e?n:n>>>e)&mn,u=o===vn,l=this.nodes,c=l[s];if(u&&!c)return this;var f=Et(c,t,e+hn,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d=0&&t>>e&mn;if(r>=this.array.length)return new Bt([],t);var o,i=0===r;if(e>0){var a=this.array[r];if((o=a&&a.removeBefore(t,e-hn,n))===a&&i)return this}if(i&&!o)return this;var s=Kt(this,t);if(!i)for(var u=0;u>>e&mn;if(r>=this.array.length)return this;var o;if(e>0){var i=this.array[r];if((o=i&&i.removeAfter(t,e-hn,n))===i&&r===this.array.length-1)return this}var a=Kt(this,t);return a.array.splice(r+1),o&&(a.array[r]=o),a};var Qn,Xn={};t(Jt,dt),Jt.of=function(){return this(arguments)},Jt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Jt.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Jt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ne()},Jt.prototype.set=function(t,e){return re(this,t,e)},Jt.prototype.remove=function(t){return re(this,t,vn)},Jt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Jt.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Jt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Jt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?ee(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Jt.isOrderedMap=te,Jt.prototype[pn]=!0,Jt.prototype.delete=Jt.prototype.remove;var $n;t(oe,T),oe.prototype.get=function(t,e){return this._iter.get(t,e)},oe.prototype.has=function(t){return this._iter.has(t)},oe.prototype.valueSeq=function(){return this._iter.valueSeq()},oe.prototype.reverse=function(){var t=this,e=ce(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},oe.prototype.map=function(t,e){var n=this,r=le(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},oe.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?Ae(this):0,function(o){return t(o,e?--n:n++,r)}),e)},oe.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(xn,e),r=e?Ae(this):0;return new x(function(){var o=n.next();return o.done?o:w(t,e?--r:r++,o.value,o)})},oe.prototype[pn]=!0,t(ie,D),ie.prototype.includes=function(t){return this._iter.includes(t)},ie.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},ie.prototype.__iterator=function(t,e){var n=this._iter.__iterator(xn,e),r=0;return new x(function(){var e=n.next();return e.done?e:w(t,r++,e.value,e)})},t(ae,P),ae.prototype.has=function(t){return this._iter.includes(t)},ae.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},ae.prototype.__iterator=function(t,e){var n=this._iter.__iterator(xn,e);return new x(function(){var e=n.next();return e.done?e:w(t,e.value,e.value,e)})},t(se,T),se.prototype.entrySeq=function(){return this._iter.toSeq()},se.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){Ce(e);var r=i(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},se.prototype.__iterator=function(t,e){var n=this._iter.__iterator(xn,e);return new x(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Ce(r);var o=i(r);return w(t,o?r.get(0):r[0],o?r.get(1):r[1],e)}}})},ie.prototype.cacheResult=oe.prototype.cacheResult=ae.prototype.cacheResult=se.prototype.cacheResult=Te,t(Fe,nt),Fe.prototype.toString=function(){return this.__toString(Ie(this)+" {","}")},Fe.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Fe.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},Fe.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Re(this,kt()))},Fe.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Ie(this));if(this._map&&!this._map.has(t)){if(e===this._defaultValues[t])return this}var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:Re(this,n)},Fe.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:Re(this,e)},Fe.prototype.wasAltered=function(){return this._map.wasAltered()},Fe.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},Fe.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},Fe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Re(this,e,t):(this.__ownerID=t,this._map=e,this)};var Zn=Fe.prototype;Zn.delete=Zn.remove,Zn.deleteIn=Zn.removeIn=Bn.removeIn,Zn.merge=Bn.merge,Zn.mergeWith=Bn.mergeWith,Zn.mergeIn=Bn.mergeIn,Zn.mergeDeep=Bn.mergeDeep,Zn.mergeDeepWith=Bn.mergeDeepWith,Zn.mergeDeepIn=Bn.mergeDeepIn,Zn.setIn=Bn.setIn,Zn.update=Bn.update,Zn.updateIn=Bn.updateIn,Zn.withMutations=Bn.withMutations,Zn.asMutable=Bn.asMutable,Zn.asImmutable=Bn.asImmutable,t(ze,ot),ze.of=function(){return this(arguments)},ze.fromKeys=function(t){return this(n(t).keySeq())},ze.prototype.toString=function(){return this.__toString("Set {","}")},ze.prototype.has=function(t){return this._map.has(t)},ze.prototype.add=function(t){return Ue(this,this._map.set(t,!0))},ze.prototype.remove=function(t){return Ue(this,this._map.remove(t))},ze.prototype.clear=function(){return Ue(this,this._map.clear())},ze.prototype.union=function(){var t=ln.call(arguments,0);return t=t.filter(function(t){return 0!==t.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n=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):Qe(t,e)},Ye.prototype.pushAll=function(t){if(t=r(t),0===t.size)return this;ft(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):Qe(e,n)},Ye.prototype.pop=function(){return this.slice(1)},Ye.prototype.unshift=function(){return this.push.apply(this,arguments)},Ye.prototype.unshiftAll=function(t){return this.pushAll(t)},Ye.prototype.shift=function(){return this.pop.apply(this,arguments)},Ye.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):Xe()},Ye.prototype.slice=function(t,e){if(v(t,e,this.size))return this;var n=b(t,this.size);if(y(e,this.size)!==this.size)return rt.prototype.slice.call(this,t,e);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Qe(r,o)},Ye.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Qe(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ye.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},Ye.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new x(function(){if(r){var e=r.value;return r=r.next,w(t,n++,e)}return k()})},Ye.isStack=Ke;var or="@@__IMMUTABLE_STACK__@@",ir=Ye.prototype;ir[or]=!0,ir.withMutations=Bn.withMutations,ir.asMutable=Bn.asMutable,ir.asImmutable=Bn.asImmutable,ir.wasAltered=Bn.wasAltered;var ar;e.Iterator=x,$e(e,{toArray:function(){ft(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new ie(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 oe(this,!0)},toMap:function(){return dt(this.toKeyedSeq())},toObject:function(){ft(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Jt(this.toKeyedSeq())},toOrderedSet:function(){return He(a(this)?this.valueSeq():this)},toSet:function(){return ze(a(this)?this.valueSeq():this)},toSetSeq:function(){return new ae(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ye(a(this)?this.valueSeq():this)},toList:function(){return Ut(a(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 Ee(this,ve(this,ln.call(arguments,0)))},includes:function(t){return this.some(function(e){return Q(e,t)})},entries:function(){return this.__iterator(wn)},every:function(t,e){ft(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1}),n},filter:function(t,e){return Ee(this,fe(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 ft(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){ft(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!==r&&void 0!==r?r.toString():""}),e},keys:function(){return this.__iterator(_n)},map:function(t,e){return Ee(this,le(this,t,e))},reduce:function(t,e,n){ft(this.size);var r,o;return arguments.length<2?o=!0:r=e,this.__iterate(function(e,i,a){o?(o=!1,r=e):r=t.call(n,r,e,i,a)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ee(this,ce(this,!0))},slice:function(t,e){return Ee(this,he(this,t,e,!0))},some:function(t,e){return!this.every(tn(t),e)},sort:function(t){return Ee(this,xe(this,t))},values:function(){return this.__iterator(xn)},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 h(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return de(this,t,e)},equals:function(t){return X(this,t)},entrySeq:function(){var t=this;if(t._cache)return new F(t._cache);var e=t.toSeq().map(Je).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(tn(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate(function(n,o,i){if(t.call(e,n,o,i))return r=[o,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(m)},flatMap:function(t,e){return Ee(this,ye(this,t,e))},flatten:function(t){return Ee(this,be(this,t,!0))},fromEntrySeq:function(){return new se(this)},get:function(t,e){return this.find(function(e,n){return Q(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,o=Pe(t);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,vn):vn)===vn)return e}return r},groupBy:function(t,e){return pe(this,t,e)},has:function(t){return this.get(t,vn)!==vn},hasIn:function(t){return this.getIn(t,vn)!==vn},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:e(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(e){return Q(e,t)})},keySeq:function(){return this.toSeq().map(Ze).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return we(this,t)},maxBy:function(t,e){return we(this,e,t)},min:function(t){return we(this,t?en(t):on)},minBy:function(t,e){return we(this,e?en(e):on,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Ee(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Ee(this,me(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(tn(t),e)},sortBy:function(t,e){return Ee(this,xe(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Ee(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Ee(this,ge(this,t,e))},takeUntil:function(t,e){return this.takeWhile(tn(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=an(this))}});var sr=e.prototype;sr[cn]=!0,sr[En]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=nn,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,$e(n,{flip:function(){return Ee(this,ue(this))},mapEntries:function(t,e){var n=this,r=0;return Ee(this,this.toSeq().map(function(o,i){return t.call(e,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Ee(this,this.toSeq().flip().map(function(r,o){return t.call(e,r,o,n)}).flip())}});var ur=n.prototype;return ur[fn]=!0,ur[En]=sr.entries,ur.__toJS=sr.toObject,ur.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+nn(t)},$e(r,{toKeyedSeq:function(){return new oe(this,!1)},filter:function(t,e){return Ee(this,fe(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 Ee(this,ce(this,!1))},slice:function(t,e){return Ee(this,he(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=b(t,t<0?this.count():this.size);var r=this.slice(0,t);return Ee(this,1===n?r:r.concat(p(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 Ee(this,be(this,t,!1))},get:function(t,e){return t=g(this,t),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=g(this,t))>=0&&(void 0!==this.size?this.size===1/0||t0)return void(l[r]=function(){for(var t=arguments.length,r=Array(t),i=0;i-1}function p(t,e,n){for(var r=-1,o=null==t?0:t.length;++r-1;);return n}function z(t,e){for(var n=t.length;n--&&k(e,t[n],0)>-1;);return n}function L(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}function U(t){return"\\"+On[t]}function q(t,e){return null==t?ot:t[e]}function B(t){return yn.test(t)}function H(t){return _n.test(t)}function G(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function V(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function W(t,e){return function(n){return t(e(n))}}function Y(t,e){for(var n=-1,r=t.length,o=0,i=[];++n>>1,Lt=[["ary",kt],["bind",mt],["bindKey",vt],["curry",yt],["curryRight",_t],["flip",Et],["partial",xt],["partialRight",wt],["rearg",St]],Ut="[object Arguments]",qt="[object Array]",Bt="[object AsyncFunction]",Ht="[object Boolean]",Gt="[object Date]",Vt="[object DOMException]",Wt="[object Error]",Yt="[object Function]",Kt="[object GeneratorFunction]",Qt="[object Map]",Xt="[object Number]",$t="[object Null]",Zt="[object Object]",Jt="[object Proxy]",te="[object RegExp]",ee="[object Set]",ne="[object String]",re="[object Symbol]",oe="[object Undefined]",ie="[object WeakMap]",ae="[object WeakSet]",se="[object ArrayBuffer]",ue="[object DataView]",le="[object Float32Array]",ce="[object Float64Array]",fe="[object Int8Array]",de="[object Int16Array]",pe="[object Int32Array]",he="[object Uint8Array]",ge="[object Uint8ClampedArray]",me="[object Uint16Array]",ve="[object Uint32Array]",be=/\b__p \+= '';/g,ye=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,we=/[&<>"']/g,ke=RegExp(xe.source),Se=RegExp(we.source),Ee=/<%-([\s\S]+?)%>/g,Ce=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,Oe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Me=/^\w*$/,Te=/^\./,De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Fe=RegExp(Pe.source),Re=/^\s+|\s+$/g,Ie=/^\s+/,je=/\s+$/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,Le=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qe=/\\(\\)?/g,Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,He=/\w*$/,Ge=/^[-+]0x[0-9a-f]+$/i,Ve=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xe=/($^)/,$e=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Je="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tn="["+Je+"]",en="["+Ze+"]",nn="[a-z\\xdf-\\xf6\\xf8-\\xff]",rn="[^\\ud800-\\udfff"+Je+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",on="\\ud83c[\\udffb-\\udfff]",an="(?:\\ud83c[\\udde6-\\uddff]){2}",sn="[\\ud800-\\udbff][\\udc00-\\udfff]",un="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ln="(?:"+nn+"|"+rn+")",cn="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",fn="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",an,sn].join("|")+")[\\ufe0e\\ufe0f]?"+cn+")*",dn="[\\ufe0e\\ufe0f]?"+cn+fn,pn="(?:"+["[\\u2700-\\u27bf]",an,sn].join("|")+")"+dn,hn="(?:"+["[^\\ud800-\\udfff]"+en+"?",en,an,sn,"[\\ud800-\\udfff]"].join("|")+")",gn=RegExp("['’]","g"),mn=RegExp(en,"g"),vn=RegExp(on+"(?="+on+")|"+hn+dn,"g"),bn=RegExp([un+"?"+nn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tn,un,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tn,un+ln,"$"].join("|")+")",un+"?"+ln+"+(?:['’](?:d|ll|m|re|s|t|ve))?",un+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)","\\d+",pn].join("|"),"g"),yn=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),_n=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wn=-1,kn={};kn[le]=kn[ce]=kn[fe]=kn[de]=kn[pe]=kn[he]=kn[ge]=kn[me]=kn[ve]=!0,kn[Ut]=kn[qt]=kn[se]=kn[Ht]=kn[ue]=kn[Gt]=kn[Wt]=kn[Yt]=kn[Qt]=kn[Xt]=kn[Zt]=kn[te]=kn[ee]=kn[ne]=kn[ie]=!1;var Sn={};Sn[Ut]=Sn[qt]=Sn[se]=Sn[ue]=Sn[Ht]=Sn[Gt]=Sn[le]=Sn[ce]=Sn[fe]=Sn[de]=Sn[pe]=Sn[Qt]=Sn[Xt]=Sn[Zt]=Sn[te]=Sn[ee]=Sn[ne]=Sn[re]=Sn[he]=Sn[ge]=Sn[me]=Sn[ve]=!0,Sn[Wt]=Sn[Yt]=Sn[ie]=!1;var En={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Cn={"&":"&","<":"<",">":">",'"':""","'":"'"},An={"&":"&","<":"<",">":">",""":'"',"'":"'"},On={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Mn=parseFloat,Tn=parseInt,Dn="object"==typeof t&&t&&t.Object===Object&&t,Pn="object"==typeof self&&self&&self.Object===Object&&self,Fn=Dn||Pn||Function("return this")(),Rn="object"==typeof exports&&exports&&!exports.nodeType&&exports,In=Rn&&"object"==typeof n&&n&&!n.nodeType&&n,jn=In&&In.exports===Rn,Nn=jn&&Dn.process,zn=function(){try{return Nn&&Nn.binding&&Nn.binding("util")}catch(t){}}(),Ln=zn&&zn.isArrayBuffer,Un=zn&&zn.isDate,qn=zn&&zn.isMap,Bn=zn&&zn.isRegExp,Hn=zn&&zn.isSet,Gn=zn&&zn.isTypedArray,Vn=A("length"),Wn=O(En),Yn=O(Cn),Kn=O(An),Qn=function t(e){function n(t){if(au(t)&&!bd(t)&&!(t instanceof O)){if(t instanceof y)return t;if(vc.call(t,"__wrapped__"))return ra(t)}return new y(t)}function r(){}function y(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=ot}function O(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=jt,this.__views__=[]}function X(){var t=new O(this.__wrapped__);return t.__actions__=Lo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Lo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Lo(this.__views__),t}function et(){if(this.__filtered__){var t=new O(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function nt(){var t=this.__wrapped__.value(),e=this.__dir__,n=bd(t),r=e<0,o=n?t.length:0,i=Oi(0,o,this.__views__),a=i.start,s=i.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,p=Yc(u,this.__takeCount__);if(!n||!r&&o==u&&p==u)return _o(t,this.__actions__);var h=[];t:for(;u--&&d-1}function ln(t,e){var n=this.__data__,r=$n(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function cn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function or(t,e,n,r,o,i){var a,s=e&ft,l=e&dt,c=e&pt;if(n&&(a=o?n(t,r,o,i):n(t)),a!==ot)return a;if(!iu(t))return t;var f=bd(t);if(f){if(a=Di(t),!s)return Lo(t,a)}else{var d=Of(t),p=d==Yt||d==Kt;if(_d(t))return Ao(t,s);if(d==Zt||d==Ut||p&&!o){if(a=l||p?{}:Pi(t),!s)return l?Bo(t,tr(a,t)):qo(t,Jn(a,t))}else{if(!Sn[d])return o?t:{};a=Fi(t,d,or,s)}}i||(i=new En);var h=i.get(t);if(h)return h;i.set(t,a);var g=c?l?_i:yi:l?Bu:qu,m=f?ot:g(t);return u(m||t,function(r,o){m&&(o=r,r=t[o]),Xn(a,o,or(r,e,n,o,t,i))}),a}function ir(t){var e=qu(t);return function(n){return ar(n,t,e)}}function ar(t,e,n){var r=n.length;if(null==t)return!r;for(t=uc(t);r--;){var o=n[r],i=e[o],a=t[o];if(a===ot&&!(o in t)||!i(a))return!1}return!0}function sr(t,e,n){if("function"!=typeof t)throw new fc(st);return Df(function(){t.apply(ot,n)},e)}function ur(t,e,n,r){var o=-1,i=d,a=!0,s=t.length,u=[],l=e.length;if(!s)return u;n&&(e=h(e,R(n))),r?(i=p,a=!1):e.length>=it&&(i=j,a=!1,e=new bn(e));t:for(;++oo?0:o+n),r=r===ot||r>o?o:ku(r),r<0&&(r+=o),r=n>r?0:Su(r);n0&&n(s)?e>1?pr(s,e-1,n,r,o):g(o,s):r||(o[o.length]=s)}return o}function hr(t,e){return t&&bf(t,e,qu)}function gr(t,e){return t&&yf(t,e,qu)}function mr(t,e){return f(e,function(e){return nu(t[e])})}function vr(t,e){e=Eo(e,t);for(var n=0,r=e.length;null!=t&&ne}function xr(t,e){return null!=t&&vc.call(t,e)}function wr(t,e){return null!=t&&e in uc(t)}function kr(t,e,n){return t>=Yc(e,n)&&t=120&&c.length>=120)?new bn(a&&c):ot}c=t[0];var f=-1,g=s[0];t:for(;++f-1;)s!==t&&Dc.call(s,u,1),Dc.call(t,u,1);return t}function Jr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;ji(o)?Dc.call(t,o,1):vo(t,o)}}return t}function to(t,e){return t+Uc(Xc()*(e-t+1))}function eo(t,e,n,r){for(var o=-1,i=Wc(Lc((e-t)/(n||1)),0),a=rc(i);i--;)a[r?i:++o]=t,t+=n;return a}function no(t,e){var n="";if(!t||e<1||e>Ft)return n;do{e%2&&(n+=t),(e=Uc(e/2))&&(t+=t)}while(e);return n}function ro(t,e){return Pf(Ki(t,e,Dl),t+"")}function oo(t){return In(tl(t))}function io(t,e){var n=tl(t);return Ji(n,rr(e,0,n.length))}function ao(t,e,n,r){if(!iu(t))return t;e=Eo(e,t);for(var o=-1,i=e.length,a=i-1,s=t;null!=s&&++oo?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=rc(o);++r>>1,a=t[i];null!==a&&!vu(a)&&(n?a<=e:a=it){var l=e?null:Sf(t);if(l)return K(l);a=!1,o=j,u=new bn}else u=e?[]:s;t:for(;++r=r?t:uo(t,e,n)}function Ao(t,e){if(e)return t.slice();var n=t.length,r=Ac?Ac(n):new t.constructor(n);return t.copy(r),r}function Oo(t){var e=new t.constructor(t.byteLength);return new Cc(e).set(new Cc(t)),e}function Mo(t,e){var n=e?Oo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function To(t,e,n){return m(e?n(V(t),ft):V(t),o,new t.constructor)}function Do(t){var e=new t.constructor(t.source,He.exec(t));return e.lastIndex=t.lastIndex,e}function Po(t,e,n){return m(e?n(K(t),ft):K(t),i,new t.constructor)}function Fo(t){return pf?uc(pf.call(t)):{}}function Ro(t,e){var n=e?Oo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Io(t,e){if(t!==e){var n=t!==ot,r=null===t,o=t===t,i=vu(t),a=e!==ot,s=null===e,u=e===e,l=vu(e);if(!s&&!l&&!i&&t>e||i&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!o)return 1;if(!r&&!i&&!l&&t=s)return u;return u*("desc"==n[r]?-1:1)}}return t.index-e.index}function No(t,e,n,r){for(var o=-1,i=t.length,a=n.length,s=-1,u=e.length,l=Wc(i-a,0),c=rc(u+l),f=!r;++s1?n[o-1]:ot,a=o>2?n[2]:ot;for(i=t.length>3&&"function"==typeof i?(o--,i):ot,a&&Ni(n[0],n[1],a)&&(i=o<3?ot:i,o=1),e=uc(e);++r-1?o[i?e[a]:a]:ot}}function Jo(t){return bi(function(e){var n=e.length,r=n,o=y.prototype.thru;for(t&&e.reverse();r--;){var i=e[r];if("function"!=typeof i)throw new fc(st);if(o&&!a&&"wrapper"==xi(i))var a=new y([],!0)}for(r=a?r:n;++r1&&b.reverse(),f&&us))return!1;var l=i.get(t);if(l&&i.get(e))return l==e;var c=-1,f=!0,d=n>?new bn:ot;for(i.set(t,e),i.set(e,t);++c1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Ne,"{\n/* [wrapped with "+e+"] */\n")}function Ii(t){return bd(t)||vd(t)||!!(Pc&&t&&t[Pc])}function ji(t,e){return!!(e=null==e?Ft:e)&&("number"==typeof t||Ke.test(t))&&t>-1&&t%1==0&&t0){if(++e>=Ot)return arguments[0]}else e=0;return t.apply(ot,arguments)}}function Ji(t,e){var n=-1,r=t.length,o=r-1;for(e=e===ot?r:e;++n=this.__values__.length;return{done:t,value:t?ot:this.__values__[this.__index__++]}}function rs(){return this}function os(t){for(var e,n=this;n instanceof r;){var o=ra(n);o.__index__=0,o.__values__=ot,e?i.__wrapped__=o:e=o;var i=o;n=n.__wrapped__}return i.__wrapped__=t,e}function is(){var t=this.__wrapped__;if(t instanceof O){var e=t;return this.__actions__.length&&(e=new O(this)),e=e.reverse(),e.__actions__.push({func:Ja,args:[Ma],thisArg:ot}),new y(e,this.__chain__)}return this.thru(Ma)}function as(){return _o(this.__wrapped__,this.__actions__)}function ss(t,e,n){var r=bd(t)?c:lr;return n&&Ni(t,e,n)&&(e=ot),r(t,ki(e,3))}function us(t,e){return(bd(t)?f:dr)(t,ki(e,3))}function ls(t,e){return pr(gs(t,e),1)}function cs(t,e){return pr(gs(t,e),Pt)}function fs(t,e,n){return n=n===ot?1:ku(n),pr(gs(t,e),n)}function ds(t,e){return(bd(t)?u:mf)(t,ki(e,3))}function ps(t,e){return(bd(t)?l:vf)(t,ki(e,3))}function hs(t,e,n,r){t=Ys(t)?t:tl(t),n=n&&!r?ku(n):0;var o=t.length;return n<0&&(n=Wc(o+n,0)),mu(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&k(t,e,n)>-1}function gs(t,e){return(bd(t)?h:Br)(t,ki(e,3))}function ms(t,e,n,r){return null==t?[]:(bd(e)||(e=null==e?[]:[e]),n=r?ot:n,bd(n)||(n=null==n?[]:[n]),Kr(t,e,n))}function vs(t,e,n){var r=bd(t)?m:M,o=arguments.length<3;return r(t,ki(e,4),n,o,mf)}function bs(t,e,n){var r=bd(t)?v:M,o=arguments.length<3;return r(t,ki(e,4),n,o,vf)}function ys(t,e){return(bd(t)?f:dr)(t,Fs(ki(e,3)))}function _s(t){return(bd(t)?In:oo)(t)}function xs(t,e,n){return e=(n?Ni(t,e,n):e===ot)?1:ku(e),(bd(t)?Nn:io)(t,e)}function ws(t){return(bd(t)?zn:so)(t)}function ks(t){if(null==t)return 0;if(Ys(t))return mu(t)?J(t):t.length;var e=Of(t);return e==Qt||e==ee?t.size:Lr(t).length}function Ss(t,e,n){var r=bd(t)?b:lo;return n&&Ni(t,e,n)&&(e=ot),r(t,ki(e,3))}function Es(t,e){if("function"!=typeof e)throw new fc(st);return t=ku(t),function(){if(--t<1)return e.apply(this,arguments)}}function Cs(t,e,n){return e=n?ot:e,e=t&&null==e?t.length:e,fi(t,kt,ot,ot,ot,ot,e)}function As(t,e){var n;if("function"!=typeof e)throw new fc(st);return t=ku(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=ot),n}}function Os(t,e,n){e=n?ot:e;var r=fi(t,yt,ot,ot,ot,ot,ot,e);return r.placeholder=Os.placeholder,r}function Ms(t,e,n){e=n?ot:e;var r=fi(t,_t,ot,ot,ot,ot,ot,e);return r.placeholder=Ms.placeholder,r}function Ts(t,e,n){function r(e){var n=d,r=p;return d=p=ot,b=e,g=t.apply(r,n)}function o(t){return b=t,m=Df(s,e),y?r(t):g}function i(t){var n=t-v,r=t-b,o=e-n;return _?Yc(o,h-r):o}function a(t){var n=t-v,r=t-b;return v===ot||n>=e||n<0||_&&r>=h}function s(){var t=ad();if(a(t))return u(t);m=Df(s,i(t))}function u(t){return m=ot,x&&d?r(t):(d=p=ot,g)}function l(){m!==ot&&kf(m),b=0,d=v=p=m=ot}function c(){return m===ot?g:u(ad())}function f(){var t=ad(),n=a(t);if(d=arguments,p=this,v=t,n){if(m===ot)return o(v);if(_)return m=Df(s,e),r(v)}return m===ot&&(m=Df(s,e)),g}var d,p,h,g,m,v,b=0,y=!1,_=!1,x=!0;if("function"!=typeof t)throw new fc(st);return e=Eu(e)||0,iu(n)&&(y=!!n.leading,_="maxWait"in n,h=_?Wc(Eu(n.maxWait)||0,e):h,x="trailing"in n?!!n.trailing:x),f.cancel=l,f.flush=c,f}function Ds(t){return fi(t,Et)}function Ps(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new fc(st);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ps.Cache||cn),n}function Fs(t){if("function"!=typeof t)throw new fc(st);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Rs(t){return As(2,t)}function Is(t,e){if("function"!=typeof t)throw new fc(st);return e=e===ot?e:ku(e),ro(t,e)}function js(t,e){if("function"!=typeof t)throw new fc(st);return e=null==e?0:Wc(ku(e),0),ro(function(n){var r=n[e],o=Co(n,0,e);return r&&g(o,r),a(t,this,o)})}function Ns(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new fc(st);return iu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ts(t,e,{leading:r,maxWait:e,trailing:o})}function zs(t){return Cs(t,1)}function Ls(t,e){return dd(So(e),t)}function Us(){if(!arguments.length)return[];var t=arguments[0];return bd(t)?t:[t]}function qs(t){return or(t,pt)}function Bs(t,e){return e="function"==typeof e?e:ot,or(t,pt,e)}function Hs(t){return or(t,ft|pt)}function Gs(t,e){return e="function"==typeof e?e:ot,or(t,ft|pt,e)}function Vs(t,e){return null==e||ar(t,e,qu(e))}function Ws(t,e){return t===e||t!==t&&e!==e}function Ys(t){return null!=t&&ou(t.length)&&!nu(t)}function Ks(t){return au(t)&&Ys(t)}function Qs(t){return!0===t||!1===t||au(t)&&yr(t)==Ht}function Xs(t){return au(t)&&1===t.nodeType&&!hu(t)}function $s(t){if(null==t)return!0;if(Ys(t)&&(bd(t)||"string"==typeof t||"function"==typeof t.splice||_d(t)||Ed(t)||vd(t)))return!t.length;var e=Of(t);if(e==Qt||e==ee)return!t.size;if(Bi(t))return!Lr(t).length;for(var n in t)if(vc.call(t,n))return!1;return!0}function Zs(t,e){return Tr(t,e)}function Js(t,e,n){n="function"==typeof n?n:ot;var r=n?n(t,e):ot;return r===ot?Tr(t,e,ot,n):!!r}function tu(t){if(!au(t))return!1;var e=yr(t);return e==Wt||e==Vt||"string"==typeof t.message&&"string"==typeof t.name&&!hu(t)}function eu(t){return"number"==typeof t&&Hc(t)}function nu(t){if(!iu(t))return!1;var e=yr(t);return e==Yt||e==Kt||e==Bt||e==Jt}function ru(t){return"number"==typeof t&&t==ku(t)}function ou(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Ft}function iu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function au(t){return null!=t&&"object"==typeof t}function su(t,e){return t===e||Fr(t,e,Ei(e))}function uu(t,e,n){return n="function"==typeof n?n:ot,Fr(t,e,Ei(e),n)}function lu(t){return pu(t)&&t!=+t}function cu(t){if(Mf(t))throw new ic(at);return Rr(t)}function fu(t){return null===t}function du(t){return null==t}function pu(t){return"number"==typeof t||au(t)&&yr(t)==Xt}function hu(t){if(!au(t)||yr(t)!=Zt)return!1;var e=Oc(t);if(null===e)return!0;var n=vc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&mc.call(n)==xc}function gu(t){return ru(t)&&t>=-Ft&&t<=Ft}function mu(t){return"string"==typeof t||!bd(t)&&au(t)&&yr(t)==ne}function vu(t){return"symbol"==typeof t||au(t)&&yr(t)==re}function bu(t){return t===ot}function yu(t){return au(t)&&Of(t)==ie}function _u(t){return au(t)&&yr(t)==ae}function xu(t){if(!t)return[];if(Ys(t))return mu(t)?tt(t):Lo(t);if(Fc&&t[Fc])return G(t[Fc]());var e=Of(t);return(e==Qt?V:e==ee?K:tl)(t)}function wu(t){if(!t)return 0===t?t:0;if((t=Eu(t))===Pt||t===-Pt){return(t<0?-1:1)*Rt}return t===t?t:0}function ku(t){var e=wu(t),n=e%1;return e===e?n?e-n:e:0}function Su(t){return t?rr(ku(t),0,jt):0}function Eu(t){if("number"==typeof t)return t;if(vu(t))return It;if(iu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=iu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Re,"");var n=Ve.test(t);return n||Ye.test(t)?Tn(t.slice(2),n?2:8):Ge.test(t)?It:+t}function Cu(t){return Uo(t,Bu(t))}function Au(t){return t?rr(ku(t),-Ft,Ft):0===t?t:0}function Ou(t){return null==t?"":go(t)}function Mu(t,e){var n=gf(t);return null==e?n:Jn(n,e)}function Tu(t,e){return x(t,ki(e,3),hr)}function Du(t,e){return x(t,ki(e,3),gr)}function Pu(t,e){return null==t?t:bf(t,ki(e,3),Bu)}function Fu(t,e){return null==t?t:yf(t,ki(e,3),Bu)}function Ru(t,e){return t&&hr(t,ki(e,3))}function Iu(t,e){return t&&gr(t,ki(e,3))}function ju(t){return null==t?[]:mr(t,qu(t))}function Nu(t){return null==t?[]:mr(t,Bu(t))}function zu(t,e,n){var r=null==t?ot:vr(t,e);return r===ot?n:r}function Lu(t,e){return null!=t&&Ti(t,e,xr)}function Uu(t,e){return null!=t&&Ti(t,e,wr)}function qu(t){return Ys(t)?Rn(t):Lr(t)}function Bu(t){return Ys(t)?Rn(t,!0):Ur(t)}function Hu(t,e){var n={};return e=ki(e,3),hr(t,function(t,r,o){er(n,e(t,r,o),t)}),n}function Gu(t,e){var n={};return e=ki(e,3),hr(t,function(t,r,o){er(n,r,e(t,r,o))}),n}function Vu(t,e){return Wu(t,Fs(ki(e)))}function Wu(t,e){if(null==t)return{};var n=h(_i(t),function(t){return[t]});return e=ki(e),Xr(t,n,function(t,n){return e(t,n[0])})}function Yu(t,e,n){e=Eo(e,t);var r=-1,o=e.length;for(o||(o=1,t=ot);++re){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Xc();return Yc(t+o*(e-t+Mn("1e-"+((o+"").length-1))),e)}return to(t,e)}function il(t){return $d(Ou(t).toLowerCase())}function al(t){return(t=Ou(t))&&t.replace(Qe,Wn).replace(mn,"")}function sl(t,e,n){t=Ou(t),e=go(e);var r=t.length;n=n===ot?r:rr(ku(n),0,r);var o=n;return(n-=e.length)>=0&&t.slice(n,o)==e}function ul(t){return t=Ou(t),t&&Se.test(t)?t.replace(we,Yn):t}function ll(t){return t=Ou(t),t&&Fe.test(t)?t.replace(Pe,"\\$&"):t}function cl(t,e,n){t=Ou(t),e=ku(e);var r=e?J(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return oi(Uc(o),n)+t+oi(Lc(o),n)}function fl(t,e,n){t=Ou(t),e=ku(e);var r=e?J(t):0;return e&&r>>0)?(t=Ou(t),t&&("string"==typeof e||null!=e&&!kd(e))&&!(e=go(e))&&B(t)?Co(tt(t),0,n):t.split(e,n)):[]}function vl(t,e,n){return t=Ou(t),n=null==n?0:rr(ku(n),0,t.length),e=go(e),t.slice(n,n+e.length)==e}function bl(t,e,r){var o=n.templateSettings;r&&Ni(t,e,r)&&(e=ot),t=Ou(t),e=Td({},e,o,di);var i,a,s=Td({},e.imports,o.imports,di),u=qu(s),l=I(s,u),c=0,f=e.interpolate||Xe,d="__p += '",p=lc((e.escape||Xe).source+"|"+f.source+"|"+(f===Ae?Be:Xe).source+"|"+(e.evaluate||Xe).source+"|$","g"),h="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++wn+"]")+"\n";t.replace(p,function(e,n,r,o,s,u){return r||(r=o),d+=t.slice(c,u).replace($e,U),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+e.length,e}),d+="';\n";var g=e.variable;g||(d="with (obj) {\n"+d+"\n}\n"),d=(a?d.replace(be,""):d).replace(ye,"$1").replace(_e,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Zd(function(){return ac(u,h+"return "+d).apply(ot,l)});if(m.source=d,tu(m))throw m;return m}function yl(t){return Ou(t).toLowerCase()}function _l(t){return Ou(t).toUpperCase()}function xl(t,e,n){if((t=Ou(t))&&(n||e===ot))return t.replace(Re,"");if(!t||!(e=go(e)))return t;var r=tt(t),o=tt(e);return Co(r,N(r,o),z(r,o)+1).join("")}function wl(t,e,n){if((t=Ou(t))&&(n||e===ot))return t.replace(je,"");if(!t||!(e=go(e)))return t;var r=tt(t);return Co(r,0,z(r,tt(e))+1).join("")}function kl(t,e,n){if((t=Ou(t))&&(n||e===ot))return t.replace(Ie,"");if(!t||!(e=go(e)))return t;var r=tt(t);return Co(r,N(r,tt(e))).join("")}function Sl(t,e){var n=Ct,r=At;if(iu(e)){var o="separator"in e?e.separator:o;n="length"in e?ku(e.length):n,r="omission"in e?go(e.omission):r}t=Ou(t);var i=t.length;if(B(t)){var a=tt(t);i=a.length}if(n>=i)return t;var s=n-J(r);if(s<1)return r;var u=a?Co(a,0,s).join(""):t.slice(0,s);if(o===ot)return u+r;if(a&&(s+=u.length-s),kd(o)){if(t.slice(s).search(o)){var l,c=u;for(o.global||(o=lc(o.source,Ou(He.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var f=l.index;u=u.slice(0,f===ot?s:f)}}else if(t.indexOf(go(o),s)!=s){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+r}function El(t){return t=Ou(t),t&&ke.test(t)?t.replace(xe,Kn):t}function Cl(t,e,n){return t=Ou(t),e=n?ot:e,e===ot?H(t)?rt(t):_(t):t.match(e)||[]}function Al(t){var e=null==t?0:t.length,n=ki();return t=e?h(t,function(t){if("function"!=typeof t[1])throw new fc(st);return[n(t[0]),t[1]]}):[],ro(function(n){for(var r=-1;++rFt)return[];var n=jt,r=Yc(t,jt);e=ki(e),t-=jt;for(var o=P(r,e);++n1?t[e-1]:ot;return n="function"==typeof n?(t.pop(),n):ot,Ka(t,n)}),$f=bi(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return nr(e,t)};return!(e>1||this.__actions__.length)&&r instanceof O&&ji(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Ja,args:[o],thisArg:ot}),new y(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(ot),t})):this.thru(o)}),Zf=Ho(function(t,e,n){vc.call(t,n)?++t[n]:er(t,n,1)}),Jf=Zo(da),td=Zo(pa),ed=Ho(function(t,e,n){vc.call(t,n)?t[n].push(e):er(t,n,[e])}),nd=ro(function(t,e,n){var r=-1,o="function"==typeof e,i=Ys(t)?rc(t.length):[];return mf(t,function(t){i[++r]=o?a(e,t,n):Cr(t,e,n)}),i}),rd=Ho(function(t,e,n){er(t,n,e)}),od=Ho(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),id=ro(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Ni(t,e[0],e[1])?e=[]:n>2&&Ni(e[0],e[1],e[2])&&(e=[e[0]]),Kr(t,pr(e,1),[])}),ad=Nc||function(){return Fn.Date.now()},sd=ro(function(t,e,n){var r=mt;if(n.length){var o=Y(n,wi(sd));r|=xt}return fi(t,r,e,n,o)}),ud=ro(function(t,e,n){var r=mt|vt;if(n.length){var o=Y(n,wi(ud));r|=xt}return fi(e,r,t,n,o)}),ld=ro(function(t,e){return sr(t,1,e)}),cd=ro(function(t,e,n){return sr(t,Eu(e)||0,n)});Ps.Cache=cn;var fd=wf(function(t,e){e=1==e.length&&bd(e[0])?h(e[0],R(ki())):h(pr(e,1),R(ki()));var n=e.length;return ro(function(r){for(var o=-1,i=Yc(r.length,n);++o=e}),vd=Ar(function(){return arguments}())?Ar:function(t){return au(t)&&vc.call(t,"callee")&&!Tc.call(t,"callee")},bd=rc.isArray,yd=Ln?R(Ln):Or,_d=Bc||Bl,xd=Un?R(Un):Mr,wd=qn?R(qn):Pr,kd=Bn?R(Bn):Ir,Sd=Hn?R(Hn):jr,Ed=Gn?R(Gn):Nr,Cd=si(qr),Ad=si(function(t,e){return t<=e}),Od=Go(function(t,e){if(Bi(e)||Ys(e))return void Uo(e,qu(e),t);for(var n in e)vc.call(e,n)&&Xn(t,n,e[n])}),Md=Go(function(t,e){Uo(e,Bu(e),t)}),Td=Go(function(t,e,n,r){Uo(e,Bu(e),t,r)}),Dd=Go(function(t,e,n,r){Uo(e,qu(e),t,r)}),Pd=bi(nr),Fd=ro(function(t){return t.push(ot,di),a(Td,ot,t)}),Rd=ro(function(t){return t.push(ot,pi),a(Ld,ot,t)}),Id=ei(function(t,e,n){t[e]=n},Ml(Dl)),jd=ei(function(t,e,n){vc.call(t,e)?t[e].push(n):t[e]=[n]},ki),Nd=ro(Cr),zd=Go(function(t,e,n){Vr(t,e,n)}),Ld=Go(function(t,e,n,r){Vr(t,e,n,r)}),Ud=bi(function(t,e){var n={};if(null==t)return n;var r=!1;e=h(e,function(e){return e=Eo(e,t),r||(r=e.length>1),e}),Uo(t,_i(t),n),r&&(n=or(n,ft|dt|pt,hi));for(var o=e.length;o--;)vo(n,e[o]);return n}),qd=bi(function(t,e){return null==t?{}:Qr(t,e)}),Bd=ci(qu),Hd=ci(Bu),Gd=Qo(function(t,e,n){return e=e.toLowerCase(),t+(n?il(e):e)}),Vd=Qo(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Wd=Qo(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Yd=Ko("toLowerCase"),Kd=Qo(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Qd=Qo(function(t,e,n){return t+(n?" ":"")+$d(e)}),Xd=Qo(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),$d=Ko("toUpperCase"),Zd=ro(function(t,e){try{return a(t,ot,e)}catch(t){return tu(t)?t:new ic(t)}}),Jd=bi(function(t,e){return u(e,function(e){e=ta(e),er(t,e,sd(t[e],t))}),t}),tp=Jo(),ep=Jo(!0),np=ro(function(t,e){return function(n){return Cr(n,t,e)}}),rp=ro(function(t,e){return function(n){return Cr(t,n,e)}}),op=ri(h),ip=ri(c),ap=ri(b),sp=ai(),up=ai(!0),lp=ni(function(t,e){return t+e},0),cp=li("ceil"),fp=ni(function(t,e){return t/e},1),dp=li("floor"),pp=ni(function(t,e){return t*e},1),hp=li("round"),gp=ni(function(t,e){return t-e},0);return n.after=Es,n.ary=Cs,n.assign=Od,n.assignIn=Md,n.assignInWith=Td,n.assignWith=Dd,n.at=Pd,n.before=As,n.bind=sd,n.bindAll=Jd,n.bindKey=ud,n.castArray=Us,n.chain=$a,n.chunk=oa,n.compact=ia,n.concat=aa,n.cond=Al,n.conforms=Ol,n.constant=Ml,n.countBy=Zf,n.create=Mu,n.curry=Os,n.curryRight=Ms,n.debounce=Ts,n.defaults=Fd,n.defaultsDeep=Rd,n.defer=ld,n.delay=cd,n.difference=Rf,n.differenceBy=If,n.differenceWith=jf,n.drop=sa,n.dropRight=ua,n.dropRightWhile=la,n.dropWhile=ca,n.fill=fa,n.filter=us,n.flatMap=ls,n.flatMapDeep=cs,n.flatMapDepth=fs,n.flatten=ha,n.flattenDeep=ga,n.flattenDepth=ma,n.flip=Ds,n.flow=tp,n.flowRight=ep,n.fromPairs=va,n.functions=ju,n.functionsIn=Nu,n.groupBy=ed,n.initial=_a,n.intersection=Nf,n.intersectionBy=zf,n.intersectionWith=Lf,n.invert=Id,n.invertBy=jd,n.invokeMap=nd,n.iteratee=Pl,n.keyBy=rd,n.keys=qu,n.keysIn=Bu,n.map=gs,n.mapKeys=Hu,n.mapValues=Gu,n.matches=Fl,n.matchesProperty=Rl,n.memoize=Ps,n.merge=zd,n.mergeWith=Ld,n.method=np,n.methodOf=rp,n.mixin=Il,n.negate=Fs,n.nthArg=zl,n.omit=Ud,n.omitBy=Vu,n.once=Rs,n.orderBy=ms,n.over=op,n.overArgs=fd,n.overEvery=ip,n.overSome=ap,n.partial=dd,n.partialRight=pd,n.partition=od,n.pick=qd,n.pickBy=Wu,n.property=Ll,n.propertyOf=Ul,n.pull=Uf,n.pullAll=Ea,n.pullAllBy=Ca,n.pullAllWith=Aa,n.pullAt=qf,n.range=sp,n.rangeRight=up,n.rearg=hd,n.reject=ys,n.remove=Oa,n.rest=Is,n.reverse=Ma,n.sampleSize=xs,n.set=Ku,n.setWith=Qu,n.shuffle=ws,n.slice=Ta,n.sortBy=id,n.sortedUniq=Na,n.sortedUniqBy=za,n.split=ml,n.spread=js,n.tail=La,n.take=Ua,n.takeRight=qa,n.takeRightWhile=Ba,n.takeWhile=Ha,n.tap=Za,n.throttle=Ns,n.thru=Ja,n.toArray=xu,n.toPairs=Bd,n.toPairsIn=Hd,n.toPath=Yl,n.toPlainObject=Cu,n.transform=Xu,n.unary=zs,n.union=Bf,n.unionBy=Hf,n.unionWith=Gf,n.uniq=Ga,n.uniqBy=Va,n.uniqWith=Wa,n.unset=$u,n.unzip=Ya,n.unzipWith=Ka,n.update=Zu,n.updateWith=Ju,n.values=tl,n.valuesIn=el,n.without=Vf,n.words=Cl,n.wrap=Ls,n.xor=Wf,n.xorBy=Yf,n.xorWith=Kf,n.zip=Qf,n.zipObject=Qa,n.zipObjectDeep=Xa,n.zipWith=Xf,n.entries=Bd,n.entriesIn=Hd,n.extend=Md,n.extendWith=Td,Il(n,n),n.add=lp,n.attempt=Zd,n.camelCase=Gd,n.capitalize=il,n.ceil=cp,n.clamp=nl,n.clone=qs,n.cloneDeep=Hs,n.cloneDeepWith=Gs,n.cloneWith=Bs,n.conformsTo=Vs,n.deburr=al,n.defaultTo=Tl,n.divide=fp,n.endsWith=sl,n.eq=Ws,n.escape=ul,n.escapeRegExp=ll,n.every=ss,n.find=Jf,n.findIndex=da,n.findKey=Tu,n.findLast=td,n.findLastIndex=pa,n.findLastKey=Du,n.floor=dp,n.forEach=ds,n.forEachRight=ps,n.forIn=Pu,n.forInRight=Fu,n.forOwn=Ru,n.forOwnRight=Iu,n.get=zu,n.gt=gd,n.gte=md,n.has=Lu,n.hasIn=Uu,n.head=ba,n.identity=Dl,n.includes=hs,n.indexOf=ya,n.inRange=rl,n.invoke=Nd,n.isArguments=vd,n.isArray=bd,n.isArrayBuffer=yd,n.isArrayLike=Ys,n.isArrayLikeObject=Ks,n.isBoolean=Qs,n.isBuffer=_d,n.isDate=xd,n.isElement=Xs,n.isEmpty=$s,n.isEqual=Zs,n.isEqualWith=Js,n.isError=tu,n.isFinite=eu,n.isFunction=nu,n.isInteger=ru,n.isLength=ou,n.isMap=wd,n.isMatch=su,n.isMatchWith=uu,n.isNaN=lu,n.isNative=cu,n.isNil=du,n.isNull=fu,n.isNumber=pu,n.isObject=iu,n.isObjectLike=au,n.isPlainObject=hu,n.isRegExp=kd,n.isSafeInteger=gu,n.isSet=Sd,n.isString=mu,n.isSymbol=vu,n.isTypedArray=Ed,n.isUndefined=bu,n.isWeakMap=yu,n.isWeakSet=_u,n.join=xa,n.kebabCase=Vd,n.last=wa,n.lastIndexOf=ka,n.lowerCase=Wd,n.lowerFirst=Yd,n.lt=Cd,n.lte=Ad,n.max=Ql,n.maxBy=Xl,n.mean=$l,n.meanBy=Zl,n.min=Jl,n.minBy=tc,n.stubArray=ql,n.stubFalse=Bl,n.stubObject=Hl,n.stubString=Gl,n.stubTrue=Vl,n.multiply=pp,n.nth=Sa,n.noConflict=jl,n.noop=Nl,n.now=ad,n.pad=cl,n.padEnd=fl,n.padStart=dl,n.parseInt=pl,n.random=ol,n.reduce=vs,n.reduceRight=bs,n.repeat=hl,n.replace=gl,n.result=Yu,n.round=hp,n.runInContext=t,n.sample=_s,n.size=ks,n.snakeCase=Kd,n.some=Ss,n.sortedIndex=Da,n.sortedIndexBy=Pa,n.sortedIndexOf=Fa,n.sortedLastIndex=Ra,n.sortedLastIndexBy=Ia,n.sortedLastIndexOf=ja,n.startCase=Qd,n.startsWith=vl,n.subtract=gp,n.sum=ec,n.sumBy=nc,n.template=bl,n.times=Wl,n.toFinite=wu,n.toInteger=ku,n.toLength=Su,n.toLower=yl,n.toNumber=Eu,n.toSafeInteger=Au,n.toString=Ou,n.toUpper=_l,n.trim=xl,n.trimEnd=wl,n.trimStart=kl,n.truncate=Sl,n.unescape=El,n.uniqueId=Kl,n.upperCase=Xd,n.upperFirst=$d,n.each=ds,n.eachRight=ps,n.first=ba,Il(n,function(){var t={};return hr(n,function(e,r){vc.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION="4.17.4",u(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),u(["drop","take"],function(t,e){O.prototype[t]=function(n){n=n===ot?1:Wc(ku(n),0);var r=this.__filtered__&&!e?new O(this):this.clone();return r.__filtered__?r.__takeCount__=Yc(n,r.__takeCount__):r.__views__.push({size:Yc(n,jt),type:t+(r.__dir__<0?"Right":"")}),r},O.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),u(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==Tt||3==n;O.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ki(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),u(["head","last"],function(t,e){var n="take"+(e?"Right":"");O.prototype[t]=function(){return this[n](1).value()[0]}}),u(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");O.prototype[t]=function(){return this.__filtered__?new O(this):this[n](1)}}),O.prototype.compact=function(){return this.filter(Dl)},O.prototype.find=function(t){return this.filter(t).head()},O.prototype.findLast=function(t){return this.reverse().find(t)},O.prototype.invokeMap=ro(function(t,e){return"function"==typeof t?new O(this):this.map(function(n){return Cr(n,t,e)})}),O.prototype.reject=function(t){return this.filter(Fs(ki(t)))},O.prototype.slice=function(t,e){t=ku(t);var n=this;return n.__filtered__&&(t>0||e<0)?new O(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==ot&&(e=ku(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},O.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},O.prototype.toArray=function(){return this.take(jt)},hr(O.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),o=/^(?:head|last)$/.test(e),i=n[o?"take"+("last"==e?"Right":""):e],a=o||/^find/.test(e);i&&(n.prototype[e]=function(){var e=this.__wrapped__,s=o?[1]:arguments,u=e instanceof O,l=s[0],c=u||bd(e),f=function(t){var e=i.apply(n,g([t],s));return o&&d?e[0]:e};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,m=u&&!p;if(!a&&c){e=m?e:new O(this);var v=t.apply(e,s);return v.__actions__.push({func:Ja,args:[f],thisArg:ot}),new y(v,d)}return h&&m?t.apply(this,s):(v=this.thru(f),h?o?v.value()[0]:v.value():v)})}),u(["pop","push","shift","sort","splice","unshift"],function(t){var e=dc[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",o=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(o&&!this.__chain__){var n=this.value();return e.apply(bd(n)?n:[],t)}return this[r](function(n){return e.apply(bd(n)?n:[],t)})}}),hr(O.prototype,function(t,e){var r=n[e];if(r){var o=r.name+"";(af[o]||(af[o]=[])).push({name:e,func:r})}}),af[ti(ot,vt).name]=[{name:"wrapper",func:ot}],O.prototype.clone=X,O.prototype.reverse=et,O.prototype.value=nt,n.prototype.at=$f,n.prototype.chain=ts,n.prototype.commit=es,n.prototype.next=ns,n.prototype.plant=os,n.prototype.reverse=is,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=as,n.prototype.first=n.prototype.head,Fc&&(n.prototype[Fc]=rs),n}();Fn._=Qn,(r=function(){return Qn}.call(exports,e,exports,n))!==ot&&(n.exports=r)}).call(this)}).call(exports,e(30),e(70)(t))},function(t,exports,e){(function(e,n,r){/* @preserve
* The MIT License (MIT)
*
* Copyright (c) 2013-2017 Petka Antonov
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
*/
!function(e){t.exports=e()}(function(){var t,o,exports;return function t(e,n,r){function o(a,s){if(!n[a]){if(!e[a]){var u="function"==typeof _dereq_&&_dereq_;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return o(n||t)},c,c.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof _dereq_&&_dereq_,a=0;a0;){var e=t.shift();if("function"==typeof e){var n=t.shift(),r=t.shift();e.call(n,r)}else e._settlePromises()}},r.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},r.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},r.prototype._reset=function(){this._isTickUsed=!1},n.exports=r,n.exports.firstLineError=s},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,e,exports){"use strict";e.exports=function(t,e,n,r){var o=!1,i=function(t,e){this._reject(e)},a=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(i,i,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(i){o||(o=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var l=n(i),c=new t(e);c._propagateFrom(this,1);var f=this._target();if(c._setBoundTo(l),l instanceof t){var d={promiseRejectionQueued:!1,promise:c,target:f,bindingPromise:l};f._then(e,a,void 0,c,d),l._then(s,u,void 0,c,d),c._setOnCancel(l)}else c._resolveCallback(f);return c},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";function n(){try{Promise===o&&(Promise=r)}catch(t){}return o}var r;"undefined"!=typeof Promise&&(r=Promise);var o=t("./promise")();o.noConflict=n,e.exports=o},{"./promise":22}],5:[function(t,e,exports){"use strict";var n=Object.create;if(n){var r=n(null),o=n(null);r[" size"]=o[" size"]=0}e.exports=function(e){function n(t,n){var r;if(null!=t&&(r=t[n]),"function"!=typeof r){var o="Object "+s.classString(t)+" has no method '"+s.toString(n)+"'";throw new e.TypeError(o)}return r}function r(t){return n(t,this.pop()).apply(t,this)}function o(t){return t[this]}function i(t){var e=+this;return e<0&&(e=Math.max(0,e+t.length)),t[e]}var a,s=t("./util"),u=s.canEvaluate;s.isIdentifier;e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(r,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e,n="number"==typeof t;if(n)e=i;else if(u){var r=a(t);e=null!==r?r: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,o){var i=t("./util"),a=i.tryCatch,s=i.errorObj,u=e._async;e.prototype.break=e.prototype.cancel=function(){if(!o.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(i.isArray(t))for(var n=0;n=0)return i[t]}var o=!1,i=[];return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){},e.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,i.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=i.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=n,e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var n=t.prototype._pushContext,i=t.prototype._popContext,a=t._peekContext,s=t.prototype._peekContext,u=t.prototype._promiseCreated;e.deactivateLongStackTraces=function(){t.prototype._pushContext=n,t.prototype._popContext=i,t._peekContext=a,t.prototype._peekContext=s,t.prototype._promiseCreated=u,o=!1},o=!0,t.prototype._pushContext=e.prototype._pushContext,t.prototype._popContext=e.prototype._popContext,t._peekContext=t.prototype._peekContext=r,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},e}},{}],9:[function(t,n,exports){"use strict";n.exports=function(n,r){function o(t,e){return{promise:e}}function i(){return!1}function a(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: "+L.toString(t));r._attachCancellationCallback(t)})}catch(t){return t}}function s(t){if(!this._isCancellable())return this;var e=this._onCancel();void 0!==e?L.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function u(){return this._onCancelField}function l(t){this._onCancelField=t}function c(){this._cancellationParent=void 0,this._onCancelField=void 0}function f(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)}function d(t,e){0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function p(){var t=this._boundTo;return void 0!==t&&t instanceof n?t.isFulfilled()?t.value():void 0:t}function h(){this._trace=new P(this._peekContext())}function g(t,e){if(U(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=S(t);L.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),L.notEnumerableProp(t,"__stackCleaned__",!0)}}}function m(t,e,n,r,o){if(void 0===t&&null!==e&&X){if(void 0!==o&&o._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var i="",a="";if(e._trace){for(var s=e._trace.stack.split("\n"),u=w(s),l=u.length-1;l>=0;--l){var c=u[l];if(!B.test(c)){var f=c.match(H);f&&(i="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(u.length>0)for(var d=u[0],l=0;l0&&(a="\n"+s[l-1]);break}}var p="a promise was created in a "+n+"handler "+i+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(p,!0,e)}}function v(t,e){var n=t+" is deprecated and will be removed in a future version.";return e&&(n+=" Use "+e+" instead."),b(n)}function b(t,e,r){if(st.warnings){var o,i=new z(t);if(e)r._attachExtraTrace(i);else if(st.longStackTraces&&(o=n._peekContext()))o.attachExtraTrace(i);else{var a=S(i);i.stack=a.message+"\n"+a.stack.join("\n")}nt("warning",i)||E(i,"",!0)}}function y(t,e){for(var n=0;n=0;--s)if(r[s]===i){a=s;break}for(var s=a;s>=0;--s){var u=r[s];if(e[o]!==u)break;e.pop(),o--}e=r}}function w(t){for(var e=[],n=0;n0&&"SyntaxError"!=t.name&&(e=e.slice(n)),e}function S(t){var e=t.stack,n=t.toString();return e="string"==typeof e&&e.length>0?k(t):[" (No stack trace)"],{message:n,stack:"SyntaxError"==t.name?e:w(e)}}function E(t,e,n){if("undefined"!=typeof console){var r;if(L.isObject(t)){var o=t.stack;r=e+V(o,t)}else r=e+String(t);"function"==typeof I?I(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function C(t,e,n,r){var o=!1;try{"function"==typeof e&&(o=!0,"rejectionHandled"===t?e(r):e(n,r))}catch(t){N.throwLater(t)}"unhandledRejection"===t?nt(t,n,r)||o||E(n,"Unhandled rejection "):nt(t,r)}function A(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{e=t&&"function"==typeof t.toString?t.toString():L.toString(t);if(/\[object [a-zA-Z0-9$_]+\]/.test(e))try{e=JSON.stringify(t)}catch(t){}0===e.length&&(e="(empty array)")}return"(<"+O(e)+">, no stack trace)"}function O(t){return t.length<41?t:t.substr(0,38)+"..."}function M(){return"function"==typeof at}function T(t){var e=t.match(it);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function D(t,e){if(M()){for(var n,r,o=t.stack.split("\n"),i=e.stack.split("\n"),a=-1,s=-1,u=0;u=s||(ot=function(t){if(q.test(t))return!0;var e=T(t);return!!(e&&e.fileName===n&&a<=e.line&&e.line<=s)})}}function P(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);at(this,P),e>32&&this.uncycle()}var F,R,I,j=n._getDomain,N=n._async,z=t("./errors").Warning,L=t("./util"),U=L.canAttachTrace,q=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,B=/\((?:timers\.js):\d+:\d+\)/,H=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,G=null,V=null,W=!1,Y=!(0==L.env("BLUEBIRD_DEBUG")),K=!(0==L.env("BLUEBIRD_WARNINGS")||!Y&&!L.env("BLUEBIRD_WARNINGS")),Q=!(0==L.env("BLUEBIRD_LONG_STACK_TRACES")||!Y&&!L.env("BLUEBIRD_LONG_STACK_TRACES")),X=0!=L.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(K||!!L.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=-1048577&t._bitField|524288},n.prototype._ensurePossibleRejectionHandled=function(){if(0==(524288&this._bitField)){this._setRejectionIsUnhandled();var t=this;setTimeout(function(){t._notifyUnhandledRejection()},1)}},n.prototype._notifyUnhandledRejectionIsHandled=function(){C("rejectionHandled",F,void 0,this)},n.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},n.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},n.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),C("unhandledRejection",R,t,this)}},n.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},n.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},n.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},n.prototype._warn=function(t,e,n){return b(t,e,n||this)},n.onPossiblyUnhandledRejection=function(t){var e=j();R="function"==typeof t?null===e?t:L.domainBind(e,t):void 0},n.onUnhandledRejectionHandled=function(t){var e=j();F="function"==typeof t?null===e?t:L.domainBind(e,t):void 0};var Z=function(){};n.longStackTraces=function(){if(N.haveItemsQueued()&&!st.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!st.longStackTraces&&M()){var t=n.prototype._captureStackTrace,e=n.prototype._attachExtraTrace;st.longStackTraces=!0,Z=function(){if(N.haveItemsQueued()&&!st.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,r.deactivateLongStackTraces(),N.enableTrampoline(),st.longStackTraces=!1},n.prototype._captureStackTrace=h,n.prototype._attachExtraTrace=g,r.activateLongStackTraces(),N.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return st.longStackTraces&&M()};var J=function(){try{if("function"==typeof CustomEvent){var t=new CustomEvent("CustomEvent");return L.global.dispatchEvent(t),function(t,e){var n=new CustomEvent(t.toLowerCase(),{detail:e,cancelable:!0});return!L.global.dispatchEvent(n)}}if("function"==typeof Event){var t=new Event("CustomEvent");return L.global.dispatchEvent(t),function(t,e){var n=new Event(t.toLowerCase(),{cancelable:!0});return n.detail=e,!L.global.dispatchEvent(n)}}var t=document.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),L.global.dispatchEvent(t),function(t,e){var n=document.createEvent("CustomEvent");return n.initCustomEvent(t.toLowerCase(),!1,!0,e),!L.global.dispatchEvent(n)}}catch(t){}return function(){return!1}}(),tt=function(){return L.isNode?function(){return e.emit.apply(e,arguments)}:L.global?function(t){var e="on"+t.toLowerCase(),n=L.global[e];return!!n&&(n.apply(L.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}(),et={promiseCreated:o,promiseFulfilled:o,promiseRejected:o,promiseResolved:o,promiseCancelled:o,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:o},nt=function(t){var e=!1;try{e=tt.apply(null,arguments)}catch(t){N.throwLater(t),e=!0}var n=!1;try{n=J(t,et[t].apply(null,arguments))}catch(t){N.throwLater(t),n=!0}return n||e};n.config=function(t){if(t=Object(t),"longStackTraces"in t&&(t.longStackTraces?n.longStackTraces():!t.longStackTraces&&n.hasLongStackTraces()&&Z()),"warnings"in t){var e=t.warnings;st.warnings=!!e,X=st.warnings,L.isObject(e)&&"wForgottenReturn"in e&&(X=!!e.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!st.cancellation){if(N.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=c,n.prototype._propagateFrom=f,n.prototype._onCancel=u,n.prototype._setOnCancel=l,n.prototype._attachCancellationCallback=s,n.prototype._execute=a,rt=f,st.cancellation=!0}return"monitoring"in t&&(t.monitoring&&!st.monitoring?(st.monitoring=!0,n.prototype._fireEvent=nt):!t.monitoring&&st.monitoring&&(st.monitoring=!1,n.prototype._fireEvent=i)),n},n.prototype._fireEvent=i,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._clearCancellationData=function(){},n.prototype._propagateFrom=function(t,e){};var rt=d,ot=function(){return!1},it=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;L.inherits(P,Error),r.CapturedTrace=P,P.prototype.uncycle=function(){var t=this._length;if(!(t<2)){for(var e=[],n={},r=0,o=this;void 0!==o;++r)e.push(o),o=o._parent;t=this._length=r;for(var r=t-1;r>=0;--r){var i=e[r].stack;void 0===n[i]&&(n[i]=r)}for(var r=0;r0&&(e[s-1]._parent=void 0,e[s-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var u=r>0?e[r-1]:this;s=0;--c)e[c]._length=l,l++;return}}}},P.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=S(t),n=e.message,r=[e.stack],o=this;void 0!==o;)r.push(w(o.stack.split("\n"))),o=o._parent;x(r),_(r),L.notEnumerableProp(t,"stack",y(n,r)),L.notEnumerableProp(t,"__stackCleaned__",!0)}};var at=function(){var t=/^\s*at\s*/,e=function(t,e){return"string"==typeof t?t:void 0!==e.name&&void 0!==e.message?e.toString():A(e)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,G=t,V=e;var n=Error.captureStackTrace;return ot=function(t){return q.test(t)},function(t,e){Error.stackTraceLimit+=6,n(t,e),Error.stackTraceLimit-=6}}var r=new Error;if("string"==typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return G=/@/,V=e,W=!0,function(t){t.stack=(new Error).stack};var o;try{throw new Error}catch(t){o="stack"in t}return"stack"in r||!o||"number"!=typeof Error.stackTraceLimit?(V=function(t,e){return"string"==typeof t?t:"object"!=typeof e&&"function"!=typeof e||void 0===e.name||void 0===e.message?A(e):e.toString()},null):(G=t,V=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(I=function(t){console.warn(t)},L.isNode&&e.stderr.isTTY?I=function(t,e){var n=e?"[33m":"[31m";console.warn(n+t+"[0m\n")}:L.isNode||"string"!=typeof(new Error).stack||(I=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var st={warnings:K,longStackTraces:!1,cancellation:!1,monitoring:!1};return Q&&n.longStackTraces(),{longStackTraces:function(){return st.longStackTraces},warnings:function(){return st.warnings},cancellation:function(){return st.cancellation},monitoring:function(){return st.monitoring},propagateFromFunction:function(){return rt},boundValueFunction:function(){return p},checkForgottenReturns:m,setBounds:D,warn:b,deprecated:v,CapturedTrace:P,fireDomEvent:J,fireGlobalEvent:tt}}},{"./errors":12,"./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 o=function(){return r};return this.caught(n,o)}}},{}],11:[function(t,e,exports){"use strict";e.exports=function(t,e){function n(){return i(this)}function r(t,n){return o(t,n,e,e)}var o=t.reduce,i=t.all;t.prototype.each=function(t){return o(this,t,e,0)._then(n,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return o(this,t,e,e)},t.each=function(t,r){return o(t,r,e,0)._then(n,void 0,void 0,t,void 0)},t.mapSeries=r}},{}],12:[function(t,e,exports){"use strict";function n(t,e){function n(r){if(!(this instanceof n))return new n(r);c(this,"message","string"==typeof r?r:e),c(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return l(n,Error),n}function r(t){if(!(this instanceof r))return new r(t);c(this,"name","OperationalError"),c(this,"message",t),this.cause=t,this.isOperational=!0,t instanceof Error?(c(this,"message",t.message),c(this,"stack",t.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}var o,i,a=t("./es5"),s=a.freeze,u=t("./util"),l=u.inherits,c=u.notEnumerableProp,f=n("Warning","warning"),d=n("CancellationError","cancellation error"),p=n("TimeoutError","timeout error"),h=n("AggregateError","aggregate error");try{o=TypeError,i=RangeError}catch(t){o=n("TypeError","type error"),i=n("RangeError","range error")}for(var g="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),m=0;m1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function s(){return l.call(this,this.promise._target()._settledValue())}function u(t){if(!a(this,t))return d.e=t,d}function l(t){var o=this.promise,l=this.handler;if(!this.called){this.called=!0;var c=this.isFinallyHandler()?l.call(o._boundValue()):l.call(o._boundValue(),t);if(c===r)return c;if(void 0!==c){o._setReturnedNonUndefined();var p=n(c,o);if(p instanceof e){if(null!=this.cancelPromise){if(p._isCancelled()){var h=new f("late cancellation observer");return o._attachExtraTrace(h),d.e=h,d}p.isPending()&&p._attachCancellationCallback(new i(this))}return p._then(s,u,void 0,this,void 0)}}}return o.isRejected()?(a(this),d.e=t,d):(a(this),t)}var c=t("./util"),f=e.CancellationError,d=c.errorObj,p=t("./catch_filter")(r);return o.prototype.isFinallyHandler=function(){return 0===this.type},i.prototype._resultCancelled=function(){a(this.finallyHandler)},e.prototype._passThrough=function(t,e,n,r){return"function"!=typeof t?this.then():this._then(n,r,void 0,new o(this,e,t),void 0)},e.prototype.lastly=e.prototype.finally=function(t){return this._passThrough(t,0,l,l)},e.prototype.tap=function(t){return this._passThrough(t,1,l)},e.prototype.tapCatch=function(t){var n=arguments.length;if(1===n)return this._passThrough(t,1,void 0,l);var r,o=new Array(n-1),i=0;for(r=0;r0&&"function"==typeof arguments[e]){t=arguments[e];var r}var o=[].slice.call(arguments);t&&o.pop();var r=new n(o).promise();return void 0!==t?r.spread(t):r}}},{"./util":36}],18:[function(t,e,exports){"use strict";e.exports=function(e,n,r,o,i,a){function s(t,e,n,r){this.constructor$(t),this._promise._captureStackTrace();var o=l();this._callback=null===o?e:c.domainBind(o,e),this._preservedValues=r===i?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],p.invoke(this._asyncInit,this,void 0)}function u(t,n,o,i){if("function"!=typeof n)return r("expecting a function but got "+c.classString(n));var a=0;if(void 0!==o){if("object"!=typeof o||null===o)return e.reject(new TypeError("options argument must be an object but it is "+c.classString(o)));if("number"!=typeof o.concurrency)return e.reject(new TypeError("'concurrency' must be a number but it is "+c.classString(o.concurrency)));a=o.concurrency}return a="number"==typeof a&&isFinite(a)&&a>=1?a:0,new s(t,n,a,i).promise()}var l=e._getDomain,c=t("./util"),f=c.tryCatch,d=c.errorObj,p=e._async;c.inherits(s,n),s.prototype._asyncInit=function(){this._init$(void 0,-2)},s.prototype._init=function(){},s.prototype._promiseFulfilled=function(t,n){var r=this._values,i=this.length(),s=this._preservedValues,u=this._limit;if(n<0){if(n=-1*n-1,r[n]=t,u>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(u>=1&&this._inFlight>=u)return r[n]=t,this._queue.push(n),!1;null!==s&&(s[n]=t);var l=this._promise,c=this._callback,p=l._boundValue();l._pushContext();var h=f(c).call(p,t,n,i),g=l._popContext();if(a.checkForgottenReturns(h,g,null!==s?"Promise.filter":"Promise.map",l),h===d)return this._reject(h.e),!0;var m=o(h,this._promise);if(m instanceof e){m=m._target();var v=m._bitField;if(0==(50397184&v))return u>=1&&this._inFlight++,r[n]=m,m._proxy(this,-1*(n+1)),!1;if(0==(33554432&v))return 0!=(16777216&v)?(this._reject(m._reason()),!0):(this._cancel(),!0);h=m._value()}r[n]=h}return++this._totalResolved>=i&&(null!==s?this._filter(r,s):this._resolve(r),!0)},s.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlight1){i.deprecated("calling Promise.try with more than 1 argument");var l=arguments[1],c=arguments[2];u=a.isArray(l)?s(t).apply(c,l):s(t).call(c,l)}else u=s(t)();var f=r._popContext();return i.checkForgottenReturns(u,f,"Promise.try",r),r._resolveFromSyncValue(u),r},e.prototype._resolveFromSyncValue=function(t){t===a.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e,exports){"use strict";function n(t){return t instanceof Error&&l.getPrototypeOf(t)===Error.prototype}function r(t){var e;if(n(t)){e=new u(t),e.name=t.name,e.message=t.message,e.stack=t.stack;for(var r=l.keys(t),o=0;o1){var n,r=new Array(e-1),o=0;for(n=0;n0&&"function"!=typeof t&&"function"!=typeof e){var n=".then() only accepts functions but was passed: "+h.classString(t);arguments.length>1&&(n+=", "+h.classString(e)),this._warn(n)}return this._then(t,e,void 0,void 0,void 0)},i.prototype.done=function(t,e){this._then(t,e,void 0,void 0,void 0)._setIsFinal()},i.prototype.spread=function(t){return"function"!=typeof t?d("expecting a function but got "+h.classString(t)):this.all()._then(t,void 0,void 0,w,void 0)},i.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},i.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new E(this).promise()},i.prototype.error=function(t){return this.caught(h.originatesFromRejection,t)},i.getNewLibraryCopy=n.exports,i.is=function(t){return t instanceof i},i.fromNode=i.fromCallback=function(t){var e=new i(x);e._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=F(t)(D(e,n));return r===P&&e._rejectCallback(r.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},i.all=function(t){return new E(t).promise()},i.cast=function(t){var e=S(t);return e instanceof i||(e=new i(x),e._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},i.resolve=i.fulfilled=i.cast,i.reject=i.rejected=function(t){var e=new i(x);return e._captureStackTrace(),e._rejectCallback(t,!0),e},i.setScheduler=function(t){if("function"!=typeof t)throw new y("expecting a function but got "+h.classString(t));return v.setScheduler(t)},i.prototype._then=function(t,e,n,r,o){var a=void 0!==o,s=a?o:new i(x),u=this._target(),c=u._bitField;a||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&c)?this._boundValue():u===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var f=l();if(0!=(50397184&c)){var d,p,g=u._settlePromiseCtx;0!=(33554432&c)?(p=u._rejectionHandler0,d=t):0!=(16777216&c)?(p=u._fulfillmentHandler0,d=e,u._unsetRejectionIsUnhandled()):(g=u._settlePromiseLateCancellationObserver,p=new _("late cancellation observer"),u._attachExtraTrace(p),d=e),v.invoke(g,u,{handler:null===f?d:"function"==typeof d&&h.domainBind(f,d),promise:s,receiver:r,value:p})}else u._addCallbacks(t,e,s,r,f);return s},i.prototype._length=function(){return 65535&this._bitField},i.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},i.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},i.prototype._setLength=function(t){this._bitField=-65536&this._bitField|65535&t},i.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},i.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},i.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},i.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},i.prototype._isFinal=function(){return(4194304&this._bitField)>0},i.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},i.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},i.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},i.prototype._setAsyncGuaranteed=function(){v.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},i.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[4*t-4+3];if(e!==p)return void 0===e&&this._isBound()?this._boundValue():e},i.prototype._promiseAt=function(t){return this[4*t-4+2]},i.prototype._fulfillmentHandlerAt=function(t){return this[4*t-4+0]},i.prototype._rejectionHandlerAt=function(t){return this[4*t-4+1]},i.prototype._boundValue=function(){},i.prototype._migrateCallback0=function(t){var e=(t._bitField,t._fulfillmentHandler0),n=t._rejectionHandler0,r=t._promise0,o=t._receiverAt(0);void 0===o&&(o=p),this._addCallbacks(e,n,r,o,null)},i.prototype._migrateCallbackAt=function(t,e){var n=t._fulfillmentHandlerAt(e),r=t._rejectionHandlerAt(e),o=t._promiseAt(e),i=t._receiverAt(e);void 0===i&&(i=p),this._addCallbacks(n,r,o,i,null)},i.prototype._addCallbacks=function(t,e,n,r,o){var i=this._length();if(i>=65531&&(i=0,this._setLength(0)),0===i)this._promise0=n,this._receiver0=r,"function"==typeof t&&(this._fulfillmentHandler0=null===o?t:h.domainBind(o,t)),"function"==typeof e&&(this._rejectionHandler0=null===o?e:h.domainBind(o,e));else{var a=4*i-4;this[a+2]=n,this[a+3]=r,"function"==typeof t&&(this[a+0]=null===o?t:h.domainBind(o,t)),"function"==typeof e&&(this[a+1]=null===o?e:h.domainBind(o,e))}return this._setLength(i+1),i},i.prototype._proxy=function(t,e){this._addCallbacks(void 0,void 0,e,t,null)},i.prototype._resolveCallback=function(t,e){if(0==(117506048&this._bitField)){if(t===this)return this._rejectCallback(c(),!1);var n=S(t,this);if(!(n instanceof i))return this._fulfill(t);e&&this._propagateFrom(n,2);var r=n._target();if(r===this)return void this._reject(c());var o=r._bitField;if(0==(50397184&o)){var a=this._length();a>0&&r._migrateCallback0(this);for(var s=1;s>>16)){if(t===this){var n=c();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=t,(65535&e)>0&&(0!=(134217728&e)?this._settlePromises():v.settlePromises(this))}},i.prototype._reject=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=t,this._isFinal())return v.fatalError(t,h.isNode);(65535&e)>0?v.settlePromises(this):this._ensurePossibleRejectionHandled()}},i.prototype._fulfillPromises=function(t,e){for(var n=1;n0){if(0!=(16842752&t)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,t),this._rejectPromises(e,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,t),this._fulfillPromises(e,r)}this._setLength(0)}this._clearCancellationData()},i.prototype._settledValue=function(){var t=this._bitField;return 0!=(33554432&t)?this._rejectionHandler0:0!=(16777216&t)?this._fulfillmentHandler0:void 0},i.defer=i.pending=function(){return O.deprecated("Promise.defer","new Promise"),{promise:new i(x),resolve:a,reject:s}},h.notEnumerableProp(i,"_makeSelfResolutionError",c),t("./method")(i,x,S,d,O),t("./bind")(i,x,S,O),t("./cancel")(i,E,d,O),t("./direct_resolve")(i),t("./synchronous_inspection")(i),t("./join")(i,E,S,x,v,l),i.Promise=i,i.version="3.5.1",t("./map.js")(i,E,d,S,x,O),t("./call_get.js")(i),t("./using.js")(i,d,S,A,x,O),t("./timers.js")(i,x,O),t("./generators.js")(i,d,x,S,r,O),t("./nodeify.js")(i),t("./promisify.js")(i,x),t("./props.js")(i,E,S,d),t("./race.js")(i,x,S,d),t("./reduce.js")(i,E,d,S,x,O),t("./settle.js")(i,E,O),t("./some.js")(i,E,d),t("./filter.js")(i,x),t("./each.js")(i,x),t("./any.js")(i),h.toFastProperties(i),h.toFastProperties(i.prototype),u({a:1}),u({b:2}),u({c:3}),u(1),u(function(){}),u(void 0),u(!1),u(new i(x)),O.setBounds(m.firstLineError,h.lastLineError),i}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(t,e,exports){"use strict";e.exports=function(e,n,r,o,i){function a(t){switch(t){case-2:return[];case-3:return{};case-6:return new Map}}function s(t){var r=this._promise=new e(n);t instanceof e&&r._propagateFrom(t,3),r._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var u=t("./util");u.isArray;return u.inherits(s,i),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function t(n,i){var s=r(this._values,this._promise);if(s instanceof e){s=s._target();var l=s._bitField;if(this._values=s,0==(50397184&l))return this._promise._setAsyncGuaranteed(),s._then(t,this._reject,void 0,this,i);if(0==(33554432&l))return 0!=(16777216&l)?this._reject(s._reason()):this._cancel();s=s._value()}if(null===(s=u.asArray(s))){var c=o("expecting an array or an iterable object but got "+u.classString(s)).reason();return void this._promise._rejectCallback(c,!1)}if(0===s.length)return void(-5===i?this._resolveEmptyArray():this._resolve(a(i)));this._iterate(s)},s.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var o=this._promise,i=!1,a=null,s=0;s=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n=this._length){var n;if(this._isMap)n=d(this._values);else{n={};for(var r=this.length(),o=0,i=this.length();o>1},e.prototype.props=function(){return a(this)},e.props=function(t){return a(t)}}},{"./es5":13,"./util":36}],26:[function(t,e,exports){"use strict";function n(t,e,n,r,o){for(var i=0;i=this._length&&(this._resolve(this._values),!0)},o.prototype._promiseFulfilled=function(t,e){var n=new i;return n._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},o.prototype._promiseRejected=function(t,e){var n=new i;return n._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){return r.deprecated(".settle()",".reflect()"),new o(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,exports){"use strict";e.exports=function(e,n,r){function o(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function i(t,e){if((0|e)!==e||e<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new o(t),i=n.promise();return n.setHowMany(e),n.init(),i}var a=t("./util"),s=t("./errors").RangeError,u=t("./errors").AggregateError,l=a.isArray,c={};a.inherits(o,n),o.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var t=l(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},o.prototype.init=function(){this._initialized=!0,this._init()},o.prototype.setUnwrap=function(){this._unwrap=!0},o.prototype.howMany=function(){return this._howMany},o.prototype.setHowMany=function(t){this._howMany=t},o.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},o.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},o.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},o.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new u,e=this.length();e0?this._reject(t):this._cancel(),!0}return!1},o.prototype._fulfilled=function(){return this._totalResolved},o.prototype._rejected=function(){return this._values.length-this.length()},o.prototype._addRejected=function(t){this._values.push(t)},o.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},o.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},o.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new s(e)},o.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return i(t,e)},e.prototype.some=function(t){return i(this,t)},e._SomePromiseArray=o}},{"./errors":12,"./util":36}],32:[function(t,e,exports){"use strict";e.exports=function(t){function e(t){void 0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var n=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},o=e.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},i=e.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=e.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=e.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};e.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},t.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},t.prototype._isCancelled=function(){return this._target().__isCancelled()},t.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},t.prototype.isPending=function(){return a.call(this._target())},t.prototype.isRejected=function(){return i.call(this._target())},t.prototype.isFulfilled=function(){return o.call(this._target())},t.prototype.isResolved=function(){return s.call(this._target())},t.prototype.value=function(){return n.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),r.call(t)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},{}],33:[function(t,e,exports){"use strict";e.exports=function(e,n){function r(t,r){if(c(t)){if(t instanceof e)return t;var o=i(t);if(o===l){r&&r._pushContext();var u=e.reject(o.e);return r&&r._popContext(),u}if("function"==typeof o){if(a(t)){var u=new e(n);return t._then(u._fulfill,u._reject,void 0,u,null),u}return s(t,o,r)}}return t}function o(t){return t.then}function i(t){try{return o(t)}catch(t){return l.e=t,l}}function a(t){try{return f.call(t,"_promise0")}catch(t){return!1}}function s(t,r,o){function i(t){s&&(s._resolveCallback(t),s=null)}function a(t){s&&(s._rejectCallback(t,f,!0),s=null)}var s=new e(n),c=s;o&&o._pushContext(),s._captureStackTrace(),o&&o._popContext();var f=!0,d=u.tryCatch(r).call(t,i,a);return f=!1,s&&d===l&&(s._rejectCallback(d.e,!0,!0),s=null),c}var u=t("./util"),l=u.errorObj,c=u.isObject,f={}.hasOwnProperty;return r}},{"./util":36}],34:[function(t,e,exports){"use strict";e.exports=function(e,n,r){function o(t){this.handle=t}function i(t){return clearTimeout(this.handle),t}function a(t){throw clearTimeout(this.handle),t}var s=t("./util"),u=e.TimeoutError;o.prototype._resultCancelled=function(){clearTimeout(this.handle)};var l=function(t){return c(+this).thenReturn(t)},c=e.delay=function(t,i){var a,s;return void 0!==i?(a=e.resolve(i)._then(l,null,null,t,void 0),r.cancellation()&&i instanceof e&&a._setOnCancel(i)):(a=new e(n),s=setTimeout(function(){a._fulfill()},+t),r.cancellation()&&a._setOnCancel(new o(s)),a._captureStackTrace()),a._setAsyncGuaranteed(),a};e.prototype.delay=function(t){return c(t,this)};var f=function(t,e,n){var r;r="string"!=typeof e?e instanceof Error?e:new u("operation timed out"):new u(e),s.markAsOriginatingFromRejection(r),t._attachExtraTrace(r),t._reject(r),null!=n&&n.cancel()};e.prototype.timeout=function(t,e){t=+t;var n,s,u=new o(setTimeout(function(){n.isPending()&&f(n,e,s)},t));return r.cancellation()?(s=this.then(),n=s._then(i,a,void 0,u,void 0),n._setOnCancel(u)):n=this._then(i,a,void 0,u,void 0),n}}},{"./util":36}],35:[function(t,e,exports){"use strict";e.exports=function(e,n,r,o,i,a){function s(t){setTimeout(function(){throw t},0)}function u(t){var e=r(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function l(t,n){function o(){if(a>=l)return c._fulfill();var i=u(t[a++]);if(i instanceof e&&i._isDisposable()){try{i=r(i._getDisposer().tryDispose(n),t.promise)}catch(t){return s(t)}if(i instanceof e)return i._then(o,s,null,null,null)}o()}var a=0,l=t.length,c=new e(i);return o(),c}function c(t,e,n){this._data=t,this._promise=e,this._context=n}function f(t,e,n){this.constructor$(t,e,n)}function d(t){return c.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}function p(t){this.length=t,this.promise=null,this[t-1]=null}var h=t("./util"),g=t("./errors").TypeError,m=t("./util").inherits,v=h.errorObj,b=h.tryCatch,y={};c.prototype.data=function(){return this._data},c.prototype.promise=function(){return this._promise},c.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():y},c.prototype.tryDispose=function(t){var e=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=e!==y?this.doDispose(e,t):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},c.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},m(f,c),f.prototype.doDispose=function(t,e){return this.data().call(t,t,e)},p.prototype._resultCancelled=function(){for(var t=this.length,n=0;n0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},e.prototype.disposer=function(t){if("function"==typeof t)return new f(t,this,o());throw new g}}},{"./errors":12,"./util":36}],36:[function(t,r,exports){"use strict";function o(){try{var t=T;return T=null,t.apply(this,arguments)}catch(t){return M.e=t,M}}function i(t){return T=t,o}function a(t){return null==t||!0===t||!1===t||"string"==typeof t||"number"==typeof t}function s(t){return"function"==typeof t||"object"==typeof t&&null!==t}function u(t){return a(t)?new Error(v(t)):t}function l(t,e){var n,r=t.length,o=new Array(r+1);for(n=0;n1,r=e.length>0&&!(1===e.length&&"constructor"===e[0]),o=R.test(t+"")&&A.names(t).length>0;if(n||r||o)return!0}return!1}catch(t){return!1}}function h(t){function e(){}e.prototype=t;for(var n=8;n--;)new e;return t}function g(t){return I.test(t)}function m(t,e,n){for(var r=new Array(t),o=0;o10||t[0]>0}(),q.isNode&&q.toFastProperties(e);try{throw new Error}catch(t){q.lastLineError=t}r.exports=q},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(exports,e(289),e(30),e(177).setImmediate)},function(t,exports,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n={gl2ServerUrl:function(){return this.appConfig().gl2ServerUrl},gl2AppPathPrefix:function(){return this.appConfig().gl2AppPathPrefix},gl2DevMode:function(){return"undefined"!=typeof DEVELOPMENT&&DEVELOPMENT},rootTimeZone:function(){return this.appConfig().rootTimeZone},appConfig:function(){return window.appConfig||{}}};exports.default=n,t.exports=exports.default},function(t,exports,e){"use strict";function n(t){return new Date(t.getTime())}function r(t,e){var r=n(t);return r.setMonth(t.getMonth()+e),r}function o(t,e){return!(!t||!e)&&(t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear())}function i(t,e){return n(t).setHours(0,0,0,0)n(e).setHours(0,0,0,0)}function s(t){var e=new Date;return e.setHours(0,0,0,0),i(t,e)}function u(t){var e=new Date((new Date).getTime()+864e5);return e.setHours(0,0,0,0),t>=e}function l(t,e,r){var o=n(t);return o.setHours(0,0,0,0),a(o,e)&&i(o,r)||a(o,r)&&i(o,e)}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:null,to:null},n=e.from,r=e.to;return n?n&&r&&o(n,r)&&o(t,n)?(n=null,r=null):r&&i(t,n)?n=t:r&&o(t,r)?(n=t,r=t):(r=t,i(r,n)&&(r=n,n=t)):n=t,{from:n,to:r}}function f(t,e){var n=e.from,r=e.to;return n&&o(t,n)||r&&o(t,r)||n&&r&&l(t,n,r)}function d(t){var e=n(t);return e.setHours(0,0,0),e.setDate(e.getDate()+4-(e.getDay()||7)),Math.ceil(((e-new Date(e.getFullYear(),0,1))/864e5+1)/7)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.clone=n,exports.addMonths=r,exports.isSameDay=o,exports.isDayBefore=i,exports.isDayAfter=a,exports.isPastDay=s,exports.isFutureDay=u,exports.isDayBetween=l,exports.addDayToRange=c,exports.isDayInRange=f,exports.getWeekNumber=d,exports.default={addDayToRange:c,addMonths:r,clone:n,getWeekNumber:d,isDayAfter:a,isDayBefore:i,isDayBetween:l,isDayInRange:f,isFutureDay:u,isPastDay:s,isSameDay:o}},function(t,exports,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){for(var e=0,n=void 0,r=0,o=t.length;re&&(e=n);return e}function o(t){for(var e=Array(t.length),n=0,r=t.length;n=e.x+e.w)&&(!(t.y+t.h<=e.y)&&!(t.y>=e.y+e.h))))}function u(t,e){for(var n=h(t),r=_(t),o=Array(t.length),a=0,s=r.length;a0&&!d(t,e);)e.y--;for(var o=void 0;o=d(t,e);)e.y=o.y+o.h;return e}function c(t,e){for(var n=h(t),r=0,o=t.length;re.cols&&(i.x=e.cols-i.w),i.x<0&&(i.x=0,i.w=e.cols),i.static)for(;d(n,i);)i.y++;else n.push(i)}return t}function f(t,e){for(var n=0,r=t.length;nr;"number"==typeof n&&(e.x=n),"number"==typeof r&&(e.y=r),e.moved=!0;var a=_(t);i&&(a=a.reverse());for(var s=p(a,e),u=0,l=s.length;uc.y&&e.y-c.y>c.h/4||(t=c.static?m(t,c,e,o):m(t,e,c,o)))}return t}function m(t,e,n,r){if(r){var o={x:n.x,y:n.y,w:n.w,h:n.h,i:"-1"};if(o.y=Math.max(e.y-n.h,0),!d(t,o))return g(t,n,void 0,o.y)}return g(t,n,void 0,n.y+1)}function v(t){return 100*t+"%"}function b(t){var e=t.top,n=t.left,r=t.width,o=t.height,i="translate("+n+"px,"+e+"px)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:r+"px",height:o+"px",position:"absolute"}}function y(t){return{top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px",position:"absolute"}}function _(t){return[].concat(t).sort(function(t,e){return t.y>e.y||t.y===e.y&&t.x>e.x?1:t.y===e.y&&t.x===e.x?0:-1})}function x(t,e,n,o){t=t||[];var a=[];return O.default.Children.forEach(e,function(e,n){var o=f(t,e.key||"1");if(o)a[n]=i(o);else{!M&&e.props._grid&&console.warn("`_grid` properties on children have been deprecated as of React 15.2. Please use `data-grid` or add your properties directly to the `layout`.");var s=e.props["data-grid"]||e.props._grid;s?(M||w([s],"ReactGridLayout.children"),a[n]=i(S({},s,{i:e.key}))):a[n]=i({w:1,h:1,x:0,y:r(a),i:e.key||"1"})}}),a=c(a,{cols:n}),a=u(a,o)}function w(t,e){e=e||"Layout";var n=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(var r=0,o=t.length;r=1,r=arguments.length>=2;if(!(this instanceof o))return n?r?new o(t,e):new o(t):new o;if(void 0===t){if(n)throw new TypeError("undefined is not a valid argument for URI");t="undefined"!=typeof location?location.href+"":""}if(null===t&&n)throw new TypeError("null is not a valid argument for URI");return this.href(t),void 0!==e?this.absoluteTo(e):this}function i(t){return/^[0-9]+$/.test(t)}function a(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function s(t){return void 0===t?"Undefined":String(Object.prototype.toString.call(t)).slice(8,-1)}function u(t){return"Array"===s(t)}function l(t,e){var n,r,o={};if("RegExp"===s(e))o=null;else if(u(e))for(n=0,r=e.length;n]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(t){if(t&&t.nodeName){var e=t.nodeName.toLowerCase();if("input"!==e||"image"===t.type)return o.domAttributes[e]}},o.encode=h,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=h,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(t,e){var n=o.encode(t+"");return void 0===e&&(e=o.escapeQuerySpace),e?n.replace(/%20/g,"+"):n},o.decodeQuery=function(t,e){t+="",void 0===e&&(e=o.escapeQuerySpace);try{return o.decode(e?t.replace(/\+/g,"%20"):t)}catch(e){return t}};var _,x={encode:"encode",decode:"decode"},w=function(t,e){return function(n){try{return o[e](n+"").replace(o.characters[t][e].expression,function(n){return o.characters[t][e].map[n]})}catch(t){return n}}};for(_ in x)o[_+"PathSegment"]=w("pathname",x[_]),o[_+"UrnPathSegment"]=w("urnpath",x[_]);var k=function(t,e,n){return function(r){var i;i=n?function(t){return o[e](o[n](t))}:o[e];for(var a=(r+"").split(t),s=0,u=a.length;s-1&&(e.fragment=t.substring(n+1)||null,t=t.substring(0,n)),n=t.indexOf("?"),n>-1&&(e.query=t.substring(n+1)||null,t=t.substring(0,n)),"//"===t.substring(0,2)?(e.protocol=null,t=t.substring(2),t=o.parseAuthority(t,e)):(n=t.indexOf(":"))>-1&&(e.protocol=t.substring(0,n)||null,e.protocol&&!e.protocol.match(o.protocol_expression)?e.protocol=void 0:"//"===t.substring(n+1,n+3)?(t=t.substring(n+3),t=o.parseAuthority(t,e)):(t=t.substring(n+1),e.urn=!0)),e.path=t,e},o.parseHost=function(t,e){t||(t=""),t=t.replace(/\\/g,"/");var n,r,i=t.indexOf("/");if(-1===i&&(i=t.length),"["===t.charAt(0))n=t.indexOf("]"),e.hostname=t.substring(1,n)||null,e.port=t.substring(n+2,i)||null,"/"===e.port&&(e.port=null);else{var a=t.indexOf(":"),s=t.indexOf("/"),u=t.indexOf(":",a+1);-1!==u&&(-1===s||u-1?r:t.length-1);return i>-1&&(-1===r||i-1?p.slice(0,h)+p.slice(h).replace(a,""):p.replace(a,""),!(p.length<=l[0].length||n.ignore&&n.ignore.test(p))){d=c+p.length;var v=e(p,c,d,t);void 0!==v?(v=String(v),t=t.slice(0,c)+v+t.slice(d),r.lastIndex=c+v.length):r.lastIndex=d}}return r.lastIndex=0,t},o.ensureValidHostname=function(e,n){var r=!!e,i=!!n,a=!1;if(i&&(a=c(o.hostProtocols,n)),a&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(e&&e.match(o.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(e).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(t){if(t){var e=Number(t);if(!(i(e)&&e>0&&e<65536))throw new TypeError('Port "'+t+'" is not a valid port')}},o.noConflict=function(t){if(t){var e={URI:this.noConflict()};return r.URITemplate&&"function"==typeof r.URITemplate.noConflict&&(e.URITemplate=r.URITemplate.noConflict()),r.IPv6&&"function"==typeof r.IPv6.noConflict&&(e.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&"function"==typeof r.SecondLevelDomains.noConflict&&(e.SecondLevelDomains=r.SecondLevelDomains.noConflict()),e}return r.URI===this&&(r.URI=v),this},b.build=function(t){return!0===t?this._deferred_build=!0:(void 0===t||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},b.clone=function(){return new o(this)},b.valueOf=b.toString=function(){return this.build(!1)._string},b.protocol=g("protocol"),b.username=g("username"),b.password=g("password"),b.hostname=g("hostname"),b.port=g("port"),b.query=m("query","?"),b.fragment=m("fragment","#"),b.search=function(t,e){var n=this.query(t,e);return"string"==typeof n&&n.length?"?"+n:n},b.hash=function(t,e){var n=this.fragment(t,e);return"string"==typeof n&&n.length?"#"+n:n},b.pathname=function(t,e){if(void 0===t||!0===t){var n=this._parts.path||(this._parts.hostname?"/":"");return t?(this._parts.urn?o.decodeUrnPath:o.decodePath)(n):n}return this._parts.urn?this._parts.path=t?o.recodeUrnPath(t):"":this._parts.path=t?o.recodePath(t):"/",this.build(!e),this},b.path=b.pathname,b.href=function(t,e){var n;if(void 0===t)return this.toString();this._string="",this._parts=o._parts();var r=t instanceof o,i="object"==typeof t&&(t.hostname||t.path||t.pathname);if(t.nodeName){t=t[o.getDomAttribute(t)]||"",i=!1}if(!r&&i&&void 0!==t.pathname&&(t=t.toString()),"string"==typeof t||t instanceof String)this._parts=o.parse(String(t),this._parts);else{if(!r&&!i)throw new TypeError("invalid input");var a=r?t._parts:t;for(n in a)y.call(this._parts,n)&&(this._parts[n]=a[n])}return this.build(!e),this},b.is=function(t){var e=!1,r=!1,i=!1,a=!1,s=!1,u=!1,l=!1,c=!this._parts.urn;switch(this._parts.hostname&&(c=!1,r=o.ip4_expression.test(this._parts.hostname),i=o.ip6_expression.test(this._parts.hostname),e=r||i,a=!e,s=a&&n&&n.has(this._parts.hostname),u=a&&o.idn_expression.test(this._parts.hostname),l=a&&o.punycode_expression.test(this._parts.hostname)),t.toLowerCase()){case"relative":return c;case"absolute":return!c;case"domain":case"name":return a;case"sld":return s;case"ip":return e;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return i;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return l}return null};var S=b.protocol,E=b.port,C=b.hostname;b.protocol=function(t,e){if(t&&(t=t.replace(/:(\/\/)?$/,""),!t.match(o.protocol_expression)))throw new TypeError('Protocol "'+t+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return S.call(this,t,e)},b.scheme=b.protocol,b.port=function(t,e){return this._parts.urn?void 0===t?"":this:(void 0!==t&&(0===t&&(t=null),t&&(t+="",":"===t.charAt(0)&&(t=t.substring(1)),o.ensureValidPort(t))),E.call(this,t,e))},b.hostname=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==o.parseHost(t,n))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');t=n.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(t,this._parts.protocol)}return C.call(this,t,e)},b.origin=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var r=o(t);return this.protocol(r.protocol()).authority(r.authority()).build(!e),this},b.host=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?o.buildHost(this._parts):"";if("/"!==o.parseHost(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},b.authority=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?o.buildAuthority(this._parts):"";if("/"!==o.parseAuthority(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},b.userinfo=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=o.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==t[t.length-1]&&(t+="@"),o.parseUserinfo(t,this._parts),this.build(!e),this},b.resource=function(t,e){var n;return void 0===t?this.path()+this.search()+this.hash():(n=o.parse(t),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!e),this)},b.subdomain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var r=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,r),s=new RegExp("^"+a(i));if(t&&"."!==t.charAt(t.length-1)&&(t+="."),-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");return t&&o.ensureValidHostname(t,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(s,t),this.build(!e),this},b.domain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(e).length-1;return r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||""}if(!t)throw new TypeError("cannot set domain empty");if(-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(t,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=t;else{var i=new RegExp(a(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,t)}return this.build(!e),this},b.tld=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),o=this._parts.hostname.substring(r+1);return!0!==e&&n&&n.list[o.toLowerCase()]?n.get(this._parts.hostname)||o:o}var i;if(!t)throw new TypeError("cannot set TLD empty");if(t.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(t))throw new TypeError('TLD "'+t+'" contains characters other than [A-Z0-9]');i=new RegExp(a(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,t)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");i=new RegExp(a(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,t)}return this.build(!e),this},b.directory=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return t?o.decodePath(r):r}var i=this._parts.path.length-this.filename().length,s=this._parts.path.substring(0,i),u=new RegExp("^"+a(s));return this.is("relative")||(t||(t="/"),"/"!==t.charAt(0)&&(t="/"+t)),t&&"/"!==t.charAt(t.length-1)&&(t+="/"),t=o.recodePath(t),this._parts.path=this._parts.path.replace(u,t),this.build(!e),this},b.filename=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("string"!=typeof t){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(n+1);return t?o.decodePathSegment(r):r}var i=!1;"/"===t.charAt(0)&&(t=t.substring(1)),t.match(/\.?\//)&&(i=!0);var s=new RegExp(a(this.filename())+"$");return t=o.recodePath(t),this._parts.path=this._parts.path.replace(s,t),i?this.normalizePath(e):this.build(!e),this},b.suffix=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path||"/"===this._parts.path)return"";var n,r,i=this.filename(),s=i.lastIndexOf(".");return-1===s?"":(n=i.substring(s+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",t?o.decodePathSegment(r):r)}"."===t.charAt(0)&&(t=t.substring(1));var u,l=this.suffix();if(l)u=t?new RegExp(a(l)+"$"):new RegExp(a("."+l)+"$");else{if(!t)return this;this._parts.path+="."+o.recodePath(t)}return u&&(t=o.recodePath(t),this._parts.path=this._parts.path.replace(u,t)),this.build(!e),this},b.segment=function(t,e,n){var r=this._parts.urn?":":"/",o=this.path(),i="/"===o.substring(0,1),a=o.split(r);if(void 0!==t&&"number"!=typeof t&&(n=e,e=t,t=void 0),void 0!==t&&"number"!=typeof t)throw new Error('Bad segment "'+t+'", must be 0-based integer');if(i&&a.shift(),t<0&&(t=Math.max(a.length+t,0)),void 0===e)return void 0===t?a:a[t];if(null===t||void 0===a[t])if(u(e)){a=[];for(var s=0,l=e.length;se?1:t>=e?0:NaN}function s(t){return null===t?NaN:+t}function u(t){return!isNaN(t)}function l(t){return{left:function(e,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=e.length);r>>1;t(e[i],n)<0?r=i+1:o=i}return r},right:function(e,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=e.length);r>>1;t(e[i],n)>0?o=i:r=i+1}return r}}}function c(t){return t.length}function f(t){for(var e=1;t*e%1;)e*=10;return e}function d(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function p(){this._=Object.create(null)}function h(t){return(t+="")===Sa||t[0]===Ea?Ea+t:t}function g(t){return(t+="")[0]===Ea?t.slice(1):t}function m(t){return h(t)in this._}function v(t){return(t=h(t))in this._&&delete this._[t]}function b(){var t=[];for(var e in this._)t.push(g(e));return t}function y(){var t=0;for(var e in this._)++t;return t}function _(){for(var t in this._)return!1;return!0}function x(){this._=Object.create(null)}function w(t){return t}function k(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function S(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,r=Ca.length;n=e&&(e=o+1);!(a=s[e])&&++e0&&(t=t.slice(0,s));var l=ja.get(t);return l&&(t=l,u=J),s?e?o:r:e?E:i}function Z(t,e){return function(n){var r=pa.event;pa.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{pa.event=r}}}function J(t,e){var n=Z(t,e);return function(t){var e=this,r=t.relatedTarget;r&&(r===e||8&r.compareDocumentPosition(e))||n.call(e,t)}}function tt(t){var e=".dragsuppress-"+ ++za,n="click"+e,r=pa.select(i(t)).on("touchmove"+e,O).on("dragstart"+e,O).on("selectstart"+e,O);if(null==Na&&(Na=!("onselectstart"in t)&&S(t.style,"userSelect")),Na){var a=o(t).style,s=a[Na];a[Na]="none"}return function(t){if(r.on(e,null),Na&&(a[Na]=s),t){var o=function(){r.on(n,null)};r.on(n,function(){O(),o()},!0),setTimeout(o,0)}}}function et(t,e){e.changedTouches&&(e=e.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();if(La<0){var o=i(t);if(o.scrollX||o.scrollY){n=pa.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var a=n[0][0].getScreenCTM();La=!(a.f||a.e),n.remove()}}return La?(r.x=e.pageX,r.y=e.pageY):(r.x=e.clientX,r.y=e.clientY),r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}function nt(){return pa.event.changedTouches[0].identifier}function rt(t){return t>0?1:t<0?-1:0}function ot(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function it(t){return t>1?0:t<-1?Ba:Math.acos(t)}function at(t){return t>1?Va:t<-1?-Va:Math.asin(t)}function st(t){return((t=Math.exp(t))-1/t)/2}function ut(t){return((t=Math.exp(t))+1/t)/2}function lt(t){return((t=Math.exp(2*t))-1)/(t+1)}function ct(t){return(t=Math.sin(t/2))*t}function ft(){}function dt(t,e,n){return this instanceof dt?(this.h=+t,this.s=+e,void(this.l=+n)):arguments.length<2?t instanceof dt?new dt(t.h,t.s,t.l):Ct(""+t,At,dt):new dt(t,e,n)}function pt(t,e,n){function r(t){return t>360?t-=360:t<0&&(t+=360),t<60?i+(a-i)*t/60:t<180?a:t<240?i+(a-i)*(240-t)/60:i}function o(t){return Math.round(255*r(t))}var i,a;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:e<0?0:e>1?1:e,n=n<0?0:n>1?1:n,a=n<=.5?n*(1+e):n+e-n*e,i=2*n-a,new wt(o(t+120),o(t),o(t-120))}function ht(t,e,n){return this instanceof ht?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof ht?new ht(t.h,t.c,t.l):t instanceof mt?bt(t.l,t.a,t.b):bt((t=Ot((t=pa.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new ht(t,e,n)}function gt(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new mt(n,Math.cos(t*=Wa)*e,Math.sin(t)*e)}function mt(t,e,n){return this instanceof mt?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof mt?new mt(t.l,t.a,t.b):t instanceof ht?gt(t.h,t.c,t.l):Ot((t=wt(t)).r,t.g,t.b):new mt(t,e,n)}function vt(t,e,n){var r=(t+16)/116,o=r+e/500,i=r-n/200;return o=yt(o)*es,r=yt(r)*ns,i=yt(i)*rs,new wt(xt(3.2404542*o-1.5371385*r-.4985314*i),xt(-.969266*o+1.8760108*r+.041556*i),xt(.0556434*o-.2040259*r+1.0572252*i))}function bt(t,e,n){return t>0?new ht(Math.atan2(n,e)*Ya,Math.sqrt(e*e+n*n),t):new ht(NaN,NaN,t)}function yt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function _t(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function xt(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function wt(t,e,n){return this instanceof wt?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof wt?new wt(t.r,t.g,t.b):Ct(""+t,wt,pt):new wt(t,e,n)}function kt(t){return new wt(t>>16,t>>8&255,255&t)}function St(t){return kt(t)+""}function Et(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function Ct(t,e,n){var r,o,i,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(o=r[2].split(","),r[1]){case"hsl":return n(parseFloat(o[0]),parseFloat(o[1])/100,parseFloat(o[2])/100);case"rgb":return e(Tt(o[0]),Tt(o[1]),Tt(o[2]))}return(i=as.get(t))?e(i.r,i.g,i.b):(null==t||"#"!==t.charAt(0)||isNaN(i=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&i)>>4,a|=a>>4,s=240&i,s|=s>>4,u=15&i,u|=u<<4):7===t.length&&(a=(16711680&i)>>16,s=(65280&i)>>8,u=255&i)),e(a,s,u))}function At(t,e,n){var r,o,i=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),s=a-i,u=(a+i)/2;return s?(o=u<.5?s/(a+i):s/(2-a-i),r=t==a?(e-n)/s+(e0&&u<1?0:r),new dt(r,o,u)}function Ot(t,e,n){t=Mt(t),e=Mt(e),n=Mt(n);var r=_t((.4124564*t+.3575761*e+.1804375*n)/es),o=_t((.2126729*t+.7151522*e+.072175*n)/ns);return mt(116*o-16,500*(r-o),200*(o-_t((.0193339*t+.119192*e+.9503041*n)/rs)))}function Mt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Tt(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function Dt(t){return"function"==typeof t?t:function(){return t}}function Pt(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),Ft(e,n,t,r)}}function Ft(t,e,n,r){function o(){var t,e=u.status;if(!e&&It(u)||e>=200&&e<300||304===e){try{t=n.call(i,u)}catch(t){return void a.error.call(i,t)}a.load.call(i,t)}else a.error.call(i,u)}var i={},a=pa.dispatch("beforesend","progress","load","error"),s={},u=new XMLHttpRequest,l=null;return!this.XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(t)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=o:u.onreadystatechange=function(){u.readyState>3&&o()},u.onprogress=function(t){var e=pa.event;pa.event=t;try{a.progress.call(i,u)}finally{pa.event=e}},i.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?s[t]:(null==e?delete s[t]:s[t]=e+"",i)},i.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",i):e},i.responseType=function(t){return arguments.length?(l=t,i):l},i.response=function(t){return n=t,i},["get","post"].forEach(function(t){i[t]=function(){return i.send.apply(i,[t].concat(ga(arguments)))}}),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),u.open(n,t,!0),null==e||"accept"in s||(s.accept=e+",*/*"),u.setRequestHeader)for(var c in s)u.setRequestHeader(c,s[c]);return null!=e&&u.overrideMimeType&&u.overrideMimeType(e),null!=l&&(u.responseType=l),null!=o&&i.on("error",o).on("load",function(t){o(null,t)}),a.beforesend.call(i,u),u.send(null==r?null:r),i},i.abort=function(){return u.abort(),i},pa.rebind(i,a,"on"),null==r?i:i.get(Rt(r))}function Rt(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}function It(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function jt(t,e,n){var r=arguments.length;r<2&&(e=0),r<3&&(n=Date.now());var o=n+e,i={c:t,t:o,n:null};return us?us.n=i:ss=i,us=i,ls||(cs=clearTimeout(cs),ls=1,fs(Nt)),i}function Nt(){var t=zt(),e=Lt()-t;e>24?(isFinite(e)&&(clearTimeout(cs),cs=setTimeout(Nt,e)),ls=0):(ls=1,fs(Nt))}function zt(){for(var t=Date.now(),e=ss;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Lt(){for(var t,e=ss,n=1/0;e;)e.c?(e.t8?function(t){return t/n}:function(t){return t*n},symbol:t}}function Bt(t){var e=t.decimal,n=t.thousands,r=t.grouping,o=t.currency,i=r&&n?function(t,e){for(var o=t.length,i=[],a=0,s=r[0],u=0;o>0&&s>0&&(u+s+1>e&&(s=Math.max(1,e-u)),i.push(t.substring(o-=s,o+s)),!((u+=s+1)>e));)s=r[a=(a+1)%r.length];return i.reverse().join(n)}:w;return function(t){var n=ps.exec(t),r=n[1]||" ",a=n[2]||">",s=n[3]||"-",u=n[4]||"",l=n[5],c=+n[6],f=n[7],d=n[8],p=n[9],h=1,g="",m="",v=!1,b=!0;switch(d&&(d=+d.substring(1)),(l||"0"===r&&"="===a)&&(l=r="0",a="="),p){case"n":f=!0,p="g";break;case"%":h=100,m="%",p="f";break;case"p":h=100,m="%",p="r";break;case"b":case"o":case"x":case"X":"#"===u&&(g="0"+p.toLowerCase());case"c":b=!1;case"d":v=!0,d=0;break;case"s":h=-1,p="r"}"$"===u&&(g=o[0],m=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=hs.get(p)||Ht;var y=l&&f;return function(t){var n=m;if(v&&t%1)return"";var o=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===s?"":s;if(h<0){var u=pa.formatPrefix(t,d);t=u.scale(t),n=u.symbol+m}else t*=h;t=p(t,d);var _,x,w=t.lastIndexOf(".");if(w<0){var k=b?t.lastIndexOf("e"):-1;k<0?(_=t,x=""):(_=t.substring(0,k),x=t.substring(k))}else _=t.substring(0,w),x=e+t.substring(w+1);!l&&f&&(_=i(_,1/0));var S=g.length+_.length+x.length+(y?0:o.length),E=S"===a?E+o+t:"^"===a?E.substring(0,S>>=1)+o+t+E.substring(S):o+(y?t:E+t))+n}}}function Ht(t){return t+""}function Gt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Vt(t,e,n){function r(e){var n=t(e),r=i(n,1);return e-n1)for(;a=l)return-1;if(37===(o=e.charCodeAt(s++))){if(a=e.charAt(s++),!(i=M[a in bs?e.charAt(s++):a])||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function r(t,e,n){w.lastIndex=0;var r=w.exec(e.slice(n));return r?(t.w=k.get(r[0].toLowerCase()),n+r[0].length):-1}function o(t,e,n){_.lastIndex=0;var r=_.exec(e.slice(n));return r?(t.w=x.get(r[0].toLowerCase()),n+r[0].length):-1}function i(t,e,n){C.lastIndex=0;var r=C.exec(e.slice(n));return r?(t.m=A.get(r[0].toLowerCase()),n+r[0].length):-1}function a(t,e,n){S.lastIndex=0;var r=S.exec(e.slice(n));return r?(t.m=E.get(r[0].toLowerCase()),n+r[0].length):-1}function s(t,e,r){return n(t,O.c.toString(),e,r)}function u(t,e,r){return n(t,O.x.toString(),e,r)}function l(t,e,r){return n(t,O.X.toString(),e,r)}function c(t,e,n){var r=y.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)}var f=t.dateTime,d=t.date,p=t.time,h=t.periods,g=t.days,m=t.shortDays,v=t.months,b=t.shortMonths;e.utc=function(t){function n(t){try{ms=Gt;var e=new ms;return e._=t,r(e)}finally{ms=Date}}var r=e(t);return n.parse=function(t){try{ms=Gt;var e=r.parse(t);return e&&e._}finally{ms=Date}},n.toString=r.toString,n},e.multi=e.utc.multi=pe;var y=pa.map(),_=Qt(g),x=Xt(g),w=Qt(m),k=Xt(m),S=Qt(v),E=Xt(v),C=Qt(b),A=Xt(b);h.forEach(function(t,e){y.set(t.toLowerCase(),e)});var O={a:function(t){return m[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return b[t.getMonth()]},B:function(t){return v[t.getMonth()]},c:e(f),d:function(t,e){return Kt(t.getDate(),e,2)},e:function(t,e){return Kt(t.getDate(),e,2)},H:function(t,e){return Kt(t.getHours(),e,2)},I:function(t,e){return Kt(t.getHours()%12||12,e,2)},j:function(t,e){return Kt(1+gs.dayOfYear(t),e,3)},L:function(t,e){return Kt(t.getMilliseconds(),e,3)},m:function(t,e){return Kt(t.getMonth()+1,e,2)},M:function(t,e){return Kt(t.getMinutes(),e,2)},p:function(t){return h[+(t.getHours()>=12)]},S:function(t,e){return Kt(t.getSeconds(),e,2)},U:function(t,e){return Kt(gs.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Kt(gs.mondayOfYear(t),e,2)},x:e(d),X:e(p),y:function(t,e){return Kt(t.getFullYear()%100,e,2)},Y:function(t,e){return Kt(t.getFullYear()%1e4,e,4)},Z:fe,"%":function(){return"%"}},M={a:r,A:o,b:i,B:a,c:s,d:ie,e:ie,H:se,I:se,j:ae,L:ce,m:oe,M:ue,p:c,S:le,U:Zt,w:$t,W:Jt,x:u,X:l,y:ee,Y:te,Z:ne,"%":de};return e}function Kt(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i68?1900:2e3)}function oe(t,e,n){ys.lastIndex=0;var r=ys.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ie(t,e,n){ys.lastIndex=0;var r=ys.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ae(t,e,n){ys.lastIndex=0;var r=ys.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function se(t,e,n){ys.lastIndex=0;var r=ys.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ue(t,e,n){ys.lastIndex=0;var r=ys.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function le(t,e,n){ys.lastIndex=0;var r=ys.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ce(t,e,n){ys.lastIndex=0;var r=ys.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function fe(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=ka(e)/60|0,o=ka(e)%60;return n+Kt(r,"0",2)+Kt(o,"0",2)}function de(t,e,n){_s.lastIndex=0;var r=_s.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function pe(t){for(var e=t.length,n=-1;++n=0?1:-1,s=a*n,u=Math.cos(e),l=Math.sin(e),c=i*l,f=o*u+c*Math.cos(s),d=c*a*Math.sin(s);Cs.add(Math.atan2(d,f)),r=t,o=u,i=l}var e,n,r,o,i;As.point=function(a,s){As.point=t,r=(e=a)*Wa,o=Math.cos(s=(n=s)*Wa/2+Ba/4),i=Math.sin(s)},As.lineEnd=function(){t(e,n)}}function _e(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 xe(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function we(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 ke(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Se(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Ee(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 Ce(t){return[Math.atan2(t[1],t[0]),at(t[2])]}function Ae(t,e){return ka(t[0]-e[0])=0;--s)o.point((f=c[s])[0],f[1])}else r(p.x,p.p.x,-1,o);p=p.p}p=p.o,c=p.z,h=!h}while(!p.v);o.lineEnd()}}}function je(t){if(e=t.length){for(var e,n,r=0,o=t[0];++r0){for(x||(i.polygonStart(),x=!0),i.lineStart();++a1&&2&e&&n.push(n.pop().concat(n.shift())),p.push(n.filter(Le))}var p,h,g,m=e(i),v=o.invert(r[0],r[1]),b={point:a,lineStart:u,lineEnd:l,polygonStart:function(){b.point=c,b.lineStart=f,b.lineEnd=d,p=[],h=[]},polygonEnd:function(){b.point=a,b.lineStart=u,b.lineEnd=l,p=pa.merge(p);var t=Ve(v,h);p.length?(x||(i.polygonStart(),x=!0),Ie(p,qe,t,n,i)):t&&(x||(i.polygonStart(),x=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),x&&(i.polygonEnd(),x=!1),p=h=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}},y=Ue(),_=e(y),x=!1;return b}}function Le(t){return t.length>1}function Ue(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:E,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function qe(t,e){return((t=t.x)[0]<0?t[1]-Va-Ua:Va-t[1])-((e=e.x)[0]<0?e[1]-Va-Ua:Va-e[1])}function Be(t){var e,n=NaN,r=NaN,o=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(i,a){var s=i>0?Ba:-Ba,u=ka(i-n);ka(u-Ba)0?Va:-Va),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(i,r),e=0):o!==s&&u>=Ba&&(ka(n-o)Ua?Math.atan((Math.sin(e)*(i=Math.cos(r))*Math.sin(n)-Math.sin(r)*(o=Math.cos(e))*Math.sin(t))/(o*i*a)):(e+r)/2}function Ge(t,e,n,r){var o;if(null==t)o=n*Va,r.point(-Ba,o),r.point(0,o),r.point(Ba,o),r.point(Ba,0),r.point(Ba,-o),r.point(0,-o),r.point(-Ba,-o),r.point(-Ba,0),r.point(-Ba,o);else if(ka(t[0]-e[0])>Ua){var i=t[0]=0?1:-1,k=w*x,S=k>Ba,E=h*y;if(Cs.add(Math.atan2(E*w*Math.sin(k),g*_+E*Math.cos(k))),i+=S?x+w*Ha:x,S^d>=n^v>=n){var C=we(_e(f),_e(t));Ee(C);var A=we(o,C);Ee(A);var O=(S^x>=0?-1:1)*at(A[2]);(r>O||r===O&&(C[0]||C[1]))&&(a+=S^x>=0?1:-1)}if(!m++)break;d=v,h=y,g=_,f=t}}return(i<-Ua||ii}function n(t){var n,i,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(f,d){var p,h=[f,d],g=e(f,d),m=a?g?0:o(f,d):g?o(f+(f<0?Ba:-Ba),d):0;if(!n&&(l=u=g)&&t.lineStart(),g!==u&&(p=r(n,h),(Ae(n,p)||Ae(h,p))&&(h[0]+=Ua,h[1]+=Ua,g=e(h[0],h[1]))),g!==u)c=0,g?(t.lineStart(),p=r(h,n),t.point(p[0],p[1])):(p=r(n,h),t.point(p[0],p[1]),t.lineEnd()),n=p;else if(s&&n&&a^g){var v;m&i||!(v=r(h,n,!0))||(c=0,a?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||n&&Ae(n,h)||t.point(h[0],h[1]),n=h,u=g,i=m},lineEnd:function(){u&&t.lineEnd(),n=null},clean:function(){return c|(l&&u)<<1}}}function r(t,e,n){var r=_e(t),o=_e(e),a=[1,0,0],s=we(r,o),u=xe(s,s),l=s[0],c=u-l*l;if(!c)return!n&&t;var f=i*u/c,d=-i*l/c,p=we(a,s),h=Se(a,f);ke(h,Se(s,d));var g=p,m=xe(h,g),v=xe(g,g),b=m*m-v*(xe(h,h)-1);if(!(b<0)){var y=Math.sqrt(b),_=Se(g,(-m-y)/v);if(ke(_,h),_=Ce(_),!n)return _;var x,w=t[0],k=e[0],S=t[1],E=e[1];k0^_[1]<(ka(_[0]-w)Ba^(w<=_[0]&&_[0]<=k)){var M=Se(g,(-m+y)/v);return ke(M,h),[_,Ce(M)]}}}function o(e,n){var r=a?t:Ba-t,o=0;return e<-r?o|=1:e>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}var i=Math.cos(t),a=i>0,s=ka(i)>Ua;return ze(e,n,_n(t,6*Wa),a?[0,-t]:[-Ba,t-Ba])}function Ye(t,e,n,r){return function(o){var i,a=o.a,s=o.b,u=a.x,l=a.y,c=s.x,f=s.y,d=0,p=1,h=c-u,g=f-l;if(i=t-u,h||!(i>0)){if(i/=h,h<0){if(i0){if(i>p)return;i>d&&(d=i)}if(i=n-u,h||!(i<0)){if(i/=h,h<0){if(i>p)return;i>d&&(d=i)}else if(h>0){if(i0)){if(i/=g,g<0){if(i0){if(i>p)return;i>d&&(d=i)}if(i=r-l,g||!(i<0)){if(i/=g,g<0){if(i>p)return;i>d&&(d=i)}else if(g>0){if(i0&&(o.a={x:u+d*h,y:l+d*g}),p<1&&(o.b={x:u+p*h,y:l+p*g}),o}}}}}}function Ke(t,e,n,r){function o(r,o){return ka(r[0]-t)0?0:3:ka(r[0]-n)0?2:1:ka(r[1]-e)0?1:0:o>0?3:2}function i(t,e){return a(t.x,e.x)}function a(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]}return function(s){function u(t){for(var e=0,n=m.length,r=t[1],o=0;or&&ot(l,i,t)>0&&++e:i[1]<=r&&ot(l,i,t)<0&&--e,l=i;return 0!==e}function l(i,s,u,l){var c=0,f=0;if(null==i||(c=o(i,u))!==(f=o(s,u))||a(i,s)<0^u>0)do{l.point(0===c||3===c?t:n,c>1?r:e)}while((c=(c+u+4)%4)!==f);else l.point(s[0],s[1])}function c(o,i){return t<=o&&o<=n&&e<=i&&i<=r}function f(t,e){c(t,e)&&s.point(t,e)}function d(){M.point=h,m&&m.push(v=[]),S=!0,k=!1,x=w=NaN}function p(){g&&(h(b,y),_&&k&&A.rejoin(),g.push(A.buffer())),M.point=f,k&&s.lineEnd()}function h(t,e){t=Math.max(-qs,Math.min(qs,t)),e=Math.max(-qs,Math.min(qs,e));var n=c(t,e);if(m&&v.push([t,e]),S)b=t,y=e,_=n,S=!1,n&&(s.lineStart(),s.point(t,e));else if(n&&k)s.point(t,e);else{var r={a:{x:x,y:w},b:{x:t,y:e}};O(r)?(k||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),E=!1):n&&(s.lineStart(),s.point(t,e),E=!1)}x=t,w=e,k=n}var g,m,v,b,y,_,x,w,k,S,E,C=s,A=Ue(),O=Ye(t,e,n,r),M={point:f,lineStart:d,lineEnd:p,polygonStart:function(){s=A,g=[],m=[],E=!0},polygonEnd:function(){s=C,g=pa.merge(g);var e=u([t,r]),n=E&&e,o=g.length;(n||o)&&(s.polygonStart(),n&&(s.lineStart(),l(null,null,1,s),s.lineEnd()),o&&Ie(g,i,e,l,s),s.polygonEnd()),g=m=v=null}};return M}}function Qe(t){var e=0,n=Ba/3,r=dn(t),o=r(e,n);return o.parallels=function(t){return arguments.length?r(e=t[0]*Ba/180,n=t[1]*Ba/180):[e/Ba*180,n/Ba*180]},o}function Xe(t,e){function n(t,e){var n=Math.sqrt(i-2*o*Math.sin(e))/o;return[n*Math.sin(t*=o),a-n*Math.cos(t)]}var r=Math.sin(t),o=(r+Math.sin(e))/2,i=1+r*(2*o-r),a=Math.sqrt(i)/o;return n.invert=function(t,e){var n=a-e;return[Math.atan2(t,n)/o,at((i-(t*t+n*n)*o*o)/(2*o))]},n}function $e(){function t(t,e){Hs+=o*t-r*e,r=t,o=e}var e,n,r,o;Ks.point=function(i,a){Ks.point=t,e=r=i,n=o=a},Ks.lineEnd=function(){t(e,n)}}function Ze(t,e){tWs&&(Ws=t),eYs&&(Ys=e)}function Je(){function t(t,e){a.push("M",t,",",e,i)}function e(t,e){a.push("M",t,",",e),s.point=n}function n(t,e){a.push("L",t,",",e)}function r(){s.point=t}function o(){a.push("Z")}var i=tn(4.5),a=[],s={point:t,lineStart:function(){s.point=e},lineEnd:r,polygonStart:function(){s.lineEnd=o},polygonEnd:function(){s.lineEnd=r,s.point=t},pointRadius:function(t){return i=tn(t),s},result:function(){if(a.length){var t=a.join("");return a=[],t}}};return s}function tn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function en(t,e){Ts+=t,Ds+=e,++Ps}function nn(){function t(t,r){var o=t-e,i=r-n,a=Math.sqrt(o*o+i*i);Fs+=a*(e+t)/2,Rs+=a*(n+r)/2,Is+=a,en(e=t,n=r)}var e,n;Xs.point=function(r,o){Xs.point=t,en(e=r,n=o)}}function rn(){Xs.point=en}function on(){function t(t,e){var n=t-r,i=e-o,a=Math.sqrt(n*n+i*i);Fs+=a*(r+t)/2,Rs+=a*(o+e)/2,Is+=a,a=o*t-r*e,js+=a*(r+t),Ns+=a*(o+e),zs+=3*a,en(r=t,o=e)}var e,n,r,o;Xs.point=function(i,a){Xs.point=t,en(e=r=i,n=o=a)},Xs.lineEnd=function(){t(e,n)}}function an(t){function e(e,n){t.moveTo(e+a,n),t.arc(e,n,a,0,Ha)}function n(e,n){t.moveTo(e,n),s.point=r}function r(e,n){t.lineTo(e,n)}function o(){s.point=e}function i(){t.closePath()}var a=4.5,s={point:e,lineStart:function(){s.point=n},lineEnd:o,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=o,s.point=e},pointRadius:function(t){return a=t,s},result:E};return s}function sn(t){function e(t){return(s?r:n)(t)}function n(e){return cn(e,function(n,r){n=t(n,r),e.point(n[0],n[1])})}function r(e){function n(n,r){n=t(n,r),e.point(n[0],n[1])}function r(){y=NaN,S.point=i,e.lineStart()}function i(n,r){var i=_e([n,r]),a=t(n,r);o(y,_,b,x,w,k,y=a[0],_=a[1],b=n,x=i[0],w=i[1],k=i[2],s,e),e.point(y,_)}function a(){S.point=n,e.lineEnd()}function u(){r(),S.point=l,S.lineEnd=c}function l(t,e){i(f=t,d=e),p=y,h=_,g=x,m=w,v=k,S.point=i}function c(){o(y,_,b,x,w,k,p,h,f,g,m,v,s,e),S.lineEnd=a,a()}var f,d,p,h,g,m,v,b,y,_,x,w,k,S={point:n,lineStart:r,lineEnd:a,polygonStart:function(){e.polygonStart(),S.lineStart=u},polygonEnd:function(){e.polygonEnd(),S.lineStart=r}};return S}function o(e,n,r,s,u,l,c,f,d,p,h,g,m,v){var b=c-e,y=f-n,_=b*b+y*y;if(_>4*i&&m--){var x=s+p,w=u+h,k=l+g,S=Math.sqrt(x*x+w*w+k*k),E=Math.asin(k/=S),C=ka(ka(k)-1)i||ka((b*T+y*D)/_-.5)>.3||s*p+u*h+l*g0&&16,e):Math.sqrt(i)},e}function un(t){var e=sn(function(e,n){return t([e*Ya,n*Ya])});return function(t){return pn(e(t))}}function ln(t){this.stream=t}function cn(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 fn(t){return dn(function(){return t})()}function dn(t){function e(t){return t=s(t[0]*Wa,t[1]*Wa),[t[0]*d+u,l-t[1]*d]}function n(t){return(t=s.invert((t[0]-u)/d,(l-t[1])/d))&&[t[0]*Ya,t[1]*Ya]}function r(){s=Fe(a=mn(v,b,y),i);var t=i(g,m);return u=p-t[0]*d,l=h+t[1]*d,o()}function o(){return c&&(c.valid=!1,c=null),e}var i,a,s,u,l,c,f=sn(function(t,e){return t=i(t,e),[t[0]*d+u,l-t[1]*d]}),d=150,p=480,h=250,g=0,m=0,v=0,b=0,y=0,_=Us,x=w,k=null,S=null;return e.stream=function(t){return c&&(c.valid=!1),c=pn(_(a,f(x(t)))),c.valid=!0,c},e.clipAngle=function(t){return arguments.length?(_=null==t?(k=t,Us):We((k=+t)*Wa),o()):k},e.clipExtent=function(t){return arguments.length?(S=t,x=t?Ke(t[0][0],t[0][1],t[1][0],t[1][1]):w,o()):S},e.scale=function(t){return arguments.length?(d=+t,r()):d},e.translate=function(t){return arguments.length?(p=+t[0],h=+t[1],r()):[p,h]},e.center=function(t){return arguments.length?(g=t[0]%360*Wa,m=t[1]%360*Wa,r()):[g*Ya,m*Ya]},e.rotate=function(t){return arguments.length?(v=t[0]%360*Wa,b=t[1]%360*Wa,y=t.length>2?t[2]%360*Wa:0,r()):[v*Ya,b*Ya,y*Ya]},pa.rebind(e,f,"precision"),function(){return i=t.apply(this,arguments),e.invert=i.invert&&n,r()}}function pn(t){return cn(t,function(e,n){t.point(e*Wa,n*Wa)})}function hn(t,e){return[t,e]}function gn(t,e){return[t>Ba?t-Ha:t<-Ba?t+Ha:t,e]}function mn(t,e,n){return t?e||n?Fe(bn(t),yn(e,n)):bn(t):e||n?yn(e,n):gn}function vn(t){return function(e,n){return e+=t,[e>Ba?e-Ha:e<-Ba?e+Ha:e,n]}}function bn(t){var e=vn(t);return e.invert=vn(-t),e}function yn(t,e){function n(t,e){var n=Math.cos(e),s=Math.cos(t)*n,u=Math.sin(t)*n,l=Math.sin(e),c=l*r+s*o;return[Math.atan2(u*i-c*a,s*r-l*o),at(c*i+u*a)]}var r=Math.cos(t),o=Math.sin(t),i=Math.cos(e),a=Math.sin(e);return n.invert=function(t,e){var n=Math.cos(e),s=Math.cos(t)*n,u=Math.sin(t)*n,l=Math.sin(e),c=l*i-u*a;return[Math.atan2(u*i+l*a,s*r+c*o),at(c*r-s*o)]},n}function _n(t,e){var n=Math.cos(t),r=Math.sin(t);return function(o,i,a,s){var u=a*e;null!=o?(o=xn(n,o),i=xn(n,i),(a>0?oi)&&(o+=a*Ha)):(o=t+a*Ha,i=t-.5*u);for(var l,c=o;a>0?c>i:c0?e<-Va+Ua&&(e=-Va+Ua):e>Va-Ua&&(e=Va-Ua);var n=a/Math.pow(o(e),i);return[n*Math.sin(i*t),a-n*Math.cos(i*t)]}var r=Math.cos(t),o=function(t){return Math.tan(Ba/4+t/2)},i=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(o(e)/o(t)),a=r*Math.pow(o(t),i)/i;return i?(n.invert=function(t,e){var n=a-e,r=rt(i)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/i,2*Math.atan(Math.pow(a/r,1/i))-Va]},n):Dn}function Tn(t,e){function n(t,e){var n=i-e;return[n*Math.sin(o*t),i-n*Math.cos(o*t)]}var r=Math.cos(t),o=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),i=r/o+t;return ka(o)1&&ot(t[n[r-2]],t[n[r-1]],t[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}function Nn(t,e){return t[0]-e[0]||t[1]-e[1]}function zn(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function Ln(t,e,n,r){var o=t[0],i=n[0],a=e[0]-o,s=r[0]-i,u=t[1],l=n[1],c=e[1]-u,f=r[1]-l,d=(s*(u-l)-f*(o-i))/(f*a-s*c);return[o+d*a,u+d*c]}function Un(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}function qn(){ur(this),this.edge=this.site=this.circle=null}function Bn(t){var e=cu.pop()||new qn;return e.site=t,e}function Hn(t){Jn(t),su.remove(t),cu.push(t),ur(t)}function Gn(t){var e=t.circle,n=e.x,r=e.cy,o={x:n,y:r},i=t.P,a=t.N,s=[t];Hn(t);for(var u=i;u.circle&&ka(n-u.circle.x)Ua)s=s.L;else{if(!((o=i-Yn(s,a))>Ua)){r>-Ua?(e=s.P,n=s):o>-Ua?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}var u=Bn(t);if(su.insert(e,u),e||n){if(e===n)return Jn(e),n=Bn(e.site),su.insert(u,n),u.edge=n.edge=rr(e.site,u.site),Zn(e),void Zn(n);if(!n)return void(u.edge=rr(e.site,u.site));Jn(e),Jn(n);var l=e.site,c=l.x,f=l.y,d=t.x-c,p=t.y-f,h=n.site,g=h.x-c,m=h.y-f,v=2*(d*m-p*g),b=d*d+p*p,y=g*g+m*m,_={x:(m*b-p*y)/v+c,y:(d*y-g*b)/v+f};ir(n.edge,l,h,_),u.edge=rr(l,t,null,_),n.edge=rr(t,h,null,_),Zn(e),Zn(n)}}function Wn(t,e){var n=t.site,r=n.x,o=n.y,i=o-e;if(!i)return r;var a=t.P;if(!a)return-1/0;n=a.site;var s=n.x,u=n.y,l=u-e;if(!l)return s;var c=s-r,f=1/i-1/l,d=c/l;return f?(-d+Math.sqrt(d*d-2*f*(c*c/(-2*l)-u+l/2+o-i/2)))/f+r:(r+s)/2}function Yn(t,e){var n=t.N;if(n)return Wn(n,e);var r=t.site;return r.y===e?r.x:1/0}function Kn(t){this.site=t,this.edges=[]}function Qn(t){for(var e,n,r,o,i,a,s,u,l,c,f=t[0][0],d=t[1][0],p=t[0][1],h=t[1][1],g=au,m=g.length;m--;)if((i=g[m])&&i.prepare())for(s=i.edges,u=s.length,a=0;aUa||ka(o-n)>Ua)&&(s.splice(a,0,new ar(or(i.site,c,ka(r-f)Ua?{x:f,y:ka(e-f)Ua?{x:ka(n-h)Ua?{x:d,y:ka(e-d)Ua?{x:ka(n-p)=-qa)){var p=u*u+l*l,h=c*c+f*f,g=(f*p-l*h)/d,m=(u*h-c*p)/d,f=m+s,v=fu.pop()||new $n;v.arc=t,v.site=o,v.x=g+a,v.y=f+Math.sqrt(g*g+m*m),v.cy=f,t.circle=v;for(var b=null,y=lu._;y;)if(v.y=s)return;if(d>h){if(i){if(i.y>=l)return}else i={x:m,y:u};n={x:m,y:l}}else{if(i){if(i.y1)if(d>h){if(i){if(i.y>=l)return}else i={x:(u-o)/r,y:u};n={x:(l-o)/r,y:l}}else{if(i){if(i.y=s)return}else i={x:a,y:r*a+o};n={x:s,y:r*s+o}}else{if(i){if(i.xi||f>a||d=_,k=n>=x,S=k<<1|w,E=S+4;Si&&(o=e.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:wr(n,r)})),i=hu.lastIndex;return i=0&&!(n=pa.interpolators[r](t,e)););return n}function Er(t,e){var n,r=[],o=[],i=t.length,a=e.length,s=Math.min(t.length,e.length);for(n=0;n=1?1:t(e)}}function Ar(t){return function(e){return 1-t(1-e)}}function Or(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function Mr(t){return t*t}function Tr(t){return t*t*t}function Dr(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 Pr(t){return function(e){return Math.pow(e,t)}}function Fr(t){return 1-Math.cos(t*Va)}function Rr(t){return Math.pow(2,10*(t-1))}function Ir(t){return 1-Math.sqrt(1-t*t)}function jr(t,e){var n;return arguments.length<2&&(e=.45),arguments.length?n=e/Ha*Math.asin(1/t):(t=1,n=e/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-n)*Ha/e)}}function Nr(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function zr(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 Lr(t,e){t=pa.hcl(t),e=pa.hcl(e);var n=t.h,r=t.c,o=t.l,i=e.h-n,a=e.c-r,s=e.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?e.c:r),isNaN(i)?(i=0,n=isNaN(n)?e.h:n):i>180?i-=360:i<-180&&(i+=360),function(t){return gt(n+i*t,r+a*t,o+s*t)+""}}function Ur(t,e){t=pa.hsl(t),e=pa.hsl(e);var n=t.h,r=t.s,o=t.l,i=e.h-n,a=e.s-r,s=e.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?e.s:r),isNaN(i)?(i=0,n=isNaN(n)?e.h:n):i>180?i-=360:i<-180&&(i+=360),function(t){return pt(n+i*t,r+a*t,o+s*t)+""}}function qr(t,e){t=pa.lab(t),e=pa.lab(e);var n=t.l,r=t.a,o=t.b,i=e.l-n,a=e.a-r,s=e.b-o;return function(t){return vt(n+i*t,r+a*t,o+s*t)+""}}function Br(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function Hr(t){var e=[t.a,t.b],n=[t.c,t.d],r=Vr(e),o=Gr(e,n),i=Vr(Wr(n,e,-o))||0;e[0]*n[1]180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(Yr(n)+"rotate(",null,")")-2,x:wr(t,e)})):e&&n.push(Yr(n)+"rotate("+e+")")}function Xr(t,e,n,r){t!==e?r.push({i:n.push(Yr(n)+"skewX(",null,")")-2,x:wr(t,e)}):e&&n.push(Yr(n)+"skewX("+e+")")}function $r(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var o=n.push(Yr(n)+"scale(",null,",",null,")");r.push({i:o-4,x:wr(t[0],e[0])},{i:o-2,x:wr(t[1],e[1])})}else 1===e[0]&&1===e[1]||n.push(Yr(n)+"scale("+e+")")}function Zr(t,e){var n=[],r=[];return t=pa.transform(t),e=pa.transform(e),Kr(t.translate,e.translate,n,r),Qr(t.rotate,e.rotate,n,r),Xr(t.skew,e.skew,n,r),$r(t.scale,e.scale,n,r),t=e=null,function(t){for(var e,o=-1,i=r.length;++o=0;)n.push(o[r])}function fo(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(i=t.children)&&(o=i.length))for(var o,i,a=-1;++ao&&(r=n,o=e);return r}function ko(t){return t.reduce(So,0)}function So(t,e){return t+e[1]}function Eo(t,e){return Co(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Co(t,e){for(var n=-1,r=+t[0],o=(t[1]-r)/e,i=[];++n<=e;)i[n]=o*n+r;return i}function Ao(t){return[pa.min(t),pa.max(t)]}function Oo(t,e){return t.value-e.value}function Mo(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function To(t,e){t._pack_next=e,e._pack_prev=t}function Do(t,e){var n=e.x-t.x,r=e.y-t.y,o=t.r+e.r;return.999*o*o>n*n+r*r}function Po(t){function e(t){c=Math.min(t.x-t.r,c),f=Math.max(t.x+t.r,f),d=Math.min(t.y-t.r,d),p=Math.max(t.y+t.r,p)}if((n=t.children)&&(l=n.length)){var n,r,o,i,a,s,u,l,c=1/0,f=-1/0,d=1/0,p=-1/0;if(n.forEach(Fo),r=n[0],r.x=-r.r,r.y=0,e(r),l>1&&(o=n[1],o.x=o.r,o.y=0,e(o),l>2))for(i=n[2],jo(r,o,i),e(i),Mo(r,i),r._pack_prev=i,Mo(i,o),o=r._pack_next,a=3;a=0;)e=o[i],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function Bo(t,e,n){return t.a.parent===e.parent?t.a:n}function Ho(t){return 1+pa.max(t,function(t){return t.y})}function Go(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function Vo(t){var e=t.children;return e&&e.length?Vo(e[0]):t}function Wo(t){var e,n=t.children;return n&&(e=n.length)?Wo(n[e-1]):t}function Yo(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Ko(t,e){var n=t.x+e[3],r=t.y+e[0],o=t.dx-e[1]-e[3],i=t.dy-e[0]-e[2];return o<0&&(n+=o/2,o=0),i<0&&(r+=i/2,i=0),{x:n,y:r,dx:o,dy:i}}function Qo(t){var e=t[0],n=t[t.length-1];return e2?ti:$o,u=r?to:Jr;return a=o(t,e,u,n),s=o(e,t,u,Sr),i}function i(t){return a(t)}var a,s;return i.invert=function(t){return s(t)},i.domain=function(e){return arguments.length?(t=e.map(Number),o()):t},i.range=function(t){return arguments.length?(e=t,o()):e},i.rangeRound=function(t){return i.range(t).interpolate(Br)},i.clamp=function(t){return arguments.length?(r=t,o()):r},i.interpolate=function(t){return arguments.length?(n=t,o()):n},i.ticks=function(e){return ii(t,e)},i.tickFormat=function(e,n){return ai(t,e,n)},i.nice=function(e){return ri(t,e),o()},i.copy=function(){return ei(t,e,n,r)},o()}function ni(t,e){return pa.rebind(t,e,"range","rangeRound","interpolate","clamp")}function ri(t,e){return Zo(t,Jo(oi(t,e)[2])),Zo(t,Jo(oi(t,e)[2])),t}function oi(t,e){null==e&&(e=10);var n=Qo(t),r=n[1]-n[0],o=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),i=e/r*o;return i<=.15?o*=10:i<=.35?o*=5:i<=.75&&(o*=2),n[0]=Math.ceil(n[0]/o)*o,n[1]=Math.floor(n[1]/o)*o+.5*o,n[2]=o,n}function ii(t,e){return pa.range.apply(pa,oi(t,e))}function ai(t,e,n){var r=oi(t,e);if(n){var o=ps.exec(n);if(o.shift(),"s"===o[8]){var i=pa.formatPrefix(Math.max(ka(r[0]),ka(r[1])));return o[7]||(o[7]="."+si(i.scale(r[2]))),o[8]="f",n=pa.format(o.join("")),function(t){return n(i.scale(t))+i.symbol}}o[7]||(o[7]="."+ui(o[8],r)),n=o.join("")}else n=",."+si(r[2])+"f";return pa.format(n)}function si(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function ui(t,e){var n=si(e[2]);return t in Cu?Math.abs(n-si(Math.max(ka(e[0]),ka(e[1]))))+ +("e"!==t):n-2*("%"===t)}function li(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 i(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function a(e){return t(o(e))}return a.invert=function(e){return i(t.invert(e))},a.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(o)),a):r},a.base=function(n){return arguments.length?(e=+n,t.domain(r.map(o)),a):e},a.nice=function(){var e=Zo(r.map(o),n?Math:Ou);return t.domain(e),r=e.map(i),a},a.ticks=function(){var t=Qo(r),a=[],s=t[0],u=t[1],l=Math.floor(o(s)),c=Math.ceil(o(u)),f=e%1?2:e;if(isFinite(c-l)){if(n){for(;l0;d--)a.push(i(l)*d);for(l=0;a[l]u;c--);a=a.slice(l,c)}return a},a.tickFormat=function(t,n){if(!arguments.length)return Au;arguments.length<2?n=Au:"function"!=typeof n&&(n=pa.format(n));var r=Math.max(1,e*t/a.ticks().length);return function(t){var a=t/i(Math.round(o(t)));return a*e0?o[n-1]:t[0],n0?0:1}function Si(t,e,n,r,o){var i=t[0]-e[0],a=t[1]-e[1],s=(o?r:-r)/Math.sqrt(i*i+a*a),u=s*a,l=-s*i,c=t[0]+u,f=t[1]+l,d=e[0]+u,p=e[1]+l,h=(c+d)/2,g=(f+p)/2,m=d-c,v=p-f,b=m*m+v*v,y=n-r,_=c*p-d*f,x=(v<0?-1:1)*Math.sqrt(Math.max(0,y*y*b-_*_)),w=(_*v-m*x)/b,k=(-_*m-v*x)/b,S=(_*v+m*x)/b,E=(-_*m+v*x)/b,C=w-h,A=k-g,O=S-h,M=E-g;return C*C+A*A>O*O+M*M&&(w=S,k=E),[[w-u,k-l],[w*n/y,k*n/y]]}function Ei(t){function e(e){function a(){l.push("M",i(t(c),s))}for(var u,l=[],c=[],f=-1,d=e.length,p=Dt(n),h=Dt(r);++f1?t.join("L"):t+"Z"}function Ai(t){return t.join("L")+"Z"}function Oi(t){for(var e=0,n=t.length,r=t[0],o=[r[0],",",r[1]];++e1&&o.push("H",r[0]),o.join("")}function Mi(t){for(var e=0,n=t.length,r=t[0],o=[r[0],",",r[1]];++e1){s=e[1],i=t[u],u++,r+="C"+(o[0]+a[0])+","+(o[1]+a[1])+","+(i[0]-s[0])+","+(i[1]-s[1])+","+i[0]+","+i[1];for(var l=2;l9&&(o=3*e/Math.sqrt(o),a[s]=o*n,a[s+1]=o*r));for(s=-1;++s<=u;)o=(t[Math.min(u,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),i.push([o||0,a[s]*o||0]);return i}function Vi(t){return t.length<3?Ci(t):t[0]+Ri(t,Gi(t))}function Wi(t){for(var e,n,r,o=-1,i=t.length;++o0;)d[--s].call(t,a);if(i>=1)return g.event&&g.event.end.call(t,t.__data__,e),--h.count?delete h[r]:delete t[n],1}var u,l,c,f,d,h=t[n]||(t[n]={active:0,count:0}),g=h[r];g||(u=o.time,l=jt(i,0,u),g=h[r]={tween:new p,time:u,timer:l,delay:o.delay,duration:o.duration,ease:o.ease,index:e},o=null,++h.count)}function aa(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate("+(isFinite(r)?r:n(t))+",0)"})}function sa(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate(0,"+(isFinite(r)?r:n(t))+")"})}function ua(t){return t.toISOString()}function la(t,e,n){function r(e){return t(e)}function o(t,n){var r=t[1]-t[0],o=r/n,i=pa.bisect(Ju,o);return i==Ju.length?[e.year,oi(t.map(function(t){return t/31536e6}),n)[2]]:i?e[o/Ju[i-1]1?{floor:function(e){for(;n(e=t.floor(e));)e=ca(e-1);return e},ceil:function(e){for(;n(e=t.ceil(e));)e=ca(+e+1);return e}}:t))},r.ticks=function(t,e){var n=Qo(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],ca(+n[1]+1),e<1?1:e)},r.tickFormat=function(){return n},r.copy=function(){return la(t.copy(),e,n)},ni(r,t)}function ca(t){return new Date(t)}function fa(t){return JSON.parse(t.responseText)}function da(t){var e=ma.createRange();return e.selectNode(ma.body),e.createContextualFragment(t.responseText)}var pa={version:"3.5.17"},ha=[].slice,ga=function(t){return ha.call(t)},ma=this.document;if(ma)try{ga(ma.documentElement.childNodes)[0].nodeType}catch(t){ga=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}if(Date.now||(Date.now=function(){return+new Date}),ma)try{ma.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var va=this.Element.prototype,ba=va.setAttribute,ya=va.setAttributeNS,_a=this.CSSStyleDeclaration.prototype,xa=_a.setProperty;va.setAttribute=function(t,e){ba.call(this,t,e+"")},va.setAttributeNS=function(t,e,n){ya.call(this,t,e,n+"")},_a.setProperty=function(t,e,n){xa.call(this,t,e+"",n)}}pa.ascending=a,pa.descending=function(t,e){return et?1:e>=t?0:NaN},pa.min=function(t,e){var n,r,o=-1,i=t.length;if(1===arguments.length){for(;++o=r){n=r;break}for(;++or&&(n=r)}else{for(;++o=r){n=r;break}for(;++or&&(n=r)}return n},pa.max=function(t,e){var n,r,o=-1,i=t.length;if(1===arguments.length){for(;++o=r){n=r;break}for(;++on&&(n=r)}else{for(;++o=r){n=r;break}for(;++on&&(n=r)}return n},pa.extent=function(t,e){var n,r,o,i=-1,a=t.length;if(1===arguments.length){for(;++i=r){n=o=r;break}for(;++ir&&(n=r),o=r){n=o=r;break}for(;++ir&&(n=r),o1)return a/(c-1)},pa.deviation=function(){var t=pa.variance.apply(this,arguments);return t?Math.sqrt(t):t};var wa=l(a);pa.bisectLeft=wa.left,pa.bisect=pa.bisectRight=wa.right,pa.bisector=function(t){return l(1===t.length?function(e,n){return a(t(e),n)}:t)},pa.shuffle=function(t,e,n){(i=arguments.length)<3&&(n=t.length,i<2&&(e=0));for(var r,o,i=n-e;i;)o=Math.random()*i--|0,r=t[i+e],t[i+e]=t[o+e],t[o+e]=r;return t},pa.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},pa.pairs=function(t){for(var e=0,n=t.length-1,r=t[0],o=new Array(n<0?0:n);e=0;)for(r=t[o],e=r.length;--e>=0;)n[--a]=r[e];return n};var ka=Math.abs;pa.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,o=[],i=f(ka(n)),a=-1;if(t*=i,e*=i,n*=i,n<0)for(;(r=t+n*++a)>e;)o.push(r/i);else for(;(r=t+n*++a)=i.length)return r?r.call(o,a):n?a.sort(n):a;for(var u,l,c,f,d=-1,h=a.length,g=i[s++],m=new p;++d=i.length)return t;var r=[],o=a[n++];return t.forEach(function(t,o){r.push({key:t,values:e(o,n)})}),o?r.sort(function(t,e){return o(t.key,e.key)}):r}var n,r,o={},i=[],a=[];return o.map=function(e,n){return t(n,e,0)},o.entries=function(n){return e(t(pa.map,n,0),0)},o.key=function(t){return i.push(t),o},o.sortKeys=function(t){return a[i.length-1]=t,o},o.sortValues=function(t){return n=t,o},o.rollup=function(t){return r=t,o},o},pa.set=function(t){var e=new x;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}},pa.event=null,pa.requote=function(t){return t.replace(Aa,"\\$&")};var Aa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Oa={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]},Ma=function(t,e){return e.querySelector(t)},Ta=function(t,e){return e.querySelectorAll(t)},Da=function(t,e){var n=t.matches||t[S(t,"matchesSelector")];return(Da=function(t,e){return n.call(t,e)})(t,e)};"function"==typeof Sizzle&&(Ma=function(t,e){return Sizzle(t,e)[0]||null},Ta=Sizzle,Da=Sizzle.matchesSelector),pa.selection=function(){return pa.select(ma.documentElement)};var Pa=pa.selection.prototype=[];Pa.select=function(t){var e,n,r,o,i=[];t=P(t);for(var a=-1,s=this.length;++a=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Ra.hasOwnProperty(n)?{space:Ra[n],local:t}:t}},Pa.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return t=pa.ns.qualify(t),t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(R(e,t[e]));return this}return this.each(R(t,e))},Pa.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=N(t)).length,o=-1;if(e=n.classList){for(;++o=0;)(n=r[o])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},Pa.sort=function(t){t=W.apply(this,arguments);for(var e=-1,n=this.length;++e0&&(e=e.transition().duration(A)),e.call(t.event)}function s(){x&&x.domain(_.range().map(function(t){return(t-S.x)/S.k}).map(_.invert)),k&&k.domain(w.range().map(function(t){return(t-S.y)/S.k}).map(w.invert))}function u(t){M++||t({type:"zoomstart"})}function l(t){s(),t({type:"zoom",scale:S.k,translate:[S.x,S.y]})}function c(t){--M||(t({type:"zoomend"}),m=null)}function f(){function t(){s=1,o(pa.mouse(r),d),l(a)}function n(){f.on(P,null).on(F,null),p(s),c(a)}var r=this,a=I.of(r,arguments),s=0,f=pa.select(i(r)).on(P,t).on(F,n),d=e(pa.mouse(r)),p=tt(r);Hu.call(r),u(a)}function d(){function t(){var t=pa.touches(h);return p=S.k,t.forEach(function(t){t.identifier in m&&(m[t.identifier]=e(t))}),t}function n(){var e=pa.event.target;pa.select(e).on(_,i).on(x,s),w.push(e);for(var n=pa.event.changedTouches,r=0,o=n.length;r1){var c=u[0],f=u[1],d=c[0]-f[0],p=c[1]-f[1];v=d*d+p*p}}function i(){var t,e,n,i,a=pa.touches(h);Hu.call(h);for(var s=0,u=a.length;s=l)return a;if(o)return o=!1,i;var e=c;if(34===t.charCodeAt(e)){for(var n=e;n++=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,hs=pa.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=pa.round(t,Ut(t,e))).toFixed(Math.max(0,Math.min(20,Ut(t*(1+1e-15),e))))}}),gs=pa.time={},ms=Date;Gt.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(){vs.setUTCDate.apply(this._,arguments)},setDay:function(){vs.setUTCDay.apply(this._,arguments)},setFullYear:function(){vs.setUTCFullYear.apply(this._,arguments)},setHours:function(){vs.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){vs.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){vs.setUTCMinutes.apply(this._,arguments)},setMonth:function(){vs.setUTCMonth.apply(this._,arguments)},setSeconds:function(){vs.setUTCSeconds.apply(this._,arguments)},setTime:function(){vs.setTime.apply(this._,arguments)}};var vs=Date.prototype;gs.year=Vt(function(t){return t=gs.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),gs.years=gs.year.range,gs.years.utc=gs.year.utc.range,gs.day=Vt(function(t){var e=new ms(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}),gs.days=gs.day.range,gs.days.utc=gs.day.utc.range,gs.dayOfYear=function(t){var e=gs.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=gs[t]=Vt(function(t){return(t=gs.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=gs.year(t).getDay();return Math.floor((gs.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});gs[t+"s"]=n.range,gs[t+"s"].utc=n.utc.range,gs[t+"OfYear"]=function(t){var n=gs.year(t).getDay();return Math.floor((gs.dayOfYear(t)+(n+e)%7)/7)}}),gs.week=gs.sunday,gs.weeks=gs.sunday.range,gs.weeks.utc=gs.sunday.utc.range,gs.weekOfYear=gs.sundayOfYear;var bs={"-":"",_:" ",0:"0"},ys=/^\s*\d+/,_s=/^%/;pa.locale=function(t){return{numberFormat:Bt(t),timeFormat:Yt(t)}};var xs=pa.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",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"]});pa.format=xs.numberFormat,pa.geo={},he.prototype={s:0,t:0,add:function(t){ge(t,this.t,ws),ge(ws.s,this.s,this),this.s?this.t+=ws.t:this.s=ws.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var ws=new he;pa.geo.stream=function(t,e){t&&ks.hasOwnProperty(t.type)?ks[t.type](t,e):me(t,e)};var ks={Feature:function(t,e){me(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++rp&&(p=e)}function e(e,n){var r=_e([e*Wa,n*Wa]);if(v){var o=we(v,r),i=[o[1],-o[0],0],a=we(i,o);Ee(a),a=Ce(a);var u=e-h,l=u>0?1:-1,g=a[0]*Ya*l,m=ka(u)>180;if(m^(l*hp&&(p=b)}else if(g=(g+360)%360-180,m^(l*hp&&(p=n);m?es(c,d)&&(d=e):s(e,d)>s(c,d)&&(c=e):d>=c?(ed&&(d=e)):e>h?s(c,e)>s(c,d)&&(d=e):s(e,d)>s(c,d)&&(c=e)}else t(e,n);v=r,h=e}function n(){x.point=e}function r(){_[0]=c,_[1]=d,x.point=t,v=null}function o(t,n){if(v){var r=t-h;b+=ka(r)>180?r+(r>0?360:-360):r}else g=t,m=n;As.point(t,n),e(t,n)}function i(){As.lineStart()}function a(){o(g,m),As.lineEnd(),ka(b)>Ua&&(c=-(d=180)),_[0]=c,_[1]=d,v=null}function s(t,e){return(e-=t)<0?e+360:e}function u(t,e){return t[0]-e[0]}function l(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tUa?p=90:b<-Ua&&(f=-90),_[0]=c,_[1]=d}};return function(t){p=d=-(c=f=1/0),y=[],pa.geo.stream(t,x);var e=y.length;if(e){y.sort(u);for(var n,r=1,o=y[0],i=[o];rs(o[0],o[1])&&(o[1]=n[1]),s(n[0],o[1])>s(o[0],o[1])&&(o[0]=n[0])):i.push(o=n);for(var a,n,h=-1/0,e=i.length-1,r=0,o=i[e];r<=e;o=n,++r)n=i[r],(a=s(o[1],n[0]))>h&&(h=a,c=n[0],d=o[1])}return y=_=null,c===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,f],[d,p]]}}(),pa.geo.centroid=function(t){Os=Ms=Ts=Ds=Ps=Fs=Rs=Is=js=Ns=zs=0,pa.geo.stream(t,Ls);var e=js,n=Ns,r=zs,o=e*e+n*n+r*r;return o=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?s:i).invert(t)},t.stream=function(t){var e=i.stream(t),n=a.stream(t),r=s.stream(t);return{point:function(t,o){e.point(t,o),n.point(t,o),r.point(t,o)},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()}}},t.precision=function(e){return arguments.length?(i.precision(e),a.precision(e),s.precision(e),t):i.precision()},t.scale=function(e){return arguments.length?(i.scale(e),a.scale(.35*e),s.scale(e),t.translate(i.translate())):i.scale()},t.translate=function(e){if(!arguments.length)return i.translate();var l=i.scale(),c=+e[0],f=+e[1];return n=i.translate(e).clipExtent([[c-.455*l,f-.238*l],[c+.455*l,f+.238*l]]).stream(u).point,r=a.translate([c-.307*l,f+.201*l]).clipExtent([[c-.425*l+Ua,f+.12*l+Ua],[c-.214*l-Ua,f+.234*l-Ua]]).stream(u).point,o=s.translate([c-.205*l,f+.212*l]).clipExtent([[c-.214*l+Ua,f+.166*l+Ua],[c-.115*l-Ua,f+.234*l-Ua]]).stream(u).point,t},t.scale(1070)};var Bs,Hs,Gs,Vs,Ws,Ys,Ks={point:E,lineStart:E,lineEnd:E,polygonStart:function(){Hs=0,Ks.lineStart=$e},polygonEnd:function(){Ks.lineStart=Ks.lineEnd=Ks.point=E,Bs+=ka(Hs/2)}},Qs={point:Ze,lineStart:E,lineEnd:E,polygonStart:E,polygonEnd:E},Xs={point:en,lineStart:nn,lineEnd:rn,polygonStart:function(){Xs.lineStart=on},polygonEnd:function(){Xs.point=en,Xs.lineStart=nn,Xs.lineEnd=rn}};pa.geo.path=function(){function t(t){return t&&("function"==typeof s&&i.pointRadius(+s.apply(this,arguments)),a&&a.valid||(a=o(i)),pa.geo.stream(t,a)),i.result()}function e(){return a=null,t}var n,r,o,i,a,s=4.5;return t.area=function(t){return Bs=0,pa.geo.stream(t,o(Ks)),Bs},t.centroid=function(t){return Ts=Ds=Ps=Fs=Rs=Is=js=Ns=zs=0,pa.geo.stream(t,o(Xs)),zs?[js/zs,Ns/zs]:Is?[Fs/Is,Rs/Is]:Ps?[Ts/Ps,Ds/Ps]:[NaN,NaN]},t.bounds=function(t){return Ws=Ys=-(Gs=Vs=1/0),pa.geo.stream(t,o(Qs)),[[Gs,Vs],[Ws,Ys]]},t.projection=function(t){return arguments.length?(o=(n=t)?t.stream||un(t):w,e()):n},t.context=function(t){return arguments.length?(i=null==(r=t)?new Je:new an(t),"function"!=typeof s&&i.pointRadius(s),e()):r},t.pointRadius=function(e){return arguments.length?(s="function"==typeof e?e:(i.pointRadius(+e),+e),t):s},t.projection(pa.geo.albersUsa()).context(null)},pa.geo.transform=function(t){return{stream:function(e){var n=new ln(e);for(var r in t)n[r]=t[r];return n}}},ln.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},pa.geo.projection=fn,pa.geo.projectionMutator=dn,(pa.geo.equirectangular=function(){return fn(hn)}).raw=hn.invert=hn,pa.geo.rotation=function(t){function e(e){return e=t(e[0]*Wa,e[1]*Wa),e[0]*=Ya,e[1]*=Ya,e}return t=mn(t[0]%360*Wa,t[1]*Wa,t.length>2?t[2]*Wa:0),e.invert=function(e){return e=t.invert(e[0]*Wa,e[1]*Wa),e[0]*=Ya,e[1]*=Ya,e},e},gn.invert=hn,pa.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,e=mn(-t[0]*Wa,-t[1]*Wa,0).invert,o=[];return n(null,null,1,{point:function(t,n){o.push(t=e(t,n)),t[0]*=Ya,t[1]*=Ya}}),{type:"Polygon",coordinates:[o]}}var e,n,r=[0,0],o=6;return t.origin=function(e){return arguments.length?(r=e,t):r},t.angle=function(r){return arguments.length?(n=_n((e=+r)*Wa,o*Wa),t):e},t.precision=function(r){return arguments.length?(n=_n(e*Wa,(o=+r)*Wa),t):o},t.angle(90)},pa.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Wa,o=t[1]*Wa,i=e[1]*Wa,a=Math.sin(r),s=Math.cos(r),u=Math.sin(o),l=Math.cos(o),c=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((n=f*a)*n+(n=l*c-u*f*s)*n),u*c+l*f*s)},pa.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return pa.range(Math.ceil(i/m)*m,o,m).map(d).concat(pa.range(Math.ceil(l/v)*v,u,v).map(p)).concat(pa.range(Math.ceil(r/h)*h,n,h).filter(function(t){return ka(t%m)>Ua}).map(c)).concat(pa.range(Math.ceil(s/g)*g,a,g).filter(function(t){return ka(t%v)>Ua}).map(f))}var n,r,o,i,a,s,u,l,c,f,d,p,h=10,g=h,m=90,v=360,b=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[d(i).concat(p(u).slice(1),d(o).reverse().slice(1),p(l).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(i=+e[0][0],o=+e[1][0],l=+e[0][1],u=+e[1][1],i>o&&(e=i,i=o,o=e),l>u&&(e=l,l=u,u=e),t.precision(b)):[[i,l],[o,u]]},t.minorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),t.precision(b)):[[r,s],[n,a]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(m=+e[0],v=+e[1],t):[m,v]},t.minorStep=function(e){return arguments.length?(h=+e[0],g=+e[1],t):[h,g]},t.precision=function(e){return arguments.length?(b=+e,c=wn(s,a,90),f=kn(r,n,b),d=wn(l,u,90),p=kn(i,o,b),t):b},t.majorExtent([[-180,-90+Ua],[180,90-Ua]]).minorExtent([[-180,-80-Ua],[180,80+Ua]])},pa.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||r.apply(this,arguments),n||o.apply(this,arguments)]}}var e,n,r=Sn,o=En;return t.distance=function(){return pa.geo.distance(e||r.apply(this,arguments),n||o.apply(this,arguments))},t.source=function(n){return arguments.length?(r=n,e="function"==typeof n?null:n,t):r},t.target=function(e){return arguments.length?(o=e,n="function"==typeof e?null:e,t):o},t.precision=function(){return arguments.length?t:0},t},pa.geo.interpolate=function(t,e){return Cn(t[0]*Wa,t[1]*Wa,e[0]*Wa,e[1]*Wa)},pa.geo.length=function(t){return $s=0,pa.geo.stream(t,Zs),$s};var $s,Zs={sphere:E,point:E,lineStart:An,lineEnd:E,polygonStart:E,polygonEnd:E},Js=On(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(pa.geo.azimuthalEqualArea=function(){return fn(Js)}).raw=Js;var tu=On(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},w);(pa.geo.azimuthalEquidistant=function(){return fn(tu)}).raw=tu,(pa.geo.conicConformal=function(){return Qe(Mn)}).raw=Mn,(pa.geo.conicEquidistant=function(){return Qe(Tn)}).raw=Tn;var eu=On(function(t){return 1/t},Math.atan);(pa.geo.gnomonic=function(){return fn(eu)}).raw=eu,Dn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Va]},(pa.geo.mercator=function(){return Pn(Dn)}).raw=Dn;var nu=On(function(){return 1},Math.asin);(pa.geo.orthographic=function(){return fn(nu)}).raw=nu;var ru=On(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(pa.geo.stereographic=function(){return fn(ru)}).raw=ru,Fn.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Va]},(pa.geo.transverseMercator=function(){var t=Pn(Fn),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90])}).raw=Fn,pa.geom={},pa.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,o=Dt(n),i=Dt(r),a=t.length,s=[],u=[];for(e=0;e=0;--e)p.push(t[s[l[e]][2]]);for(e=+f;e=r&&l.x<=i&&l.y>=o&&l.y<=a?[[r,a],[i,a],[i,o],[r,o]]:[]).point=t[s]}),e}function n(t){return t.map(function(t,e){return{x:Math.round(i(t,e)/Ua)*Ua,y:Math.round(a(t,e)/Ua)*Ua,i:e}})}var r=Rn,o=In,i=r,a=o,s=du;return t?e(t):(e.links=function(t){return dr(n(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return dr(n(t)).cells.forEach(function(n,r){for(var o,i=n.site,a=n.edges.sort(Xn),s=-1,u=a.length,l=a[u-1].edge,c=l.l===i?l.r:l.l;++s=l,d=r>=c,p=d<<1|f;t.leaf=!1,t=t.nodes[p]||(t.nodes[p]=vr()),f?o=l:s=l,d?a=c:u=c,i(t,e,n,r,o,a,s,u)}var c,f,d,p,h,g,m,v,b,y=Dt(s),_=Dt(u);if(null!=e)g=e,m=n,v=r,b=o;else if(v=b=-(g=m=1/0),f=[],d=[],h=t.length,a)for(p=0;pv&&(v=c.x),c.y>b&&(b=c.y),f.push(c.x),d.push(c.y);else for(p=0;pv&&(v=x),w>b&&(b=w),f.push(x),d.push(w)}var k=v-g,S=b-m;k>S?b=m+k:v=g+S;var E=vr();if(E.add=function(t){i(E,t,+y(t,++p),+_(t,p),g,m,v,b)},E.visit=function(t){br(t,E,g,m,v,b)},E.find=function(t){return yr(E,t[0],t[1],g,m,v,b)},p=-1,null==e){for(;++p=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=mu.get(n)||gu,r=vu.get(r)||w,Cr(r(n.apply(null,ha.call(arguments,1))))},pa.interpolateHcl=Lr,pa.interpolateHsl=Ur,pa.interpolateLab=qr,pa.interpolateRound=Br,pa.transform=function(t){var e=ma.createElementNS(pa.ns.prefix.svg,"g");return(pa.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new Hr(n?n.matrix:bu)})(t)},Hr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var bu={a:1,b:0,c:0,d:1,e:0,f:0};pa.interpolateTransform=Zr,pa.layout={},pa.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n0?o=t:(n.c=null,n.t=NaN,n=null,l.end({type:"end",alpha:o=0})):t>0&&(l.start({type:"start",alpha:o=t}),n=jt(u.tick)),u):o},u.start=function(){function t(t,r){if(!n){for(n=new Array(o),u=0;u=0;)a.push(c=l[u]),c.parent=i,c.depth=i.depth+1;r&&(i.value=0),i.children=l}else r&&(i.value=+r.call(t,i,i.depth)||0),delete i.children;return fo(o,function(t){var n,o;e&&(n=t.children)&&n.sort(e),r&&(o=t.parent)&&(o.value+=t.value)}),s}var e=go,n=po,r=ho;return t.sort=function(n){return arguments.length?(e=n,t):e},t.children=function(e){return arguments.length?(n=e,t):n},t.value=function(e){return arguments.length?(r=e,t):r},t.revalue=function(e){return r&&(co(e,function(t){t.children&&(t.value=0)}),fo(e,function(e){var n;e.children||(e.value=+r.call(t,e,e.depth)||0),(n=e.parent)&&(n.value+=e.value)})),e},t},pa.layout.partition=function(){function t(e,n,r,o){var i=e.children;if(e.x=n,e.y=e.depth*o,e.dx=r,e.dy=o,i&&(a=i.length)){var a,s,u,l=-1;for(r=e.value?r/e.value:0;++ls&&(s=r),a.push(r)}for(n=0;n0)for(i=-1;++i=c[0]&&s<=c[1]&&(a=u[pa.bisect(f,s,1,p)-1],a.y+=h,a.push(t[i]));return u}var e=!0,n=Number,r=Ao,o=Eo;return t.value=function(e){return arguments.length?(n=e,t):n},t.range=function(e){return arguments.length?(r=Dt(e),t):r},t.bins=function(e){return arguments.length?(o="number"==typeof e?function(t){return Co(t,e)}:Dt(e),t):o},t.frequency=function(n){return arguments.length?(e=!!n,t):e},t},pa.layout.pack=function(){function t(t,i){var a=n.call(this,t,i),s=a[0],u=o[0],l=o[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(s.x=s.y=0,fo(s,function(t){t.r=+c(t.value)}),fo(s,Po),r){var f=r*(e?1:Math.max(2*s.r/u,2*s.r/l))/2;fo(s,function(t){t.r+=f}),fo(s,Po),fo(s,function(t){t.r-=f})}return Io(s,u/2,l/2,e?1:1/Math.max(2*s.r/u,2*s.r/l)),a}var e,n=pa.layout.hierarchy().sort(Oo),r=0,o=[1,1];return t.size=function(e){return arguments.length?(o=e,t):o},t.radius=function(n){return arguments.length?(e=null==n||"function"==typeof n?n:+n,t):e},t.padding=function(e){return arguments.length?(r=+e,t):r},lo(t,n)},pa.layout.tree=function(){function t(t,o){var c=a.call(this,t,o),f=c[0],d=e(f);if(fo(d,n),d.parent.m=-d.z,co(d,r),l)co(f,i);else{var p=f,h=f,g=f;co(f,function(t){t.xh.x&&(h=t),t.depth>g.depth&&(g=t)});var m=s(p,h)/2-p.x,v=u[0]/(h.x+s(h,p)/2+m),b=u[1]/(g.depth||1);co(f,function(t){t.x=(t.x+m)*v,t.y=t.depth*b})}return c}function e(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var o,i=e.children,a=0,s=i.length;a0&&(Uo(Bo(a,t,n),t,r),l+=r,c+=r),f+=a.m,l+=o.m,d+=u.m,c+=i.m;a&&!Lo(i)&&(i.t=a,i.m+=f-c),o&&!zo(u)&&(u.t=o,u.m+=l-d,n=t)}return n}function i(t){t.x*=u[0],t.y=t.depth*u[1]}var a=pa.layout.hierarchy().sort(null).value(null),s=No,u=[1,1],l=null;return t.separation=function(e){return arguments.length?(s=e,t):s},t.size=function(e){return arguments.length?(l=null==(u=e)?i:null,t):l?null:u},t.nodeSize=function(e){return arguments.length?(l=null==(u=e)?null:i,t):l?u:null},lo(t,a)},pa.layout.cluster=function(){function t(t,i){var a,s=e.call(this,t,i),u=s[0],l=0;fo(u,function(t){var e=t.children;e&&e.length?(t.x=Go(e),t.y=Ho(e)):(t.x=a?l+=n(t,a):0,t.y=0,a=t)});var c=Vo(u),f=Wo(u),d=c.x-n(c,f)/2,p=f.x+n(f,c)/2;return fo(u,o?function(t){t.x=(t.x-u.x)*r[0],t.y=(u.y-t.y)*r[1]}:function(t){t.x=(t.x-d)/(p-d)*r[0],t.y=(1-(u.y?t.y/u.y:1))*r[1]}),s}var e=pa.layout.hierarchy().sort(null).value(null),n=No,r=[1,1],o=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(o=null==(r=e),t):o?null:r},t.nodeSize=function(e){return arguments.length?(o=null!=(r=e),t):o?r:null},lo(t,e)},pa.layout.treemap=function(){function t(t,e){for(var n,r,o=-1,i=t.length;++o0;)c.push(a=d[u-1]),c.area+=a.area,"squarify"!==p||(s=r(c,g))<=h?(d.pop(),h=s):(c.area-=c.pop().area,o(c,g,l,!1),g=Math.min(l.dx,l.dy),c.length=c.area=0,h=1/0);c.length&&(o(c,g,l,!0),c.length=c.area=0),i.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var i,a=f(e),s=r.slice(),u=[];for(t(s,a.dx*a.dy/e.value),u.area=0;i=s.pop();)u.push(i),u.area+=i.area,null!=i.z&&(o(u,i.z?a.dx:a.dy,a,!s.length),u.length=u.area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,o=0,i=1/0,a=-1,s=t.length;++ao&&(o=n));return r*=r,e*=e,r?Math.max(e*o*h/r,r/(e*i*h)):1/0}function o(t,e,n,r){var o,i=-1,a=t.length,s=n.x,l=n.y,c=e?u(t.area/e):0;if(e==n.dx){for((r||c>n.dy)&&(c=n.dy);++in.dx)&&(c=n.dx);++i1);return t+e*n*Math.sqrt(-2*Math.log(o)/o)}},logNormal:function(){var t=pa.random.normal.apply(pa,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=pa.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;nf?0:1;if(l=Ga)return e(l,p)+(t?e(t,1-p):"")+"Z";var h,g,m,v,b,y,_,x,w,k,S,E,C=0,A=0,O=[];if((v=(+u.apply(this,arguments)||0)/2)&&(m=i===Fu?Math.sqrt(t*t+l*l):+i.apply(this,arguments),p||(A*=-1),l&&(A=at(m/l*Math.sin(v))),t&&(C=at(m/t*Math.sin(v)))),l){b=l*Math.cos(c+A),y=l*Math.sin(c+A),_=l*Math.cos(f-A),x=l*Math.sin(f-A);var M=Math.abs(f-c-2*A)<=Ba?0:1;if(A&&ki(b,y,_,x)===p^M){var T=(c+f)/2;b=l*Math.cos(T),y=l*Math.sin(T),_=x=null}}else b=y=0;if(t){w=t*Math.cos(f-C),k=t*Math.sin(f-C),S=t*Math.cos(c+C),E=t*Math.sin(c+C);var D=Math.abs(c-f+2*C)<=Ba?0:1;if(C&&ki(w,k,S,E)===1-p^D){var P=(c+f)/2;w=t*Math.cos(P),k=t*Math.sin(P),S=E=null}}else w=k=0;if(d>Ua&&(h=Math.min(Math.abs(l-t)/2,+o.apply(this,arguments)))>.001){g=tBa)+",1 "+e}function o(t,e,n,r){return"Q 0,0 "+r}var i=Sn,a=En,s=Ki,u=_i,l=xi;return t.radius=function(e){return arguments.length?(s=Dt(e),t):s},t.source=function(e){return arguments.length?(i=Dt(e),t):i},t.target=function(e){return arguments.length?(a=Dt(e),t):a},t.startAngle=function(e){return arguments.length?(u=Dt(e),t):u},t.endAngle=function(e){return arguments.length?(l=Dt(e),t):l},t},pa.svg.diagonal=function(){function t(t,o){var i=e.call(this,t,o),a=n.call(this,t,o),s=(i.y+a.y)/2,u=[i,{x:i.x,y:s},{x:a.x,y:s},a];return u=u.map(r),"M"+u[0]+"C"+u[1]+" "+u[2]+" "+u[3]}var e=Sn,n=En,r=Qi;return t.source=function(n){return arguments.length?(e=Dt(n),t):e},t.target=function(e){return arguments.length?(n=Dt(e),t):n},t.projection=function(e){return arguments.length?(r=e,t):r},t},pa.svg.diagonal.radial=function(){var t=pa.svg.diagonal(),e=Qi,n=t.projection;return t.projection=function(t){return arguments.length?n(Xi(e=t)):e},t},pa.svg.symbol=function(){function t(t,r){return(zu.get(e.call(this,t,r))||Ji)(n.call(this,t,r))}var e=Zi,n=$i;return t.type=function(n){return arguments.length?(e=Dt(n),t):e},t.size=function(e){return arguments.length?(n=Dt(e),t):n},t};var zu=pa.map({circle:Ji,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*Uu)),n=e*Uu;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/Lu),n=e*Lu/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Lu),n=e*Lu/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});pa.svg.symbolTypes=zu.keys();var Lu=Math.sqrt(3),Uu=Math.tan(30*Wa);Pa.transition=function(t){for(var e,n,r=qu||++Vu,o=oa(t),i=[],a=Bu||{time:Date.now(),ease:Dr,delay:0,duration:250},s=-1,u=this.length;++srect,.s>rect").attr("width",f[1]-f[0])}function r(t){t.select(".extent").attr("y",d[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",d[1]-d[0])}function o(){function o(){32==pa.event.keyCode&&(M||(y=null,D[0]-=f[1],D[1]-=d[1],M=2),O())}function g(){32==pa.event.keyCode&&2==M&&(D[0]+=f[1],D[1]+=d[1],M=0,O())}function m(){var t=pa.mouse(x),o=!1;_&&(t[0]+=_[0],t[1]+=_[1]),M||(pa.event.altKey?(y||(y=[(f[0]+f[1])/2,(d[0]+d[1])/2]),D[0]=f[+(t[0]6&&void 0!==arguments[6]&&arguments[6],f=[],d=o&&o>0?o:4e3;if("object"===(void 0===t?"undefined":r(t))&&!Array.isArray(t)){var p=this._firstDataPointTimestamp(t,e.from,a),h=i.default.utc(e.to),g=(0,i.default)(p),m=i.default.duration(1,n),v=((h.valueOf()-p.valueOf())/m.as("milliseconds")).toFixed(),b=v>d?(v/d).toFixed():1,y=0;for(g=s.default.startOfResolution(g,n);g.isBefore(h)||g.isSame(h);){if(y%b==0){var _=String(g.unix()),x=t[_],w=0;null!==x&&void 0!==x&&("object"===(void 0===x?"undefined":r(x))?x.hasOwnProperty(u)&&(w=x[u]):w=x),f.push({x:c?g.unix():g.valueOf(),y:l.default.normalizeGraphNumber(w)})}y+=1,g.add(m)}}return f}};exports.default=c,t.exports=exports.default},function(t,exports,e){t.exports=e(11)(81)},function(t,exports,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(exports,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(exports,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;ea.bottom?o.scrollTop=r.offsetTop+r.clientHeight-o.offsetHeight:i.tope.offsetHeight&&e.scrollHeight-e.offsetHeight-e.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"handleRequired",value:function(t,e){return!t||(e?0===t.length:0===Object.keys(t).length)}},{key:"getOptionLabel",value:function(t){return t[this.props.labelKey]}},{key:"getValueArray",value:function(t,e){var n=this,r="object"===(void 0===e?"undefined":l(e))?e:this.props;if(r.multi){if("string"==typeof t&&(t=t.split(r.delimiter)),!Array.isArray(t)){if(null===t||void 0===t)return[];t=[t]}return t.map(function(t){return n.expandValue(t,r)}).filter(function(t){return t})}var o=this.expandValue(t,r);return o?[o]:[]}},{key:"expandValue",value:function(t,e){var n=void 0===t?"undefined":l(t);if("string"!==n&&"number"!==n&&"boolean"!==n)return t;var r=e.options,o=e.valueKey;if(r)for(var i=0;ir&&this.focusOption(n[r+1])}},{key:"popValue",value:function(){var t=this.getValueArray(this.props.value);t.length&&!1!==t[t.length-1].clearableValue&&this.setValue(this.props.multi?t.slice(0,t.length-1):null)}},{key:"removeValue",value:function(t){var e=this.getValueArray(this.props.value);this.setValue(e.filter(function(e){return e!==t})),this.focus()}},{key:"clearValue",value:function(t){t&&"mousedown"===t.type&&0!==t.button||(t.stopPropagation(),t.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:this.handleInputValueChange("")},this.focus))}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(t){this.setState({focusedOption:t})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(t){var e=this._visibleOptions.map(function(t,e){return{option:t,index:e}}).filter(function(t){return!t.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(e.length?e["next"===t?0:e.length-1].option:null)});if(e.length){for(var n=-1,r=0;r0?n-=1:n=e.length-1;else if("start"===t)n=0;else if("end"===t)n=e.length-1;else if("page_up"===t){var o=n-this.props.pageSize;n=o<0?0:o}else if("page_down"===t){var o=n+this.props.pageSize;n=o>e.length-1?e.length-1:o}-1===n&&(n=0),this.setState({focusedIndex:e[n].index,focusedOption:e[n].option})}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"getInputValue",value:function(){return this.state.inputValue}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return d.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},d.default.createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(t,e){var n=this,r=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!t.length)return this.state.inputValue?null:d.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var i=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?t.map(function(t,e){return d.default.createElement(o,{id:n._instancePrefix+"-value-"+e,instancePrefix:n._instancePrefix,disabled:n.props.disabled||!1===t.clearableValue,key:"value-"+e+"-"+t[n.props.valueKey],onClick:i,onRemove:n.removeValue,value:t},r(t,e),d.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(e&&(i=null),d.default.createElement(o,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:i,value:t[0]},r(t[0])))}},{key:"renderInput",value:function(t,e){var n,i=this,a=(0,_.default)("Select-input",this.props.inputProps.className),s=!!this.state.isOpen,l=(0,_.default)((n={},o(n,this._instancePrefix+"-list",s),o(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),c=u({},this.props.inputProps,{role:"combobox","aria-expanded":""+s,"aria-owns":l,"aria-haspopup":""+s,"aria-activedescendant":s?this._instancePrefix+"-option-"+e:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:a,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(t){return i.input=t},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(c);if(this.props.disabled||!this.props.searchable){var f=this.props.inputProps,p=(f.inputClassName,r(f,["inputClassName"])),h=(0,_.default)(o({},this._instancePrefix+"-list",s));return d.default.createElement("div",u({},p,{role:"combobox","aria-expanded":s,"aria-owns":h,"aria-activedescendant":s?this._instancePrefix+"-option-"+e:this._instancePrefix+"-value",className:a,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(t){return i.input=t},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?d.default.createElement(b.default,u({},c,{minWidth:"5"})):d.default.createElement("div",{className:a},d.default.createElement("input",c))}},{key:"renderClear",value:function(){if(!(!this.props.clearable||void 0===this.props.value||null===this.props.value||this.props.multi&&!this.props.value.length||this.props.disabled||this.props.isLoading)){var t=this.props.clearRenderer();return d.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},t)}}},{key:"renderArrow",value:function(){var t=this.handleMouseDownOnArrow,e=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:t,isOpen:e});return d.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:t},n)}},{key:"filterOptions",value:function(t){var e=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){return("function"==typeof this.props.filterOptions?this.props.filterOptions:S.default)(n,e,t,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n}},{key:"onOptionRef",value:function(t,e){e&&(this.focused=t)}},{key:"renderMenu",value:function(t,e,n){return t&&t.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:t,selectValue:this.selectValue,valueArray:e,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?d.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(t){var e=this;if(this.props.name){if(this.props.joinValues){var n=t.map(function(t){return F(t[e.props.valueKey])}).join(this.props.delimiter);return d.default.createElement("input",{type:"hidden",ref:function(t){return e.value=t},name:this.props.name,value:n,disabled:this.props.disabled})}return t.map(function(t,n){return d.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:e.props.name,value:F(t[e.props.valueKey]),disabled:e.props.disabled})})}}},{key:"getFocusableOptionIndex",value:function(t){var e=this._visibleOptions;if(!e.length)return null;var n=this.props.valueKey,r=this.state.focusedOption||t;if(r&&!r.disabled){var o=-1;if(e.some(function(t,e){var i=t[n]===r[n];return i&&(o=e),i}),-1!==o)return o}for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0,clientOffset:null},n=e.publishSource,r=e.clientOffset,o=e.getSourceClientOffset;(0,c.default)((0,d.default)(t),"Expected sourceIds to be an array.");var i=this.getMonitor(),a=this.getRegistry();(0,c.default)(!i.isDragging(),"Cannot call beginDrag while dragging.");for(var s=0;s=0;l--)if(i.canDragSource(t[l])){u=t[l];break}if(null!==u){var f=null;r&&((0,c.default)("function"==typeof o,"When clientOffset is provided, getSourceClientOffset must be a function."),f=o(u));var p=a.getSource(u),g=p.beginDrag(i,u);(0,c.default)((0,h.default)(g),"Item must be an object."),a.pinSource(u);var m=a.getSourceType(u);return{type:v,itemType:m,item:g,sourceId:u,clientOffset:r,sourceClientOffset:f,isSourcePublic:n}}}function o(){if(this.getMonitor().isDragging())return{type:b}}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.clientOffset,r=void 0===n?null:n;(0,c.default)((0,d.default)(t),"Expected targetIds to be an array.");var o=t.slice(0),i=this.getMonitor(),a=this.getRegistry();(0,c.default)(i.isDragging(),"Cannot call hover while not dragging."),(0,c.default)(!i.didDrop(),"Cannot call hover after drop.");for(var s=0;s=0;p--){var h=o[p],g=a.getTargetType(h);(0,m.default)(g,f)||o.splice(p,1)}for(var v=0;v0&&void 0!==arguments[0]?arguments[0]:{},n=this.getMonitor(),r=this.getRegistry();(0,c.default)(n.isDragging(),"Cannot call drop while not dragging."),(0,c.default)(!n.didDrop(),"Cannot call drop twice during one drag operation.");var o=n.getTargetIds().filter(n.canDropOnTarget,n);o.reverse(),o.forEach(function(o,i){var a=r.getTarget(o),s=a.drop(n,o);(0,c.default)(void 0===s||(0,h.default)(s),"Drop result must either be an object or undefined."),void 0===s&&(s=0===i?{}:n.getDropResult()),t.store.dispatch({type:_,dropResult:u({},e,s)})})}function s(){var t=this.getMonitor(),e=this.getRegistry();(0,c.default)(t.isDragging(),"Cannot call endDrag while not dragging.");var n=t.getSourceId();return e.getSource(n,!0).endDrag(t,n),e.unpinSource(),{type:x}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.END_DRAG=exports.DROP=exports.HOVER=exports.PUBLISH_DRAG_SOURCE=exports.BEGIN_DRAG=void 0;var u=Object.assign||function(t){for(var e=1;ee-o&&(i=new RegExp("\\.?0{1,"+(r-(e-o))+"}$"),s=s.replace(i,"")),s}function i(t,e,n){return 0===t._value&&null!==_.zeroFormat?_.zeroFormat:null===t._value&&null!==_.nullFormat?_.nullFormat:e.indexOf("$")>-1?a(t,e,n):e.indexOf("%")>-1?s(t,e,n):e.indexOf(":")>-1?c(t):e.indexOf("b")>-1||e.indexOf("ib")>-1?u(t,e,n):e.indexOf("o")>-1?l(t,e,n):f(t._value,e,n)}function a(t,e,n){var r,o,i=e.indexOf("$"),a=e.indexOf("("),s=e.indexOf("-"),u="";return e.indexOf(" $")>-1?(u=" ",e=e.replace(" $","")):e.indexOf("$ ")>-1?(u=" ",e=e.replace("$ ","")):e=e.replace("$",""),o=f(t._value,e,n),i<=1?o.indexOf("(")>-1||o.indexOf("-")>-1?(o=o.split(""),r=1,(i-1?(o=o.split(""),o.splice(-1,0,u+b[_.currentLanguage].currency.symbol),o=o.join("")):o=o+u+b[_.currentLanguage].currency.symbol,o}function s(t,e,n){var r,o="",i=100*t._value;return e.indexOf(" %")>-1?(o=" ",e=e.replace(" %","")):e=e.replace("%",""),r=f(i,e,n),r.indexOf(")")>-1?(r=r.split(""),r.splice(-1,0,o+"%"),r=r.join("")):r=r+o+"%",r}function u(t,e,n){var r,o,i,a=e.indexOf("ib")>-1?x.iec:x.bytes,s=t._value,u="";for(e.indexOf(" b")>-1||e.indexOf(" ib")>-1?(u=" ",e=e.replace(" ib","").replace(" b","")):e=e.replace("ib","").replace("b",""),r=0;r<=a.length;r++)if(o=Math.pow(1024,r),i=Math.pow(1024,r+1),null===s||0===s||s>=o&&s0&&(s/=o);break}return f(s,e,n)+u}function l(t,e,n){var r="";return e.indexOf(" o")>-1?(r=" ",e=e.replace(" o","")):e=e.replace("o",""),r+=b[_.currentLanguage].ordinal(t._value),f(t._value,e,n)+r}function c(t){var e=Math.floor(t._value/60/60),n=Math.floor((t._value-60*e*60)/60),r=Math.round(t._value-60*e*60-60*n);return e+":"+(n<10?"0"+n:n)+":"+(r<10?"0"+r:r)}function f(t,e,n){var r,i,a,s,u=!1,l=!1,c=!1,f="",d=!1,p=!1,h=!1,g=!1,m=!1,v="",y=!1;return null===t&&(t=0),r=Math.abs(t),e.indexOf("(")>-1?(u=!0,e=e.slice(1,-1)):e.indexOf("+")>-1&&(l=!0,e=e.replace(/\+/g,"")),e.indexOf("a")>-1&&(d=e.indexOf("aK")>=0,p=e.indexOf("aM")>=0,h=e.indexOf("aB")>=0,g=e.indexOf("aT")>=0,m=d||p||h||g,e.indexOf(" a")>-1&&(f=" "),e=e.replace(new RegExp(f+"a[KMBT]?"),""),r>=Math.pow(10,12)&&!m||g?(f+=b[_.currentLanguage].abbreviations.trillion,t/=Math.pow(10,12)):r=Math.pow(10,9)&&!m||h?(f+=b[_.currentLanguage].abbreviations.billion,t/=Math.pow(10,9)):r=Math.pow(10,6)&&!m||p?(f+=b[_.currentLanguage].abbreviations.million,t/=Math.pow(10,6)):(r=Math.pow(10,3)&&!m||d)&&(f+=b[_.currentLanguage].abbreviations.thousand,t/=Math.pow(10,3))),e.indexOf("[.]")>-1&&(c=!0,e=e.replace("[.]",".")),i=t.toString().split(".")[0],a=e.split(".")[1],s=e.indexOf(","),a?(a.indexOf("[")>-1?(a=a.replace("]",""),a=a.split("["),v=o(t,a[0].length+a[1].length,n,a[1].length)):v=o(t,a.length,n),i=v.split(".")[0],v=v.indexOf(".")>-1?b[_.currentLanguage].delimiters.decimal+v.split(".")[1]:"",c&&0===Number(v.slice(1))&&(v="")):i=o(t,null,n),i.indexOf("-")>-1&&(i=i.slice(1),y=!0),s>-1&&(i=i.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+b[_.currentLanguage].delimiters.thousands)),0===e.indexOf(".")&&(i=""),(u&&y?"(":"")+(!u&&y?"-":"")+(!y&&l?"+":"")+i+v+(f||"")+(u&&y?")":"")}function d(t,e){var n,r,o,i,a,s,u=e,l=!1;if(e.indexOf(":")>-1)s=p(e);else if(e===_.zeroFormat||e===_.nullFormat)s=0;else{for("."!==b[_.currentLanguage].delimiters.decimal&&(e=e.replace(/\./g,"").replace(b[_.currentLanguage].delimiters.decimal,".")),n=new RegExp("[^a-zA-Z]"+b[_.currentLanguage].abbreviations.thousand+"(?:\\)|(\\"+b[_.currentLanguage].currency.symbol+")?(?:\\))?)?$"),r=new RegExp("[^a-zA-Z]"+b[_.currentLanguage].abbreviations.million+"(?:\\)|(\\"+b[_.currentLanguage].currency.symbol+")?(?:\\))?)?$"),o=new RegExp("[^a-zA-Z]"+b[_.currentLanguage].abbreviations.billion+"(?:\\)|(\\"+b[_.currentLanguage].currency.symbol+")?(?:\\))?)?$"),i=new RegExp("[^a-zA-Z]"+b[_.currentLanguage].abbreviations.trillion+"(?:\\)|(\\"+b[_.currentLanguage].currency.symbol+")?(?:\\))?)?$"),a=1;a<=x.bytes.length&&!(l=(e.indexOf(x.bytes[a])>-1||e.indexOf(x.iec[a])>-1)&&Math.pow(1024,a));a++);s=l||1,s*=u.match(n)?Math.pow(10,3):1,s*=u.match(r)?Math.pow(10,6):1,s*=u.match(o)?Math.pow(10,9):1,s*=u.match(i)?Math.pow(10,12):1,s*=e.indexOf("%")>-1?.01:1,s*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,s*=Number(e.replace(/[^0-9\.]+/g,"")),s=l?Math.ceil(s):s}return t._value=s,t._value}function p(t){var e=t.split(":"),n=0;return 3===e.length?(n+=60*Number(e[0])*60,n+=60*Number(e[1]),n+=Number(e[2])):2===e.length&&(n+=60*Number(e[0]),n+=Number(e[1])),Number(n)}function h(t,e){b[t]=e}function g(t){var e=t.toString().split(".");return e.length<2?1:Math.pow(10,e[1].length)}function m(){return Array.prototype.slice.call(arguments).reduce(function(t,e){var n=g(t),r=g(e);return n>r?n:r},-1/0)}var v,b={},y={currentLanguage:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0"},_={currentLanguage:y.currentLanguage,zeroFormat:y.zeroFormat,nullFormat:y.nullFormat,defaultFormat:y.defaultFormat},x={bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],iec:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]};v=function(t){return t=v.isNumeral(t)?t.value():0===t||void 0===t?0:null===t?null:Number(t)?Number(t):v.fn.unformat(t),new e(t)},v.version="1.5.6",v.isNumeral=function(t){return t instanceof e},v.language=function(t,e){if(!t)return _.currentLanguage;if((t=t.toLowerCase())&&!e){if(!b[t])throw new Error("Unknown language : "+t);_.currentLanguage=t}return!e&&b[t]||h(t,e),v},v.reset=function(){for(var t in y)_[t]=y[t]},v.languageData=function(t){if(!t)return b[_.currentLanguage];if(!b[t])throw new Error("Unknown language : "+t);return b[t]},v.language("en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"$"}}),v.zeroFormat=function(t){_.zeroFormat="string"==typeof t?t:null},v.nullFormat=function(t){_.nullFormat="string"==typeof t?t:null},v.defaultFormat=function(t){_.defaultFormat="string"==typeof t?t:"0.0"},v.validate=function(t,e){var n,r,o,i,a,s,u,l;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),t=t.trim(),t.match(/^\d+$/))return!0;if(""===t)return!1;try{u=v.languageData(e)}catch(t){u=v.languageData(v.language())}return o=u.currency.symbol,a=u.abbreviations,n=u.delimiters.decimal,r="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,(null===(l=t.match(/^[^\d]+/))||(t=t.substr(1),l[0]===o))&&((null===(l=t.match(/[^\d]+$/))||(t=t.slice(0,-1),l[0]===a.thousand||l[0]===a.million||l[0]===a.billion||l[0]===a.trillion))&&(s=new RegExp(r+"{2}"),!t.match(/[^\d.,]/g)&&(i=t.split(n),!(i.length>2)&&(i.length<2?!!i[0].match(/^\d+.*\d$/)&&!i[0].match(s):1===i[0].length?!!i[0].match(/^\d+$/)&&!i[0].match(s)&&!!i[1].match(/^\d+$/):!!i[0].match(/^\d+.*\d$/)&&!i[0].match(s)&&!!i[1].match(/^\d+$/)))))},Array.prototype.reduce||(Array.prototype.reduce=function(t){"use strict";if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var e,n=Object(this),r=n.length>>>0,o=0;if(2===arguments.length)e=arguments[1];else{for(;o=r)throw new TypeError("Reduce of empty array with no initial value");e=n[o++]}for(;o0){var e=t.data[0].x,n=t.data[0].y;if("number"!=typeof e||"number"!=typeof n&&null!==n)throw"x and y properties of points should be numbers instead of "+typeof e+" and "+typeof n}if(t.data.length>=3&&(t.data[2].xthis.window.xMax&&(e=!1),e}return!0},this.onUpdate=function(t){this.updateCallbacks.push(t)},this.onConfigure=function(t){this.configureCallbacks.push(t)},this.registerRenderer=function(t){this._renderers=this._renderers||{},this._renderers[t.name]=t},this.configure=function(t){this.config=this.config||{},(t.width||t.height)&&this.setSize(t),e.keys(this.defaults).forEach(function(e){this.config[e]=e in t?t[e]:e in this?this[e]:this.defaults[e]},this),e.keys(this.config).forEach(function(t){this[t]=this.config[t]},this),"stack"in t&&(t.unstack=!t.stack);var n=t.renderer||this.renderer&&this.renderer.name||"stack";this.setRenderer(n,t),this.configureCallbacks.forEach(function(e){e(t)})},this.setRenderer=function(t,e){if("function"==typeof t)this.renderer=new t({graph:r}),this.registerRenderer(this.renderer);else{if(!this._renderers[t])throw"couldn't find renderer "+t;this.renderer=this._renderers[t]}"object"==typeof e&&this.renderer.configure(e)},this.setSize=function(t){if(t=t||{},"undefined"!=typeof window)var e=window.getComputedStyle(this.element,null),n=parseInt(e.getPropertyValue("width"),10),r=parseInt(e.getPropertyValue("height"),10);this.width=t.width||n||400,this.height=t.height||r||250,this.vis&&this.vis.attr("width",this.width).attr("height",this.height)},this.initialize(n)},e.namespace("Rickshaw.Fixtures.Color"),e.Fixtures.Color=function(){this.schemes={},this.schemes.spectrum14=["#ecb796","#dc8f70","#b2a470","#92875a","#716c49","#d2ed82","#bbe468","#a1d05d","#e7cbe6","#d8aad6","#a888c2","#9dc2d3","#649eb9","#387aa3"].reverse(),this.schemes.spectrum2000=["#57306f","#514c76","#646583","#738394","#6b9c7d","#84b665","#a7ca50","#bfe746","#e2f528","#fff726","#ecdd00","#d4b11d","#de8800","#de4800","#c91515","#9a0000","#7b0429","#580839","#31082b"],this.schemes.spectrum2001=["#2f243f","#3c2c55","#4a3768","#565270","#6b6b7c","#72957f","#86ad6e","#a1bc5e","#b8d954","#d3e04e","#ccad2a","#cc8412","#c1521d","#ad3821","#8a1010","#681717","#531e1e","#3d1818","#320a1b"],this.schemes.classic9=["#423d4f","#4a6860","#848f39","#a2b73c","#ddcb53","#c5a32f","#7d5836","#963b20","#7c2626","#491d37","#2f254a"].reverse(),this.schemes.httpStatus={503:"#ea5029",502:"#d23f14",500:"#bf3613",410:"#efacea",409:"#e291dc",403:"#f457e8",408:"#e121d2",401:"#b92dae",405:"#f47ceb",404:"#a82a9f",400:"#b263c6",301:"#6fa024",302:"#87c32b",307:"#a0d84c",304:"#28b55c",200:"#1a4f74",206:"#27839f",201:"#52adc9",202:"#7c979f",203:"#a5b8bd",204:"#c1cdd1"},this.schemes.colorwheel=["#b5b6a9","#858772","#785f43","#96557e","#4682b4","#65b9ac","#73c03a","#cb513a"].reverse(),this.schemes.cool=["#5e9d2f","#73c03a","#4682b4","#7bc3b8","#a9884e","#c1b266","#a47493","#c09fb5"],this.schemes.munin=["#00cc00","#0066b3","#ff8000","#ffcc00","#330099","#990099","#ccff00","#ff0000","#808080","#008f00","#00487d","#b35a00","#b38f00","#6b006b","#8fb300","#b30000","#bebebe","#80ff80","#80c9ff","#ffc080","#ffe680","#aa80ff","#ee00cc","#ff8080","#666600","#ffbfff","#00ffcc","#cc6699","#999900"]},e.namespace("Rickshaw.Fixtures.RandomData"),e.Fixtures.RandomData=function(t){t=t||1;var e=200,n=Math.floor((new Date).getTime()/1e3);this.addData=function(r){var o=100*Math.random()+15+e,i=r[0].length,a=1;r.forEach(function(e){var r=20*Math.random(),s=o/25+a+++15*(Math.cos(i*a*11/960)+2)+7*(Math.cos(i/7)+2)+1*(Math.cos(i/17)+2);e.push({x:i*t+n,y:s+r})}),e=.85*o},this.removeData=function(e){e.forEach(function(t){t.shift()}),n+=t}},e.namespace("Rickshaw.Fixtures.Time"),e.Fixtures.Time=function(){var e=this;this.months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],this.units=[{name:"decade",seconds:315576e3,formatter:function(t){return 10*parseInt(t.getUTCFullYear()/10,10)}},{name:"year",seconds:31557600,formatter:function(t){return t.getUTCFullYear()}},{name:"month",seconds:2635200,formatter:function(t){return e.months[t.getUTCMonth()]}},{name:"week",seconds:604800,formatter:function(t){return e.formatDate(t)}},{name:"day",seconds:86400,formatter:function(t){return t.getUTCDate()}},{name:"6 hour",seconds:21600,formatter:function(t){return e.formatTime(t)}},{name:"hour",seconds:3600,formatter:function(t){return e.formatTime(t)}},{name:"15 minute",seconds:900,formatter:function(t){return e.formatTime(t)}},{name:"minute",seconds:60,formatter:function(t){return t.getUTCMinutes()+"m"}},{name:"15 second",seconds:15,formatter:function(t){return t.getUTCSeconds()+"s"}},{name:"second",seconds:1,formatter:function(t){return t.getUTCSeconds()+"s"}},{name:"decisecond",seconds:.1,formatter:function(t){return t.getUTCMilliseconds()+"ms"}},{name:"centisecond",seconds:.01,formatter:function(t){return t.getUTCMilliseconds()+"ms"}}],this.unit=function(t){return this.units.filter(function(e){return t==e.name}).shift()},this.formatDate=function(e){return t.time.format("%b %e")(e)},this.formatTime=function(t){return t.toUTCString().match(/(\d+:\d+):/)[1]},this.ceil=function(t,e){var n,r;if("month"==e.name){if(n=new Date(1e3*t),Date.UTC(n.getUTCFullYear(),n.getUTCMonth())/1e3==t)return t;r=n.getUTCFullYear();var o=n.getUTCMonth();return 11==o?(o=0,r+=1):o+=1,Date.UTC(r,o)/1e3}return"year"==e.name?(n=new Date(1e3*t),Date.UTC(n.getUTCFullYear(),0)/1e3==t?t:(r=n.getUTCFullYear()+1,Date.UTC(r,0)/1e3)):Math.ceil(t/e.seconds)*e.seconds}},e.namespace("Rickshaw.Fixtures.Time.Local"),e.Fixtures.Time.Local=function(){var e=this;this.months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],this.units=[{name:"decade",seconds:315576e3,formatter:function(t){return 10*parseInt(t.getFullYear()/10,10)}},{name:"year",seconds:31557600,formatter:function(t){return t.getFullYear()}},{name:"month",seconds:2635200,formatter:function(t){return e.months[t.getMonth()]}},{name:"week",seconds:604800,formatter:function(t){return e.formatDate(t)}},{name:"day",seconds:86400,formatter:function(t){return t.getDate()}},{name:"6 hour",seconds:21600,formatter:function(t){return e.formatTime(t)}},{name:"hour",seconds:3600,formatter:function(t){return e.formatTime(t)}},{name:"15 minute",seconds:900,formatter:function(t){return e.formatTime(t)}},{name:"minute",seconds:60,formatter:function(t){return t.getMinutes()}},{name:"15 second",seconds:15,formatter:function(t){return t.getSeconds()+"s"}},{name:"second",seconds:1,formatter:function(t){return t.getSeconds()+"s"}},{name:"decisecond",seconds:.1,formatter:function(t){return t.getMilliseconds()+"ms"}},{name:"centisecond",seconds:.01,formatter:function(t){return t.getMilliseconds()+"ms"}}],this.unit=function(t){return this.units.filter(function(e){return t==e.name}).shift()},this.formatDate=function(e){return t.time.format("%b %e")(e)},this.formatTime=function(t){return t.toString().match(/(\d+:\d+):/)[1]},this.ceil=function(t,e){var n,r,o;if("day"==e.name){var i=new Date(1e3*(t+e.seconds-1)),a=new Date(0);return a.setFullYear(i.getFullYear()),a.setMonth(i.getMonth()),a.setDate(i.getDate()),a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0),a.getTime()/1e3}if("month"==e.name){if(n=new Date(1e3*t),new Date(n.getFullYear(),n.getMonth()).getTime()/1e3==t)return t;r=n.getFullYear();var s=n.getMonth();return 11==s?(s=0,r+=1):s+=1,new Date(r,s).getTime()/1e3}return"year"==e.name?(n=new Date(1e3*t),new Date(n.getUTCFullYear(),0).getTime()/1e3==t?t:(r=n.getFullYear()+1,new Date(r,0).getTime()/1e3)):(o=60*new Date(1e3*t).getTimezoneOffset(),Math.ceil((t-o)/e.seconds)*e.seconds+o)}},e.namespace("Rickshaw.Fixtures.Number"),e.Fixtures.Number.formatKMBT=function(t){var e=Math.abs(t);return e>=1e12?t/1e12+"T":e>=1e9?t/1e9+"B":e>=1e6?t/1e6+"M":e>=1e3?t/1e3+"K":e<1&&e>0?t.toFixed(2):0===e?"":t},e.Fixtures.Number.formatBase1024KMGTP=function(t){var e=Math.abs(t);return e>=0x4000000000000?t/0x4000000000000+"P":e>=1099511627776?t/1099511627776+"T":e>=1073741824?t/1073741824+"G":e>=1048576?t/1048576+"M":e>=1024?t/1024+"K":e<1&&e>0?t.toFixed(2):0===e?"":t},e.namespace("Rickshaw.Color.Palette"),e.Color.Palette=function(n){var r=new e.Fixtures.Color;if(n=n||{},this.schemes={},this.scheme=r.schemes[n.scheme]||n.scheme||r.schemes.colorwheel,this.runningIndex=0,this.generatorIndex=0,n.interpolatedStopCount){var o,i,a=this.scheme.length-1,s=[];for(o=0;on.graph.x.range()[1])return e.element&&(e.line.classList.add("offscreen"),e.element.style.display="none"),void e.boxes.forEach(function(t){t.rangeElement&&t.rangeElement.classList.add("offscreen")});if(!e.element){var o=e.element=document.createElement("div");o.classList.add("annotation"),this.elements.timeline.appendChild(o),o.addEventListener("click",function(t){o.classList.toggle("active"),e.line.classList.toggle("active"),e.boxes.forEach(function(t){t.rangeElement&&t.rangeElement.classList.toggle("active")})},!1)}e.element.style.left=r+"px",e.element.style.display="block",e.boxes.forEach(function(t){var o=t.element;if(o||(o=t.element=document.createElement("div"),o.classList.add("content"),o.innerHTML=t.content,e.element.appendChild(o),e.line=document.createElement("div"),e.line.classList.add("annotation_line"),n.graph.element.appendChild(e.line),t.end&&(t.rangeElement=document.createElement("div"),t.rangeElement.classList.add("annotation_range"),n.graph.element.appendChild(t.rangeElement))),t.end){var i=r,a=Math.min(n.graph.x(t.end),n.graph.x.range()[1]);i>a&&(a=r,i=Math.max(n.graph.x(t.end),n.graph.x.range()[0]));var s=a-i;t.rangeElement.style.left=i+"px",t.rangeElement.style.width=s+"px",t.rangeElement.classList.remove("offscreen")}e.line.classList.remove("offscreen"),e.line.style.left=r+"px"})},this)},this.graph.onUpdate(function(){n.update()})},e.namespace("Rickshaw.Graph.Axis.Time"),e.Graph.Axis.Time=function(t){var n=this;this.graph=t.graph,this.elements=[],this.ticksTreatment=t.ticksTreatment||"plain",this.fixedTimeUnit=t.timeUnit;var r=t.timeFixture||new e.Fixtures.Time;this.appropriateTimeUnit=function(){var t,e=r.units,n=this.graph.x.domain(),o=n[1]-n[0];return e.forEach(function(e){Math.floor(o/e.seconds)>=2&&(t=t||e)}),t||r.units[r.units.length-1]},this.tickOffsets=function(){for(var t=this.graph.x.domain(),e=this.fixedTimeUnit||this.appropriateTimeUnit(),n=Math.ceil((t[1]-t[0])/e.seconds),o=t[0],i=[],a=0;an.graph.x.range()[1])){var e=document.createElement("div");e.style.left=n.graph.x(t.value)+"px",e.classList.add("x_tick"),e.classList.add(n.ticksTreatment);var r=document.createElement("div");r.classList.add("title"),r.innerHTML=t.unit.formatter(new Date(1e3*t.value)),e.appendChild(r),n.graph.element.appendChild(e),n.elements.push(e)}})},this.graph.onUpdate(function(){n.render()})},e.namespace("Rickshaw.Graph.Axis.X"),e.Graph.Axis.X=function(e){var n=this;this.initialize=function(e){this.graph=e.graph,this.orientation=e.orientation||"top",this.pixelsPerTick=e.pixelsPerTick||75,e.ticks&&(this.staticTicks=e.ticks),e.tickValues&&(this.tickValues=e.tickValues),this.tickSize=e.tickSize||4,this.ticksTreatment=e.ticksTreatment||"plain",e.element?(this.element=e.element,this._discoverSize(e.element,e),this.vis=t.select(e.element).append("svg:svg").attr("height",this.height).attr("width",this.width).attr("class","rickshaw_graph x_axis_d3"),this.element=this.vis[0][0],this.element.style.position="relative",this.setSize({width:e.width,height:e.height})):this.vis=this.graph.vis,this.graph.onUpdate(function(){n.render()})},this.setSize=function(t){if(t=t||{},this.element){this._discoverSize(this.element.parentNode,t),this.vis.attr("height",this.height).attr("width",1.1*this.width);var e=Math.floor(.1*this.width/2);this.element.style.left=-1*e+"px"}},this.render=function(){void 0!==this._renderWidth&&this.graph.width!==this._renderWidth&&this.setSize({auto:!0});var n=t.svg.axis().scale(this.graph.x).orient(this.orientation);n.tickFormat(e.tickFormat||function(t){return t}),this.tickValues&&n.tickValues(this.tickValues),this.ticks=this.staticTicks||Math.floor(this.graph.width/this.pixelsPerTick);var r,o=Math.floor(.1*this.width/2)||0,i="bar"==this.graph.renderer.name&&Math.ceil(.95*this.graph.width/this.graph.series[0].data.length/2)||0;if("top"==this.orientation){r="translate("+(o+i)+","+(this.height||this.graph.height)+")"}else r="translate("+(o+i)+", 0)";this.element&&this.vis.selectAll("*").remove(),this.vis.append("svg:g").attr("class",["x_ticks_d3",this.ticksTreatment].join(" ")).attr("transform",r).call(n.ticks(this.ticks).tickSubdivide(0).tickSize(this.tickSize));var a=("bottom"==this.orientation?1:-1)*this.graph.height;this.graph.vis.append("svg:g").attr("class","x_grid_d3").call(n.ticks(this.ticks).tickSubdivide(0).tickSize(a)).selectAll("text").each(function(){this.parentNode.setAttribute("data-x-value",this.textContent)}),this._renderHeight=this.graph.height},this._discoverSize=function(t,e){if("undefined"!=typeof window){var n=window.getComputedStyle(t,null),r=parseInt(n.getPropertyValue("height"),10);if(!e.auto)var o=parseInt(n.getPropertyValue("width"),10)}this.width=1.1*(e.width||o||this.graph.width),this.height=e.height||r||40},this.initialize(e)},e.namespace("Rickshaw.Graph.Axis.Y"),e.Graph.Axis.Y=e.Class.create({initialize:function(e){this.graph=e.graph,this.orientation=e.orientation||"right",this.pixelsPerTick=e.pixelsPerTick||75,e.ticks&&(this.staticTicks=e.ticks),e.tickValues&&(this.tickValues=e.tickValues),this.tickSize=e.tickSize||4,this.ticksTreatment=e.ticksTreatment||"plain",this.tickFormat=e.tickFormat||function(t){return t},this.berthRate=.1,e.element?(this.element=e.element,this.vis=t.select(e.element).append("svg:svg").attr("class","rickshaw_graph y_axis"),this.element=this.vis[0][0],this.element.style.position="relative",this.setSize({width:e.width,height:e.height})):this.vis=this.graph.vis;var n=this;this.graph.onUpdate(function(){n.render()})},setSize:function(t){if(t=t||{},this.element){if("undefined"!=typeof window){var e=window.getComputedStyle(this.element.parentNode,null),n=parseInt(e.getPropertyValue("width"),10);if(!t.auto)var r=parseInt(e.getPropertyValue("height"),10)}this.width=t.width||n||this.graph.width*this.berthRate,this.height=t.height||r||this.graph.height,this.vis.attr("width",this.width).attr("height",this.height*(1+this.berthRate));var o=this.height*this.berthRate;"left"==this.orientation&&(this.element.style.top=-1*o+"px")}},render:function(){void 0!==this._renderHeight&&this.graph.height!==this._renderHeight&&this.setSize({auto:!0}),this.ticks=this.staticTicks||Math.floor(this.graph.height/this.pixelsPerTick);var t=this._drawAxis(this.graph.y);this._drawGrid(t),this._renderHeight=this.graph.height},_drawAxis:function(e){var n=t.svg.axis().scale(e).orient(this.orientation);if(n.tickFormat(this.tickFormat),this.tickValues&&n.tickValues(this.tickValues),"left"==this.orientation)var r=this.height*this.berthRate,o="translate("+this.width+", "+r+")";return this.element&&this.vis.selectAll("*").remove(),this.vis.append("svg:g").attr("class",["y_ticks",this.ticksTreatment].join(" ")).attr("transform",o).call(n.ticks(this.ticks).tickSubdivide(0).tickSize(this.tickSize)),n},_drawGrid:function(t){var e=("right"==this.orientation?1:-1)*this.graph.width;this.graph.vis.append("svg:g").attr("class","y_grid").call(t.ticks(this.ticks).tickSubdivide(0).tickSize(e)).selectAll("text").each(function(){this.parentNode.setAttribute("data-y-value",this.textContent)})}}),e.namespace("Rickshaw.Graph.Axis.Y.Scaled"),e.Graph.Axis.Y.Scaled=e.Class.create(e.Graph.Axis.Y,{initialize:function($super,t){if(void 0===t.scale)throw new Error("Scaled requires scale");this.scale=t.scale,void 0===t.grid?this.grid=!0:this.grid=t.grid,$super(t)},_drawAxis:function($super,e){var n=this.scale.domain(),r=this.graph.renderer.domain().y,o=[Math.min.apply(Math,n),Math.max.apply(Math,n)],i=t.scale.linear().domain([0,1]).range(o),a=[i(r[0]),i(r[1])],s=t.scale.linear().domain(o).range(a);return $super(this.scale.copy().domain(n.map(s)).range(e.range()))},_drawGrid:function($super,t){this.grid&&$super(t)}}),e.namespace("Rickshaw.Graph.Behavior.Series.Highlight"),e.Graph.Behavior.Series.Highlight=function(e){this.graph=e.graph,this.legend=e.legend;var n=this,r={},o=null,i=e.disabledColor||function(e){return t.interpolateRgb(e,t.rgb("#d8d8d8"))(.8).toString()};this.addHighlightEvents=function(t){t.element.addEventListener("mouseover",function(e){o||(o=t,n.legend.lines.forEach(function(e){if(t!==e)r[e.series.name]=r[e.series.name]||e.series.color,e.series.color=i(e.series.color);else if(n.graph.renderer.unstack&&(!e.series.renderer||e.series.renderer.unstack)){var o=n.graph.series.indexOf(e.series);e.originalIndex=o;var a=n.graph.series.splice(o,1)[0];n.graph.series.push(a)}}),n.graph.update())},!1),t.element.addEventListener("mouseout",function(e){o&&(o=null,n.legend.lines.forEach(function(e){if(t===e&&e.hasOwnProperty("originalIndex")){var o=n.graph.series.pop();n.graph.series.splice(e.originalIndex,0,o),delete e.originalIndex}r[e.series.name]&&(e.series.color=r[e.series.name])}),n.graph.update())},!1)},this.legend&&this.legend.lines.forEach(function(t){n.addHighlightEvents(t)})},e.namespace("Rickshaw.Graph.Behavior.Series.Order"),e.Graph.Behavior.Series.Order=function(t){this.graph=t.graph,this.legend=t.legend;var e=this;if(void 0===window.jQuery)throw"couldn't find jQuery at window.jQuery";if(void 0===window.jQuery.ui)throw"couldn't find jQuery UI at window.jQuery.ui";jQuery(function(){jQuery(e.legend.list).sortable({containment:"parent",tolerance:"pointer",update:function(t,n){var r=[];jQuery(e.legend.list).find("li").each(function(t,e){e.series&&r.push(e.series)});for(var o=e.graph.series.length-1;o>=0;o--)e.graph.series[o]=r.shift();e.graph.update()}}),jQuery(e.legend.list).disableSelection()}),this.graph.onUpdate(function(){var t=window.getComputedStyle(e.legend.element).height;e.legend.element.style.height=t})},e.namespace("Rickshaw.Graph.Behavior.Series.Toggle"),e.Graph.Behavior.Series.Toggle=function(t){this.graph=t.graph,this.legend=t.legend;var e=this;this.addAnchor=function(t){var n=document.createElement("a");n.innerHTML="✔",n.classList.add("action"),t.element.insertBefore(n,t.element.firstChild),n.onclick=function(n){if(t.series.disabled)t.series.enable(),t.element.classList.remove("disabled");else{if(this.graph.series.filter(function(t){return!t.disabled}).length<=1)return;t.series.disable(),t.element.classList.add("disabled")}e.graph.update()}.bind(this),t.element.getElementsByTagName("span")[0].onclick=function(n){var r=t.series.disabled;if(!r)for(var o=0;ou.svgWidth-1||e<1)){var n=[c.startPX,e].sort(i),r=n[1]-n[0];if(isNaN(r))return o(this);s.attr("fill",u.fill).attr("x",n[0]).attr("width",r)}}function r(){var r=t.select(this);s=r.append("rect").style("opacity",u.opacity).attr("y",0).attr("height","100%"),t.event.preventDefault?t.event.preventDefault():t.event.returnValue=!1,c.target=t.event.target,c.startDt=a(t.event),c.startPX=t.event.offsetX||t.event.layerX,r.on("mousemove",n),t.select(document).on("mouseup",e),t.select(document).on("keyup",function(){t.event.keyCode===l&&o(this)})}function o(e){t.select(e).on("mousemove",null),t.select(document).on("mouseup",null),c={},s.remove()}function i(t,e){return t-e}function a(t){return Math.floor(u.graph.x.invert(t.offsetX||t.layerX))}var s,u=this,l=27,c={startDt:null,stopDt:null,startPX:null,stopPX:null};this.svg.on("mousedown",r)}}),e.namespace("Rickshaw.Graph.HoverDetail"),e.Graph.HoverDetail=e.Class.create({initialize:function(t){var e=this.graph=t.graph;this.xFormatter=t.xFormatter||function(t){return new Date(1e3*t).toUTCString()},this.yFormatter=t.yFormatter||function(t){return null===t?t:t.toFixed(2)};var n=this.element=document.createElement("div");n.className="detail inactive",this.visible=!0,e.element.appendChild(n),this.lastEvent=null,this._addListeners(),this.onShow=t.onShow,this.onHide=t.onHide,this.onRender=t.onRender,this.formatter=t.formatter||this.formatter},formatter:function(t,e,n,r,o,i){return t.name+": "+o},update:function(e){if((e=e||this.lastEvent)&&(this.lastEvent=e,e.target.nodeName.match(/^(path|svg|rect|circle)$/))){var n,r=this.graph,o=e.layerX||e.offsetX,i=e.layerY||e.offsetY,a=0,s=[];if(this.graph.series.active().forEach(function(e){var u=this.graph.stackedData[a++];if(u.length){var l=r.x.invert(o),c=t.scale.linear().domain([u[0].x,u.slice(-1)[0].x]).range([0,u.length-1]),f=Math.round(c(l));f==u.length-1&&f--;for(var d=Math.min(f||0,u.length-1),p=f;pl){d=Math.abs(l-u[p].x)0){f.forEach(function(t){t.classList.remove("left"),t.classList.add("right")});this._calcLayoutError(f)>d&&f.forEach(function(t){t.classList.remove("right"),t.classList.add("left")})}"function"==typeof this.onRender&&this.onRender(t)}},_calcLayoutError:function(t){var e=this.element.parentNode.getBoundingClientRect(),n=0;t.forEach(function(t){var r=t.getBoundingClientRect();r.width&&(r.right>e.right&&(n+=r.right-e.right),r.left=l.previewWidth&&(o[0]-=o[1]-l.previewWidth,o[1]=l.previewWidth)),l.graphs.forEach(function(e){var n=t.scale.linear().interpolate(t.interpolateNumber).domain([0,l.previewWidth]).range(e.dataDomain()),r=[n(o[0]),n(o[1])];l.slideCallbacks.forEach(function(t){t(e,r[0],r[1])}),0===o[0]&&(r[0]=void 0),o[1]===l.previewWidth&&(r[1]=void 0),e.window.xMin=r[0],e.window.xMax=r[1],e.update()})}function n(){u.target=t.event.target,u.start=l._getClientXFromEvent(t.event,u),l.frameBeforeDrag=l.currentFrame.slice(),t.event.preventDefault?t.event.preventDefault():t.event.returnValue=!1,t.select(document).on("mousemove.rickshaw_range_slider_preview",e),t.select(document).on("mouseup.rickshaw_range_slider_preview",a),t.select(document).on("touchmove.rickshaw_range_slider_preview",e),t.select(document).on("touchend.rickshaw_range_slider_preview",a),t.select(document).on("touchcancel.rickshaw_range_slider_preview",a)}function r(t,e){u.left=!0,n()}function o(t,e){u.right=!0,n()}function i(t,e){u.left=!0,u.right=!0,u.rigid=!0,n()}function a(e,n){t.select(document).on("mousemove.rickshaw_range_slider_preview",null),t.select(document).on("mouseup.rickshaw_range_slider_preview",null),t.select(document).on("touchmove.rickshaw_range_slider_preview",null),t.select(document).on("touchend.rickshaw_range_slider_preview",null),t.select(document).on("touchcancel.rickshaw_range_slider_preview",null),delete l.frameBeforeDrag,u.left=!1,u.right=!1,u.rigid=!1}var s=t.select(this.element),u={target:null,start:null,stop:null,left:!1,right:!1,rigid:!1},l=this;s.select("rect.left_handle").on("mousedown",r),s.select("rect.right_handle").on("mousedown",o),s.select("rect.middle_handle").on("mousedown",i),s.select("rect.left_handle").on("touchstart",r),s.select("rect.right_handle").on("touchstart",o),s.select("rect.middle_handle").on("touchstart",i)},_getClientXFromEvent:function(t,e){switch(t.type){case"touchstart":case"touchmove":for(var n=t.changedTouches,r=null,o=0;oi&&(i=e)}}),t.length&&(t[0].xr&&(r=t[t.length-1].x))}),n-=(r-n)*this.padding.left,r+=(r-n)*this.padding.right,o="auto"===this.graph.min?o:this.graph.min||0,i=void 0===this.graph.max?i:this.graph.max,("auto"===this.graph.min||o<0)&&(o-=(i-o)*this.padding.bottom),void 0===this.graph.max&&(i+=(i-o)*this.padding.top),{x:[n,r],y:[o,i]}},render:function(t){t=t||{};var e=this.graph,n=t.series||e.series,r=t.vis||e.vis;r.selectAll("*").remove();var o=n.filter(function(t){return!t.disabled}).map(function(t){return t.stack}),i=r.selectAll("path.path").data(o).enter().append("svg:path").classed("path",!0).attr("d",this.seriesPathFactory());if(this.stroke)var a=r.selectAll("path.stroke").data(o).enter().append("svg:path").classed("stroke",!0).attr("d",this.seriesStrokeFactory());var s=0;n.forEach(function(t){t.disabled||(t.path=i[0][s],this.stroke&&(t.stroke=a[0][s]),this._styleSeries(t),s++)},this)},_styleSeries:function(e){var n=this.fill?e.color:"none",r=this.stroke?e.color:"none",o=e.strokeWidth?e.strokeWidth:this.strokeWidth,i=e.opacity?e.opacity:this.opacity;e.path.setAttribute("fill",n),e.path.setAttribute("stroke",r),e.path.setAttribute("stroke-width",o),e.path.setAttribute("opacity",i),e.className&&t.select(e.path).classed(e.className,!0),e.className&&this.stroke&&t.select(e.stroke).classed(e.className,!0)},configure:function(t){t=t||{},e.keys(this.defaults()).forEach(function(n){if(!t.hasOwnProperty(n))return void(this[n]=this[n]||this.graph[n]||this.defaults()[n]);"object"==typeof this.defaults()[n]?e.keys(this.defaults()[n]).forEach(function(e){this[n][e]=void 0!==t[n][e]?t[n][e]:void 0!==this[n][e]?this[n][e]:this.defaults()[n][e]},this):this[n]=void 0!==t[n]?t[n]:void 0!==this[n]?this[n]:void 0!==this.graph[n]?this.graph[n]:this.defaults()[n]},this)},setStrokeWidth:function(t){void 0!==t&&(this.strokeWidth=t)},setTension:function(t){void 0!==t&&(this.tension=t)}}),e.namespace("Rickshaw.Graph.Renderer.Line"),e.Graph.Renderer.Line=e.Class.create(e.Graph.Renderer,{name:"line",defaults:function($super){return e.extend($super(),{unstack:!0,fill:!1,stroke:!0})},seriesPathFactory:function(){var e=this.graph,n=t.svg.line().x(function(t){return e.x(t.x)}).y(function(t){return e.y(t.y)}).interpolate(this.graph.interpolation).tension(this.tension);return n.defined&&n.defined(function(t){return null!==t.y}),n}}),e.namespace("Rickshaw.Graph.Renderer.Stack"),e.Graph.Renderer.Stack=e.Class.create(e.Graph.Renderer,{name:"stack",defaults:function($super){return e.extend($super(),{fill:!0,stroke:!1,unstack:!1})},seriesPathFactory:function(){var e=this.graph,n=t.svg.area().x(function(t){return e.x(t.x)}).y0(function(t){return e.y(t.y0)}).y1(function(t){return e.y(t.y+t.y0)}).interpolate(this.graph.interpolation).tension(this.tension);return n.defined&&n.defined(function(t){return null!==t.y}),n}}),e.namespace("Rickshaw.Graph.Renderer.Bar"),e.Graph.Renderer.Bar=e.Class.create(e.Graph.Renderer,{name:"bar",defaults:function($super){var t=e.extend($super(),{gapSize:.05,unstack:!1,opacity:1});return delete t.tension,t},initialize:function($super,t){t=t||{},this.gapSize=t.gapSize||this.gapSize,$super(t)},domain:function($super){var t=$super(),e=this._frequentInterval(this.graph.stackedData.slice(-1).shift());return t.x[1]+=Number(e.magnitude),t},barWidth:function(t){var e=this._frequentInterval(t.stack);return this.graph.x.magnitude(e.magnitude)*(1-this.gapSize)},render:function(t){t=t||{};var e=this.graph,n=t.series||e.series,r=t.vis||e.vis;r.selectAll("*").remove();var o=this.barWidth(n.active()[0]),i=0,a=n.filter(function(t){return!t.disabled}).length,s=this.unstack?o/a:o,u=function(t){return"matrix("+[1,0,0,t.y<0?-1:1,0,t.y<0?2*e.y.magnitude(Math.abs(t.y)):0].join(",")+")"};n.forEach(function(t){if(!t.disabled){var n=(this.barWidth(t),r.selectAll("path").data(t.stack.filter(function(t){return null!==t.y})).enter().append("svg:rect").attr("x",function(t){return e.x(t.x)+i}).attr("y",function(t){return e.y(t.y0+Math.abs(t.y))*(t.y<0?-1:1)}).attr("width",s).attr("height",function(t){return e.y.magnitude(Math.abs(t.y))}).attr("opacity",t.opacity).attr("transform",u));Array.prototype.forEach.call(n[0],function(e){e.setAttribute("fill",t.color)}),this.unstack&&(i+=s)}},this)},_frequentInterval:function(t){for(var n={},r=0;r0?this[0].data.forEach(function(e){t.data.push({x:e.x,y:0})}):0===t.data.length&&t.data.push({x:this.timeBase-(this.timeInterval||0),y:0}),this.push(t),this.legend&&this.legend.addLine(this.itemByName(t.name))},addData:function(t,n){var r=this.getIndex();e.keys(t).forEach(function(t){this.itemByName(t)||this.addItem({name:t})},this),this.forEach(function(e){e.data.push({x:n||(r*this.timeInterval||1)+this.timeBase,y:t[e.name]||0})},this)},getIndex:function(){return this[0]&&this[0].data&&this[0].data.length?this[0].data.length:0},itemByName:function(t){for(var e=0;e1;o--)this.currentSize+=1,this.currentIndex+=1,this.forEach(function(t){t.data.unshift({x:((o-1)*this.timeInterval||1)+this.timeBase,y:0,i:o})},this)},addData:function($super,t,e){if($super(t,e),this.currentSize+=1,this.currentIndex+=1,void 0!==this.maxDataPoints)for(;this.currentSize>this.maxDataPoints;)this.dropData()},dropData:function(){this.forEach(function(t){t.data.splice(0,1)}),this.currentSize-=1},getIndex:function(){return this.currentIndex}}),e})},function(t,exports,e){var n,r,o;/*!
* jQuery UI Widget 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(i){r=[e(13),e(31)],n=i,void 0!==(o="function"==typeof n?n.apply(exports,r):n)&&(t.exports=o)}(function($){var t=0,e=Array.prototype.slice;return $.cleanData=function(t){return function(e){var n,r,o;for(o=0;null!=(r=e[o]);o++)try{n=$._data(r,"events"),n&&n.remove&&$(r).triggerHandler("remove")}catch(t){}t(e)}}($.cleanData),$.widget=function(t,e,n){var r,o,i,a={},s=t.split(".")[0];t=t.split(".")[1];var u=s+"-"+t;return n||(n=e,e=$.Widget),$.isArray(n)&&(n=$.extend.apply(null,[{}].concat(n))),$.expr[":"][u.toLowerCase()]=function(t){return!!$.data(t,u)},$[s]=$[s]||{},r=$[s][t],o=$[s][t]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},$.extend(o,r,{version:n.version,_proto:$.extend({},n),_childConstructors:[]}),i=new e,i.options=$.widget.extend({},i.options),$.each(n,function(t,n){if(!$.isFunction(n))return void(a[t]=n);a[t]=function(){function r(){return e.prototype[t].apply(this,arguments)}function o(n){return e.prototype[t].apply(this,n)}return function(){var t,e=this._super,i=this._superApply;return this._super=r,this._superApply=o,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}()}),o.prototype=$.widget.extend(i,{widgetEventPrefix:r?i.widgetEventPrefix||t:t},a,{constructor:o,namespace:s,widgetName:t,widgetFullName:u}),r?($.each(r._childConstructors,function(t,e){var n=e.prototype;$.widget(n.namespace+"."+n.widgetName,o,e._proto)}),delete r._childConstructors):e._childConstructors.push(o),$.widget.bridge(t,o),o},$.widget.extend=function(t){for(var n,r,o=e.call(arguments,1),i=0,a=o.length;i",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,n){n=$(n||this.defaultElement||this)[0],this.element=$(n),this.uuid=t++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=$(),this.hoverable=$(),this.focusable=$(),this.classesElementLookup={},n!==this&&($.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=$(n.style?n.ownerDocument:n.document||n),this.window=$(this.document[0].defaultView||this.document[0].parentWindow)),this.options=$.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:$.noop,_create:$.noop,_init:$.noop,destroy:function(){var t=this;this._destroy(),$.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:$.noop,widget:function(){return this.element},option:function(t,e){var n,r,o,i=t;if(0===arguments.length)return $.widget.extend({},this.options);if("string"==typeof t)if(i={},n=t.split("."),t=n.shift(),n.length){for(r=i[t]=$.widget.extend({},this.options[t]),o=0;o1&&void 0!==arguments[1]?arguments[1]:(0,p.getFirstDayOfWeek)(),n=arguments[2],r=o(t),i=[],a=[],s=[],u=1;u<=r;u+=1)i.push(new Date(t.getFullYear(),t.getMonth(),u,12));i.forEach(function(t){a.length>0&&t.getDay()===e&&(s.push(a),a=[]),a.push(t),i.indexOf(t)===i.length-1&&s.push(a)});for(var l=s[0],c=7-l.length;c>0;c-=1){var f=(0,d.clone)(l[0]);f.setDate(l[0].getDate()-1),l.unshift(f)}for(var h=s[s.length-1],g=h.length;g<7;g+=1){var m=(0,d.clone)(h[h.length-1]);m.setDate(h[h.length-1].getDate()+1),h.push(m)}if(n&&s.length<6)for(var v=void 0,b=s.length;b<6;b+=1){v=s[s.length-1];for(var y=v[v.length-1],_=[],x=0;x<7;x+=1){var w=(0,d.clone)(y);w.setDate(y.getDate()+x+1),_.push(w)}s.push(_)}return s}function c(t){var e=(0,d.clone)(t);return e.setDate(1),e.setHours(12,0,0,0),e}Object.defineProperty(exports,"__esModule",{value:!0});var f=Object.assign||function(t){for(var e=1;e-1}function x(t,e){var n=this.__data__,r=z(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function w(t){var e=-1,n=null==t?0:t.length;for(this.clear();++el))return!1;var f=s.get(t);if(f&&s.get(e))return f==e;var d=-1,p=!0,h=n&_t?new O:void 0;for(s.set(t,e),s.set(e,t);++d-1&&t%1==0&&t-1&&t%1==0&&t<=xt}function dt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function pt(t){return null!=t&&"object"==typeof t}function ht(t){return ut(t)?N(t):W(t)}function gt(){return[]}function mt(){return!1}var vt=200,bt="__lodash_hash_undefined__",yt=1,_t=2,xt=9007199254740991,wt="[object Arguments]",kt="[object Array]",St="[object AsyncFunction]",Et="[object Boolean]",Ct="[object Date]",At="[object Error]",Ot="[object Function]",Mt="[object GeneratorFunction]",Tt="[object Map]",Dt="[object Number]",Pt="[object Null]",Ft="[object Object]",Rt="[object Proxy]",It="[object RegExp]",jt="[object Set]",Nt="[object String]",zt="[object Symbol]",Lt="[object Undefined]",Ut="[object ArrayBuffer]",qt="[object DataView]",Bt=/[\\^$.*+?()[\]{}|]/g,Ht=/^\[object .+?Constructor\]$/,Gt=/^(?:0|[1-9]\d*)$/,Vt={};Vt["[object Float32Array]"]=Vt["[object Float64Array]"]=Vt["[object Int8Array]"]=Vt["[object Int16Array]"]=Vt["[object Int32Array]"]=Vt["[object Uint8Array]"]=Vt["[object Uint8ClampedArray]"]=Vt["[object Uint16Array]"]=Vt["[object Uint32Array]"]=!0,Vt[wt]=Vt[kt]=Vt[Ut]=Vt[Et]=Vt[qt]=Vt[Ct]=Vt[At]=Vt[Ot]=Vt[Tt]=Vt[Dt]=Vt[Ft]=Vt[It]=Vt[jt]=Vt[Nt]=Vt["[object WeakMap]"]=!1;var Wt="object"==typeof t&&t&&t.Object===Object&&t,Yt="object"==typeof self&&self&&self.Object===Object&&self,Kt=Wt||Yt||Function("return this")(),Qt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xt=Qt&&"object"==typeof e&&e&&!e.nodeType&&e,$t=Xt&&Xt.exports===Qt,Zt=$t&&Wt.process,Jt=function(){try{return Zt&&Zt.binding&&Zt.binding("util")}catch(t){}}(),te=Jt&&Jt.isTypedArray,ee=Array.prototype,ne=Function.prototype,re=Object.prototype,oe=Kt["__core-js_shared__"],ie=ne.toString,ae=re.hasOwnProperty,se=function(){var t=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ue=re.toString,le=RegExp("^"+ie.call(ae).replace(Bt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ce=$t?Kt.Buffer:void 0,fe=Kt.Symbol,de=Kt.Uint8Array,pe=re.propertyIsEnumerable,he=ee.splice,ge=fe?fe.toStringTag:void 0,me=Object.getOwnPropertySymbols,ve=ce?ce.isBuffer:void 0,be=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),ye=J(Kt,"DataView"),_e=J(Kt,"Map"),xe=J(Kt,"Promise"),we=J(Kt,"Set"),ke=J(Kt,"WeakMap"),Se=J(Object,"create"),Ee=at(ye),Ce=at(_e),Ae=at(xe),Oe=at(we),Me=at(ke),Te=fe?fe.prototype:void 0,De=Te?Te.valueOf:void 0;c.prototype.clear=f,c.prototype.delete=d,c.prototype.get=p,c.prototype.has=h,c.prototype.set=g,m.prototype.clear=v,m.prototype.delete=b,m.prototype.get=y,m.prototype.has=_,m.prototype.set=x,w.prototype.clear=k,w.prototype.delete=S,w.prototype.get=E,w.prototype.has=C,w.prototype.set=A,O.prototype.add=O.prototype.push=M,O.prototype.has=T,D.prototype.clear=P,D.prototype.delete=F,D.prototype.get=R,D.prototype.has=I,D.prototype.set=j;var Pe=me?function(t){return null==t?[]:(t=Object(t),n(me(t),function(e){return pe.call(t,e)}))}:gt,Fe=U;(ye&&Fe(new ye(new ArrayBuffer(1)))!=qt||_e&&Fe(new _e)!=Tt||xe&&"[object Promise]"!=Fe(xe.resolve())||we&&Fe(new we)!=jt||ke&&"[object WeakMap]"!=Fe(new ke))&&(Fe=function(t){var e=U(t),n=e==Ft?t.constructor:void 0,r=n?at(n):"";if(r)switch(r){case Ee:return qt;case Ce:return Tt;case Ae:return"[object Promise]";case Oe:return jt;case Me:return"[object WeakMap]"}return e});var Re=q(function(){return arguments}())?q:function(t){return pt(t)&&ae.call(t,"callee")&&!pe.call(t,"callee")},Ie=Array.isArray,je=ve||mt,Ne=te?function(t){return function(e){return t(e)}}(te):V;e.exports=lt}).call(exports,e(30),e(70)(t))},function(t,exports,e){var n=e(82),r=n.Symbol;t.exports=r},function(t,exports,e){function n(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e