!function(t,e){for(var n in e)t[n]=e[n]}(this,function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n=window.webpackJsonp;window.webpackJsonp=function(r,o,a){for(var s,u,l,c=0,h=[];c>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?d(t)+e:e}function m(){return!0}function g(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function y(t,e){return b(t,e,0)}function _(t,e){return b(t,e,e)}function b(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 i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function k(t){return!!M(t)}function C(t){return t&&"function"==typeof t.next}function E(t){var e=M(t);return e&&e.call(t)}function M(t){var e=t&&(Sn&&t[Sn]||t[kn]);if("function"==typeof e)return e}function T(t){return t&&"number"==typeof t.length}function D(t){return null===t||void 0===t?U():o(t)?t.toSeq():B(t)}function P(t){return null===t||void 0===t?U().toKeyedSeq():o(t)?a(t)?t.toSeq():t.fromEntrySeq():z(t)}function A(t){return null===t||void 0===t?U():o(t)?a(t)?t.entrySeq():t.toIndexedSeq():F(t)}function O(t){return(null===t||void 0===t?U():o(t)?a(t)?t.entrySeq():t:F(t)).toSetSeq()}function I(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 L(t){this._iterable=t,this.size=t.length||t.size}function N(t){this._iterator=t,this._iteratorCache=[]}function j(t){return!(!t||!t[En])}function U(){return Mn||(Mn=new I([]))}function z(t){var e=Array.isArray(t)?new I(t).fromEntrySeq():C(t)?new N(t).fromEntrySeq():k(t)?new L(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 F(t){var e=W(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function B(t){var e=W(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 W(t){return T(t)?new I(t):C(t)?new N(t):k(t)?new L(t):void 0}function Y(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(e(s[1],r?s[0]:a,t)===!1)return a+1}return a}return t.__iterateUncached(e,n)}function H(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,a=0;return new x(function(){var t=i[n?o-a:a];return a++>o?S():w(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function V(t,e){return e?G(e,t,"",{"":t}):q(t)}function G(t,e,n,r){return Array.isArray(e)?t.call(r,n,A(e).map(function(n,r){return G(t,n,r,e)})):X(e)?t.call(r,n,P(e).map(function(n,r){return G(t,n,r,e)})):e}function q(t){return Array.isArray(t)?A(t).map(q).toList():X(t)?P(t).map(q).toMap():t}function X(t){return t&&(t.constructor===Object||void 0===t.constructor)}function K(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 $(t,e){if(t===e)return!0;if(!o(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 i=r.next().value;return i&&K(i[1],t)&&(n||K(i[0],e))})&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var c=t;t=e,e=c}var h=!0,p=e.__iterate(function(e,r){if(n?!t.has(e):i?!K(e,t.get(r,gn)):!K(t.get(r,gn),e))return h=!1,!1});return h&&t.size===p}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(Tn)return Tn;Tn=this}}function Q(t,e){if(!t)throw new Error(e)}function J(t,e,n){if(!(this instanceof J))return new J(t,e,n);if(Q(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 ot(t){if(t===!1||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(t=t.valueOf(),t===!1||null===t||void 0===t))return 0;if(t===!0)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>jn?at(t):st(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return ut(t);if("function"==typeof t.toString)return st(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function at(t){var e=Fn[t];return void 0===e&&(e=st(t),zn===Un&&(zn=0,Fn={}),zn++,Fn[t]=e),e}function st(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 ct(t){Q(t!==1/0,"Cannot perform this action with an infinite size.")}function ht(t){return null===t||void 0===t?wt():pt(t)&&!l(t)?t:wt().withMutations(function(e){var r=n(t);ct(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function pt(t){return!(!t||!t[Bn])}function ft(t,e){this.ownerID=t,this.entries=e}function dt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function vt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function mt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function gt(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&&bt(t._root)}function _t(t,e){return w(t,e[0],e[1])}function bt(t,e){return{node:t,index:0,__prev:e}}function xt(t,e,n,r){var i=Object.create(Wn);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function wt(){return Yn||(Yn=xt(0))}function St(t,e,n){var r,i;if(t._root){var o=c(yn),a=c(_n);if(r=kt(t._root,t.__ownerID,0,void 0,e,n,o,a),!a.value)return t;i=t.size+(o.value?n===gn?-1:1:0)}else{if(n===gn)return t;i=1,r=new ft(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?xt(i,r):wt()}function kt(t,e,n,r,i,o,a,s){return t?t.update(e,n,r,i,o,a,s):o===gn?t:(h(s),h(a),new gt(e,r,[i,o]))}function Ct(t){return t.constructor===gt||t.constructor===mt}function Et(t,e,n,r,i){if(t.keyHash===r)return new mt(e,r,[t.entry,i]);var o,a=(0===n?t.keyHash:t.keyHash>>>n)&mn,s=(0===n?r:r>>>n)&mn,u=a===s?[Et(t,e,n+dn,r,i)]:(o=new gt(e,r,i),a>>=1)a[s]=1&n?e[o++]:void 0;return a[r]=i,new vt(t,o+1,a)}function Pt(t,e,r){for(var i=[],a=0;a>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,127&t}function Nt(t,e,n,r){var i=r?t:f(t);return i[e]=n,i}function jt(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var o=new Array(i),a=0,s=0;s0&&io?0:o-n,l=a-n;return l>vn&&(l=vn),function(){if(i===l)return $n;var t=e?--l:i++;return r&&r[t]}}function i(t,r,i){var s,u=t&&t.array,l=i>o?0:o-i>>r,c=(a-i>>r)+1;return c>vn&&(c=vn),function(){for(;;){if(s){var t=s();if(t!==$n)return t;s=null}if(l===c)return $n;var o=e?--c:l++;s=n(u&&u[o],r-dn,i+(o<=t.size||e<0)return t.withMutations(function(t){e<0?Kt(t,e).set(0,n):Kt(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,i=t._root,o=c(_n);return e>=Zt(t._capacity)?r=Gt(r,t.__ownerID,0,e,n,o):i=Gt(i,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):Yt(t._origin,t._capacity,t._level,i,r):t}function Gt(t,e,n,r,i,o){var a=r>>>n&mn,s=t&&a0){var l=t&&t.array[a],c=Gt(l,e,n-dn,r,i,o);return c===l?t:(u=qt(t,e),u.array[a]=c,u)}return s&&t.array[a]===i?t:(h(o),u=qt(t,e),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function qt(t,e){return e&&t&&e===t.ownerID?t:new Bt(t?t.array.slice():[],e)}function Xt(t,e){if(e>=Zt(t._capacity))return t._tail;if(e<1<0;)n=n.array[e>>>r&mn],r-=dn;return n}}function Kt(t,e,n){void 0!==e&&(e=0|e),void 0!==n&&(n=0|n);var r=t.__ownerID||new p,i=t._origin,o=t._capacity,a=i+e,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return t;if(a>=s)return t.clear();for(var u=t._level,l=t._root,c=0;a+c<0;)l=new Bt(l&&l.array.length?[void 0,l]:[],r),u+=dn,c+=1<=1<h?new Bt([],r):d;if(d&&f>h&&adn;g-=dn){var y=h>>>g&mn;m=m.array[y]=qt(m.array[y],r)}m.array[h>>>dn&mn]=d}if(s=f)a-=f,s-=f,u=dn,l=null,v=v&&v.removeBefore(r,0,a);else if(a>i||f>>u&mn;if(_!==f>>>u&mn)break;_&&(c+=(1<i&&(l=l.removeBefore(r,u,a-c)),l&&fa&&(a=l.size),o(u)||(l=l.map(function(t){return V(t)})),i.push(l)}return a>t.size&&(t=t.setSize(a)),It(t,e,i)}function Zt(t){return t>>dn<=vn&&a.size>=2*o.size?(i=a.filter(function(t,e){return void 0!==t&&s!==e}),r=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return t;r=o,i=a.set(s,[e,n])}else r=o.set(e,a.size),i=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):te(r,i)}function re(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ae(t){this._iter=t,this.size=t.size}function se(t){var e=Te(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=De,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return e(n,t,r)!==!1},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?bn:xn,n)},e}function ue(t,e,n){var r=Te(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var o=t.get(r,gn);return o===gn?i:e.call(n,o,r,t)},r.__iterateUncached=function(r,i){var o=this;return t.__iterate(function(t,i,a){return r(e.call(n,t,i,a),i,o)!==!1},i)},r.__iteratorUncached=function(r,i){var o=t.__iterator(wn,i);return new x(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return w(r,s,e.call(n,a[1],s,t),i)})},r}function le(t,e){var n=Te(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=se(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=De,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 ce(t,e,n,r){var i=Te(t);return r&&(i.has=function(r){var i=t.get(r,gn);return i!==gn&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,gn);return o!==gn&&e.call(n,o,r,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return t.__iterate(function(t,o,u){if(e.call(n,t,o,u))return s++,i(t,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=t.__iterator(wn,o),s=0;return new x(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(e.call(n,c,l,t))return w(i,r?l:s++,c,o)}})},i}function he(t,e,n){var r=ht().asMutable();return t.__iterate(function(i,o){r.update(e.call(n,i,o,t),0,function(t){return t+1})}),r.asImmutable()}function pe(t,e,n){var r=a(t),i=(l(t)?Qt():ht()).asMutable();t.__iterate(function(o,a){i.update(e.call(n,o,a,t),function(t){return t=t||[],t.push(r?[a,o]:o),t})});var o=Me(t);return i.map(function(e){return ke(t,o(e))})}function fe(t,e,n,r){var i=t.size;if(void 0!==e&&(e=0|e),void 0!==n&&(n=n===1/0?i:0|n),g(e,n,i))return t;var o=y(e,i),a=_(n,i);if(o!==o||a!==a)return fe(t.toSeq().cacheResult(),e,n,r);var s,u=a-o;u===u&&(s=u<0?0:u);var l=Te(t);return l.size=0===s?s:t.size&&s||void 0,!r&&j(t)&&s>=0&&(l.get=function(e,n){return e=v(this,e),e>=0&&es)return S();var t=i.next();return r||e===xn?t:e===bn?w(e,u-1,void 0,t):w(e,u-1,t.value[1],t)})},l}function de(t,e,n){var r=Te(t);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return t.__iterate(function(t,i,s){return e.call(n,t,i,s)&&++a&&r(t,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=t.__iterator(wn,i),s=!0;return new x(function(){if(!s)return S();var t=a.next();if(t.done)return t;var i=t.value,u=i[0],l=i[1];return e.call(n,l,u,o)?r===wn?t:w(r,u,l,t):(s=!1,S())})},r}function ve(t,e,n,r){var i=Te(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return t.__iterate(function(t,o,l){if(!s||!(s=e.call(n,t,o,l)))return u++,i(t,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(wn,o),u=!0,l=0;return new x(function(){var t,o,c;do{if(t=s.next(),t.done)return r||i===xn?t:i===bn?w(i,l++,void 0,t):w(i,l++,t.value[1],t);var h=t.value;o=h[0],c=h[1],u&&(u=e.call(n,c,o,a))}while(u);return i===wn?t:w(i,o,c,t)})},i}function me(t,e){var r=a(t),i=[t].concat(e).map(function(t){return o(t)?r&&(t=n(t)):t=r?z(t):F(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var u=i[0];if(u===t||r&&a(u)||s(t)&&s(u))return u}var l=new I(i);return r?l=l.toKeyedSeq():s(t)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=i.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),l}function ge(t,e,n){var r=Te(t);return r.__iterateUncached=function(r,i){function a(t,l){var c=this;t.__iterate(function(t,i){return(!e||l0}function Se(t,n,r){var i=Te(t);return i.size=new I(r).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(xn,e),i=0;!(n=r.next()).done&&t(n.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(t,i){var o=r.map(function(t){return t=e(t),E(i?t.reverse():t)}),a=0,s=!1;return new x(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?S():w(t,a++,n.apply(null,e.map(function(t){return t.value})))})},i}function ke(t,e){return j(t)?e:t.constructor(e)}function Ce(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ee(t){return ct(t.size),d(t)}function Me(t){return a(t)?n:s(t)?r:i}function Te(t){return Object.create((a(t)?P:s(t)?A:O).prototype)}function De(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):D.prototype.cacheResult.call(this)}function Pe(t,e){return t>e?1:te?-1:0}function on(t){if(t.size===1/0)return 0;var e=l(t),n=a(t),r=e?1:0,i=t.__iterate(n?e?function(t,e){r=31*r+sn(ot(t),ot(e))|0}:function(t,e){r=r+sn(ot(t),ot(e))|0}:e?function(t){r=31*r+ot(t)|0}:function(t){r=r+ot(t)|0});return an(i,r)}function an(t,e){return e=An(e,3432918353),e=An(e<<15|e>>>-15,461845907),e=An(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=An(e^e>>>16,2246822507),e=An(e^e>>>13,3266489909),e=it(e^e>>>16)}function sn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var un=Array.prototype.slice;t(n,e),t(r,e),t(i,e),e.isIterable=o,e.isKeyed=a,e.isIndexed=s,e.isAssociative=u,e.isOrdered=l,e.Keyed=n,e.Indexed=r,e.Set=i;var ln="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",hn="@@__IMMUTABLE_INDEXED__@@",pn="@@__IMMUTABLE_ORDERED__@@",fn="delete",dn=5,vn=1<r?S():w(t,i,n[e?r-i++:i++])})},t(R,P),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,i=r.length-1,o=0;o<=i;o++){var a=r[e?i-o:o];if(t(n[a],a,this)===!1)return o+1}return o},R.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,o=0;return new x(function(){var a=r[e?i-o:o];return o++>i?S():w(t,a,n[a])})},R.prototype[pn]=!0,t(L,A),L.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=this._iterable,r=E(n),i=0;if(C(r))for(var o;!(o=r.next()).done&&t(o.value,i++,this)!==!1;);return i},L.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,r=E(n);if(!C(r))return new x(S);var i=0;return new x(function(){var e=r.next();return e.done?e:w(t,i++,e.value)})},t(N,A),N.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return w(t,i,r[i++])})};var Mn;t(Z,A),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 K(this._value,t)},Z.prototype.slice=function(t,e){var n=this.size;return g(t,e,n)?this:new Z(this._value,_(e,n)-y(t,n))},Z.prototype.reverse=function(){return this},Z.prototype.indexOf=function(t){return K(this._value,t)?0:-1},Z.prototype.lastIndexOf=function(t){return K(this._value,t)?this.size:-1},Z.prototype.__iterate=function(t,e){for(var n=0;n=0&&e=0&&nn?S():w(t,o++,a)})},J.prototype.equals=function(t){return t instanceof J?this._start===t._start&&this._end===t._end&&this._step===t._step:$(this,t)};var Dn;t(tt,e),t(et,tt),t(nt,tt),t(rt,tt),tt.Keyed=et,tt.Indexed=nt,tt.Set=rt;var Pn,An="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(t,e){t=0|t,e=0|e;var n=65535&t,r=65535&e;return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0},On=Object.isExtensible,In=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Rn="function"==typeof WeakMap;Rn&&(Pn=new WeakMap);var Ln=0,Nn="__immutablehash__";"function"==typeof Symbol&&(Nn=Symbol(Nn));var jn=16,Un=255,zn=0,Fn={};t(ht,et),ht.of=function(){var t=un.call(arguments,0);return wt().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])}})},ht.prototype.toString=function(){return this.__toString("Map {","}")},ht.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},ht.prototype.set=function(t,e){return St(this,t,e)},ht.prototype.setIn=function(t,e){return this.updateIn(t,gn,function(){return e})},ht.prototype.remove=function(t){return St(this,t,gn)},ht.prototype.deleteIn=function(t){return this.updateIn(t,function(){return gn})},ht.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},ht.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=Rt(this,Ae(t),e,n);return r===gn?void 0:r},ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):wt()},ht.prototype.merge=function(){return Pt(this,void 0,arguments)},ht.prototype.mergeWith=function(t){var e=un.call(arguments,1);return Pt(this,t,e)},ht.prototype.mergeIn=function(t){var e=un.call(arguments,1);return this.updateIn(t,wt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},ht.prototype.mergeDeep=function(){return Pt(this,At,arguments)},ht.prototype.mergeDeepWith=function(t){var e=un.call(arguments,1);return Pt(this,Ot(t),e)},ht.prototype.mergeDeepIn=function(t){var e=un.call(arguments,1);return this.updateIn(t,wt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},ht.prototype.sort=function(t){return Qt(be(this,t))},ht.prototype.sortBy=function(t,e){return Qt(be(this,e,t))},ht.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},ht.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},ht.prototype.asImmutable=function(){return this.__ensureOwner()},ht.prototype.wasAltered=function(){return this.__altered},ht.prototype.__iterator=function(t,e){return new yt(this,t,e)},ht.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},ht.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?xt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},ht.isMap=pt;var Bn="@@__IMMUTABLE_MAP__@@",Wn=ht.prototype;Wn[Bn]=!0,Wn[fn]=Wn.remove,Wn.removeIn=Wn.deleteIn,ft.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;o=Hn)return Mt(t,u,r,i);var d=t&&t===this.ownerID,v=d?u:f(u);return p?s?l===c-1?v.pop():v[l]=v.pop():v[l]=[r,i]:v.push([r,i]),d?(this.entries=v,this):new ft(t,v)}},dt.prototype.get=function(t,e,n,r){void 0===e&&(e=ot(n));var i=1<<((0===t?e:e>>>t)&mn),o=this.bitmap;return 0===(o&i)?r:this.nodes[Lt(o&i-1)].get(t+dn,e,n,r)},dt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=(0===e?n:n>>>e)&mn,u=1<=Vn)return Dt(t,p,l,s,d);if(c&&!d&&2===p.length&&Ct(p[1^h]))return p[1^h];if(c&&d&&1===p.length&&Ct(d))return d;var v=t&&t===this.ownerID,m=c?d?l:l^u:l|u,g=c?d?Nt(p,h,d,v):Ut(p,h,v):jt(p,h,d,v);return v?(this.bitmap=m,this.nodes=g,this):new dt(t,m,g)},vt.prototype.get=function(t,e,n,r){void 0===e&&(e=ot(n));var i=(0===t?e:e>>>t)&mn,o=this.nodes[i];return o?o.get(t+dn,e,n,r):r},vt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=(0===e?n:n>>>e)&mn,u=i===gn,l=this.nodes,c=l[s];if(u&&!c)return this;var h=kt(c,t,e+dn,n,r,i,o,a);if(h===c)return this;var p=this.count;if(c){if(!h&&(p--,p=0&&t>>e&mn;if(r>=this.array.length)return new Bt([],t);var i,o=0===r;if(e>0){var a=this.array[r];if(i=a&&a.removeBefore(t,e-dn,n),i===a&&o)return this}if(o&&!i)return this;var s=qt(this,t);if(!o)for(var u=0;u>>e&mn;if(r>=this.array.length)return this;var i;if(e>0){var o=this.array[r];if(i=o&&o.removeAfter(t,e-dn,n),i===o&&r===this.array.length-1)return this}var a=qt(this,t);return a.array.splice(r+1),i&&(a.array[r]=i),a};var Kn,$n={};t(Qt,ht),Qt.of=function(){return this(arguments)},Qt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qt.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Qt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ee()},Qt.prototype.set=function(t,e){return ne(this,t,e)},Qt.prototype.remove=function(t){return ne(this,t,gn)},Qt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qt.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Qt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Qt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?te(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Qt.isOrderedMap=Jt,Qt.prototype[pn]=!0,Qt.prototype[fn]=Qt.prototype.remove;var Zn;t(re,P),re.prototype.get=function(t,e){return this._iter.get(t,e)},re.prototype.has=function(t){return this._iter.has(t)},re.prototype.valueSeq=function(){return this._iter.valueSeq()},re.prototype.reverse=function(){var t=this,e=le(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},re.prototype.map=function(t,e){var n=this,r=ue(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},re.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?Ee(this):0,function(i){return t(i,e?--n:n++,r)}),e)},re.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(xn,e),r=e?Ee(this):0;return new x(function(){var i=n.next();return i.done?i:w(t,e?--r:r++,i.value,i)})},re.prototype[pn]=!0,t(ie,A),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(oe,O),oe.prototype.has=function(t){return this._iter.includes(t)},oe.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},oe.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(ae,P),ae.prototype.entrySeq=function(){return this._iter.toSeq()},ae.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){Ce(e);var r=o(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},ae.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 i=o(r);return w(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}})},ie.prototype.cacheResult=re.prototype.cacheResult=oe.prototype.cacheResult=ae.prototype.cacheResult=De,t(Oe,et),Oe.prototype.toString=function(){return this.__toString(Re(this)+" {","}")},Oe.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Oe.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},Oe.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Ie(this,wt()))},Oe.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Re(this));if(this._map&&!this._map.has(t)){var n=this._defaultValues[t];if(e===n)return this}var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:Ie(this,r)},Oe.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:Ie(this,e)},Oe.prototype.wasAltered=function(){return this._map.wasAltered()},Oe.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},Oe.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},Oe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Ie(this,e,t):(this.__ownerID=t,this._map=e,this)};var Qn=Oe.prototype;Qn[fn]=Qn.remove,Qn.deleteIn=Qn.removeIn=Wn.removeIn,Qn.merge=Wn.merge,Qn.mergeWith=Wn.mergeWith,Qn.mergeIn=Wn.mergeIn,Qn.mergeDeep=Wn.mergeDeep,Qn.mergeDeepWith=Wn.mergeDeepWith,Qn.mergeDeepIn=Wn.mergeDeepIn,Qn.setIn=Wn.setIn,Qn.update=Wn.update,Qn.updateIn=Wn.updateIn,Qn.withMutations=Wn.withMutations,Qn.asMutable=Wn.asMutable,Qn.asImmutable=Wn.asImmutable,t(je,rt),je.of=function(){return this(arguments)},je.fromKeys=function(t){return this(n(t).keySeq())},je.prototype.toString=function(){return this.__toString("Set {","}")},je.prototype.has=function(t){return this._map.has(t)},je.prototype.add=function(t){return ze(this,this._map.set(t,!0))},je.prototype.remove=function(t){return ze(this,this._map.remove(t))},je.prototype.clear=function(){return ze(this,this._map.clear())},je.prototype.union=function(){var t=un.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):Xe(t,e)},Ge.prototype.pushAll=function(t){if(t=r(t),0===t.size)return this;ct(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):Xe(e,n)},Ge.prototype.pop=function(){return this.slice(1)},Ge.prototype.unshift=function(){return this.push.apply(this,arguments)},Ge.prototype.unshiftAll=function(t){return this.pushAll(t)},Ge.prototype.shift=function(){return this.pop.apply(this,arguments)},Ge.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):Ke()},Ge.prototype.slice=function(t,e){if(g(t,e,this.size))return this;var n=y(t,this.size),r=_(e,this.size);if(r!==this.size)return nt.prototype.slice.call(this,t,e);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Xe(i,o)},Ge.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Xe(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ge.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&t(r.value,n++,this)!==!1;)r=r.next;return n},Ge.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 S()})},Ge.isStack=qe;var ir="@@__IMMUTABLE_STACK__@@",or=Ge.prototype;or[ir]=!0,or.withMutations=Wn.withMutations,or.asMutable=Wn.asMutable,or.asImmutable=Wn.asImmutable,or.wasAltered=Wn.wasAltered;var ar;e.Iterator=x,$e(e,{toArray:function(){ct(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 re(this,(!0))},toMap:function(){return ht(this.toKeyedSeq())},toObject:function(){ct(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Qt(this.toKeyedSeq())},toOrderedSet:function(){return We(a(this)?this.valueSeq():this)},toSet:function(){return je(a(this)?this.valueSeq():this)},toSetSeq:function(){return new oe(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ge(a(this)?this.valueSeq():this)},toList:function(){return zt(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(){var t=un.call(arguments,0);return ke(this,me(this,t))},includes:function(t){return this.some(function(e){return K(e,t)})},entries:function(){return this.__iterator(wn)},every:function(t,e){ct(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!t.call(e,r,i,o))return n=!1,!1}),n},filter:function(t,e){return ke(this,ce(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 ct(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){ct(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(bn)},map:function(t,e){return ke(this,ue(this,t,e))},reduce:function(t,e,n){ct(this.size);var r,i;return arguments.length<2?i=!0:r=e,this.__iterate(function(e,o,a){i?(i=!1,r=e):r=t.call(n,r,e,o,a)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return ke(this,le(this,!0))},slice:function(t,e){return ke(this,fe(this,t,e,!0))},some:function(t,e){return!this.every(Je(t),e)},sort:function(t){return ke(this,be(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 d(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return he(this,t,e)},equals:function(t){return $(this,t)},entrySeq:function(){var t=this;if(t._cache)return new I(t._cache);var e=t.toSeq().map(Qe).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Je(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate(function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1}),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(m)},flatMap:function(t,e){return ke(this,ye(this,t,e))},flatten:function(t){return ke(this,ge(this,t,!0))},fromEntrySeq:function(){return new ae(this)},get:function(t,e){return this.find(function(e,n){return K(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,i=Ae(t);!(n=i.next()).done;){var o=n.value;if(r=r&&r.get?r.get(o,gn):gn,r===gn)return e}return r},groupBy:function(t,e){return pe(this,t,e)},has:function(t){return this.get(t,gn)!==gn},hasIn:function(t){return this.getIn(t,gn)!==gn},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 K(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 xe(this,t)},maxBy:function(t,e){return xe(this,e,t)},min:function(t){return xe(this,t?tn(t):rn)},minBy:function(t,e){return xe(this,e?tn(e):rn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return ke(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return ke(this,ve(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Je(t),e)},sortBy:function(t,e){return ke(this,be(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return ke(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return ke(this,de(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Je(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var sr=e.prototype;sr[ln]=!0,sr[Cn]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=en,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,$e(n,{flip:function(){return ke(this,se(this))},mapEntries:function(t,e){var n=this,r=0;return ke(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return ke(this,this.toSeq().flip().map(function(r,i){return t.call(e,r,i,n)}).flip())}});var ur=n.prototype;ur[cn]=!0,ur[Cn]=sr.entries,ur.__toJS=sr.toObject,ur.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+en(t)},$e(r,{toKeyedSeq:function(){return new re(this,(!1))},filter:function(t,e){return ke(this,ce(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 ke(this,le(this,!1))},slice:function(t,e){return ke(this,fe(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=y(t,t<0?this.count():this.size);var r=this.slice(0,t);return ke(this,1===n?r:r.concat(f(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 ke(this,ge(this,t,!1))},get:function(t,e){return t=v(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=v(this,t),t>=0&&(void 0!==this.size?this.size===1/0||t0)for(n in _r)r=_r[n],i=e[r],m(i)||(t[r]=i);return t}function y(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),br===!1&&(br=!0,e.updateOffset(this),br=!1)}function _(t){return t instanceof y||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function x(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=b(e)),n}function w(t,e,n){var r,i=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(r=0;r0?"future":"past"];return E(n)?n(e):n.replace(/%s/i,e)}function N(t,e){var n=t.toLowerCase();Ar[n]=Ar[n+"s"]=Ar[e]=t}function j(t){return"string"==typeof t?Ar[t]||Ar[t.toLowerCase()]:void 0}function U(t){var e,n,r={};for(n in t)l(t,n)&&(e=j(n),e&&(r[e]=t[n]));return r}function z(t,e){Or[t]=e}function F(t){var e=[];for(var n in t)e.push({unit:n,priority:Or[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function B(t,n){return function(r){return null!=r?(Y(this,t,r),e.updateOffset(this,n),this):W(this,t)}}function W(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Y(t,e,n){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](n)}function H(t){return t=j(t),E(this[t])?this[t]():this}function V(t,e){if("object"==typeof t){t=U(t);for(var n=F(t),r=0;r=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function q(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(Nr[t]=i),e&&(Nr[e[0]]=function(){return G(i.apply(this,arguments),e[1],e[2])}),n&&(Nr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function X(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function K(t){var e,n,r=t.match(Ir);for(e=0,n=r.length;e=0&&Rr.test(t);)t=t.replace(Rr,n),Rr.lastIndex=0,r-=1;return t}function Q(t,e,n){ti[t]=E(e)?e:function(t,r){return t&&n?n:e}}function J(t,e){return l(ti,t)?ti[t](e._strict,e._locale):new RegExp(tt(t))}function tt(t){return et(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}))}function et(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function nt(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),a(e)&&(r=function(t,n){n[e]=x(t)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}function bt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function xt(t,e,n){var r=7+e-n,i=(7+bt(t,0,r).getUTCDay()-e)%7;return-i+r-1}function wt(t,e,n,r,i){var o,a,s=(7+n-r)%7,u=xt(t,r,i),l=1+7*(e-1)+s+u;return l<=0?(o=t-1,a=mt(o)+l):l>mt(t)?(o=t+1,a=l-mt(t)):(o=t,a=l),{year:o,dayOfYear:a}}function St(t,e,n){var r,i,o=xt(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?(i=t.year()-1,r=a+kt(i,e,n)):a>kt(t.year(),e,n)?(r=a-kt(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function kt(t,e,n){var r=xt(t,e,n),i=xt(t+1,e,n);return(mt(t)-r+i)/7}function Ct(t){return St(t,this._week.dow,this._week.doy).week}function Et(){return this._week.dow}function Mt(){return this._week.doy}function Tt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Dt(t){var e=St(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Pt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function At(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Ot(t,e){return t?r(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:this._weekdays}function It(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Rt(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Lt(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?(i=hi.call(this._weekdaysParse,a),i!==-1?i:null):"ddd"===e?(i=hi.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=hi.call(this._minWeekdaysParse,a),i!==-1?i:null):"dddd"===e?(i=hi.call(this._weekdaysParse,a),i!==-1?i:(i=hi.call(this._shortWeekdaysParse,a),i!==-1?i:(i=hi.call(this._minWeekdaysParse,a),i!==-1?i:null))):"ddd"===e?(i=hi.call(this._shortWeekdaysParse,a),i!==-1?i:(i=hi.call(this._weekdaysParse,a),i!==-1?i:(i=hi.call(this._minWeekdaysParse,a),i!==-1?i:null))):(i=hi.call(this._minWeekdaysParse,a),i!==-1?i:(i=hi.call(this._weekdaysParse,a),i!==-1?i:(i=hi.call(this._shortWeekdaysParse,a),i!==-1?i:null)))}function Nt(t,e,n){var r,i,o;if(this._weekdaysParseExact)return Lt.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function jt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Pt(t,this.localeData()),this.add(t-e,"d")):e}function Ut(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function zt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=At(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ft(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=wi),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Bt(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Si),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wt(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ki),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Yt(){function t(t,e){return e.length-t.length}var e,n,r,i,o,a=[],s=[],u=[],l=[];for(e=0;e<7;e++)n=h([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(a.sort(t),s.sort(t),u.sort(t),l.sort(t),e=0;e<7;e++)s[e]=et(s[e]),u[e]=et(u[e]),l[e]=et(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ht(){return this.hours()%12||12}function Vt(){return this.hours()||24}function Gt(t,e){q(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function qt(t,e){return e._meridiemParse}function Xt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Kt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function $t(t){return t?t.toLowerCase().replace("_","-"):t}function Zt(t){for(var e,n,r,i,o=0;o0;){if(r=Qt(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&w(i,n,!0)>=e-1)break;e--}o++}return null}function Qt(e){var n=null;if(!Di[e]&&"undefined"!=typeof t&&t&&t.exports)try{n=Ci._abbr,!function(){var t=new Error('Cannot find module "./locale"');throw t.code="MODULE_NOT_FOUND",t}(),Jt(n)}catch(e){}return Di[e]}function Jt(t,e){var n;return t&&(n=m(e)?ne(t):te(t,e),n&&(Ci=n)),Ci._abbr}function te(t,e){if(null!==e){var n=Ti;if(e.abbr=t,null!=Di[t])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Di[t]._config;else if(null!=e.parentLocale){if(null==Di[e.parentLocale])return Pi[e.parentLocale]||(Pi[e.parentLocale]=[]),Pi[e.parentLocale].push({name:t,config:e}),null;n=Di[e.parentLocale]._config}return Di[t]=new D(T(n,e)),Pi[t]&&Pi[t].forEach(function(t){te(t.name,t.config)}),Jt(t),Di[t]}return delete Di[t],null}function ee(t,e){if(null!=e){var n,r=Ti;null!=Di[t]&&(r=Di[t]._config),e=T(r,e),n=new D(e),n.parentLocale=Di[t],Di[t]=n,Jt(t)}else null!=Di[t]&&(null!=Di[t].parentLocale?Di[t]=Di[t].parentLocale:null!=Di[t]&&delete Di[t]);return Di[t]}function ne(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Ci;if(!r(t)){if(e=Qt(t))return e;t=[t]}return Zt(t)}function re(){return kr(Di)}function ie(t){var e,n=t._a;return n&&f(t).overflow===-2&&(e=n[ri]<0||n[ri]>11?ri:n[ii]<1||n[ii]>ot(n[ni],n[ri])?ii:n[oi]<0||n[oi]>24||24===n[oi]&&(0!==n[ai]||0!==n[si]||0!==n[ui])?oi:n[ai]<0||n[ai]>59?ai:n[si]<0||n[si]>59?si:n[ui]<0||n[ui]>999?ui:-1,f(t)._overflowDayOfYear&&(eii)&&(e=ii),f(t)._overflowWeeks&&e===-1&&(e=li),f(t)._overflowWeekday&&e===-1&&(e=ci),f(t).overflow=e),t}function oe(t){var e,n,r,i,o,a,s=t._i,u=Ai.exec(s)||Oi.exec(s);if(u){for(f(t).iso=!0,e=0,n=Ri.length;emt(i)&&(f(t)._overflowDayOfYear=!0),n=bt(i,0,t._dayOfYear),t._a[ri]=n.getUTCMonth(),t._a[ii]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=r[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[oi]&&0===t._a[ai]&&0===t._a[si]&&0===t._a[ui]&&(t._nextDay=!0,t._a[oi]=0),t._d=(t._useUTC?bt:_t).apply(null,o),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[oi]=24)}}function ce(t){var e,n,r,i,o,a,s,u;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)o=1,a=4,n=se(e.GG,t._a[ni],St(_e(),1,4).year),r=se(e.W,1),i=se(e.E,1),(i<1||i>7)&&(u=!0);else{o=t._locale._week.dow,a=t._locale._week.doy;var l=St(_e(),o,a);n=se(e.gg,t._a[ni],l.year),r=se(e.w,l.week),null!=e.d?(i=e.d,(i<0||i>6)&&(u=!0)):null!=e.e?(i=e.e+o,(e.e<0||e.e>6)&&(u=!0)):i=o}r<1||r>kt(n,o,a)?f(t)._overflowWeeks=!0:null!=u?f(t)._overflowWeekday=!0:(s=wt(n,r,i,o,a),t._a[ni]=s.year,t._dayOfYear=s.dayOfYear)}function he(t){if(t._f===e.ISO_8601)return void oe(t);t._a=[],f(t).empty=!0;var n,r,i,o,a,s=""+t._i,u=s.length,l=0;for(i=Z(t._f,t._locale).match(Ir)||[],n=0;n0&&f(t).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),l+=r.length),Nr[o]?(r?f(t).empty=!1:f(t).unusedTokens.push(o),it(o,r,t)):t._strict&&!r&&f(t).unusedTokens.push(o);f(t).charsLeftOver=u-l,s.length>0&&f(t).unusedInput.push(s),t._a[oi]<=12&&f(t).bigHour===!0&&t._a[oi]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[oi]=pe(t._locale,t._a[oi],t._meridiem),le(t),ie(t)}function pe(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(r=t.isPM(n),r&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function fe(t){var e,n,r,i,o;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function je(){if(!m(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),t=me(t),t._a){var e=t._isUTC?h(t._a):_e(t._a);this._isDSTShifted=this.isValid()&&w(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ue(){return!!this.isValid()&&!this._isUTC}function ze(){return!!this.isValid()&&this._isUTC}function Fe(){return!!this.isValid()&&this._isUTC&&0===this._offset}function Be(t,e){var n,r,i,o=t,s=null;return ke(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:a(t)?(o={},e?o[e]=t:o.milliseconds=t):(s=Bi.exec(t))?(n="-"===s[1]?-1:1,o={y:0,d:x(s[ii])*n,h:x(s[oi])*n,m:x(s[ai])*n,s:x(s[si])*n,ms:x(Ce(1e3*s[ui]))*n}):(s=Wi.exec(t))?(n="-"===s[1]?-1:1,o={y:We(s[2],n),M:We(s[3],n),w:We(s[4],n),d:We(s[5],n),h:We(s[6],n),m:We(s[7],n),s:We(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=He(_e(o.from),_e(o.to)),o={},o.ms=i.milliseconds,o.M=i.months),r=new Se(o),ke(t)&&l(t,"_locale")&&(r._locale=t._locale),r}function We(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ye(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function He(t,e){var n;return t.isValid()&&e.isValid()?(e=Te(e,t),t.isBefore(e)?n=Ye(t,e):(n=Ye(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ve(t,e){return function(n,r){var i,o;return null===r||isNaN(+r)||(C(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Be(n,r),Ge(this,i,t),this}}function Ge(t,n,r,i){var o=n._milliseconds,a=Ce(n._days),s=Ce(n._months);t.isValid()&&(i=null==i||i,o&&t._d.setTime(t._d.valueOf()+o*r),a&&Y(t,"Date",W(t,"Date")+a*r),s&&ct(t,W(t,"Month")+s*r),i&&e.updateOffset(t,a||s))}function qe(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Xe(t,n){var r=t||_e(),i=Te(r,this).startOf("day"),o=e.calendarFormat(this,i)||"sameElse",a=n&&(E(n[o])?n[o].call(this,r):n[o]);return this.format(a||this.localeData().calendar(o,this,_e(r)))}function Ke(){return new y(this)}function $e(t,e){var n=_(t)?t:_e(t);return!(!this.isValid()||!n.isValid())&&(e=j(m(e)?"millisecond":e),"millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()o&&(e=o),In.call(this,t,e,n,r,i))}function In(t,e,n,r,i){var o=wt(t,e,n,r,i),a=bt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Rn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Ln(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Nn(t,e){e[ui]=x(1e3*("0."+t))}function jn(){return this._isUTC?"UTC":""}function Un(){return this._isUTC?"Coordinated Universal Time":""}function zn(t){return _e(1e3*t)}function Fn(){return _e.apply(null,arguments).parseZone()}function Bn(t){return t}function Wn(t,e,n,r){var i=ne(),o=h().set(r,e);return i[n](o,t)}function Yn(t,e,n){if(a(t)&&(e=t,t=void 0),t=t||"",null!=e)return Wn(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Wn(t,r,n,"month");return i}function Hn(t,e,n,r){"boolean"==typeof t?(a(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,a(e)&&(n=e,e=void 0),e=e||"");var i=ne(),o=t?i._week.dow:0;if(null!=n)return Wn(e,(n+o)%7,r,"day");var s,u=[];for(s=0;s<7;s++)u[s]=Wn(e,(s+o)%7,r,"day");return u}function Vn(t,e){return Yn(t,e,"months")}function Gn(t,e){return Yn(t,e,"monthsShort")}function qn(t,e,n){return Hn(t,e,n,"weekdays")}function Xn(t,e,n){return Hn(t,e,n,"weekdaysShort")}function Kn(t,e,n){return Hn(t,e,n,"weekdaysMin")}function $n(){var t=this._data;return this._milliseconds=Ji(this._milliseconds),this._days=Ji(this._days),this._months=Ji(this._months),t.milliseconds=Ji(t.milliseconds),t.seconds=Ji(t.seconds),t.minutes=Ji(t.minutes),t.hours=Ji(t.hours),t.months=Ji(t.months),t.years=Ji(t.years),this}function Zn(t,e,n,r){var i=Be(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Qn(t,e){return Zn(this,t,e,1)}function Jn(t,e){return Zn(this,t,e,-1)}function tr(t){return t<0?Math.floor(t):Math.ceil(t)}function er(){var t,e,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*tr(rr(s)+a),a=0,s=0),u.milliseconds=o%1e3,t=b(o/1e3),u.seconds=t%60,e=b(t/60),u.minutes=e%60,n=b(e/60),u.hours=n%24,a+=b(n/24),i=b(nr(a)),s+=i,a-=tr(rr(i)),r=b(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function nr(t){return 4800*t/146097}function rr(t){return 146097*t/4800; }function ir(t){var e,n,r=this._milliseconds;if(t=j(t),"month"===t||"year"===t)return e=this._days+r/864e5,n=this._months+nr(e),"month"===t?n:n/12;switch(e=this._days+Math.round(rr(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function or(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12)}function ar(t){return function(){return this.as(t)}}function sr(t){return t=j(t),this[t+"s"]()}function ur(t){return function(){return this._data[t]}}function lr(){return b(this.days()/7)}function cr(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function hr(t,e,n){var r=Be(t).abs(),i=mo(r.as("s")),o=mo(r.as("m")),a=mo(r.as("h")),s=mo(r.as("d")),u=mo(r.as("M")),l=mo(r.as("y")),c=i0,c[4]=n,cr.apply(null,c)}function pr(t){return void 0===t?mo:"function"==typeof t&&(mo=t,!0)}function fr(t,e){return void 0!==go[t]&&(void 0===e?go[t]:(go[t]=e,!0))}function dr(t){var e=this.localeData(),n=hr(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function vr(){var t,e,n,r=yo(this._milliseconds)/1e3,i=yo(this._days),o=yo(this._months);t=b(r/60),e=b(t/60),r%=60,t%=60,n=b(o/12),o%=12;var a=n,s=o,u=i,l=e,c=t,h=r,p=this.asSeconds();return p?(p<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||c||h?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(h?h+"S":""):"P0D"}var mr,gr;gr=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r68?1900:2e3)};var gi=B("FullYear",!0);q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),z("week",5),z("isoWeek",5),Q("w",Wr),Q("ww",Wr,Ur),Q("W",Wr),Q("WW",Wr,Ur),rt(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=x(t)});var yi={dow:0,doy:6};q("d",0,"do","day"),q("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),q("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),q("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),z("day",11),z("weekday",11),z("isoWeekday",11),Q("d",Wr),Q("e",Wr),Q("E",Wr),Q("dd",function(t,e){return e.weekdaysMinRegex(t)}),Q("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Q("dddd",function(t,e){return e.weekdaysRegex(t)}),rt(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:f(n).invalidWeekday=t}),rt(["d","e","E"],function(t,e,n,r){e[r]=x(t)});var _i="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wi=Jr,Si=Jr,ki=Jr;q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Ht),q("k",["kk",2],0,Vt),q("hmm",0,0,function(){return""+Ht.apply(this)+G(this.minutes(),2)}),q("hmmss",0,0,function(){return""+Ht.apply(this)+G(this.minutes(),2)+G(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+G(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+G(this.minutes(),2)+G(this.seconds(),2)}),Gt("a",!0),Gt("A",!1),N("hour","h"),z("hour",13),Q("a",qt),Q("A",qt),Q("H",Wr),Q("h",Wr),Q("HH",Wr,Ur),Q("hh",Wr,Ur),Q("hmm",Yr),Q("hmmss",Hr),Q("Hmm",Yr),Q("Hmmss",Hr),nt(["H","HH"],oi),nt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),nt(["h","hh"],function(t,e,n){e[oi]=x(t),f(n).bigHour=!0}),nt("hmm",function(t,e,n){var r=t.length-2;e[oi]=x(t.substr(0,r)),e[ai]=x(t.substr(r)),f(n).bigHour=!0}),nt("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[oi]=x(t.substr(0,r)),e[ai]=x(t.substr(r,2)),e[si]=x(t.substr(i)),f(n).bigHour=!0}),nt("Hmm",function(t,e,n){var r=t.length-2;e[oi]=x(t.substr(0,r)),e[ai]=x(t.substr(r))}),nt("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[oi]=x(t.substr(0,r)),e[ai]=x(t.substr(r,2)),e[si]=x(t.substr(i))});var Ci,Ei=/[ap]\.?m?\.?/i,Mi=B("Hours",!0),Ti={calendar:Cr,longDateFormat:Er,invalidDate:Mr,ordinal:Tr,ordinalParse:Dr,relativeTime:Pr,months:fi,monthsShort:di,week:yi,weekdays:_i,weekdaysMin:xi,weekdaysShort:bi,meridiemParse:Ei},Di={},Pi={},Ai=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Oi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ii=/Z|[+-]\d\d(?::?\d\d)?/,Ri=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Li=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ni=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=k("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){};var ji=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=_e.apply(null,arguments);return this.isValid()&&t.isValid()?tthis?this:t:v()}),zi=function(){return Date.now?Date.now():+new Date};Ee("Z",":"),Ee("ZZ",""),Q("Z",Zr),Q("ZZ",Zr),nt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Me(Zr,t)});var Fi=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Bi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Wi=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Be.fn=Se.prototype;var Yi=Ve(1,"add"),Hi=Ve(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Vi=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Mn("gggg","weekYear"),Mn("ggggg","weekYear"),Mn("GGGG","isoWeekYear"),Mn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),z("weekYear",1),z("isoWeekYear",1),Q("G",Kr),Q("g",Kr),Q("GG",Wr,Ur),Q("gg",Wr,Ur),Q("GGGG",Gr,Fr),Q("gggg",Gr,Fr),Q("GGGGG",qr,Br),Q("ggggg",qr,Br),rt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=x(t)}),rt(["gg","GG"],function(t,n,r,i){n[i]=e.parseTwoDigitYear(t)}),q("Q",0,"Qo","quarter"),N("quarter","Q"),z("quarter",7),Q("Q",jr),nt("Q",function(t,e){e[ri]=3*(x(t)-1)}),q("D",["DD",2],"Do","date"),N("date","D"),z("date",9),Q("D",Wr),Q("DD",Wr,Ur),Q("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),nt(["D","DD"],ii),nt("Do",function(t,e){e[ii]=x(t.match(Wr)[0],10)});var Gi=B("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),z("dayOfYear",4),Q("DDD",Vr),Q("DDDD",zr),nt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=x(t)}),q("m",["mm",2],0,"minute"),N("minute","m"),z("minute",14),Q("m",Wr),Q("mm",Wr,Ur),nt(["m","mm"],ai);var qi=B("Minutes",!1);q("s",["ss",2],0,"second"),N("second","s"),z("second",15),Q("s",Wr),Q("ss",Wr,Ur),nt(["s","ss"],si);var Xi=B("Seconds",!1);q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),z("millisecond",16),Q("S",Vr,jr),Q("SS",Vr,Ur),Q("SSS",Vr,zr);var Ki;for(Ki="SSSS";Ki.length<=9;Ki+="S")Q(Ki,Xr);for(Ki="S";Ki.length<=9;Ki+="S")nt(Ki,Nn);var $i=B("Milliseconds",!1);q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var Zi=y.prototype;Zi.add=Yi,Zi.calendar=Xe,Zi.clone=Ke,Zi.diff=nn,Zi.endOf=mn,Zi.format=un,Zi.from=ln,Zi.fromNow=cn,Zi.to=hn,Zi.toNow=pn,Zi.get=H,Zi.invalidAt=Cn,Zi.isAfter=$e,Zi.isBefore=Ze,Zi.isBetween=Qe,Zi.isSame=Je,Zi.isSameOrAfter=tn,Zi.isSameOrBefore=en,Zi.isValid=Sn,Zi.lang=Vi,Zi.locale=fn,Zi.localeData=dn,Zi.max=Ui,Zi.min=ji,Zi.parsingFlags=kn,Zi.set=V,Zi.startOf=vn,Zi.subtract=Hi,Zi.toArray=bn,Zi.toObject=xn,Zi.toDate=_n,Zi.toISOString=an,Zi.inspect=sn,Zi.toJSON=wn,Zi.toString=on,Zi.unix=yn,Zi.valueOf=gn,Zi.creationData=En,Zi.year=gi,Zi.isLeapYear=yt,Zi.weekYear=Tn,Zi.isoWeekYear=Dn,Zi.quarter=Zi.quarters=Rn,Zi.month=ht,Zi.daysInMonth=pt,Zi.week=Zi.weeks=Tt,Zi.isoWeek=Zi.isoWeeks=Dt,Zi.weeksInYear=An,Zi.isoWeeksInYear=Pn,Zi.date=Gi,Zi.day=Zi.days=jt,Zi.weekday=Ut,Zi.isoWeekday=zt,Zi.dayOfYear=Ln,Zi.hour=Zi.hours=Mi,Zi.minute=Zi.minutes=qi,Zi.second=Zi.seconds=Xi,Zi.millisecond=Zi.milliseconds=$i,Zi.utcOffset=Pe,Zi.utc=Oe,Zi.local=Ie,Zi.parseZone=Re,Zi.hasAlignedHourOffset=Le,Zi.isDST=Ne,Zi.isLocal=Ue,Zi.isUtcOffset=ze,Zi.isUtc=Fe,Zi.isUTC=Fe,Zi.zoneAbbr=jn,Zi.zoneName=Un,Zi.dates=k("dates accessor is deprecated. Use date instead.",Gi),Zi.months=k("months accessor is deprecated. Use month instead",ht),Zi.years=k("years accessor is deprecated. Use year instead",gi),Zi.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ae),Zi.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",je);var Qi=D.prototype;Qi.calendar=P,Qi.longDateFormat=A,Qi.invalidDate=O,Qi.ordinal=I,Qi.preparse=Bn,Qi.postformat=Bn,Qi.relativeTime=R,Qi.pastFuture=L,Qi.set=M,Qi.months=at,Qi.monthsShort=st,Qi.monthsParse=lt,Qi.monthsRegex=dt,Qi.monthsShortRegex=ft,Qi.week=Ct,Qi.firstDayOfYear=Mt,Qi.firstDayOfWeek=Et,Qi.weekdays=Ot,Qi.weekdaysMin=Rt,Qi.weekdaysShort=It,Qi.weekdaysParse=Nt,Qi.weekdaysRegex=Ft,Qi.weekdaysShortRegex=Bt,Qi.weekdaysMinRegex=Wt,Qi.isPM=Xt,Qi.meridiem=Kt,Jt("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===x(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),e.lang=k("moment.lang is deprecated. Use moment.locale instead.",Jt),e.langData=k("moment.langData is deprecated. Use moment.localeData instead.",ne);var Ji=Math.abs,to=ar("ms"),eo=ar("s"),no=ar("m"),ro=ar("h"),io=ar("d"),oo=ar("w"),ao=ar("M"),so=ar("y"),uo=ur("milliseconds"),lo=ur("seconds"),co=ur("minutes"),ho=ur("hours"),po=ur("days"),fo=ur("months"),vo=ur("years"),mo=Math.round,go={s:45,m:45,h:22,d:26,M:11},yo=Math.abs,_o=Se.prototype;return _o.abs=$n,_o.add=Qn,_o.subtract=Jn,_o.as=ir,_o.asMilliseconds=to,_o.asSeconds=eo,_o.asMinutes=no,_o.asHours=ro,_o.asDays=io,_o.asWeeks=oo,_o.asMonths=ao,_o.asYears=so,_o.valueOf=or,_o._bubble=er,_o.get=sr,_o.milliseconds=uo,_o.seconds=lo,_o.minutes=co,_o.hours=ho,_o.days=po,_o.weeks=lr,_o.months=fo,_o.years=vo,_o.humanize=dr,_o.toISOString=vr,_o.toString=vr,_o.toJSON=vr,_o.locale=fn,_o.localeData=dn,_o.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vr),_o.lang=Vi,q("X",0,0,"unix"),q("x",0,0,"valueOf"),Q("x",Kr),Q("X",Qr),nt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),nt("x",function(t,e,n){n._d=new Date(x(t))}),e.version="2.17.1",n(_e),e.fn=Zi,e.min=xe,e.max=we,e.now=zi,e.utc=h,e.unix=zn,e.months=Vn,e.isDate=s,e.locale=Jt,e.invalid=v,e.duration=Be,e.isMoment=_,e.weekdays=qn,e.parseZone=Fn,e.localeData=ne,e.isDuration=ke,e.monthsShort=Gn,e.weekdaysMin=Kn,e.defineLocale=te,e.updateLocale=ee,e.locales=re,e.weekdaysShort=Xn,e.normalizeUnits=j,e.relativeTimeRounding=pr,e.relativeTimeThreshold=fr,e.calendarFormat=qe,e.prototype=Zi,e})}).call(e,n(332)(t))},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],c=0;u=new Error(e.replace(/%s/g,function(){return l[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}t.exports=r},,,,function(t,e){"use strict";function n(t,e){if(null==t)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(t),r=Object.prototype.hasOwnProperty,i=1;i1){for(var f=Array(p),d=0;d1){for(var v=Array(d),m=0;m-1&&(a.splice(s,1),this.HCEvents[t]=a),this.removeEventListener?n(this,t,e):this.attachEvent&&i(this,t,e)):(o(this,t),this.HCEvents[t]=[])):(o(this),this.HCEvents={})},trigger:function(t,e){var n,r,i,o=this.HCEvents[t]||[],a=this,s=o.length;for(r=function(){e.defaultPrevented=!0},n=0;n=o.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0,n=!0;for(r in o.curAnim)o.curAnim[r]!==!0&&(n=!1);n&&o.complete&&o.complete.call(a),e=!1}else{var s=i-this.startTime;this.state=s/o.duration,this.pos=o.easing(s,0,1,o.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0}return e}},this.animate=function(e,n,o){var a,s,u,l,c,h="";e.stopAnimation=!1,"object"==typeof o&&null!==o||(l=arguments,o={duration:l[2],easing:l[3],complete:l[4]}),"number"!=typeof o.duration&&(o.duration=400),o.easing=Math[o.easing]||Math.easeInOutSine,o.curAnim=Highcharts.extend({},n);for(c in n)u=new i(e,o,c),s=null,"d"===c?(u.paths=t.init(e,e.d,n.d),u.toD=n.d,a=0,s=1):e.attr?a=e.attr(c):(a=parseFloat(r._getStyle(e,c))||0,"opacity"!==c&&(h="px")),s||(s=n[c]),u.custom(a,s,h)}},_getStyle:function(t,e){return window.getComputedStyle(t,void 0).getPropertyValue(e)},addAnimSetter:function(t,e){u[t]=e},getScript:function(t,e){var n=o.getElementsByTagName("head")[0],r=o.createElement("script");r.type="text/javascript",r.src=t,r.onload=e,n.appendChild(r)},inArray:function(t,e){return e.indexOf?e.indexOf(t):a.indexOf.call(e,t)},adapterRun:function(t,e){ return parseInt(r._getStyle(t,e),10)},grep:function(t,e){return a.filter.call(t,e)},map:function(t,e){for(var n=[],r=0,i=t.length;r-1?o.thousandsSep:""))):e=F(t,e),e}function y(t,e){for(var n,r,i,o,a,s,u,l="{",c=!1,h=[];(u=t.indexOf(l))!==-1;){if(n=t.slice(0,u),c){for(r=n.split(":"),i=r.shift().split("."),a=i.length,s=e,o=0;o=t||!i&&o<=(e[a]+(e[a+1]||e[a]))/2));a++);return s*=n}function x(t,e){var n,r,i=t.length;for(r=0;rn&&(n=t[e]);return n}function k(t,e){var n;for(n in t)t[n]&&t[n]!==e&&t[n].destroy&&t[n].destroy(),delete t[n]}function C(t){U||(U=f(Ut)),t&&U.appendChild(t),U.innerHTML=""}function E(t,e){var n="Highcharts error #"+t+": www.highcharts.com/errors/"+t;if(e)throw n;ut.console&&console.log(n)}function M(t){return parseFloat(t.toPrecision(14))}function T(t,e){B=ne(t,e.animation)}function D(){var t=z.global,e=t.useUTC,n=e?"getUTC":"get",r=e?"setUTC":"set";V=t.Date||window.Date,q=e&&t.timezoneOffset,X=e&&t.getTimezoneOffset,G=function(t,n,r,i,o,a){var s;return e?(s=V.UTC.apply(0,arguments),s+=m(s)):s=new V(t,n,ne(r,1),ne(i,0),ne(o,0),ne(a,0)).getTime(),s},K=n+"Minutes",$=n+"Hours",Z=n+"Day",Q=n+"Date",J=n+"Month",tt=n+"FullYear",et=r+"Minutes",nt=r+"Hours",rt=r+"Date",it=r+"Month",ot=r+"FullYear"}function P(e){return z=t(!0,z,e),D(),z}function A(){return z}function O(){}function I(t,e,n,r){this.axis=t,this.pos=e,this.type=n||"",this.isNew=!0,n||r||this.addLabel()}function R(t,e,n,r,i){var o=t.chart.inverted;this.axis=t,this.isNegative=n,this.options=e,this.x=r,this.total=null,this.points={},this.stack=i,this.alignOptions={align:e.align||(o?n?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":n?"bottom":"top"),y:ne(e.y,o?4:n?14:-6),x:ne(e.x,o?n?-6:6:0)},this.textAlign=e.textAlign||(o?n?"right":"left":"center")}var L,N,j,U,z,F,B,W,Y,H,V,G,q,X,K,$,Z,Q,J,tt,et,nt,rt,it,ot,at,st=document,ut=window,lt=Math,ct=lt.round,ht=lt.floor,pt=lt.ceil,ft=lt.max,dt=lt.min,vt=lt.abs,mt=lt.cos,gt=lt.sin,yt=lt.PI,_t=2*yt/360,bt=navigator.userAgent,xt=ut.opera,wt=/(msie|trident)/i.test(bt)&&!xt,St=8===st.documentMode,kt=/AppleWebKit/.test(bt),Ct=/Firefox/.test(bt),Et=/(Mobile|Android|Windows Phone)/.test(bt),Mt="http://www.w3.org/2000/svg",Tt=!!st.createElementNS&&!!st.createElementNS(Mt,"svg").createSVGRect,Dt=Ct&&parseInt(bt.split("Firefox/")[1],10)<4,Pt=!Tt&&!wt&&!!st.createElement("canvas").getContext,At={},Ot=0,It=function(){return L},Rt=[],Lt=0,Nt="Highcharts",jt="4.1.4-modified",Ut="div",zt="absolute",Ft="relative",Bt="hidden",Wt="highcharts-",Yt="visible",Ht="px",Vt="none",Gt="M",qt="L",Xt=/^[0-9]+$/,Kt="",$t="hover",Zt="select",Qt=["plotTop","marginRight","marginBottom","plotLeft"],Jt="stroke-width",te={};at=ut.Highcharts=ut.Highcharts?E(16,!0):{},at.seriesTypes=te;var ee=at.extend=function(t,e){var n;t||(t={});for(n in e)t[n]=e[n];return t},ne=at.pick=function(){var t,e,n=arguments,r=n.length;for(t=0;t3?h.length%3:0;return c+(p?h.substr(0,p)+l:"")+h.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+l)+(s?u+vt(a-h).toFixed(s).slice(2):"")},W={init:function(t,e,n){e=e||"";var r,i,o,a,s,u=t.shift,l=e.indexOf("C")>-1,c=l?7:3,h=e.split(" "),p=[].concat(n),f=function(t){for(o=t.length;o--;)t[o]===Gt&&t.splice(o+1,0,t[o+1],t[o+2],t[o+1],t[o+2])};if(l&&(f(h),f(p)),t.isArea&&(a=h.splice(h.length-6,6),s=p.splice(p.length-6,6)),u<=p.length/c&&h.length===p.length)for(;u--;)p=[].concat(p).splice(0,c).concat(p);if(t.shift=0,h.length)for(r=p.length;h.length{point.key}
',pointFormat:' {series.name}: {point.y}
',shadow:!0,snap:Et?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}};var _e=z.plotOptions,be=_e.line;D();var xe=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,we=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,Se=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,ke=function(n){function r(t){t&&t.stops?l=pe(t.stops,function(t){return ke(t[1])}):(u=xe.exec(t),u?c=[e(u[1]),e(u[2]),e(u[3]),parseFloat(u[4],10)]:(u=we.exec(t),u?c=[e(u[1],16),e(u[2],16),e(u[3],16),1]:(u=Se.exec(t),u&&(c=[e(u[1]),e(u[2]),e(u[3]),1]))))}function i(e){var r;return l?(r=t(n),r.stops=[].concat(r.stops),le(l,function(t,n){r.stops[n]=[r.stops[n][0],t.get(e)]})):r=c&&!isNaN(c[0])?"rgb"===e?"rgb("+c[0]+","+c[1]+","+c[2]+")":"a"===e?c[3]:"rgba("+c.join(",")+")":n,r}function a(t){if(l)le(l,function(e){e.brighten(t)});else if(o(t)&&0!==t){var n;for(n=0;n<3;n++)c[n]+=e(255*t),c[n]<0&&(c[n]=0),c[n]>255&&(c[n]=255)}return this}function s(t){return c[3]=t,this}var u,l,c=[];return r(n),{get:i,brighten:a,rgba:c,setOpacity:s,raw:n}};O.prototype={opacity:1,textProps:["fontSize","fontWeight","fontFamily","color","lineHeight","width","textDecoration","textShadow"],init:function(t,e){var n=this;n.element="span"===e?f(e):st.createElementNS(Mt,e),n.renderer=t},animate:function(e,n,r){var i=ne(n,B,!0);return ye(this),i?(i=t(i,{}),r&&(i.complete=r),ge(this,e,i)):(this.attr(e),r&&r()),this},colorGradient:function(e,n,r){var o,a,s,u,c,h,p,f,d,v,m,g=this.renderer,y=[];if(e.linearGradient?a="linearGradient":e.radialGradient&&(a="radialGradient"),a){s=e[a],u=g.gradients,h=e.stops,d=r.radialReference,i(s)&&(e[a]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===a&&d&&!l(s.gradientUnits)&&(s=t(s,{cx:d[0]-d[2]/2+s.cx*d[2],cy:d[1]-d[2]/2+s.cy*d[2],r:s.r*d[2],gradientUnits:"userSpaceOnUse"}));for(v in s)"id"!==v&&y.push(v,s[v]);for(v in h)y.push(h[v]);y=y.join(","),u[y]?m=u[y].attr("id"):(s.id=m=Wt+Ot++,u[y]=c=g.createElement(a).attr(s).add(g.defs),c.stops=[],le(h,function(t){var e;0===t[1].indexOf("rgba")?(o=ke(t[1]),p=o.get("rgb"),f=o.get("a")):(p=t[1],f=1),e=g.createElement("stop").attr({offset:t[0],"stop-color":p,"stop-opacity":f}).add(c),c.stops.push(e)})),r.setAttribute(n,"url("+g.url+"#"+m+")")}},applyTextShadow:function(t){var n,r=this.element,i=t.indexOf("contrast")!==-1,o=this.renderer.forExport||r.style.textShadow!==L&&!wt;i&&(t=t.replace(/contrast/g,this.renderer.getContrast(r.style.fill))),o?i&&p(r,{textShadow:t}):(this.fakeTS=!0,this.ySetter=this.xSetter,n=[].slice.call(r.getElementsByTagName("tspan")),le(t.split(/\s?,\s?/g),function(t){var i,o,a=r.firstChild;t=t.split(" "),i=t[t.length-1],o=t[t.length-2],o&&le(n,function(t,n){var s;0===n&&(t.setAttribute("x",r.getAttribute("x")),n=r.getAttribute("y"),t.setAttribute("y",n||0),null===n&&r.setAttribute("y",0)),s=t.cloneNode(1),c(s,{"class":Wt+"text-shadow",fill:i,stroke:i,"stroke-opacity":1/ft(e(o),3),"stroke-width":o,"stroke-linejoin":"round"}),r.insertBefore(s,a)})}))},attr:function(t,e){var n,r,i,o,a=this.element,s=this;if("string"==typeof t&&e!==L&&(n=t,t={},t[n]=e),"string"==typeof t)s=(this[t+"Getter"]||this._defaultGetter).call(this,t,a);else{for(n in t)r=t[n],o=!1,this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(n)&&(i||(this.symbolAttr(t),i=!0),o=!0),!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0),o||(this[n+"Setter"]||this._defaultSetter).call(this,r,n,a),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,r);this.doTransform&&(this.updateTransform(),this.doTransform=!1)}return s},updateShadows:function(t,e){for(var n=this.shadows,r=n.length;r--;)n[r].setAttribute(t,"height"===t?ft(e-(n[r].cutHeight||0),0):"d"===t?this.d:e)},addClass:function(t){var e=this.element,n=c(e,"class")||"";return n.indexOf(t)===-1&&c(e,"class",n+" "+t),this},symbolAttr:function(t){var e=this;le(["x","y","r","start","end","width","height","innerR","anchorX","anchorY"],function(n){e[n]=ne(t[n],e[n])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":Vt)},crisp:function(t){var e,n,r=this,i={},o=t.strokeWidth||r.strokeWidth||0;n=ct(o)%2/2,t.x=ht(t.x||r.x||0)+n,t.y=ht(t.y||r.y||0)+n,t.width=ht((t.width||r.width||0)-2*n),t.height=ht((t.height||r.height||0)-2*n),t.strokeWidth=o;for(e in t)r[e]!==t[e]&&(r[e]=i[e]=t[e]);return i},css:function(t){var n,r,i,o=this,a=o.styles,s={},u=o.element,l="",h=!a;if(t&&t.color&&(t.fill=t.color),a)for(r in t)t[r]!==a[r]&&(s[r]=t[r],h=!0);if(h){if(n=o.textWidth=t&&t.width&&"text"===u.nodeName.toLowerCase()&&e(t.width)||o.textWidth,a&&(t=ee(a,s)),o.styles=t,n&&(Pt||!Tt&&o.renderer.forExport)&&delete t.width,wt&&!Tt)p(o.element,t);else{i=function(t,e){return"-"+e.toLowerCase()};for(r in t)l+=r.replace(/([A-Z])/g,i)+":"+t[r]+";";c(u,"style",l)}n&&o.added&&o.renderer.buildText(o)}return o},on:function(t,e){var n=this,r=n.element;return j&&"click"===t?(r.ontouchstart=function(t){n.touchEventFired=V.now(),t.preventDefault(),e.call(r,t)},r.onclick=function(t){(bt.indexOf("Android")===-1||V.now()-(n.touchEventFired||0)>1100)&&e.call(r,t)}):r["on"+t]=e,this},setRadialReference:function(t){return this.element.radialReference=t,this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(){var t=this;return t.inverted=!0,t.updateTransform(),t},updateTransform:function(){var t,e=this,n=e.translateX||0,r=e.translateY||0,i=e.scaleX,o=e.scaleY,a=e.inverted,s=e.rotation,u=e.element;a&&(n+=e.attr("width"),r+=e.attr("height")),t=["translate("+n+","+r+")"],a?t.push("rotate(90) scale(-1,1)"):s&&t.push("rotate("+s+" "+(u.getAttribute("x")||0)+" "+(u.getAttribute("y")||0)+")"),(l(i)||l(o))&&t.push("scale("+ne(i,1)+" "+ne(o,1)+")"),t.length&&u.setAttribute("transform",t.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,r){var i,o,a,s,l,c={},h=this.renderer,p=h.alignedObjects;return t?(this.alignOptions=t,this.alignByTranslate=e,r&&!n(r)||(this.alignTo=l=r||"renderer",u(p,this),p.push(this),r=null)):(t=this.alignOptions,e=this.alignByTranslate,l=this.alignTo),r=ne(r,h[l],h),i=t.align,o=t.verticalAlign,a=(r.x||0)+(t.x||0),s=(r.y||0)+(t.y||0),"right"!==i&&"center"!==i||(a+=(r.width-(t.width||0))/{right:1,center:2}[i]),c[e?"translateX":"x"]=ct(a),"bottom"!==o&&"middle"!==o||(s+=(r.height-(t.height||0))/({bottom:1,middle:2}[o]||1)),c[e?"translateY":"y"]=ct(s),this[this.placed?"animate":"attr"](c),this.placed=!0,this.alignAttr=c,this},getBBox:function(t){var e,n,r,i,o,a,s=this,u=s.renderer,l=s.rotation,c=s.element,h=s.styles,p=l*_t,f=s.textStr,d=c.style;if(f!==L&&(a=["",l||0,h&&h.fontSize,c.style.width].join(","),a=""===f||Xt.test(f)?"num:"+f.toString().length+a:f+a),a&&!t&&(e=u.cache[a]),!e){if(c.namespaceURI===Mt||u.forExport){try{o=this.fakeTS&&function(t){le(c.querySelectorAll("."+Wt+"text-shadow"),function(e){e.style.display=t})},Ct&&d.textShadow?(i=d.textShadow,d.textShadow=""):o&&o(Vt),e=c.getBBox?ee({},c.getBBox()):{width:c.offsetWidth,height:c.offsetHeight},i?d.textShadow=i:o&&o("")}catch(v){}(!e||e.width<0)&&(e={width:0,height:0})}else e=s.htmlGetBBox();u.isSVG&&(n=e.width,r=e.height,wt&&h&&"11px"===h.fontSize&&"16.9"===r.toPrecision(3)&&(e.height=r=14),l&&(e.width=vt(r*gt(p))+vt(n*mt(p)),e.height=vt(r*mt(p))+vt(n*gt(p)))),u.cache[a]=e}return e},show:function(t){return t&&this.element.namespaceURI===Mt?this.element.removeAttribute("visibility"):this.attr({visibility:t?"inherit":Yt}),this},hide:function(){return this.attr({visibility:Bt})},fadeOut:function(t){var e=this;e.animate({opacity:0},{duration:t||150,complete:function(){e.attr({y:-9999})}})},add:function(t){var e,n=this.renderer,r=this.element;return t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&n.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:n.box).appendChild(r),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t,e,n,r=this,i=r.element||{},o=r.shadows,a=r.renderer.isSVG&&"SPAN"===i.nodeName&&r.parentGroup;if(i.onclick=i.onmouseout=i.onmouseover=i.onmousemove=i.point=null,ye(r),r.clipPath&&(r.clipPath=r.clipPath.destroy()),r.stops){for(n=0;n]*>/g,"")},textSetter:function(t){t!==this.textStr&&(delete this.bBox,this.textStr=t,this.added&&this.renderer.buildText(this))},fillSetter:function(t,e,n){"string"==typeof t?n.setAttribute(e,t):t&&this.colorGradient(t,e,n)},zIndexSetter:function(t,n){var r,i,o,a,s,u=this.renderer,h=this.parentGroup,p=h||u,f=p.element||u.box,d=this.element,v=this.added;if(l(t)&&(d.setAttribute(n,t),t=+t,this[n]===t&&(v=!1),this[n]=t),v){for(t=this.zIndex,t&&h&&(h.handleZ=!0),r=f.childNodes,s=0;st||!l(t)&&l(o))&&(f.insertBefore(d,i),a=!0);a||f.appendChild(d)}return a},_defaultSetter:function(t,e,n){n.setAttribute(e,t)}},O.prototype.yGetter=O.prototype.xGetter,O.prototype.translateXSetter=O.prototype.translateYSetter=O.prototype.rotationSetter=O.prototype.verticalAlignSetter=O.prototype.scaleXSetter=O.prototype.scaleYSetter=function(t,e){this[e]=t,this.doTransform=!0},O.prototype["stroke-widthSetter"]=O.prototype.strokeSetter=function(t,e,n){this[e]=t,this.stroke&&this["stroke-width"]?(this.strokeWidth=this["stroke-width"],O.prototype.fillSetter.call(this,this.stroke,"stroke",n),n.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===t&&this.hasStroke&&(n.removeAttribute("stroke"),this.hasStroke=!1)};var Ce=function(){this.init.apply(this,arguments)};Ce.prototype={Element:O,init:function(t,e,n,r,i){var o,a,s,u=this,l=location;o=u.createElement("svg").attr({version:"1.1"}).css(this.getStyle(r)),a=o.element,t.appendChild(a),t.innerHTML.indexOf("xmlns")===-1&&c(a,"xmlns",Mt),u.isSVG=!0,u.box=a,u.boxWrapper=o,u.alignedObjects=[],u.url=(Ct||kt)&&st.getElementsByTagName("base").length?l.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",s=this.createElement("desc").add(),s.element.appendChild(st.createTextNode("Created with "+Nt+" "+jt)),u.defs=this.createElement("defs").add(),u.forExport=i,u.gradients={},u.cache={},u.setSize(e,n,!1);var h,f;Ct&&t.getBoundingClientRect&&(u.subPixelFix=h=function(){p(t,{left:0,top:0}),f=t.getBoundingClientRect(),p(t,{left:pt(f.left)-f.left+Ht,top:pt(f.top)-f.top+Ht})},h(),fe(ut,"resize",h))},getStyle:function(t){return this.style=ee({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this,e=t.defs;return t.box=null,t.boxWrapper=t.boxWrapper.destroy(),k(t.gradients||{}),t.gradients=null,e&&(t.defs=e.destroy()),t.subPixelFix&&de(ut,"resize",t.subPixelFix),t.alignedObjects=null,null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:function(){},buildText:function(t){for(var n,r,i,o=t.element,a=this,s=a.forExport,u=ne(t.textStr,"").toString(),l=u.indexOf("<")!==-1,h=o.childNodes,f=c(o,"x"),d=t.styles,v=t.textWidth,m=d&&d.lineHeight,g=d&&d.textShadow,y=d&&"ellipsis"===d.textOverflow,_=h.length,b=v&&!t.added&&this.box,x=function(t){return m?e(m):a.fontMetrics(/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:d&&d.fontSize||a.style.fontSize||12,t).h},w=function(t){return t.replace(/</g,"<").replace(/>/g,">")};_--;)o.removeChild(h[_]);return l||g||y||u.indexOf(" ")!==-1?(r=/<.*style="([^"]+)".*>/,i=/<.*href="(http[^"]+)".*>/,b&&b.appendChild(o),n=l?u.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g):[u],""===n[n.length-1]&&n.pop(),le(n,function(e,n){var u,l=0;e=e.replace(//g,"|||"),u=e.split("|||"),le(u,function(e){if(""!==e||1===u.length){var h,m={},g=st.createElementNS(Mt,"tspan");if(r.test(e)&&(h=e.match(r)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),c(g,"style",h)),i.test(e)&&!s&&(c(g,"onclick",'location.href="'+e.match(i)[1]+'"'),p(g,{cursor:"pointer"})),e=w(e.replace(/<(.|\n)*?>/g,"")||" ")," "!==e){if(g.appendChild(st.createTextNode(e)),l?m.dx=0:n&&null!==f&&(m.x=f),c(g,m),o.appendChild(g),!l&&n&&(!Tt&&s&&p(g,{display:"block"}),c(g,"dy",x(g))),v){for(var _,b,S,k,C=e.replace(/([^\^])-/g,"$1- ").split(" "),E=u.length>1||n||C.length>1&&"nowrap"!==d.whiteSpace,M=[],T=x(g),D=1,P=t.rotation,A=e,O=A.length;(E||y)&&(C.length||M.length);)t.rotation=0,k=t.getBBox(!0),S=k.width,!Tt&&a.forExport&&(S=a.measureSpanWidth(g.firstChild.data,t.styles)),_=S>v,void 0===b&&(b=_),y&&b?(O/=2,""===A||!_&&O<.5?C=[]:(_&&(b=!0),A=e.substring(0,A.length+(_?-1:1)*pt(O)),C=[A+"…"],g.removeChild(g.firstChild))):_&&1!==C.length?(g.removeChild(g.firstChild),M.unshift(C.pop())):(C=M,M=[],C.length&&(D++,g=st.createElementNS(Mt,"tspan"),c(g,{dy:T,x:f}),h&&c(g,"style",h),o.appendChild(g)),S>v&&(v=S)),C.length&&g.appendChild(st.createTextNode(C.join(" ").replace(/- /g,"-")));b&&t.attr("title",t.textStr),t.rotation=P}l++}}})}),b&&b.removeChild(o),g&&t.applyTextShadow&&t.applyTextShadow(g),void 0):void o.appendChild(st.createTextNode(w(u)))},getContrast:function(t){return t=ke(t).rgba,t[0]+t[1]+t[2]>384?"#000":"#FFF"},button:function(e,n,r,i,o,a,s,u,l){var c,h,p,f,d,v,m=this.label(e,n,r,l,null,null,null,null,"button"),g=0,y={x1:0,y1:0,x2:0,y2:1};return o=t({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:y,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},o),p=o.style,delete o.style,a=t(o,{stroke:"#68A",fill:{linearGradient:y,stops:[[0,"#FFF"],[1,"#ACF"]]}},a),f=a.style,delete a.style,s=t(o,{stroke:"#68A",fill:{linearGradient:y,stops:[[0,"#9BD"],[1,"#CDF"]]}},s),d=s.style,delete s.style,u=t(o,{style:{color:"#CCC"}},u),v=u.style,delete u.style,fe(m.element,wt?"mouseover":"mouseenter",function(){3!==g&&m.attr(a).css(f)}),fe(m.element,wt?"mouseout":"mouseleave",function(){3!==g&&(c=[o,a,s][g],h=[p,f,d][g],m.attr(c).css(h))}),m.setState=function(t){m.state=g=t,t?2===t?m.attr(s).css(d):3===t&&m.attr(u).css(v):m.attr(o).css(p)},m.on("click",function(){3!==g&&i.call(m)}).attr(o).css(ee({cursor:"default"},p))},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=ct(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=ct(t[2])+e%2/2),t},path:function(t){var e={fill:Vt};return i(t)?e.d=t:r(t)&&ee(e,t),this.createElement("path").attr(e)},circle:function(t,e,n){var i=r(t)?t:{x:t,y:e,r:n},o=this.createElement("circle");return o.xSetter=function(t){this.element.setAttribute("cx",t)},o.ySetter=function(t){this.element.setAttribute("cy",t)},o.attr(i)},arc:function(t,e,n,i,o,a){var s;return r(t)&&(e=t.y,n=t.r,i=t.innerR,o=t.start,a=t.end,t=t.x),s=this.symbol("arc",t||0,e||0,n||0,n||0,{innerR:i||0,start:o||0,end:a||0}),s.r=n,s},rect:function(t,e,n,i,o,a){o=r(t)?t.r:o;var s=this.createElement("rect"),u=r(t)?t:t===L?{}:{x:t,y:e,width:ft(n,0),height:ft(i,0)};return a!==L&&(u.strokeWidth=a,u=s.crisp(u)),o&&(u.r=o),s.rSetter=function(t){c(this.element,{rx:t,ry:t})},s.attr(u)},setSize:function(t,e,n){var r=this,i=r.alignedObjects,o=i.length;for(r.width=t,r.height=e,r.boxWrapper[ne(n,!0)?"animate":"attr"]({width:t,height:e});o--;)i[o].align()},g:function(t){var e=this.createElement("g");return l(t)?e.attr({"class":Wt+t}):e},image:function(t,e,n,r,i){var o,a={preserveAspectRatio:Vt};return arguments.length>1&&ee(a,{x:e,y:n,width:r,height:i}),o=this.createElement("image").attr(a),o.element.setAttributeNS?o.element.setAttributeNS("http://www.w3.org/1999/xlink","href",t):o.element.setAttribute("hc-svg-href",t),o},symbol:function(t,e,n,r,i,o){var a,s,u,l,c,h=this.symbols[t],p=h&&h(ct(e),ct(n),r,i,o),d=/^url\((.*?)\)$/;return p?(a=this.path(p),ee(a,{symbolName:t,x:e,y:n,width:r,height:i}),o&&ee(a,o)):d.test(t)&&(c=function(t,e){t.element&&(t.attr({width:e[0],height:e[1]}),t.alignByTranslate||t.translate(ct((r-e[0])/2),ct((i-e[1])/2)))},u=t.match(d)[1],l=At[u]||o&&o.width&&o.height&&[o.width,o.height],a=this.image(u).attr({x:e,y:n}),a.isImg=!0,l?c(a,l):(a.attr({width:0,height:0}),s=f("img",{onload:function(){ c(a,At[u]=[this.width,this.height])},src:u}))),a},symbols:{circle:function(t,e,n,r){var i=.166*n;return[Gt,t+n/2,e,"C",t+n+i,e,t+n+i,e+r,t+n/2,e+r,"C",t-i,e+r,t-i,e,t+n/2,e,"Z"]},square:function(t,e,n,r){return[Gt,t,e,qt,t+n,e,t+n,e+r,t,e+r,"Z"]},triangle:function(t,e,n,r){return[Gt,t+n/2,e,qt,t+n,e+r,t,e+r,"Z"]},"triangle-down":function(t,e,n,r){return[Gt,t,e,qt,t+n,e,t+n/2,e+r,"Z"]},diamond:function(t,e,n,r){return[Gt,t+n/2,e,qt,t+n,e+r/2,t+n/2,e+r,t,e+r/2,"Z"]},arc:function(t,e,n,r,i){var o=i.start,a=i.r||n||r,s=i.end-.001,u=i.innerR,l=i.open,c=mt(o),h=gt(o),p=mt(s),f=gt(s),d=i.end-on&&h>e+l&&he+l&&hr&&c>t+l&&ct+l&&cg&&/[ \-]/.test(r.textContent||r.innerText)&&(p(r,{width:g+Ht,display:"block",whiteSpace:f&&f.whiteSpace||"normal"}),d=g),t.getSpanCorrection(d,v,c,m,u)),p(r,{left:a+(t.xCorr||0)+Ht,top:s+(t.yCorr||0)+Ht}),kt&&(v=r.offsetHeight),t.cTT=y}},setSpanRotation:function(t,e,n){var r={},i=wt?"-ms-transform":kt?"-webkit-transform":Ct?"MozTransform":xt?"-o-transform":"";r[i]=r.transform="rotate("+t+"deg)",r[i+(Ct?"Origin":"-origin")]=r.transformOrigin=100*e+"% "+n+"px",p(this.element,r)},getSpanCorrection:function(t,e,n){this.xCorr=-t*n,this.yCorr=-e}}),ee(Ce.prototype,{html:function(t,e,n){var r=this.createElement("span"),i=r.element,o=r.renderer;return r.textSetter=function(t){t!==i.innerHTML&&delete this.bBox,i.innerHTML=this.textStr=t},r.xSetter=r.ySetter=r.alignSetter=r.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),r[e]=t,r.htmlUpdateTransform()},r.attr({text:t,x:ct(e),y:ct(n)}).css({position:zt,fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),i.style.whiteSpace="nowrap",r.css=r.htmlCss,o.isSVG&&(r.add=function(t){var e,n,a=o.box.parentNode,s=[];if(this.parentGroup=t,t){if(e=t.div,!e){for(n=t;n;)s.push(n),n=n.parentGroup;le(s.reverse(),function(t){var n;e=t.div=t.div||f(Ut,{className:c(t.element,"class")},{position:zt,left:(t.translateX||0)+Ht,top:(t.translateY||0)+Ht},e||a),n=e.style,ee(t,{translateXSetter:function(e,r){n.left=e+Ht,t[r]=e,t.doTransform=!0},translateYSetter:function(e,r){n.top=e+Ht,t[r]=e,t.doTransform=!0},visibilitySetter:function(t,e){n[e]=t}})})}}else e=a;return e.appendChild(i),r.added=!0,r.alignOnAdd&&r.htmlUpdateTransform(),r}),r}});var Ee,Me;if(!Tt&&!Pt){Me={init:function(t,e){var n=this,r=["<",e,' filled="f" stroked="f"'],i=["position: ",zt,";"],o=e===Ut;("shape"===e||o)&&i.push("left:0;top:0;width:1px;height:1px;"),i.push("visibility: ",o?Bt:Yt),r.push(' style="',i.join(""),'"/>'),e&&(r=o||"span"===e||"img"===e?r.join(""):t.prepVML(r),n.element=f(r)),n.renderer=t},add:function(t){var e=this,n=e.renderer,r=e.element,i=n.box,o=t&&t.inverted,a=t?t.element||t:i;return o&&n.invertChild(r,a),a.appendChild(r),e.added=!0,e.alignOnAdd&&!e.deferUpdateTransform&&e.updateTransform(),e.onAdd&&e.onAdd(),e},updateTransform:O.prototype.htmlUpdateTransform,setSpanRotation:function(){var t=this.rotation,e=mt(t*_t),n=gt(t*_t);p(this.element,{filter:t?["progid:DXImageTransform.Microsoft.Matrix(M11=",e,", M12=",-n,", M21=",n,", M22=",e,", sizingMethod='auto expand')"].join(""):Vt})},getSpanCorrection:function(t,e,n,r,i){var o,a=r?mt(r*_t):1,s=r?gt(r*_t):0,u=ne(this.elemHeight,this.element.offsetHeight),l=i&&"left"!==i;this.xCorr=a<0&&-t,this.yCorr=s<0&&-u,o=a*s<0,this.xCorr+=s*e*(o?1-n:n),this.yCorr-=a*e*(r?o?n:1-n:1),l&&(this.xCorr-=t*n*(a<0?-1:1),r&&(this.yCorr-=u*n*(s<0?-1:1)),p(this.element,{textAlign:i}))},pathToVML:function(t){for(var e=t.length,n=[];e--;)o(t[e])?n[e]=ct(10*t[e])-5:"Z"===t[e]?n[e]="x":(n[e]=t[e],!t.isArc||"wa"!==t[e]&&"at"!==t[e]||(n[e+5]===n[e+7]&&(n[e+7]+=t[e+7]>t[e+5]?1:-1),n[e+6]===n[e+8]&&(n[e+8]+=t[e+8]>t[e+6]?1:-1)));return n.join(" ")||"x"},clip:function(t){var e,n,r=this;return t?(e=t.members,u(e,r),e.push(r),r.destroyClip=function(){u(e,r)},n=t.getCSS(r)):(r.destroyClip&&r.destroyClip(),n={clip:St?"inherit":"rect(auto)"}),r.css(n)},css:O.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&C(t)},destroy:function(){return this.destroyClip&&this.destroyClip(),O.prototype.destroy.apply(this)},on:function(t,e){return this.element["on"+t]=function(){var t=ut.event;t.target=t.srcElement,e(t)},this},cutOffPath:function(t,n){var r;return t=t.split(/[ ,]/),r=t.length,9!==r&&11!==r||(t[r-4]=t[r-2]=e(t[r-2])-10*n),t.join(" ")},shadow:function(t,n,r){var i,o,a,s,u,l,c,h=[],p=this.element,d=this.renderer,v=p.style,m=p.path;if(m&&"string"!=typeof m.value&&(m="x"),u=m,t){for(l=ne(t.width,3),c=(t.opacity||.15)/l,i=1;i<=3;i++)s=2*l+1-2*i,r&&(u=this.cutOffPath(m.value,s+.5)),a=[''],o=f(d.prepVML(a),null,{left:e(v.left)+ne(t.offsetX,1),top:e(v.top)+ne(t.offsetY,1)}),r&&(o.cutOff=s+1),a=[''],f(d.prepVML(a),null,null,o),n?n.element.appendChild(o):p.parentNode.insertBefore(o,p),h.push(o);this.shadows=h}return this},updateShadows:It,setAttr:function(t,e){St?this.element[t]=e:this.element.setAttribute(t,e)},classSetter:function(t){this.element.className=t},dashstyleSetter:function(t,e,n){var r=n.getElementsByTagName("stroke")[0]||f(this.renderer.prepVML([""]),null,null,n);r[e]=t||"solid",this[e]=t},dSetter:function(t,e,n){var r,i=this.shadows;if(t=t||[],this.d=t.join&&t.join(" "),n.path=t=this.pathToVML(t),i)for(r=i.length;r--;)i[r].path=i[r].cutOff?this.cutOffPath(t,i[r].cutOff):t;this.setAttr(e,t)},fillSetter:function(t,e,n){var r=n.nodeName;"SPAN"===r?n.style.color=t:"IMG"!==r&&(n.filled=t!==Vt,this.setAttr("fillcolor",this.renderer.color(t,n,e,this)))},opacitySetter:It,rotationSetter:function(t,e,n){var r=n.style;this[e]=r[e]=t,r.left=-ct(gt(t*_t)+1)+Ht,r.top=ct(mt(t*_t))+Ht},strokeSetter:function(t,e,n){this.setAttr("strokecolor",this.renderer.color(t,n,e))},"stroke-widthSetter":function(t,e,n){n.stroked=!!t,this[e]=t,o(t)&&(t+=Ht),this.setAttr("strokeweight",t)},titleSetter:function(t,e){this.setAttr(e,t)},visibilitySetter:function(t,e,n){"inherit"===t&&(t=Yt),this.shadows&&le(this.shadows,function(n){n.style[e]=t}),"DIV"===n.nodeName&&(t=t===Bt?"-999em":0,St||(n.style[e]=t?Yt:Bt),e="top"),n.style[e]=t},xSetter:function(t,e,n){this[e]=t,"x"===e?e="left":"y"===e&&(e="top"),this.updateClipping?(this[e]=t,this.updateClipping()):n.style[e]=t},zIndexSetter:function(t,e,n){n.style[e]=t}},at.VMLElement=Me=d(O,Me),Me.prototype.ySetter=Me.prototype.widthSetter=Me.prototype.heightSetter=Me.prototype.xSetter;var Te={Element:Me,isIE8:bt.indexOf("MSIE 8.0")>-1,init:function(t,e,n,r){var i,o,a,s=this;if(s.alignedObjects=[],i=s.createElement(Ut).css(ee(this.getStyle(r),{position:Ft})),o=i.element,t.appendChild(i.element),s.isVML=!0,s.box=o,s.boxWrapper=i,s.cache={},s.setSize(e,n,!1),!st.namespaces.hcv){st.namespaces.add("hcv","urn:schemas-microsoft-com:vml"),a="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } ";try{st.createStyleSheet().cssText=a}catch(u){st.styleSheets[0].cssText+=a}}},isHidden:function(){return!this.box.offsetWidth},clipRect:function(t,e,n,i){var o=this.createElement(),a=r(t);return ee(o,{members:[],count:0,left:(a?t.x:t)+1,top:(a?t.y:e)+1,width:(a?t.width:n)-1,height:(a?t.height:i)-1,getCSS:function(t){var e=t.element,n=e.nodeName,r="shape"===n,i=t.inverted,o=this,a=o.top-(r?e.offsetTop:0),s=o.left,u=s+o.width,l=a+o.height,c={clip:"rect("+ct(i?s:a)+"px,"+ct(i?l:u)+"px,"+ct(i?u:l)+"px,"+ct(i?a:s)+"px)"};return!i&&St&&"DIV"===n&&ee(c,{width:u+Ht,height:l+Ht}),c},updateClipping:function(){le(o.members,function(t){t.element&&t.css(o.getCSS(t))})}})},color:function(t,e,n,r){var i,o,a,s=this,u=/^rgba/,l=Vt;if(t&&t.linearGradient?a="gradient":t&&t.radialGradient&&(a="pattern"),a){var c,h,p,d,v,m,g,y,_,b,x,w,S=t.linearGradient||t.radialGradient,k="",C=t.stops,E=[],M=function(){o=[''],f(s.prepVML(o),null,null,e)};if(x=C[0],w=C[C.length-1],x[0]>0&&C.unshift([0,x[1]]),w[0]<1&&C.push([1,w[1]]),le(C,function(t,e){u.test(t[1])?(i=ke(t[1]),c=i.get("rgb"),h=i.get("a")):(c=t[1],h=1),E.push(100*t[0]+"% "+c),e?(y=h,_=c):(g=h,b=c)}),"fill"===n)if("gradient"===a)p=S.x1||S[0]||0,d=S.y1||S[1]||0,v=S.x2||S[2]||0,m=S.y2||S[3]||0,k='angle="'+(90-180*lt.atan((m-d)/(v-p))/yt)+'"',M();else{var T,D=S.r,P=2*D,A=2*D,O=S.cx,I=S.cy,R=e.radialReference,L=function(){R&&(T=r.getBBox(),O+=(R[0]-T.x)/T.width-.5,I+=(R[1]-T.y)/T.height-.5,P*=R[2]/T.width,A*=R[2]/T.height),k='src="'+z.global.VMLRadialGradientURL+'" size="'+P+","+A+'" origin="0.5,0.5" position="'+O+","+I+'" color2="'+b+'" ',M()};r.added?L():r.onAdd=L,l=_}else l=c}else if(u.test(t)&&"IMG"!==e.tagName)i=ke(t),o=["<",n,' opacity="',i.get("a"),'"/>'],f(this.prepVML(o),null,null,e),l=i.get("rgb");else{var N=e.getElementsByTagName(n);N.length&&(N[0].opacity=1,N[0].type="solid"),l=t}return l},prepVML:function(t){var e="display:inline-block;behavior:url(#default#VML);",n=this.isIE8;return t=t.join(""),n?(t=t.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),t=t.indexOf('style="')===-1?t.replace("/>",' style="'+e+'" />'):t.replace('style="','style="'+e)):t=t.replace("<","1&&o.attr({x:e,y:n,width:r,height:i}),o},createElement:function(t){return"rect"===t?this.symbol(t):Ce.prototype.createElement.call(this,t)},invertChild:function(t,n){var r=this,i=n.style,o="IMG"===t.tagName&&t.style;p(t,{flip:"x",left:e(i.width)-(o?e(o.top):1),top:e(i.height)-(o?e(o.left):1),rotation:-90}),le(t.childNodes,function(e){r.invertChild(e,t)})},symbols:{arc:function(t,e,n,r,i){var o,a=i.start,s=i.end,u=i.r||n||r,l=i.innerR,c=mt(a),h=gt(a),p=mt(s),f=gt(s);return s-a===0?["x"]:(o=["wa",t-u,e-u,t+u,e+u,t+u*c,e+u*h,t+u*p,e+u*f],i.open&&!l&&o.push("e",Gt,t,e),o.push("at",t-l,e-l,t+l,e+l,t+l*p,e+l*f,t+l*c,e+l*h,"x","e"),o.isArc=!0,o)},circle:function(t,e,n,r,i){return i&&(n=r=2*i.r),i&&i.isCircle&&(t-=n/2,e-=r/2),["wa",t,e,t+n,e+r,t+n,e+r/2,t+n,e+r/2,"e"]},rect:function(t,e,n,r,i){return Ce.prototype.symbols[l(i)&&i.r?"callout":"square"].call(0,t,e,n,r,i)}}};at.VMLRenderer=Ee=function(){this.init.apply(this,arguments)},Ee.prototype=t(Ce.prototype,Te),N=Ee}Ce.prototype.measureSpanWidth=function(t,e){var n,r=st.createElement("span"),i=st.createTextNode(t);return r.appendChild(i),p(r,e),this.box.appendChild(r),n=r.offsetWidth,C(r),n};var De,Pe;Pt&&(at.CanVGRenderer=De=function(){Mt="http://www.w3.org/1999/xhtml"},De.prototype.symbols={},Pe=function(){function t(){var t,n=e.length;for(t=0;t0&&o+p*f>l&&(r=ct((a-o)/mt(h*_t))):(e=o-p*f,n=o+p*f,el&&(d-=n-l,t.x=l,c.attr({align:"right"})),f>d&&(r=d)),r&&c.css({width:r,textOverflow:"ellipsis"})},getPosition:function(t,e,n,r){var i=this.axis,o=i.chart,a=r&&o.oldChartHeight||o.chartHeight;return{x:t?i.translate(e+n,null,null,r)+i.transB:i.left+i.offset+(i.opposite?(r&&o.oldChartWidth||o.chartWidth)-i.right-i.left:0),y:t?a-i.bottom+i.offset-(i.opposite?i.height:0):a-i.translate(e+n,null,null,r)-i.transB}},getLabelPosition:function(t,e,n,r,i,o,a,s){var u,l=this.axis,c=l.transA,h=l.reversed,p=l.staggerLines,f=l.tickRotCorr||{x:0,y:0},d=ne(i.y,f.y+(2===l.side?8:-(n.getBBox().height/2)));return t=t+i.x+f.x-(o&&r?o*c*(h?-1:1):0),e=e+d-(o&&!r?o*c*(h?1:-1):0),p&&(u=a/(s||1)%p,e+=u*(l.labelOffset/p)),{x:t,y:ct(e)}},getMarkPath:function(t,e,n,r,i,o){return o.crispLine([Gt,t,e,qt,t+(i?0:-n),e+(i?n:0)],r)},render:function(t,e,n){var r,i,o,a=this,s=a.axis,u=s.options,l=s.chart,c=l.renderer,h=s.horiz,p=a.type,f=a.label,d=a.pos,v=u.labels,m=a.gridLine,g=p?p+"Grid":"grid",y=p?p+"Tick":"tick",_=u[g+"LineWidth"],b=u[g+"LineColor"],x=u[g+"LineDashStyle"],w=u[y+"Length"],S=u[y+"Width"]||0,k=u[y+"Color"],C=u[y+"Position"],E=a.mark,M=v.step,T=!0,D=s.tickmarkOffset,P=a.getPosition(h,d,D,e),A=P.x,O=P.y,I=h&&A===s.pos+s.len||!h&&O===s.pos?-1:1;n=ne(n,1),this.isActive=!0,_&&(r=s.getPlotLinePath(d+D,_*I,e,!0),m===L&&(o={stroke:b,"stroke-width":_},x&&(o.dashstyle=x),p||(o.zIndex=1),e&&(o.opacity=0),a.gridLine=m=_?c.path(r).attr(o).add(s.gridGroup):null),!e&&m&&r&&m[a.isNew?"attr":"animate"]({d:r,opacity:n})),S&&w&&("inside"===C&&(w=-w),s.opposite&&(w=-w),i=a.getMarkPath(A,O,w,S*I,h,c),E?E.animate({d:i,opacity:n}):a.mark=c.path(i).attr({stroke:k,"stroke-width":S,opacity:n}).add(s.axisGroup)),f&&!isNaN(A)&&(f.xy=P=a.getLabelPosition(A,O,f,h,v,D,t,M),a.isFirst&&!a.isLast&&!ne(u.showFirstLabel,1)||a.isLast&&!a.isFirst&&!ne(u.showLastLabel,1)?T=!1:!h||s.isRadial||v.step||v.rotation||e||0===n||a.handleOverflow(P),M&&t%M&&(T=!1),T&&!isNaN(P.y)?(P.opacity=n,f[a.isNew?"attr":"animate"](P),a.isNew=!1):f.attr("y",-9999))},destroy:function(){k(this,this.axis)}},at.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},at.PlotLineOrBand.prototype={render:function(){var e,n,r,i,o,s,u=this,c=u.axis,h=c.horiz,p=u.options,f=p.label,d=u.label,v=p.width,m=p.to,g=p.from,y=l(g)&&l(m),_=p.value,b=p.dashStyle,x=u.svgElem,k=[],C=p.color,E=p.zIndex,M=p.events,T={},D=c.chart.renderer;if(c.isLog&&(g=a(g),m=a(m),_=a(_)),v)k=c.getPlotLinePath(_,v),T={stroke:C,"stroke-width":v},b&&(T.dashstyle=b);else{if(!y)return;k=c.getPlotBandPath(g,m,p),C&&(T.fill=C),p.borderWidth&&(T.stroke=p.borderColor,T["stroke-width"]=p.borderWidth)}if(l(E)&&(T.zIndex=E),x)k?x.animate({d:k},null,x.onGetPath):(x.hide(),x.onGetPath=function(){x.show()},d&&(u.label=d=d.destroy()));else if(k&&k.length&&(u.svgElem=x=D.path(k).attr(T).add(),M)){e=function(t){x.on(t,function(e){M[t].apply(u,[e])})};for(n in M)e(n)}return f&&l(f.text)&&k&&k.length&&c.width>0&&c.height>0?(f=t({align:h&&y&&"center",x:h?!y&&4:10,verticalAlign:!h&&y&&"middle",y:h?y?16:10:y?6:-4,rotation:h&&!y&&90},f),d||(T={align:f.textAlign||f.align,rotation:f.rotation},l(E)&&(T.zIndex=E),u.label=d=D.text(f.text,0,0,f.useHTML).attr(T).css(f.style).add()),r=[k[1],k[4],y?k[6]:k[1]],i=[k[2],k[5],y?k[7]:k[2]],o=w(r),s=w(i),d.align(f,!1,{x:o,y:s,width:S(r)-o,height:S(i)-s}),d.show()):d&&d.hide(),u},destroy:function(){u(this.axis.plotLinesAndBands,this),delete this.axis,k(this)}},H={getPlotBandPath:function(t,e){var n=this.getPlotLinePath(e,null,null,!0),r=this.getPlotLinePath(t,null,null,!0);return r&&n&&r.toString()!==n.toString()?r.push(n[4],n[5],n[1],n[2]):r=null,r},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(t,e){var n=new at.PlotLineOrBand(this,t).render(),r=this.userOptions;return n&&(e&&(r[e]=r[e]||[],r[e].push(t)),this.plotLinesAndBands.push(n)),n},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,n=this.options,r=this.userOptions,i=e.length;i--;)e[i].id===t&&e[i].destroy();le([n.plotLines||[],r.plotLines||[],n.plotBands||[],r.plotBands||[]],function(e){for(i=e.length;i--;)e[i].id===t&&u(e,e[i])})}};var Ae=at.Axis=function(){this.init.apply(this,arguments)};Ae.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#D8D8D8",labels:{enabled:!0,style:{color:"#606060",cursor:"default",fontSize:"11px"},x:0,y:15},lineColor:"#C0D0E0",lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#707070"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return at.numberFormat(this.total,-1)},style:t(_e.line.dataLabels.style,{color:"#000000"})}},defaultLeftAxisOptions:{labels:{x:-15,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0,y:null},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0,y:-15},title:{rotation:0}},init:function(t,e){var n=e.isX,r=this;r.horiz=t.inverted?!n:n,r.isXAxis=n,r.coll=n?"xAxis":"yAxis",r.opposite=e.opposite,r.side=e.side||(r.horiz?r.opposite?0:2:r.opposite?1:3),r.setOptions(e);var i=this.options,o=i.type,u="datetime"===o;r.labelFormatter=i.labels.formatter||r.defaultLabelFormatter,r.userOptions=e,r.minPixelPadding=0,r.chart=t,r.reversed=i.reversed,r.zoomEnabled=i.zoomEnabled!==!1,r.categories=i.categories||"category"===o,r.names=r.names||[],r.isLog="logarithmic"===o,r.isDatetimeAxis=u,r.isLinked=l(i.linkedTo),r.ticks={},r.labelEdge=[],r.minorTicks={},r.plotLinesAndBands=[],r.alternateBands={},r.len=0,r.minRange=r.userMinRange=i.minRange||i.maxZoom,r.range=i.range,r.offset=i.offset||0,r.stacks={},r.oldStacks={},r.max=null,r.min=null,r.crosshair=ne(i.crosshair,h(t.options.tooltip.crosshairs)[n?0:1],!1);var c,p=r.options.events;ue(r,t.axes)===-1&&(n&&!this.isColorAxis?t.axes.splice(t.xAxis.length,0,r):t.axes.push(r),t[r.coll].push(r)),r.series=r.series||[],t.inverted&&n&&r.reversed===L&&(r.reversed=!0),r.removePlotBand=r.removePlotBandOrLine,r.removePlotLine=r.removePlotBandOrLine;for(c in p)fe(r,c,p[c]);r.isLog&&(r.val2lin=a,r.lin2val=s)},setOptions:function(e){this.options=t(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],t(z[this.coll],e))},defaultLabelFormatter:function(){var t,e,n=this.axis,r=this.value,i=n.categories,o=this.dateTimeLabelFormat,a=z.lang.numericSymbols,s=a&&a.length,u=n.options.labels.format,l=n.isLog?r:n.tickInterval;if(u)e=y(u,this);else if(i)e=r;else if(o)e=F(o,r);else if(s&&l>=1e3)for(;s--&&e===L;)t=Math.pow(1e3,s+1),l>=t&&null!==a[s]&&(e=at.numberFormat(r/t,-1)+a[s]);return e===L&&(e=vt(r)>=1e4?at.numberFormat(r,0):at.numberFormat(r,-1,L,"")),e},getSeriesExtremes:function(){var t=this,e=t.chart;t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.ignoreMinPadding=t.ignoreMaxPadding=null,t.buildStacks&&t.buildStacks(),le(t.series,function(n){if(n.visible||!e.options.chart.ignoreHiddenSeries){var r,i,o,a=n.options,s=a.threshold;t.hasVisibleSeries=!0,t.isLog&&s<=0&&(s=null),t.isXAxis?(r=n.xData,r.length&&(t.dataMin=dt(ne(t.dataMin,r[0]),w(r)),t.dataMax=ft(ne(t.dataMax,r[0]),S(r)))):(n.getExtremes(),o=n.dataMax,i=n.dataMin,l(i)&&l(o)&&(t.dataMin=dt(ne(t.dataMin,i),i),t.dataMax=ft(ne(t.dataMax,o),o)),l(s)&&(t.dataMin>=s?(t.dataMin=s,t.ignoreMinPadding=!0):t.dataMaxn)&&(r?t=dt(ft(e,t),n):l=!0),t};return i=ne(i,c.translate(t,null,null,n)),o=s=ct(i+m),a=u=ct(d-i-m),isNaN(i)?l=!0:c.horiz?(a=f,u=d-c.bottom,o=s=g(o,p,p+c.width)):(o=p,s=v-c.right,a=u=g(a,f,f+c.height)),l&&!r?null:h.renderer.crispLine([Gt,o,a,qt,s,u],e||1)},getLinearTickPositions:function(t,e,n){var r,i,a=M(ht(e/t)*t),s=M(pt(n/t)*t),u=[];if(e===n&&o(e))return[e];for(r=a;r<=s&&(u.push(r),r=M(r+t),r!==i);)i=r;return u},getMinorTickPositions:function(){var t,e,n,r=this,i=r.options,o=r.tickPositions,a=r.minorTickInterval,s=[],u=r.min,l=r.max,c=l-u;if(c&&c/a=u.minRange;if(u.isXAxis&&u.minRange===L&&!u.isLog&&(l(c.min)||l(c.max)?u.minRange=null:(le(u.series,function(t){for(i=t.xData,o=t.xIncrement?1:i.length-1,n=o;n>0;n--)r=i[n]-i[n-1],(e===L||ro&&(r=0),a=ft(a,r),i.single||(s=ft(s,n(c)?0:r/2),u=ft(u,"on"===c?0:r)),!t.noSharedTooltip&&l(p)&&(e=l(e)?dt(e,p):p)}),r=i.ordinalSlope&&e?i.ordinalSlope/e:1,i.minPointOffset=s*=r,i.pointRangePadding=u*=r,i.pointRange=dt(a,o),f&&(i.closestPointRange=e)),t&&(i.oldTransA=p),i.translationSlope=i.transA=p=i.len/(o+u||1),i.transB=i.horiz?i.left:i.bottom,i.minPixelPadding=p*s},setTickInterval:function(t){var e,n,r,i=this,s=i.chart,u=i.options,c=i.isLog,h=i.isDatetimeAxis,p=i.isXAxis,f=i.isLinked,d=u.maxPadding,v=u.minPadding,m=u.tickInterval,g=u.tickPixelInterval,y=i.categories;h||y||f||this.getTickAmount(),f?(i.linkedParent=s[i.coll][u.linkedTo],n=i.linkedParent.getExtremes(),i.min=ne(n.min,n.dataMin),i.max=ne(n.max,n.dataMax),u.type!==i.linkedParent.options.type&&E(11,1)):(i.min=ne(i.userMin,u.min,i.dataMin),i.max=ne(i.userMax,u.max,i.dataMax)),c&&(!t&&dt(i.min,ne(i.dataMin,i.min))<=0&&E(10,1),i.min=M(a(i.min)),i.max=M(a(i.max))),i.range&&l(i.max)&&(i.userMin=i.min=ft(i.min,i.max-i.range),i.userMax=i.max,i.range=null),i.beforePadding&&i.beforePadding(),i.adjustForMinRange(),y||i.axisPointRange||i.usePercentage||f||!l(i.min)||!l(i.max)||(e=i.max-i.min,e&&(l(u.min)||l(i.userMin)||!v||!(i.dataMin<0)&&i.ignoreMinPadding||(i.min-=e*v),l(u.max)||l(i.userMax)||!d||!(i.dataMax>0)&&i.ignoreMaxPadding||(i.max+=e*d))),o(u.floor)&&(i.min=ft(i.min,u.floor)),o(u.ceiling)&&(i.max=dt(i.max,u.ceiling)),i.min===i.max||void 0===i.min||void 0===i.max?i.tickInterval=1:f&&!m&&g===i.linkedParent.options.tickPixelInterval?i.tickInterval=i.linkedParent.tickInterval:i.tickInterval=ne(m,this.tickAmount?(i.max-i.min)/ft(this.tickAmount-1,1):void 0,y?1:(i.max-i.min)*g/ft(i.len,g)),p&&!t&&le(i.series,function(t){t.processData(i.min!==i.oldMin||i.max!==i.oldMax)}),i.setAxisTranslation(!0),i.beforeSetTickPositions&&i.beforeSetTickPositions(),i.postProcessTickInterval&&(i.tickInterval=i.postProcessTickInterval(i.tickInterval)),i.pointRange&&(i.tickInterval=ft(i.pointRange,i.tickInterval)),r=ne(u.minTickInterval,i.isDatetimeAxis&&i.closestPointRange),!m&&i.tickInterval.5&&i.tickInterval<5&&i.max>1e3&&i.max<9999)),!!this.tickAmount)),!this.tickAmount&&this.len&&(i.tickInterval=i.unsquish()),this.setTickPositions()},setTickPositions:function(){var t,e,n=this.options,r=n.tickPositions,i=n.tickPositioner,o=n.startOnTick,a=n.endOnTick;this.tickmarkOffset=this.categories&&"between"===n.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n.minorTickInterval&&this.tickInterval?this.tickInterval/5:n.minorTickInterval,this.tickPositions=t=n.tickPositions&&n.tickPositions.slice(),t||(t=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,n.units),this.min,this.max,n.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickPositions=t,i&&(i=i.apply(this,[this.min,this.max]),i&&(this.tickPositions=t=i))),this.isLinked||(this.trimTicks(t,o,a),this.min===this.max&&l(this.min)&&!this.tickAmount&&(e=!0,this.min-=.5,this.max+=.5),this.single=e,r||i||this.adjustTickAmount())},trimTicks:function(t,e,n){var r=t[0],i=t[t.length-1],o=this.minPointOffset||0;e?this.min=r:this.min-o>r&&t.shift(),n?this.max=i:this.max+oi&&(this.tickInterval*=2,this.setTickPositions());if(l(o)){for(t=e=r.length;t--;)(3===o&&t%2===1||o<=2&&t>0&&t=ft(r,ne(i.max,r))&&(e=L)),this.displayBtn=t!==L||e!==L,this.setExtremes(t,e,!1,L,{trigger:"zoom"}),!0},setAxisSize:function(){var t=this.chart,e=this.options,n=e.offsetLeft||0,r=e.offsetRight||0,i=this.horiz,o=ne(e.width,t.plotWidth-n+r),a=ne(e.height,t.plotHeight),s=ne(e.top,t.plotTop),u=ne(e.left,t.plotLeft+n),l=/%$/;l.test(a)&&(a=parseFloat(a)/100*t.plotHeight),l.test(s)&&(s=parseFloat(s)/100*t.plotHeight+t.plotTop),this.left=u,this.top=s,this.width=o,this.height=a,this.bottom=t.chartHeight-a-s,this.right=t.chartWidth-o-u,this.len=ft(i?o:a,0),this.pos=i?u:s},getExtremes:function(){var t=this,e=t.isLog;return{min:e?M(s(t.min)):t.min,max:e?M(s(t.max)):t.max,dataMin:t.dataMin,dataMax:t.dataMax,userMin:t.userMin,userMax:t.userMax}},getThreshold:function(t){var e=this,n=e.isLog,r=n?s(e.min):e.min,i=n?s(e.max):e.max;return r>t||null===t?t=r:i15&&n<165?"right":n>195&&n<345?"left":"center"},unsquish:function(){var t,e,n,r=this.chart,i=this.ticks,o=this.options.labels,a=this.horiz,s=this.tickInterval,u=s,c=this.len/(((this.categories?1:0)+this.max-this.min)/s),h=o.rotation,p=r.renderer.fontMetrics(o.style.fontSize,i[0]&&i[0].label),f=Number.MAX_VALUE,d=function(t){var e=t/(c||1);return e=e>1?pt(e):1,e*s};return a?(n=l(h)?[h]:c<80&&!o.staggerLines&&!o.step&&o.autoRotation,n&&le(n,function(n){var r;(n===h||n&&n>=-90&&n<=90)&&(e=d(vt(p.h/gt(_t*n))),r=e+vt(n/360),rg&&(g=t.labelLength)}),g>d&&g>m.h?v.rotation=this.labelRotation:this.labelRotation=0;else if(f)for(e={width:d+Ht,textOverflow:"clip"},i=u.length;!h&&i--;)o=u[i],r=l[o].label,r&&this.len/u.length-4.5*a.chartHeight?.33*a.chartHeight:a.chartHeight)+Ht,textOverflow:"ellipsis"}),this.labelAlign=v.align=c.align||this.autoLabelAlign(this.labelRotation),le(u,function(n){var r=l[n],i=r&&r.label;i&&(e&&i.css(t(e,i.specCss)),delete i.specCss,i.attr(v),r.rotation=v.rotation)}),this.tickRotCorr=s.rotCorr(m.b,this.labelRotation||0,2===this.side)},getOffset:function(){var t,e,n,r,i,o,a=this,s=a.chart,u=s.renderer,c=a.options,h=a.tickPositions,p=a.ticks,f=a.horiz,d=a.side,v=s.inverted?[1,0,3,2][d]:d,m=0,g=0,y=c.title,_=c.labels,b=0,x=s.axisOffset,w=s.clipOffset,S=[-1,1,1,-1][d];if(a.hasData=t=a.hasVisibleSeries||l(a.min)&&l(a.max)&&!!h,a.showAxis=e=t||ne(c.showEmpty,!0),a.staggerLines=a.horiz&&_.staggerLines,a.axisGroup||(a.gridGroup=u.g("grid").attr({zIndex:c.gridZIndex||1}).add(),a.axisGroup=u.g("axis").attr({zIndex:c.zIndex||2}).add(),a.labelGroup=u.g("axis-labels").attr({zIndex:_.zIndex||7}).addClass(Wt+a.coll.toLowerCase()+"-labels").add()),t||a.isLinked)le(h,function(t){p[t]?p[t].addLabel():p[t]=new I(a,t)}),a.renderUnsquish(),le(h,function(t){0!==d&&2!==d&&{1:"left",3:"right"}[d]!==a.labelAlign||(b=ft(p[t].getLabelSize(),b))}),a.staggerLines&&(b*=a.staggerLines,a.labelOffset=b);else for(i in p)p[i].destroy(),delete p[i];y&&y.text&&y.enabled!==!1&&(a.axisTitle||(a.axisTitle=u.text(y.text,0,0,y.useHTML).attr({zIndex:7,rotation:y.rotation||0,align:y.textAlign||{low:"left",middle:"center",high:"right"}[y.align]}).addClass(Wt+this.coll.toLowerCase()+"-title").css(y.style).add(a.axisGroup),a.axisTitle.isNew=!0),e&&(m=a.axisTitle.getBBox()[f?"height":"width"],n=y.offset,g=l(n)?0:ne(y.margin,f?5:10)),a.axisTitle[e?"show":"hide"]()),a.offset=S*ne(c.offset,x[d]),a.tickRotCorr=a.tickRotCorr||{x:0,y:0},o=2===d?a.tickRotCorr.y:0,r=b+g+(b&&S*(f?ne(_.y,a.tickRotCorr.y+8):_.x)-o),a.axisTitleMargin=ne(n,r),x[d]=ft(x[d],a.axisTitleMargin+m+S*a.offset,r),w[v]=ft(w[v],2*ht(c.lineWidth/2))},getLinePath:function(t){var e=this.chart,n=this.opposite,r=this.offset,i=this.horiz,o=this.left+(n?this.width:0)+r,a=e.chartHeight-this.bottom-(n?this.height:0)+r;return n&&(t*=-1),e.renderer.crispLine([Gt,i?this.left:o,i?a:this.top,qt,i?e.chartWidth-this.right:o,i?a:e.chartHeight-this.bottom],t)},getTitlePosition:function(){var t=this.horiz,n=this.left,r=this.top,i=this.len,o=this.options.title,a=t?n:r,s=this.opposite,u=this.offset,l=e(o.style.fontSize||12),c={low:a+(t?0:i),middle:a+i/2,high:a+(t?i:0)}[o.align],h=(t?r+this.height:n)+(t?1:-1)*(s?-1:1)*this.axisTitleMargin+(2===this.side?l:0);return{x:t?c:h+(s?this.width:0)+u+(o.x||0),y:t?h-(s?this.height:0)+u:c+(o.y||0)}},render:function(){var t,e,n,r=this,i=r.chart,o=i.renderer,a=r.options,u=r.isLog,c=r.isLinked,h=r.tickPositions,p=r.axisTitle,f=r.ticks,d=r.minorTicks,v=r.alternateBands,m=a.stackLabels,g=a.alternateGridColor,y=r.tickmarkOffset,_=a.lineWidth,b=i.hasRendered,x=b&&l(r.oldMin)&&!isNaN(r.oldMin),w=r.hasData,S=r.showAxis;r.labelEdge.length=0,r.overlap=!1,le([f,d,v],function(t){var e;for(e in t)t[e].isActive=!1}),(w||c)&&(r.minorTickInterval&&!r.categories&&le(r.getMinorTickPositions(),function(t){d[t]||(d[t]=new I(r,t,"minor")),x&&d[t].isNew&&d[t].render(null,!0),d[t].render(null,!1,1)}),h.length&&(le(h,function(t,e){(!c||t>=r.min&&t<=r.max)&&(f[t]||(f[t]=new I(r,t)),x&&f[t].isNew&&f[t].render(e,!0,.1),f[t].render(e))}),y&&(0===r.min||r.single)&&(f[-1]||(f[-1]=new I(r,(-1),null,(!0))),f[-1].render(-1))),g&&le(h,function(t,i){i%2===0&&t=Y.second?0:p*ht(c.getMilliseconds()/p)),h>=Y.second&&c.setSeconds(h>=Y.minute?0:p*ht(c.getSeconds()/p)),h>=Y.minute&&c[et](h>=Y.hour?0:p*ht(c[K]()/p)),h>=Y.hour&&c[nt](h>=Y.day?0:p*ht(c[$]()/p)),h>=Y.day&&c[rt](h>=Y.month?1:p*ht(c[Q]()/p)),h>=Y.month&&(c[it](h>=Y.year?0:p*ht(c[J]()/p)),o=c[tt]()),h>=Y.year&&(o-=o%p,c[ot](o)),h===Y.week&&c[rt](c[Q]()-c[Z]()+ne(r,1)),i=1,(q||X)&&(c=c.getTime(),c=new V(c+m(c))),o=c[tt]();for(var f=c.getTime(),d=c[J](),v=c[Q](),g=(Y.day+(u?m(c):60*c.getTimezoneOffset()*1e3))%Y.day;f=.5)t=ct(t),l=i.getLinearTickPositions(t,e,n);else if(t>=.08){var c,h,p,f,d,v,m,g=ht(e);for(c=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],h=g;he&&(!r||v<=n)&&v!==L&&l.push(v),v>n&&(m=!0),v=d}else{var y=s(e),x=s(n),w=o[r?"minorTickInterval":"tickInterval"],S="auto"===w?null:w,k=o.tickPixelInterval/(r?5:1),C=r?u/i.tickPositions.length:u;t=ne(S,i._minorAutoInterval,(x-y)*k/(C||1)),t=b(t,null,_(t)),l=pe(i.getLinearTickPositions(t,y,x),a),r||(i._minorAutoInterval=t/5)}return r||(i.tickInterval=t),l};var Oe=at.Tooltip=function(){this.init.apply(this,arguments)};Oe.prototype={init:function(t,n){var r=n.borderWidth,i=n.style,o=e(i.padding);this.chart=t,this.options=n,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.label=t.renderer.label("",0,0,n.shape||"callout",null,null,n.useHTML,null,"tooltip").attr({padding:o,fill:n.backgroundColor,"stroke-width":r,r:n.borderRadius,zIndex:8}).css(i).css({padding:0}).add().attr({y:-9999}),Pt||this.label.shadow(n.shadow),this.shared=n.shared},destroy:function(){this.label&&(this.label=this.label.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(t,e,n,r){var i=this,o=i.now,a=i.options.animation!==!1&&!i.isHidden&&(vt(t-o.x)>1||vt(e-o.y)>1),s=i.followPointer||i.len>1;ee(o,{x:a?(2*o.x+t)/3:t,y:a?(o.y+e)/2:e,anchorX:s?L:a?(2*o.anchorX+n)/3:n,anchorY:s?L:a?(o.anchorY+r)/2:r}),i.label.attr(o),a&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){i&&i.move(t,e,n,r)},32))},hide:function(t){var e,n=this;clearTimeout(this.hideTimer),this.isHidden||(e=this.chart.hoverPoints,this.hideTimer=setTimeout(function(){n.label.fadeOut(),n.isHidden=!0},ne(t,this.options.hideDelay,500)),e&&le(e,function(t){t.setState()}),this.chart.hoverPoints=null,this.chart.hoverSeries=null)},getAnchor:function(t,e){var n,r,i,o=this.chart,a=o.inverted,s=o.plotTop,u=o.plotLeft,l=0,c=0;return t=h(t),n=t[0].tooltipPos,this.followPointer&&e&&(e.chartX===L&&(e=o.pointer.normalize(e)),n=[e.chartX-o.plotLeft,e.chartY-s]),n||(le(t,function(t){r=t.series.yAxis,i=t.series.xAxis,l+=t.plotX+(!a&&i?i.left-u:0),c+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!a&&r?r.top-s:0)}),l/=t.length,c/=t.length,n=[a?o.plotWidth-c:l,this.shared&&!a&&t.length>1&&e?e.chartY-s:a?o.plotHeight-l:c]),pe(n,ct)},getPosition:function(t,e,n){var r,i=this.chart,o=this.distance,a={},s=n.h,u=["y",i.chartHeight,e,n.plotY+i.plotTop],l=["x",i.chartWidth,t,n.plotX+i.plotLeft],c=ne(n.ttBelow,i.inverted&&!n.negative||!i.inverted&&n.negative),h=function(t,e,n,r){var i=ne?h:h+s}},p=function(t,e,n,r){return!(re-o)&&void(re-n/2?a[t]=e-n-2:a[t]=r-n/2)},f=function(t){var e=u;u=l,l=e,r=t},d=function(){h.apply(0,u)!==!1?p.apply(0,l)!==!1||r||(f(!0),d()):r?a.x=a.y=0:(f(!0),d())};return(i.inverted||this.len>1)&&f(),d(),a},defaultFormatter:function(t){var e,n=this.points||h(this);return e=[t.tooltipFooterHeaderFormatter(n[0])],e=e.concat(t.bodyFormatter(n)),e.push(t.tooltipFooterHeaderFormatter(n[0],!0)),e.join("")},refresh:function(t,e){var n,r,i,o,a,s,u=this,l=u.chart,c=u.label,p=u.options,f={},d=[],v=p.formatter||u.defaultFormatter,m=l.hoverPoints,g=u.shared;clearTimeout(this.hideTimer),u.followPointer=h(t)[0].series.tooltipOptions.followPointer,i=u.getAnchor(t,e),n=i[0],r=i[1],!g||t.series&&t.series.noSharedTooltip?f=t.getLabelConfig():(l.hoverPoints=t,m&&le(m,function(t){t.setState()}),le(t,function(t){t.setState($t),d.push(t.getLabelConfig())}),f={x:t[0].category,y:t[0].y},f.points=d,this.len=d.length,t=t[0]),o=v.call(f,u),s=t.series,this.distance=ne(s.tooltipOptions.distance,16),o===!1?this.hide():(u.isHidden&&(ye(c),c.attr("opacity",1).show()),c.attr({text:o}),a=p.borderColor||t.color||s.color||"#606060",c.attr({stroke:a}),u.updatePosition({plotX:n,plotY:r,negative:t.negative,ttBelow:t.ttBelow,h:t.shapeArgs&&t.shapeArgs.height||0}),this.isHidden=!1),ve(l,"tooltipRefresh",{text:o,x:n+l.plotLeft,y:r+l.plotTop,borderColor:a})},updatePosition:function(t){var e=this.chart,n=this.label,r=(this.options.positioner||this.getPosition).call(this,n.width,n.height,t);this.move(ct(r.x),ct(r.y),t.plotX+e.plotLeft,t.plotY+e.plotTop)},getXDateFormat:function(t,e,n){var r,i,o,a,s=e.dateTimeLabelFormats,u=n&&n.closestPointRange,l="01-01 00:00:00.000",c={millisecond:15,second:12,minute:9,hour:6,day:3};if(u){o=F("%m-%d %H:%M:%S.%L",t.x);for(i in Y){if(u===Y.week&&+F("%w",t.x)===n.options.startOfWeek&&o.substr(6)===l.substr(6)){i="week";break}if(Y[i]>u){i=a;break}if(c[i]&&o.substr(c[i])!==l.substr(c[i]))break;"week"!==i&&(a=i)}i&&(r=s[i])}else r=s.day;return r||s.year},tooltipFooterHeaderFormatter:function(t,e){var n=e?"footer":"header",r=t.series,i=r.tooltipOptions,a=i.xDateFormat,s=r.xAxis,u=s&&"datetime"===s.options.type&&o(t.key),l=i[n+"Format"];return u&&!a&&(a=this.getXDateFormat(t,i,s)),u&&a&&(l=l.replace("{point.key}","{point.key:"+a+"}")),y(l,{point:t,series:r})},bodyFormatter:function(t){return pe(t,function(t){var e=t.series.tooltipOptions;return(e.pointFormatter||t.point.tooltipFormatter).call(t.point,e.pointFormat)})}};var Ie;j=st.documentElement.ontouchstart!==L;var Re=at.Pointer=function(t,e){this.init(t,e)};if(Re.prototype={init:function(t,e){var n,r,i=e.chart,o=i.events,a=Pt?"":i.zoomType,s=t.inverted;this.options=e,this.chart=t,this.zoomX=n=/x/.test(a),this.zoomY=r=/y/.test(a),this.zoomHor=n&&!s||r&&s,this.zoomVert=r&&!s||n&&s,this.hasZoom=n||r,this.runChartClick=o&&!!o.click,this.pinchDown=[],this.lastValidTouch={},at.Tooltip&&e.tooltip.enabled&&(t.tooltip=new Oe(t,e.tooltip),this.followTouchMove=ne(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},normalize:function(t,e){var n,r,i;return t=t||window.event,t=me(t),t.target||(t.target=t.srcElement),i=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,e||(this.chartPosition=e=he(this.chart.container)),i.pageX===L?(n=ft(t.x,t.clientX-e.left),r=t.y):(n=i.pageX-e.left,r=i.pageY-e.top),ee(t,{chartX:ct(n),chartY:ct(r)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return le(this.chart.axes,function(n){e[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(t[n.horiz?"chartX":"chartY"])})}),e},runPointActions:function(t){var e,n,r,i,o,a,s=this,u=s.chart,c=u.series,h=u.tooltip,p=!!h&&h.shared,f=u.hoverPoint,d=u.hoverSeries,v=u.chartWidth,m=u.chartWidth,g=[];if(!p&&!d)for(n=0;n1)&&t.dist.distRl+h&&(o=l+h),ac+p&&(a=c+p),this.hasDragged=Math.sqrt(Math.pow(f-o,2)+Math.pow(d-a,2)),this.hasDragged>10&&(e=r.isInsidePlot(f-l,d-c),r.hasCartesianSeries&&(this.zoomX||this.zoomY)&&e&&!v&&(this.selectionMarker||(this.selectionMarker=r.renderer.rect(l,c,s?1:h,u?1:p,0).attr({fill:i.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add())),this.selectionMarker&&s&&(n=o-f,this.selectionMarker.attr({width:vt(n),x:(n>0?0:n)+f})),this.selectionMarker&&u&&(n=a-d,this.selectionMarker.attr({height:vt(n),y:(n>0?0:n)+d})),e&&!this.selectionMarker&&i.panning&&r.pan(t,i.panning))},drop:function(t){var e=this,n=this.chart,r=this.hasPinched;if(this.selectionMarker){var i,o={xAxis:[],yAxis:[],originalEvent:t.originalEvent||t},a=this.selectionMarker,s=a.attr?a.attr("x"):a.x,u=a.attr?a.attr("y"):a.y,c=a.attr?a.attr("width"):a.width,h=a.attr?a.attr("height"):a.height;(this.hasDragged||r)&&(le(n.axes,function(n){if(n.zoomEnabled&&l(n.min)&&(r||e[{xAxis:"zoomX",yAxis:"zoomY"}[n.coll]])){var a=n.horiz,p="touchend"===t.type?n.minPixelPadding:0,f=n.toValue((a?s:u)+p),d=n.toValue((a?s+c:u+h)-p);o[n.coll].push({axis:n,min:dt(f,d),max:ft(f,d)}),i=!0}}),i&&ve(n,"selection",o,function(t){n.zoom(ee(t,r?{animation:!1}:null))})),this.selectionMarker=this.selectionMarker.destroy(),r&&this.scaleGroups()}n&&(p(n.container,{cursor:n._cursor}),n.cancelClick=this.hasDragged>10,n.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(t){t=this.normalize(t),t.preventDefault&&t.preventDefault(),this.dragStart(t)},onDocumentMouseUp:function(t){Rt[Ie]&&Rt[Ie].pointer.drop(t)},onDocumentMouseMove:function(t){var e=this.chart,n=this.chartPosition;t=this.normalize(t,n),!n||this.inClass(t.target,"highcharts-tracker")||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.reset()},onContainerMouseLeave:function(){var t=Rt[Ie];t&&(t.pointer.reset(),t.pointer.chartPosition=null)},onContainerMouseMove:function(t){var e=this.chart;Ie=e.index,t=this.normalize(t),t.returnValue=!1,"mousedown"===e.mouseIsDown&&this.drag(t),!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||e.openMenu||this.runPointActions(t)},inClass:function(t,e){for(var n;t;){if(n=c(t,"class")){if(n.indexOf(e)!==-1)return!0;if(n.indexOf(Wt+"container")!==-1)return!1}t=t.parentNode}},onTrackerMouseOut:function(t){var e=this.chart.hoverSeries,n=t.relatedTarget||t.toElement,r=n&&n.point&&n.point.series;!e||e.options.stickyTracking||this.inClass(n,Wt+"tooltip")||r===e||e.onMouseOut()},onContainerClick:function(t){var e=this.chart,n=e.hoverPoint,r=e.plotLeft,i=e.plotTop;t=this.normalize(t),t.originalEvent=t,t.cancelBubble=!0,e.cancelClick||(n&&this.inClass(t.target,Wt+"tracker")?(ve(n.series,"click",ee(t,{point:n})),e.hoverPoint&&n.firePointEvent("click",t)):(ee(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-r,t.chartY-i)&&ve(e,"click",t)))},setDOMEvents:function(){var t=this,e=t.chart.container;e.onmousedown=function(e){t.onContainerMouseDown(e)},e.onmousemove=function(e){t.onContainerMouseMove(e)},e.onclick=function(e){t.onContainerClick(e)},fe(e,"mouseleave",t.onContainerMouseLeave),1===Lt&&fe(st,"mouseup",t.onDocumentMouseUp),j&&(e.ontouchstart=function(e){t.onContainerTouchStart(e)},e.ontouchmove=function(e){t.onContainerTouchMove(e)},1===Lt&&fe(st,"touchend",t.onDocumentTouchEnd))},destroy:function(){var t;de(this.chart.container,"mouseleave",this.onContainerMouseLeave),Lt||(de(st,"mouseup",this.onDocumentMouseUp),de(st,"touchend",this.onDocumentTouchEnd)),clearInterval(this.tooltipTimeout);for(t in this)this[t]=null}},ee(at.Pointer.prototype,{pinchTranslate:function(t,e,n,r,i,o){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,t,e,n,r,i,o),(this.zoomVert||this.pinchVert)&&this.pinchTranslateDirection(!1,t,e,n,r,i,o)},pinchTranslateDirection:function(t,e,n,r,i,o,a,s){var u,l,c,h,p,f,d=this.chart,v=t?"x":"y",m=t?"X":"Y",g="chart"+m,y=t?"width":"height",_=d["plot"+(t?"Left":"Top")],b=s||1,x=d.inverted,w=d.bounds[t?"h":"v"],S=1===e.length,k=e[0][g],C=n[0][g],E=!S&&e[1][g],M=!S&&n[1][g],T=function(){!S&&vt(k-E)>20&&(b=s||vt(C-M)/vt(k-E)),c=(_-C)/b+k,u=d["plot"+(t?"Width":"Height")]/b};T(),l=c,lw.max&&(l=w.max-u,h=!0),h?(C-=.8*(C-a[v][0]),S||(M-=.8*(M-a[v][1])),T()):a[v]=[C,M],x||(o[v]=c-_,o[y]=u),f=x?t?"scaleY":"scaleX":"scale"+m,p=x?1/b:b,i[y]=u,i[v]=l,r[f]=b,r["translate"+m]=p*_+(C-p*k)},pinch:function(t){var e=this,n=e.chart,r=e.pinchDown,i=t.touches,o=i.length,a=e.lastValidTouch,s=e.hasZoom,u=e.selectionMarker,l={},c=1===o&&(e.inClass(t.target,Wt+"tracker")&&n.runTrackerClick||e.runChartClick),h={};s&&!c&&t.preventDefault(),pe(i,function(t){return e.normalize(t)}),"touchstart"===t.type?(le(i,function(t,e){r[e]={chartX:t.chartX,chartY:t.chartY}}),a.x=[r[0].chartX,r[1]&&r[1].chartX],a.y=[r[0].chartY,r[1]&&r[1].chartY],le(n.axes,function(t){if(t.zoomEnabled){var e=n.bounds[t.horiz?"h":"v"],r=t.minPixelPadding,i=t.toPixels(ne(t.options.min,t.dataMin)),o=t.toPixels(ne(t.options.max,t.dataMax)),a=dt(i,o),s=ft(i,o);e.min=dt(t.pos,a-r),e.max=ft(t.pos+t.len,s+r)}}),e.res=!0):r.length&&(u||(e.selectionMarker=u=ee({destroy:It},n.plotBox)),e.pinchTranslate(r,i,l,u,h,a),e.hasPinched=s,e.scaleGroups(l,h),!s&&e.followTouchMove&&1===o?this.runPointActions(e.normalize(t)):e.res&&(e.res=!1,this.reset(!1,0)))},onContainerTouchStart:function(t){var e=this.chart;Ie=e.index,1===t.touches.length?(t=this.normalize(t),e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)&&!e.openMenu?(this.runPointActions(t),this.pinch(t)):this.reset()):2===t.touches.length&&this.pinch(t)},onContainerTouchMove:function(t){1!==t.touches.length&&2!==t.touches.length||this.pinch(t)},onDocumentTouchEnd:function(t){Rt[Ie]&&Rt[Ie].pointer.drop(t)}}),ut.PointerEvent||ut.MSPointerEvent){var Le={},Ne=!!ut.PointerEvent,je=function(){var t,e=[];e.item=function(t){return this[t]};for(t in Le)Le.hasOwnProperty(t)&&e.push({pageX:Le[t].pageX,pageY:Le[t].pageY,target:Le[t].target});return e},Ue=function(t,e,n,r){var i;t=t.originalEvent||t,"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!Rt[Ie]||(r(t),i=Rt[Ie].pointer,i[e]({type:n,target:t.currentTarget,preventDefault:It,touches:je()}))};ee(Re.prototype,{onContainerPointerDown:function(t){Ue(t,"onContainerTouchStart","touchstart",function(t){Le[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},onContainerPointerMove:function(t){Ue(t,"onContainerTouchMove","touchmove",function(t){Le[t.pointerId]={pageX:t.pageX,pageY:t.pageY},Le[t.pointerId].target||(Le[t.pointerId].target=t.currentTarget)})},onDocumentPointerUp:function(t){Ue(t,"onContainerTouchEnd","touchend",function(t){delete Le[t.pointerId]})},batchMSEvents:function(t){t(this.chart.container,Ne?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,Ne?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(st,Ne?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),re(Re.prototype,"init",function(t,e,n){t.call(this,e,n),(this.hasZoom||this.followTouchMove)&&p(e.container,{"-ms-touch-action":Vt,"touch-action":Vt})}),re(Re.prototype,"setDOMEvents",function(t){t.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(fe)}),re(Re.prototype,"destroy",function(t){this.batchMSEvents(de),t.call(this)})}var ze=at.Legend=function(t,e){this.init(t,e)};ze.prototype={init:function(e,n){var r,i=this,o=n.itemStyle,a=n.itemMarginTop||0;this.options=n,n.enabled&&(i.itemStyle=o,i.itemHiddenStyle=t(o,n.itemHiddenStyle),i.itemMarginTop=a,i.padding=r=ne(n.padding,8),i.initialItemX=r,i.initialItemY=r-5,i.maxItemWidth=0,i.chart=e,i.itemHeight=0,i.symbolWidth=ne(n.symbolWidth,16),i.pages=[],i.render(),fe(i.chart,"endResize",function(){i.positionCheckboxes()}))},colorizeItem:function(t,e){var n,r,i=this,o=i.options,a=t.legendItem,s=t.legendLine,u=t.legendSymbol,l=i.itemHiddenStyle.color,c=e?o.itemStyle.color:l,h=e?t.legendColor||t.color||"#CCC":l,p=t.options&&t.options.marker,f={fill:h};if(a&&a.css({fill:c,color:c}),s&&s.attr({stroke:h}),u){if(p&&u.isMarker){f.stroke=h,p=t.convertAttribs(p);for(n in p)r=p[n],r!==L&&(f[n]=r)}u.attr(f)}},positionItem:function(t){var e=this,n=e.options,r=n.symbolPadding,i=!n.rtl,o=t._legendItemPos,a=o[0],s=o[1],u=t.checkbox;t.legendGroup&&t.legendGroup.translate(i?a:e.legendWidth-a-2*r-4,s),u&&(u.x=a,u.y=s)},destroyItem:function(t){var e=t.checkbox;le(["legendItem","legendLine","legendSymbol","legendGroup"],function(e){t[e]&&(t[e]=t[e].destroy())}),e&&C(t.checkbox)},clearItems:function(){var t=this;le(t.getAllItems(),function(e){t.destroyItem(e)})},destroy:function(){var t=this,e=t.group,n=t.box;n&&(t.box=n.destroy()),e&&(t.group=e.destroy())},positionCheckboxes:function(t){var e,n=this.group.alignAttr,r=this.clipHeight||this.legendHeight;n&&(e=n.translateY,le(this.allItems,function(i){var o,a=i.checkbox;a&&(o=e+a.y+(t||0)+3,p(a,{left:n.translateX+i.checkboxOffset+a.x-20+Ht,top:o+Ht,display:o>e-6&&o(g||a.chartWidth-2*d-x-u.x)&&(o.itemX=x,o.itemY+=b+o.lastLineHeight+_),o.maxItemWidth=ft(o.maxItemWidth,i),o.lastItemY=b+o.itemY+_,o.lastLineHeight=ft(n,o.lastLineHeight),e._legendItemPos=[o.itemX,o.itemY],l?o.itemX+=i:(o.itemY+=b+n+_,o.lastLineHeight=n),o.offsetWidth=g||ft((l?o.itemX-x-v:i)+d,o.offsetWidth)},getAllItems:function(){var t=[];return le(this.chart.series,function(e){var n=e.options;ne(n.showInLegend,!l(n.linkedTo)&&L,!0)&&(t=t.concat(e.legendItems||("point"===n.legendType?e.data:e)))}),t},adjustMargins:function(t,e){var n=this.chart,r=this.options,i=r.align[0]+r.verticalAlign[0]+r.layout[0];this.display&&!r.floating&&le([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(o,a){o.test(i)&&!l(t[a])&&(n[Qt[a]]=ft(n[Qt[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*r[a%2?"x":"y"]+ne(r.margin,12)+e[a]))})},render:function(){var t,e,n,r,i=this,o=i.chart,a=o.renderer,s=i.group,u=i.box,l=i.options,c=i.padding,h=l.borderWidth,p=l.backgroundColor;i.itemX=i.initialItemX,i.itemY=i.initialItemY,i.offsetWidth=0,i.lastItemY=0,s||(i.group=s=a.g("legend").attr({zIndex:7}).add(),i.contentGroup=a.g().attr({zIndex:1}).add(s),i.scrollGroup=a.g().add(i.contentGroup)),i.renderTitle(),t=i.getAllItems(),x(t,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),l.reversed&&t.reverse(),i.allItems=t,i.display=e=!!t.length,i.lastLineHeight=0,le(t,function(t){i.renderItem(t)}),n=(l.width||i.offsetWidth)+c,r=i.lastItemY+i.lastLineHeight+i.titleHeight,r=i.handleOverflow(r),r+=c,(h||p)&&(u?n>0&&r>0&&(u[u.isNew?"attr":"animate"](u.crisp({width:n,height:r})),u.isNew=!1):(i.box=u=a.rect(0,0,n,r,l.borderRadius,h||0).attr({stroke:l.borderColor,"stroke-width":h||0,fill:p||Vt}).add(s).shadow(l.shadow),u.isNew=!0),u[e?"show":"hide"]()),i.legendWidth=n,i.legendHeight=r,le(t,function(t){i.positionItem(t)}),e&&s.align(ee({width:n,height:r},l),!0,"spacingBox"),o.isResizing||this.positionCheckboxes()},handleOverflow:function(t){var e,n,r=this,i=this.chart,o=i.renderer,a=this.options,s=a.y,u="top"===a.verticalAlign,l=i.spacingBox.height+(u?-s:s)-this.padding,c=a.maxHeight,h=this.clipRect,p=a.navigation,f=ne(p.animation,!0),d=p.arrowSize||12,v=this.nav,m=this.pages,g=this.allItems;return"horizontal"===a.layout&&(l/=2),c&&(l=dt(l,c)),m.length=0,t>l&&!a.useHTML?(this.clipHeight=e=ft(l-20-this.titleHeight-this.padding,0),this.currentPage=ne(this.currentPage,1),this.fullHeight=t,le(g,function(t,r){var i=t._legendItemPos[1],o=ct(t.legendItem.getBBox().height),a=m.length; (!a||i-m[a-1]>e&&(n||i)!==m[a-1])&&(m.push(n||i),a++),r===g.length-1&&i+o-m[a-1]>e&&m.push(i),i!==n&&(n=i)}),h||(h=r.clipRect=o.clipRect(0,this.padding,9999,0),r.contentGroup.clip(h)),h.attr({height:e}),v||(this.nav=v=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,d,d).on("click",function(){r.scroll(-1,f)}).add(v),this.pager=o.text("",15,10).css(p.style).add(v),this.down=o.symbol("triangle-down",0,0,d,d).on("click",function(){r.scroll(1,f)}).add(v)),r.scroll(0),t=l):v&&(h.attr({height:i.chartHeight}),v.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var n,r=this.pages,i=r.length,o=this.currentPage+t,a=this.clipHeight,s=this.options.navigation,u=s.activeColor,l=s.inactiveColor,c=this.pager,h=this.padding;o>i&&(o=i),o>0&&(e!==L&&T(e,this.chart),this.nav.attr({translateX:h,translateY:a+this.padding+7+this.titleHeight,visibility:Yt}),this.up.attr({fill:1===o?l:u}).css({cursor:1===o?"default":"pointer"}),c.attr({text:o+"/"+i}),this.down.attr({x:18+this.pager.getBBox().width,fill:o===i?l:u}).css({cursor:o===i?"default":"pointer"}),n=-r[o-1]+this.initialItemY,this.scrollGroup.animate({translateY:n}),this.currentPage=o,this.positionCheckboxes(n))}};var Fe=at.LegendSymbolMixin={drawRectangle:function(t,e){var n=t.options.symbolHeight||12;e.legendSymbol=this.chart.renderer.rect(0,t.baseline-5-n/2,t.symbolWidth,n,t.options.symbolRadius||0).attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e,n,r,i=this.options,o=i.marker,a=t.options,s=t.symbolWidth,u=this.chart.renderer,l=this.legendGroup,c=t.baseline-ct(.3*u.fontMetrics(a.itemStyle.fontSize,this.legendItem).b);i.lineWidth&&(r={"stroke-width":i.lineWidth},i.dashStyle&&(r.dashstyle=i.dashStyle),this.legendLine=u.path([Gt,0,c,qt,s,c]).attr(r).add(l)),o&&o.enabled!==!1&&(e=o.radius,this.legendSymbol=n=u.symbol(this.symbol,s/2-e,c-e,2*e,2*e).add(l),n.isMarker=!0)}};(/Trident\/7\.0/.test(bt)||Ct)&&re(ze.prototype,"positionItem",function(t,e){var n=this,r=function(){e._legendItemPos&&t.call(n,e)};r(),setTimeout(r)});var Be=at.Chart=function(){this.init.apply(this,arguments)};Be.prototype={callbacks:[],init:function(e,n){var r,i=e.series;e.series=null,r=t(z,e),r.series=e.series=i,this.userOptions=e;var o=r.chart;this.margin=this.splashArray("margin",o),this.spacing=this.splashArray("spacing",o);var a=o.events;this.bounds={h:{},v:{}},this.callback=n,this.isResizing=0,this.options=r,this.axes=[],this.series=[],this.hasCartesianSeries=o.showAxes;var s,u=this;if(u.index=Rt.length,Rt.push(u),Lt++,o.reflow!==!1&&fe(u,"load",function(){u.initReflow()}),a)for(s in a)fe(u,s,a[s]);u.xAxis=[],u.yAxis=[],u.animation=!Pt&&ne(o.animation,!0),u.pointCount=u.colorCounter=u.symbolCounter=0,u.firstRender()},initSeries:function(t){var e,n=this,r=n.options.chart,i=t.type||r.type||r.defaultSeriesType,o=te[i];return o||E(17,!0),e=new o,e.init(this,t),e},isInsidePlot:function(t,e,n){var r=n?e:t,i=n?t:e;return r>=0&&r<=this.plotWidth&&i>=0&&i<=this.plotHeight},redraw:function(t){var e,n,r,i=this,o=i.axes,a=i.series,s=i.pointer,u=i.legend,l=i.isDirtyLegend,c=i.hasCartesianSeries,h=i.isDirtyBox,p=a.length,f=p,d=i.renderer,v=d.isHidden(),m=[];for(T(t,i),v&&i.cloneRenderTo(),i.layOutTitles();f--;)if(r=a[f],r.options.stacking&&(e=!0,r.isDirty)){n=!0;break}if(n)for(f=p;f--;)r=a[f],r.options.stacking&&(r.isDirty=!0);le(a,function(t){t.isDirty&&"point"===t.options.legendType&&(l=!0)}),l&&u.options.enabled&&(u.render(),i.isDirtyLegend=!1),e&&i.getStacks(),c&&(i.isResizing||(i.maxTicks=null,le(o,function(t){t.setScale()}))),i.getMargins(),c&&(le(o,function(t){t.isDirty&&(h=!0)}),le(o,function(t){t.isDirtyExtremes&&(t.isDirtyExtremes=!1,m.push(function(){ve(t,"afterSetExtremes",ee(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(h||e)&&t.redraw()})),h&&i.drawChartBox(),le(a,function(t){t.isDirty&&t.visible&&(!t.isCartesian||t.xAxis)&&t.redraw()}),s&&s.reset(!0),d.draw(),ve(i,"redraw"),v&&i.cloneRenderTo(!0),le(m,function(t){t.call()})},get:function(t){var e,n,r,i=this,o=i.axes,a=i.series;for(e=0;e19?t.containerHeight:400))},cloneRenderTo:function(t){var e=this.renderToClone,n=this.container;t?e&&(this.renderTo.appendChild(n),C(e),delete this.renderToClone):(n&&n.parentNode===this.renderTo&&this.renderTo.removeChild(n),this.renderToClone=e=this.renderTo.cloneNode(0),p(e,{position:zt,top:"-9999px",display:"block"}),e.style.setProperty&&e.style.setProperty("display","block","important"),st.body.appendChild(e),n&&e.appendChild(n))},getContainer:function(){var t,r,i,o,a,s,u=this,l=u.options.chart,h="data-highcharts-chart";u.renderTo=o=l.renderTo,s=Wt+Ot++,n(o)&&(u.renderTo=o=st.getElementById(o)),o||E(13,!0),a=e(c(o,h)),!isNaN(a)&&Rt[a]&&Rt[a].hasRendered&&Rt[a].destroy(),c(o,h,u.index),o.innerHTML="",l.skipClone||o.offsetWidth||u.cloneRenderTo(),u.getChartSize(),r=u.chartWidth,i=u.chartHeight,u.container=t=f(Ut,{className:Wt+"container"+(l.className?" "+l.className:""),id:s},ee({position:Ft,overflow:Bt,width:r+Ht,height:i+Ht,textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},l.style),u.renderToClone||o),u._cursor=t.style.cursor,u.renderer=l.forExport?new Ce(t,r,i,l.style,(!0)):new N(t,r,i,l.style),Pt&&u.renderer.create(u,t,r,i),u.renderer.chartIndex=u.index},getMargins:function(t){var e=this,n=e.spacing,r=e.margin,i=e.titleOffset;e.resetMargins(),i&&!l(r[0])&&(e.plotTop=ft(e.plotTop,i+e.options.title.margin+n[0])),e.legend.adjustMargins(r,n),e.extraBottomMargin&&(e.marginBottom+=e.extraBottomMargin),e.extraTopMargin&&(e.plotTop+=e.extraTopMargin),t||this.getAxisMargins()},getAxisMargins:function(){var t=this,e=t.axisOffset=[0,0,0,0],n=t.margin;t.hasCartesianSeries&&le(t.axes,function(t){t.getOffset()}),le(Qt,function(r,i){l(n[i])||(t[r]+=e[i])}),t.setChartSize()},reflow:function(t){var e=this,n=e.options.chart,r=e.renderTo,i=n.width||ae(r,"width"),o=n.height||ae(r,"height"),a=t?t.target:ut,s=function(){e.container&&(e.setSize(i,o,!1),e.hasUserSize=null)};e.hasUserSize||e.isPrinting||!i||!o||a!==ut&&a!==st||(i===e.containerWidth&&o===e.containerHeight||(clearTimeout(e.reflowTimeout),t?e.reflowTimeout=setTimeout(s,100):s()),e.containerWidth=i,e.containerHeight=o)},initReflow:function(){var t=this,e=function(e){t.reflow(e)};fe(ut,"resize",e),fe(t,"destroy",function(){de(ut,"resize",e)})},setSize:function(t,e,n){var r,i,o,a=this;a.isResizing+=1,o=function(){a&&ve(a,"endResize",null,function(){a.isResizing-=1})},T(n,a),a.oldChartHeight=a.chartHeight,a.oldChartWidth=a.chartWidth,l(t)&&(a.chartWidth=r=ft(0,ct(t)),a.hasUserSize=!!r),l(e)&&(a.chartHeight=i=ft(0,ct(e))),(B?ge:p)(a.container,{width:r+Ht,height:i+Ht},B),a.setChartSize(!0),a.renderer.setSize(r,i,n),a.maxTicks=null,le(a.axes,function(t){t.isDirty=!0,t.setScale()}),le(a.series,function(t){t.isDirty=!0}),a.isDirtyLegend=!0,a.isDirtyBox=!0,a.layOutTitles(),a.getMargins(),a.redraw(n),a.oldChartHeight=null,ve(a,"resize"),B===!1?o():setTimeout(o,B&&B.duration||500)},setChartSize:function(t){var e,n,r,i,o,a,s,u=this,l=u.inverted,c=u.renderer,h=u.chartWidth,p=u.chartHeight,f=u.options.chart,d=u.spacing,v=u.clipOffset;u.plotLeft=r=ct(u.plotLeft),u.plotTop=i=ct(u.plotTop),u.plotWidth=o=ft(0,ct(h-r-u.marginRight)),u.plotHeight=a=ft(0,ct(p-i-u.marginBottom)),u.plotSizeX=l?a:o,u.plotSizeY=l?o:a,u.plotBorderWidth=f.plotBorderWidth||0,u.spacingBox=c.spacingBox={x:d[3],y:d[0],width:h-d[3]-d[1],height:p-d[0]-d[2]},u.plotBox=c.plotBox={x:r,y:i,width:o,height:a},s=2*ht(u.plotBorderWidth/2),e=pt(ft(s,v[3])/2),n=pt(ft(s,v[0])/2),u.clipBox={x:e,y:n,width:ht(u.plotSizeX-ft(s,v[1])/2-e),height:ft(0,ht(u.plotSizeY-ft(s,v[2])/2-n))},t||le(u.axes,function(t){t.setAxisSize(),t.setAxisTranslation()})},resetMargins:function(){var t=this;le(Qt,function(e,n){t[e]=ne(t.margin[n],t.spacing[n])}),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},drawChartBox:function(){var t,e,n=this,r=n.options.chart,i=n.renderer,o=n.chartWidth,a=n.chartHeight,s=n.chartBackground,u=n.plotBackground,l=n.plotBorder,c=n.plotBGImage,h=r.borderWidth||0,p=r.backgroundColor,f=r.plotBackgroundColor,d=r.plotBackgroundImage,v=r.plotBorderWidth||0,m=n.plotLeft,g=n.plotTop,y=n.plotWidth,_=n.plotHeight,b=n.plotBox,x=n.clipRect,w=n.clipBox;t=h+(r.shadow?8:0),(h||p)&&(s?s.animate(s.crisp({width:o-t,height:a-t})):(e={fill:p||Vt},h&&(e.stroke=r.borderColor,e["stroke-width"]=h),n.chartBackground=i.rect(t/2,t/2,o-t,a-t,r.borderRadius,h).attr(e).addClass(Wt+"background").add().shadow(r.shadow))),f&&(u?u.animate(b):n.plotBackground=i.rect(m,g,y,_,0).attr({fill:f}).add().shadow(r.plotShadow)),d&&(c?c.animate(b):n.plotBGImage=i.image(d,m,g,y,_).add()),x?x.animate({width:w.width,height:w.height}):n.clipRect=i.clipRect(w),v&&(l?l.animate(l.crisp({x:m,y:g,width:y,height:_,strokeWidth:-v})):n.plotBorder=i.rect(m,g,y,_,0,-v).attr({stroke:r.plotBorderColor,"stroke-width":v,fill:Vt,zIndex:1}).add()),n.isDirtyBox=!1},propFromSeries:function(){var t,e,n,r=this,i=r.options.chart,o=r.options.series;le(["inverted","angular","polar"],function(a){for(t=te[i.type||i.defaultSeriesType],n=r[a]||i[a]||t&&t.prototype[a],e=o&&o.length;!n&&e--;)t=te[o[e].type],t&&t.prototype[a]&&(n=!0);r[a]=n})},linkSeries:function(){var t=this,e=t.series;le(e,function(t){t.linkedSeries.length=0}),le(e,function(e){var r=e.options.linkedTo;n(r)&&(r=":previous"===r?t.series[e.index-1]:t.get(r),r&&(r.linkedSeries.push(e),e.linkedParent=r))})},renderSeries:function(){le(this.series,function(t){t.translate(),t.render()})},renderLabels:function(){var t=this,n=t.options.labels;n.items&&le(n.items,function(r){var i=ee(n.style,r.style),o=e(i.left)+t.plotLeft,a=e(i.top)+t.plotTop+12;delete i.left,delete i.top,t.renderer.text(r.html,o,a).attr({zIndex:2}).css(i).add()})},render:function(){var t,e,n,r,i=this,o=i.axes,a=i.renderer,s=i.options;i.setTitle(),i.legend=new ze(i,s.legend),i.getStacks(),i.getMargins(!0),i.setChartSize(),t=i.plotWidth,e=i.plotHeight=i.plotHeight-13,le(o,function(t){t.setScale()}),i.getAxisMargins(),n=t/i.plotWidth>1.2,r=e/i.plotHeight>1.1,(n||r)&&(i.maxTicks=null,le(o,function(t){(t.horiz&&n||!t.horiz&&r)&&t.setTickInterval(!0)}),i.getMargins()),i.drawChartBox(),i.hasCartesianSeries&&le(o,function(t){t.render()}),i.seriesGroup||(i.seriesGroup=a.g("series-group").attr({zIndex:3}).add()),i.renderSeries(),i.renderLabels(),i.showCredits(s.credits),i.hasRendered=!0},showCredits:function(t){t.enabled&&!this.credits&&(this.credits=this.renderer.text(t.text,0,0).on("click",function(){t.href&&(location.href=t.href)}).attr({align:t.position.align,zIndex:8}).css(t.style).add().align(t.position))},destroy:function(){var t,e=this,n=e.axes,r=e.series,i=e.container,o=i&&i.parentNode;for(ve(e,"destroy"),Rt[e.index]=L,Lt--,e.renderTo.removeAttribute("data-highcharts-chart"),de(e),t=n.length;t--;)n[t]=n[t].destroy();for(t=r.length;t--;)r[t]=r[t].destroy();le(["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","scroller","rangeSelector","legend","resetZoomButton","tooltip","renderer"],function(t){var n=e[t];n&&n.destroy&&(e[t]=n.destroy())}),i&&(i.innerHTML="",de(i),o&&C(i));for(t in e)delete e[t]},isReadyToRender:function(){var t=this;return!(!Tt&&ut==ut.top&&"complete"!==st.readyState||Pt&&!ut.canvg)||(Pt?Pe.push(function(){t.firstRender()},t.options.global.canvasToolsURL):st.attachEvent("onreadystatechange",function(){st.detachEvent("onreadystatechange",t.firstRender),"complete"===st.readyState&&t.firstRender()}),!1)},firstRender:function(){var t=this,e=t.options,n=t.callback;t.isReadyToRender()&&(t.getContainer(),ve(t,"init"),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),le(e.series||[],function(e){t.initSeries(e)}),t.linkSeries(),ve(t,"beforeRender"),at.Pointer&&(t.pointer=new Re(t,e)),t.render(),t.renderer.draw(),n&&n.apply(t,[t]),le(t.callbacks,function(e){t.index!==L&&e.apply(t,[t])}),ve(t,"load"),t.cloneRenderTo(!0))},splashArray:function(t,e){var n=e[t],i=r(n)?n:[n,n,n,n];return[ne(e[t+"Top"],i[0]),ne(e[t+"Right"],i[1]),ne(e[t+"Bottom"],i[2]),ne(e[t+"Left"],i[3])]}};var We=at.CenteredSeriesMixin={getCenter:function(){var t,n,r,i,o=this.options,a=this.chart,s=2*(o.slicedOffset||0),u=a.plotWidth-2*s,l=a.plotHeight-2*s,c=o.center,h=[ne(c[0],"50%"),ne(c[1],"50%"),o.size||"100%",o.innerSize||0],p=dt(u,l);for(r=0;r<4;++r)i=h[r],n=/%$/.test(i),t=r<2||2===r&&n,h[r]=(n?[u,l,p,h[2]][r]*e(i)/100:e(i))+(t?s:0);return h}},Ye=function(){};Ye.prototype={init:function(t,e,n){var r,i=this;return i.series=t,i.color=t.color,i.applyOptions(e,n),i.pointAttr={},t.options.colorByPoint&&(r=t.options.colors||t.chart.options.colors,i.color=i.color||r[t.colorCounter++],t.colorCounter===r.length&&(t.colorCounter=0)),t.chart.pointCount++,i},applyOptions:function(t,e){var n=this,r=n.series,i=r.options.pointValKey||r.pointValKey;return t=Ye.prototype.optionsToObject.call(this,t),ee(n,t),n.options=n.options?ee(n.options,t):t,i&&(n.y=n[i]),n.x===L&&r&&(n.x=e===L?r.autoIncrement():e),n},optionsToObject:function(t){var e,n={},r=this.series,o=r.pointArrayMap||["y"],a=o.length,s=0,u=0;if("number"==typeof t||null===t)n[o[0]]=t;else if(i(t))for(t.length>a&&(e=typeof t[0],"string"===e?n.name=t[0]:"number"===e&&(n.x=t[0]),s++);un+1&&r.push(i.slice(n+1,e)),n=e):e===o-1&&r.push(i.slice(n+1,e+1))});e.segments=r},setOptions:function(e){var n,r,i=this.chart,o=i.options,a=o.plotOptions,s=i.userOptions||{},u=s.plotOptions||{},c=a[this.type];return this.userOptions=e,n=t(c,a.series,e),this.tooltipOptions=t(z.tooltip,z.plotOptions[this.type].tooltip,s.tooltip,u.series&&u.series.tooltip,u[this.type]&&u[this.type].tooltip,e.tooltip),null===c.marker&&delete n.marker,this.zoneAxis=n.zoneAxis,r=this.zones=(n.zones||[]).slice(),!n.negativeColor&&!n.negativeFillColor||n.zones||r.push({value:n[this.zoneAxis+"Threshold"]||n.threshold||0,color:n.negativeColor,fillColor:n.negativeFillColor}),r.length&&l(r[r.length-1].value)&&r.push({color:this.color,fillColor:this.fillColor}),n},getCyclic:function(t,e,n){var r,i=this.userOptions,o="_"+t+"Index",a=t+"Counter";e||(l(i[o])?r=i[o]:(i[o]=r=this.chart[a]%n.length,this.chart[a]+=1),e=n[r]),this[t]=e},getColor:function(){this.options.colorByPoint||this.getCyclic("color",this.options.color||_e[this.type].color,this.chart.options.colors)},getSymbol:function(){var t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols),/^url/.test(this.symbol)&&(t.radius=0)},drawLegendSymbol:Fe.drawLineMarker,setData:function(t,e,r,a){var s,u,l,c=this,h=c.points,p=h&&h.length||0,f=c.options,d=c.chart,v=null,m=c.xAxis,g=m&&!!m.categories,y=f.turboThreshold,_=this.xData,b=this.yData,x=c.pointArrayMap,w=x&&x.length;if(t=t||[],s=t.length,e=ne(e,!0),a!==!1&&s&&p===s&&!c.cropped&&!c.hasGroupedData&&c.visible)le(t,function(t,e){h[e].update(t,!1,null,!1)});else{if(c.xIncrement=null,c.pointRange=g?1:f.pointRange,c.colorCounter=0,le(this.parallelArrays,function(t){c[t+"Data"].length=0}),y&&s>y){for(u=0;null===v&&um||l.forceCrop)&&(c[p-1]u?(c=[],h=[]):(c[0]u)&&(e=this.cropData(l.xData,l.yData,s,u),c=e.xData,h=e.yData,f=e.start,n=!0)),o=c.length-1;o>=0;o--)r=c[o]-c[o-1],r>0&&(i===L||r=n){a=ft(0,i-u);break}for(;ir){s=i+u;break}return{xData:t.slice(a,s),yData:e.slice(a,s),start:a,end:s}},generatePoints:function(){var t,e,n,r,i=this,o=i.options,a=o.data,s=i.data,u=i.processedXData,l=i.processedYData,c=i.pointClass,p=u.length,f=i.cropStart||0,d=i.hasGroupedData,v=[];if(!s&&!d){var m=[];m.length=a.length,s=i.data=m}for(r=0;r0),r=this.getExtremesFromAll||this.cropped||(p[u+1]||a)>=m&&(p[u-1]||a)<=g,n&&r)if(l=s.length)for(;l--;)null!==s[l]&&(f[d++]=s[l]);else f[d++]=s;this.dataMin=ne(i,w(f)),this.dataMax=ne(o,S(f))},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,n,r,i=this,a=i.options,s=a.stacking,u=i.xAxis,c=u.categories,h=i.yAxis,p=i.points,f=p.length,d=!!i.modifyValue,v=a.pointPlacement,m="between"===v||o(v),g=a.threshold,y=Number.MAX_VALUE;for(t=0;t=0&&n<=h.len&&e>=0&&e<=u.len,x.clientX=m?u.translate(w,0,0,0,1):e,x.negative=x.y<(g||0),x.category=c&&c[x.x]!==L?c[x.x]:x.x,t&&(y=dt(y,vt(e-r))),r=e}i.closestPointRangePx=y,i.getSegments()},setClip:function(t){var e=this.chart,n=e.renderer,r=e.inverted,i=this.clipBox,o=i||e.clipBox,a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,o.height].join(","),s=e[a],u=e[a+"m"];s||(t&&(o.width=0,e[a+"m"]=u=n.clipRect(-99,r?-e.plotLeft:-e.plotTop,99,r?e.chartWidth:e.chartHeight)),e[a]=s=n.clipRect(o)),t&&(s.count+=1),this.options.clip!==!1&&(this.group.clip(t||i?s:e.clipRect),this.markerGroup.clip(u),this.sharedClipKey=a),t||(s.count-=1,s.count<=0&&a&&e[a]&&(i||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},animate:function(t){var e,n,i=this,o=i.chart,a=i.options.animation;a&&!r(a)&&(a=_e[i.type].animation),t?i.setClip(a):(n=this.sharedClipKey,e=o[n],e&&e.animate({width:o.plotSizeX},a),o[n+"m"]&&o[n+"m"].animate({width:o.plotSizeX+99},a),i.animate=null)},afterAnimate:function(){this.setClip(),ve(this,"afterAnimate")},drawPoints:function(){var t,e,n,r,i,o,a,s,u,l,c,h,p,f=this,d=f.points,v=f.chart,m=f.options,g=m.marker,y=f.pointAttr[""],_=f.markerGroup,b=f.xAxis,x=ne(g.enabled,b.isRadial,f.closestPointRangePx>2*g.radius);if(g.enabled!==!1||f._hasPointMarkers)for(r=d.length;r--;)i=d[r],e=ht(i.plotX),n=i.plotY,u=i.graphic,l=i.marker||{},c=!!i.marker,h=x&&l.enabled===L||l.enabled,p=i.isInside,h&&n!==L&&!isNaN(n)&&null!==i.y?(t=i.pointAttr[i.selected?Zt:Kt]||y,o=t.r,a=ne(l.symbol,f.symbol),s=0===a.indexOf("url"),u?u[p?"show":"hide"](!0).animate(ee({x:e-o,y:n-o},u.symbolName?{width:2*o,height:2*o}:{})):p&&(o>0||s)&&(i.graphic=u=v.renderer.symbol(a,e-o,n-o,2*o,2*o,c?l:g).attr(t).add(_))):u&&(i.graphic=u.destroy())},convertAttribs:function(t,e,n,r){var i,o,a=this.pointAttrToOptions,s={};t=t||{},e=e||{},n=n||{},r=r||{};for(i in a)o=a[i],s[i]=ne(t[o],e[i],n[i],r[i]);return s},getAttribs:function(){var t,e,n,r,i,o,a=this,s=a.options,u=_e[a.type].marker?s.marker:s,c=u.states,h=c[$t],p=a.color,f=a.options.negativeColor,d={stroke:p,fill:p},v=a.points||[],m=[],g=a.pointAttrToOptions,y=a.hasPointSpecificOptions,_=u.lineColor,b=u.fillColor,x=s.turboThreshold,w=a.zones,S=a.zoneAxis||"y";if(s.marker?(h.radius=h.radius||u.radius+h.radiusPlus,h.lineWidth=h.lineWidth||u.lineWidth+h.lineWidthPlus):(h.color=h.color||ke(h.color||p).brighten(h.brightness).get(),h.negativeColor=h.negativeColor||ke(h.negativeColor||f).brighten(h.brightness).get()),m[Kt]=a.convertAttribs(u,d),le([$t,Zt],function(t){m[t]=a.convertAttribs(c[t],m[Kt])}),a.pointAttr=m,e=v.length,!x||e=C.value;)C=w[++k];n.color=n.fillColor=C.color}if(y=s.colorByPoint||n.color,n.options)for(o in g)l(u[g[o]])&&(y=!0);y?(u=u||{},r=[],c=u.states||{},t=c[$t]=c[$t]||{},s.marker||(t.color=t.color||!n.options.color&&h[n.negative&&f?"negativeColor":"color"]||ke(n.color).brighten(t.brightness||h.brightness).get()),i={color:n.color},b||(i.fillColor=n.color),_||(i.lineColor=n.color),r[Kt]=a.convertAttribs(ee(i,u),m[Kt]),r[$t]=a.convertAttribs(c[$t],m[$t],r[Kt]),r[Zt]=a.convertAttribs(c[Zt],m[Zt],r[Kt])):r=m,n.pointAttr=r}},destroy:function(){var t,e,n,r,i,o=this,a=o.chart,s=/AppleWebKit\/533/.test(bt),l=o.data||[];for(ve(o,"destroy"),de(o),le(o.axisTypes||[],function(t){i=o[t],i&&(u(i.series,o),i.isDirty=i.forceRedraw=!0)}),o.legendItem&&o.chart.legend.destroyItem(o),e=l.length;e--;)n=l[e],n&&n.destroy&&n.destroy();o.points=null,clearTimeout(o.animationTimeout),le(["area","graph","dataLabelsGroup","group","markerGroup","tracker","graphNeg","areaNeg","posClip","negClip"],function(e){o[e]&&(t=s&&"group"===e?"hide":"destroy",o[e][t]())}),a.hoverSeries===o&&(a.hoverSeries=null),u(a.series,o);for(r in o)delete o[r]},getSegmentPath:function(t){var e=this,n=[],r=e.options.step;return le(t,function(i,o){var a,s=i.plotX,u=i.plotY;e.getPointSpline?n.push.apply(n,e.getPointSpline(t,i,o)):(n.push(o?qt:Gt),r&&o&&(a=t[o-1],"right"===r?n.push(a.plotX,u):"center"===r?n.push((a.plotX+s)/2,a.plotY,(a.plotX+s)/2,u):n.push(s,a.plotY)),n.push(i.plotX,i.plotY))}),n},getGraphPath:function(){var t,e=this,n=[],r=[];return le(e.segments,function(i){t=e.getSegmentPath(i),i.length>1?n=n.concat(t):r.push(i[0])}),e.singlePoints=r,e.graphPath=n,n},drawGraph:function(){var t=this,e=this.options,n=[["graph",e.lineColor||this.color,e.dashStyle]],r=e.lineWidth,i="square"!==e.linecap,o=this.getGraphPath(),a=this.fillGraph&&this.color||Vt,s=this.zones;le(s,function(r,i){n.push(["colorGraph"+i,r.color||t.color,r.dashStyle||e.dashStyle])}),le(n,function(n,s){var u,l=n[0],c=t[l];c?(ye(c),c.animate({d:o})):(r||a)&&o.length&&(u={stroke:n[1],"stroke-width":r,fill:a,zIndex:1},n[2]?u.dashstyle=n[2]:i&&(u["stroke-linecap"]=u["stroke-linejoin"]="round"),t[l]=t.chart.renderer.path(o).attr(u).add(t.group).shadow(s<2&&e.shadow))})},applyZones:function(){var t,e,n,r=this,i=this.chart,o=i.renderer,a=this.zones,s=this.clips||[],u=this.graph,l=this.area,c=ft(i.chartWidth,i.chartHeight),h=this.zoneAxis||"y",p=this[h+"Axis"],f=p.reversed,d=p.horiz,v=!1;a.length&&(u||l)&&(u.hide(),l&&l.hide(),le(a,function(a,u){t=ne(e,f?d?i.plotWidth:0:d?0:p.toPixels(p.min)),e=ct(p.toPixels(ne(a.value,p.max),!0)),v&&(t=e=p.toPixels(p.max)),p.isXAxis?(n={x:f?e:t,y:0,width:Math.abs(t-e),height:c},d||(n.x=i.plotHeight-n.x)):(n={x:0,y:f?t:e,width:c,height:Math.abs(t-e)},d&&(n.y=i.plotWidth-n.y)),i.inverted&&o.isVML&&(n=p.isXAxis?{x:0,y:f?t:e,height:n.width,width:i.chartWidth}:{x:n.y-i.plotLeft-i.spacingBox.x,y:0,width:n.height,height:i.chartHeight}),s[u]?s[u].animate(n):(s[u]=o.clipRect(n),r["colorGraph"+u].clip(s[u]),l&&r["colorArea"+u].clip(s[u])),v=a.value>p.max}),this.clips=s)},invertGroups:function(){function t(){var t={width:e.yAxis.len,height:e.xAxis.len};le(["group","markerGroup"],function(n){e[n]&&e[n].attr(t).invert()})}var e=this,n=e.chart;e.xAxis&&(fe(n,"resize",t),fe(e,"destroy",function(){de(n,"resize",t)}),t(),e.invertGroups=t)},plotGroup:function(t,e,n,r,i){var o=this[t],a=!o;return a&&(this[t]=o=this.chart.renderer.g(e).attr({visibility:n,zIndex:r||.1}).add(i)),o[a?"attr":"animate"](this.getPlotBox()),o},getPlotBox:function(){var t=this.chart,e=this.xAxis,n=this.yAxis;return t.inverted&&(e=n,n=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:n?n.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t,e=this,n=e.chart,r=e.options,i=r.animation,o=i&&!!e.animate&&n.renderer.isSVG&&ne(i.duration,500)||0,a=e.visible?Yt:Bt,s=r.zIndex,u=e.hasRendered,l=n.seriesGroup;t=e.plotGroup("group","series",a,s,l),e.markerGroup=e.plotGroup("markerGroup","markers",a,s,l),o&&e.animate(!0),e.getAttribs(),t.inverted=!!e.isCartesian&&n.inverted,e.drawGraph&&(e.drawGraph(),e.applyZones()),le(e.points,function(t){t.redraw&&t.redraw()}),e.drawDataLabels&&e.drawDataLabels(),e.visible&&e.drawPoints(),e.drawTracker&&e.options.enableMouseTracking!==!1&&e.drawTracker(),n.inverted&&e.invertGroups(),r.clip===!1||e.sharedClipKey||u||t.clip(n.clipRect),o&&e.animate(),u||(o?e.animationTimeout=setTimeout(function(){e.afterAnimate()},o):e.afterAnimate()),e.isDirty=e.isDirtyData=!1,e.hasRendered=!0},redraw:function(){var t=this,e=t.chart,n=t.isDirtyData,r=t.isDirty,i=t.group,o=t.xAxis,a=t.yAxis;i&&(e.inverted&&i.attr({width:e.plotWidth,height:e.plotHeight}),i.animate({translateX:ne(o&&o.left,e.plotLeft),translateY:ne(a&&a.top,e.plotTop)})),t.translate(),t.render(),n&&ve(t,"updatedData"),(r||n)&&delete this.kdTree},kdDimensions:1,kdTree:null,kdAxisArray:["clientX","plotY"],kdComparer:"distX",searchPoint:function(t){var e=this,n=e.xAxis,r=e.yAxis,i=e.chart.inverted;return this.searchKDTree({clientX:i?n.len-t.chartY+n.pos:t.chartX-n.pos,plotY:i?r.len-t.chartX+r.pos:t.chartY-r.pos})},buildKDTree:function(){function t(e,r,i){var o,a,s=e&&e.length;if(s)return o=n.kdAxisArray[r%i],e.sort(function(t,e){return t[o]-e[o]}),a=Math.floor(s/2),{point:e[a],left:t(e.slice(0,a),r+1,i),right:t(e.slice(a+1),r+1,i)}}function e(){var e=ce(n.points,function(t){return null!==t.y});n.kdTree=t(e,r,r)}var n=this,r=n.kdDimensions;delete n.kdTree,n.options.kdSync?e():setTimeout(e)},searchKDTree:function(t){function e(t,e){var n=l(t[o])&&l(e[o])?Math.pow(t[o]-e[o],2):null,r=l(t[a])&&l(e[a])?Math.pow(t[a]-e[a],2):null,i=(n||0)+(r||0); return{distX:l(n)?Math.sqrt(n):Number.MAX_VALUE,distY:l(r)?Math.sqrt(r):Number.MAX_VALUE,distR:l(i)?Math.sqrt(i):Number.MAX_VALUE}}function n(t,o,a,s){var u,l,c,h,p,f=o.point,d=r.kdAxisArray[a%s],v=f;return f.dist=e(t,f),u=t[d]-f[d],l=u<0?"left":"right",o[l]&&(h=n(t,o[l],a+1,s),v=h.dist[i]a;)s--;u.updateParallelArrays(i,"splice",s,0,0),u.updateParallelArrays(i,s),d&&i.name&&(d[a]=i.name),m.splice(s,0,t),o&&(u.data.splice(s,0,null),u.processData()),"point"===l.legendType&&u.generatePoints(),n&&(c[0]&&c[0].remove?c[0].remove(!1):(c.shift(),u.updateParallelArrays(i,"shift"),m.shift())),u.isDirty=!0,u.isDirtyData=!0,e&&(u.getAttribs(),f.redraw())},removePoint:function(t,e,n){var r=this,i=r.data,o=i[t],a=r.points,s=r.chart,u=function(){i.length===a.length&&a.splice(t,1),i.splice(t,1),r.options.data.splice(t,1),r.updateParallelArrays(o||{series:r},"splice",t,1),o&&o.destroy(),r.isDirty=!0,r.isDirtyData=!0,e&&s.redraw()};T(n,s),e=ne(e,!0),o?o.firePointEvent("remove",null,u):u()},remove:function(t,e){var n=this,r=n.chart;t=ne(t,!0),n.isRemoving||(n.isRemoving=!0,ve(n,"remove",null,function(){n.destroy(),r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(),t&&r.redraw(e)})),n.isRemoving=!1},update:function(e,n){var r,i=this,o=this.chart,a=this.userOptions,s=this.type,u=te[s].prototype,l=["group","markerGroup","dataLabelsGroup"];(e.type&&e.type!==s||void 0!==e.zIndex)&&(l.length=0),le(l,function(t){l[t]=i[t],delete i[t]}),e=t(a,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},e),this.remove(!1);for(r in u)this[r]=L;ee(this,te[e.type||s].prototype),le(l,function(t){i[t]=l[t]}),this.init(o,e),o.linkSeries(),ne(n,!0)&&o.redraw(!1)}}),ee(Ae.prototype,{update:function(e,n){var r=this.chart;e=r.options[this.coll][this.options.index]=t(this.userOptions,e),this.destroy(!0),this._addedPlotLB=L,this.init(r,ee(e,{events:L})),r.isDirtyBox=!0,ne(n,!0)&&r.redraw()},remove:function(t){for(var e=this.chart,n=this.coll,r=this.series,i=r.length;i--;)r[i]&&r[i].remove(!1);u(e.axes,this),u(e[n],this),e.options[n].splice(this.options.index,1),le(e[n],function(t,e){t.options.index=e}),this.destroy(),e.isDirtyBox=!0,ne(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}});var Ve=d(He);te.line=Ve,_e.area=t(be,{threshold:0});var Ge=d(He,{type:"area",getSegments:function(){var t,e,n,r,i=this,o=[],a=[],s=[],u=this.xAxis,l=this.yAxis,c=l.stacks[this.stackKey],h={},p=this.points,f=this.options.connectNulls;if(this.options.stacking&&!this.cropped){for(n=0;n=0;e--)n=ne(t[e].yBottom,s),em&&i>h?(i=ft(m,h),a=2*h-i):iy&&a>h?(a=ft(y,h),i=2*h-a):as?d-s:a-(i.translate(n.y,0,1,0,1)<=a?s:0))),n.barX=m,n.pointWidth=l,n.tooltipPos=e.inverted?[i.len+i.pos-e.plotLeft-v,t.xAxis.len-m-g/2]:[m+g/2,v+i.pos-e.plotTop],r=ct(m+g)+p,m=ct(m)+p,g=r-m,u=vt(y)<.5,o=dt(ct(y+_)+f,9e4),y=ct(y)+f,_=o-y,u&&(y-=1,_+=1),n.shapeType="rect",n.shapeArgs={x:m,y:y,width:g,height:_}})},getSymbol:It,drawLegendSymbol:Fe.drawRectangle,drawGraph:It,drawPoints:function(){var e,n,r=this,i=this.chart,o=r.options,a=i.renderer,s=o.animationLimit||250;le(r.points,function(u){var c,h=u.plotY,p=u.graphic;h===L||isNaN(h)||null===u.y?p&&(u.graphic=p.destroy()):(e=u.shapeArgs,c=l(r.borderWidth)?{"stroke-width":r.borderWidth}:{},n=u.pointAttr[u.selected?Zt:Kt]||r.pointAttr[Kt],p?(ye(p),p.attr(c)[i.pointCount {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}});var Qe=d(He,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,kdDimensions:2,kdComparer:"distR",drawGraph:function(){this.options.lineWidth&&He.prototype.drawGraph.call(this)}});te.scatter=Qe,_e.pie=t(be,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}});var Je=d(Ye,{init:function(){Ye.prototype.init.apply(this,arguments);var t,e=this;return ee(e,{visible:e.visible!==!1,name:ne(e.name,"Slice")}),t=function(t){e.slice("select"===t.type)},fe(e,"select",t),fe(e,"unselect",t),e},setVisible:function(t){var e=this,n=e.series,r=n.chart,i=!n.isDirty&&n.options.ignoreHiddenPoint;e.visible=e.options.visible=t=t===L?!e.visible:t,n.options.data[ue(e,n.data)]=e.options,le(["graphic","dataLabel","connector","shadowGroup"],function(n){e[n]&&e[n][t?"show":"hide"](!0)}),e.legendItem&&(r.hasRendered&&(n.updateTotals(),r.legend.clearItems(),i||r.legend.render()),r.legend.colorizeItem(e,t)),i&&(n.isDirty=!0,r.redraw())},slice:function(t,e,n){var r,i=this,o=i.series,a=o.chart;T(n,a),e=ne(e,!0),i.sliced=i.options.sliced=t=l(t)?t:!i.sliced,o.options.data[ue(i,o.data)]=i.options,r=t?i.slicedTranslation:{translateX:0,translateY:0},i.graphic.animate(r),i.shadowGroup&&i.shadowGroup.animate(r)},haloPath:function(t){var e=this.shapeArgs,n=this.series.chart;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(n.plotLeft+e.x,n.plotTop+e.y,e.r+t,e.r+t,{innerR:this.shapeArgs.r,start:e.start,end:e.end})}}),tn={type:"pie",isCartesian:!1,pointClass:Je,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:It,animate:function(t){var e=this,n=e.points,r=e.startAngleRad;t||(le(n,function(t){var n=t.graphic,i=t.shapeArgs;n&&(n.attr({r:e.center[3]/2,start:r,end:r}),n.animate({r:i.r,start:i.start,end:i.end},e.options.animation))}),e.animate=null)},setData:function(t,e,n,r){He.prototype.setData.call(this,t,!1,n,r),this.processData(),this.generatePoints(),ne(e,!0)&&this.chart.redraw(n)},updateTotals:function(){var t,e,n,r,i=0,o=this.options.ignoreHiddenPoint;for(e=this.points,n=e.length,t=0;t0&&(r.visible||!o)?r.y/i*100:0,r.total=i},generatePoints:function(){He.prototype.generatePoints.call(this),this.updateTotals()},translate:function(t){this.generatePoints();var e,n,r,i,o,a,s,u=this,l=0,c=1e3,h=u.options,p=h.slicedOffset,f=p+h.borderWidth,d=h.startAngle||0,v=u.startAngleRad=yt/180*(d-90),m=u.endAngleRad=yt/180*(ne(h.endAngle,d+360)-90),g=m-v,y=u.points,_=h.dataLabels.distance,b=h.ignoreHiddenPoint,x=y.length;for(t||(u.center=t=u.getCenter()),u.getX=function(e,n){return r=lt.asin(dt((e-t[1])/(t[2]/2+_),1)),t[0]+(n?-1:1)*(mt(r)*(t[2]/2+_))},a=0;a1.5*yt?r-=2*yt:r<-yt/2&&(r+=2*yt),s.slicedTranslation={translateX:ct(mt(r)*p),translateY:ct(gt(r)*p)},i=mt(r)*t[2]/2,o=gt(r)*t[2]/2,s.tooltipPos=[t[0]+.7*i,t[1]+.7*o],s.half=r<-yt/2||r>yt/2?1:0,s.angle=r,f=dt(f,_/2),s.labelPos=[t[0]+i+mt(r)*_,t[1]+o+gt(r)*_,t[0]+i+mt(r)*f,t[1]+o+gt(r)*f,t[0]+i,t[1]+o,_<0?"center":s.half?"right":"left",r]},drawGraph:null,drawPoints:function(){var t,e,n,r,i=this,o=i.chart,a=o.renderer,s=i.options.shadow;s&&!i.shadowGroup&&(i.shadowGroup=a.g("shadow").add(i.group)),le(i.points,function(o){e=o.graphic,r=o.shapeArgs,n=o.shadowGroup,s&&!n&&(n=o.shadowGroup=a.g("shadow").add(i.shadowGroup)),t=o.sliced?o.slicedTranslation:{translateX:0,translateY:0},n&&n.attr(t),e?e.animate(ee(r,t)):o.graphic=e=a[o.shapeType](r).setRadialReference(i.center).attr(o.pointAttr[o.selected?Zt:Kt]).attr({"stroke-linejoin":"round"}).attr(t).add(i.group).shadow(s,n),void 0!==o.visible&&o.setVisible(o.visible)})},searchPoint:It,sortByAngle:function(t,e){t.sort(function(t,n){return void 0!==t.angle&&(n.angle-t.angle)*e})},drawLegendSymbol:Fe.drawRectangle,getCenter:We.getCenter,getSymbol:It};tn=d(He,tn),te.pie=tn,He.prototype.drawDataLabels=function(){var e,n,r,i,o=this,a=o.options,s=a.cursor,u=a.dataLabels,c=o.points,h=o.hasRendered||0,p=o.chart.renderer;(u.enabled||o._hasPointLabels)&&(o.dlProcessOptions&&o.dlProcessOptions(u),i=o.plotGroup("dataLabelsGroup","data-labels",u.defer?Bt:Yt,u.zIndex||6),ne(u.defer,!0)&&(i.attr({opacity:+h}),h||fe(o,"afterAnimate",function(){o.visible&&i.show(),i[a.animation?"animate":"attr"]({opacity:1},{duration:200})})),n=u,le(c,function(c){var h,f,d,v,m,g,_=c.dataLabel,b=c.connector,x=!0,w={};if(e=c.dlOptions||c.options&&c.options.dataLabels,h=ne(e&&e.enabled,n.enabled),_&&!h)c.dataLabel=_.destroy();else if(h){if(u=t(n,e),g=u.style,m=u.rotation,f=c.getLabelConfig(),r=u.format?y(u.format,f):u.formatter.call(f,u),g.color=ne(u.color,g.color,o.color,"black"),_)l(r)?(_.attr({text:r}),x=!1):(c.dataLabel=_=_.destroy(),b&&(c.connector=b.destroy()));else if(l(r)){d={fill:u.backgroundColor,stroke:u.borderColor,"stroke-width":u.borderWidth,r:u.borderRadius||0,rotation:m,padding:u.padding,zIndex:1},"contrast"===g.color&&(w.color=u.inside||u.distance<0||a.stacking?p.getContrast(c.color||o.color):"#000000"),s&&(w.cursor=s);for(v in d)d[v]===L&&delete d[v];_=c.dataLabel=p[m?"text":"label"](r,0,-999,u.shape,null,null,u.useHTML).attr(d).css(ee(g,w)).add(i).shadow(u.shadow)}_&&o.alignDataLabel(c,_,u,null,x)}}))},He.prototype.alignDataLabel=function(t,e,n,r,i){var o,a,s=this.chart,u=s.inverted,l=ne(t.plotX,-999),c=ne(t.plotY,-999),h=e.getBBox(),p=s.renderer.fontMetrics(n.style.fontSize).b,f=this.visible&&(t.series.forceDL||s.isInsidePlot(l,ct(c),u)||r&&s.isInsidePlot(l,u?r.x+1:r.y+r.height-1,u));f&&(r=ee({x:u?s.plotWidth-c:l,y:ct(u?s.plotHeight-l:c),width:0,height:0},r),ee(n,{width:h.width,height:h.height}),n.rotation?(o=s.renderer.rotCorr(p,n.rotation),e[i?"attr":"animate"]({x:r.x+n.x+r.width/2+o.x,y:r.y+n.y+r.height/2}).attr({align:n.align})):(e.align(n,null,r),a=e.alignAttr,"justify"===ne(n.overflow,"justify")?this.justifyDataLabel(e,n,a,h,r,i):ne(n.crop,!0)&&(f=s.isInsidePlot(a.x,a.y)&&s.isInsidePlot(a.x+h.width,a.y+h.height)),n.shape&&e.attr({anchorX:t.plotX,anchorY:t.plotY}))),f||(e.attr({y:-999}),e.placed=!1)},He.prototype.justifyDataLabel=function(t,e,n,r,i,o){var a,s,u=this.chart,l=e.align,c=e.verticalAlign,h=t.box?0:t.padding||0;a=n.x+h,a<0&&("right"===l?e.align="left":e.x=-a,s=!0),a=n.x+r.width-h,a>u.plotWidth&&("left"===l?e.align="right":e.x=u.plotWidth-a,s=!0),a=n.y+h,a<0&&("bottom"===c?e.verticalAlign="top":e.y=-a,s=!0),a=n.y+r.height-h,a>u.plotHeight&&("top"===c?e.verticalAlign="bottom":e.y=u.plotHeight-a,s=!0),s&&(t.placed=!o,t.align(e,null,i))},te.pie&&(te.pie.prototype.drawDataLabels=function(){var t,e,n,r,i,o,a,s,u,l,c,h,p,f=this,d=f.data,v=f.chart,m=f.options.dataLabels,g=ne(m.connectorPadding,10),y=ne(m.connectorWidth,1),_=v.plotWidth,b=v.plotHeight,x=ne(m.softConnector,!0),w=m.distance,k=f.center,C=k[2]/2,E=k[1],M=w>0,T=[[],[]],D=[0,0,0,0],P=function(t,e){return e.y-t.y};if(f.visible&&(m.enabled||f._hasPointLabels)){for(He.prototype.drawDataLabels.apply(f),le(d,function(t){t.dataLabel&&t.visible&&T[t.half].push(t)}),h=2;h--;){var A,O,I,R,L=[],N=[],j=T[h],U=j.length;if(U){for(f.sortByAngle(j,h-.5),p=a=0;!a&&j[p];)a=j[p]&&j[p].dataLabel&&(j[p].dataLabel.getBBox().height||21),p++;if(w>0){for(I=dt(E+C+w,v.plotHeight),O=ft(0,E-C-w);O<=I;O+=a)L.push(O);if(A=L.length,U>A){for(c=[].concat(j),c.sort(P),p=U;p--;)c[p].rank=p;for(p=U;p--;)j[p].rank>=A&&j.splice(p,1);U=j.length}for(p=0;p0?(W=N.pop(),R=W.i,u=W.y,(Y>u&&null!==L[R+1]||Y_-g&&(D[1]=ft(ct(s+i-_+g),D[1])),u-a/2<0?D[0]=ft(ct(-u+a/2),D[0]):u+a/2>b&&(D[2]=ft(ct(u+a/2-b),D[2])))}}}(0===S(D)||this.verifyDataLabelOverflow(D))&&(this.placeDataLabels(),M&&y&&le(this.points,function(t){e=t.connector,o=t.labelPos,r=t.dataLabel,r&&r._pos?(l=r._attr.visibility,s=r.connX,u=r.connY,n=x?[Gt,s+("left"===o[6]?5:-5),u,"C",s,u,2*o[2]-o[4],2*o[3]-o[5],o[2],o[3],qt,o[4],o[5]]:[Gt,s+("left"===o[6]?5:-5),u,qt,o[2],o[3],qt,o[4],o[5]],e?(e.animate({d:n}),e.attr("visibility",l)):t.connector=e=f.chart.renderer.path(n).attr({"stroke-width":y,stroke:m.connectorColor||t.color||"#606060",visibility:l}).add(f.dataLabelsGroup)):e&&(t.connector=e.destroy())}))}},te.pie.prototype.placeDataLabels=function(){le(this.points,function(t){var e,n=t.dataLabel;n&&(e=n._pos,e?(n.attr(n._attr),n[n.moved?"animate":"attr"](e),n.moved=!0):n&&n.attr({y:-999}))})},te.pie.prototype.alignDataLabel=It,te.pie.prototype.verifyDataLabelOverflow=function(t){var e,n=this.center,r=this.options,i=r.center,o=r.minSize||80,a=o;return null!==i[0]?a=ft(n[2]-ft(t[1],t[3]),o):(a=ft(n[2]-t[1]-t[3],o),n[0]+=(t[3]-t[1])/2),null!==i[1]?a=ft(dt(a,n[2]-ft(t[0],t[2])),o):(a=ft(dt(a,n[2]-t[0]-t[2]),o),n[1]+=(t[0]-t[2])/2),ane(this.translatedThreshold,s.yAxis.len),c=ne(r.inside,!!this.options.stacking);u&&(i=t(u),a&&(i={x:s.yAxis.len-i.y-i.height,y:s.xAxis.len-i.x-i.width,width:i.height,height:i.width}),c||(a?(i.x+=l?0:i.width,i.width=0):(i.y+=l?i.height:0,i.height=0))),r.align=ne(r.align,!a||c?"center":l?"right":"left"),r.verticalAlign=ne(r.verticalAlign,a||c?"middle":l?"top":"bottom"),He.prototype.alignDataLabel.call(this,e,n,r,i,o)}),function(t){var e=t.Chart,n=t.each,r=HighchartsAdapter.addEvent;e.prototype.callbacks.push(function(t){function e(){var e=[];n(t.series,function(t){var r=t.options.dataLabels;(r.enabled||t._hasPointLabels)&&!r.allowOverlap&&t.visible&&n(t.points,function(t){t.dataLabel&&(t.dataLabel.labelrank=t.labelrank,e.push(t.dataLabel))})}),t.hideOverlappingLabels(e)}e(),r(t,"redraw",e)}),e.prototype.hideOverlappingLabels=function(t){var e,n,r,i,o,a=t.length,s=function(t,e,n,r){return!(e.x>t.x+n.width||e.x+r.widtht.y+n.height||e.y+r.heighti;o.series.length&&(h||l>dt(u.dataMin,u.min))&&(!h||c",'"',"`"," ","\r","\n","\t"],d=["{","}","|","\\","^","`"].concat(f),v=["'"].concat(d),m=["%","/","?",";","#"].concat(v),g=["/","?","#"],y=255,_=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},k=n(375);r.prototype.parse=function(t,e,n){if(!l.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t.indexOf("?"),i=r!==-1&&r127?"x":R[N];if(!L.match(_)){var U=O.slice(0,M),z=O.slice(M+1),F=R.match(b);F&&(U.push(F[1]),z.unshift(F[2])),z.length&&(s="/"+z.join(".")+s),this.hostname=U.join(".");break}}}this.hostname.length>y?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=u.toASCII(this.hostname));var B=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+B,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!x[d])for(var M=0,I=v.length;M0)&&n.host.split("@");C&&(n.auth=C.shift(),n.host=n.hostname=C.shift())}return n.search=t.search,n.query=t.query,l.isNull(n.pathname)&&l.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=x.slice(-1)[0],M=(n.host||t.host||x.length>1)&&("."===E||".."===E)||""===E,T=0,D=x.length;D>=0;D--)E=x[D],"."===E?x.splice(D,1):".."===E?(x.splice(D,1),T++):T&&(x.splice(D,1),T--);if(!_&&!b)for(;T--;T)x.unshift("..");!_||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),M&&"/"!==x.join("/").substr(-1)&&x.push("");var P=""===x[0]||x[0]&&"/"===x[0].charAt(0);if(k){n.hostname=n.host=P?"":x.length?x.shift():"";var C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");C&&(n.auth=C.shift(),n.host=n.hostname=C.shift())}return _=_||n.host&&x.length,_&&!P&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),l.isNull(n.pathname)&&l.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var t=this.host,e=h.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},,function(t,e,n){"use strict";var r=n(6),i=function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)},o=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},a=function(t,e,n){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,t,e,n),i}return new r(t,e,n)},s=function(t,e,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,t,e,n,r),o}return new i(t,e,n,r)},u=function(t,e,n,r,i){var o=this;if(o.instancePool.length){var a=o.instancePool.pop();return o.call(a,t,e,n,r,i),a}return new o(t,e,n,r,i)},l=function(t){var e=this;t instanceof e?void 0:r(!1),t.destructor(),e.instancePool.length-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e,n){function r(t){return o(t)&&i(t)&&s.call(t,"callee")&&!u.call(t,"callee")}var i=n(90),o=n(50),a=Object.prototype,s=a.hasOwnProperty,u=a.propertyIsEnumerable;t.exports=r},function(t,e,n){"use strict";function r(t,e){return(t&e)===e}var i=n(6),o={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(t){var e=o,n=t.Properties||{},a=t.DOMAttributeNamespaces||{},u=t.DOMAttributeNames||{},l=t.DOMPropertyNames||{},c=t.DOMMutationMethods||{};t.isCustomAttribute&&s._isCustomAttributeFunctions.push(t.isCustomAttribute);for(var h in n){s.properties.hasOwnProperty(h)?i(!1):void 0;var p=h.toLowerCase(),f=n[h],d={attributeName:p,attributeNamespace:null,propertyName:h,mutationMethod:null,mustUseAttribute:r(f,e.MUST_USE_ATTRIBUTE),mustUseProperty:r(f,e.MUST_USE_PROPERTY),hasSideEffects:r(f,e.HAS_SIDE_EFFECTS),hasBooleanValue:r(f,e.HAS_BOOLEAN_VALUE),hasNumericValue:r(f,e.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(f,e.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(f,e.HAS_OVERLOADED_BOOLEAN_VALUE)};if(d.mustUseAttribute&&d.mustUseProperty?i(!1):void 0,!d.mustUseProperty&&d.hasSideEffects?i(!1):void 0,d.hasBooleanValue+d.hasNumericValue+d.hasOverloadedBooleanValue<=1?void 0:i(!1),u.hasOwnProperty(h)){var v=u[h];d.attributeName=v}a.hasOwnProperty(h)&&(d.attributeNamespace=a[h]),l.hasOwnProperty(h)&&(d.propertyName=l[h]),c.hasOwnProperty(h)&&(d.mutationMethod=c[h]),s.properties[h]=d}}},a={},s={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(t){for(var e=0;e1){var e=t.indexOf(f,1);return e>-1?t.substr(0,e):t}return null},traverseEnterLeave:function(t,e,n,r,i){var o=l(t,e);o!==t&&c(t,o,n,r,!1,!0),o!==e&&c(o,e,n,i,!0,!1)},traverseTwoPhase:function(t,e,n){t&&(c("",t,e,n,!0,!1),c(t,"",e,n,!1,!0))},traverseTwoPhaseSkipTarget:function(t,e,n){t&&(c("",t,e,n,!0,!0),c(t,"",e,n,!0,!0))},traverseAncestors:function(t,e,n){c("",t,e,n,!0,!1)},getFirstCommonAncestorID:l,_getNextDescendantID:u,isAncestorIDOf:a,SEPARATOR:f};t.exports=m},,,,,,function(t,e,n){function r(t,e,n){e=(n?o(t,e,n):null==e)?1:u(s(e)||1,1);for(var r=0,l=t?t.length:0,c=-1,h=Array(a(l/e));r-1?e:t}function f(t,e){e=e||{};var n=e.body;if(t instanceof f){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new i(t.headers)),this.method=t.method,this.mode=t.mode,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new i(e.headers)),this.method=p(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function d(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}}),e}function v(t){var e=new i;return t.split(/\r?\n/).forEach(function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}}),e}function m(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new i(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var g={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(g.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],_=function(t){return t&&DataView.prototype.isPrototypeOf(t)},b=ArrayBuffer.isView||function(t){return t&&y.indexOf(Object.prototype.toString.call(t))>-1};i.prototype.append=function(t,r){t=e(t),r=n(r);var i=this.map[t];this.map[t]=i?i+","+r:r},i.prototype["delete"]=function(t){delete this.map[e(t)]},i.prototype.get=function(t){return t=e(t),this.has(t)?this.map[t]:null},i.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},i.prototype.set=function(t,r){this.map[e(t)]=n(r)},i.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},i.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),r(t)},i.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),r(t)},i.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),r(t)},g.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this,{body:this._bodyInit})},h.call(f.prototype),h.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},m.error=function(){var t=new m(null,{status:0,statusText:""});return t.type="error",t};var w=[301,302,303,307,308];m.redirect=function(t,e){if(w.indexOf(e)===-1)throw new RangeError("Invalid status code");return new m(null,{status:e,headers:{location:t}})},t.Headers=i,t.Request=f,t.Response=m,t.fetch=function(t,e){return new Promise(function(n,r){var i=new f(t,e),o=new XMLHttpRequest;o.onload=function(){var t={status:o.status,statusText:o.statusText,headers:v(o.getAllResponseHeaders()||"")};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var e="response"in o?o.response:o.responseText;n(new m(e,t))},o.onerror=function(){r(new TypeError("Network request failed"))},o.ontimeout=function(){r(new TypeError("Network request failed"))},o.open(i.method,i.url,!0),"include"===i.credentials&&(o.withCredentials=!0),"responseType"in o&&g.blob&&(o.responseType="blob"),i.headers.forEach(function(t,e){o.setRequestHeader(e,t)}),o.send("undefined"==typeof i._bodyInit?null:i._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},,,function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},[979,261],function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},[985,108,464,484,130],function(t,e){function n(t){return!!t&&"object"==typeof t}function r(t,e){var n=null==t?void 0:t[e];return s(n)?n:void 0}function i(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=g}function o(t){return a(t)&&d.call(t)==l}function a(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function s(t){return null!=t&&(o(t)?v.test(p.call(t)):n(t)&&c.test(t))}var u="[object Array]",l="[object Function]",c=/^\[object .+?Constructor\]$/,h=Object.prototype,p=Function.prototype.toString,f=h.hasOwnProperty,d=h.toString,v=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=r(Array,"isArray"),g=9007199254740991,y=m||function(t){return n(t)&&i(t.length)&&d.call(t)==u};t.exports=y},function(t,e){function n(t,e){return t="number"==typeof t||r.test(t)?+t:-1,e=null==e?i:e,t>-1&&t%1==0&&t0;++r":">","<":"<",'"':""","'":"'"},o=/[&><"']/g;t.exports=r},function(t,e,n){"use strict";var r=n(25),i=/^[ \r\n\t\f]/,o=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,a=function(t,e){t.innerHTML=e};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(a=function(t,e){MSApp.execUnsafeLocalFunction(function(){t.innerHTML=e})}),r.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(a=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),i.test(e)||"<"===e[0]&&o.test(e)){t.innerHTML=String.fromCharCode(65279)+e;var n=t.firstChild;1===n.data.length?t.removeChild(n):n.deleteData(0,1)}else t.innerHTML=e})}t.exports=a},function(t,e,n){"use strict";var r=n(6),i=function(t){var e,n={};t instanceof Object&&!Array.isArray(t)?void 0:r(!1);for(e in t)t.hasOwnProperty(e)&&(n[e]=e);return n};t.exports=i},,,,,,,,,function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(r){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(514),i=n(353),o=n(537),a=o(r,i);t.exports=a},function(t,e,n){function r(t,e,n){var r=null==t?void 0:i(t,o(e),e+"");return void 0===r?n:r}var i=n(275),o=n(171);t.exports=r},function(t,e,n){var r=n(354),i=n(110),o=n(367),a=n(368),s=n(134),u=s(function(t,e){return null==t?{}:"function"==typeof e[0]?a(t,i(e[0],e[1],3)):o(t,r(e))});t.exports=u},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(165),i=n(33)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},[981,167,44],function(t,e,n){var r=n(168).f,i=n(131),o=n(33)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},[988,344,269],function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},[991,466,263],function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){function n(t,e,n){if("function"!=typeof t)return r;if(void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)};case 5:return function(n,r,i,o,a){return t.call(e,n,r,i,o,a)}}return function(){return t.apply(e,arguments)}}function r(t){return t}t.exports=n},function(t,e){function n(t){return i(t)&&d.call(t,"callee")&&(!m.call(t,"callee")||v.call(t)==c)}function r(t){return null!=t&&a(t.length)&&!o(t)}function i(t){return u(t)&&r(t)}function o(t){var e=s(t)?v.call(t):"";return e==h||e==p}function a(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=l}function s(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function u(t){return!!t&&"object"==typeof t}var l=9007199254740991,c="[object Arguments]",h="[object Function]",p="[object GeneratorFunction]",f=Object.prototype,d=f.hasOwnProperty,v=f.toString,m=f.propertyIsEnumerable;t.exports=n},function(t,e,n){function r(t){return function(e){return null==e?void 0:e[t]}}function i(t){return null!=t&&a(y(t))}function o(t,e){return t="number"==typeof t||f.test(t)?+t:-1,e=null==e?g:e,t>-1&&t%1==0&&t-1&&t%1==0&&t<=g}function s(t){for(var e=l(t),n=e.length,r=n&&t.length,i=!!r&&a(r)&&(p(t)||h(t)),s=-1,u=[];++s0;++r=32||13===e?e:0}t.exports=n},function(t,e){"use strict";function n(t){var e=this,n=e.nativeEvent;if(n.getModifierState)return n.getModifierState(t);var r=i[t];return!!r&&!!n[r]}function r(t){return n}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=r},function(t,e){"use strict";function n(t){var e=t.target||t.srcElement||window;return 3===e.nodeType?e.parentNode:e}t.exports=n},function(t,e){"use strict";function n(t){var e=t&&(r&&t[r]||t[i]);if("function"==typeof e)return e}var r="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";t.exports=n},function(t,e,n){"use strict";function r(t){return"function"==typeof t&&"undefined"!=typeof t.prototype&&"function"==typeof t.prototype.mountComponent&&"function"==typeof t.prototype.receiveComponent}function i(t){var e;if(null===t||t===!1)e=new a(i);else if("object"==typeof t){var n=t;!n||"function"!=typeof n.type&&"string"!=typeof n.type?l(!1):void 0,e="string"==typeof n.type?s.createInternalComponent(n):r(n.type)?new n.type(n):new c}else"string"==typeof t||"number"==typeof t?e=s.createInstanceForText(t):l(!1);return e.construct(t),e._mountIndex=0,e._mountImage=null,e}var o=n(840),a=n(389),s=n(395),u=n(10),l=n(6),c=(n(11),function(){});u(c.prototype,o.Mixin,{_instantiateReactComponent:i}),t.exports=i},function(t,e,n){"use strict";function r(t,e){if(!o.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&i&&"wheel"===t&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var i,o=n(25);o.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},function(t,e,n){"use strict";var r=n(25),i=n(179),o=n(180),a=function(t,e){t.textContent=e};r.canUseDOM&&("textContent"in document.documentElement||(a=function(t,e){o(t,i(e))})),t.exports=a},function(t,e){"use strict";function n(t,e){var n=null===t||t===!1,r=null===e||e===!1;if(n||r)return n===r;var i=typeof t,o=typeof e;return"string"===i||"number"===i?"string"===o||"number"===o:"object"===o&&t.type===e.type&&t.key===e.key}t.exports=n},function(t,e,n){"use strict";function r(t){return v[t]}function i(t,e){return t&&null!=t.key?a(t.key):e.toString(36)}function o(t){return(""+t).replace(m,r)}function a(t){return"$"+o(t)}function s(t,e,n,r){var o=typeof t;if("undefined"!==o&&"boolean"!==o||(t=null),null===t||"string"===o||"number"===o||l.isValidElement(t))return n(r,t,""===e?f+i(t,0):e),1;var u,c,v=0,m=""===e?f:e+d;if(Array.isArray(t))for(var g=0;gn;)e.push(arguments[n++]);return m[++v]=function(){s("function"==typeof t?t:Function(t),e)},r(v),v},f=function(t){delete m[t]},"process"==n(165)(h)?r=function(t){h.nextTick(a(y,t,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=_,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(t){c.postMessage(t+"","*")},c.addEventListener("message",_,!1)):r=g in l("script")?function(t){u.appendChild(l("script"))[g]=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:p,clear:f}},[992,267],function(t,e){function n(t,e){if("function"!=typeof t)throw new TypeError(r);return e=i(void 0===e?t.length-1:+e||0,0),function(){for(var n=arguments,r=-1,o=i(n.length-e,0),a=Array(o);++ri?0:i+e),n=void 0===n||n>i?i:+n||0,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r2?n[a-2]:void 0,u=a>2?n[2]:void 0,l=a>1?n[a-1]:void 0;for("function"==typeof s?(s=i(s,l,5),a-=2):(s="function"==typeof l?l:void 0,a-=s?1:0),u&&o(n[0],n[1],u)&&(s=a<3?void 0:s,a=1);++r false (equal input)"),!1;if(!b(this.state,e))return g&&g.call(this,"shouldComponentUpdate => true (state has changed)"),!0;var n=f(t,C),r=f(this.props,C);return x(r,n)?(g&&g.call(this,"shouldComponentUpdate => false"),!1):(g&&g.call(this,"shouldComponentUpdate => true (props have changed)"),!0)}function n(t,e){return d(t,e,function(t,e){return t===e||i(t,e,w,o)})}function r(t,e){if(t===e)return!0;var n=i(t,e,y,_);if(void 0!==n)return n;var r=i(t,e,w,o);return void 0!==r?r:d(t,e,function(t,e){if(t===e)return!0;var n=i(t,e,y,_);return void 0!==n?n:i(t,e,w,o)})}function v(t,e){return k(t)===k(e)}function m(t,e){"function"==typeof t&&(e=t,t=void 0);var n=e;!n&&console.debug&&(n=console.debug.bind(console)),!n&&console.info&&(n=console.info.bind(console));var r=new RegExp(t||".*");return g=function(t){var e=this._currentElement;this._reactInternalInstance&&this._reactInternalInstance._currentElement&&(e=this._reactInternalInstance._currentElement);var i=e&&e.key?" key="+e.key:"",o=this.constructor.displayName;i||o||(o="Unknown");var a=o+i;r.test(a)&&n("<"+a+">: "+t)}}var g;t=t||{};var y=t.isCursor||u,_=t.isEqualCursor||v,b=t.isEqualState||n,x=t.isEqualProps||r,w=t.isImmutable||a,S=t.isIgnorable||c,k=t.unCursor||s,C=l(p(S,h));return e.isCursor=y,e.isEqualState=b,e.isEqualProps=x,e.isEqualCursor=_,e.isImmutable=w,e.debug=m,e}function i(t,e,n,r){var i=n(t),o=n(e);return i&&o?r(t,e):!i&&!o&&void 0}function o(t,e){return t===e}function a(t){return!(!t||!t[v])}function s(t){return u(t)?t.deref():t}function u(t){return!(!t||"function"!=typeof t.deref)}function l(t){return function(){return!t.apply(t,arguments)}}function c(t,e){return!1}function h(t,e){return"children"===e}function p(t,e){return function(){return t.apply(null,arguments)||e.apply(null,arguments)}}var f=n(737),d=n(736);t.exports=r(),t.exports.withDefaults=r;var v="@@__IMMUTABLE_ITERABLE__@@"},function(t,e){"use strict";var n=String.prototype.replace,r=/%20/g;t.exports={"default":"RFC3986",formatters:{RFC1738:function(t){return n.call(t,r,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}();e.arrayToObject=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?n+=e.charAt(i):o<128?n+=r[o]:o<2048?n+=r[192|o>>6]+r[128|63&o]:o<55296||o>=57344?n+=r[224|o>>12]+r[128|o>>6&63]+r[128|63&o]:(i+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(i)),n+=r[240|o>>18]+r[128|o>>12&63]+r[128|o>>6&63]+r[128|63&o])}return n},e.compact=function(t,n){if("object"!=typeof t||null===t)return t;var r=n||[],i=r.indexOf(t);if(i!==-1)return r[i];if(r.push(t),Array.isArray(t)){for(var o=[],a=0;a=t.childNodes.length?null:t.childNodes.item(n);t.insertBefore(e,r)}var i=n(828),o=n(394),a=n(45),s=n(180),u=n(295),l=n(6),c={dangerouslyReplaceNodeWithMarkup:i.dangerouslyReplaceNodeWithMarkup,updateTextContent:u,processUpdates:function(t,e){for(var n,a=null,c=null,h=0;h-1?void 0:a(!1),!l.plugins[n]){e.extractEvents?void 0:a(!1),l.plugins[n]=e;var r=e.eventTypes;for(var o in r)i(r[o],e,o)?void 0:a(!1)}}}function i(t,e,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?a(!1):void 0,l.eventNameDispatchConfigs[n]=t;var r=t.phasedRegistrationNames;if(r){for(var i in r)if(r.hasOwnProperty(i)){var s=r[i];o(s,e,n)}return!0}return!!t.registrationName&&(o(t.registrationName,e,n),!0)}function o(t,e,n){l.registrationNameModules[t]?a(!1):void 0,l.registrationNameModules[t]=e,l.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var a=n(6),s=null,u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(t){s?a(!1):void 0,s=Array.prototype.slice.call(t),r()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];u.hasOwnProperty(n)&&u[n]===i||(u[n]?a(!1):void 0,u[n]=i,e=!0)}e&&r()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return l.registrationNameModules[e.registrationName]||null;for(var n in e.phasedRegistrationNames)if(e.phasedRegistrationNames.hasOwnProperty(n)){var r=l.registrationNameModules[e.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var t in u)u.hasOwnProperty(t)&&delete u[t];l.plugins.length=0;var e=l.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var r=l.registrationNameModules;for(var i in r)r.hasOwnProperty(i)&&delete r[i]}};t.exports=l},function(t,e,n){"use strict";function r(t,e){var n=w.hasOwnProperty(e)?w[e]:null;k.hasOwnProperty(e)&&(n!==b.OVERRIDE_BASE?m(!1):void 0),t.hasOwnProperty(e)&&(n!==b.DEFINE_MANY&&n!==b.DEFINE_MANY_MERGED?m(!1):void 0)}function i(t,e){if(e){"function"==typeof e?m(!1):void 0,p.isValidElement(e)?m(!1):void 0;var n=t.prototype;e.hasOwnProperty(_)&&S.mixins(t,e.mixins);for(var i in e)if(e.hasOwnProperty(i)&&i!==_){var o=e[i];if(r(n,i),S.hasOwnProperty(i))S[i](t,o);else{var a=w.hasOwnProperty(i),l=n.hasOwnProperty(i),c="function"==typeof o,h=c&&!a&&!l&&e.autobind!==!1;if(h)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[i]=o,n[i]=o;else if(l){var f=w[i];!a||f!==b.DEFINE_MANY_MERGED&&f!==b.DEFINE_MANY?m(!1):void 0,f===b.DEFINE_MANY_MERGED?n[i]=s(n[i],o):f===b.DEFINE_MANY&&(n[i]=u(n[i],o))}else n[i]=o}}}}function o(t,e){if(e)for(var n in e){var r=e[n];if(e.hasOwnProperty(n)){var i=n in S;i?m(!1):void 0;var o=n in t;o?m(!1):void 0,t[n]=r}}}function a(t,e){t&&e&&"object"==typeof t&&"object"==typeof e?void 0:m(!1);for(var n in e)e.hasOwnProperty(n)&&(void 0!==t[n]?m(!1):void 0,t[n]=e[n]);return t}function s(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return a(i,n),a(i,r),i}}function u(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function l(t,e){var n=e.bind(t);return n}function c(t){for(var e in t.__reactAutoBindMap)if(t.__reactAutoBindMap.hasOwnProperty(e)){var n=t.__reactAutoBindMap[e];t[e]=l(t,n)}}var h=n(382),p=n(28),f=(n(175),n(174),n(396)),d=n(10),v=n(141),m=n(6),g=n(181),y=n(51),_=(n(11),y({mixins:null})),b=g({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),x=[],w={mixins:b.DEFINE_MANY,statics:b.DEFINE_MANY,propTypes:b.DEFINE_MANY,contextTypes:b.DEFINE_MANY,childContextTypes:b.DEFINE_MANY,getDefaultProps:b.DEFINE_MANY_MERGED,getInitialState:b.DEFINE_MANY_MERGED,getChildContext:b.DEFINE_MANY_MERGED,render:b.DEFINE_ONCE,componentWillMount:b.DEFINE_MANY,componentDidMount:b.DEFINE_MANY,componentWillReceiveProps:b.DEFINE_MANY,shouldComponentUpdate:b.DEFINE_ONCE,componentWillUpdate:b.DEFINE_MANY,componentDidUpdate:b.DEFINE_MANY,componentWillUnmount:b.DEFINE_MANY,updateComponent:b.OVERRIDE_BASE},S={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n"+s+""},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var i=a.getNode(this._rootNodeID);r.updateTextContent(i,n)}}},unmountComponent:function(){o.unmountIDFromEnvironment(this._rootNodeID)}}),t.exports=c},function(t,e,n){"use strict";function r(){this.reinitializeTransaction()}var i=n(38),o=n(177),a=n(10),s=n(35),u={initialize:s,close:function(){p.isBatchingUpdates=!1}},l={initialize:s,close:i.flushBatchedUpdates.bind(i)},c=[l,u];a(r.prototype,o.Mixin,{getTransactionWrappers:function(){return c}});var h=new r,p={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,r,i,o){var a=p.isBatchingUpdates;p.isBatchingUpdates=!0,a?t(e,n,r,i,o):h.perform(t,null,e,n,r,i,o)}};t.exports=p},function(t,e,n){"use strict";function r(){if(!C){C=!0,g.EventEmitter.injectReactEventListener(m),g.EventPluginHub.injectEventPluginOrder(s),g.EventPluginHub.injectInstanceHandle(y),g.EventPluginHub.injectMount(_),g.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:S,EnterLeaveEventPlugin:u,ChangeEventPlugin:o,SelectEventPlugin:x,BeforeInputEventPlugin:i}),g.NativeComponent.injectGenericComponentClass(d),g.NativeComponent.injectTextComponentClass(v),g.Class.injectMixin(h),g.DOMProperty.injectDOMPropertyConfig(c),g.DOMProperty.injectDOMPropertyConfig(k),g.EmptyComponent.injectEmptyComponent("noscript"),g.Updates.injectReconcileTransaction(b),g.Updates.injectBatchingStrategy(f),g.RootIndex.injectCreateReactRootIndex(l.canUseDOM?a.createReactRootIndex:w.createReactRootIndex),g.Component.injectEnvironment(p)}}var i=n(824),o=n(826),a=n(827),s=n(829),u=n(830),l=n(25),c=n(833),h=n(835),p=n(282),f=n(386),d=n(842),v=n(385),m=n(850),g=n(852),y=n(115),_=n(32),b=n(858),x=n(868),w=n(869),S=n(870),k=n(867),C=!1;t.exports={inject:r}},function(t,e,n){"use strict";function r(){if(h.current){var t=h.current.getName();if(t)return" Check the render method of `"+t+"`."}return""}function i(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;o("uniqueKey",t,e)}}function o(t,e,n){var i=r();if(!i){var o="string"==typeof n?n:n.displayName||n.name;o&&(i=" Check the top-level render call using <"+o+">.")}var a=d[t]||(d[t]={});if(a[i])return null;a[i]=!0;var s={parentOrOwner:i,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return e&&e._owner&&e._owner!==h.current&&(s.childOwner=" It was passed a child from "+e._owner.getName()+"."),s}function a(t,e){if("object"==typeof t)if(Array.isArray(t))for(var n=0;n/,o={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=r(t);return t.replace(i," "+o.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(o.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var i=r(t);return i===n}};t.exports=o},function(t,e,n){"use strict";var r=n(181),i=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});t.exports=i},function(t,e,n){"use strict";function r(t){if("function"==typeof t.type)return t.type;var e=t.type,n=h[e];return null==n&&(h[e]=n=l(e)),n}function i(t){return c?void 0:u(!1),new c(t.type,t.props)}function o(t){return new p(t)}function a(t){return t instanceof p}var s=n(10),u=n(6),l=null,c=null,h={},p=null,f={injectGenericComponentClass:function(t){c=t},injectTextComponentClass:function(t){p=t},injectComponentClasses:function(t){s(h,t)}},d={getComponentClassForElement:r,createInternalComponent:i,createInstanceForText:o,isTextComponent:a,injection:f};t.exports=d},function(t,e,n){"use strict";function r(t,e){}var i=(n(11),{isMounted:function(t){return!1},enqueueCallback:function(t,e){},enqueueForceUpdate:function(t){r(t,"forceUpdate")},enqueueReplaceState:function(t,e){r(t,"replaceState")},enqueueSetState:function(t,e){r(t,"setState")},enqueueSetProps:function(t,e){r(t,"setProps")},enqueueReplaceProps:function(t,e){r(t,"replaceProps")}});t.exports=i},function(t,e,n){"use strict";function r(t){function e(e,n,r,i,o,a){if(i=i||w,a=a||r,null==n[r]){var s=_[o];return e?new Error("Required "+s+" `"+a+"` was not specified in "+("`"+i+"`.")):null}return t(n,r,i,o,a)}var n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n}function i(t){function e(e,n,r,i,o){var a=e[n],s=v(a);if(s!==t){var u=_[i],l=m(a);return new Error("Invalid "+u+" `"+o+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("`"+t+"`."))}return null}return r(e)}function o(){return r(b.thatReturns(null))}function a(t){function e(e,n,r,i,o){var a=e[n];if(!Array.isArray(a)){var s=_[i],u=v(a);return new Error("Invalid "+s+" `"+o+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l>"}var y=n(28),_=n(174),b=n(35),x=n(292),w="<>",S={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),any:o(),arrayOf:a,element:s(),instanceOf:u,node:p(),objectOf:c,oneOf:l,oneOfType:h,shape:f};t.exports=S},function(t,e){"use strict";var n={injectCreateReactRootIndex:function(t){r.createReactRootIndex=t}},r={createReactRootIndex:null,injection:n};t.exports=r},function(t,e,n){"use strict";var r=n(114),i=n(864),o=n(10),a=n(35),s=r.createClass({displayName:"ReactTransitionGroup",propTypes:{component:r.PropTypes.any,childFactory:r.PropTypes.func },getDefaultProps:function(){return{component:"span",childFactory:a.thatReturnsArgument}},getInitialState:function(){return{children:i.getChildMapping(this.props.children)}},componentWillMount:function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},componentDidMount:function(){var t=this.state.children;for(var e in t)t[e]&&this.performAppear(e)},componentWillReceiveProps:function(t){var e=i.getChildMapping(t.children),n=this.state.children;this.setState({children:i.mergeChildMappings(n,e)});var r;for(r in e){var o=n&&n.hasOwnProperty(r);!e[r]||o||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(r in n){var a=e&&e.hasOwnProperty(r);!n[r]||a||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}},componentDidUpdate:function(){var t=this.keysToEnter;this.keysToEnter=[],t.forEach(this.performEnter);var e=this.keysToLeave;this.keysToLeave=[],e.forEach(this.performLeave)},performAppear:function(t){this.currentlyTransitioningKeys[t]=!0;var e=this.refs[t];e.componentWillAppear?e.componentWillAppear(this._handleDoneAppearing.bind(this,t)):this._handleDoneAppearing(t)},_handleDoneAppearing:function(t){var e=this.refs[t];e.componentDidAppear&&e.componentDidAppear(),delete this.currentlyTransitioningKeys[t];var n=i.getChildMapping(this.props.children);n&&n.hasOwnProperty(t)||this.performLeave(t)},performEnter:function(t){this.currentlyTransitioningKeys[t]=!0;var e=this.refs[t];e.componentWillEnter?e.componentWillEnter(this._handleDoneEntering.bind(this,t)):this._handleDoneEntering(t)},_handleDoneEntering:function(t){var e=this.refs[t];e.componentDidEnter&&e.componentDidEnter(),delete this.currentlyTransitioningKeys[t];var n=i.getChildMapping(this.props.children);n&&n.hasOwnProperty(t)||this.performLeave(t)},performLeave:function(t){this.currentlyTransitioningKeys[t]=!0;var e=this.refs[t];e.componentWillLeave?e.componentWillLeave(this._handleDoneLeaving.bind(this,t)):this._handleDoneLeaving(t)},_handleDoneLeaving:function(t){var e=this.refs[t];e.componentDidLeave&&e.componentDidLeave(),delete this.currentlyTransitioningKeys[t];var n=i.getChildMapping(this.props.children);n&&n.hasOwnProperty(t)?this.performEnter(t):this.setState(function(e){var n=o({},e.children);return delete n[t],{children:n}})},render:function(){var t=[];for(var e in this.state.children){var n=this.state.children[e];n&&t.push(r.cloneElement(this.props.childFactory(n),{ref:e,key:e}))}return r.createElement(this.props.component,this.props,t)}});t.exports=s},function(t,e){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(t){n.currentScrollLeft=t.x,n.currentScrollTop=t.y}};t.exports=n},function(t,e,n){"use strict";function r(t,e){if(null==e?i(!1):void 0,null==t)return e;var n=Array.isArray(t),r=Array.isArray(e);return n&&r?(t.push.apply(t,e),t):n?(t.push(e),t):r?[t].concat(e):[t,e]}var i=n(6);t.exports=r},function(t,e,n){"use strict";function r(t,e,n){var r=t,i=void 0===r[n];i&&null!=e&&(r[n]=e)}function i(t){if(null==t)return t;var e={};return o(t,r,e),e}var o=n(297);n(11);t.exports=i},function(t,e){"use strict";var n=function(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)};t.exports=n},function(t,e,n){"use strict";function r(){return!o&&i.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}var i=n(25),o=null;t.exports=r},function(t,e){"use strict";function n(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&r[t.type]||"textarea"===e)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=n},function(t,e,n){"use strict";function r(t){return i.isValidElement(t)?void 0:o(!1),t}var i=n(28),o=n(6);t.exports=r},function(t,e,n){"use strict";function r(t,e,n){return!i(t.props,e)||!i(t.state,n)}var i=n(299);t.exports=r},function(t,e,n){"use strict";var r=n(35),i={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},capture:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!0),{remove:function(){t.removeEventListener(e,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=i},function(t,e,n){"use strict";function r(t,e){var n=!0;t:for(;n;){var r=t,o=e;if(n=!1,r&&o){if(r===o)return!0;if(i(r))return!1;if(i(o)){t=r,e=o.parentNode,n=!0;continue t}return r.contains?r.contains(o):!!r.compareDocumentPosition&&!!(16&r.compareDocumentPosition(o))}return!1}}var i=n(897);t.exports=r},function(t,e){"use strict";function n(t){try{t.focus()}catch(e){}}t.exports=n},function(t,e){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(t){return document.body}}t.exports=n},function(t,e,n){"use strict";function r(t){return a?void 0:o(!1),p.hasOwnProperty(t)||(t="*"),s.hasOwnProperty(t)||("*"===t?a.innerHTML="":a.innerHTML="<"+t+">",s[t]=!a.firstChild),s[t]?p[t]:null}var i=n(25),o=n(6),a=i.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],l=[1,"","
"],c=[3,"","
"],h=[1,'',""],p={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},f=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];f.forEach(function(t){p[t]=h,s[t]=!0}),t.exports=r},,,,,,,,,,,,,,,function(t,e,n){n(487),n(489),n(490),n(488),t.exports=n(129).Promise},,function(t,e,n){function r(t,e,n){if(null==t)return t;var r=e+"";e=null!=t[r]||o(e,t)?[r]:s(e);for(var u=-1,l=e.length,c=l-1,h=t;null!=h&&++u_;_++)if(m=e?y(a(d=t[_])[0],d[1]):y(t[_]),m===l||m===c)return m}else for(v=g.call(t);!(d=v.next()).done;)if(m=i(v,y,d.value,e),m===l||m===c)return m};e.BREAK=l,e.RETURN=c},[983,130,339,264],function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},[984,165],function(t,e,n){var r=n(132),i=n(33)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(108);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(o){var a=t["return"];throw void 0!==a&&r(a.call(t)),o}}},function(t,e,n){"use strict";var r=n(473),i=n(343),o=n(265),a={};n(109)(a,n(33)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(33)("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(s){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(44),i=n(345).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(165)(a);t.exports=function(){var t,e,n,l=function(){var r,i;for(u&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(o){throw t?n():e=void 0,o}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(l)};else if(o){var c=!0,h=document.createTextNode("");new o(l).observe(h,{characterData:!0}),n=function(){h.data=c=!c}}else if(s&&s.resolve){var p=s.resolve();n=function(){p.then(l)}}else n=function(){i.call(r,l)};return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){var r=n(108),i=n(474),o=n(337),a=n(266)("IE_PROTO"),s=function(){},u="prototype",l=function(){var t,e=n(264)("iframe"),r=o.length,i="<",a=">";for(e.style.display="none",n(340).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),l=t.F;r--;)delete l[u][o[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[a]=t):n=l(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(168),i=n(108),o=n(477);t.exports=n(130)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var r=n(131),i=n(483),o=n(266)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},[986,131,268,462,266],[987,476,337],function(t,e,n){var r=n(133);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){"use strict";var r=n(44),i=n(168),o=n(130),a=n(33)("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(108),i=n(261),o=n(33)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},function(t,e,n){var r=n(267),i=n(263);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},[990,267],[993,263],[994,167],function(t,e,n){var r=n(262),i=n(33)("iterator"),o=n(132);t.exports=n(129).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){"use strict";var r=n(460),i=n(471),o=n(132),a=n(268);t.exports=n(341)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r=n(262),i={};i[n(33)("toStringTag")]="z",i+""!="[object z]"&&n(133)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){"use strict";var r,i,o,a=n(342),s=n(44),u=n(166),l=n(262),c=n(338),h=n(167),p=n(261),f=n(461),d=n(463),v=n(480),m=n(345).set,g=n(472)(),y="Promise",_=s.TypeError,b=s.process,x=s[y],b=s.process,w="process"==l(b),S=function(){},k=!!function(){try{var t=x.resolve(1),e=(t.constructor={})[n(33)("species")]=function(t){t(S,S)};return(w||"function"==typeof PromiseRejectionEvent)&&t.then(S)instanceof e}catch(r){}}(),C=function(t,e){return t===e||t===x&&e===o},E=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},M=function(t){return C(x,t)?new T(t):new i(t)},T=i=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw _("Bad Promise constructor");e=t,n=r}),this.resolve=p(e),this.reject=p(n)},D=function(t){try{t()}catch(e){return{error:e}}},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a=i?e.ok:e.fail,s=e.resolve,u=e.reject,l=e.domain;try{a?(i||(2==t._h&&I(t),t._h=1),a===!0?n=r:(l&&l.enter(),n=a(r),l&&l.exit()),n===e.promise?u(_("Promise-chain cycle")):(o=E(n))?o.call(n,s,u):s(n)):u(r)}catch(c){u(c)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&A(t)})}},A=function(t){m.call(s,function(){var e,n,r,i=t._v;if(O(t)&&(e=D(function(){w?b.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=w||O(t)?2:1),t._a=void 0,e)throw e.error})},O=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!O(e.promise))return!1;return!0},I=function(t){m.call(s,function(){var e;w?b.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},L=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw _("Promise can't be resolved itself");(e=E(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,u(L,r,1),u(R,r,1))}catch(i){R.call(r,i)}}):(n._v=t,n._s=1,P(n,!1))}catch(r){R.call({_w:n,_d:!1},r)}}};k||(x=function(t){f(this,x,y,"_h"),p(t),r.call(this);try{t(u(L,this,1),u(R,this,1))}catch(e){R.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(478)(x.prototype,{then:function(t,e){var n=M(v(this,x));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=w?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},"catch":function(t){return this.then(void 0,t)}}),T=function(){var t=new r;this.promise=t,this.resolve=u(L,t,1),this.reject=u(R,t,1)}),c(c.G+c.W+c.F*!k,{Promise:x}),n(265)(x,y),n(479)(y),o=n(129)[y],c(c.S+c.F*!k,y,{reject:function(t){var e=M(this),n=e.reject;return n(t),e.promise}}),c(c.S+c.F*(a||!k),y,{resolve:function(t){if(t instanceof x&&C(t.constructor,this))return t;var e=M(this),n=e.resolve;return n(t),e.promise}}),c(c.S+c.F*!(k&&n(470)(function(t){x.all(t)["catch"](S)})),y,{all:function(t){var e=this,n=M(e),r=n.resolve,i=n.reject,o=D(function(){var n=[],o=0,a=1;d(t,!1,function(t){var s=o++,u=!1;n.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,n[s]=t,--a||r(n))},i)}),--a||r(n)});return o&&i(o.error),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,i=D(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},function(t,e,n){"use strict";var r=n(481)(!0);n(341)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){for(var r=n(486),i=n(133),o=n(44),a=n(109),s=n(132),u=n(33),l=u("iterator"),c=u("toStringTag"),h=s.Array,p=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],f=0;f<5;f++){var d,v=p[f],m=o[v],g=m&&m.prototype;if(g){g[l]||a(g,l,h),g[c]||a(g,c,v),s[v]=h;for(d in r)g[d]||i(g,d,r[d],!0)}}},function(t,e,n){"use strict";function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(){}var o=Object.prototype.hasOwnProperty,a="function"!=typeof Object.create&&"~";i.prototype._events=void 0,i.prototype.eventNames=function(){var t,e=this._events,n=[];if(!e)return n;for(t in e)o.call(e,t)&&n.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},i.prototype.listeners=function(t,e){var n=a?a+t:t,r=this._events&&this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i0){var a=r[0],s=e&&e.get?e.get(a):void 0,u=n&&n.get?n.get(a):void 0;return i(t.get(a),s,u,r.slice(1),o)}t.forEach(function(t,r){if(r!==k){var a=e&&e.get?e.get(r):void 0,s=n&&n.get?n.get(r):void 0;i(t,a,s,[],o)}})}}function o(t,e,n){return t.updateIn(e.concat(k),b.OrderedSet(),function(t){return t.add(n)})}function a(t,e,n){return t.updateIn(e.concat(k),b.OrderedSet(),function(t){return t.remove(n)})}function s(t,e){return function(n,r,i){var o=e.apply(e,arguments);return t.history&&n!==r?(t.history=t.history.take(++t._currentRevision).push(t.current),t.history.size>t._historyLimit&&(t.history=t.history.takeLast(t._historyLimit),t._currentRevision-=t.history.size-t._historyLimit),o):o}}function u(t,e,n,r){t._queuedChange||(t._queuedChange=!0,C(function(){t._queuedChange=!1,t.emit("next-animation-frame",e,n,r)}))}function l(t,e){return function(n,r,i){var o=t.current,a=e.apply(e,arguments);return n===o?a:(t.emit("swap",a,o,i),u(t,a,o,i),a)}}function c(t,e){return function(n,r,i){var o=t.current,a=e.apply(e,arguments);if(n===o)return a;var s=h(n,o,i);return s.eventName&&(t.emit.apply(t,[s.eventName].concat(s.args)),t.emit("any",s.newObject,s.oldObject,i)),a}}function h(t,e,n){var r,i,o=e&&e.getIn(n),a=t&&t.getIn(n),s=e&&p(e,n),u=t&&p(t,n);return s&&!u?(i="delete",r=[o,n]):s&&u?(i="change",r=[a,o,n]):!s&&u&&(i="add",r=[a,n]),{eventName:i,args:r,newObject:a,oldObject:o}}function p(t,e){return t.hasIn?t.hasIn(e):t.getIn(e,E)!==E}function f(t,e){return function(n,r,i){var o=h(n,r,i);if(o.eventName===t||"any"===t)return"any"===t?e.call(e,o.newObject,o.oldObject,i):e.apply(e,o.args)}}function d(t,e){return function(n,r,i){return e.call(this,n.getIn(t),r.getIn(t),i.slice(t.length))}}function v(t){return t&&"function"==typeof t.deref}function m(t){return M.some(function(e){return g(e.name,e.method,t)})}function g(t,e,n){return b[t]&&b[t][e]&&b[t][e](n)}function y(t){return"undefined"==typeof t?t:Array.isArray(t)?t:g("Iterable","isIterable",t)?t.toArray():[t]}function _(t,e){var n={};Object.getOwnPropertyNames(t.prototype).forEach(function(e){n[e]=Object.getOwnPropertyDescriptor(t.prototype,e)}),t.prototype=Object.create(e.prototype,n),t["super"]=e}var b=n(2),x=n(494),w=n(491),S=n(493),k={};_(r,w),t.exports=r,r.prototype.cursor=function(t){var e=this;if(t=y(t)||[],!this.current)throw new Error("No structure loaded.");var n=function(t,n,r){return e.current===n?e.current=t:p(t,r)?e.current=e.current.setIn(r,t.getIn(r)):e.current=e.current.removeIn(r),e.current};return n=s(this,n),n=l(this,n),n=c(this,n),x.from(e.current,t,n)},r.prototype.reference=function(t){function e(){s=i.cursor(t)}function n(t,e){i._referencelisteners=o(i._referencelisteners,t,e)}function r(t,e){i._referencelisteners=a(i._referencelisteners,t,e)}v(t)&&t._keyPath&&(t=t._keyPath),t=y(t)||[];var i=this,s=this.cursor(t),u=b.Set();return n(t,e),{observe:function(e,i){if("function"==typeof e&&(i=e,e=void 0),!this._dead&&"function"==typeof i)return i=e&&"swap"!==e?f(e,i):d(t,i),n(t,i),u=u.add(i),function(){r(t,i)}},cursor:function(t){if(!this._dead)return t=y(t),t?s.cursor(t):s},reference:function(t){return t=y(t),i.reference((s._keyPath||[]).concat(t))},unobserveAll:function(n){this._dead||(u.forEach(function(e){r(t,e)}),n&&r(t,e))},destroy:function(){s=void 0,this.unobserveAll(!0),this._dead=!0,this.observe=void 0,this.unobserveAll=void 0,this.cursor=void 0,this.destroy=void 0,e=void 0,r=void 0,n=void 0}}},r.prototype.forceHasSwapped=function(t,e,n){this.emit("swap",t||this.current,e,n),u(this,t||this.current,e,n)},r.prototype.undo=function(t){return this._currentRevision-=t||1,this._currentRevision<0&&(this._currentRevision=0),this.current=this.history.get(this._currentRevision),this.current},r.prototype.redo=function(t){return this._currentRevision+=t||1,this._currentRevision>this.history.count()-1&&(this._currentRevision=this.history.count()-1),this.current=this.history.get(this._currentRevision),this.current},r.prototype.undoUntil=function(t){return this._currentRevision=this.history.indexOf(t),this.current=t,t};var C="undefined"!=typeof window&&window.requestAnimationFrame||S.raf,E={},M=[{name:"Iterable",method:"isIterable"},{name:"Seq",method:"isSeq"},{name:"Map",method:"isMap"},{name:"OrderedMap",method:"isOrderedMap"},{name:"List",method:"isList"},{name:"Stack",method:"isStack"},{name:"Set",method:"isSet"}]},function(t,e,n){"use strict";(function(t){t.exports.generateRandomKey=function(t){return t=t||10,Math.random().toString(36).substring(2).substring(0,t)},t.exports.raf=function(){for(var e="undefined"==typeof window?t:window,n=0,r=["webkit","moz"],i=0;i2,i=t._rootData.updateIn(t._keyPath,r?_():void 0,e),o=t._keyPath||[],s=t._onChange&&t._onChange.call(void 0,i,t._rootData,r?p(o,n):o);return void 0!==s&&(i=s),a(i,t._keyPath,t._onChange)}function p(t,e){return t.concat(f(e))}function f(t){return Array.isArray(t)?t:v.Iterable(t).toArray()}function d(t){return Array.isArray(t)?t:m.isIterable(t)?t.toArray():[t]}var v=n(2),m=v.Iterable,g=m.Iterator,y=v.Seq,_=v.Map,b=v.Record,x=Object.create(y.Keyed.prototype),w=Object.create(y.Indexed.prototype);x.constructor=i,w.constructor=o,x.toString=function(){return this.__toString("Cursor {","}")},w.toString=function(){return this.__toString("Cursor [","]")},x.deref=x.valueOf=w.deref=w.valueOf=function(t){return this._rootData.getIn(this._keyPath,t)},x.get=w.get=function(t,e){return this.getIn([t],e)},x.getIn=w.getIn=function(t,e){if(t=f(t),0===t.length)return this;var n=this._rootData.getIn(p(this._keyPath,t),S);return n===S?e:l(this,t,n)},w.set=x.set=function(t,e){return 1===arguments.length?h(this,function(){return t},[]):h(this,function(n){return n.set(t,e)},[t])},w.push=function(){var t=arguments;return h(this,function(e){return e.push.apply(e,t)})},w.pop=function(){return h(this,function(t){return t.pop()})},w.unshift=function(){var t=arguments;return h(this,function(e){return e.unshift.apply(e,t)})},w.shift=function(){return h(this,function(t){return t.shift()})},w.setIn=x.setIn=_.prototype.setIn,x.remove=x["delete"]=w.remove=w["delete"]=function(t){return h(this,function(e){return e.remove(t)},[t])},w.removeIn=w.deleteIn=x.removeIn=x.deleteIn=_.prototype.deleteIn,x.clear=w.clear=function(){return h(this,function(t){return t.clear()})},w.update=x.update=function(t,e,n){return 1===arguments.length?h(this,t):this.updateIn([t],e,n)},w.updateIn=x.updateIn=function(t,e,n){return h(this,function(r){return r.updateIn(t,e,n)},t)},w.merge=x.merge=function(){var t=arguments;return h(this,function(e){return e.merge.apply(e,t)})},w.mergeWith=x.mergeWith=function(t){var e=arguments;return h(this,function(t){return t.mergeWith.apply(t,e)})},w.mergeIn=x.mergeIn=_.prototype.mergeIn,w.mergeDeep=x.mergeDeep=function(){var t=arguments;return h(this,function(e){return e.mergeDeep.apply(e,t)})},w.mergeDeepWith=x.mergeDeepWith=function(t){var e=arguments;return h(this,function(t){return t.mergeDeepWith.apply(t,e)})},w.mergeDeepIn=x.mergeDeepIn=_.prototype.mergeDeepIn,x.withMutations=w.withMutations=function(t){return h(this,function(e){return(e||_()).withMutations(t)})},x.cursor=w.cursor=function(t){return t=d(t),0===t.length?this:c(this,t)},x.__iterate=w.__iterate=function(t,e){var n=this,r=n.deref();return r&&r.__iterate?r.__iterate(function(e,r){return t(l(n,[r],e),r,n)},e):0},x.__iterator=w.__iterator=function(t,e){var n=this.deref(),r=this,i=n&&n.__iterator&&n.__iterator(g.ENTRIES,e);return new g(function(){if(!i)return{value:void 0,done:!0};var e=i.next();if(e.done)return e;var n=e.value,o=n[0],a=l(r,[o],n[1]);return{value:t===g.KEYS?o:t===g.VALUES?a:[o,a],done:!1}})},i.prototype=x,o.prototype=w;var S={};e.from=r},,function(t,e,n){function r(t,e){return null==e?t:i(e,o(e),t)}var i=n(497),o=n(272);t.exports=r},function(t,e){function n(t,e,n){n||(n={});for(var r=-1,i=e.length;++r-1&&t%1==0&&t<=h}var l=n(271),c=n(169),h=9007199254740991,p=a("length");t.exports=o},function(t,e){function n(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(n(o[u],u,o)===!1)break}return e}}var r=n();t.exports=r},function(t,e,n){function r(t){return!!t&&"object"==typeof t}function i(t,e){for(var n=-1,r=t.length;++nl))return!1;for(;++u2?n[a-2]:void 0,u=a>2?n[2]:void 0,l=a>1?n[a-1]:void 0;for("function"==typeof s?(s=i(s,l,5),a-=2):(s="function"==typeof l?l:void 0,a-=s?1:0),u&&o(n[0],n[1],u)&&(s=a<3?void 0:s,a=1);++r-1&&t%1==0&&t-1&&t%1==0&&t<=l}function s(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var u=/^\d+$/,l=9007199254740991,c=n("length");t.exports=o},function(t,e){function n(t,e){t=r(t);for(var n=-1,i=e.length,o={};++n-1&&t%1==0&&t<=o}function r(t){return!!t&&"object"==typeof t}function i(t){return r(t)&&n(t.length)&&!!P[O.call(t)]}var o=9007199254740991,a="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",h="[object Function]",p="[object Map]",f="[object Number]",d="[object Object]",v="[object RegExp]",m="[object Set]",g="[object String]",y="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",S="[object Int8Array]",k="[object Int16Array]",C="[object Int32Array]",E="[object Uint8Array]",M="[object Uint8ClampedArray]",T="[object Uint16Array]",D="[object Uint32Array]",P={};P[x]=P[w]=P[S]=P[k]=P[C]=P[E]=P[M]=P[T]=P[D]=!0,P[a]=P[s]=P[_]=P[u]=P[b]=P[l]=P[c]=P[h]=P[p]=P[f]=P[d]=P[v]=P[m]=P[g]=P[y]=!1;var A=Object.prototype,O=A.toString;t.exports=i},function(t,e,n){function r(t,e){return t="number"==typeof t||l.test(t)?+t:-1,e=null==e?p:e,t>-1&&t%1==0&&t-1&&t%1==0&&t<=p}function o(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function a(t){if(null==t)return[];o(t)||(t=Object(t));var e=t.length;e=e&&i(e)&&(u(t)||s(t))&&e||0;for(var n=t.constructor,a=-1,l="function"==typeof n&&n.prototype===t,c=Array(e),p=e>0;++ae?u(y,f):g=setTimeout(l,t)}function c(){u(x,g)}function h(){if(p=arguments,v=o(),m=this,y=x&&(g||!w),b===!1)var n=w&&!g;else{f||w||(_=v);var r=b-(v-_),i=r<=0||r>b;i?(f&&(f=clearTimeout(f)),_=v,d=t.apply(m,p)):f||(f=setTimeout(c,r))}return i&&g?g=clearTimeout(g):g||e===b||(g=setTimeout(l,e)),n&&(i=!0,d=t.apply(m,p)),!i||g||f||(p=m=void 0),d}var p,f,d,v,m,g,y,_=0,b=!1,x=!0;if("function"!=typeof t)throw new TypeError(a);if(e=e<0?0:+e||0,n===!0){var w=!0;x=!1}else i(n)&&(w=!!n.leading,b="maxWait"in n&&s(+n.maxWait||0,e),x="trailing"in n?!!n.trailing:x);return h.cancel=r,h}var i=n(31),o=n(509),a="Expected a function",s=Math.max;t.exports=r},function(t,e,n){(function(e){function r(t){var e=t?t.length:0;for(this.data={hash:s(null),set:new a};e--;)this.push(t[e])}var i=n(532),o=n(135),a=o(e,"Set"),s=o(Object,"create");r.prototype.push=i,t.exports=r}).call(e,n(190))},function(t,e){function n(t,e){for(var n=-1,r=t.length,i=Array(r);++n=s?a(e):null,p=e.length;h&&(l=o,c=!1,e=h);t:for(;++ui?0:i+n),r=void 0===r||r>i?i:+r||0,r<0&&(r+=i),i=n>r?0:r>>>0,n>>>=0;n=s,h=c?a():null,p=[];h?(r=o,l=!1):(c=!1,h=e?[]:p);t:for(;++nl))return!1;for(;++u1&&(r=n[0]+"@",t=n[1]),t=t.replace(A,".");var i=t.split("."),o=s(i,e).join(".");return r+o}function l(t){for(var e,n,r=[],i=0,o=t.length;i=55296&&e<=56319&&i65535&&(t-=65536,e+=L(t>>>10&1023|55296),t=56320|1023&t),e+=L(t)}).join("")}function h(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:x}function p(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function f(t,e,n){var r=0;for(t=n?R(t/C):t>>1,t+=R(t/e);t>I*S>>1;r+=x)t=R(t/I);return R(r+(I+1)*t/(t+k))}function d(t){var e,n,r,i,o,s,u,l,p,d,v=[],m=t.length,g=0,y=M,_=E;for(n=t.lastIndexOf(T),n<0&&(n=0),r=0;r=128&&a("not-basic"),v.push(t.charCodeAt(r));for(i=n>0?n+1:0;i=m&&a("invalid-input"),l=h(t.charCodeAt(i++)),(l>=x||l>R((b-g)/s))&&a("overflow"),g+=l*s,p=u<=_?w:u>=_+S?S:u-_,!(lR(b/d)&&a("overflow"),s*=d;e=v.length+1,_=f(g-o,e,0==o),R(g/e)>b-y&&a("overflow"),y+=R(g/e),g%=e,v.splice(g++,0,y)}return c(v)}function v(t){var e,n,r,i,o,s,u,c,h,d,v,m,g,y,_,k=[];for(t=l(t),m=t.length,e=M,n=0,o=E,s=0;s=e&&vR((b-n)/g)&&a("overflow"),n+=(u-e)*g,e=u,s=0;sb&&a("overflow"),v==e){for(c=n,h=x;d=h<=o?w:h>=o+S?S:h-o,!(c= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=x-w,R=Math.floor,L=String.fromCharCode;_={version:"1.4.1",ucs2:{decode:l,encode:c},decode:d,encode:v,toASCII:g,toUnicode:m},i=function(){return _}.call(e,n,e,t),!(void 0!==i&&(t.exports=i))}(this)}).call(e,n(332)(t),n(190))},function(t,e,n){"use strict";var r=n(374),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(t,e){for(var n={},r=t.split(e.delimiter,e.parameterLimit===1/0?void 0:e.parameterLimit),o=0;o=0&&n.parseArrays&&a<=n.arrayLimit?(r=[],r[a]=s(t,e,n)):r[o]=s(t,e,n)}return r},u=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,u=o.exec(r),l=u?r.slice(0,u.index):r,c=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var h=0;null!==(u=a.exec(r))&&h0&&l>u&&(l=u);for(var c=0;c=0?(h=v.substr(0,m),p=v.substr(m+1)):(h=v,p=""),f=decodeURIComponent(h),d=decodeURIComponent(p),n(a,f)?r(a[f])?a[f].push(d):a[f]=[a[f],d]:a[f]=d}return a};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e){"use strict";function n(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r8&&S<=11),E=32,M=String.fromCharCode(E),T=f.topLevelTypes,D={beforeInput:{phasedRegistrationNames:{bubbled:_({onBeforeInput:null}),captured:_({onBeforeInputCapture:null})},dependencies:[T.topCompositionEnd,T.topKeyPress,T.topTextInput,T.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:_({onCompositionEnd:null}),captured:_({onCompositionEndCapture:null})},dependencies:[T.topBlur,T.topCompositionEnd,T.topKeyDown,T.topKeyPress,T.topKeyUp,T.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:_({onCompositionStart:null}),captured:_({onCompositionStartCapture:null})},dependencies:[T.topBlur,T.topCompositionStart,T.topKeyDown,T.topKeyPress,T.topKeyUp,T.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:_({onCompositionUpdate:null}),captured:_({onCompositionUpdateCapture:null})},dependencies:[T.topBlur,T.topCompositionUpdate,T.topKeyDown,T.topKeyPress,T.topKeyUp,T.topMouseDown]}},P=!1,A=null,O={eventTypes:D,extractEvents:function(t,e,n,r,i){return[l(t,e,n,r,i),p(t,e,n,r,i)]}};t.exports=O},function(t,e,n){"use strict";var r=n(378),i=n(25),o=n(45),a=(n(890),n(881)),s=n(895),u=n(900),l=(n(11),u(function(t){return s(t)})),c=!1,h="cssFloat";if(i.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(f){c=!0}void 0===document.documentElement.style.cssFloat&&(h="styleFloat")}var d={createMarkupForStyles:function(t){var e="";for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];null!=r&&(e+=l(n)+":",e+=a(n,r)+";")}return e||null},setValueForStyles:function(t,e){var n=t.style;for(var i in e)if(e.hasOwnProperty(i)){var o=a(i,e[i]);if("float"===i&&(i=h),o)n[i]=o;else{var s=c&&r.shorthandPropertyExpansions[i];if(s)for(var u in s)n[u]="";else n[i]=""}}}};o.measureMethods(d,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),t.exports=d},function(t,e,n){"use strict";function r(t){var e=t.nodeName&&t.nodeName.toLowerCase();return"select"===e||"input"===e&&"file"===t.type}function i(t){var e=S.getPooled(D.change,A,t,k(t));b.accumulateTwoPhaseDispatches(e),w.batchedUpdates(o,e)}function o(t){_.enqueueEvents(t),_.processEventQueue(!1)}function a(t,e){P=t,A=e,P.attachEvent("onchange",i)}function s(){P&&(P.detachEvent("onchange",i),P=null,A=null)}function u(t,e,n){if(t===T.topChange)return n}function l(t,e,n){t===T.topFocus?(s(),a(e,n)):t===T.topBlur&&s()}function c(t,e){P=t,A=e,O=t.value,I=Object.getOwnPropertyDescriptor(t.constructor.prototype,"value"),Object.defineProperty(P,"value",N),P.attachEvent("onpropertychange",p)}function h(){P&&(delete P.value,P.detachEvent("onpropertychange",p),P=null,A=null,O=null,I=null)}function p(t){if("value"===t.propertyName){var e=t.srcElement.value;e!==O&&(O=e,i(t))}}function f(t,e,n){if(t===T.topInput)return n}function d(t,e,n){t===T.topFocus?(h(),c(e,n)):t===T.topBlur&&h()}function v(t,e,n){if((t===T.topSelectionChange||t===T.topKeyUp||t===T.topKeyDown)&&P&&P.value!==O)return O=P.value,A}function m(t){return t.nodeName&&"input"===t.nodeName.toLowerCase()&&("checkbox"===t.type||"radio"===t.type)}function g(t,e,n){if(t===T.topClick)return n}var y=n(58),_=n(137),b=n(138),x=n(25),w=n(38),S=n(93),k=n(291),C=n(294),E=n(405),M=n(51),T=y.topLevelTypes,D={change:{phasedRegistrationNames:{bubbled:M({onChange:null}),captured:M({onChangeCapture:null})},dependencies:[T.topBlur,T.topChange,T.topClick,T.topFocus,T.topInput,T.topKeyDown,T.topKeyUp,T.topSelectionChange]}},P=null,A=null,O=null,I=null,R=!1;x.canUseDOM&&(R=C("change")&&(!("documentMode"in document)||document.documentMode>8));var L=!1;x.canUseDOM&&(L=C("input")&&(!("documentMode"in document)||document.documentMode>9));var N={get:function(){return I.get.call(this)},set:function(t){O=""+t,I.set.call(this,t)}},j={eventTypes:D,extractEvents:function(t,e,n,i,o){var a,s;if(r(e)?R?a=u:s=l:E(e)?L?a=f:(a=v,s=d):m(e)&&(a=g),a){var c=a(t,e,n);if(c){var h=S.getPooled(D.change,c,i,o);return h.type="change",b.accumulateTwoPhaseDispatches(h),h}}s&&s(t,e,n)}};t.exports=j},function(t,e){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};t.exports=r},function(t,e,n){"use strict";function r(t){return t.substring(1,t.indexOf(" "))}var i=n(25),o=n(892),a=n(35),s=n(412),u=n(6),l=/^(<[^ \/>]+)/,c="data-danger-index",h={dangerouslyRenderMarkup:function(t){i.canUseDOM?void 0:u(!1);for(var e,n={},h=0;h1?1-e:void 0;return this._fallbackText=i.slice(t,s),this._fallbackText}}),i.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";var r,i=n(113),o=n(25),a=i.injection.MUST_USE_ATTRIBUTE,s=i.injection.MUST_USE_PROPERTY,u=i.injection.HAS_BOOLEAN_VALUE,l=i.injection.HAS_SIDE_EFFECTS,c=i.injection.HAS_NUMERIC_VALUE,h=i.injection.HAS_POSITIVE_NUMERIC_VALUE,p=i.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(o.canUseDOM){var f=document.implementation;r=f&&f.hasFeature&&f.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var d={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:a|u,allowTransparency:a,alt:null,async:u,autoComplete:null,autoPlay:u,capture:a|u,cellPadding:null,cellSpacing:null,charSet:a,challenge:a,checked:s|u,classID:a,className:r?a:s,cols:a|h,colSpan:null,content:null,contentEditable:null,contextMenu:a,controls:s|u,coords:null,crossOrigin:null,data:null,dateTime:a,"default":u,defer:u,dir:null,disabled:a|u,download:p,draggable:null,encType:null,form:a,formAction:a,formEncType:a,formMethod:a,formNoValidate:u,formTarget:a,frameBorder:a,headers:null,height:a,hidden:a|u,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,inputMode:a,integrity:null,is:a,keyParams:a,keyType:a,kind:null,label:null,lang:null,list:a,loop:s|u,low:null,manifest:a,marginHeight:null,marginWidth:null,max:null,maxLength:a,media:a,mediaGroup:null,method:null,min:null,minLength:a,multiple:s|u,muted:s|u,name:null,nonce:a,noValidate:u,open:u,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|u,rel:null,required:u,reversed:u,role:a,rows:a|h,rowSpan:null,sandbox:null,scope:null,scoped:u,scrolling:null,seamless:a|u,selected:s|u,shape:null,size:a|h,sizes:a,span:h,spellCheck:null,src:null,srcDoc:s,srcLang:null,srcSet:a,start:c,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|l,width:a,wmode:a,wrap:null,about:a,datatype:a,inlist:a,prefix:a,property:a,resource:a,"typeof":a,vocab:a,autoCapitalize:a,autoCorrect:a,autoSave:null,color:null,itemProp:a,itemScope:a|u,itemType:a,itemID:a,itemRef:a,results:null,security:a,unselectable:a},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};t.exports=d},function(t,e,n){"use strict";var r=n(854),i=n(863),o={linkState:function(t){return new r(this.state[t],i.createStateKeySetter(this,t))}};t.exports=o},function(t,e,n){"use strict";var r=(n(139),n(288)),i=(n(11),"_getDOMNodeDidWarn"),o={getDOMNode:function(){return this.constructor[i]=!0,r(this)}};t.exports=o},function(t,e,n){"use strict";function r(t){var e="transition"+t+"Timeout",n="transition"+t;return function(t){if(t[n]){if(null==t[e])return new Error(e+" wasn't supplied to ReactCSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof t[e])return new Error(e+" must be a number (in milliseconds)")}}}var i=n(114),o=n(10),a=n(399),s=n(837),u=i.createClass({displayName:"ReactCSSTransitionGroup",propTypes:{transitionName:s.propTypes.name,transitionAppear:i.PropTypes.bool,transitionEnter:i.PropTypes.bool,transitionLeave:i.PropTypes.bool,transitionAppearTimeout:r("Appear"),transitionEnterTimeout:r("Enter"),transitionLeaveTimeout:r("Leave")},getDefaultProps:function(){return{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0}},_wrapChild:function(t){return i.createElement(s,{name:this.props.transitionName,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave,appearTimeout:this.props.transitionAppearTimeout,enterTimeout:this.props.transitionEnterTimeout,leaveTimeout:this.props.transitionLeaveTimeout},t)},render:function(){return i.createElement(a,o({},this.props,{childFactory:this._wrapChild}))}});t.exports=u},function(t,e,n){"use strict";var r=n(114),i=n(284),o=n(888),a=n(865),s=n(406),u=17,l=r.createClass({displayName:"ReactCSSTransitionGroupChild",propTypes:{name:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.shape({enter:r.PropTypes.string,leave:r.PropTypes.string,active:r.PropTypes.string}),r.PropTypes.shape({enter:r.PropTypes.string,enterActive:r.PropTypes.string,leave:r.PropTypes.string,leaveActive:r.PropTypes.string,appear:r.PropTypes.string,appearActive:r.PropTypes.string})]).isRequired,appear:r.PropTypes.bool,enter:r.PropTypes.bool,leave:r.PropTypes.bool,appearTimeout:r.PropTypes.number,enterTimeout:r.PropTypes.number,leaveTimeout:r.PropTypes.number},transition:function(t,e,n){var r=i.findDOMNode(this);if(!r)return void(e&&e());var s=this.props.name[t]||this.props.name+"-"+t,u=this.props.name[t+"Active"]||s+"-active",l=null,c=function(t){t&&t.target!==r||(clearTimeout(l),o.removeClass(r,s),o.removeClass(r,u),a.removeEndEventListener(r,c),e&&e())};o.addClass(r,s),this.queueClass(u),n?(l=setTimeout(c,n),this.transitionTimeouts.push(l)):a.addEndEventListener(r,c)},queueClass:function(t){this.classNameQueue.push(t),this.timeout||(this.timeout=setTimeout(this.flushClassNameQueue,u))},flushClassNameQueue:function(){this.isMounted()&&this.classNameQueue.forEach(o.addClass.bind(o,i.findDOMNode(this))),this.classNameQueue.length=0,this.timeout=null},componentWillMount:function(){this.classNameQueue=[],this.transitionTimeouts=[]},componentWillUnmount:function(){this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(t){clearTimeout(t)})},componentWillAppear:function(t){this.props.appear?this.transition("appear",t,this.props.appearTimeout):t()},componentWillEnter:function(t){this.props.enter?this.transition("enter",t,this.props.enterTimeout):t()},componentWillLeave:function(t){this.props.leave?this.transition("leave",t,this.props.leaveTimeout):t()},render:function(){return s(this.props.children)}});t.exports=l},function(t,e,n){"use strict";function r(t,e,n){var r=void 0===t[n];null!=e&&r&&(t[n]=o(e,null))}var i=n(92),o=n(293),a=n(296),s=n(297),u=(n(11),{instantiateChildren:function(t,e,n){if(null==t)return null;var i={};return s(t,r,i),i},updateChildren:function(t,e,n,r){if(!e&&!t)return null;var s;for(s in e)if(e.hasOwnProperty(s)){var u=t&&t[s],l=u&&u._currentElement,c=e[s];if(null!=u&&a(l,c))i.receiveComponent(u,c,n,r),e[s]=u;else{u&&i.unmountComponent(u,s);var h=o(c,null);e[s]=h}}for(s in t)!t.hasOwnProperty(s)||e&&e.hasOwnProperty(s)||i.unmountComponent(t[s]);return e},unmountChildren:function(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];i.unmountComponent(n)}}});t.exports=u},function(t,e,n){"use strict";var r=n(407),i={shouldComponentUpdate:function(t,e){return r(this,t,e)}};t.exports=i},function(t,e,n){"use strict";function r(t){var e=t._currentElement._owner||null;if(e){var n=e.getName();if(n)return" Check the render method of `"+n+"`."}return""}function i(t){}var o=n(283),a=n(59),s=n(28),u=n(139),l=n(45),c=n(175),h=(n(174),n(92)),p=n(286),f=n(10),d=n(141),v=n(6),m=n(296);n(11);i.prototype.render=function(){var t=u.get(this)._currentElement.type;return t(this.props,this.context,this.updater)};var g=1,y={construct:function(t){this._currentElement=t,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(t,e,n){this._context=n,this._mountOrder=g++,this._rootNodeID=t;var r,o,a=this._processProps(this._currentElement.props),l=this._processContext(n),c=this._currentElement.type,f="prototype"in c;f&&(r=new c(a,l,p)),f&&null!==r&&r!==!1&&!s.isValidElement(r)||(o=r,r=new i(c)),r.props=a,r.context=l,r.refs=d,r.updater=p,this._instance=r,u.set(r,this);var m=r.state;void 0===m&&(r.state=m=null),"object"!=typeof m||Array.isArray(m)?v(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,r.componentWillMount&&(r.componentWillMount(),this._pendingStateQueue&&(r.state=this._processPendingState(r.props,r.context))),void 0===o&&(o=this._renderValidatedComponent()),this._renderedComponent=this._instantiateReactComponent(o);var y=h.mountComponent(this._renderedComponent,t,e,this._processChildContext(n));return r.componentDidMount&&e.getReactMountReady().enqueue(r.componentDidMount,r),y},unmountComponent:function(){var t=this._instance;t.componentWillUnmount&&t.componentWillUnmount(),h.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._instance=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,u.remove(t)},_maskContext:function(t){var e=null,n=this._currentElement.type,r=n.contextTypes;if(!r)return d;e={};for(var i in r)e[i]=t[i];return e},_processContext:function(t){var e=this._maskContext(t);return e},_processChildContext:function(t){var e=this._currentElement.type,n=this._instance,r=n.getChildContext&&n.getChildContext();if(r){"object"!=typeof e.childContextTypes?v(!1):void 0;for(var i in r)i in e.childContextTypes?void 0:v(!1);return f({},t,r)}return t},_processProps:function(t){return t},_checkPropTypes:function(t,e,n){var i=this.getName();for(var o in t)if(t.hasOwnProperty(o)){var a;try{"function"!=typeof t[o]?v(!1):void 0,a=t[o](e,o,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}if(a instanceof Error){r(this);n===c.prop}}},receiveComponent:function(t,e,n){var r=this._currentElement,i=this._context;this._pendingElement=null,this.updateComponent(e,r,t,i,n)},performUpdateIfNecessary:function(t){null!=this._pendingElement&&h.receiveComponent(this,this._pendingElement||this._currentElement,t,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(t,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(t,e,n,r,i){var o,a=this._instance,s=this._context===i?a.context:this._processContext(i);e===n?o=n.props:(o=this._processProps(n.props),a.componentWillReceiveProps&&a.componentWillReceiveProps(o,s));var u=this._processPendingState(o,s),l=this._pendingForceUpdate||!a.shouldComponentUpdate||a.shouldComponentUpdate(o,u,s);l?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,o,u,s,t,i)):(this._currentElement=n,this._context=i,a.props=o,a.state=u,a.context=s)},_processPendingState:function(t,e){var n=this._instance,r=this._pendingStateQueue,i=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(i&&1===r.length)return r[0];for(var o=f({},i?r[0]:n.state),a=i?1:0;a=0||null!=e.is}function m(t){d(t),this._tag=t.toLowerCase(),this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null}var g=n(823),y=n(825),_=n(113),b=n(279),x=n(58),w=n(173),S=n(282),k=n(841),C=n(844),E=n(845),M=n(384),T=n(848),D=n(32),P=n(855),A=n(45),O=n(286),I=n(10),R=n(178),L=n(179),N=n(6),j=(n(294),n(51)),U=n(180),z=n(295),F=(n(299),n(298),n(11),w.deleteListener),B=w.listenTo,W=w.registrationNameModules,Y={string:!0,number:!0},H=j({children:null}),V=j({style:null}),G=j({__html:null}),q=1,X={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},K={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},$={listing:!0,pre:!0,textarea:!0},Z=(I({menuitem:!0},K),/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/),Q={},J={}.hasOwnProperty;m.displayName="ReactDOMComponent",m.Mixin={construct:function(t){this._currentElement=t},mountComponent:function(t,e,n){this._rootNodeID=t;var r=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(h,this);break;case"button":r=k.getNativeProps(this,r,n);break;case"input":C.mountWrapper(this,r,n),r=C.getNativeProps(this,r,n);break;case"option":E.mountWrapper(this,r,n),r=E.getNativeProps(this,r,n);break;case"select":M.mountWrapper(this,r,n),r=M.getNativeProps(this,r,n),n=M.processChildContext(this,r,n);break;case"textarea":T.mountWrapper(this,r,n),r=T.getNativeProps(this,r,n)}u(this,r);var i;if(e.useCreateElement){var o=n[D.ownerDocumentContextKey],a=o.createElement(this._currentElement.type);b.setAttributeForID(a,this._rootNodeID),D.getID(a),this._updateDOMProperties({},r,e,a),this._createInitialChildren(e,r,n,a),i=a}else{var s=this._createOpenTagMarkupAndPutListeners(e,r),l=this._createContentMarkup(e,r,n);i=!l&&K[this._tag]?s+"/>":s+">"+l+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(p,this);case"button":case"select":case"textarea":r.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this)}return i},_createOpenTagMarkupAndPutListeners:function(t,e){var n="<"+this._currentElement.type;for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(null!=i)if(W.hasOwnProperty(r))i&&l(this._rootNodeID,r,i,t);else{r===V&&(i&&(i=this._previousStyleCopy=I({},e.style)),i=y.createMarkupForStyles(i));var o=null;null!=this._tag&&v(this._tag,e)?r!==H&&(o=b.createMarkupForCustomAttribute(r,i)):o=b.createMarkupForProperty(r,i),o&&(n+=" "+o)}}if(t.renderToStaticMarkup)return n;var a=b.createMarkupForID(this._rootNodeID);return n+" "+a},_createContentMarkup:function(t,e,n){var r="",i=e.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&(r=i.__html);else{var o=Y[typeof e.children]?e.children:null,a=null!=o?null:e.children;if(null!=o)r=L(o);else if(null!=a){var s=this.mountChildren(a,t,n);r=s.join("")}}return $[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(t,e,n,r){var i=e.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&U(r,i.__html);else{var o=Y[typeof e.children]?e.children:null,a=null!=o?null:e.children;if(null!=o)z(r,o);else if(null!=a)for(var s=this.mountChildren(a,t,n),u=0;ue.end?(n=e.end,r=e.start):(n=e.start,r=e.end),i.moveToElementText(t),i.moveStart("character",n),i.setEndPoint("EndToStart",i),i.moveEnd("character",r-n),i.select()}function s(t,e){if(window.getSelection){var n=window.getSelection(),r=t[c()].length,i=Math.min(e.start,r),o="undefined"==typeof e.end?i:Math.min(e.end,r);if(!n.extend&&i>o){var a=o;o=i,i=a}var s=l(t,i),u=l(t,o);if(s&&u){var h=document.createRange();h.setStart(s.node,s.offset),n.removeAllRanges(),i>o?(n.addRange(h),n.extend(u.node,u.offset)):(h.setEnd(u.node,u.offset),n.addRange(h))}}}var u=n(25),l=n(884),c=n(404),h=u.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:h?i:o,setOffsets:h?a:s};t.exports=p},function(t,e,n){"use strict";var r=n(387),i=n(861),o=n(287);r.inject();var a={renderToString:i.renderToString,renderToStaticMarkup:i.renderToStaticMarkup,version:o};t.exports=a},function(t,e,n){"use strict";function r(){this._rootNodeID&&c.updateWrapper(this)}function i(t){var e=this._currentElement.props,n=o.executeOnChange(e,t);return s.asap(r,this),n}var o=n(280),a=n(285),s=n(38),u=n(10),l=n(6),c=(n(11),{getNativeProps:function(t,e,n){null!=e.dangerouslySetInnerHTML?l(!1):void 0;var r=u({},e,{defaultValue:void 0,value:void 0,children:t._wrapperState.initialValue,onChange:t._wrapperState.onChange});return r},mountWrapper:function(t,e){var n=e.defaultValue,r=e.children;null!=r&&(null!=n?l(!1):void 0,Array.isArray(r)&&(r.length<=1?void 0:l(!1),r=r[0]),n=""+r),null==n&&(n="");var a=o.getValue(e);t._wrapperState={initialValue:""+(null!=a?a:n),onChange:i.bind(t)}},updateWrapper:function(t){var e=t._currentElement.props,n=o.getValue(e);null!=n&&a.updatePropertyByID(t._rootNodeID,"value",""+n)}});t.exports=c},function(t,e,n){"use strict";function r(t){i.enqueueEvents(t),i.processEventQueue(!1)}var i=n(137),o={handleTopLevel:function(t,e,n,o,a){var s=i.extractEvents(t,e,n,o,a);r(s)}};t.exports=o},function(t,e,n){"use strict";function r(t){var e=p.getID(t),n=h.getReactRootIDFromNodeID(e),r=p.findReactContainerForID(n),i=p.getFirstReactDOM(r);return i}function i(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function o(t){a(t)}function a(t){for(var e=p.getFirstReactDOM(v(t.nativeEvent))||window,n=e;n;)t.ancestors.push(n),n=r(n);for(var i=0;i=e)return{node:i,offset:e-o};o=a}i=n(r(i))}}t.exports=i},function(t,e,n){"use strict";function r(t){return'"'+i(t)+'"'}var i=n(179);t.exports=r},function(t,e,n){"use strict";var r=n(32);t.exports=r.renderSubtreeIntoContainer},function(t,e,n){"use strict";function r(t){return Array.isArray(t)?t.concat():t&&"object"==typeof t?a(new t.constructor,t):t}function i(t,e,n){Array.isArray(t)?void 0:u(!1);var r=e[n];Array.isArray(r)?void 0:u(!1)}function o(t,e){if("object"!=typeof e?u(!1):void 0,l.call(e,f))return 1!==Object.keys(e).length?u(!1):void 0,e[f];var n=r(t);if(l.call(e,d)){var s=e[d];s&&"object"==typeof s?void 0:u(!1),n&&"object"==typeof n?void 0:u(!1),a(n,e[d])}l.call(e,c)&&(i(t,e,c),e[c].forEach(function(t){n.push(t)})),l.call(e,h)&&(i(t,e,h),e[h].forEach(function(t){n.unshift(t)})),l.call(e,p)&&(Array.isArray(t)?void 0:u(!1),Array.isArray(e[p])?void 0:u(!1),e[p].forEach(function(t){Array.isArray(t)?void 0:u(!1),n.splice.apply(n,t)})),l.call(e,v)&&("function"!=typeof e[v]?u(!1):void 0,n=e[v](n));for(var m in e)g.hasOwnProperty(m)&&g[m]||(n[m]=o(t[m],e[m]));return n}var a=n(10),s=n(51),u=n(6),l={}.hasOwnProperty,c=s({$push:null}),h=s({$unshift:null}),p=s({$splice:null}),f=s({$set:null}),d=s({$merge:null}),v=s({$apply:null}),m=[c,h,p,f,d,v],g={};m.forEach(function(t){g[t]=!0}),t.exports=o},function(t,e,n){"use strict";var r=n(6),i={addClass:function(t,e){return/\s/.test(e)?r(!1):void 0,e&&(t.classList?t.classList.add(e):i.hasClass(t,e)||(t.className=t.className+" "+e)),t},removeClass:function(t,e){return/\s/.test(e)?r(!1):void 0,e&&(t.classList?t.classList.remove(e):i.hasClass(t,e)&&(t.className=t.className.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,""))),t},conditionClass:function(t,e,n){return(n?i.addClass:i.removeClass)(t,e)},hasClass:function(t,e){return/\s/.test(e)?r(!1):void 0,t.classList?!!e&&t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1}};t.exports=i},function(t,e){"use strict";function n(t){return t.replace(r,function(t,e){return e.toUpperCase()})}var r=/-(.)/g;t.exports=n},function(t,e,n){"use strict";function r(t){return i(t.replace(o,"ms-"))}var i=n(889),o=/^-ms-/;t.exports=r},function(t,e,n){"use strict";function r(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}function i(t){return r(t)?Array.isArray(t)?t.slice():o(t):[t]}var o=n(901);t.exports=i},function(t,e,n){"use strict";function r(t){var e=t.match(c);return e&&e[1].toLowerCase()}function i(t,e){var n=l;l?void 0:u(!1);var i=r(t),o=i&&s(i);if(o){n.innerHTML=o[1]+t+o[2];for(var c=o[0];c--;)n=n.lastChild}else n.innerHTML=t;var h=n.getElementsByTagName("script");h.length&&(e?void 0:u(!1),a(h).forEach(e));for(var p=a(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return p}var o=n(25),a=n(891),s=n(412),u=n(6),l=o.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;t.exports=i},function(t,e){"use strict";function n(t){return t===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}t.exports=n},function(t,e){"use strict";function n(t){return t.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;t.exports=n},function(t,e,n){"use strict";function r(t){return i(t).replace(o,"-ms-")}var i=n(894),o=/^ms-/;t.exports=r},function(t,e){"use strict";function n(t){return!(!t||!("function"==typeof Node?t instanceof Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=n},function(t,e,n){"use strict";function r(t){return i(t)&&3==t.nodeType}var i=n(896);t.exports=r},function(t,e){"use strict";function n(t){t||(t="");var e,n=arguments.length;if(n>1)for(var r=1;rc;)if(i=o[c++],i!=i)return!0}else for(;l>c;c++)if((t||c in o)&&o[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n,r){var i=n(r);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,n,r){t.exports=!n(r)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n,r,i){var o=n(r),a=n(i).document,s=o(a)&&o(a.createElement);t.exports=function(t){return s?a.createElement(t):{}}},function(t,e,n,r,i,o){var a=n(r),s=n(i);t.exports=n(o)?function(t,e,n){return a.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n,r,i,o){t.exports=!n(r)&&!n(i)(function(){return 7!=Object.defineProperty(n(o)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n,r){var i=n(r);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n,r,i,o,a){var s=n(r),u=n(i),l=n(o),c=Object.defineProperty;e.f=n(a)?Object.defineProperty:function(t,e,n){if(s(t),e=l(e,!0),s(n),u)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n,r,i,o,a){var s=n(r),u=n(i),l=n(o)(!1),c=n(a)("IE_PROTO");t.exports=function(t,e){var n,r=u(t),i=0,o=[];for(n in r)n!=c&&s(r,n)&&o.push(n);for(;e.length>i;)s(r,n=e[i++])&&(~l(o,n)||o.push(n));return o}},function(t,e,n,r,i){var o=n(r),a=n(i);t.exports=Object.keys||function(t){return o(t,a)}},function(t,e,n,r,i){var o=n(r)("keys"),a=n(i);t.exports=function(t){return o[t]||(o[t]=a(t))}},function(t,e,n,r){var i=n(r),o="__core-js_shared__",a=i[o]||(i[o]={});t.exports=function(t){return a[t]||(a[t]={})}},function(t,e,n,r){var i=n(r),o=Math.max,a=Math.min;t.exports=function(t,e){return t=i(t),t<0?o(t+e,0):a(t,e)}},function(t,e,n,r,i){var o=n(r),a=n(i);t.exports=function(t){return o(a(t))}},function(t,e,n,r){var i=n(r),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},function(t,e,n,r){var i=n(r);t.exports=function(t){return Object(i(t))}},function(t,e,n,r){var i=n(r);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}}]))); //# sourceMappingURL=vendor-57f651cab805174e77fc.js.map