index-setting.js
329 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
!function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="/homepagemobile/",e(0)}([function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var r=i(1),o=n(r),a=i(2),s=n(a),l=i(3);i(66),i(203);var c=i(204),u=n(c);s.default.render(o.default.createElement(l.Router,{history:l.hashHistory},o.default.createElement(l.Route,{path:"/hp/:hpid-:subCompanyId",component:u.default})),document.getElementById("portal-container"))},function(t,e){t.exports=React},function(t,e){t.exports=ReactDOM},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.createMemoryHistory=e.hashHistory=e.browserHistory=e.applyRouterMiddleware=e.formatPattern=e.useRouterHistory=e.match=e.routerShape=e.locationShape=e.PropTypes=e.RoutingContext=e.RouterContext=e.createRoutes=e.useRoutes=e.RouteContext=e.Lifecycle=e.History=e.Route=e.Redirect=e.IndexRoute=e.IndexRedirect=e.withRouter=e.IndexLink=e.Link=e.Router=void 0;var r=i(4);Object.defineProperty(e,"createRoutes",{enumerable:!0,get:function(){return r.createRoutes}});var o=i(5);Object.defineProperty(e,"locationShape",{enumerable:!0,get:function(){return o.locationShape}}),Object.defineProperty(e,"routerShape",{enumerable:!0,get:function(){return o.routerShape}});var a=i(10);Object.defineProperty(e,"formatPattern",{enumerable:!0,get:function(){return a.formatPattern}});var s=i(12),l=n(s),c=i(43),u=n(c),h=i(44),d=n(h),f=i(45),p=n(f),g=i(47),m=n(g),v=i(49),y=n(v),b=i(48),x=n(b),w=i(50),S=n(w),k=i(51),T=n(k),O=i(52),P=n(O),C=i(53),M=n(C),_=i(54),E=n(_),A=i(40),L=n(A),I=i(55),R=n(I),D=n(o),j=i(56),N=n(j),B=i(60),H=n(B),z=i(61),W=n(z),X=i(62),F=n(X),Y=i(65),G=n(Y),U=i(57),q=n(U);e.Router=l.default,e.Link=u.default,e.IndexLink=d.default,e.withRouter=p.default,e.IndexRedirect=m.default,e.IndexRoute=y.default,e.Redirect=x.default,e.Route=S.default,e.History=T.default,e.Lifecycle=P.default,e.RouteContext=M.default,e.useRoutes=E.default,e.RouterContext=L.default,e.RoutingContext=R.default,e.PropTypes=D.default,e.match=N.default,e.useRouterHistory=H.default,e.applyRouterMiddleware=W.default,e.browserHistory=F.default,e.hashHistory=G.default,e.createMemoryHistory=q.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){return null==t||d.default.isValidElement(t)}function o(t){return r(t)||Array.isArray(t)&&t.every(r)}function a(t,e){return u({},t,e)}function s(t){var e=t.type,i=a(e.defaultProps,t.props);if(i.children){var n=l(i.children,i);n.length&&(i.childRoutes=n),delete i.children}return i}function l(t,e){var i=[];return d.default.Children.forEach(t,function(t){if(d.default.isValidElement(t))if(t.type.createRouteFromReactElement){var n=t.type.createRouteFromReactElement(t,e);n&&i.push(n)}else i.push(s(t))}),i}function c(t){return o(t)?t=l(t):t&&!Array.isArray(t)&&(t=[t]),t}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};e.isReactChildren=o,e.createRouteFromReactElement=s,e.createRoutesFromReactChildren=l,e.createRoutes=c;var h=i(1),d=n(h)},function(t,e,i){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.router=e.routes=e.route=e.components=e.component=e.location=e.history=e.falsy=e.locationShape=e.routerShape=void 0;var o=i(1),a=i(6),s=(r(a),i(9)),l=n(s),c=i(7),u=(r(c),o.PropTypes.func),h=o.PropTypes.object,d=o.PropTypes.shape,f=o.PropTypes.string,p=e.routerShape=d({push:u.isRequired,replace:u.isRequired,go:u.isRequired,goBack:u.isRequired,goForward:u.isRequired,setRouteLeaveHook:u.isRequired,isActive:u.isRequired}),g=e.locationShape=d({pathname:f.isRequired,search:f.isRequired,state:h,action:f.isRequired,key:f}),m=e.falsy=l.falsy,v=e.history=l.history,y=e.location=g,b=e.component=l.component,x=e.components=l.components,w=e.route=l.route,S=(e.routes=l.routes,e.router=p),k={falsy:m,history:v,location:y,component:b,components:x,route:w,router:S};e.default=k},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.canUseMembrane=void 0;var r=i(7),o=(n(r),e.canUseMembrane=!1,function(t){return t});e.default=o},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(e.indexOf("deprecated")!==-1){if(l[e])return;l[e]=!0}e="[react-router] "+e;for(var i=arguments.length,n=Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];s.default.apply(void 0,[t,e].concat(n))}function o(){l={}}e.__esModule=!0,e.default=r,e._resetWarned=o;var a=i(8),s=n(a),l={}},function(t,e,i){"use strict";var n=function(){};t.exports=n},function(t,e,i){"use strict";function n(t,e,i){if(t[e])return new Error("<"+i+'> should not have a "'+e+'" prop')}e.__esModule=!0,e.routes=e.route=e.components=e.component=e.history=void 0,e.falsy=n;var r=i(1),o=r.PropTypes.func,a=r.PropTypes.object,s=r.PropTypes.arrayOf,l=r.PropTypes.oneOfType,c=r.PropTypes.element,u=r.PropTypes.shape,h=r.PropTypes.string,d=(e.history=u({listen:o.isRequired,push:o.isRequired,replace:o.isRequired,go:o.isRequired,goBack:o.isRequired,goForward:o.isRequired}),e.component=l([o,h])),f=(e.components=l([d,a]),e.route=l([a,c]));e.routes=l([f,s(f)])},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function o(t){for(var e="",i=[],n=[],o=void 0,a=0,s=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;o=s.exec(t);)o.index!==a&&(n.push(t.slice(a,o.index)),e+=r(t.slice(a,o.index))),o[1]?(e+="([^/]+)",i.push(o[1])):"**"===o[0]?(e+="(.*)",i.push("splat")):"*"===o[0]?(e+="(.*?)",i.push("splat")):"("===o[0]?e+="(?:":")"===o[0]&&(e+=")?"),n.push(o[0]),a=s.lastIndex;return a!==t.length&&(n.push(t.slice(a,t.length)),e+=r(t.slice(a,t.length))),{pattern:t,regexpSource:e,paramNames:i,tokens:n}}function a(t){return f[t]||(f[t]=o(t)),f[t]}function s(t,e){"/"!==t.charAt(0)&&(t="/"+t);var i=a(t),n=i.regexpSource,r=i.paramNames,o=i.tokens;"/"!==t.charAt(t.length-1)&&(n+="/?"),"*"===o[o.length-1]&&(n+="$");var s=e.match(new RegExp("^"+n,"i"));if(null==s)return null;var l=s[0],c=e.substr(l.length);if(c){if("/"!==l.charAt(l.length-1))return null;c="/"+c}return{remainingPathname:c,paramNames:r,paramValues:s.slice(1).map(function(t){return t&&decodeURIComponent(t)})}}function l(t){return a(t).paramNames}function c(t,e){var i=s(t,e);if(!i)return null;var n=i.paramNames,r=i.paramValues,o={};return n.forEach(function(t,e){o[t]=r[e]}),o}function u(t,e){e=e||{};for(var i=a(t),n=i.tokens,r=0,o="",s=0,l=void 0,c=void 0,u=void 0,h=0,f=n.length;h<f;++h)l=n[h],"*"===l||"**"===l?(u=Array.isArray(e.splat)?e.splat[s++]:e.splat,null!=u||r>0?void 0:(0,d.default)(!1),null!=u&&(o+=encodeURI(u))):"("===l?r+=1:")"===l?r-=1:":"===l.charAt(0)?(c=l.substring(1),u=e[c],null!=u||r>0?void 0:(0,d.default)(!1),null!=u&&(o+=encodeURIComponent(u))):o+=l;return o.replace(/\/+/g,"/")}e.__esModule=!0,e.compilePattern=a,e.matchPattern=s,e.getParamNames=l,e.getParams=c,e.formatPattern=u;var h=i(11),d=n(h),f=Object.create(null)},function(t,e,i){"use strict";var n=function(t,e,i,n,r,o,a,s){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[i,n,r,o,a,s],u=0;l=new Error(e.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};t.exports=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var i={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i}function o(t){return!t||!t.__v2_compatible__}function a(t){return t&&t.getCurrentLocation}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},l=i(13),c=n(l),u=i(28),h=n(u),d=i(11),f=n(d),p=i(1),g=n(p),m=i(32),v=n(m),y=i(9),b=i(40),x=n(b),w=i(4),S=i(42),k=i(7),T=(n(k),g.default.PropTypes),O=T.func,P=T.object,C=g.default.createClass({displayName:"Router",propTypes:{history:P,children:y.routes,routes:y.routes,render:O,createElement:O,onError:O,onUpdate:O,parseQueryString:O,stringifyQuery:O,matchContext:P},getDefaultProps:function(){return{render:function(t){return g.default.createElement(x.default,t)}}},getInitialState:function(){return{location:null,routes:null,params:null,components:null}},handleError:function(t){if(!this.props.onError)throw t;this.props.onError.call(this,t)},componentWillMount:function(){var t=this,e=this.props,i=(e.parseQueryString,e.stringifyQuery,this.createRouterObjects()),n=i.history,r=i.transitionManager,o=i.router;this._unlisten=r.listen(function(e,i){e?t.handleError(e):t.setState(i,t.props.onUpdate)}),this.history=n,this.router=o},createRouterObjects:function(){var t=this.props.matchContext;if(t)return t;var e=this.props.history,i=this.props,n=i.routes,r=i.children;a(e)?(0,f.default)(!1):void 0,o(e)&&(e=this.wrapDeprecatedHistory(e));var s=(0,v.default)(e,(0,w.createRoutes)(n||r)),l=(0,S.createRouterObject)(e,s),c=(0,S.createRoutingHistory)(e,s);return{history:c,transitionManager:s,router:l}},wrapDeprecatedHistory:function(t){var e=this.props,i=e.parseQueryString,n=e.stringifyQuery,r=void 0;return r=t?function(){return t}:c.default,(0,h.default)(r)({parseQueryString:i,stringifyQuery:n})},componentWillReceiveProps:function(t){},componentWillUnmount:function(){this._unlisten&&this._unlisten()},render:function t(){var e=this.state,i=e.location,n=e.routes,o=e.params,a=e.components,l=this.props,c=l.createElement,t=l.render,u=r(l,["createElement","render"]);return null==i?null:(Object.keys(C.propTypes).forEach(function(t){return delete u[t]}),t(s({},u,{history:this.history,router:this.router,location:i,routes:n,params:o,components:a,createElement:c})))}});e.default=C,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){return"string"==typeof t&&"/"===t.charAt(0)}function o(){var t=v.getHashPath();return!!r(t)||(v.replaceHashPath("/"+t),!1)}function a(t,e,i){return t+(t.indexOf("?")===-1?"?":"&")+(e+"="+i)}function s(t,e){return t.replace(new RegExp("[?&]?"+e+"=[a-zA-Z0-9]+"),"")}function l(t,e){var i=t.match(new RegExp("\\?.*?\\b"+e+"=(.+?)\\b"));return i&&i[1]}function c(){function t(){var t=v.getHashPath(),e=void 0,i=void 0;C?(e=l(t,C),t=s(t,C),e?i=y.readState(e):(i=null,e=M.createKey(),v.replaceHashPath(a(t,C,e)))):e=i=null;var n=g.parsePath(t);return M.createLocation(u({},n,{state:i}),void 0,e)}function e(e){function i(){o()&&n(t())}var n=e.transitionTo;return o(),v.addEventListener(window,"hashchange",i),function(){v.removeEventListener(window,"hashchange",i)}}function i(t){var e=t.basename,i=t.pathname,n=t.search,r=t.state,o=t.action,s=t.key;if(o!==p.POP){var l=(e||"")+i+n;C?(l=a(l,C,s),y.saveState(s,r)):t.key=t.state=null;var c=v.getHashPath();o===p.PUSH?c!==l&&(window.location.hash=l):c!==l&&v.replaceHashPath(l)}}function n(t){1===++_&&(E=e(M));var i=M.listenBefore(t);return function(){i(),0===--_&&E()}}function r(t){1===++_&&(E=e(M));var i=M.listen(t);return function(){i(),0===--_&&E()}}function c(t){M.push(t)}function h(t){M.replace(t)}function d(t){M.go(t)}function b(t){return"#"+M.createHref(t)}function S(t){1===++_&&(E=e(M)),M.registerTransitionHook(t)}function k(t){M.unregisterTransitionHook(t),0===--_&&E()}function T(t,e){M.pushState(t,e)}function O(t,e){M.replaceState(t,e)}var P=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];m.canUseDOM?void 0:f.default(!1);var C=P.queryKey;(void 0===C||C)&&(C="string"==typeof C?C:w);var M=x.default(u({},P,{getCurrentLocation:t,finishTransition:i,saveState:y.saveState})),_=0,E=void 0;v.supportsGoWithoutReloadUsingHash();return u({},M,{listenBefore:n,listen:r,push:c,replace:h,go:d,createHref:b,registerTransitionHook:S,unregisterTransitionHook:k,pushState:T,replaceState:O})}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},h=i(8),d=(n(h),i(11)),f=n(d),p=i(14),g=i(15),m=i(16),v=i(17),y=i(18),b=i(19),x=n(b),w="_k";e.default=c,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var i="PUSH";e.PUSH=i;var n="REPLACE";e.REPLACE=n;var r="POP";e.POP=r,e.default={PUSH:i,REPLACE:n,POP:r}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){var e=t.match(/^https?:\/\/[^\/]*/);return null==e?t:t.substring(e[0].length)}function o(t){var e=r(t),i="",n="",o=e.indexOf("#");o!==-1&&(n=e.substring(o),e=e.substring(0,o));var a=e.indexOf("?");return a!==-1&&(i=e.substring(a),e=e.substring(0,a)),""===e&&(e="/"),{pathname:e,search:i,hash:n}}e.__esModule=!0,e.extractPath=r,e.parsePath=o;var a=i(8);n(a)},function(t,e){"use strict";e.__esModule=!0;var i=!("undefined"==typeof window||!window.document||!window.document.createElement);e.canUseDOM=i},function(t,e){"use strict";function i(t,e,i){t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent("on"+e,i)}function n(t,e,i){t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent("on"+e,i)}function r(){return window.location.href.split("#")[1]||""}function o(t){window.location.replace(window.location.pathname+window.location.search+"#"+t)}function a(){return window.location.pathname+window.location.search+window.location.hash}function s(t){t&&window.history.go(t)}function l(t,e){e(window.confirm(t))}function c(){var t=navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)}function u(){var t=navigator.userAgent;return t.indexOf("Firefox")===-1}e.__esModule=!0,e.addEventListener=i,e.removeEventListener=n,e.getHashPath=r,e.replaceHashPath=o,e.getWindowPath=a,e.go=s,e.getUserConfirmation=l,e.supportsHistory=c,e.supportsGoWithoutReloadUsingHash=u},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){return l+t}function o(t,e){try{null==e?window.sessionStorage.removeItem(r(t)):window.sessionStorage.setItem(r(t),JSON.stringify(e))}catch(t){if(t.name===u)return;if(c.indexOf(t.name)>=0&&0===window.sessionStorage.length)return;throw t}}function a(t){var e=void 0;try{e=window.sessionStorage.getItem(r(t))}catch(t){if(t.name===u)return null}if(e)try{return JSON.parse(e)}catch(t){}return null}e.__esModule=!0,e.saveState=o,e.readState=a;var s=i(8),l=(n(s),"@@History/"),c=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],u="SecurityError"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){function e(t){return l.canUseDOM?void 0:s.default(!1),i.listen(t)}var i=h.default(o({getUserConfirmation:c.getUserConfirmation},t,{go:c.go}));return o({},i,{listen:e})}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},a=i(11),s=n(a),l=i(16),c=i(17),u=i(20),h=n(u);e.default=r,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){return Math.random().toString(36).substr(2,t)}function o(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.key===e.key&&u.default(t.state,e.state)}function a(){function t(t){return B.push(t),function(){B=B.filter(function(e){return e!==t})}}function e(){return X&&X.action===f.POP?H.indexOf(X.key):W?H.indexOf(W.key):-1}function i(t){var i=e();W=t,W.action===f.PUSH?H=[].concat(H.slice(0,i+1),[W.key]):W.action===f.REPLACE&&(H[i]=W.key),z.forEach(function(t){t(W)})}function n(t){if(z.push(t),W)t(W);else{var e=L();H=[e.key],i(e)}return function(){z=z.filter(function(e){return e!==t})}}function a(t,e){d.loopAsync(B.length,function(e,i,n){v.default(B[e],t,function(t){null!=t?n(t):i()})},function(t){j&&"string"==typeof t?j(t,function(t){e(t!==!1)}):e(t!==!1)})}function l(t){W&&o(W,t)||(X=t,a(t,function(e){if(X===t)if(e){if(t.action===f.PUSH){var n=S(W),r=S(t);r===n&&u.default(W.state,t.state)&&(t.action=f.REPLACE)}I(t)!==!1&&i(t)}else if(W&&t.action===f.POP){var o=H.indexOf(W.key),a=H.indexOf(t.key);o!==-1&&a!==-1&&D(o-a)}}))}function c(t){l(T(t,f.PUSH,w()))}function p(t){l(T(t,f.REPLACE,w()))}function m(){D(-1)}function y(){D(1)}function w(){return r(N)}function S(t){if(null==t||"string"==typeof t)return t;var e=t.pathname,i=t.search,n=t.hash,r=e;return i&&(r+=i),n&&(r+=n),r}function k(t){return S(t)}function T(t,e){var i=arguments.length<=2||void 0===arguments[2]?w():arguments[2];return"object"==typeof e&&("string"==typeof t&&(t=h.parsePath(t)),t=s({},t,{state:e}),e=i,i=arguments[3]||w()),g.default(t,e,i)}function O(t){W?(P(W,t),i(W)):P(L(),t)}function P(t,e){t.state=s({},t.state,e),R(t.key,t.state)}function C(t){B.indexOf(t)===-1&&B.push(t)}function M(t){B=B.filter(function(e){return e!==t})}function _(t,e){"string"==typeof e&&(e=h.parsePath(e)),c(s({state:t},e))}function E(t,e){"string"==typeof e&&(e=h.parsePath(e)),p(s({state:t},e))}var A=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],L=A.getCurrentLocation,I=A.finishTransition,R=A.saveState,D=A.go,j=A.getUserConfirmation,N=A.keyLength;"number"!=typeof N&&(N=x);var B=[],H=[],z=[],W=void 0,X=void 0;return{listenBefore:t,listen:n,transitionTo:l,push:c,replace:p,go:D,goBack:m,goForward:y,createKey:w,createPath:S,createHref:k,createLocation:T,setState:b.default(O,"setState is deprecated; use location.key to save state instead"),registerTransitionHook:b.default(C,"registerTransitionHook is deprecated; use listenBefore instead"),unregisterTransitionHook:b.default(M,"unregisterTransitionHook is deprecated; use the callback returned from listenBefore instead"),pushState:b.default(_,"pushState is deprecated; use push instead"),replaceState:b.default(E,"replaceState is deprecated; use replace instead")}}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},l=i(8),c=(n(l),i(21)),u=n(c),h=i(15),d=i(24),f=i(14),p=i(25),g=n(p),m=i(26),v=n(m),y=i(27),b=n(y),x=6;e.default=a,t.exports=e.default},function(t,e,i){function n(t){return null===t||void 0===t}function r(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function o(t,e,i){var o,u;if(n(t)||n(e))return!1;if(t.prototype!==e.prototype)return!1;if(l(t))return!!l(e)&&(t=a.call(t),e=a.call(e),c(t,e,i));if(r(t)){if(!r(e))return!1;if(t.length!==e.length)return!1;for(o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0}try{var h=s(t),d=s(e)}catch(t){return!1}if(h.length!=d.length)return!1;for(h.sort(),d.sort(),o=h.length-1;o>=0;o--)if(h[o]!=d[o])return!1;for(o=h.length-1;o>=0;o--)if(u=h[o],!c(t[u],e[u],i))return!1;return typeof t==typeof e}var a=Array.prototype.slice,s=i(22),l=i(23),c=t.exports=function(t,e,i){return i||(i={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?i.strict?t===e:t==e:o(t,e,i))}},function(t,e){function i(t){var e=[];for(var i in t)e.push(i);return e}e=t.exports="function"==typeof Object.keys?Object.keys:i,e.shim=i},function(t,e){function i(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function n(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var r="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=r?i:n,e.supported=i,e.unsupported=n},function(t,e){"use strict";function i(t,e,i){function r(){return s=!0,l?void(u=[].concat(n.call(arguments))):void i.apply(this,arguments)}function o(){if(!s&&(c=!0,!l)){for(l=!0;!s&&a<t&&c;)c=!1,e.call(this,a++,o,r);return l=!1,s?void i.apply(this,u):void(a>=t&&c&&(s=!0,i()))}}var a=0,s=!1,l=!1,c=!1,u=void 0;o()}e.__esModule=!0;var n=Array.prototype.slice;e.loopAsync=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(){var t=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],e=arguments.length<=1||void 0===arguments[1]?s.POP:arguments[1],i=arguments.length<=2||void 0===arguments[2]?null:arguments[2],n=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof t&&(t=l.parsePath(t)),"object"==typeof e&&(t=o({},t,{state:e}),e=i||s.POP,i=n);var r=t.pathname||"/",a=t.search||"",c=t.hash||"",u=t.state||null;return{pathname:r,search:a,hash:c,state:u,action:e,key:i}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},a=i(8),s=(n(a),i(14)),l=i(15);e.default=r,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e,i){var n=t(e,i);t.length<2&&i(n)}e.__esModule=!0;var o=i(8);n(o);e.default=r,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){return function(){return t.apply(this,arguments)}}e.__esModule=!0;var o=i(8);n(o);e.default=r,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){return l.stringify(t).replace(/%20/g,"+")}function o(t){return function(){function e(t){if(null==t.query){var e=t.search;t.query=S(e.substring(1)),t[p]={search:e,searchBase:""}}return t}function i(t,e){var i,n=t[p],r=e?w(e):"";if(!n&&!r)return t;"string"==typeof t&&(t=h.parsePath(t));var o=void 0;o=n&&t.search===n.search?n.searchBase:t.search||"";var s=o;return r&&(s+=(s?"&":"?")+r),a({},t,(i={search:s},i[p]={search:s,searchBase:o},i))}function n(t){return x.listenBefore(function(i,n){u.default(t,e(i),n)})}function o(t){return x.listen(function(i){t(e(i))})}function s(t){x.push(i(t,t.query))}function l(t){x.replace(i(t,t.query))}function c(t,e){return x.createPath(i(t,e||t.query))}function d(t,e){return x.createHref(i(t,e||t.query))}function m(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var a=x.createLocation.apply(x,[i(t,t.query)].concat(r));return t.query&&(a.query=t.query),e(a)}function v(t,e,i){"string"==typeof e&&(e=h.parsePath(e)),s(a({state:t},e,{query:i}))}function y(t,e,i){"string"==typeof e&&(e=h.parsePath(e)),l(a({state:t},e,{query:i}))}var b=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],x=t(b),w=b.stringifyQuery,S=b.parseQueryString;return"function"!=typeof w&&(w=r),"function"!=typeof S&&(S=g),a({},x,{listenBefore:n,listen:o,push:s,replace:l,createPath:c,createHref:d,createLocation:m,pushState:f.default(v,"pushState is deprecated; use push instead"),replaceState:f.default(y,"replaceState is deprecated; use replace instead")})}}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},s=i(8),l=(n(s),i(29)),c=i(26),u=n(c),h=i(15),d=i(27),f=n(d),p="$searchBase",g=l.parse;e.default=o,t.exports=e.default},function(t,e,i){"use strict";function n(t){switch(t.arrayFormat){case"index":return function(e,i,n){return null===i?[o(e,t),"[",n,"]"].join(""):[o(e,t),"[",o(n,t),"]=",o(i,t)].join("")};case"bracket":return function(e,i){return null===i?o(e,t):[o(e,t),"[]=",o(i,t)].join("")};default:return function(e,i){return null===i?o(e,t):[o(e,t),"=",o(i,t)].join("")}}}function r(t){var e;switch(t.arrayFormat){case"index":return function(t,i,n){return e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),void(n[t][e[1]]=i)):void(n[t]=i)};case"bracket":return function(t,i,n){return e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0===n[t]?void(n[t]=[i]):void(n[t]=[].concat(n[t],i)):void(n[t]=i)};default:return function(t,e,i){return void 0===i[t]?void(i[t]=e):void(i[t]=[].concat(i[t],e))}}}function o(t,e){return e.encode?e.strict?s(t):encodeURIComponent(t):t}function a(t){return Array.isArray(t)?t.sort():"object"==typeof t?a(Object.keys(t)).sort(function(t,e){return Number(t)-Number(e)}).map(function(e){return t[e]}):t}var s=i(30),l=i(31);e.extract=function(t){return t.split("?")[1]||""},e.parse=function(t,e){e=l({arrayFormat:"none"},e);var i=r(e),n=Object.create(null);return"string"!=typeof t?n:(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var e=t.replace(/\+/g," ").split("="),r=e.shift(),o=e.length>0?e.join("="):void 0;o=void 0===o?null:decodeURIComponent(o),i(decodeURIComponent(r),o,n)}),Object.keys(n).sort().reduce(function(t,e){var i=n[e];return Boolean(i)&&"object"==typeof i&&!Array.isArray(i)?t[e]=a(i):t[e]=i,t},Object.create(null))):n},e.stringify=function(t,e){var i={encode:!0,strict:!0,arrayFormat:"none"};e=l(i,e);var r=n(e);return t?Object.keys(t).sort().map(function(i){var n=t[i];if(void 0===n)return"";if(null===n)return o(i,e);if(Array.isArray(n)){var a=[];return n.slice().forEach(function(t){void 0!==t&&a.push(r(i,t,a.length))}),a.join("&")}return o(i,e)+"="+o(n,e)}).filter(function(t){return t.length>0}).join("&"):""}},function(t,e){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},function(t,e){/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
"use strict";function i(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function n(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;var n=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==n.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=n()?Object.assign:function(t,e){for(var n,s,l=i(t),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var u in n)o.call(n,u)&&(l[u]=n[u]);if(r){s=r(n);for(var h=0;h<s.length;h++)a.call(n,s[h])&&(l[s[h]]=n[s[h]])}}return l}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!0;return!1}function o(t,e){function i(e){var i=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],r=void 0;return i&&i!==!0||null!==n?(e={pathname:e,query:i},r=n||!1):(e=t.createLocation(e),r=i),(0,d.default)(e,r,b.location,b.routes,b.params)}function n(t,i){x&&x.location===t?o(x,i):(0,m.default)(e,t,function(e,n){e?i(e):n?o(a({},n,{location:t}),i):i()})}function o(t,e){function i(i,r){return i||r?n(i,r):void(0,p.default)(t,function(i,n){i?e(i):e(null,null,b=a({},t,{components:n}))})}function n(t,i){t?e(t):e(null,i)}var r=(0,c.default)(b,t),o=r.leaveRoutes,s=r.changeRoutes,l=r.enterRoutes;(0,u.runLeaveHooks)(o,b),o.filter(function(t){return l.indexOf(t)===-1}).forEach(g),(0,u.runChangeHooks)(s,b,t,function(e,r){return e||r?n(e,r):void(0,u.runEnterHooks)(l,t,i)})}function s(t){var e=arguments.length<=1||void 0===arguments[1]||arguments[1];return t.__id__||e&&(t.__id__=w++)}function l(t){return t.reduce(function(t,e){return t.push.apply(t,S[s(e)]),t},[])}function h(t,i){(0,m.default)(e,t,function(e,n){if(null==n)return void i();x=a({},n,{location:t});for(var r=l((0,c.default)(b,x).leaveRoutes),o=void 0,s=0,u=r.length;null==o&&s<u;++s)o=r[s](t);i(o)})}function f(){if(b.routes){for(var t=l(b.routes),e=void 0,i=0,n=t.length;"string"!=typeof e&&i<n;++i)e=t[i]();return e}}function g(t){var e=s(t,!1);e&&(delete S[e],r(S)||(k&&(k(),k=null),T&&(T(),T=null)))}function v(e,i){var n=s(e),o=S[n];if(o)o.indexOf(i)===-1&&o.push(i);else{var a=!r(S);S[n]=[i],a&&(k=t.listenBefore(h),t.listenBeforeUnload&&(T=t.listenBeforeUnload(f)))}return function(){var t=S[n];if(t){var r=t.filter(function(t){return t!==i});0===r.length?g(e):S[n]=r}}}function y(e){return t.listen(function(i){b.location===i?e(null,b):n(i,function(i,n,r){i?e(i):n?t.replace(n):r&&e(null,r)})})}var b={},x=void 0,w=1,S=Object.create(null),k=void 0,T=void 0;return{isActive:i,match:n,listenBeforeLeavingRoute:v,listen:y}}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};e.default=o;var s=i(7),l=(n(s),i(33)),c=n(l),u=i(34),h=i(36),d=n(h),f=i(37),p=n(f),g=i(39),m=n(g);t.exports=e.default},function(t,e,i){"use strict";function n(t,e,i){if(!t.path)return!1;var n=(0,o.getParamNames)(t.path);return n.some(function(t){return e.params[t]!==i.params[t]})}function r(t,e){var i=t&&t.routes,r=e.routes,o=void 0,a=void 0,s=void 0;return i?!function(){var l=!1;o=i.filter(function(i){if(l)return!0;var o=r.indexOf(i)===-1||n(i,t,e);return o&&(l=!0),o}),o.reverse(),s=[],a=[],r.forEach(function(t){var e=i.indexOf(t)===-1,n=o.indexOf(t)!==-1;e||n?s.push(t):a.push(t)})}():(o=[],a=[],s=r),{leaveRoutes:o,changeRoutes:a,enterRoutes:s}}e.__esModule=!0;var o=i(10);e.default=r,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e,i){return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];if(t.apply(e,r),t.length<i){var a=r[r.length-1];a()}}}function o(t){return t.reduce(function(t,e){return e.onEnter&&t.push(r(e.onEnter,e,3)),t},[])}function a(t){return t.reduce(function(t,e){return e.onChange&&t.push(r(e.onChange,e,4)),t},[])}function s(t,e,i){function n(t,e,i){return e?void(r={pathname:e,query:i,state:t}):void(r=t)}if(!t)return void i();var r=void 0;(0,h.loopAsync)(t,function(t,i,o){e(t,n,function(t){t||r?o(t,r):i()})},i)}function l(t,e,i){var n=o(t);return s(n.length,function(t,i,r){n[t](e,i,r)},i)}function c(t,e,i,n){var r=a(t);return s(r.length,function(t,n,o){r[t](e,i,n,o)},n)}function u(t,e){for(var i=0,n=t.length;i<n;++i)t[i].onLeave&&t[i].onLeave.call(t[i],e)}e.__esModule=!0,e.runEnterHooks=l,e.runChangeHooks=c,e.runLeaveHooks=u;var h=i(35),d=i(7);n(d)},function(t,e){"use strict";function i(t,e,i){function n(){return a=!0,s?void(c=[].concat(Array.prototype.slice.call(arguments))):void i.apply(this,arguments)}function r(){if(!a&&(l=!0,!s)){for(s=!0;!a&&o<t&&l;)l=!1,e.call(this,o++,r,n);return s=!1,a?void i.apply(this,c):void(o>=t&&l&&(a=!0,i()))}}var o=0,a=!1,s=!1,l=!1,c=void 0;r()}function n(t,e,i){function n(t,e,n){a||(e?(a=!0,i(e)):(o[t]=n,a=++s===r,a&&i(null,o)))}var r=t.length,o=[];if(0===r)return i(null,o);var a=!1,s=0;t.forEach(function(t,i){e(t,i,function(t,e){n(i,t,e)})})}e.__esModule=!0,e.loopAsync=i,e.mapAsync=n},function(t,e,i){"use strict";function n(t,e){if(t==e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,i){return n(t,e[i])});if("object"===("undefined"==typeof t?"undefined":l(t))){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))if(void 0===t[i]){if(void 0!==e[i])return!1}else{if(!Object.prototype.hasOwnProperty.call(e,i))return!1;if(!n(t[i],e[i]))return!1}return!0}return String(t)===String(e)}function r(t,e){return"/"!==e.charAt(0)&&(e="/"+e),"/"!==t.charAt(t.length-1)&&(t+="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e===t}function o(t,e,i){for(var n=t,r=[],o=[],a=0,s=e.length;a<s;++a){var l=e[a],u=l.path||"";if("/"===u.charAt(0)&&(n=t,r=[],o=[]),null!==n&&u){var h=(0,c.matchPattern)(u,n);if(h?(n=h.remainingPathname,r=[].concat(r,h.paramNames),o=[].concat(o,h.paramValues)):n=null,""===n)return r.every(function(t,e){return String(o[e])===String(i[t])})}}return!1}function a(t,e){return null==e?null==t:null==t||n(t,e)}function s(t,e,i,n,s){var l=t.pathname,c=t.query;return null!=i&&("/"!==l.charAt(0)&&(l="/"+l),!!(r(l,i.pathname)||!e&&o(l,n,s))&&a(c,i.query))}e.__esModule=!0;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};e.default=s;var c=i(10);t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e,i){if(e.component||e.components)return void i(null,e.component||e.components);var n=e.getComponent||e.getComponents;if(!n)return void i();var r=t.location,o=(0,l.default)(t,r);n.call(e,o,i)}function o(t,e){(0,a.mapAsync)(t.routes,function(e,i,n){r(t,e,n)},e)}e.__esModule=!0;var a=i(35),s=i(38),l=n(s);e.default=o,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){return o({},t,e)}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};e.default=r;var a=(i(6),i(7));n(a);t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e,i,n,r){if(t.childRoutes)return[null,t.childRoutes];if(!t.getChildRoutes)return[];var o=!0,a=void 0,l={location:e,params:s(i,n)},c=(0,p.default)(l,e);return t.getChildRoutes(c,function(t,e){return e=!t&&(0,v.createRoutes)(e),o?void(a=[t,e]):void r(t,e)}),o=!1,a}function o(t,e,i,n,r){if(t.indexRoute)r(null,t.indexRoute);else if(t.getIndexRoute){var a={location:e,params:s(i,n)},l=(0,p.default)(a,e);t.getIndexRoute(l,function(t,e){r(t,!t&&(0,v.createRoutes)(e)[0])})}else t.childRoutes?!function(){var a=t.childRoutes.filter(function(t){return!t.path});(0,d.loopAsync)(a.length,function(t,r,s){o(a[t],e,i,n,function(e,i){if(e||i){var n=[a[t]].concat(Array.isArray(i)?i:[i]);s(e,n)}else r()})},function(t,e){r(null,e)})}():r()}function a(t,e,i){return e.reduce(function(t,e,n){var r=i&&i[n];return Array.isArray(t[e])?t[e].push(r):e in t?t[e]=[t[e],r]:t[e]=r,t},t)}function s(t,e){return a({},t,e)}function l(t,e,i,n,a,l){var u=t.path||"";if("/"===u.charAt(0)&&(i=e.pathname,n=[],a=[]),null!==i&&u){try{var d=(0,g.matchPattern)(u,i);d?(i=d.remainingPathname,n=[].concat(n,d.paramNames),a=[].concat(a,d.paramValues)):i=null}catch(t){l(t)}if(""===i){var f=function(){var i={routes:[t],params:s(n,a)};return o(t,e,n,a,function(t,e){if(t)l(t);else{if(Array.isArray(e)){var n;(n=i.routes).push.apply(n,e)}else e&&i.routes.push(e);l(null,i)}}),{v:void 0}}();if("object"===("undefined"==typeof f?"undefined":h(f)))return f.v}}if(null!=i||t.childRoutes){var p=function(r,o){r?l(r):o?c(o,e,function(e,i){e?l(e):i?(i.routes.unshift(t),l(null,i)):l()},i,n,a):l()},m=r(t,e,n,a,p);m&&p.apply(void 0,m)}else l()}function c(t,e,i,n){var r=arguments.length<=4||void 0===arguments[4]?[]:arguments[4],o=arguments.length<=5||void 0===arguments[5]?[]:arguments[5];void 0===n&&("/"!==e.pathname.charAt(0)&&(e=u({},e,{pathname:"/"+e.pathname})),n=e.pathname),(0,d.loopAsync)(t.length,function(i,a,s){l(t[i],e,n,r,o,function(t,e){t||e?s(t,e):a()})},i)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};e.default=c;var d=i(35),f=i(38),p=n(f),g=i(10),m=i(7),v=(n(m),i(4));t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},a=i(11),s=n(a),l=i(1),c=n(l),u=i(6),h=(n(u),i(41)),d=n(h),f=i(4),p=i(7),g=(n(p),c.default.PropTypes),m=g.array,v=g.func,y=g.object,b=c.default.createClass({displayName:"RouterContext",propTypes:{history:y,router:y.isRequired,location:y.isRequired,routes:m.isRequired,params:y.isRequired,components:m.isRequired,createElement:v.isRequired},getDefaultProps:function(){return{createElement:c.default.createElement}},childContextTypes:{history:y,location:y.isRequired,router:y.isRequired},getChildContext:function(){var t=this.props,e=t.router,i=t.history,n=t.location;return e||(e=o({},i,{setRouteLeaveHook:i.listenBeforeLeavingRoute}),delete e.listenBeforeLeavingRoute),{history:i,location:n,router:e}},createElement:function(t,e){return null==t?null:this.props.createElement(t,e)},render:function(){var t=this,e=this.props,i=e.history,n=e.location,a=e.routes,l=e.params,u=e.components,h=null;return u&&(h=u.reduceRight(function(e,s,c){if(null==s)return e;var u=a[c],h=(0,d.default)(u,l),p={history:i,location:n,params:l,route:u,routeParams:h,routes:a};if((0,f.isReactChildren)(e))p.children=e;else if(e)for(var g in e)Object.prototype.hasOwnProperty.call(e,g)&&(p[g]=e[g]);if("object"===("undefined"==typeof s?"undefined":r(s))){var m={};for(var v in s)Object.prototype.hasOwnProperty.call(s,v)&&(m[v]=t.createElement(s[v],o({key:v},p)));return m}return t.createElement(s,p)},h)),null===h||h===!1||c.default.isValidElement(h)?void 0:(0,s.default)(!1),h}});e.default=b,t.exports=e.default},function(t,e,i){"use strict";function n(t,e){var i={};return t.path?((0,r.getParamNames)(t.path).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}),i):i}e.__esModule=!0;var r=i(10);e.default=n,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){return a({},t,{setRouteLeaveHook:e.listenBeforeLeavingRoute,isActive:e.isActive})}function o(t,e){return t=a({},t,e)}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};e.createRouterObject=r,e.createRoutingHistory=o;var s=i(6);n(s)},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var i={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i}function o(t){return 0===t.button}function a(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function s(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function l(t,e){var i=e.query,n=e.hash,r=e.state;return i||n||r?{pathname:t,query:i,hash:n,state:r}:t}e.__esModule=!0;var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},u=i(1),h=n(u),d=i(7),f=(n(d),i(11)),p=n(f),g=i(5),m=h.default.PropTypes,v=m.bool,y=m.object,b=m.string,x=m.func,w=m.oneOfType,S=h.default.createClass({displayName:"Link",contextTypes:{router:g.routerShape},propTypes:{to:w([b,y]),query:y,hash:b,state:y,activeStyle:y,activeClassName:b,onlyActiveOnIndex:v.isRequired,onClick:x,target:b},getDefaultProps:function(){return{onlyActiveOnIndex:!1,style:{}}},handleClick:function(t){if(this.props.onClick&&this.props.onClick(t),!t.defaultPrevented&&(this.context.router?void 0:(0,p.default)(!1),!a(t)&&o(t)&&!this.props.target)){t.preventDefault();var e=this.props,i=e.to,n=e.query,r=e.hash,s=e.state,c=l(i,{query:n,hash:r,state:s});this.context.router.push(c)}},render:function(){var t=this.props,e=t.to,i=t.query,n=t.hash,o=t.state,a=t.activeClassName,u=t.activeStyle,d=t.onlyActiveOnIndex,f=r(t,["to","query","hash","state","activeClassName","activeStyle","onlyActiveOnIndex"]),p=this.context.router;if(p){if(null==e)return h.default.createElement("a",f);var g=l(e,{query:i,hash:n,state:o});f.href=p.createHref(g),(a||null!=u&&!s(u))&&p.isActive(g,d)&&(a&&(f.className?f.className+=" "+a:f.className=a),u&&(f.style=c({},f.style,u)))}return h.default.createElement("a",c({},f,{onClick:this.handleClick}))}});e.default=S,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},o=i(1),a=n(o),s=i(43),l=n(s),c=a.default.createClass({displayName:"IndexLink",render:function(){return a.default.createElement(l.default,r({},this.props,{onlyActiveOnIndex:!0}))}});e.default=c,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){return t.displayName||t.name||"Component"}function o(t,e){var i=e&&e.withRef,n=u.default.createClass({displayName:"WithRouter",contextTypes:{router:f.routerShape},propTypes:{router:f.routerShape},getWrappedInstance:function(){return i?void 0:(0,l.default)(!1),this.wrappedInstance},render:function(){var e=this,n=this.props.router||this.context.router,r=a({},this.props,{router:n});return i&&(r.ref=function(t){e.wrappedInstance=t}),u.default.createElement(t,r)}});return n.displayName="withRouter("+r(t)+")",n.WrappedComponent=t,(0,d.default)(n,t)}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};e.default=o;var s=i(11),l=n(s),c=i(1),u=n(c),h=i(46),d=n(h),f=i(5);t.exports=e.default},function(t,e){"use strict";var i={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},r="function"==typeof Object.getOwnPropertySymbols;t.exports=function(t,e,o){if("string"!=typeof e){var a=Object.getOwnPropertyNames(e);r&&(a=a.concat(Object.getOwnPropertySymbols(e)));for(var s=0;s<a.length;++s)if(!(i[a[s]]||n[a[s]]||o&&o[a[s]]))try{t[a[s]]=e[a[s]]}catch(t){}}return t}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(1),o=n(r),a=i(7),s=(n(a),i(11)),l=n(s),c=i(48),u=n(c),h=i(9),d=o.default.PropTypes,f=d.string,p=d.object,g=o.default.createClass({displayName:"IndexRedirect",statics:{createRouteFromReactElement:function(t,e){e&&(e.indexRoute=u.default.createRouteFromReactElement(t))}},propTypes:{to:f.isRequired,query:p,state:p,onEnter:h.falsy,children:h.falsy},render:function(){(0,l.default)(!1)}});e.default=g,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(1),o=n(r),a=i(11),s=n(a),l=i(4),c=i(10),u=i(9),h=o.default.PropTypes,d=h.string,f=h.object,p=o.default.createClass({displayName:"Redirect",statics:{createRouteFromReactElement:function(t){var e=(0,l.createRouteFromReactElement)(t);return e.from&&(e.path=e.from),e.onEnter=function(t,i){var n=t.location,r=t.params,o=void 0;if("/"===e.to.charAt(0))o=(0,c.formatPattern)(e.to,r);else if(e.to){var a=t.routes.indexOf(e),s=p.getRoutePattern(t.routes,a-1),l=s.replace(/\/*$/,"/")+e.to;o=(0,c.formatPattern)(l,r)}else o=n.pathname;i({pathname:o,query:e.query||n.query,state:e.state||n.state})},e},getRoutePattern:function(t,e){for(var i="",n=e;n>=0;n--){var r=t[n],o=r.path||"";if(i=o.replace(/\/*$/,"/")+i,0===o.indexOf("/"))break}return"/"+i}},propTypes:{path:d,from:d,to:d.isRequired,query:f,state:f,onEnter:u.falsy,children:u.falsy},render:function(){(0,s.default)(!1)}});e.default=p,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(1),o=n(r),a=i(7),s=(n(a),i(11)),l=n(s),c=i(4),u=i(9),h=o.default.PropTypes.func,d=o.default.createClass({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(t,e){e&&(e.indexRoute=(0,c.createRouteFromReactElement)(t))}},propTypes:{path:u.falsy,component:u.component,components:u.components,getComponent:h,getComponents:h},render:function(){(0,l.default)(!1)}});e.default=d,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(1),o=n(r),a=i(11),s=n(a),l=i(4),c=i(9),u=o.default.PropTypes,h=u.string,d=u.func,f=o.default.createClass({displayName:"Route",statics:{createRouteFromReactElement:l.createRouteFromReactElement},propTypes:{path:h,component:c.component,components:c.components,getComponent:d,getComponents:d},render:function(){(0,s.default)(!1)}});e.default=f,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(7),o=(n(r),i(9)),a={contextTypes:{history:o.history},componentWillMount:function(){this.history=this.context.history}};e.default=a,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(7),o=(n(r),i(1)),a=n(o),s=i(11),l=n(s),c=a.default.PropTypes.object,u={contextTypes:{history:c.isRequired,route:c},propTypes:{route:c},componentDidMount:function(){this.routerWillLeave?void 0:(0,l.default)(!1);var t=this.props.route||this.context.route;t?void 0:(0,l.default)(!1),this._unlistenBeforeLeavingRoute=this.context.history.listenBeforeLeavingRoute(t,this.routerWillLeave)},componentWillUnmount:function(){this._unlistenBeforeLeavingRoute&&this._unlistenBeforeLeavingRoute()}};e.default=u,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(7),o=(n(r),i(1)),a=n(o),s=a.default.PropTypes.object,l={propTypes:{route:s.isRequired},childContextTypes:{route:s.isRequired},getChildContext:function(){return{route:this.props.route}},componentWillMount:function(){}};e.default=l,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var i={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i}function o(t){return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],i=e.routes,n=r(e,["routes"]),o=(0,l.default)(t)(n),s=(0,u.default)(o,i);return a({},o,s)}}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},s=i(28),l=n(s),c=i(32),u=n(c),h=i(7);n(h);e.default=o,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(1),o=n(r),a=i(40),s=n(a),l=i(7),c=(n(l),o.default.createClass({displayName:"RoutingContext",componentWillMount:function(){},render:function(){return o.default.createElement(s.default,this.props)}}));e.default=c,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var i={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i}function o(t,e){var i=t.history,n=t.routes,o=t.location,l=r(t,["history","routes","location"]);i||o?void 0:(0,c.default)(!1),i=i?i:(0,h.default)(l);var u=(0,f.default)(i,(0,p.createRoutes)(n)),d=void 0;o?o=i.createLocation(o):d=i.listen(function(t){o=t});var m=(0,g.createRouterObject)(i,u);i=(0,g.createRoutingHistory)(i,u),u.match(o,function(t,n,r){e(t,n&&m.createLocation(n,s.REPLACE),r&&a({},r,{history:i,router:m,matchContext:{history:i,transitionManager:u,router:m}})),d&&d()})}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},s=i(14),l=i(11),c=n(l),u=i(57),h=n(u),d=i(32),f=n(d),p=i(4),g=i(42);e.default=o,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){var e=(0,u.default)(t),i=function(){return e},n=(0,a.default)((0,l.default)(i))(t);return n.__v2_compatible__=!0,n}e.__esModule=!0,e.default=r;var o=i(28),a=n(o),s=i(58),l=n(s),c=i(59),u=n(c);t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){return function(){function e(){if(!w){if(null==x&&s.canUseDOM){var t=document.getElementsByTagName("base")[0],e=t&&t.getAttribute("href");null!=e&&(x=e)}w=!0}}function i(t){return e(),x&&null==t.basename&&(0===t.pathname.indexOf(x)?(t.pathname=t.pathname.substring(x.length),t.basename=x,""===t.pathname&&(t.pathname="/")):t.basename=""),t}function n(t){if(e(),!x)return t;"string"==typeof t&&(t=l.parsePath(t));var i=t.pathname,n="/"===x.slice(-1)?x:x+"/",r="/"===i.charAt(0)?i.slice(1):i,a=n+r;return o({},t,{pathname:a})}function r(t){return b.listenBefore(function(e,n){u.default(t,i(e),n)})}function a(t){return b.listen(function(e){t(i(e))})}function c(t){b.push(n(t))}function h(t){b.replace(n(t))}function f(t){return b.createPath(n(t))}function p(t){return b.createHref(n(t))}function g(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return i(b.createLocation.apply(b,[n(t)].concat(r)))}function m(t,e){"string"==typeof e&&(e=l.parsePath(e)),c(o({state:t},e))}function v(t,e){"string"==typeof e&&(e=l.parsePath(e)),h(o({state:t},e))}var y=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],b=t(y),x=y.basename,w=!1;return o({},b,{listenBefore:r,listen:a,push:c,replace:h,createPath:f,createHref:p,createLocation:g,pushState:d.default(m,"pushState is deprecated; use push instead"),replaceState:d.default(v,"replaceState is deprecated; use replace instead")})}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},a=i(8),s=(n(a),i(16)),l=i(15),c=i(26),u=n(c),h=i(27),d=n(h);e.default=r,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){return t.filter(function(t){return t.state}).reduce(function(t,e){return t[e.key]=e.state,t},{})}function o(){function t(t,e){v[t]=e}function e(t){return v[t]}function i(){var t=g[m],i=t.basename,n=t.pathname,r=t.search,o=(i||"")+n+(r||""),s=void 0,l=void 0;t.key?(s=t.key,l=e(s)):(s=d.createKey(),l=null,t.key=s);var c=u.parsePath(o);return d.createLocation(a({},c,{state:l}),void 0,s)}function n(t){var e=m+t;return e>=0&&e<g.length}function o(t){if(t){if(!n(t))return;m+=t;var e=i();d.transitionTo(a({},e,{action:h.POP}))}}function s(e){switch(e.action){case h.PUSH:m+=1,m<g.length&&g.splice(m),g.push(e),t(e.key,e.state);break;case h.REPLACE:g[m]=e,t(e.key,e.state)}}var l=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];Array.isArray(l)?l={entries:l}:"string"==typeof l&&(l={entries:[l]});var d=f.default(a({},l,{getCurrentLocation:i,finishTransition:s,saveState:t,go:o})),p=l,g=p.entries,m=p.current;"string"==typeof g?g=[g]:Array.isArray(g)||(g=["/"]),g=g.map(function(t){var e=d.createKey();return"string"==typeof t?{pathname:t,key:e}:"object"==typeof t&&t?a({},t,{key:e}):void c.default(!1)}),null==m?m=g.length-1:m>=0&&m<g.length?void 0:c.default(!1);var v=r(g);return d}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},s=i(8),l=(n(s),i(11)),c=n(l),u=i(15),h=i(14),d=i(20),f=n(d);e.default=o,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){return function(e){var i=(0,a.default)((0,l.default)(t))(e);return i.__v2_compatible__=!0,i}}e.__esModule=!0,e.default=r;var o=i(28),a=n(o),s=i(58),l=n(s);t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},o=i(1),a=n(o),s=i(40),l=n(s),c=i(7);n(c);e.default=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e.map(function(t){return t.renderRouterContext}).filter(Boolean),s=e.map(function(t){return t.renderRouteComponent}).filter(Boolean),c=function(){var t=arguments.length<=0||void 0===arguments[0]?o.createElement:arguments[0];return function(e,i){return s.reduceRight(function(t,e){return e(t,i)},t(e,i))}};return function(t){return n.reduceRight(function(e,i){return i(e,t)},a.default.createElement(l.default,r({},t,{createElement:c(t.createElement)})))}},t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(63),o=n(r),a=i(64),s=n(a);e.default=(0,s.default)(o.default),t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(){function t(t){try{t=t||window.history.state||{}}catch(e){t={}}var e=h.getWindowPath(),i=t,n=i.key,r=void 0;n?r=d.readState(n):(r=null,n=b.createKey(),v&&window.history.replaceState(o({},t,{key:n}),null));var a=c.parsePath(e);return b.createLocation(o({},a,{state:r}),void 0,n)}function e(e){function i(e){void 0!==e.state&&n(t(e.state))}var n=e.transitionTo;return h.addEventListener(window,"popstate",i),function(){h.removeEventListener(window,"popstate",i)}}function i(t){var e=t.basename,i=t.pathname,n=t.search,r=t.hash,o=t.state,a=t.action,s=t.key;if(a!==l.POP){d.saveState(s,o);var c=(e||"")+i+n+r,u={key:s};if(a===l.PUSH){if(y)return window.location.href=c,!1;window.history.pushState(u,null,c)}else{if(y)return window.location.replace(c),!1;window.history.replaceState(u,null,c)}}}function n(t){1===++x&&(w=e(b));var i=b.listenBefore(t);return function(){i(),0===--x&&w()}}function r(t){1===++x&&(w=e(b));var i=b.listen(t);return function(){i(),0===--x&&w()}}function a(t){1===++x&&(w=e(b)),b.registerTransitionHook(t)}function f(t){b.unregisterTransitionHook(t),0===--x&&w()}var g=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];u.canUseDOM?void 0:s.default(!1);var m=g.forceRefresh,v=h.supportsHistory(),y=!v||m,b=p.default(o({},g,{getCurrentLocation:t,finishTransition:i,saveState:d.saveState})),x=0,w=void 0;return o({},b,{listenBefore:n,listen:r,registerTransitionHook:a,unregisterTransitionHook:f})}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},a=i(11),s=n(a),l=i(14),c=i(15),u=i(16),h=i(17),d=i(18),f=i(19),p=n(f);e.default=r,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.default=function(t){var e=void 0;return a&&(e=(0,o.default)(t)()),e};var r=i(60),o=n(r),a=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(13),o=n(r),a=i(64),s=n(a);e.default=(0,s.default)(o.default),t.exports=e.default},function(t,e){},,,,function(t,e,i){"use strict";i(71),i(72)},function(t,e){},function(t,e){},,,function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},,function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(78),o=n(r);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}},function(t,e,i){t.exports={default:i(79),__esModule:!0}},function(t,e,i){i(80),t.exports=i(83).Object.assign},function(t,e,i){var n=i(81);n(n.S+n.F,"Object",{assign:i(97)})},function(t,e,i){var n=i(82),r=i(83),o=i(84),a=i(86),s=i(96),l="prototype",c=function(t,e,i){var u,h,d,f=t&c.F,p=t&c.G,g=t&c.S,m=t&c.P,v=t&c.B,y=t&c.W,b=p?r:r[e]||(r[e]={}),x=b[l],w=p?n:g?n[e]:(n[e]||{})[l];p&&(i=e);for(u in i)h=!f&&w&&void 0!==w[u],h&&s(b,u)||(d=h?w[u]:i[u],b[u]=p&&"function"!=typeof w[u]?i[u]:v&&h?o(d,n):y&&w[u]==d?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e[l]=t[l],e}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((b.virtual||(b.virtual={}))[u]=d,t&c.R&&x&&!x[u]&&a(x,u,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){var i=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=i)},function(t,e,i){var n=i(85);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){var n=i(87),r=i(95);t.exports=i(91)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(88),r=i(90),o=i(94),a=Object.defineProperty;e.f=i(91)?Object.defineProperty:function(t,e,i){
if(n(t),e=o(e,!0),n(i),r)try{return a(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){var n=i(89);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,i){t.exports=!i(91)&&!i(92)(function(){return 7!=Object.defineProperty(i(93)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){t.exports=!i(92)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){var n=i(89),r=i(82).document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,i){var n=i(89);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){"use strict";var n=i(91),r=i(98),o=i(113),a=i(114),s=i(115),l=i(101),c=Object.assign;t.exports=!c||i(92)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=c({},t)[i]||Object.keys(c({},e)).join("")!=n})?function(t,e){for(var i=s(t),c=arguments.length,u=1,h=o.f,d=a.f;c>u;)for(var f,p=l(arguments[u++]),g=h?r(p).concat(h(p)):r(p),m=g.length,v=0;m>v;)f=g[v++],n&&!d.call(p,f)||(i[f]=p[f]);return i}:c},function(t,e,i){var n=i(99),r=i(112);t.exports=Object.keys||function(t){return n(t,r)}},function(t,e,i){var n=i(96),r=i(100),o=i(104)(!1),a=i(108)("IE_PROTO");t.exports=function(t,e){var i,s=r(t),l=0,c=[];for(i in s)i!=a&&n(s,i)&&c.push(i);for(;e.length>l;)n(s,i=e[l++])&&(~o(c,i)||c.push(i));return c}},function(t,e,i){var n=i(101),r=i(103);t.exports=function(t){return n(r(t))}},function(t,e,i){var n=i(102);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){var n=i(100),r=i(105),o=i(107);t.exports=function(t){return function(e,i,a){var s,l=n(e),c=r(l.length),u=o(a,c);if(t&&i!=i){for(;c>u;)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===i)return t||u||0;return!t&&-1}}},function(t,e,i){var n=i(106),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){var n=i(106),r=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?r(t+e,0):o(t,e)}},function(t,e,i){var n=i(109)("keys"),r=i(111);t.exports=function(t){return n[t]||(n[t]=r(t))}},function(t,e,i){var n=i(83),r=i(82),o="__core-js_shared__",a=r[o]||(r[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(110)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!0},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){var n=i(103);t.exports=function(t){return Object(n(t))}},,,,function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(120),o=n(r);e.default=function(t,e,i){return e in t?(0,o.default)(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},function(t,e,i){t.exports={default:i(121),__esModule:!0}},function(t,e,i){i(122);var n=i(83).Object;t.exports=function(t,e,i){return n.defineProperty(t,e,i)}},function(t,e,i){var n=i(81);n(n.S+n.F*!i(91),"Object",{defineProperty:i(87).f})},,function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(125),o=n(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(126),o=n(r),a=i(145),s=n(a),l="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(o.default)?function(t){return"undefined"==typeof t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":"undefined"==typeof t?"undefined":l(t)}},function(t,e,i){t.exports={default:i(127),__esModule:!0}},function(t,e,i){i(128),i(140),t.exports=i(144).f("iterator")},function(t,e,i){"use strict";var n=i(129)(!0);i(130)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){var n=i(106),r=i(103);t.exports=function(t){return function(e,i){var o,a,s=String(r(e)),l=n(i),c=s.length;return l<0||l>=c?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):(o-55296<<10)+(a-56320)+65536)}}},function(t,e,i){"use strict";var n=i(110),r=i(81),o=i(131),a=i(86),s=i(132),l=i(133),c=i(137),u=i(139),h=i(138)("iterator"),d=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};t.exports=function(t,e,i,v,y,b,x){l(i,e,v);var w,S,k,T=function(t){if(!d&&t in M)return M[t];switch(t){case p:return function(){return new i(this,t)};case g:return function(){return new i(this,t)}}return function(){return new i(this,t)}},O=e+" Iterator",P=y==g,C=!1,M=t.prototype,_=M[h]||M[f]||y&&M[y],E=_||T(y),A=y?P?T("entries"):E:void 0,L="Array"==e?M.entries||_:_;if(L&&(k=u(L.call(new t)),k!==Object.prototype&&k.next&&(c(k,O,!0),n||"function"==typeof k[h]||a(k,h,m))),P&&_&&_.name!==g&&(C=!0,E=function(){return _.call(this)}),n&&!x||!d&&!C&&M[h]||a(M,h,E),s[e]=E,s[O]=m,y)if(w={values:P?E:T(g),keys:b?E:T(p),entries:A},x)for(S in w)S in M||o(M,S,w[S]);else r(r.P+r.F*(d||C),e,w);return w}},function(t,e,i){t.exports=i(86)},function(t,e){t.exports={}},function(t,e,i){"use strict";var n=i(134),r=i(95),o=i(137),a={};i(86)(a,i(138)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:r(1,i)}),o(t,e+" Iterator")}},function(t,e,i){var n=i(88),r=i(135),o=i(112),a=i(108)("IE_PROTO"),s=function(){},l="prototype",c=function(){var t,e=i(93)("iframe"),n=o.length,r="<",a=">";for(e.style.display="none",i(136).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+a+"document.F=Object"+r+"/script"+a),t.close(),c=t.F;n--;)delete c[l][o[n]];return c()};t.exports=Object.create||function(t,e){var i;return null!==t?(s[l]=n(t),i=new s,s[l]=null,i[a]=t):i=c(),void 0===e?i:r(i,e)}},function(t,e,i){var n=i(87),r=i(88),o=i(98);t.exports=i(91)?Object.defineProperties:function(t,e){r(t);for(var i,a=o(e),s=a.length,l=0;s>l;)n.f(t,i=a[l++],e[i]);return t}},function(t,e,i){var n=i(82).document;t.exports=n&&n.documentElement},function(t,e,i){var n=i(87).f,r=i(96),o=i(138)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,i){var n=i(109)("wks"),r=i(111),o=i(82).Symbol,a="function"==typeof o,s=t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:r)("Symbol."+t))};s.store=n},function(t,e,i){var n=i(96),r=i(115),o=i(108)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,i){i(141);for(var n=i(82),r=i(86),o=i(132),a=i(138)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=n[c],h=u&&u.prototype;h&&!h[a]&&r(h,a,c),o[c]=o.Array}},function(t,e,i){"use strict";var n=i(142),r=i(143),o=i(132),a=i(100);t.exports=i(130)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,i):"values"==e?r(0,t[i]):r(0,[i,t[i]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){e.f=i(138)},function(t,e,i){t.exports={default:i(146),__esModule:!0}},function(t,e,i){i(147),i(155),i(156),i(157),t.exports=i(83).Symbol},function(t,e,i){"use strict";var n=i(82),r=i(96),o=i(91),a=i(81),s=i(131),l=i(148).KEY,c=i(92),u=i(109),h=i(137),d=i(111),f=i(138),p=i(144),g=i(149),m=i(150),v=i(151),y=i(88),b=i(89),x=i(115),w=i(100),S=i(94),k=i(95),T=i(134),O=i(152),P=i(154),C=i(113),M=i(87),_=i(98),E=P.f,A=M.f,L=O.f,I=n.Symbol,R=n.JSON,D=R&&R.stringify,j="prototype",N=f("_hidden"),B=f("toPrimitive"),H={}.propertyIsEnumerable,z=u("symbol-registry"),W=u("symbols"),X=u("op-symbols"),F=Object[j],Y="function"==typeof I&&!!C.f,G=n.QObject,U=!G||!G[j]||!G[j].findChild,q=o&&c(function(){return 7!=T(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=E(F,e);n&&delete F[e],A(t,e,i),n&&t!==F&&A(F,e,n)}:A,V=function(t){var e=W[t]=T(I[j]);return e._k=t,e},K=Y&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},J=function(t,e,i){return t===F&&J(X,e,i),y(t),e=S(e,!0),y(i),r(W,e)?(i.enumerable?(r(t,N)&&t[N][e]&&(t[N][e]=!1),i=T(i,{enumerable:k(0,!1)})):(r(t,N)||A(t,N,k(1,{})),t[N][e]=!0),q(t,e,i)):A(t,e,i)},Q=function(t,e){y(t);for(var i,n=m(e=w(e)),r=0,o=n.length;o>r;)J(t,i=n[r++],e[i]);return t},Z=function(t,e){return void 0===e?T(t):Q(T(t),e)},$=function(t){var e=H.call(this,t=S(t,!0));return!(this===F&&r(W,t)&&!r(X,t))&&(!(e||!r(this,t)||!r(W,t)||r(this,N)&&this[N][t])||e)},tt=function(t,e){if(t=w(t),e=S(e,!0),t!==F||!r(W,e)||r(X,e)){var i=E(t,e);return!i||!r(W,e)||r(t,N)&&t[N][e]||(i.enumerable=!0),i}},et=function(t){for(var e,i=L(w(t)),n=[],o=0;i.length>o;)r(W,e=i[o++])||e==N||e==l||n.push(e);return n},it=function(t){for(var e,i=t===F,n=L(i?X:w(t)),o=[],a=0;n.length>a;)!r(W,e=n[a++])||i&&!r(F,e)||o.push(W[e]);return o};Y||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(i){this===F&&e.call(X,i),r(this,N)&&r(this[N],t)&&(this[N][t]=!1),q(this,t,k(1,i))};return o&&U&&q(F,t,{configurable:!0,set:e}),V(t)},s(I[j],"toString",function(){return this._k}),P.f=tt,M.f=J,i(153).f=O.f=et,i(114).f=$,C.f=it,o&&!i(110)&&s(F,"propertyIsEnumerable",$,!0),p.f=function(t){return V(f(t))}),a(a.G+a.W+a.F*!Y,{Symbol:I});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)f(nt[rt++]);for(var ot=_(f.store),at=0;ot.length>at;)g(ot[at++]);a(a.S+a.F*!Y,"Symbol",{for:function(t){return r(z,t+="")?z[t]:z[t]=I(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!Y,"Object",{create:Z,defineProperty:J,defineProperties:Q,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:it});var st=c(function(){C.f(1)});a(a.S+a.F*st,"Object",{getOwnPropertySymbols:function(t){return C.f(x(t))}}),R&&a(a.S+a.F*(!Y||c(function(){var t=I();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(i=e=n[1],(b(e)||void 0!==t)&&!K(t))return v(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!K(e))return e}),n[1]=e,D.apply(R,n)}}),I[j][B]||i(86)(I[j],B,I[j].valueOf),h(I,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(t,e,i){var n=i(111)("meta"),r=i(89),o=i(96),a=i(87).f,s=0,l=Object.isExtensible||function(){return!0},c=!i(92)(function(){return l(Object.preventExtensions({}))}),u=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[n].i},d=function(t,e){if(!o(t,n)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[n].w},f=function(t){return c&&p.NEED&&l(t)&&!o(t,n)&&u(t),t},p=t.exports={KEY:n,NEED:!1,fastKey:h,getWeak:d,onFreeze:f}},function(t,e,i){var n=i(82),r=i(83),o=i(110),a=i(144),s=i(87).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,i){var n=i(98),r=i(113),o=i(114);t.exports=function(t){var e=n(t),i=r.f;if(i)for(var a,s=i(t),l=o.f,c=0;s.length>c;)l.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,i){var n=i(102);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,i){var n=i(100),r=i(153).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(n(t))}},function(t,e,i){var n=i(99),r=i(112).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},function(t,e,i){var n=i(114),r=i(95),o=i(100),a=i(94),s=i(96),l=i(90),c=Object.getOwnPropertyDescriptor;e.f=i(91)?c:function(t,e){if(t=o(t),e=a(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return r(!n.f.call(t,e),t[e])}},function(t,e){},function(t,e,i){i(149)("asyncIterator")},function(t,e,i){i(149)("observable")},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(159),o=n(r),a=i(163),s=n(a),l=i(125),c=n(l);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":(0,c.default)(e)));t.prototype=(0,s.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,i){t.exports={default:i(160),__esModule:!0}},function(t,e,i){i(161),t.exports=i(83).Object.setPrototypeOf},function(t,e,i){var n=i(81);n(n.S,"Object",{setPrototypeOf:i(162).set})},function(t,e,i){var n=i(89),r=i(88),o=function(t,e){if(r(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=i(84)(Function.call,i(154).f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,i){return o(t,i),e?t.__proto__=i:n(t,i),t}}({},!1):void 0),check:o}},function(t,e,i){t.exports={default:i(164),__esModule:!0}},function(t,e,i){i(165);var n=i(83).Object;t.exports=function(t,e){return n.create(t,e)}},function(t,e,i){var n=i(81);n(n.S,"Object",{create:i(134)})},,,,,,,,,,,,,,,,,,function(t,e,i){var n,r;/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var r=typeof n;if("string"===r||"number"===r)t.push(n);else if(Array.isArray(n)&&n.length){var a=i.apply(null,n);a&&t.push(a)}else if("object"===r)for(var s in n)o.call(n,s)&&n[s]&&t.push(s)}}return t.join(" ")}var o={}.hasOwnProperty;"undefined"!=typeof t&&t.exports?(i.default=i,t.exports=i):(n=[],r=function(){return i}.apply(e,n),!(void 0!==r&&(t.exports=r)))}()},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),c=i(1),u=n(c),h=i(185),d=n(h),f=i(186),p=n(f),g=i(187),m=n(g),v=i(188),y=n(v),b=function(t){function e(t){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.state={data:{data:[],eid:0,tabid:0},more:{moreUrl:"",pageIndex:1}},i}return a(e,t),l(e,[{key:"componentDidMount",value:function(){var t=this;if(this.props.tabs&&this.props.tabs.length>0){var e={url:this.props.tabs[0].url,moreUrl:this.props.tabs[0].url,hpid:this.props.hpid,eid:this.props.eid,tabid:this.props.tabs[0].tabid};this.loadData(e),document.addEventListener("visibilitychange",function(){t.loadData(e)})}else this.setState({data:{data:[],eid:this.props.eid,tabid:0},more:{moreUrl:"",pageIndex:1}})}},{key:"componentWillReceiveProps",value:function(t){if(t.tabs&&t.tabs.length>0){var e={url:t.tabs[0].url,moreUrl:t.tabs[0].url,hpid:t.hpid,eid:t.eid,tabid:t.tabs[0].tabid};this.loadData(e)}else this.setState({data:{data:[],eid:this.props.eid,tabid:0},more:{moreUrl:"",pageIndex:1}})}},{key:"componentDidUpdate",value:function(){window.hpScroll&&window.hpScroll.refresh()}},{key:"loadData",value:function(t){var e=t.url,i=t.hpid,n=t.eid,r=t.tabid,o=e=e.replace(/^\/page\//,"/mobile/plugin/homepagemobile/");t.url=e+"?pageIndex=1",t.moreUrl=o,this.refs.more.hideMore(),this.refs.more.hideLoading();var a=JSON.parse(localStorage.getItem("hp_"+i));if(a&&a["e_"+n+"_"+r]){var s=a["e_"+n+"_"+r];this.setState({data:s,more:{moreUrl:o,pageIndex:1}}),s.data.length>0&&this.refs.more.showMore(),this.refs._loading&&this.refs._loading.hideLoading()}else this.setState({data:{data:[],eid:n,tabid:r},more:{moreUrl:o,pageIndex:1}}),this.refs._loading&&this.refs._loading.showLoading();this._loadData(t)}},{key:"_loadData",value:function(t){var e=this,i=t.url,n=t.moreUrl,r=t.hpid;fetch(i+"&now="+(new Date).getTime(),{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8","X-Requested-With":"XMLHttpRequest"},credentials:"include"}).then(function(t){t.ok?t.json().then(function(t){var i=t.eid,o=t.tabid,a=localStorage.getItem("hp_"+r);if(a){var s=JSON.parse(a);s["e_"+i+"_"+o]=t,localStorage.setItem("hp_"+r,JSON.stringify(s))}e.state.data.eid==i&&e.state.data.tabid==o&&e.setState({data:t,more:{moreUrl:n,pageIndex:1}}),t.data.length>0?e.refs.more.showMore():e.refs.more.hideMore(),e.refs._loading&&e.refs._loading.hideLoading()}):console.log("Looks like the response wasn't perfect, got status",t.status)}).catch(function(t){return console.log("Fetch failed!",t)})}},{key:"loadMoreData",value:function(){var t=this;this.refs.more.showLoading();var e=this.props.hpid,i=this.state.data.data,n=this.state.more.moreUrl,r=n,o=this.state.more.pageIndex+1;n+=n.indexOf("?")!=-1?"&pageIndex="+o:"?pageIndex="+o,fetch(n+"&now="+(new Date).getTime(),{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8","X-Requested-With":"XMLHttpRequest"},credentials:"include"}).then(function(n){n.ok?n.json().then(function(n){var a=n.eid,s=n.tabid,l=localStorage.getItem("hp_"+e),c=i.concat(n.data);if(l){var u=JSON.parse(l);u["e_"+a+"_"+s]={data:c,eid:a,tabid:s},localStorage.setItem("hp_"+e,JSON.stringify(u))}t.state.data.eid==a&&t.state.data.tabid==s&&t.setState({data:{data:c,eid:a,tabid:s},more:{moreUrl:r,pageIndex:o}}),t.refs.more.hideLoading(),n.data.length<5&&t.refs.more.hideMore()}):console.log("Looks like the response wasn't perfect, got status",n.status)}).catch(function(t){return console.log("Fetch failed!",t)})}},{key:"getDatas",value:function(){var t=this,e="";return this.state.data.data&&this.state.data.data.length>0&&(e=this.state.data.data.map(function(e,i){var n=window.navigator.userAgent.toLowerCase(),r="/mobile/plugin/1/view.jsp?detailid="+e.requestid;n.indexOf("e-mobile")!=-1?r="/workflow/request/ViewRequest.jsp?requestid="+e.requestid:n.indexOf("mobile")!=-1&&(r="/mobile/plugin/1/view.jsp?detailid="+e.requestid),e.url&&(r=e.url);var o="",a="",s="";return 1==e.flagType?o=u.default.createElement("div",{ref:"wf_flag_"+e.requestid,className:"flag1"}):2==e.flagType?o=u.default.createElement("div",{ref:"wf_flag_"+e.requestid,className:"flag2"}):3==e.flagType&&(o=u.default.createElement("div",{ref:"wf_flag_"+e.requestid,className:"flag3"})),e.importantleve?(a=u.default.createElement("span",{className:"title",style:{maxWidth:"85%"},dangerouslySetInnerHTML:{__html:e.requestname}}),s=u.default.createElement("span",{className:"importantleve"},e.importantleve)):a=u.default.createElement("span",{className:"title",style:{maxWidth:"95%"},dangerouslySetInnerHTML:{__html:e.requestname}}),u.default.createElement("li",{key:i,ref:"wf_"+e.requestid,onClick:function(){t.refs["wf_flag_"+e.requestid].style.display="none"},onTouchStart:function(){t.refs["wf_"+e.requestid].style.backgroundColor="#eee"},onTouchEnd:function(){t.refs["wf_"+e.requestid].style.backgroundColor="#fff"}},u.default.createElement("a",{href:r},u.default.createElement("div",{className:"title-div"},a,o,s),u.default.createElement("div",{className:"info-div"},u.default.createElement("div",{className:"clear"},u.default.createElement("div",{className:"username"},e.creater),u.default.createElement("div",{className:"date"},e.receivedate),u.default.createElement("div",{className:"time"},e.receivetime)),u.default.createElement("div",{className:"clear"},u.default.createElement("div",{className:"dept"},e.createrDept),u.default.createElement("div",{className:"createdate"},e.createdate)),u.default.createElement("div",{className:"clear"},u.default.createElement("div",{className:"workflowtype"},e.workflowtype),u.default.createElement("div",{className:"workflowcode"},e.workflowcode)))))})),u.default.createElement("div",{className:"data"},u.default.createElement(y.default,{ref:"_loading"}),u.default.createElement("ul",{className:"data-ul"},e))}},{key:"render",value:function(){var t=this.state.data.eid,e="item_"+t,i=this.state.data.tabid;return u.default.createElement("div",{id:e},u.default.createElement(d.default,this.props),u.default.createElement("div",{className:"content"},u.default.createElement(p.default,s({},this.props,{tabid:i,loadDataFun:this.loadData.bind(this)})),this.getDatas(),u.default.createElement(m.default,s({ref:"more"},this.props,{loadMoreDataFun:this.loadMoreData.bind(this)}))))}}]),e}(c.Component);t.exports=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=i(1),c=n(l),u=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"render",value:function(){var t="";return this.props.header&&(t=this.props.header.title),c.default.createElement("div",{className:"header"},c.default.createElement("div",{className:"title"},t))}}]),e}(l.Component);t.exports=u},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=i(1),c=n(l),u=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"componentDidMount",value:function(){var t=this.refs.tabUl.scrollWidth;this.refs.tabScroller.style.width=t+"px",new iScroll("tabWrapper_"+this.props.eid,{hScroll:!0,vScroll:!1,hScrollbar:!1,vScrollbar:!1,bounce:!1})}},{key:"render",value:function(){var t=this,e=this.props.hpid,i=this.props.eid,n=this.props.tabid,r="tabWrapper_"+i,o="tabScroller_"+i,a=this.props.tabs.length>1?{}:{display:"none"},s=this.props.tabs.map(function(r,o){var a=r.tabid==n?"active":"";return c.default.createElement("li",{key:o,className:a,onClick:function(){var n={url:r.url,moreUrl:r.moreUrl,hpid:e,eid:i,tabid:r.tabid,height:r.height};t.props.loadDataFun(n)}},r.title)});return c.default.createElement("div",{className:"tab",id:r,style:a},c.default.createElement("div",{ref:"tabScroller",id:o},c.default.createElement("ul",{ref:"tabUl",className:"tab-ul"},s)))}}]),e}(l.Component);t.exports=u},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=i(1),c=n(l),u=i(188),h=n(u),d=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"showMore",value:function(){this.refs.more.style.display="block"}},{key:"hideMore",value:function(){this.refs.more.style.display="none"}},{key:"showLoading",value:function(){this.refs.iconMore.style.display="none",this.refs._loading.showLoading()}},{key:"hideLoading",value:function(){this.refs.iconMore.style.display="block",this.refs._loading.hideLoading()}},{key:"render",value:function(){var t=this,e=this.props.tabs.length>0?{}:{display:"none"};return c.default.createElement("div",{ref:"more",className:"more",style:e,onClick:function(){t.props.loadMoreDataFun()},onTouchStart:function(){t.refs.more.style.backgroundColor="#eee"},onTouchEnd:function(){t.refs.more.style.backgroundColor="#fff"}},c.default.createElement(h.default,{ref:"_loading"}),c.default.createElement("div",{ref:"iconMore",className:"icon-more"}))}}]),e}(l.Component);t.exports=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=i(1),c=n(l),u=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"showLoading",value:function(){this.refs._loading.style.display="block"}},{key:"hideLoading",value:function(){this.refs._loading.style.display="none"}},{key:"render",value:function(){return c.default.createElement("div",{ref:"_loading",className:"_loading"},c.default.createElement("div",{className:"spinner"},c.default.createElement("div",{className:"bounce1"}),c.default.createElement("div",{className:"bounce2"}),c.default.createElement("div",{className:"bounce3"})))}}]),e}(l.Component);t.exports=u},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),c=i(1),u=n(c),h=i(185),d=n(h),f=i(186),p=n(f),g=i(187),m=n(g),v=i(188),y=n(v);i(190);var b=i(192),x=n(b),w=function(t){function e(t){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.state={data:{data:[],showType:1,eid:0,tabid:0},more:{moreUrl:"",pageIndex:1}},i}return a(e,t),l(e,[{key:"componentDidMount",value:function(){if(this.props.tabs&&this.props.tabs.length>0){var t={url:this.props.tabs[0].url,moreUrl:this.props.tabs[0].url,hpid:this.props.hpid,eid:this.props.eid,tabid:this.props.tabs[0].tabid};this.loadData(t)}else this.setState({data:{data:[],showType:1,eid:this.props.eid,tabid:0},more:{moreUrl:"",pageIndex:1}})}},{key:"componentWillReceiveProps",value:function(t){if(t.tabs&&t.tabs.length>0){var e={url:t.tabs[0].url,moreUrl:t.tabs[0].url,hpid:t.hpid,eid:t.eid,tabid:t.tabs[0].tabid};this.loadData(e)}else this.setState({data:{data:[],showType:1,eid:this.props.eid,tabid:0},more:{moreUrl:"",pageIndex:1}})}},{key:"componentDidUpdate",value:function(){window.hpScroll&&window.hpScroll.refresh()}},{key:"loadData",value:function(t){var e=t.url,i=t.hpid,n=t.eid,r=t.tabid,o=e=e.replace(/^\/page\//,"/mobile/plugin/homepagemobile/");t.url=e+"?pageIndex=1",t.moreUrl=o,this.refs.more.hideMore(),this.refs.more.hideLoading();var a=JSON.parse(localStorage.getItem("hp_"+i));if(a&&a["e_"+n+"_"+r]){var s=a["e_"+n+"_"+r];this.setState({data:s,more:{moreUrl:o,pageIndex:1}}),s.data.length>0&&this.refs.more.showMore(),this.refs._loading&&this.refs._loading.hideLoading()}else this.setState({data:{data:[],showType:1,eid:n,tabid:r},more:{moreUrl:o,pageIndex:1}}),this.refs._loading&&this.refs._loading.showLoading();this._loadData(t)}},{key:"_loadData",value:function(t){var e=this,i=t.url,n=t.moreUrl,r=t.hpid;fetch(i+"&now="+(new Date).getTime(),{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8","X-Requested-With":"XMLHttpRequest"},credentials:"include"}).then(function(t){t.ok?t.json().then(function(t){var i=t.eid,o=t.tabid,a=localStorage.getItem("hp_"+r);if(a){var s=JSON.parse(a);s["e_"+i+"_"+o]=t,localStorage.setItem("hp_"+r,JSON.stringify(s))}e.state.data.eid==i&&e.state.data.tabid==o&&e.setState({data:t,more:{moreUrl:n,pageIndex:1}}),t.data.length>0?e.refs.more.showMore():e.refs.more.hideMore(),e.refs._loading&&e.refs._loading.hideLoading()}):console.log("Looks like the response wasn't perfect, got status",t.status)}).catch(function(t){return console.log("Fetch failed!",t)})}},{key:"loadMoreData",value:function(){var t=this;this.refs.more.showLoading();var e=this.props.hpid,i=this.state.data.data,n=this.state.more.moreUrl,r=n,o=this.state.more.pageIndex+1;n+=n.indexOf("?")!=-1?"&pageIndex="+o:"?pageIndex="+o,fetch(n+"&now="+(new Date).getTime(),{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8","X-Requested-With":"XMLHttpRequest"},credentials:"include"}).then(function(n){n.ok?n.json().then(function(n){var a=n.eid,s=n.tabid,l=localStorage.getItem("hp_"+e),c=i.concat(n.data);if(l){var u=JSON.parse(l);u["e_"+a+"_"+s]={data:c,showType:n.showType,eid:a,tabid:s},localStorage.setItem("hp_"+e,JSON.stringify(u))}t.state.data.eid==a&&t.state.data.tabid==s&&t.setState({data:{data:c,showType:n.showType,eid:a,tabid:s},more:{moreUrl:r,pageIndex:o}}),t.refs.more.hideLoading(),n.data.length<5&&t.refs.more.hideMore()}):console.log("Looks like the response wasn't perfect, got status",n.status)}).catch(function(t){return console.log("Fetch failed!",t)})}},{key:"getDatas",value:function(){var t=this,e=this.state.data.showType;if("3"==e){var i=[];return this.state.data.data&&this.state.data.data.length>0&&(i=this.state.data.data.map(function(e,i){var n=window.navigator.userAgent.toLowerCase(),r="/mobile/plugin/2/view.jsp?detailid="+e.docId;n.indexOf("e-mobile")!=-1?r="/docs/docs/DocDsp.jsp?id="+e.docId:n.indexOf("mobile")!=-1&&(r="/mobile/plugin/2/view.jsp?detailid="+e.docId);var o="true"==e.isRead?"":u.default.createElement("div",{ref:"doc_flag1_"+e.docId,className:"flag1"}),a="true"==e.isRead?{maxWidth:"100%"}:{},s=e.summary&&""!=e.summary?"title":"no-summary-title";return u.default.createElement("li",{key:i,ref:"doc_"+e.docId,className:"clear left-img-list",onClick:function(){t.refs["doc_flag1_"+e.docId].style.display="none"},onTouchStart:function(){t.refs["doc_"+e.docId].style.backgroundColor="#eee"},onTouchEnd:function(){t.refs["doc_"+e.docId].style.backgroundColor="#fff"}},u.default.createElement("a",{href:r},u.default.createElement("div",{className:"left-img"},u.default.createElement("div",{style:{backgroundImage:"url("+e.imgUrl.split("|")[0]+")",backgroundSize:"100% 100%"}})),u.default.createElement("div",{className:"right-list"},u.default.createElement("div",{className:"title-div"},u.default.createElement("div",{className:s,style:a},e.docTitle),o),u.default.createElement("div",{className:"summary-div"},e.summary),u.default.createElement("div",{className:"info-div"},u.default.createElement("div",{className:"clear"},u.default.createElement("div",{className:"username"},e.creater),u.default.createElement("div",{className:"date"},e.doclastmoddate),u.default.createElement("div",{className:"time"},e.doclastmodtime))))))})),u.default.createElement("div",{className:"data"},u.default.createElement(y.default,{ref:"_loading"}),u.default.createElement("ul",{className:"data-ul"},i))}if("2"==e){var n=[],r=[];return this.state.data.data&&this.state.data.data.length>0&&(n=this.state.data.data.map(function(e,i){var n=window.navigator.userAgent.toLowerCase(),r="/mobile/plugin/2/view.jsp?detailid="+e.docId;n.indexOf("e-mobile")!=-1?r="/docs/docs/DocDsp.jsp?id="+e.docId:n.indexOf("mobile")!=-1&&(r="/mobile/plugin/2/view.jsp?detailid="+e.docId);var o="true"==e.isRead?"":u.default.createElement("div",{ref:"doc_flag1_"+e.docId,className:"flag1"}),a="true"==e.isRead?{maxWidth:"100%"}:{},s={};return e.summary||e.creater||e.doclastmoddate||e.doclastmodtime||(s={height:"30px",lineHeight:"30px"}),u.default.createElement("li",{key:i,ref:"doc_"+e.docId,onClick:function(){t.refs["doc_flag1_"+e.docId].style.display="none"},onTouchStart:function(){t.refs["doc_"+e.docId].style.backgroundColor="#eee"},onTouchEnd:function(){t.refs["doc_"+e.docId].style.backgroundColor="#fff"}},u.default.createElement("a",{href:r},u.default.createElement("div",{className:"title-div",style:s},u.default.createElement("div",{className:"title",style:a},e.docTitle),o),u.default.createElement("div",{className:"info-div"},u.default.createElement("div",{className:"clear"},u.default.createElement("div",{className:"username"},e.creater),u.default.createElement("div",{className:"date"},e.doclastmoddate),u.default.createElement("div",{className:"time"},e.doclastmodtime)))))}),this.state.data.data.map(function(t,e){var i=window.navigator.userAgent.toLowerCase(),n="/mobile/plugin/2/view.jsp?detailid="+t.docId;i.indexOf("e-mobile")!=-1?n="/docs/docs/DocDsp.jsp?id="+t.docId:i.indexOf("mobile")!=-1&&(n="/mobile/plugin/2/view.jsp?detailid="+t.docId),t.imgUrl.split("|")[0]&&r.push(u.default.createElement("div",{key:e},u.default.createElement("a",{href:n},u.default.createElement("img",{src:t.imgUrl.split("|")[0],alt:"",width:"100%",height:"auto"}))))})),u.default.createElement("div",{className:"data"},u.default.createElement(y.default,{ref:"_loading"}),u.default.createElement(x.default,{autoplay:"true",infinite:"true"},r),u.default.createElement("ul",{className:"data-ul"},n))}var o=[];return this.state.data.data&&this.state.data.data.length>0&&(o=this.state.data.data.map(function(e,i){var n=window.navigator.userAgent.toLowerCase(),r="/mobile/plugin/2/view.jsp?detailid="+e.docId;n.indexOf("e-mobile")!=-1?r="/docs/docs/DocDsp.jsp?id="+e.docId:n.indexOf("mobile")!=-1&&(r="/mobile/plugin/2/view.jsp?detailid="+e.docId);var o="true"==e.isRead?"":u.default.createElement("div",{ref:"doc_flag1_"+e.docId,className:"flag1"}),a="true"==e.isRead?{maxWidth:"100%"}:{},s={};return e.summary||e.creater||e.doclastmoddate||e.doclastmodtime||(s={height:"30px",lineHeight:"30px"}),u.default.createElement("li",{key:i,ref:"doc_"+e.docId,onClick:function(){t.refs["doc_flag1_"+e.docId].style.display="none"},onTouchStart:function(){t.refs["doc_"+e.docId].style.backgroundColor="#eee"},onTouchEnd:function(){t.refs["doc_"+e.docId].style.backgroundColor="#fff"}},u.default.createElement("a",{href:r},u.default.createElement("div",{className:"title-div",style:s},u.default.createElement("div",{className:"title",style:a},e.docTitle),o),u.default.createElement("div",{className:"info-div"},u.default.createElement("div",{className:"clear"},u.default.createElement("div",{className:"username"},e.creater),u.default.createElement("div",{className:"date"},e.doclastmoddate),u.default.createElement("div",{className:"time"},e.doclastmodtime)))))})),u.default.createElement("div",{className:"data"},u.default.createElement(y.default,{ref:"_loading"}),u.default.createElement("ul",{className:"data-ul"},o))}},{key:"render",value:function(){var t=this.state.data.eid,e="item_"+t,i=this.state.data.tabid;return u.default.createElement("div",{id:e},u.default.createElement(d.default,this.props),u.default.createElement("div",{className:"content"},u.default.createElement(p.default,s({},this.props,{tabid:i,loadDataFun:this.loadData.bind(this)})),this.getDatas(),u.default.createElement(m.default,s({ref:"more"},this.props,{loadMoreDataFun:this.loadMoreData.bind(this)}))))}}]),e}(c.Component);t.exports=w},function(t,e,i){"use strict";i(70),i(191)},function(t,e){},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(77),o=n(r),a=i(119),s=n(a),l=i(75),c=n(l),u=i(124),h=n(u),d=i(158),f=n(d),p=i(1),g=n(p),m=i(183),v=n(m),y=i(193),b=n(y),x=i(31),w=n(x),S=function(t){function e(i){(0,c.default)(this,e);var n=(0,h.default)(this,t.call(this,i));return n.state={selectedIndex:n.props.selectedIndex},n.onChange=n.onChange.bind(n),n}return(0,f.default)(e,t),e.prototype.onChange=function(t){this.setState({selectedIndex:t})},e.prototype.render=function(){var t=this.props,e=t.prefixCls,i=t.children,n=this.state.selectedIndex,r=void 0;if(!i)return null;var a=(0,w.default)({},this.props);a.infinite&&(a.wrapAround=!0),a.selectedIndex&&(a.slideIndex=a.selectedIndex),a.beforeChange&&(a.beforeSlide=a.beforeChange),a.afterChange&&(a.afterSlide=a.afterChange),a.vertical&&(r=a.prefixCls+" "+a.prefixCls+"-vertical");var l=[];return a.dots&&(l=[{component:g.default.createClass({displayName:"component",render:function(){var t=this,i=this.getIndexes(t.props.slideCount,t.props.slidesToScroll);return g.default.createElement("div",{className:e+"-wrap"},i.map(function(t){var i,r=(0,v.default)((i={},(0,s.default)(i,e+"-wrap-dot",!0),(0,s.default)(i,e+"-wrap-dot-active",t===n),i));return g.default.createElement("div",{className:r,key:t},g.default.createElement("span",null))}))},getIndexes:function(t,e){for(var i=[],n=0;n<t;n+=e)i.push(n);return i}}),position:"BottomCenter"}]),g.default.createElement("div",{className:r},g.default.createElement(b.default,(0,o.default)({},a,{decorators:l,afterSlide:this.onChange})))},e}(g.default.Component);e.default=S,S.defaultProps={prefixCls:"am-carousel",dots:!0,arrows:!1,autoplay:!1,infinite:!1,edgeEasing:"linear",cellAlign:"center",selectedIndex:0},t.exports=e.default},function(t,e,i){"use strict";var n=i(194);t.exports=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},o=i(1),a=n(o),s=i(2),l=(n(s),i(195)),c=n(l),u=i(196),h=n(u),d=i(31),f=n(d),p=i(197),g=n(p),m=function(t,e,i){null!==t&&"undefined"!=typeof t&&(t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent?t.attachEvent("on"+e,i):t["on"+e]=i)},v=function(t,e,i){null!==t&&"undefined"!=typeof t&&(t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent?t.detachEvent("on"+e,i):t["on"+e]=null)},y=a.default.createClass({displayName:"Carousel",mixins:[c.default.Mixin],propTypes:{afterSlide:a.default.PropTypes.func,autoplay:a.default.PropTypes.bool,autoplayInterval:a.default.PropTypes.number,beforeSlide:a.default.PropTypes.func,cellAlign:a.default.PropTypes.oneOf(["left","center","right"]),cellSpacing:a.default.PropTypes.number,data:a.default.PropTypes.func,decorators:a.default.PropTypes.arrayOf(a.default.PropTypes.shape({component:a.default.PropTypes.func,position:a.default.PropTypes.oneOf(["TopLeft","TopCenter","TopRight","CenterLeft","CenterCenter","CenterRight","BottomLeft","BottomCenter","BottomRight"]),style:a.default.PropTypes.object})),dragging:a.default.PropTypes.bool,easing:a.default.PropTypes.string,edgeEasing:a.default.PropTypes.string,framePadding:a.default.PropTypes.string,frameOverflow:a.default.PropTypes.string,initialSlideHeight:a.default.PropTypes.number,initialSlideWidth:a.default.PropTypes.number,slideIndex:a.default.PropTypes.number,slidesToShow:a.default.PropTypes.number,slidesToScroll:a.default.PropTypes.oneOfType([a.default.PropTypes.number,a.default.PropTypes.oneOf(["auto"])]),slideWidth:a.default.PropTypes.oneOfType([a.default.PropTypes.string,a.default.PropTypes.number]),speed:a.default.PropTypes.number,swiping:a.default.PropTypes.bool,vertical:a.default.PropTypes.bool,width:a.default.PropTypes.string,wrapAround:a.default.PropTypes.bool},getDefaultProps:function(){return{afterSlide:function(){},autoplay:!1,autoplayInterval:3e3,beforeSlide:function(){},cellAlign:"left",cellSpacing:0,data:function(){},decorators:h.default,dragging:!0,easing:"easeOutCirc",edgeEasing:"easeOutElastic",framePadding:"0px",frameOverflow:"hidden",slideIndex:0,slidesToScroll:1,slidesToShow:1,slideWidth:1,speed:500,swiping:!0,vertical:!1,width:"100%",wrapAround:!1}},getInitialState:function(){return{currentSlide:this.props.slideIndex,dragging:!1,frameWidth:0,left:0,slideCount:0,slidesToScroll:this.props.slidesToScroll,slideWidth:0,top:0}},componentWillMount:function(){this.setInitialDimensions()},componentDidMount:function(){this.setDimensions(),this.bindEvents(),this.setExternalData(),this.props.autoplay&&this.startAutoplay()},componentWillReceiveProps:function(t){this.setState({slideCount:t.children.length}),this.setDimensions(t),this.props.slideIndex!==t.slideIndex&&t.slideIndex!==this.state.currentSlide&&this.goToSlide(t.slideIndex),this.props.autoplay!==t.autoplay&&(t.autoplay?this.startAutoplay():this.stopAutoplay())},componentWillUnmount:function(){this.unbindEvents(),this.stopAutoplay()},render:function(){var t=this,e=a.default.Children.count(this.props.children)>1?this.formatChildren(this.props.children):this.props.children;return a.default.createElement("div",{className:["slider",this.props.className||""].join(" "),ref:"slider",style:(0,f.default)(this.getSliderStyles(),this.props.style||{})},a.default.createElement("div",r({className:"slider-frame",ref:"frame",style:this.getFrameStyles()},this.getTouchEvents(),this.getMouseEvents(),{onClick:this.handleClick}),a.default.createElement("ul",{className:"slider-list",ref:"list",style:this.getListStyles()},e)),this.props.decorators?this.props.decorators.map(function(e,i){return a.default.createElement("div",{style:(0,f.default)(t.getDecoratorStyles(e.position),e.style||{}),className:"slider-decorator-"+i,key:i},a.default.createElement(e.component,{currentSlide:t.state.currentSlide,slideCount:t.state.slideCount,frameWidth:t.state.frameWidth,slideWidth:t.state.slideWidth,slidesToScroll:t.state.slidesToScroll,cellSpacing:t.props.cellSpacing,slidesToShow:t.props.slidesToShow,wrapAround:t.props.wrapAround,nextSlide:t.nextSlide,previousSlide:t.previousSlide,goToSlide:t.goToSlide}))}):null,a.default.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:t.getStyleTagStyles()}}))},touchObject:{},getTouchEvents:function(){var t=this;return t.props.swiping===!1?null:{onTouchStart:function(e){t.touchObject={startX:e.touches[0].pageX,startY:e.touches[0].pageY},t.handleMouseOver()},onTouchMove:function(e){var i=t.swipeDirection(t.touchObject.startX,e.touches[0].pageX,t.touchObject.startY,e.touches[0].pageY);0!==i&&e.preventDefault();var n=t.props.vertical?Math.round(Math.sqrt(Math.pow(e.touches[0].pageY-t.touchObject.startY,2))):Math.round(Math.sqrt(Math.pow(e.touches[0].pageX-t.touchObject.startX,2)));t.touchObject={startX:t.touchObject.startX,startY:t.touchObject.startY,
endX:e.touches[0].pageX,endY:e.touches[0].pageY,length:n,direction:i},t.setState({left:t.props.vertical?0:t.getTargetLeft(t.touchObject.length*t.touchObject.direction),top:t.props.vertical?t.getTargetLeft(t.touchObject.length*t.touchObject.direction):0})},onTouchEnd:function(e){t.handleSwipe(e),t.handleMouseOut()},onTouchCancel:function(e){t.handleSwipe(e)}}},clickSafe:!0,getMouseEvents:function(){var t=this;return this.props.dragging===!1?null:{onMouseOver:function(){t.handleMouseOver()},onMouseOut:function(){t.handleMouseOut()},onMouseDown:function(e){t.touchObject={startX:e.clientX,startY:e.clientY},t.setState({dragging:!0})},onMouseMove:function(e){if(t.state.dragging){var i=t.swipeDirection(t.touchObject.startX,e.clientX,t.touchObject.startY,e.clientY);0!==i&&e.preventDefault();var n=t.props.vertical?Math.round(Math.sqrt(Math.pow(e.clientY-t.touchObject.startY,2))):Math.round(Math.sqrt(Math.pow(e.clientX-t.touchObject.startX,2)));t.touchObject={startX:t.touchObject.startX,startY:t.touchObject.startY,endX:e.clientX,endY:e.clientY,length:n,direction:i},t.setState({left:t.props.vertical?0:t.getTargetLeft(t.touchObject.length*t.touchObject.direction),top:t.props.vertical?t.getTargetLeft(t.touchObject.length*t.touchObject.direction):0})}},onMouseUp:function(e){t.state.dragging&&t.handleSwipe(e)},onMouseLeave:function(e){t.state.dragging&&t.handleSwipe(e)}}},handleMouseOver:function(){this.props.autoplay&&(this.autoplayPaused=!0,this.stopAutoplay())},handleMouseOut:function(){this.props.autoplay&&this.autoplayPaused&&(this.startAutoplay(),this.autoplayPaused=null)},handleClick:function(t){this.clickSafe===!0&&(t.preventDefault(),t.stopPropagation(),t.nativeEvent&&t.nativeEvent.stopPropagation())},handleSwipe:function(t){"undefined"!=typeof this.touchObject.length&&this.touchObject.length>44?this.clickSafe=!0:this.clickSafe=!1;var e=this.props.slidesToShow;"auto"===this.props.slidesToScroll&&(e=this.state.slidesToScroll),this.touchObject.length>this.state.slideWidth/e/5?1===this.touchObject.direction?this.state.currentSlide>=a.default.Children.count(this.props.children)-e&&!this.props.wrapAround?this.animateSlide(c.default.easingTypes[this.props.edgeEasing]):this.nextSlide():this.touchObject.direction===-1&&(this.state.currentSlide<=0&&!this.props.wrapAround?this.animateSlide(c.default.easingTypes[this.props.edgeEasing]):this.previousSlide()):this.goToSlide(this.state.currentSlide),this.touchObject={},this.setState({dragging:!1})},swipeDirection:function(t,e,i,n){var r,o,a,s;return r=t-e,o=i-n,a=Math.atan2(o,r),s=Math.round(180*a/Math.PI),s<0&&(s=360-Math.abs(s)),s<=45&&s>=0?1:s<=360&&s>=315?1:s>=135&&s<=225?-1:this.props.vertical===!0?s>=35&&s<=135?1:-1:0},autoplayIterator:function(){return this.props.wrapAround?this.nextSlide():void(this.state.currentSlide!==this.state.slideCount-this.state.slidesToShow?this.nextSlide():this.stopAutoplay())},startAutoplay:function(){this.autoplayID=setInterval(this.autoplayIterator,this.props.autoplayInterval)},resetAutoplay:function(){this.props.autoplay&&!this.autoplayPaused&&(this.stopAutoplay(),this.startAutoplay())},stopAutoplay:function(){this.autoplayID&&clearInterval(this.autoplayID)},goToSlide:function(t){var e=this;if(t>=a.default.Children.count(this.props.children)||t<0){if(!this.props.wrapAround)return;if(t>=a.default.Children.count(this.props.children))return this.props.beforeSlide(this.state.currentSlide,0),this.setState({currentSlide:0},function(){e.animateSlide(null,null,e.getTargetLeft(null,t),function(){e.animateSlide(null,.01),e.props.afterSlide(0),e.resetAutoplay(),e.setExternalData()})});var i=a.default.Children.count(this.props.children)-this.state.slidesToScroll;return this.props.beforeSlide(this.state.currentSlide,i),this.setState({currentSlide:i},function(){e.animateSlide(null,null,e.getTargetLeft(null,t),function(){e.animateSlide(null,.01),e.props.afterSlide(i),e.resetAutoplay(),e.setExternalData()})})}this.props.beforeSlide(this.state.currentSlide,t),this.setState({currentSlide:t},function(){e.animateSlide(),this.props.afterSlide(t),e.resetAutoplay(),e.setExternalData()})},nextSlide:function(){var t=a.default.Children.count(this.props.children),e=this.props.slidesToShow;if("auto"===this.props.slidesToScroll&&(e=this.state.slidesToScroll),!(this.state.currentSlide>=t-e)||this.props.wrapAround)if(this.props.wrapAround)this.goToSlide(this.state.currentSlide+this.state.slidesToScroll);else{if(1!==this.props.slideWidth)return this.goToSlide(this.state.currentSlide+this.state.slidesToScroll);this.goToSlide(Math.min(this.state.currentSlide+this.state.slidesToScroll,t-e))}},previousSlide:function(){this.state.currentSlide<=0&&!this.props.wrapAround||(this.props.wrapAround?this.goToSlide(this.state.currentSlide-this.state.slidesToScroll):this.goToSlide(Math.max(0,this.state.currentSlide-this.state.slidesToScroll)))},animateSlide:function(t,e,i,n){this.tweenState(this.props.vertical?"top":"left",{easing:t||c.default.easingTypes[this.props.easing],duration:e||this.props.speed,endValue:i||this.getTargetLeft(),onEnd:n||null})},getTargetLeft:function(t,e){var i,n=e||this.state.currentSlide;switch(this.props.cellAlign){case"left":i=0,i-=this.props.cellSpacing*n;break;case"center":i=(this.state.frameWidth-this.state.slideWidth)/2,i-=this.props.cellSpacing*n;break;case"right":i=this.state.frameWidth-this.state.slideWidth,i-=this.props.cellSpacing*n}var r=this.state.slideWidth*n,o=this.state.currentSlide>0&&n+this.state.slidesToScroll>=this.state.slideCount;return o&&1!==this.props.slideWidth&&!this.props.wrapAround&&"auto"===this.props.slidesToScroll&&(r=this.state.slideWidth*this.state.slideCount-this.state.frameWidth,i=0,i-=this.props.cellSpacing*(this.state.slideCount-1)),i-=t||0,(r-i)*-1},bindEvents:function(){var t=this;g.default.canUseDOM&&(m(window,"resize",t.onResize),m(document,"readystatechange",t.onReadyStateChange))},onResize:function(){this.setDimensions()},onReadyStateChange:function(){this.setDimensions()},unbindEvents:function(){var t=this;g.default.canUseDOM&&(v(window,"resize",t.onResize),v(document,"readystatechange",t.onReadyStateChange))},formatChildren:function(t){var e=this,i=this.props.vertical?this.getTweeningValue("top"):this.getTweeningValue("left");return a.default.Children.map(t,function(t,n){return a.default.createElement("li",{className:"slider-slide",style:e.getSlideStyles(n,i),key:n},t)})},setInitialDimensions:function(){var t,e,i,n=this;t=this.props.vertical?this.props.initialSlideHeight||0:this.props.initialSlideWidth||0,i=this.props.initialSlideHeight?this.props.initialSlideHeight*this.props.slidesToShow:0,e=i+this.props.cellSpacing*(this.props.slidesToShow-1),this.setState({slideHeight:i,frameWidth:this.props.vertical?e:"100%",slideCount:a.default.Children.count(this.props.children),slideWidth:t},function(){n.setLeft(),n.setExternalData()})},setDimensions:function(t){t=t||this.props;var e,i,n,r,o,a,s,l=this;i=t.slidesToScroll,r=this.refs.frame,n=r.childNodes[0].childNodes[0],n?(n.style.height="auto",s=this.props.vertical?n.offsetHeight*t.slidesToShow:n.offsetHeight):s=100,e="number"!=typeof t.slideWidth?parseInt(t.slideWidth):t.vertical?s/t.slidesToShow*t.slideWidth:r.offsetWidth/t.slidesToShow*t.slideWidth,t.vertical||(e-=t.cellSpacing*((100-100/t.slidesToShow)/100)),a=s+t.cellSpacing*(t.slidesToShow-1),o=t.vertical?a:r.offsetWidth,"auto"===t.slidesToScroll&&(i=Math.floor(o/(e+t.cellSpacing))),this.setState({slideHeight:s,frameWidth:o,slideWidth:e,slidesToScroll:i,left:t.vertical?0:this.getTargetLeft(),top:t.vertical?this.getTargetLeft():0},function(){l.setLeft()})},setLeft:function(){this.setState({left:this.props.vertical?0:this.getTargetLeft(),top:this.props.vertical?this.getTargetLeft():0})},setExternalData:function(){this.props.data&&this.props.data()},getListStyles:function(){var t=this.state.slideWidth*a.default.Children.count(this.props.children),e=this.props.cellSpacing*a.default.Children.count(this.props.children),i="translate3d("+this.getTweeningValue("left")+"px, "+this.getTweeningValue("top")+"px, 0)";return{transform:i,WebkitTransform:i,msTransform:"translate("+this.getTweeningValue("left")+"px, "+this.getTweeningValue("top")+"px)",position:"relative",display:"block",margin:this.props.vertical?this.props.cellSpacing/2*-1+"px 0px":"0px "+this.props.cellSpacing/2*-1+"px",padding:0,height:this.props.vertical?t+e:this.state.slideHeight,width:this.props.vertical?"auto":t+e,cursor:this.state.dragging===!0?"pointer":"inherit",boxSizing:"border-box",MozBoxSizing:"border-box"}},getFrameStyles:function(){return{position:"relative",display:"block",overflow:this.props.frameOverflow,height:this.props.vertical?this.state.frameWidth||"initial":"auto",margin:this.props.framePadding,padding:0,transform:"translate3d(0, 0, 0)",WebkitTransform:"translate3d(0, 0, 0)",msTransform:"translate(0, 0)",boxSizing:"border-box",MozBoxSizing:"border-box"}},getSlideStyles:function(t,e){var i=this.getSlideTargetPosition(t,e);return{position:"absolute",left:this.props.vertical?0:i,top:this.props.vertical?i:0,display:this.props.vertical?"block":"inline-block",listStyleType:"none",verticalAlign:"top",width:this.props.vertical?"100%":this.state.slideWidth,height:"auto",boxSizing:"border-box",MozBoxSizing:"border-box",marginLeft:this.props.vertical?"auto":this.props.cellSpacing/2,marginRight:this.props.vertical?"auto":this.props.cellSpacing/2,marginTop:this.props.vertical?this.props.cellSpacing/2:"auto",marginBottom:this.props.vertical?this.props.cellSpacing/2:"auto"}},getSlideTargetPosition:function(t,e){var i=this.state.frameWidth/this.state.slideWidth,n=(this.state.slideWidth+this.props.cellSpacing)*t,r=(this.state.slideWidth+this.props.cellSpacing)*i*-1;if(this.props.wrapAround){var o=Math.ceil(e/this.state.slideWidth);if(this.state.slideCount-o<=t)return(this.state.slideWidth+this.props.cellSpacing)*(this.state.slideCount-t)*-1;var a=Math.ceil((Math.abs(e)-Math.abs(r))/this.state.slideWidth);if(1!==this.state.slideWidth&&(a=Math.ceil((Math.abs(e)-this.state.slideWidth)/this.state.slideWidth)),t<=a-1)return(this.state.slideWidth+this.props.cellSpacing)*(this.state.slideCount+t)}return n},getSliderStyles:function(){return{position:"relative",display:"block",width:this.props.width,height:"auto",boxSizing:"border-box",MozBoxSizing:"border-box",visibility:this.state.slideWidth?"visible":"hidden"}},getStyleTagStyles:function(){return".slider-slide > img {width: 100%; display: block;}"},getDecoratorStyles:function(t){switch(t){case"TopLeft":return{position:"absolute",top:0,left:0};case"TopCenter":return{position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",WebkitTransform:"translateX(-50%)",msTransform:"translateX(-50%)"};case"TopRight":return{position:"absolute",top:0,right:0};case"CenterLeft":return{position:"absolute",top:"50%",left:0,transform:"translateY(-50%)",WebkitTransform:"translateY(-50%)",msTransform:"translateY(-50%)"};case"CenterCenter":return{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",WebkitTransform:"translate(-50%, -50%)",msTransform:"translate(-50%, -50%)"};case"CenterRight":return{position:"absolute",top:"50%",right:0,transform:"translateY(-50%)",WebkitTransform:"translateY(-50%)",msTransform:"translateY(-50%)"};case"BottomLeft":return{position:"absolute",bottom:0,left:0};case"BottomCenter":return{position:"absolute",bottom:0,left:"50%",transform:"translateX(-50%)",WebkitTransform:"translateX(-50%)",msTransform:"translateX(-50%)"};case"BottomRight":return{position:"absolute",bottom:0,right:0};default:return{position:"absolute",top:0,left:0}}}});y.ControllerMixin={getInitialState:function(){return{carousels:{}}},setCarouselData:function(t){var e=this.state.carousels;e[t]=this.refs[t],this.setState({carousels:e})}},e.default=y,t.exports=e.default},function(t,e,i){!function(e,i){t.exports=i()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}({0:/*!*****************!*\
!*** multi lib ***!
\*****************/
function(t,e,i){t.exports=i(/*! ./index.js */169)},5:/*!******************************!*\
!*** ./~/process/browser.js ***!
\******************************/
function(t,e){function i(){c=!1,a.length?l=a.concat(l):u=-1,l.length&&n()}function n(){if(!c){var t=setTimeout(i);c=!0;for(var e=l.length;e;){for(a=l,l=[];++u<e;)a&&a[u].run();u=-1,e=l.length}a=null,c=!1,clearTimeout(t)}}function r(t,e){this.fun=t,this.array=e}function o(){}var a,s=t.exports={},l=[],c=!1,u=-1;s.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new r(t,e)),1!==l.length||c||setTimeout(n,0)},r.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=o,s.addListener=o,s.once=o,s.off=o,s.removeListener=o,s.removeAllListeners=o,s.emit=o,s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},169:/*!******************!*\
!*** ./index.js ***!
\******************/
function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=i(/*! tween-functions */170),o=n(r),a=i(/*! raf */171),s=n(a),l="ADDITIVE",c=r.easeInOutQuad,u=300,h=0,d={ADDITIVE:"ADDITIVE",DESTRUCTIVE:"DESTRUCTIVE"},f={_rafID:null,getInitialState:function(){return{tweenQueue:[]}},componentWillUnmount:function(){s.default.cancel(this._rafID),this._rafID=-1},tweenState:function(t,e){var i=this,n=e.easing,r=e.duration,o=e.delay,a=e.beginValue,f=e.endValue,p=e.onEnd,g=e.stackBehavior;this.setState(function(e){var m=e,v=void 0,y=void 0;if("string"==typeof t)v=t,y=t;else{for(var b=0;b<t.length-1;b++)m=m[t[b]];v=t[t.length-1],y=t.join("|")}var x={easing:n||c,duration:null==r?u:r,delay:null==o?h:o,beginValue:null==a?m[v]:a,endValue:f,onEnd:p,stackBehavior:g||l},w=e.tweenQueue;return x.stackBehavior===d.DESTRUCTIVE&&(w=e.tweenQueue.filter(function(t){return t.pathHash!==y})),w.push({pathHash:y,config:x,initTime:Date.now()+x.delay}),m[v]=x.endValue,1===w.length&&(i._rafID=(0,s.default)(i._rafCb)),{tweenQueue:w}})},getTweeningValue:function(t){var e=this.state,i=void 0,n=void 0;if("string"==typeof t)i=e[t],n=t;else{i=e;for(var r=0;r<t.length;r++)i=i[t[r]];n=t.join("|")}for(var o=Date.now(),r=0;r<e.tweenQueue.length;r++){var a=e.tweenQueue[r],s=a.pathHash,l=a.initTime,c=a.config;if(s===n){var u=o-l>c.duration?c.duration:Math.max(0,o-l),h=0===c.duration?c.endValue:c.easing(u,c.beginValue,c.endValue,c.duration),d=h-c.endValue;i+=d}}return i},_rafCb:function(){var t=this.state;if(0!==t.tweenQueue.length){for(var e=Date.now(),i=[],n=0;n<t.tweenQueue.length;n++){var r=t.tweenQueue[n],o=r.initTime,a=r.config;e-o<a.duration?i.push(r):a.onEnd&&a.onEnd()}this._rafID!==-1&&(this.setState({tweenQueue:i}),this._rafID=(0,s.default)(this._rafCb))}}};e.default={Mixin:f,easingTypes:o.default,stackBehavior:d},t.exports=e.default},170:/*!************************************!*\
!*** ./~/tween-functions/index.js ***!
\************************************/
function(t,e){"use strict";var i={linear:function(t,e,i,n){var r=i-e;return r*t/n+e},easeInQuad:function(t,e,i,n){var r=i-e;return r*(t/=n)*t+e},easeOutQuad:function(t,e,i,n){var r=i-e;return-r*(t/=n)*(t-2)+e},easeInOutQuad:function(t,e,i,n){var r=i-e;return(t/=n/2)<1?r/2*t*t+e:-r/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,i,n){var r=i-e;return r*(t/=n)*t*t+e},easeOutCubic:function(t,e,i,n){var r=i-e;return r*((t=t/n-1)*t*t+1)+e},easeInOutCubic:function(t,e,i,n){var r=i-e;return(t/=n/2)<1?r/2*t*t*t+e:r/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,i,n){var r=i-e;return r*(t/=n)*t*t*t+e},easeOutQuart:function(t,e,i,n){var r=i-e;return-r*((t=t/n-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,i,n){var r=i-e;return(t/=n/2)<1?r/2*t*t*t*t+e:-r/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,i,n){var r=i-e;return r*(t/=n)*t*t*t*t+e},easeOutQuint:function(t,e,i,n){var r=i-e;return r*((t=t/n-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,i,n){var r=i-e;return(t/=n/2)<1?r/2*t*t*t*t*t+e:r/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,i,n){var r=i-e;return-r*Math.cos(t/n*(Math.PI/2))+r+e},easeOutSine:function(t,e,i,n){var r=i-e;return r*Math.sin(t/n*(Math.PI/2))+e},easeInOutSine:function(t,e,i,n){var r=i-e;return-r/2*(Math.cos(Math.PI*t/n)-1)+e},easeInExpo:function(t,e,i,n){var r=i-e;return 0==t?e:r*Math.pow(2,10*(t/n-1))+e},easeOutExpo:function(t,e,i,n){var r=i-e;return t==n?e+r:r*(-Math.pow(2,-10*t/n)+1)+e},easeInOutExpo:function(t,e,i,n){var r=i-e;return 0===t?e:t===n?e+r:(t/=n/2)<1?r/2*Math.pow(2,10*(t-1))+e:r/2*(-Math.pow(2,-10*--t)+2)+e},easeInCirc:function(t,e,i,n){var r=i-e;return-r*(Math.sqrt(1-(t/=n)*t)-1)+e},easeOutCirc:function(t,e,i,n){var r=i-e;return r*Math.sqrt(1-(t=t/n-1)*t)+e},easeInOutCirc:function(t,e,i,n){var r=i-e;return(t/=n/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+e:r/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,i,n){var r,o,a,s=i-e;return a=1.70158,o=0,r=s,0===t?e:1===(t/=n)?e+s:(o||(o=.3*n),r<Math.abs(s)?(r=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/r),-(r*Math.pow(2,10*(t-=1))*Math.sin((t*n-a)*(2*Math.PI)/o))+e)},easeOutElastic:function(t,e,i,n){var r,o,a,s=i-e;return a=1.70158,o=0,r=s,0===t?e:1===(t/=n)?e+s:(o||(o=.3*n),r<Math.abs(s)?(r=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/r),r*Math.pow(2,-10*t)*Math.sin((t*n-a)*(2*Math.PI)/o)+s+e)},easeInOutElastic:function(t,e,i,n){var r,o,a,s=i-e;return a=1.70158,o=0,r=s,0===t?e:2===(t/=n/2)?e+s:(o||(o=n*(.3*1.5)),r<Math.abs(s)?(r=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/r),t<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t*n-a)*(2*Math.PI)/o))+e:r*Math.pow(2,-10*(t-=1))*Math.sin((t*n-a)*(2*Math.PI)/o)*.5+s+e)},easeInBack:function(t,e,i,n,r){var o=i-e;return void 0===r&&(r=1.70158),o*(t/=n)*t*((r+1)*t-r)+e},easeOutBack:function(t,e,i,n,r){var o=i-e;return void 0===r&&(r=1.70158),o*((t=t/n-1)*t*((r+1)*t+r)+1)+e},easeInOutBack:function(t,e,i,n,r){var o=i-e;return void 0===r&&(r=1.70158),(t/=n/2)<1?o/2*(t*t*(((r*=1.525)+1)*t-r))+e:o/2*((t-=2)*t*(((r*=1.525)+1)*t+r)+2)+e},easeInBounce:function(t,e,n,r){var o,a=n-e;return o=i.easeOutBounce(r-t,0,a,r),a-o+e},easeOutBounce:function(t,e,i,n){var r=i-e;return(t/=n)<1/2.75?r*(7.5625*t*t)+e:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+e:r*(7.5625*(t-=2.625/2.75)*t+.984375)+e},easeInOutBounce:function(t,e,n,r){var o,a=n-e;return t<r/2?(o=i.easeInBounce(2*t,0,a,r),.5*o+e):(o=i.easeOutBounce(2*t-r,0,a,r),.5*o+.5*a+e)}};t.exports=i},171:/*!************************!*\
!*** ./~/raf/index.js ***!
\************************/
function(t,e,i){(function(e){for(var n=i(/*! performance-now */172),r="undefined"==typeof window?e:window,o=["moz","webkit"],a="AnimationFrame",s=r["request"+a],l=r["cancel"+a]||r["cancelRequest"+a],c=0;!s&&c<o.length;c++)s=r[o[c]+"Request"+a],l=r[o[c]+"Cancel"+a]||r[o[c]+"CancelRequest"+a];if(!s||!l){var u=0,h=0,d=[],f=1e3/60;s=function(t){if(0===d.length){var e=n(),i=Math.max(0,f-(e-u));u=i+e,setTimeout(function(){var t=d.slice(0);d.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout(function(){throw t},0)}},Math.round(i))}return d.push({handle:++h,callback:t,cancelled:!1}),h},l=function(t){for(var e=0;e<d.length;e++)d[e].handle===t&&(d[e].cancelled=!0)}}t.exports=function(t){return s.call(r,t)},t.exports.cancel=function(){l.apply(r,arguments)},t.exports.polyfill=function(){r.requestAnimationFrame=s,r.cancelAnimationFrame=l}}).call(e,function(){return this}())},172:/*!**************************************************!*\
!*** ./~/performance-now/lib/performance-now.js ***!
\**************************************************/
function(t,e,i){(function(e){(function(){var i,n,r;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof e&&null!==e&&e.hrtime?(t.exports=function(){return(i()-r)/1e6},n=e.hrtime,i=function(){var t;return t=n(),1e9*t[0]+t[1]},r=i()):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)}).call(e,i(/*! ./~/process/browser.js */5))}})})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=i(1),o=n(r),a=[{component:o.default.createClass({displayName:"component",render:function(){return o.default.createElement("button",{style:this.getButtonStyles(0===this.props.currentSlide&&!this.props.wrapAround),onClick:this.handleClick},"PREV")},handleClick:function(t){t.preventDefault(),this.props.previousSlide()},getButtonStyles:function(t){return{border:0,background:"rgba(0,0,0,0.4)",color:"white",padding:10,outline:0,opacity:t?.3:1,cursor:"pointer"}}}),position:"CenterLeft"},{component:o.default.createClass({displayName:"component",render:function(){return o.default.createElement("button",{style:this.getButtonStyles(this.props.currentSlide+this.props.slidesToScroll>=this.props.slideCount&&!this.props.wrapAround),onClick:this.handleClick},"NEXT")},handleClick:function(t){t.preventDefault(),this.props.nextSlide()},getButtonStyles:function(t){return{border:0,background:"rgba(0,0,0,0.4)",color:"white",padding:10,outline:0,opacity:t?.3:1,cursor:"pointer"}}}),position:"CenterRight"},{component:o.default.createClass({displayName:"component",render:function(){var t=this,e=this.getIndexes(t.props.slideCount,t.props.slidesToScroll);return o.default.createElement("ul",{style:t.getListStyles()},e.map(function(e){return o.default.createElement("li",{style:t.getListItemStyles(),key:e},o.default.createElement("button",{style:t.getButtonStyles(t.props.currentSlide===e),onClick:t.props.goToSlide.bind(null,e)},"•"))}))},getIndexes:function(t,e){for(var i=[],n=0;n<t;n+=e)i.push(n);return i},getListStyles:function(){return{position:"relative",margin:0,top:-10,padding:0}},getListItemStyles:function(){return{listStyleType:"none",display:"inline-block"}},getButtonStyles:function(t){return{border:0,background:"transparent",color:"black",cursor:"pointer",padding:10,outline:0,fontSize:24,opacity:t?1:.5}}}),position:"BottomCenter"}];e.default=a,t.exports=e.default},function(t,e,i){var n;/*!
Copyright (c) 2015 Jed Watson.
Based on code that is Copyright 2013-2015, Facebook, Inc.
All rights reserved.
*/
!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};n=function(){return o}.call(e,i,e,t),!(void 0!==n&&(t.exports=n))}()},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),c=i(1),u=n(c),h=i(185),d=(n(h),i(186)),f=n(d),p=i(187),g=n(p),m=i(188),v=n(m),y=function(t){function e(t){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.state={data:{html:"",eid:0,tabid:0,url:"",height:""},more:{moreUrl:"",pageIndex:1}},i}return a(e,t),l(e,[{key:"componentDidMount",value:function(){if(this.props.tabs&&this.props.tabs.length>0){var t={url:this.props.tabs[0].url,moreUrl:this.props.tabs[0].moreUrl,hpid:this.props.hpid,eid:this.props.eid,tabid:this.props.tabs[0].tabid,height:this.props.tabs[0].height};this.loadData(t)}else this.setState({data:{html:"",eid:this.props.eid,tabid:0},more:{moreUrl:"",pageIndex:1}})}},{key:"componentWillReceiveProps",value:function(t){if(t.tabs&&t.tabs.length>0){var e={url:t.tabs[0].url,moreUrl:t.tabs[0].moreUrl,hpid:t.hpid,eid:t.eid,tabid:t.tabs[0].tabid,height:t.tabs[0].height};this.loadData(e)}else this.setState({data:{html:"",eid:this.props.eid,tabid:0},more:{moreUrl:"",pageIndex:1}})}},{key:"componentDidUpdate",value:function(){this.refs.customArea.innerHTML=this.state.data.html,window.hpScroll&&window.hpScroll.refresh()}},{key:"loadData",value:function(t){var e=t.url,i=t.moreUrl,n=t.hpid,r=t.eid,o=t.tabid,a=t.height;if(/^(http|https):\/\/([\w.]+\/?)\S*/.test(e))this.refs.more.hideMore(),this.refs._loading.hideLoading(),this.setState({data:{html:"",eid:r,tabid:o,url:e,height:a}});else{i?this.refs.more.showMore():this.refs.more.hideMore(),this.refs.more.hideLoading();var s=JSON.parse(localStorage.getItem("hp_"+n));if(s&&s["e_"+r+"_"+o]){var l=s["e_"+r+"_"+o];this.setState({data:l,more:{moreUrl:i,pageIndex:1}}),this.refs._loading&&this.refs._loading.hideLoading()}else this.setState({data:{html:"",eid:r,tabid:o},more:{moreUrl:i,pageIndex:1}}),this.refs._loading&&this.refs._loading.showLoading();this._loadData(t)}}},{key:"_loadData",value:function(t){var e=this,i=t.url,n=t.moreUrl,r=t.hpid,o=t.eid,a=t.tabid;i+=i.indexOf("?")!=-1?"&pageIndex=1":"?pageIndex=1",fetch(i+"&now="+(new Date).getTime(),{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8","X-Requested-With":"XMLHttpRequest"},credentials:"include"}).then(function(t){t.ok?t.text().then(function(t){var i=localStorage.getItem("hp_"+r);if(i){var s=JSON.parse(i);s["e_"+o+"_"+a]={html:t,eid:o,tabid:a},localStorage.setItem("hp_"+r,JSON.stringify(s))}e.state.more.moreUrl==n&&e.setState({data:{html:t,eid:o,tabid:a},more:{moreUrl:n,pageIndex:1}}),e.refs._loading&&e.refs._loading.hideLoading()}):console.log("Looks like the response wasn't perfect, got status",t.status)}).catch(function(t){return console.log("Fetch failed!",t)})}},{key:"loadMoreData",value:function(){var t=this;this.refs.more.showLoading();var e=this.props.hpid,i=this.state.data.eid,n=this.state.data.tabid,r=this.state.more.moreUrl,o=r,a=this.state.more.pageIndex+1;r+=r.indexOf("?")!=-1?"&pageIndex="+a:"?pageIndex="+a,fetch(r+"&now="+(new Date).getTime(),{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8","X-Requested-With":"XMLHttpRequest"},credentials:"include"}).then(function(r){r.ok?r.text().then(function(r){var s=localStorage.getItem("hp_"+e);if(s){var l=JSON.parse(s);l["e_"+i+"_"+n]={html:r,eid:i,tabid:n},localStorage.setItem("hp_"+e,JSON.stringify(l))}t.state.more.moreUrl==o&&t.setState({data:{html:r,eid:i,tabid:n},more:{moreUrl:o,pageIndex:a}}),t.refs.more.hideLoading()}):console.log("Looks like the response wasn't perfect, got status",r.status)}).catch(function(t){return console.log("Fetch failed!",t)})}},{key:"render",value:function(){var t=this.state.data.eid,e="item_"+t,i=this.state.data.tabid,n=this.state.data.url,r=this.state.data.height;if(""==r)r="300";else if("0"==r){var o=document.querySelector("#homepage-container");if(o){r=o.offsetHeight;var a=document.querySelector("#item_"+t+" .header");a&&(r-=a.offsetHeight)}}var l="";return this.props.header&&(l=this.props.header.title),u.default.createElement("div",{id:e},u.default.createElement("div",{className:"header"},u.default.createElement("div",{className:"title"},l)),u.default.createElement("div",{className:"content"},u.default.createElement(f.default,s({},this.props,{tabid:i,loadDataFun:this.loadData.bind(this)})),u.default.createElement("div",{className:"data"},u.default.createElement(v.default,{ref:"_loading"}),u.default.createElement("div",{ref:"customArea",className:"custom-area"}),n&&u.default.createElement("div",{className:"iframe-area",style:{height:r}},u.default.createElement("iframe",{src:n,width:"100%",height:"100%",frameBorder:"0"}))),u.default.createElement(g.default,s({ref:"more"},this.props,{loadMoreDataFun:this.loadMoreData.bind(this)}))))}}]),e}(c.Component);t.exports=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=i(1),c=n(l),u=i(185),h=n(u),d=i(188),f=n(d);i(190);var p=i(192),g=n(p),m=function(t){function e(t){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.state={data:[],eid:0,tabid:0},i}return a(e,t),s(e,[{key:"componentDidMount",value:function(){if(this.props.tabs&&this.props.tabs.length>0){var t={url:this.props.tabs[0].url,moreUrl:this.props.tabs[0].url,hpid:this.props.hpid,eid:this.props.eid,tabid:this.props.tabs[0].tabid};this.loadData(t)}else this.setState({data:[],eid:this.props.eid,tabid:0})}},{key:"componentWillReceiveProps",value:function(t){if(t.tabs&&t.tabs.length>0){var e={url:t.tabs[0].url,moreUrl:t.tabs[0].url,hpid:t.hpid,eid:t.eid,tabid:t.tabs[0].tabid};this.loadData(e)}else this.setState({data:[],eid:this.props.eid,tabid:0})}},{key:"componentDidUpdate",value:function(){window.hpScroll&&window.hpScroll.refresh()}},{key:"loadData",value:function(t){var e=t.hpid,i=t.eid,n=t.tabid,r=JSON.parse(localStorage.getItem("hp_"+e));if(r&&r["e_"+i+"_"+n]){var o=r["e_"+i+"_"+n];this.setState(o),this.refs._loading&&this.refs._loading.hideLoading()}else this.setState({data:[],eid:i,tabid:n}),this.refs._loading&&this.refs._loading.showLoading();this._loadData(t)}},{key:"_loadData",value:function(t){var e=this,i=t.url,n=t.hpid;i=i.replace(/^\/page\//,"/mobile/plugin/homepagemobile/"),fetch(i+"&now="+(new Date).getTime(),{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8","X-Requested-With":"XMLHttpRequest"},credentials:"include"}).then(function(t){t.ok?t.json().then(function(t){var i=t.eid,r=t.tabid,o=localStorage.getItem("hp_"+n);if(o){var a=JSON.parse(o);a["e_"+i+"_"+r]=t,localStorage.setItem("hp_"+n,JSON.stringify(a))}e.state.eid==i&&e.state.tabid==r&&e.setState(t),e.refs._loading&&e.refs._loading.hideLoading()}):console.log("Looks like the response wasn't perfect, got status",t.status)}).catch(function(t){return console.log("Fetch failed!",t)})}},{key:"render",value:function(){var t=this.state.eid,e="item_"+t,i="";if(this.state.data.length>1){var n=this.state.data.map(function(t,e){var i=window.navigator.userAgent.toLowerCase(),n=t.linkUrl||"javascript:void(0);";return i.indexOf("mobile")!=-1&&""!=t.linkUrl&&(n=t.linkUrl),c.default.createElement("div",{key:e},c.default.createElement("a",{href:n},c.default.createElement("img",{src:t.imgUrl,alt:"",width:"100%",height:"auto"})))});i=c.default.createElement(g.default,{autoplay:"true",infinite:"true"},n)}else if(1==this.state.data.length){var r=this.state.data[0],o=window.navigator.userAgent.toLowerCase(),a=r.linkUrl||"javascript:void(0);";o.indexOf("mobile")!=-1&&""!=r.linkUrl&&(a=r.linkUrl),i=c.default.createElement("div",null,c.default.createElement("a",{href:a},c.default.createElement("img",{src:r.imgUrl,alt:"",width:"100%",height:"auto"})))}return c.default.createElement("div",{id:e},c.default.createElement(h.default,this.props),c.default.createElement("div",{className:"content"},c.default.createElement("div",{className:"data"},c.default.createElement(f.default,{ref:"_loading"}),i)))}}]),e}(l.Component);t.exports=m},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),c=i(1),u=n(c),h=i(185),d=n(h),f=i(186),p=n(f),g=i(188),m=n(g),v=i(201),y=n(v),b=function(t){function e(t){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.state={data:{},eid:0,tabid:0},i}return a(e,t),l(e,[{key:"componentDidMount",value:function(){if(this.props.tabs&&this.props.tabs.length>0){var t={url:this.props.tabs[0].url,moreUrl:this.props.tabs[0].url,hpid:this.props.hpid,eid:this.props.eid,tabid:this.props.tabs[0].tabid};this.loadData(t)}else this.setState({data:{},eid:this.props.eid,tabid:0})}},{key:"componentWillReceiveProps",value:function(t){if(t.tabs&&t.tabs.length>0){var e={url:t.tabs[0].url,moreUrl:t.tabs[0].url,hpid:t.hpid,eid:t.eid,tabid:t.tabs[0].tabid};this.loadData(e)}else this.setState({data:{},eid:this.props.eid,tabid:0})}},{key:"componentDidUpdate",value:function(){window.hpScroll&&window.hpScroll.refresh()}},{key:"loadData",value:function(t){var e=t.hpid,i=t.eid,n=t.tabid,r=JSON.parse(localStorage.getItem("hp_"+e));if(r&&r["e_"+i+"_"+n]){var o=r["e_"+i+"_"+n];this.setState(o),this.refs._loading&&this.refs._loading.hideLoading()}else this.setState({data:{},eid:i,tabid:n}),this.refs._loading&&this.refs._loading.showLoading();this._loadData(t)}},{key:"_loadData",value:function(t){var e=this,i=t.url,n=t.hpid;i=i.replace(/^\/page\//,"/mobile/plugin/homepagemobile/"),fetch(i+"&now="+(new Date).getTime(),{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8","X-Requested-With":"XMLHttpRequest"},credentials:"include"}).then(function(t){t.ok?t.json().then(function(t){var i=t.eid,r=t.tabid,o=localStorage.getItem("hp_"+n);if(o){var a=JSON.parse(o);a["e_"+i+"_"+r]=t,localStorage.setItem("hp_"+n,JSON.stringify(a))}e.state.eid==i&&e.state.tabid==r&&e.setState(t),e.refs._loading&&e.refs._loading.hideLoading()}):console.log("Looks like the response wasn't perfect, got status",t.status)}).catch(function(t){return console.log("Fetch failed!",t)})}},{key:"render",value:function(){var t=this.state.eid,e="item_"+t,i=this.state.tabid,n=this.state.data.type,r={1:"column",3:"line",4:"area",5:"bar",6:"pie",8:"pie"}[n]||"column",o="8"===n?60:0,a=this.state.data.height,l=this.state.data.title,c=this.state.data.dot,h=this.state.data.categories,f=this.state.data.series,g="";if(n&&f){var v=[],b=void 0,x=[];if("6"===n||"8"===n){x=f.data;for(var w=0;w<x.length;w++){var S=x[w];S[1]=parseFloat(S[1])}v.push(f)}else for(var k=0;k<f.length;k++){b=f[k],x=b.data;for(var T=0;T<x.length;T++)x[T]=parseFloat(x[T]);v.push(b)}g=u.default.createElement(y.default,{config:{chart:{type:r,height:a},title:{text:l,style:{fontSize:"14px",fontFamily:"Microsoft YaHei",color:"#58657b"}},credits:{enabled:!1},xAxis:{categories:h,labels:{style:{fontSize:"12px",fontFamily:"Microsoft YaHei",color:"#58657b"}}},yAxis:{title:{text:""}},legend:{itemStyle:{fontSize:"12px",fontFamily:"Microsoft YaHei",color:"#58657b"}},tooltip:{style:{fontSize:"12px",fontFamily:"Microsoft YaHei",color:"#58657b"},pointFormat:"{series.name}: <b>{point.y:."+c+"f}</b>"},plotOptions:{series:{animation:!1},pie:{allowPointSelect:!0,dataLabels:{enabled:!0,format:"{point.y:."+c+"f}"},showInLegend:!0,innerSize:o}},series:v}})}return u.default.createElement("div",{id:e},u.default.createElement(d.default,this.props),u.default.createElement("div",{className:"content"},u.default.createElement(p.default,s({},this.props,{tabid:i,loadDataFun:this.loadData.bind(this)})),u.default.createElement("div",{className:"data"},u.default.createElement(m.default,{ref:"_loading"}),g)))}}]),e}(c.Component);t.exports=b},function(t,e,i){!function(e,n){t.exports=n(i(1),i(202))}(this,function(t,e){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){t.exports=i(3)},function(e,i){e.exports=t},function(t,e,i){(function(e){"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},r=i(1),o="undefined"==typeof e?window:e;t.exports=function(e,i){var a="Highcharts"+e,s=r.createClass({displayName:a,propTypes:{config:r.PropTypes.object.isRequired,isPureConfig:r.PropTypes.bool,neverReflow:r.PropTypes.bool,callback:r.PropTypes.func,domProps:r.PropTypes.object},defaultProps:{callback:function(){},domProps:{}},renderChart:function(t){var r=this;if(!t)throw new Error("Config must be specified for the "+a+" component");var s=t.chart;this.chart=new i[e](n({},t,{chart:n({},s,{renderTo:this.refs.chart})}),this.props.callback),this.props.neverReflow||o.requestAnimationFrame&&requestAnimationFrame(function(){r.chart&&r.chart.options&&r.chart.reflow()})},shouldComponentUpdate:function(t){return!!(t.neverReflow||t.isPureConfig&&this.props.config===t.config)||(this.renderChart(t.config),!1)},getChart:function(){if(!this.chart)throw new Error("getChart() should not be called before the component is mounted");return this.chart},componentDidMount:function(){this.renderChart(this.props.config)},componentWillUnmount:function(){this.chart.destroy()},render:function(){return r.createElement("div",n({ref:"chart"},this.props.domProps))}});return s.Highcharts=i,s.withHighcharts=function(i){return t.exports(e,i)},s}}).call(e,function(){return this}())},function(t,e,i){"use strict";t.exports=i(2)("Chart",i(4))},function(t,i){t.exports=e}])})},function(t,e){!function(e,i){"object"==typeof t&&t.exports?t.exports=e.document?i(e):i:e.Highcharts=i(e)}("undefined"!=typeof window?window:this,function(t){function e(e,i){var n="Highcharts error #"+e+": www.highcharts.com/errors/"+e;if(i)throw Error(n);t.console&&console.log(n)}function i(t,e,i){this.options=e,this.elem=t,this.prop=i}function n(){var t,e,i=arguments,n={},r=function(t,e){var i,n;"object"!=typeof t&&(t={});for(n in e)e.hasOwnProperty(n)&&(i=e[n],t[n]=nt.isObject(i,!0)&&"renderTo"!==n&&"number"!=typeof i.nodeType?r(t[n]||{},i):e[n]);return t};for(i[0]===!0&&(n=i[1],i=Array.prototype.slice.call(i,2)),e=i.length,t=0;t<e;t++)n=r(n,i[t]);return n}function r(t,e){return parseInt(t,e||10)}function o(t){return"string"==typeof t}function a(t){return t=Object.prototype.toString.call(t),"[object Array]"===t||"[object Array Iterator]"===t}function s(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}}function l(t){return t!==I&&null!==t}function c(t,e,i){var n,r;if(o(e))l(i)?t.setAttribute(e,i):t&&t.getAttribute&&(r=t.getAttribute(e));else if(l(e)&&Qt(e))for(n in e)t.setAttribute(n,e[n]);return r}function u(t){return a(t)?t:[t]}function h(t,e,i){return e?setTimeout(t,e,i):void t.call(0,i)}function d(t,e){yt&&!Tt&&e&&e.opacity!==I&&(e.filter="alpha(opacity="+100*e.opacity+")"),Jt(t.style,e)}function f(t,e,i,n,r){return t=rt.createElement(t),e&&Jt(t,e),r&&d(t,{padding:0,border:"none",margin:0}),i&&d(t,i),n&&n.appendChild(t),t}function p(t,e){var i=function(){};return i.prototype=new t,Jt(i.prototype,e),i}function g(t,e,i){return Array((e||2)+1-String(t).length).join(i||0)+t}function m(t){return 6e4*(F&&F(t)||X||0)}function v(t,e){for(var i,n,r,o,a,s="{",l=!1,c=[];(s=t.indexOf(s))!==-1;){if(i=t.slice(0,s),l){for(n=i.split(":"),r=n.shift().split("."),a=r.length,i=e,o=0;o<a;o++)i=i[r[o]];n.length&&(n=n.join(":"),r=/\.([0-9])/,o=N.lang,a=void 0,/f$/.test(n)?(a=(a=n.match(r))?a[1]:-1,null!==i&&(i=nt.numberFormat(i,a,o.decimalPoint,n.indexOf(",")>-1?o.thousandsSep:""))):i=B(n,i))}c.push(i),t=t.slice(s+1),s=(l=!l)?"}":"{"}return c.push(t),c.join("")}function y(t){return ot.pow(10,st(ot.log(t)/ot.LN10))}function b(t,e,i,n,r){var o,a=t,i=$t(i,1);for(o=t/i,e||(e=[1,2,2.5,5,10],n===!1&&(1===i?e=[1,2,5,10]:i<=.1&&(e=[1/i]))),n=0;n<e.length&&(a=e[n],!(r&&a*i>=t||!r&&o<=(e[n]+(e[n+1]||e[n]))/2));n++);return a*=i}function x(t,e){var i,n,r=t.length;for(n=0;n<r;n++)t[n].safeI=n;for(t.sort(function(t,n){return i=e(t,n),0===i?t.safeI-n.safeI:i}),n=0;n<r;n++)delete t[n].safeI}function w(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i}function S(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i}function k(t,e){for(var i in t)t[i]&&t[i]!==e&&t[i].destroy&&t[i].destroy(),delete t[i]}function T(t){j||(j=f(Lt)),t&&j.appendChild(t),j.innerHTML=""}function O(t,e){return parseFloat(t.toPrecision(e||14))}function P(t,e){e.renderer.globalAnimation=$t(t,e.animation)}function C(t){return Qt(t)?n(t):{duration:t?500:0}}function M(){var e=N.global,i=e.useUTC,n=i?"getUTC":"get",r=i?"setUTC":"set";z=e.Date||t.Date,X=i&&e.timezoneOffset,F=i&&e.getTimezoneOffset,W=function(t,e,n,r,o,a){var s;return i?(s=z.UTC.apply(0,arguments),s+=m(s)):s=new z(t,e,$t(n,1),$t(r,0),$t(o,0),$t(a,0)).getTime(),s},Y=n+"Minutes",G=n+"Hours",U=n+"Day",q=n+"Date",V=n+"Month",K=n+"FullYear",J=r+"Milliseconds",Q=r+"Seconds",Z=r+"Minutes",$=r+"Hours",tt=r+"Date",et=r+"Month",it=r+"FullYear"}function _(t){return this instanceof _?void this.init(t):new _(t)}function E(){}function A(t,e,i,n){this.axis=t,this.pos=e,this.type=i||"",this.isNew=!0,!i&&!n&&this.addLabel()}function L(t,e,i,n,r){var o=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e,this.x=n,this.total=null,this.points={},this.stack=r,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(o?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":i?"bottom":"top"),y:$t(e.y,o?4:i?14:-6),x:$t(e.x,o?i?-6:6:0)},this.textAlign=e.textAlign||(o?i?"right":"left":"center")}var I,R,D,j,N,B,H,z,W,X,F,Y,G,U,q,V,K,J,Q,Z,$,tt,et,it,nt,rt=t.document,ot=Math,at=ot.round,st=ot.floor,lt=ot.ceil,ct=ot.max,ut=ot.min,ht=ot.abs,dt=ot.cos,ft=ot.sin,pt=ot.PI,gt=2*pt/360,mt=t.navigator&&t.navigator.userAgent||"",vt=t.opera,yt=/(msie|trident|edge)/i.test(mt)&&!vt,bt=rt&&8===rt.documentMode,xt=!yt&&/AppleWebKit/.test(mt),wt=/Firefox/.test(mt),St=/(Mobile|Android|Windows Phone)/.test(mt),kt="http://www.w3.org/2000/svg",Tt=rt&&rt.createElementNS&&!!rt.createElementNS(kt,"svg").createSVGRect,Ot=wt&&parseInt(mt.split("Firefox/")[1],10)<4,Pt=rt&&!Tt&&!yt&&!!rt.createElement("canvas").getContext,Ct={},Mt=0,_t=function(){},Et=[],At=0,Lt="div",It="M",Rt="L",Dt=/[0-9]/g,jt=["plotTop","marginRight","marginBottom","plotLeft"],Nt={};nt=t.Highcharts?e(16,!0):{win:t},nt.seriesTypes=Nt;var Bt,Ht,zt,Wt,Xt,Ft,Yt,Gt,Ut,qt,Vt,Kt=[];i.prototype={dSetter:function(){var t,e=this.paths[0],i=this.paths[1],n=[],r=this.now,o=e.length;if(1===r)n=this.toD;else if(o===i.length&&r<1)for(;o--;)t=parseFloat(e[o]),n[o]=isNaN(t)?e[o]:r*parseFloat(i[o]-t)+t;else n=i;this.elem.attr("d",n)},update:function(){var t=this.elem,e=this.prop,i=this.now,n=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i):t.style[e]=i+this.unit,n&&n.call(t,i,this)},run:function(t,e,i){var n,r=this,o=function(t){return!o.stopped&&r.step(t)};this.startTime=+new z,this.start=t,this.end=e,this.unit=i,this.now=this.start,this.pos=0,o.elem=this.elem,o()&&1===Kt.push(o)&&(o.timerId=setInterval(function(){for(n=0;n<Kt.length;n++)Kt[n]()||Kt.splice(n--,1);Kt.length||clearInterval(o.timerId)},13))},step:function(t){var e,i=+new z,n=this.options;e=this.elem;var r,o=n.complete,a=n.duration,s=n.curAnim;if(e.attr&&!e.element)e=!1;else if(t||i>=a+this.startTime){this.now=this.end,this.pos=1,this.update(),t=s[this.prop]=!0;for(r in s)s[r]!==!0&&(t=!1);t&&o&&o.call(e),e=!1}else this.pos=n.easing((i-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0;return e},initPath:function(t,e,i){function n(t){for(c=t.length;c--;)(t[c]===It||t[c]===Rt)&&t.splice(c+1,0,t[c+1],t[c+2],t[c+1],t[c+2])}function r(t,e){for(;t.length<s;){t[0]=e[s-t.length];var i=t.slice(0,p);[].splice.apply(t,[0,0].concat(i)),g&&(i=t.slice(t.length-p),[].splice.apply(t,[t.length,0].concat(i)),c--)}t[0]="M"}function o(t,e){for(var i=(s-t.length)/p;i>0&&i--;)l=t.slice().splice(t.length/m-p,p*m),l[0]=e[s-p-i*p],f&&(l[p-6]=l[p-2],l[p-5]=l[p-1]),[].splice.apply(t,[t.length/m,0].concat(l)),g&&i--}var a,s,l,c,u,e=e||"",h=t.startX,d=t.endX,f=e.indexOf("C")>-1,p=f?7:3,e=e.split(" "),i=i.slice(),g=t.isArea,m=g?2:1;if(f&&(n(e),n(i)),h&&d){for(c=0;c<h.length;c++){if(h[c]===d[0]){a=c;break}if(h[0]===d[d.length-h.length+c]){a=c,u=!0;break}}void 0===a&&(e=[])}return e.length&&nt.isNumber(a)&&(s=i.length+a*m*p,u?(r(e,i),o(i,e)):(r(i,e),o(e,i))),[e,i]}};var Jt=nt.extend=function(t,e){var i;t||(t={});for(i in e)t[i]=e[i];return t},Qt=nt.isObject=function(t,e){return t&&"object"==typeof t&&(!e||!a(t))},Zt=nt.isNumber=function(t){return"number"==typeof t&&!isNaN(t)},$t=nt.pick=function(){var t,e,i=arguments,n=i.length;for(t=0;t<n;t++)if(e=i[t],e!==I&&null!==e)return e},te=nt.wrap=function(t,e,i){var n=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(n),i.apply(this,t)}};B=function(t,e,i){if(!l(e)||isNaN(e))return N.lang.invalidDate||"";var n,t=$t(t,"%Y-%m-%d %H:%M:%S"),r=new z(e-m(e)),o=r[G](),a=r[U](),s=r[q](),c=r[V](),u=r[K](),h=N.lang,d=h.weekdays,f=h.shortWeekdays,r=Jt({a:f?f[a]:d[a].substr(0,3),A:d[a],d:g(s),e:g(s,2," "),w:a,b:h.shortMonths[c],B:h.months[c],m:g(c+1),y:u.toString().substr(2,2),Y:u,H:g(o),k:o,I:g(o%12||12),l:o%12||12,M:g(r[Y]()),p:o<12?"AM":"PM",P:o<12?"am":"pm",S:g(r.getSeconds()),L:g(at(e%1e3),3)},nt.dateFormats);for(n in r)for(;t.indexOf("%"+n)!==-1;)t=t.replace("%"+n,"function"==typeof r[n]?r[n](e):r[n]);return i?t.substr(0,1).toUpperCase()+t.substr(1):t},H={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},nt.numberFormat=function(t,e,i,n){var o,a,t=+t||0,e=+e,s=N.lang,l=(t.toString().split(".")[1]||"").length,c=Math.abs(t);return e===-1?e=Math.min(l,20):Zt(e)||(e=2),o=String(r(c.toFixed(e))),a=o.length>3?o.length%3:0,i=$t(i,s.decimalPoint),n=$t(n,s.thousandsSep),t=t<0?"-":"",t+=a?o.substr(0,a)+n:"",t+=o.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+n),e&&(n=Math.abs(c-o+Math.pow(10,-Math.max(e,l)-1)),t+=i+n.toFixed(e).slice(2)),t},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},Bt=function(e,i){var n;return"width"===i?Math.min(e.offsetWidth,e.scrollWidth)-Bt(e,"padding-left")-Bt(e,"padding-right"):"height"===i?Math.min(e.offsetHeight,e.scrollHeight)-Bt(e,"padding-top")-Bt(e,"padding-bottom"):(n=t.getComputedStyle(e,void 0))&&r(n.getPropertyValue(i))},Ht=function(t,e){return e.indexOf?e.indexOf(t):[].indexOf.call(e,t)},Wt=function(t,e){return[].filter.call(t,e)},Ft=function(t,e){for(var i=[],n=0,r=t.length;n<r;n++)i[n]=e.call(t[n],t[n],n,t);return i},Xt=function(e){var i=rt.documentElement,e=e.getBoundingClientRect();return{top:e.top+(t.pageYOffset||i.scrollTop)-(i.clientTop||0),left:e.left+(t.pageXOffset||i.scrollLeft)-(i.clientLeft||0)}},Vt=function(t){for(var e=Kt.length;e--;)Kt[e].elem===t&&(Kt[e].stopped=!0)},zt=function(t,e){return Array.prototype.forEach.call(t,e)},Yt=function(e,i,n){function r(i){i.target=i.srcElement||t,n.call(e,i)}var o=e.hcEvents=e.hcEvents||{};e.addEventListener?e.addEventListener(i,n,!1):e.attachEvent&&(e.hcEventsIE||(e.hcEventsIE={}),e.hcEventsIE[n.toString()]=r,e.attachEvent("on"+i,r)),o[i]||(o[i]=[]),o[i].push(n)},Gt=function(t,e,i){function n(e,i){t.removeEventListener?t.removeEventListener(e,i,!1):t.attachEvent&&(i=t.hcEventsIE[i.toString()],t.detachEvent("on"+e,i))}function r(){var i,r,o;if(t.nodeName)for(o in e?(i={},i[e]=!0):i=s,i)if(s[o])for(r=s[o].length;r--;)n(o,s[o][r])}var o,a,s=t.hcEvents;s&&(e?(o=s[e]||[],i?(a=Ht(i,o),a>-1&&(o.splice(a,1),s[e]=o),n(e,i)):(r(),s[e]=[])):(r(),t.hcEvents={}))},Ut=function(t,e,i,n){var r;r=t.hcEvents;var o,a,i=i||{};if(rt.createEvent&&(t.dispatchEvent||t.fireEvent))r=rt.createEvent("Events"),r.initEvent(e,!0,!0),r.target=t,Jt(r,i),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent(e,r);else if(r)for(r=r[e]||[],o=r.length,i.preventDefault||(i.preventDefault=function(){i.defaultPrevented=!0}),i.target=t,i.type||(i.type=e),e=0;e<o;e++)(a=r[e])&&a.call(t,i)===!1&&i.preventDefault();n&&!i.defaultPrevented&&n(i)},qt=function(t,e,r){var o,a,s,l,c="";Qt(r)||(o=arguments,r={duration:o[2],easing:o[3],complete:o[4]}),Zt(r.duration)||(r.duration=400),r.easing="function"==typeof r.easing?r.easing:Math[r.easing]||Math.easeInOutSine,r.curAnim=n(e);for(l in e)s=new i(t,r,l),a=null,"d"===l?(s.paths=s.initPath(t,t.d,e.d),s.toD=e.d,o=0,a=1):t.attr?o=t.attr(l):(o=parseFloat(Bt(t,l))||0,"opacity"!==l&&(c="px")),a||(a=e[l]),a.match&&a.match("px")&&(a=a.replace(/px/g,"")),s.run(o,a,c)},t.jQuery&&(t.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new(nt[o(t[0])?t.shift():"Chart"])(this[0],t[0],t[1]),this):Et[c(this[0],"data-highcharts-chart")]}),rt&&!rt.defaultView&&(Bt=function(t,e){var i;return i={width:"clientWidth",height:"clientHeight"}[e],t.style[e]?r(t.style[e]):("opacity"===e&&(e="filter"),i?(t.style.zoom=1,Math.max(t[i]-2*Bt(t,"padding"),0)):(i=t.currentStyle[e.replace(/\-(\w)/g,function(t,e){return e.toUpperCase()})],"filter"===e&&(i=i.replace(/alpha\(opacity=([0-9]+)\)/,function(t,e){return e/100})),""===i?1:r(i)))}),Array.prototype.forEach||(zt=function(t,e){for(var i=0,n=t.length;i<n;i++)if(e.call(t[i],t[i],i,t)===!1)return i}),Array.prototype.indexOf||(Ht=function(t,e){var i,n=0;if(e)for(i=e.length;n<i;n++)if(e[n]===t)return n;return-1}),Array.prototype.filter||(Wt=function(t,e){for(var i=[],n=0,r=t.length;n<r;n++)e(t[n],n)&&i.push(t[n]);return i}),nt.Fx=i,nt.inArray=Ht,nt.each=zt,nt.grep=Wt,nt.offset=Xt,nt.map=Ft,nt.addEvent=Yt,nt.removeEvent=Gt,nt.fireEvent=Ut,nt.animate=qt,nt.animObject=C,nt.stop=Vt,N={colors:"#7cb5ec,#434348,#90ed7d,#f7a35c,#8085e9,#f15c80,#e4d354,#2b908f,#f45b5b,#91e8e1".split(","),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),decimalPoint:".",numericSymbols:"k,M,G,T,P,E".split(","),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/4.2.7/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}},width:null,height:null},title:{text:"Chart title",align:"center",margin:15,style:{color:"#333333",fontSize:"18px"},widthAdjust:-44},subtitle:{text:"",align:"center",style:{color:"#555555"},widthAdjust:-44},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},lineWidth:2,marker:{lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:!0,lineWidthPlus:1,radiusPlus:2},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":nt.numberFormat(this.y,-1)},style:{color:"contrast",fontSize:"11px",fontWeight:"bold",textShadow:"0 0 6px contrast, 0 0 3px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3}},labels:{style:{position:"absolute",color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#909090",borderRadius:0,navigation:{activeColor:"#274b6d",inactiveColor:"#CCC"},shadow:!1,itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"white",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:Tt,backgroundColor:"rgba(249, 249, 249, .85)",borderWidth:1,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',shadow:!0,snap:St?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",pointerEvents:"none",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 ee=N.plotOptions,ie=ee.line;M(),_.prototype={parsers:[{regex:/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*\)/,parse:function(t){return[r(t[1]),r(t[2]),r(t[3]),parseFloat(t[4],10)]}},{regex:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,parse:function(t){return[r(t[1],16),r(t[2],16),r(t[3],16),1]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[r(t[1]),r(t[2]),r(t[3]),1]}}],init:function(t){var e,i,n,r;if((this.input=t)&&t.stops)this.stops=Ft(t.stops,function(t){return new _(t[1])});else for(n=this.parsers.length;n--&&!i;)r=this.parsers[n],(e=r.regex.exec(t))&&(i=r.parse(e));this.rgba=i||[]},get:function(t){var e,i=this.input,r=this.rgba;return this.stops?(e=n(i),e.stops=[].concat(e.stops),zt(this.stops,function(i,n){e.stops[n]=[e.stops[n][0],i.get(t)]})):e=r&&Zt(r[0])?"rgb"===t||!t&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===t?r[3]:"rgba("+r.join(",")+")":i,e},brighten:function(t){var e,i=this.rgba;if(this.stops)zt(this.stops,function(e){e.brighten(t)});else if(Zt(t)&&0!==t)for(e=0;e<3;e++)i[e]+=r(255*t),i[e]<0&&(i[e]=0),i[e]>255&&(i[e]=255);return this},setOpacity:function(t){return this.rgba[3]=t,this}},E.prototype={opacity:1,textProps:"direction,fontSize,fontWeight,fontFamily,fontStyle,color,lineHeight,width,textDecoration,textOverflow,textShadow".split(","),init:function(t,e){this.element="span"===e?f(e):rt.createElementNS(kt,e),this.renderer=t},animate:function(t,e,i){return e=$t(e,this.renderer.globalAnimation,!0),Vt(this),e?(i&&(e.complete=i),qt(this,t,e)):this.attr(t,null,i),this},colorGradient:function(t,e,i){var r,o,s,c,u,h,d,f,p,g,m,v,y=this.renderer,b=[];if(t.linearGradient?o="linearGradient":t.radialGradient&&(o="radialGradient"),o){s=t[o],u=y.gradients,d=t.stops,g=i.radialReference,a(s)&&(t[o]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&g&&!l(s.gradientUnits)&&(c=s,s=n(s,y.getRadialAttr(g,c),{gradientUnits:"userSpaceOnUse"}));for(m in s)"id"!==m&&b.push(m,s[m]);for(m in d)b.push(d[m]);b=b.join(","),u[b]?g=u[b].attr("id"):(s.id=g="highcharts-"+Mt++,u[b]=h=y.createElement(o).attr(s).add(y.defs),h.radAttr=c,h.stops=[],zt(d,function(t){0===t[1].indexOf("rgba")?(r=_(t[1]),f=r.get("rgb"),p=r.get("a")):(f=t[1],p=1),t=y.createElement("stop").attr({offset:t[0],"stop-color":f,"stop-opacity":p}).add(h),h.stops.push(t)})),v="url("+y.url+"#"+g+")",i.setAttribute(e,v),i.gradient=b,t.toString=function(){return v}}},applyTextShadow:function(t){var e,i=this.element,n=t.indexOf("contrast")!==-1,o={},a=this.renderer.forExport,s=a||i.style.textShadow!==I&&!yt;n&&(o.textShadow=t=t.replace(/contrast/g,this.renderer.getContrast(i.style.fill))),(xt||a)&&(o.textRendering="geometricPrecision"),s?this.css(o):(this.fakeTS=!0,this.ySetter=this.xSetter,e=[].slice.call(i.getElementsByTagName("tspan")),zt(t.split(/\s?,\s?/g),function(t){var n,o,a=i.firstChild,t=t.split(" ");n=t[t.length-1],(o=t[t.length-2])&&zt(e,function(t,e){var s;0===e&&(t.setAttribute("x",i.getAttribute("x")),e=i.getAttribute("y"),t.setAttribute("y",e||0),null===e&&i.setAttribute("y",0)),s=t.cloneNode(1),c(s,{class:"highcharts-text-shadow",fill:n,stroke:n,"stroke-opacity":1/ct(r(o),3),"stroke-width":o,"stroke-linejoin":"round"}),i.insertBefore(s,a)})}))},attr:function(t,e,i){var n,r,o,a=this.element,s=this;if("string"==typeof t&&e!==I&&(n=t,t={},t[n]=e),"string"==typeof t)s=(this[t+"Getter"]||this._defaultGetter).call(this,t,a);else{for(n in t)e=t[n],o=!1,this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(n)&&(r||(this.symbolAttr(t),r=!0),o=!0),!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0),o||(o=this[n+"Setter"]||this._defaultSetter,o.call(this,e,n,a),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,e,o));this.doTransform&&(this.updateTransform(),this.doTransform=!1)}return i&&i(),s},updateShadows:function(t,e,i){for(var n=this.shadows,r=n.length;r--;)i.call(n[r],"height"===t?Math.max(e-(n[r].cutHeight||0),0):"d"===t?this.d:e,t,n[r])},addClass:function(t){var e=this.element,i=c(e,"class")||"";return i.indexOf(t)===-1&&c(e,"class",i+" "+t),this},symbolAttr:function(t){var e=this;zt("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(i){e[i]=$t(t[i],e[i])}),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+")":"none")},crisp:function(t){var e,i,n={},r=this.strokeWidth||0;i=at(r)%2/2,t.x=st(t.x||this.x||0)+i,t.y=st(t.y||this.y||0)+i,t.width=st((t.width||this.width||0)-2*i),t.height=st((t.height||this.height||0)-2*i),t.strokeWidth=r;for(e in t)this[e]!==t[e]&&(this[e]=n[e]=t[e]);return n},css:function(t){var e,i,n=this.styles,o={},a=this.element,s="";if(e=!n,t&&t.color&&(t.fill=t.color),n)for(i in t)t[i]!==n[i]&&(o[i]=t[i],e=!0);if(e){if(e=this.textWidth=t&&t.width&&"text"===a.nodeName.toLowerCase()&&r(t.width)||this.textWidth,n&&(t=Jt(n,o)),this.styles=t,e&&(Pt||!Tt&&this.renderer.forExport)&&delete t.width,yt&&!Tt)d(this.element,t);else{n=function(t,e){return"-"+e.toLowerCase()};for(i in t)s+=i.replace(/([A-Z])/g,n)+":"+t[i]+";";c(a,"style",s)}e&&this.added&&this.renderer.buildText(this)}return this},on:function(t,e){var i=this,n=i.element;return D&&"click"===t?(n.ontouchstart=function(t){i.touchEventFired=z.now(),t.preventDefault(),e.call(n,t)},n.onclick=function(t){(mt.indexOf("Android")===-1||z.now()-(i.touchEventFired||0)>1100)&&e.call(n,t)}):n["on"+t]=e,this},setRadialReference:function(t){var e=this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(){return this.inverted=!0,this.updateTransform(),this},updateTransform:function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,n=this.scaleY,r=this.inverted,o=this.rotation,a=this.element;r&&(t+=this.attr("width"),e+=this.attr("height")),t=["translate("+t+","+e+")"],r?t.push("rotate(90) scale(-1,1)"):o&&t.push("rotate("+o+" "+(a.getAttribute("x")||0)+" "+(a.getAttribute("y")||0)+")"),(l(i)||l(n))&&t.push("scale("+$t(i,1)+" "+$t(n,1)+")"),t.length&&a.setAttribute("transform",t.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,i){var n,r,a,l,c={};return r=this.renderer,a=r.alignedObjects,t?(this.alignOptions=t,this.alignByTranslate=e,(!i||o(i))&&(this.alignTo=n=i||"renderer",s(a,this),a.push(this),i=null)):(t=this.alignOptions,e=this.alignByTranslate,n=this.alignTo),i=$t(i,r[n],r),n=t.align,r=t.verticalAlign,a=(i.x||0)+(t.x||0),l=(i.y||0)+(t.y||0),"right"!==n&&"center"!==n||(a+=(i.width-(t.width||0))/{right:1,center:2}[n]),c[e?"translateX":"x"]=at(a),"bottom"!==r&&"middle"!==r||(l+=(i.height-(t.height||0))/({bottom:1,middle:2}[r]||1)),c[e?"translateY":"y"]=at(l),this[this.placed?"animate":"attr"](c),this.placed=!0,this.alignAttr=c,this},getBBox:function(t,e){var i,n,r,o,a=this.renderer,s=this.element,l=this.styles;n=this.textStr;var c,u,h,d=s.style,f=a.cache,p=a.cacheKeys;if(r=$t(e,this.rotation),o=r*gt,n!==I&&(h=n.toString().replace(Dt,"0")+["",r||0,l&&l.fontSize,s.style.width].join(",")),h&&!t&&(i=f[h]),!i){if(s.namespaceURI===kt||a.forExport){try{u=this.fakeTS&&function(t){zt(s.querySelectorAll(".highcharts-text-shadow"),function(e){e.style.display=t})},wt&&d.textShadow?(c=d.textShadow,d.textShadow=""):u&&u("none"),i=s.getBBox?Jt({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight},c?d.textShadow=c:u&&u("")}catch(t){}(!i||i.width<0)&&(i={width:0,height:0})}else i=this.htmlGetBBox();if(a.isSVG&&(a=i.width,n=i.height,yt&&l&&"11px"===l.fontSize&&"16.9"===n.toPrecision(3)&&(i.height=n=14),r&&(i.width=ht(n*ft(o))+ht(a*dt(o)),i.height=ht(n*dt(o))+ht(a*ft(o)))),h&&i.height>0){for(;p.length>250;)delete f[p.shift()];f[h]||p.push(h),f[h]=i}}return i},show:function(t){return this.attr({visibility:t?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(t){var e=this;e.animate({opacity:0},{duration:t||150,complete:function(){e.attr({y:-9999})}})},add:function(t){var e,i=this.renderer,n=this.element;return t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(n),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t,e,i=this,n=i.element||{},r=i.shadows,o=i.renderer.isSVG&&"SPAN"===n.nodeName&&i.parentGroup;if(n.onclick=n.onmouseout=n.onmouseover=n.onmousemove=n.point=null,Vt(i),i.clipPath&&(i.clipPath=i.clipPath.destroy()),i.stops){for(e=0;e<i.stops.length;e++)i.stops[e]=i.stops[e].destroy();i.stops=null}for(i.safeRemoveChild(n),r&&zt(r,function(t){i.safeRemoveChild(t)});o&&o.div&&0===o.div.childNodes.length;)n=o.parentGroup,i.safeRemoveChild(o.div),delete o.div,o=n;i.alignTo&&s(i.renderer.alignedObjects,i);for(t in i)delete i[t];return null},shadow:function(t,e,i){var n,r,o,a,s,l,u=[],h=this.element;if(t){for(a=$t(t.width,3),s=(t.opacity||.15)/a,l=this.parentInverted?"(-1,-1)":"("+$t(t.offsetX,1)+", "+$t(t.offsetY,1)+")",n=1;n<=a;n++)r=h.cloneNode(0),o=2*a+1-2*n,c(r,{isShadow:"true",stroke:t.color||"black","stroke-opacity":s*n,"stroke-width":o,transform:"translate"+l,fill:"none"}),i&&(c(r,"height",ct(c(r,"height")-o,0)),r.cutHeight=o),e?e.element.appendChild(r):h.parentNode.insertBefore(r,h),u.push(r);this.shadows=u}return this},xGetter:function(t){return"circle"===this.element.nodeName&&(t={x:"cx",y:"cy"}[t]||t),this._defaultGetter(t)},_defaultGetter:function(t){return t=$t(this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},dSetter:function(t,e,i){t&&t.join&&(t=t.join(" ")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),i.setAttribute(e,t),this[e]=t},dashstyleSetter:function(t){var e,i=this["stroke-width"];if("inherit"===i&&(i=1),t=t&&t.toLowerCase()){for(t=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(","),e=t.length;e--;)t[e]=r(t[e])*i;t=t.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},alignSetter:function(t){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[t])},titleSetter:function(t){var e=this.element.getElementsByTagName("title")[0];e||(e=rt.createElementNS(kt,"title"),this.element.appendChild(e)),e.firstChild&&e.removeChild(e.firstChild),e.appendChild(rt.createTextNode(String($t(t),"").replace(/<[^>]*>/g,"")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,this.textStr=t,this.added&&this.renderer.buildText(this))},fillSetter:function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.colorGradient(t,e,i)},visibilitySetter:function(t,e,i){"inherit"===t?i.removeAttribute(e):i.setAttribute(e,t)},zIndexSetter:function(t,e){var i,n,o,a=this.renderer,s=this.parentGroup,a=(s||a).element||a.box,c=this.element;i=this.added;var u;if(l(t)&&(c.zIndex=t,t=+t,this[e]===t&&(i=!1),this[e]=t),i){for((t=this.zIndex)&&s&&(s.handleZ=!0),s=a.childNodes,u=0;u<s.length&&!o;u++)i=s[u],n=i.zIndex,i!==c&&(r(n)>t||!l(t)&&l(n))&&(a.insertBefore(c,i),o=!0);o||a.appendChild(c)}return o},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}},E.prototype.yGetter=E.prototype.xGetter,E.prototype.translateXSetter=E.prototype.translateYSetter=E.prototype.rotationSetter=E.prototype.verticalAlignSetter=E.prototype.scaleXSetter=E.prototype.scaleYSetter=function(t,e){this[e]=t,this.doTransform=!0},E.prototype.opacitySetter=E.prototype.displaySetter=function(t,e,i){this[e]=t,i.setAttribute(e,t)},E.prototype["stroke-widthSetter"]=E.prototype.strokeSetter=function(t,e,i){this[e]=t,this.stroke&&this["stroke-width"]?(this.strokeWidth=this["stroke-width"],E.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===t&&this.hasStroke&&(i.removeAttribute("stroke"),this.hasStroke=!1)};var ne=function(){this.init.apply(this,arguments)};ne.prototype={Element:E,init:function(e,i,n,r,o,a){var s,r=this.createElement("svg").attr({version:"1.1"}).css(this.getStyle(r));s=r.element,e.appendChild(s),e.innerHTML.indexOf("xmlns")===-1&&c(s,"xmlns",kt),this.isSVG=!0,this.box=s,this.boxWrapper=r,this.alignedObjects=[],this.url=(wt||xt)&&rt.getElementsByTagName("base").length?t.location.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(rt.createTextNode("Created with Highcharts 4.2.7")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(i,n,!1);var l;wt&&e.getBoundingClientRect&&(this.subPixelFix=i=function(){d(e,{left:0,top:0}),l=e.getBoundingClientRect(),d(e,{left:lt(l.left)-l.left+"px",top:lt(l.top)-l.top+"px"})},i(),Yt(t,"resize",i))},getStyle:function(t){return this.style=Jt({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),k(this.gradients||{}),this.gradients=null,e&&(this.defs=e.destroy()),this.subPixelFix&&Gt(t,"resize",this.subPixelFix),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:function(){},getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},buildText:function(t){for(var e,i,n,o=t.element,a=this,s=a.forExport,l=$t(t.textStr,"").toString(),u=l.indexOf("<")!==-1,h=o.childNodes,f=c(o,"x"),p=t.styles,g=t.textWidth,m=p&&p.lineHeight,v=p&&p.textShadow,y=p&&"ellipsis"===p.textOverflow,b=h.length,x=g&&!t.added&&this.box,w=function(t){return m?r(m):a.fontMetrics(/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:p&&p.fontSize||a.style.fontSize||12,t).h},S=function(t){return t.replace(/</g,"<").replace(/>/g,">")};b--;)o.removeChild(h[b]);u||v||y||g||l.indexOf(" ")!==-1?(e=/<.*style="([^"]+)".*>/,i=/<.*href="(http[^"]+)".*>/,x&&x.appendChild(o),l=u?l.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g):[l],l=Wt(l,function(t){return""!==t}),zt(l,function(r,l){var u,h=0,r=r.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");u=r.split("|||"),zt(u,function(r){if(""!==r||1===u.length){var m,v={},b=rt.createElementNS(kt,"tspan");if(e.test(r)&&(m=r.match(e)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),c(b,"style",m)),i.test(r)&&!s&&(c(b,"onclick",'location.href="'+r.match(i)[1]+'"'),d(b,{cursor:"pointer"})),r=S(r.replace(/<(.|\n)*?>/g,"")||" ")," "!==r){if(b.appendChild(rt.createTextNode(r)),h?v.dx=0:l&&null!==f&&(v.x=f),c(b,v),o.appendChild(b),!h&&l&&(!Tt&&s&&d(b,{display:"block"}),c(b,"dy",w(b))),g){for(var x,k,v=r.replace(/([^\^])-/g,"$1- ").split(" "),T="nowrap"===p.whiteSpace,O=u.length>1||l||v.length>1&&!T,P=[],C=w(b),M=1,_=t.rotation,E=r,A=E.length;(O||y)&&(v.length||P.length);)t.rotation=0,x=t.getBBox(!0),k=x.width,!Tt&&a.forExport&&(k=a.measureSpanWidth(b.firstChild.data,t.styles)),x=k>g,void 0===n&&(n=x),y&&n?(A/=2,""===E||!x&&A<.5?v=[]:(E=r.substring(0,E.length+(x?-1:1)*lt(A)),v=[E+(g>3?"…":"")],b.removeChild(b.firstChild))):x&&1!==v.length?(b.removeChild(b.firstChild),P.unshift(v.pop())):(v=P,P=[],v.length&&!T&&(M++,b=rt.createElementNS(kt,"tspan"),c(b,{dy:C,x:f}),m&&c(b,"style",m),o.appendChild(b)),k>g&&(g=k)),v.length&&b.appendChild(rt.createTextNode(v.join(" ").replace(/- /g,"-")));t.rotation=_}h++}}})}),n&&t.attr("title",t.textStr),x&&x.removeChild(o),v&&t.applyTextShadow&&t.applyTextShadow(v)):o.appendChild(rt.createTextNode(S(l)))},getContrast:function(t){return t=_(t).rgba,t[0]+t[1]+t[2]>384?"#000000":"#FFFFFF"},button:function(t,e,i,r,o,a,s,l,c){var u,h,d,f,p,g,m=this.label(t,e,i,c,null,null,null,null,"button"),v=0,t={x1:0,y1:0,x2:0,y2:1},o=n({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:t,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},o);return d=o.style,delete o.style,a=n(o,{stroke:"#68A",fill:{linearGradient:t,stops:[[0,"#FFF"],[1,"#ACF"]]}},a),f=a.style,delete a.style,s=n(o,{stroke:"#68A",fill:{linearGradient:t,stops:[[0,"#9BD"],[1,"#CDF"]]}},s),p=s.style,delete s.style,l=n(o,{style:{color:"#CCC"}},l),g=l.style,delete l.style,Yt(m.element,yt?"mouseover":"mouseenter",function(){3!==v&&m.attr(a).css(f)}),Yt(m.element,yt?"mouseout":"mouseleave",function(){3!==v&&(u=[o,a,s][v],h=[d,f,p][v],m.attr(u).css(h))}),m.setState=function(t){(m.state=v=t)?2===t?m.attr(s).css(p):3===t&&m.attr(l).css(g):m.attr(o).css(d)},m.on("click",function(t){3!==v&&r.call(m,t)}).attr(o).css(Jt({cursor:"default"},d))},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=at(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=at(t[2])+e%2/2),t},path:function(t){var e={fill:"none"};return a(t)?e.d=t:Qt(t)&&Jt(e,t),this.createElement("path").attr(e)},circle:function(t,e,i){return t=Qt(t)?t:{x:t,y:e,r:i},e=this.createElement("circle"),e.xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},arc:function(t,e,i,n,r,o){return Qt(t)&&(e=t.y,i=t.r,n=t.innerR,r=t.start,o=t.end,t=t.x),t=this.symbol("arc",t||0,e||0,i||0,i||0,{innerR:n||0,start:r||0,end:o||0}),t.r=i,t},rect:function(t,e,i,n,r,o){var r=Qt(t)?t.r:r,a=this.createElement("rect"),t=Qt(t)?t:t===I?{}:{x:t,y:e,width:ct(i,0),height:ct(n,0)};return o!==I&&(a.strokeWidth=o,t=a.crisp(t)),r&&(t.r=r),a.rSetter=function(t,e,i){c(i,{rx:t,ry:t})},a.attr(t)},setSize:function(t,e,i){var n=this.alignedObjects,r=n.length;for(this.width=t,this.height=e,this.boxWrapper[$t(i,!0)?"animate":"attr"]({width:t,height:e});r--;)n[r].align()},g:function(t){var e=this.createElement("g");return l(t)?e.attr({class:"highcharts-"+t}):e},image:function(t,e,i,n,r){var o={preserveAspectRatio:"none"};return arguments.length>1&&Jt(o,{x:e,y:i,width:n,height:r}),o=this.createElement("image").attr(o),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,i,n,r,o){var a,s,l,c=this,u=this.symbols[t],u=u&&u(at(e),at(i),n,r,o),h=/^url\((.*?)\)$/;return u?(a=this.path(u),Jt(a,{symbolName:t,x:e,y:i,width:n,height:r}),o&&Jt(a,o)):h.test(t)&&(l=function(t,e){t.element&&(t.attr({width:e[0],height:e[1]}),t.alignByTranslate||t.translate(at((n-e[0])/2),at((r-e[1])/2)))},s=t.match(h)[1],t=Ct[s]||o&&o.width&&o.height&&[o.width,o.height],a=this.image(s).attr({x:e,y:i}),a.isImg=!0,t?l(a,t):(a.attr({width:0,height:0}),f("img",{onload:function(){var t=Et[c.chartIndex];0===this.width&&(d(this,{position:"absolute",top:"-999em"}),rt.body.appendChild(this)),l(a,Ct[s]=[this.width,this.height]),this.parentNode&&this.parentNode.removeChild(this),c.imgCount--,!c.imgCount&&t&&t.onload&&t.onload()},src:s}),this.imgCount++)),a},symbols:{circle:function(t,e,i,n){var r=.166*i;return[It,t+i/2,e,"C",t+i+r,e,t+i+r,e+n,t+i/2,e+n,"C",t-r,e+n,t-r,e,t+i/2,e,"Z"]},square:function(t,e,i,n){return[It,t,e,Rt,t+i,e,t+i,e+n,t,e+n,"Z"]},triangle:function(t,e,i,n){return[It,t+i/2,e,Rt,t+i,e+n,t,e+n,"Z"]},"triangle-down":function(t,e,i,n){return[It,t,e,Rt,t+i,e,t+i/2,e+n,"Z"]},diamond:function(t,e,i,n){return[It,t+i/2,e,Rt,t+i,e+n/2,t+i/2,e+n,t,e+n/2,"Z"]},arc:function(t,e,i,n,r){var o=r.start,i=r.r||i||n,a=r.end-.001,n=r.innerR,s=r.open,l=dt(o),c=ft(o),u=dt(a),a=ft(a),r=r.end-o<pt?0:1;return[It,t+i*l,e+i*c,"A",i,i,0,r,1,t+i*u,e+i*a,s?It:Rt,t+n*u,e+n*a,"A",n,n,0,r,0,t+n*l,e+n*c,s?"":"Z"]},callout:function(t,e,i,n,r){var o,a=ut(r&&r.r||0,i,n),s=a+6,l=r&&r.anchorX,r=r&&r.anchorY;return o=["M",t+a,e,"L",t+i-a,e,"C",t+i,e,t+i,e,t+i,e+a,"L",t+i,e+n-a,"C",t+i,e+n,t+i,e+n,t+i-a,e+n,"L",t+a,e+n,"C",t,e+n,t,e+n,t,e+n-a,"L",t,e+a,"C",t,e,t,e,t+a,e],l&&l>i&&r>e+s&&r<e+n-s?o.splice(13,3,"L",t+i,r-6,t+i+6,r,t+i,r+6,t+i,e+n-a):l&&l<0&&r>e+s&&r<e+n-s?o.splice(33,3,"L",t,r+6,t-6,r,t,r-6,t,e+a):r&&r>n&&l>t+s&&l<t+i-s?o.splice(23,3,"L",l+6,e+n,l,e+n+6,l-6,e+n,t+a,e+n):r&&r<0&&l>t+s&&l<t+i-s&&o.splice(3,3,"L",l-6,e,l,e-6,l+6,e,i-a,e),o}},clipRect:function(t,e,i,n){var r="highcharts-"+Mt++,o=this.createElement("clipPath").attr({id:r}).add(this.defs),t=this.rect(t,e,i,n,0).add(o);return t.id=r,t.clipPath=o,t.count=0,t},text:function(t,e,i,n){var r=Pt||!Tt&&this.forExport,o={};return!n||!this.allowHTML&&this.forExport?(o.x=Math.round(e||0),i&&(o.y=Math.round(i)),(t||0===t)&&(o.text=t),t=this.createElement("text").attr(o),r&&t.css({position:"absolute"}),n||(t.xSetter=function(t,e,i){var n,r,o=i.getElementsByTagName("tspan"),a=i.getAttribute(e);for(r=0;r<o.length;r++)n=o[r],n.getAttribute(e)===a&&n.setAttribute(e,t);i.setAttribute(e,t)}),t):this.html(t,e,i)},fontMetrics:function(e,i){var n,o,e=e||this.style.fontSize;return!e&&i&&t.getComputedStyle&&(i=i.element||i,e=(n=t.getComputedStyle(i,""))&&n.fontSize),e=/px/.test(e)?r(e):/em/.test(e)?12*parseFloat(e):12,n=e<24?e+3:at(1.2*e),o=at(.8*n),{h:n,b:o,f:e}},rotCorr:function(t,e,i){var n=t;return e&&i&&(n=ct(n*dt(e*gt),4)),{x:-t/3*ft(e*gt),y:n}},label:function(t,e,i,r,o,a,s,c,u){var h,d,f,p,g,m,v,y,b,x,w=this,S=w.g(u),k=w.text("",0,0,s).attr({zIndex:1}),T=0,O=3,P=0,C=0,M={},_=/^url\((.*?)\)$/.test(r),A=_;y=function(){var t,e;t=k.element.style,d=(void 0===f||void 0===p||S.styles.textAlign)&&l(k.textStr)&&k.getBBox(),S.width=(f||d.width||0)+2*O+P,S.height=(p||d.height||0)+2*O,v=O+w.fontMetrics(t&&t.fontSize,k).b,A&&(h||(t=C,e=(c?-v:0)+C,S.box=h=w.symbols[r]||_?w.symbol(r,t,e,S.width,S.height,M):w.rect(t,e,S.width,S.height,0,M["stroke-width"]),h.isImg||h.attr("fill","none"),h.add(S)),h.isImg||h.attr(Jt({width:at(S.width),height:at(S.height)},M)),M=null)},b=function(){var t,e=S.styles,e=e&&e.textAlign,i=P+O;t=c?0:v,l(f)&&d&&("center"===e||"right"===e)&&(i+={center:.5,right:1}[e]*(f-d.width)),i===k.x&&t===k.y||(k.attr("x",i),t!==I&&k.attr("y",t)),k.x=i,k.y=t},x=function(t,e){h?h.attr(t,e):M[t]=e},S.onAdd=function(){k.add(S),S.attr({text:t||0===t?t:"",x:e,y:i}),h&&l(o)&&S.attr({anchorX:o,anchorY:a})},S.widthSetter=function(t){f=t},S.heightSetter=function(t){p=t},S.paddingSetter=function(t){l(t)&&t!==O&&(O=S.padding=t,b())},S.paddingLeftSetter=function(t){l(t)&&t!==P&&(P=t,b())},S.alignSetter=function(t){t={left:0,center:.5,right:1}[t],t!==T&&(T=t,d&&S.attr({x:g}))},S.textSetter=function(t){t!==I&&k.textSetter(t),y(),b()},S["stroke-widthSetter"]=function(t,e){t&&(A=!0),C=t%2/2,x(e,t)},S.strokeSetter=S.fillSetter=S.rSetter=function(t,e){"fill"===e&&t&&(A=!0),x(e,t)},S.anchorXSetter=function(t,e){o=t,x(e,at(t)-C-g)},S.anchorYSetter=function(t,e){a=t,x(e,t-m)},S.xSetter=function(t){S.x=t,T&&(t-=T*((f||d.width)+2*O)),g=at(t),S.attr("translateX",g)},S.ySetter=function(t){m=S.y=at(t),S.attr("translateY",m)};var L=S.css;return Jt(S,{css:function(t){if(t){var e={},t=n(t);zt(S.textProps,function(i){t[i]!==I&&(e[i]=t[i],delete t[i])}),k.css(e)}return L.call(S,t)},getBBox:function(){return{width:d.width+2*O,height:d.height+2*O,x:d.x-O,y:d.y-O}},shadow:function(t){return h&&h.shadow(t),S},destroy:function(){Gt(S.element,"mouseenter"),Gt(S.element,"mouseleave"),k&&(k=k.destroy()),h&&(h=h.destroy()),E.prototype.destroy.call(S),S=w=y=b=x=null}})}},R=ne,Jt(E.prototype,{htmlCss:function(t){var e=this.element;return(e=t&&"SPAN"===e.tagName&&t.width)&&(delete t.width,this.textWidth=e,this.updateTransform()),t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=Jt(this.styles,t),d(this.element,t),this},htmlGetBBox:function(){var t=this.element;return"text"===t.nodeName&&(t.style.position="absolute"),{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,n=this.translateY||0,o=this.x||0,a=this.y||0,s=this.textAlign||"left",c={left:0,center:.5,right:1}[s],u=this.shadows,h=this.styles;if(d(e,{marginLeft:i,marginTop:n}),u&&zt(u,function(t){d(t,{marginLeft:i+1,marginTop:n+1})}),this.inverted&&zt(e.childNodes,function(i){t.invertChild(i,e)}),"SPAN"===e.tagName){var u=this.rotation,f=r(this.textWidth),p=h&&h.whiteSpace,g=[u,s,e.innerHTML,this.textWidth,this.textAlign].join(",");g!==this.cTT&&(h=t.fontMetrics(e.style.fontSize).b,l(u)&&this.setSpanRotation(u,c,h),d(e,{width:"",whiteSpace:p||"nowrap"}),e.offsetWidth>f&&/[ \-]/.test(e.textContent||e.innerText)&&d(e,{width:f+"px",display:"block",whiteSpace:p||"normal"}),this.getSpanCorrection(e.offsetWidth,h,c,u,s)),d(e,{left:o+(this.xCorr||0)+"px",top:a+(this.yCorr||0)+"px"}),xt&&(h=e.offsetHeight),this.cTT=g}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var n={},r=yt?"-ms-transform":xt?"-webkit-transform":wt?"MozTransform":vt?"-o-transform":"";n[r]=n.transform="rotate("+t+"deg)",n[r+(wt?"Origin":"-origin")]=n.transformOrigin=100*e+"% "+i+"px",d(this.element,n)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),Jt(ne.prototype,{html:function(t,e,i){var n=this.createElement("span"),r=n.element,o=n.renderer,a=o.isSVG,s=function(t,e){zt(["display","opacity","visibility"],function(i){te(t,i+"Setter",function(t,i,n,r){t.call(this,i,n,r),e[n]=i})})};return n.textSetter=function(t){t!==r.innerHTML&&delete this.bBox,r.innerHTML=this.textStr=t,n.htmlUpdateTransform()},a&&s(n,n.element.style),n.xSetter=n.ySetter=n.alignSetter=n.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),n[e]=t,n.htmlUpdateTransform()},n.attr({text:t,x:at(e),y:at(i)}).css({position:"absolute",fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),r.style.whiteSpace="nowrap",n.css=n.htmlCss,a&&(n.add=function(t){var e,i=o.box.parentNode,a=[];if(this.parentGroup=t){if(e=t.div,!e){for(;t;)a.push(t),t=t.parentGroup;zt(a.reverse(),function(t){var n,r=c(t.element,"class");r&&(r={className:r}),e=t.div=t.div||f(Lt,r,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},e||i),n=e.style,Jt(t,{translateXSetter:function(e,i){n.left=e+"px",t[i]=e,t.doTransform=!0},translateYSetter:function(e,i){n.top=e+"px",t[i]=e,t.doTransform=!0}}),s(t,n)})}}else e=i;return e.appendChild(r),n.added=!0,n.alignOnAdd&&n.htmlUpdateTransform(),n}),n}});var re;if(!Tt&&!Pt){re={init:function(t,e){var i=["<",e,' filled="f" stroked="f"'],n=["position: ","absolute",";"],r=e===Lt;("shape"===e||r)&&n.push("left:0;top:0;width:1px;height:1px;"),n.push("visibility: ",r?"hidden":"visible"),i.push(' style="',n.join(""),'"/>'),e&&(i=r||"span"===e||"img"===e?i.join(""):t.prepVML(i),this.element=f(i)),this.renderer=t},add:function(t){var e=this.renderer,i=this.element,n=e.box,r=t&&t.inverted,n=t?t.element||t:n;return t&&(this.parentGroup=t),r&&e.invertChild(i,n),n.appendChild(i),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),this.onAdd&&this.onAdd(),this},updateTransform:E.prototype.htmlUpdateTransform,setSpanRotation:function(){var t=this.rotation,e=dt(t*gt),i=ft(t*gt);d(this.element,{filter:t?["progid:DXImageTransform.Microsoft.Matrix(M11=",e,", M12=",-i,", M21=",i,", M22=",e,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(t,e,i,n,r){var o,a=n?dt(n*gt):1,s=n?ft(n*gt):0,l=$t(this.elemHeight,this.element.offsetHeight);this.xCorr=a<0&&-t,this.yCorr=s<0&&-l,o=a*s<0,this.xCorr+=s*e*(o?1-i:i),this.yCorr-=a*e*(n?o?i:1-i:1),r&&"left"!==r&&(this.xCorr-=t*i*(a<0?-1:1),n&&(this.yCorr-=l*i*(s<0?-1:1)),d(this.element,{textAlign:r}))},pathToVML:function(t){for(var e=t.length,i=[];e--;)Zt(t[e])?i[e]=at(10*t[e])-5:"Z"===t[e]?i[e]="x":(i[e]=t[e],!t.isArc||"wa"!==t[e]&&"at"!==t[e]||(i[e+5]===i[e+7]&&(i[e+7]+=t[e+7]>t[e+5]?1:-1),i[e+6]===i[e+8]&&(i[e+8]+=t[e+8]>t[e+6]?1:-1)));return i.join(" ")||"x"},clip:function(t){var e,i=this;return t?(e=t.members,s(e,i),e.push(i),i.destroyClip=function(){s(e,i)},t=t.getCSS(i)):(i.destroyClip&&i.destroyClip(),t={clip:bt?"inherit":"rect(auto)"}),i.css(t)},css:E.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&T(t)},destroy:function(){return this.destroyClip&&this.destroyClip(),E.prototype.destroy.apply(this)},on:function(e,i){return this.element["on"+e]=function(){var e=t.event;e.target=e.srcElement,i(e)},this},cutOffPath:function(t,e){var i,t=t.split(/[ ,]/);return i=t.length,9!==i&&11!==i||(t[i-4]=t[i-2]=r(t[i-2])-10*e),t.join(" ")},shadow:function(t,e,i){var n,o,a,s,l,c,u,h=[],d=this.element,p=this.renderer,g=d.style,m=d.path;if(m&&"string"!=typeof m.value&&(m="x"),l=m,t){for(c=$t(t.width,3),u=(t.opacity||.15)/c,n=1;n<=3;n++)s=2*c+1-2*n,i&&(l=this.cutOffPath(m.value,s+.5)),a=['<shape isShadow="true" strokeweight="',s,'" filled="false" path="',l,'" coordsize="10 10" style="',d.style.cssText,'" />'],o=f(p.prepVML(a),null,{left:r(g.left)+$t(t.offsetX,1),top:r(g.top)+$t(t.offsetY,1)}),i&&(o.cutOff=s+1),a=['<stroke color="',t.color||"black",'" opacity="',u*n,'"/>'],f(p.prepVML(a),null,null,o),e?e.element.appendChild(o):d.parentNode.insertBefore(o,d),h.push(o);this.shadows=h}return this},updateShadows:_t,setAttr:function(t,e){bt?this.element[t]=e:this.element.setAttribute(t,e)},classSetter:function(t){this.element.className=t},dashstyleSetter:function(t,e,i){(i.getElementsByTagName("stroke")[0]||f(this.renderer.prepVML(["<stroke/>"]),null,null,i))[e]=t||"solid",this[e]=t},dSetter:function(t,e,i){var n=this.shadows,t=t||[];if(this.d=t.join&&t.join(" "),i.path=t=this.pathToVML(t),n)for(i=n.length;i--;)n[i].path=n[i].cutOff?this.cutOffPath(t,n[i].cutOff):t;this.setAttr(e,t)},fillSetter:function(t,e,i){var n=i.nodeName;"SPAN"===n?i.style.color=t:"IMG"!==n&&(i.filled="none"!==t,this.setAttr("fillcolor",this.renderer.color(t,i,e,this)))},"fill-opacitySetter":function(t,e,i){f(this.renderer.prepVML(["<",e.split("-")[0],' opacity="',t,'"/>']),null,null,i)},opacitySetter:_t,rotationSetter:function(t,e,i){i=i.style,this[e]=i[e]=t,i.left=-at(ft(t*gt)+1)+"px",i.top=at(dt(t*gt))+"px"},strokeSetter:function(t,e,i){this.setAttr("strokecolor",this.renderer.color(t,i,e,this))},"stroke-widthSetter":function(t,e,i){i.stroked=!!t,this[e]=t,Zt(t)&&(t+="px"),this.setAttr("strokeweight",t)},titleSetter:function(t,e){this.setAttr(e,t)},visibilitySetter:function(t,e,i){"inherit"===t&&(t="visible"),this.shadows&&zt(this.shadows,function(i){i.style[e]=t}),"DIV"===i.nodeName&&(t="hidden"===t?"-999em":0,bt||(i.style[e]=t?"visible":"hidden"),e="top"),i.style[e]=t},displaySetter:function(t,e,i){i.style[e]=t},xSetter:function(t,e,i){this[e]=t,"x"===e?e="left":"y"===e&&(e="top"),this.updateClipping?(this[e]=t,this.updateClipping()):i.style[e]=t},zIndexSetter:function(t,e,i){i.style[e]=t}},re["stroke-opacitySetter"]=re["fill-opacitySetter"],nt.VMLElement=re=p(E,re),re.prototype.ySetter=re.prototype.widthSetter=re.prototype.heightSetter=re.prototype.xSetter;var oe={Element:re,isIE8:mt.indexOf("MSIE 8.0")>-1,init:function(t,e,i,n){var r;if(this.alignedObjects=[],n=this.createElement(Lt).css(Jt(this.getStyle(n),{position:"relative"})),r=n.element,t.appendChild(n.element),this.isVML=!0,this.box=r,this.boxWrapper=n,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),!rt.namespaces.hcv){rt.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{rt.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(t){rt.styleSheets[0].cssText+="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}},
isHidden:function(){return!this.box.offsetWidth},clipRect:function(t,e,i,n){var r=this.createElement(),o=Qt(t);return Jt(r,{members:[],count:0,left:(o?t.x:t)+1,top:(o?t.y:e)+1,width:(o?t.width:i)-1,height:(o?t.height:n)-1,getCSS:function(t){var e=t.element,i=e.nodeName,t=t.inverted,n=this.top-("shape"===i?e.offsetTop:0),r=this.left,e=r+this.width,o=n+this.height,n={clip:"rect("+at(t?r:n)+"px,"+at(t?o:e)+"px,"+at(t?e:o)+"px,"+at(t?n:r)+"px)"};return!t&&bt&&"DIV"===i&&Jt(n,{width:e+"px",height:o+"px"}),n},updateClipping:function(){zt(r.members,function(t){t.element&&t.css(r.getCSS(t))})}})},color:function(t,e,i,n){var r,o,a,s=this,l=/^rgba/,c="none";if(t&&t.linearGradient?a="gradient":t&&t.radialGradient&&(a="pattern"),a){var u,h,d,p,g,m,v,y,b=t.linearGradient||t.radialGradient,x="",t=t.stops,w=[],S=function(){o=['<fill colors="'+w.join(",")+'" opacity="',g,'" o:opacity2="',p,'" type="',a,'" ',x,'focus="100%" method="any" />'],f(s.prepVML(o),null,null,e)};if(d=t[0],y=t[t.length-1],d[0]>0&&t.unshift([0,d[1]]),y[0]<1&&t.push([1,y[1]]),zt(t,function(t,e){l.test(t[1])?(r=_(t[1]),u=r.get("rgb"),h=r.get("a")):(u=t[1],h=1),w.push(100*t[0]+"% "+u),e?(g=h,m=u):(p=h,v=u)}),"fill"===i)if("gradient"===a)i=b.x1||b[0]||0,t=b.y1||b[1]||0,d=b.x2||b[2]||0,b=b.y2||b[3]||0,x='angle="'+(90-180*ot.atan((b-t)/(d-i))/pt)+'"',S();else{var k,c=b.r,T=2*c,O=2*c,P=b.cx,C=b.cy,M=e.radialReference,c=function(){M&&(k=n.getBBox(),P+=(M[0]-k.x)/k.width-.5,C+=(M[1]-k.y)/k.height-.5,T*=M[2]/k.width,O*=M[2]/k.height),x='src="'+N.global.VMLRadialGradientURL+'" size="'+T+","+O+'" origin="0.5,0.5" position="'+P+","+C+'" color2="'+v+'" ',S()};n.added?c():n.onAdd=c,c=m}else c=u}else l.test(t)&&"IMG"!==e.tagName?(r=_(t),n[i+"-opacitySetter"](r.get("a"),i,e),c=r.get("rgb")):(c=e.getElementsByTagName(i),c.length&&(c[0].opacity=1,c[0].type="solid"),c=t);return c},prepVML:function(t){var e=this.isIE8,t=t.join("");return e?(t=t.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),t=t.indexOf('style="')===-1?t.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):t.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):t=t.replace("<","<hcv:"),t},text:ne.prototype.html,path:function(t){var e={coordsize:"10 10"};return a(t)?e.d=t:Qt(t)&&Jt(e,t),this.createElement("shape").attr(e)},circle:function(t,e,i){var n=this.symbol("circle");return Qt(t)&&(i=t.r,e=t.y,t=t.x),n.isCircle=!0,n.r=i,n.attr({x:t,y:e})},g:function(t){var e;return t&&(e={className:"highcharts-"+t,class:"highcharts-"+t}),this.createElement(Lt).attr(e)},image:function(t,e,i,n,r){var o=this.createElement("img").attr({src:t});return arguments.length>1&&o.attr({x:e,y:i,width:n,height:r}),o},createElement:function(t){return"rect"===t?this.symbol(t):ne.prototype.createElement.call(this,t)},invertChild:function(t,e){var i=this,n=e.style,o="IMG"===t.tagName&&t.style;d(t,{flip:"x",left:r(n.width)-(o?r(o.top):1),top:r(n.height)-(o?r(o.left):1),rotation:-90}),zt(t.childNodes,function(e){i.invertChild(e,t)})},symbols:{arc:function(t,e,i,n,r){var o=r.start,a=r.end,s=r.r||i||n,i=r.innerR,n=dt(o),l=ft(o),c=dt(a),u=ft(a);return a-o===0?["x"]:(o=["wa",t-s,e-s,t+s,e+s,t+s*n,e+s*l,t+s*c,e+s*u],r.open&&!i&&o.push("e",It,t,e),o.push("at",t-i,e-i,t+i,e+i,t+i*c,e+i*u,t+i*n,e+i*l,"x","e"),o.isArc=!0,o)},circle:function(t,e,i,n,r){return r&&(i=n=2*r.r),r&&r.isCircle&&(t-=i/2,e-=n/2),["wa",t,e,t+i,e+n,t+i,e+n/2,t+i,e+n/2,"e"]},rect:function(t,e,i,n,r){return ne.prototype.symbols[l(r)&&r.r?"callout":"square"].call(0,t,e,i,n,r)}}};nt.VMLRenderer=re=function(){this.init.apply(this,arguments)},re.prototype=n(ne.prototype,oe),R=re}ne.prototype.measureSpanWidth=function(t,e){var i,n=rt.createElement("span");return i=rt.createTextNode(t),n.appendChild(i),d(n,e),this.box.appendChild(n),i=n.offsetWidth,T(n),i};var ae;Pt&&(nt.CanVGRenderer=re=function(){kt="http://www.w3.org/1999/xhtml"},re.prototype.symbols={},ae=function(){function t(){var t,i=e.length;for(t=0;t<i;t++)e[t]();e=[]}var e=[];return{push:function(i,n){if(0===e.length){var r=rt.getElementsByTagName("head")[0],o=rt.createElement("script");o.type="text/javascript",o.src=n,o.onload=t,r.appendChild(o)}e.push(i)}}}(),R=re),A.prototype={addLabel:function(){var t,e=this.axis,i=e.options,r=e.chart,o=e.categories,a=e.names,s=this.pos,c=i.labels,u=e.tickPositions,h=s===u[0],d=s===u[u.length-1],a=o?$t(o[s],a[s],s):s,o=this.label,u=u.info;e.isDatetimeAxis&&u&&(t=i.dateTimeLabelFormats[u.higherRanks[s]||u.unitName]),this.isFirst=h,this.isLast=d,i=e.labelFormatter.call({axis:e,chart:r,isFirst:h,isLast:d,dateTimeLabelFormat:t,value:e.isLog?O(e.lin2log(a)):a}),l(o)?o&&o.attr({text:i}):(this.labelLength=(this.label=o=l(i)&&c.enabled?r.renderer.text(i,0,0,c.useHTML).css(n(c.style)).add(e.labelGroup):null)&&o.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e,i=this.axis,n=t.x,r=i.chart.chartWidth,o=i.chart.spacing,a=$t(i.labelLeft,ut(i.pos,o[3])),o=$t(i.labelRight,ct(i.pos+i.len,r-o[1])),s=this.label,l=this.rotation,c={left:0,center:.5,right:1}[i.labelAlign],u=s.getBBox().width,h=i.getSlotWidth(),d=h,f=1,p={};l?l<0&&n-c*u<a?e=at(n/dt(l*gt)-a):l>0&&n+c*u>o&&(e=at((r-n)/dt(l*gt))):(r=n+(1-c)*u,n-c*u<a?d=t.x+d*(1-c)-a:r>o&&(d=o-t.x+d*c,f=-1),d=ut(h,d),d<h&&"center"===i.labelAlign&&(t.x+=f*(h-d-c*(h-ut(u,d)))),(u>d||i.autoRotation&&s.styles.width)&&(e=d)),e&&(p.width=e,i.options.labels.style.textOverflow||(p.textOverflow="ellipsis"),s.css(p))},getPosition:function(t,e,i,n){var r=this.axis,o=r.chart,a=n&&o.oldChartHeight||o.chartHeight;return{x:t?r.translate(e+i,null,null,n)+r.transB:r.left+r.offset+(r.opposite?(n&&o.oldChartWidth||o.chartWidth)-r.right-r.left:0),y:t?a-r.bottom+r.offset-(r.opposite?r.height:0):a-r.translate(e+i,null,null,n)-r.transB}},getLabelPosition:function(t,e,i,n,r,o,a,s){var c=this.axis,u=c.transA,h=c.reversed,d=c.staggerLines,f=c.tickRotCorr||{x:0,y:0},p=r.y;return l(p)||(p=0===c.side?i.rotation?-8:-i.getBBox().height:2===c.side?f.y+8:dt(i.rotation*gt)*(f.y-i.getBBox(!1,0).height/2)),t=t+r.x+f.x-(o&&n?o*u*(h?-1:1):0),e=e+p-(o&&!n?o*u*(h?1:-1):0),d&&(i=a/(s||1)%d,c.opposite&&(i=d-i-1),e+=i*(c.labelOffset/d)),{x:t,y:at(e)}},getMarkPath:function(t,e,i,n,r,o){return o.crispLine([It,t,e,Rt,t+(r?0:-i),e+(r?i:0)],n)},render:function(t,e,i){var n=this.axis,r=n.options,o=n.chart.renderer,a=n.horiz,s=this.type,l=this.label,c=this.pos,u=r.labels,h=this.gridLine,d=s?s+"Grid":"grid",f=s?s+"Tick":"tick",p=r[d+"LineWidth"],g=r[d+"LineColor"],m=r[d+"LineDashStyle"],d=n.tickSize(f),f=r[f+"Color"],v=this.mark,y=u.step,b=!0,x=n.tickmarkOffset,w=this.getPosition(a,c,x,e),S=w.x,w=w.y,k=a&&S===n.pos+n.len||!a&&w===n.pos?-1:1,i=$t(i,1);this.isActive=!0,p&&(c=n.getPlotLinePath(c+x,p*k,e,!0),h===I&&(h={stroke:g,"stroke-width":p},m&&(h.dashstyle=m),s||(h.zIndex=1),e&&(h.opacity=0),this.gridLine=h=p?o.path(c).attr(h).add(n.gridGroup):null),!e&&h&&c&&h[this.isNew?"attr":"animate"]({d:c,opacity:i})),d&&(n.opposite&&(d[0]=-d[0]),s=this.getMarkPath(S,w,d[0],d[1]*k,a,o),v?v.animate({d:s,opacity:i}):this.mark=o.path(s).attr({stroke:f,"stroke-width":d[1],opacity:i}).add(n.axisGroup)),l&&Zt(S)&&(l.xy=w=this.getLabelPosition(S,w,l,a,u,x,t,y),this.isFirst&&!this.isLast&&!$t(r.showFirstLabel,1)||this.isLast&&!this.isFirst&&!$t(r.showLastLabel,1)?b=!1:a&&!n.isRadial&&!u.step&&!u.rotation&&!e&&0!==i&&this.handleOverflow(w),y&&t%y&&(b=!1),b&&Zt(w.y)?(w.opacity=i,l[this.isNew?"attr":"animate"](w)):(Vt(l),l.attr("y",-9999)),this.isNew=!1)},destroy:function(){k(this,this.axis)}},nt.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},nt.PlotLineOrBand.prototype={render:function(){var t,e=this,i=e.axis,r=i.horiz,o=e.options,a=o.label,s=e.label,c=o.width,u=o.to,h=o.from,d=l(h)&&l(u),f=o.value,p=o.dashStyle,g=e.svgElem,m=[],v=o.color,y=$t(o.zIndex,0),b=o.events,x={},w=i.chart.renderer,m=i.log2lin;if(i.isLog&&(h=m(h),u=m(u),f=m(f)),c)m=i.getPlotLinePath(f,c),x={stroke:v,"stroke-width":c},p&&(x.dashstyle=p);else{if(!d)return;m=i.getPlotBandPath(h,u,o),v&&(x.fill=v),o.borderWidth&&(x.stroke=o.borderColor,x["stroke-width"]=o.borderWidth)}if(x.zIndex=y,g)m?(g.show(),g.animate({d:m})):(g.hide(),s&&(e.label=s=s.destroy()));else if(m&&m.length&&(e.svgElem=g=w.path(m).attr(x).add(),b))for(t in o=function(t){g.on(t,function(i){b[t].apply(e,[i])})},b)o(t);return a&&l(a.text)&&m&&m.length&&i.width>0&&i.height>0&&!m.flat?(a=n({align:r&&d&&"center",x:r?!d&&4:10,verticalAlign:!r&&d&&"middle",y:r?d?16:10:d?6:-4,rotation:r&&!d&&90},a),this.renderLabel(a,m,d,y)):s&&s.hide(),e},renderLabel:function(t,e,i,n){var r=this.label,o=this.axis.chart.renderer;r||(r={align:t.textAlign||t.align,rotation:t.rotation},r.zIndex=n,this.label=r=o.text(t.text,0,0,t.useHTML).attr(r).css(t.style).add()),n=[e[1],e[4],i?e[6]:e[1]],e=[e[2],e[5],i?e[7]:e[2]],i=w(n),o=w(e),r.align(t,!1,{x:i,y:o,width:S(n)-i,height:S(e)-o}),r.show()},destroy:function(){s(this.axis.plotLinesAndBands,this),delete this.axis,k(this)}};var se=nt.Axis=function(){this.init.apply(this,arguments)};se.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},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",title:{align:"middle",style:{color:"#707070"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return nt.numberFormat(this.total,-1)},style:n(ee.line.dataLabels.style,{color:"#000000"})}},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(t,e){var i=e.isX;this.chart=t,this.horiz=t.inverted?!i:i,this.isXAxis=i,this.coll=this.coll||(i?"xAxis":"yAxis"),this.opposite=e.opposite,this.side=e.side||(this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var n=this.options,r=n.type;this.labelFormatter=n.labels.formatter||this.defaultLabelFormatter,this.userOptions=e,this.minPixelPadding=0,this.reversed=n.reversed,this.visible=n.visible!==!1,this.zoomEnabled=n.zoomEnabled!==!1,this.hasNames="category"===r||n.categories===!0,this.categories=n.categories||this.hasNames,this.names=this.names||[],this.isLog="logarithmic"===r,this.isDatetimeAxis="datetime"===r,this.isLinked=l(n.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=n.minRange||n.maxZoom,this.range=n.range,this.offset=n.offset||0,this.stacks={},this.oldStacks={},this.stacksTouched=0,this.min=this.max=null,this.crosshair=$t(n.crosshair,u(t.options.tooltip.crosshairs)[i?0:1],!1);var o,n=this.options.events;Ht(this,t.axes)===-1&&(i?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&i&&this.reversed===I&&(this.reversed=!0),this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(o in n)Yt(this,o,n[o]);this.isLog&&(this.val2lin=this.log2lin,this.lin2val=this.lin2log)},setOptions:function(t){this.options=n(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],n(N[this.coll],t))},defaultLabelFormatter:function(){var t,e=this.axis,i=this.value,n=e.categories,r=this.dateTimeLabelFormat,o=N.lang.numericSymbols,a=o&&o.length,s=e.options.labels.format,e=e.isLog?i:e.tickInterval;if(s)t=v(s,this);else if(n)t=i;else if(r)t=B(r,i);else if(a&&e>=1e3)for(;a--&&t===I;)n=Math.pow(1e3,a+1),e>=n&&10*i%n===0&&null!==o[a]&&0!==i&&(t=nt.numberFormat(i/n,-1)+o[a]);return t===I&&(t=ht(i)>=1e4?nt.numberFormat(i,-1):nt.numberFormat(i,-1,I,"")),t},getSeriesExtremes:function(){var t=this,e=t.chart;t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=null,t.softThreshold=!t.isXAxis,t.buildStacks&&t.buildStacks(),zt(t.series,function(i){if(i.visible||!e.options.chart.ignoreHiddenSeries){var n,r=i.options,o=r.threshold;t.hasVisibleSeries=!0,t.isLog&&o<=0&&(o=null),t.isXAxis?(r=i.xData,r.length&&(i=w(r),!Zt(i)&&!(i instanceof z)&&(r=Wt(r,function(t){return Zt(t)}),i=w(r)),t.dataMin=ut($t(t.dataMin,r[0]),i),t.dataMax=ct($t(t.dataMax,r[0]),S(r)))):(i.getExtremes(),n=i.dataMax,i=i.dataMin,l(i)&&l(n)&&(t.dataMin=ut($t(t.dataMin,i),i),t.dataMax=ct($t(t.dataMax,n),n)),l(o)&&(t.threshold=o),r.softThreshold&&!t.isLog||(t.softThreshold=!1))}})},translate:function(t,e,i,n,r,o){var a=this.linkedParent||this,s=1,l=0,c=n?a.oldTransA:a.transA,n=n?a.oldMin:a.min,u=a.minPixelPadding,r=(a.isOrdinal||a.isBroken||a.isLog&&r)&&a.lin2val;return c||(c=a.transA),i&&(s*=-1,l=a.len),a.reversed&&(s*=-1,l-=s*(a.sector||a.len)),e?(t=t*s+l,t-=u,t=t/c+n,r&&(t=a.lin2val(t))):(r&&(t=a.val2lin(t)),"between"===o&&(o=.5),t=s*(t-n)*c+l+s*u+(Zt(o)?c*o*a.pointRange:0)),t},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t,e,i,n,r){var o,a,s,l=this.chart,c=this.left,u=this.top,h=i&&l.oldChartHeight||l.chartHeight,d=i&&l.oldChartWidth||l.chartWidth;o=this.transB;var f=function(t,e,i){return(t<e||t>i)&&(n?t=ut(ct(e,t),i):s=!0),t},r=$t(r,this.translate(t,null,null,i)),t=i=at(r+o);return o=a=at(h-r-o),Zt(r)?this.horiz?(o=u,a=h-this.bottom,t=i=f(t,c,c+this.width)):(t=c,i=d-this.right,o=a=f(o,u,u+this.height)):s=!0,s&&!n?null:l.renderer.crispLine([It,t,o,Rt,i,a],e||1)},getLinearTickPositions:function(t,e,i){var n,r=O(st(e/t)*t),o=O(lt(i/t)*t),a=[];if(e===i&&Zt(e))return[e];for(e=r;e<=o&&(a.push(e),e=O(e+t),e!==n);)n=e;return a},getMinorTickPositions:function(){var t,e=this.options,i=this.tickPositions,n=this.minorTickInterval,r=[],o=this.pointRangePadding||0;t=this.min-o;var o=this.max+o,a=o-t;if(a&&a/n<this.len/3)if(this.isLog)for(o=i.length,t=1;t<o;t++)r=r.concat(this.getLogTickPositions(n,i[t-1],i[t],!0));else if(this.isDatetimeAxis&&"auto"===e.minorTickInterval)r=r.concat(this.getTimeTicks(this.normalizeTimeTickInterval(n),t,o,e.startOfWeek));else for(i=t+(i[0]-t)%n;i<=o;i+=n)r.push(i);return 0!==r.length&&this.trimTicks(r,e.startOnTick,e.endOnTick),r},adjustForMinRange:function(){var t,e,i,n,r,o,a,s=this.options,c=this.min,u=this.max,h=this.dataMax-this.dataMin>=this.minRange;this.isXAxis&&this.minRange===I&&!this.isLog&&(l(s.min)||l(s.max)?this.minRange=null:(zt(this.series,function(t){for(r=t.xData,i=o=t.xIncrement?1:r.length-1;i>0;i--)n=r[i]-r[i-1],(e===I||n<e)&&(e=n)}),this.minRange=ut(5*e,this.dataMax-this.dataMin))),u-c<this.minRange&&(a=this.minRange,t=(a-u+c)/2,t=[c-t,$t(s.min,c-t)],h&&(t[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),c=S(t),u=[c+a,$t(s.max,c+a)],h&&(u[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),u=w(u),u-c<a&&(t[0]=u-a,t[1]=$t(s.min,u-a),c=S(t))),this.min=c,this.max=u},getClosest:function(){var t;return this.categories?t=1:zt(this.series,function(e){var i=e.closestPointRange;!e.noSharedTooltip&&l(i)&&(t=l(t)?ut(t,i):i)}),t},nameToX:function(t){var e,i=a(this.categories),n=i?this.categories:this.names,r=t.options.x;return t.series.requireSorting=!1,l(r)||(r=this.options.nameToX===!1?t.series.autoIncrement():Ht(t.name,n)),r===-1?i||(e=n.length):e=r,this.names[e]=t.name,e},updateNames:function(){var t=this;this.names.length>0&&(this.names.length=0,this.minRange=void 0,zt(this.series||[],function(e){e.processedXData||(e.processData(),e.generatePoints()),zt(e.points,function(i,n){var r;i.options&&void 0===i.options.x&&(r=t.nameToX(i),r!==i.x)&&(i.x=r,e.xData[n]=r)})}))},setAxisTranslation:function(t){var e,i=this,n=i.max-i.min,r=i.axisPointRange||0,a=0,s=0,l=i.linkedParent,c=!!i.categories,u=i.transA,h=i.isXAxis;(h||c||r)&&(l?(a=l.minPointOffset,s=l.pointRangePadding):(e=i.getClosest(),zt(i.series,function(t){var n=c?1:h?$t(t.options.pointRange,e,0):i.axisPointRange||0,t=t.options.pointPlacement;r=ct(r,n),i.single||(a=ct(a,o(t)?0:n/2),s=ct(s,"on"===t?0:n))})),l=i.ordinalSlope&&e?i.ordinalSlope/e:1,i.minPointOffset=a*=l,i.pointRangePadding=s*=l,i.pointRange=ut(r,n),h&&(i.closestPointRange=e)),t&&(i.oldTransA=u),i.translationSlope=i.transA=u=i.len/(n+s||1),i.transB=i.horiz?i.left:i.bottom,i.minPixelPadding=u*a},minFromRange:function(){return this.max-this.range},setTickInterval:function(t){var i,n,r,o,a=this,s=a.chart,c=a.options,u=a.isLog,h=a.log2lin,d=a.isDatetimeAxis,f=a.isXAxis,p=a.isLinked,g=c.maxPadding,m=c.minPadding,v=c.tickInterval,x=c.tickPixelInterval,w=a.categories,S=a.threshold,k=a.softThreshold;!d&&!w&&!p&&this.getTickAmount(),r=$t(a.userMin,c.min),o=$t(a.userMax,c.max),p?(a.linkedParent=s[a.coll][c.linkedTo],s=a.linkedParent.getExtremes(),a.min=$t(s.min,s.dataMin),a.max=$t(s.max,s.dataMax),c.type!==a.linkedParent.options.type&&e(11,1)):(!k&&l(S)&&(a.dataMin>=S?(i=S,m=0):a.dataMax<=S&&(n=S,g=0)),a.min=$t(r,i,a.dataMin),a.max=$t(o,n,a.dataMax)),u&&(!t&&ut(a.min,$t(a.dataMin,a.min))<=0&&e(10,1),a.min=O(h(a.min),15),a.max=O(h(a.max),15)),a.range&&l(a.max)&&(a.userMin=a.min=r=ct(a.min,a.minFromRange()),a.userMax=o=a.max,a.range=null),Ut(a,"foundExtremes"),a.beforePadding&&a.beforePadding(),a.adjustForMinRange(),w||a.axisPointRange||a.usePercentage||p||!l(a.min)||!l(a.max)||!(h=a.max-a.min)||(!l(r)&&m&&(a.min-=h*m),!l(o)&&g&&(a.max+=h*g)),Zt(c.floor)&&(a.min=ct(a.min,c.floor)),Zt(c.ceiling)&&(a.max=ut(a.max,c.ceiling)),k&&l(a.dataMin)&&(S=S||0,!l(r)&&a.min<S&&a.dataMin>=S?a.min=S:!l(o)&&a.max>S&&a.dataMax<=S&&(a.max=S)),a.tickInterval=a.min===a.max||void 0===a.min||void 0===a.max?1:p&&!v&&x===a.linkedParent.options.tickPixelInterval?v=a.linkedParent.tickInterval:$t(v,this.tickAmount?(a.max-a.min)/ct(this.tickAmount-1,1):void 0,w?1:(a.max-a.min)*x/ct(a.len,x)),f&&!t&&zt(a.series,function(t){t.processData(a.min!==a.oldMin||a.max!==a.oldMax)}),a.setAxisTranslation(!0),a.beforeSetTickPositions&&a.beforeSetTickPositions(),a.postProcessTickInterval&&(a.tickInterval=a.postProcessTickInterval(a.tickInterval)),a.pointRange&&!v&&(a.tickInterval=ct(a.pointRange,a.tickInterval)),t=$t(c.minTickInterval,a.isDatetimeAxis&&a.closestPointRange),!v&&a.tickInterval<t&&(a.tickInterval=t),d||u||v||(a.tickInterval=b(a.tickInterval,null,y(a.tickInterval),$t(c.allowDecimals,!(a.tickInterval>.5&&a.tickInterval<5&&a.max>1e3&&a.max<9999)),!!this.tickAmount)),this.tickAmount||(a.tickInterval=a.unsquish()),this.setTickPositions()},setTickPositions:function(){var t,e,i=this.options,n=i.tickPositions,r=i.tickPositioner,o=i.startOnTick,a=i.endOnTick;this.tickmarkOffset=this.categories&&"between"===i.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i.minorTickInterval&&this.tickInterval?this.tickInterval/5:i.minorTickInterval,this.tickPositions=t=n&&n.slice(),!t&&(t=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,i.units),this.min,this.max,i.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),t.length>this.len&&(t=[t[0],t.pop()]),this.tickPositions=t,r&&(r=r.apply(this,[this.min,this.max])))&&(this.tickPositions=t=r),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,!n&&!r&&this.adjustTickAmount())},trimTicks:function(t,e,i){var n=t[0],r=t[t.length-1],o=this.minPointOffset||0;if(e)this.min=n;else for(;this.min-o>t[0];)t.shift();if(i)this.max=r;else for(;this.max+o<t[t.length-1];)t.pop();0===t.length&&l(n)&&t.push((r+n)/2)},alignToOthers:function(){var t,e={},i=this.options;return this.chart.options.chart.alignTicks!==!1&&i.alignTicks!==!1&&zt(this.chart[this.coll],function(i){var n=i.options,n=[i.horiz?n.left:n.top,n.width,n.height,n.pane].join(",");i.series.length&&(e[n]?t=!0:e[n]=1)}),t},getTickAmount:function(){var t=this.options,e=t.tickAmount,i=t.tickPixelInterval;!l(t.tickInterval)&&this.len<i&&!this.isRadial&&!this.isLog&&t.startOnTick&&t.endOnTick&&(e=2),!e&&this.alignToOthers()&&(e=lt(this.len/i)+1),e<4&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t=this.tickInterval,e=this.tickPositions,i=this.tickAmount,n=this.finalTickAmt,r=e&&e.length;if(r<i){for(;e.length<i;)e.push(O(e[e.length-1]+t));this.transA*=(r-1)/(i-1),this.max=e[e.length-1]}else r>i&&(this.tickInterval*=2,this.setTickPositions());if(l(n)){for(t=i=e.length;t--;)(3===n&&t%2===1||n<=2&&t>0&&t<i-1)&&e.splice(t,1);this.finalTickAmt=I}},setScale:function(){var t,e;this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),e=this.len!==this.oldAxisLength,zt(this.series,function(e){(e.isDirtyData||e.isDirty||e.xAxis.isDirty)&&(t=!0)}),e||t||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=e||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks()},setExtremes:function(t,e,i,n,r){var o=this,a=o.chart,i=$t(i,!0);zt(o.series,function(t){delete t.kdTree}),r=Jt(r,{min:t,max:e}),Ut(o,"setExtremes",r,function(){o.userMin=t,o.userMax=e,o.eventArgs=r,i&&a.redraw(n)})},zoom:function(t,e){var i=this.dataMin,n=this.dataMax,r=this.options,o=ut(i,$t(r.min,i)),r=ct(n,$t(r.max,n));return this.allowZoomOutside||(l(i)&&t<=o&&(t=o),l(n)&&e>=r&&(e=r)),this.displayBtn=t!==I||e!==I,this.setExtremes(t,e,!1,I,{trigger:"zoom"}),!0},setAxisSize:function(){var t=this.chart,e=this.options,i=e.offsetLeft||0,n=this.horiz,r=$t(e.width,t.plotWidth-i+(e.offsetRight||0)),o=$t(e.height,t.plotHeight),a=$t(e.top,t.plotTop),e=$t(e.left,t.plotLeft+i),i=/%$/;i.test(o)&&(o=Math.round(parseFloat(o)/100*t.plotHeight)),i.test(a)&&(a=Math.round(parseFloat(a)/100*t.plotHeight+t.plotTop)),this.left=e,this.top=a,this.width=r,this.height=o,this.bottom=t.chartHeight-o-a,this.right=t.chartWidth-r-e,this.len=ct(n?r:o,0),this.pos=n?e:a},getExtremes:function(){var t=this.isLog,e=this.lin2log;return{min:t?O(e(this.min)):this.min,max:t?O(e(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=this.isLog,i=this.lin2log,n=e?i(this.min):this.min,e=e?i(this.max):this.max;return null===t?t=n:n>t?t=n:e<t&&(t=e),this.translate(t,0,1,0,1)},autoLabelAlign:function(t){return t=($t(t,0)-90*this.side+720)%360,t>15&&t<165?"right":t>195&&t<345?"left":"center"},tickSize:function(t){var e=this.options,i=e[t+"Length"],n=$t(e[t+"Width"],"tick"===t&&this.isXAxis?1:0);if(n&&i)return"inside"===e[t+"Position"]&&(i=-i),[i,n]},labelMetrics:function(){return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[0]&&this.ticks[0].label)},unsquish:function(){var t,e,i,n=this.options.labels,r=this.horiz,o=this.tickInterval,a=o,s=this.len/(((this.categories?1:0)+this.max-this.min)/o),c=n.rotation,u=this.labelMetrics(),h=Number.MAX_VALUE,d=function(t){return t/=s||1,t=t>1?lt(t):1,t*o};return r?(i=!n.staggerLines&&!n.step&&(l(c)?[c]:s<$t(n.autoRotationLimit,80)&&n.autoRotation))&&zt(i,function(i){var n;(i===c||i&&i>=-90&&i<=90)&&(e=d(ht(u.h/ft(gt*i))),n=e+ht(i/360),n<h&&(h=n,t=i,a=e))}):n.step||(a=d(u.h)),this.autoRotation=i,this.labelRotation=$t(t,c),a},getSlotWidth:function(){var t=this.chart,e=this.horiz,i=this.options.labels,n=Math.max(this.tickPositions.length-(this.categories?0:1),1),r=t.margin[3];return e&&(i.step||0)<2&&!i.rotation&&(this.staggerLines||1)*t.plotWidth/n||!e&&(r&&r-t.spacing[3]||.33*t.chartWidth)},renderUnsquish:function(){var t,e,i,r=this.chart,a=r.renderer,s=this.tickPositions,l=this.ticks,c=this.options.labels,u=this.horiz,h=this.getSlotWidth(),d=ct(1,at(h-2*(c.padding||5))),f={},p=this.labelMetrics(),g=c.style.textOverflow,m=0;if(o(c.rotation)||(f.rotation=c.rotation||0),zt(s,function(t){(t=l[t])&&t.labelLength>m&&(m=t.labelLength)}),this.maxLabelLength=m,this.autoRotation)m>d&&m>p.h?f.rotation=this.labelRotation:this.labelRotation=0;else if(h&&(t={width:d+"px"},!g))for(t.textOverflow="clip",e=s.length;!u&&e--;)i=s[e],(d=l[i].label)&&("ellipsis"===d.styles.textOverflow?d.css({textOverflow:"clip"}):l[i].labelLength>h&&d.css({width:h+"px"}),d.getBBox().height>this.len/s.length-(p.h-p.f)&&(d.specCss={textOverflow:"ellipsis"}));f.rotation&&(t={width:(m>.5*r.chartHeight?.33*r.chartHeight:r.chartHeight)+"px"},!g)&&(t.textOverflow="ellipsis"),(this.labelAlign=c.align||this.autoLabelAlign(this.labelRotation))&&(f.align=this.labelAlign),zt(s,function(e){var i=(e=l[e])&&e.label;i&&(i.attr(f),t&&i.css(n(t,i.specCss)),delete i.specCss,e.rotation=f.rotation)}),this.tickRotCorr=a.rotCorr(p.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||l(this.min)&&l(this.max)&&!!this.tickPositions},getOffset:function(){var t,e,i,n,r=this,o=r.chart,a=o.renderer,s=r.options,c=r.tickPositions,u=r.ticks,h=r.horiz,d=r.side,f=o.inverted?[1,0,3,2][d]:d,p=0,g=0,m=s.title,v=s.labels,y=0,b=r.opposite,x=o.axisOffset,o=o.clipOffset,w=[-1,1,1,-1][d],S=r.axisParent,k=this.tickSize("tick");if(t=r.hasData(),r.showAxis=e=t||$t(s.showEmpty,!0),r.staggerLines=r.horiz&&v.staggerLines,r.axisGroup||(r.gridGroup=a.g("grid").attr({zIndex:s.gridZIndex||1}).add(S),r.axisGroup=a.g("axis").attr({zIndex:s.zIndex||2}).add(S),r.labelGroup=a.g("axis-labels").attr({zIndex:v.zIndex||7}).addClass("highcharts-"+r.coll.toLowerCase()+"-labels").add(S)),t||r.isLinked)zt(c,function(t){u[t]?u[t].addLabel():u[t]=new A(r,t)}),r.renderUnsquish(),v.reserveSpace!==!1&&(0===d||2===d||{1:"left",3:"right"}[d]===r.labelAlign||"center"===r.labelAlign)&&zt(c,function(t){y=ct(u[t].getLabelSize(),y)}),r.staggerLines&&(y*=r.staggerLines,r.labelOffset=y*(r.opposite?-1:1));else for(n in u)u[n].destroy(),delete u[n];m&&m.text&&m.enabled!==!1&&(r.axisTitle||((n=m.textAlign)||(n=(h?{low:"left",middle:"center",high:"right"}:{low:b?"right":"left",middle:"center",high:b?"left":"right"})[m.align]),r.axisTitle=a.text(m.text,0,0,m.useHTML).attr({zIndex:7,rotation:m.rotation||0,align:n}).addClass("highcharts-"+this.coll.toLowerCase()+"-title").css(m.style).add(r.axisGroup),r.axisTitle.isNew=!0),e&&(p=r.axisTitle.getBBox()[h?"height":"width"],i=m.offset,g=l(i)?0:$t(m.margin,h?5:10)),r.axisTitle[e?"show":"hide"](!0)),r.offset=w*$t(s.offset,x[d]),r.tickRotCorr=r.tickRotCorr||{x:0,y:0},a=0===d?-r.labelMetrics().h:2===d?r.tickRotCorr.y:0,g=Math.abs(y)+g,y&&(g-=a,g+=w*(h?$t(v.y,r.tickRotCorr.y+8*w):v.x)),r.axisTitleMargin=$t(i,g),x[d]=ct(x[d],r.axisTitleMargin+p+w*r.offset,g,t&&c.length&&k?k[0]:0),s=s.offset?0:2*st(s.lineWidth/2),o[f]=ct(o[f],s)},getLinePath:function(t){var e=this.chart,i=this.opposite,n=this.offset,r=this.horiz,o=this.left+(i?this.width:0)+n,n=e.chartHeight-this.bottom-(i?this.height:0)+n;return i&&(t*=-1),e.renderer.crispLine([It,r?this.left:o,r?n:this.top,Rt,r?e.chartWidth-this.right:o,r?n:e.chartHeight-this.bottom],t)},getTitlePosition:function(){var t=this.horiz,e=this.left,i=this.top,n=this.len,r=this.options.title,o=t?e:i,a=this.opposite,s=this.offset,l=r.x||0,c=r.y||0,u=this.chart.renderer.fontMetrics(r.style.fontSize).f,n={low:o+(t?0:n),middle:o+n/2,high:o+(t?n:0)}[r.align],e=(t?i+this.height:e)+(t?1:-1)*(a?-1:1)*this.axisTitleMargin+(2===this.side?u:0);return{x:t?n+l:e+(a?this.width:0)+s+l,y:t?e+c-(a?this.height:0)+s:n+c}},render:function(){var t,e,i,n=this,r=n.chart,o=r.renderer,a=n.options,s=n.isLog,l=n.lin2log,c=n.isLinked,u=n.tickPositions,d=n.axisTitle,f=n.ticks,p=n.minorTicks,g=n.alternateBands,m=a.stackLabels,v=a.alternateGridColor,y=n.tickmarkOffset,b=a.lineWidth,x=r.hasRendered&&Zt(n.oldMin),w=n.showAxis,S=C(o.globalAnimation);n.labelEdge.length=0,n.overlap=!1,zt([f,p,g],function(t){for(var e in t)t[e].isActive=!1}),(n.hasData()||c)&&(n.minorTickInterval&&!n.categories&&zt(n.getMinorTickPositions(),function(t){p[t]||(p[t]=new A(n,t,"minor")),x&&p[t].isNew&&p[t].render(null,!0),p[t].render(null,!1,1)}),u.length&&(zt(u,function(t,e){(!c||t>=n.min&&t<=n.max)&&(f[t]||(f[t]=new A(n,t)),x&&f[t].isNew&&f[t].render(e,!0,.1),f[t].render(e))}),y&&(0===n.min||n.single))&&(f[-1]||(f[-1]=new A(n,-1,null,!0)),f[-1].render(-1)),v&&zt(u,function(t,o){i=u[o+1]!==I?u[o+1]+y:n.max-y,o%2===0&&t<n.max&&i<=n.max+(r.polar?-y:y)&&(g[t]||(g[t]=new nt.PlotLineOrBand(n)),e=t+y,g[t].options={from:s?l(e):e,to:s?l(i):i,color:v},g[t].render(),g[t].isActive=!0)}),n._addedPlotLB||(zt((a.plotLines||[]).concat(a.plotBands||[]),function(t){n.addPlotBandOrLine(t)}),n._addedPlotLB=!0)),zt([f,p,g],function(t){var e,i,n=[],o=S.duration;for(e in t)t[e].isActive||(t[e].render(e,!1,0),t[e].isActive=!1,n.push(e));h(function(){for(i=n.length;i--;)t[n[i]]&&!t[n[i]].isActive&&(t[n[i]].destroy(),delete t[n[i]])},t!==g&&r.hasRendered&&o?o:0)}),b&&(t=n.getLinePath(b),n.axisLine?n.axisLine.animate({d:t}):n.axisLine=o.path(t).attr({stroke:a.lineColor,"stroke-width":b,zIndex:7}).add(n.axisGroup),n.axisLine[w?"show":"hide"](!0)),d&&w&&(d[d.isNew?"attr":"animate"](n.getTitlePosition()),d.isNew=!1),m&&m.enabled&&n.renderStackTotals(),n.isDirty=!1},redraw:function(){this.visible&&(this.render(),zt(this.plotLinesAndBands,function(t){t.render()})),zt(this.series,function(t){t.isDirty=!0})},destroy:function(t){var e,i=this,n=i.stacks,r=i.plotLinesAndBands;t||Gt(i);for(e in n)k(n[e]),n[e]=null;for(zt([i.ticks,i.minorTicks,i.alternateBands],function(t){k(t)}),t=r.length;t--;)r[t].destroy();zt("stackTotalGroup,axisLine,axisTitle,axisGroup,gridGroup,labelGroup,cross".split(","),function(t){i[t]&&(i[t]=i[t].destroy())}),this._addedPlotLB=this.chart._labelPanes=this.ordinalSlope=void 0},drawCrosshair:function(t,e){var i,n,r,o=this.crosshair;t||(t=this.cross&&this.cross.e),this.crosshair&&(l(e)||!$t(o.snap,!0))!==!1?($t(o.snap,!0)?l(e)&&(i=this.isXAxis?e.plotX:this.len-e.plotY):i=this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos,i=this.isRadial?this.getPlotLinePath(this.isXAxis?e.x:$t(e.stackY,e.y))||null:this.getPlotLinePath(null,null,null,null,i)||null,null===i?this.hideCrosshair():(n=this.categories&&!this.isRadial,r=$t(o.width,n?this.transA:1),this.cross?this.cross.attr({d:i,visibility:"visible","stroke-width":r}):(n={"pointer-events":"none","stroke-width":r,stroke:o.color||(n?"rgba(155,200,255,0.2)":"#C0C0C0"),zIndex:$t(o.zIndex,2)},o.dashStyle&&(n.dashstyle=o.dashStyle),this.cross=this.chart.renderer.path(i).attr(n).add()),this.cross.e=t)):this.hideCrosshair()},hideCrosshair:function(){this.cross&&this.cross.hide()}},Jt(se.prototype,{getPlotBandPath:function(t,e){var i=this.getPlotLinePath(e,null,null,!0),n=this.getPlotLinePath(t,null,null,!0);return n&&i?(n.flat=n.toString()===i.toString(),n.push(i[4],i[5],i[1],i[2])):n=null,n},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(t,e){var i=new nt.PlotLineOrBand(this,t).render(),n=this.userOptions;return i&&(e&&(n[e]=n[e]||[],n[e].push(t)),this.plotLinesAndBands.push(i)),i},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,n=this.userOptions,r=e.length;r--;)e[r].id===t&&e[r].destroy();zt([i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]],function(e){
for(r=e.length;r--;)e[r].id===t&&s(e,e[r])})}}),se.prototype.getTimeTicks=function(t,e,i,n){var r,o=[],a={},s=N.global.useUTC,c=new z(e-m(e)),u=t.unitRange,h=t.count;if(l(e)){c[J](u>=H.second?0:h*st(c.getMilliseconds()/h)),u>=H.second&&c[Q](u>=H.minute?0:h*st(c.getSeconds()/h)),u>=H.minute&&c[Z](u>=H.hour?0:h*st(c[Y]()/h)),u>=H.hour&&c[$](u>=H.day?0:h*st(c[G]()/h)),u>=H.day&&c[tt](u>=H.month?1:h*st(c[q]()/h)),u>=H.month&&(c[et](u>=H.year?0:h*st(c[V]()/h)),r=c[K]()),u>=H.year&&(r-=r%h,c[it](r)),u===H.week&&c[tt](c[q]()-c[U]()+$t(n,1)),e=1,(X||F)&&(c=c.getTime(),c=new z(c+m(c))),r=c[K]();for(var n=c.getTime(),d=c[V](),f=c[q](),p=!s||!!F,g=(H.day+(s?m(c):6e4*c.getTimezoneOffset()))%H.day;n<i;)o.push(n),u===H.year?n=W(r+e*h,0):u===H.month?n=W(r,d+e*h):!p||u!==H.day&&u!==H.week?n+=u*h:n=W(r,d,f+e*h*(u===H.day?1:7)),e++;o.push(n),zt(Wt(o,function(t){return u<=H.hour&&t%H.day===g}),function(t){a[t]="day"})}return o.info=Jt(t,{higherRanks:a,totalRange:u*h}),o},se.prototype.normalizeTimeTickInterval=function(t,e){var i,n=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],r=n[n.length-1],o=H[r[0]],a=r[1];for(i=0;i<n.length&&(r=n[i],o=H[r[0]],a=r[1],!(n[i+1]&&t<=(o*a[a.length-1]+H[n[i+1][0]])/2));i++);return o===H.year&&t<5*o&&(a=[1,2,5]),n=b(t/o,a,"year"===r[0]?ct(y(t/o),1):1),{unitRange:o,count:n,unitName:r[0]}},se.prototype.getLogTickPositions=function(t,e,i,n){var r=this.options,o=this.len,a=this.lin2log,s=this.log2lin,l=[];if(n||(this._minorAutoInterval=null),t>=.5)t=at(t),l=this.getLinearTickPositions(t,e,i);else if(t>=.08)for(var c,u,h,d,f,o=st(e),r=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];o<i+1&&!f;o++)for(u=r.length,c=0;c<u&&!f;c++)h=s(a(o)*r[c]),h>e&&(!n||d<=i)&&d!==I&&l.push(d),d>i&&(f=!0),d=h;else e=a(e),i=a(i),t=r[n?"minorTickInterval":"tickInterval"],t=$t("auto"===t?null:t,this._minorAutoInterval,(i-e)*(r.tickPixelInterval/(n?5:1))/((n?o/this.tickPositions.length:o)||1)),t=b(t,null,y(t)),l=Ft(this.getLinearTickPositions(t,e,i),s),n||(this._minorAutoInterval=t/5);return n||(this.tickInterval=t),l},se.prototype.log2lin=function(t){return ot.log(t)/ot.LN10},se.prototype.lin2log=function(t){return ot.pow(10,t)};var le=nt.Tooltip=function(){this.init.apply(this,arguments)};le.prototype={init:function(t,e){var i=e.borderWidth,n=e.style,o=r(n.padding);this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.label=t.renderer.label("",0,0,e.shape||"callout",null,null,e.useHTML,null,"tooltip").attr({padding:o,fill:e.backgroundColor,"stroke-width":i,r:e.borderRadius,zIndex:8,display:"none"}).css(n).css({padding:0}).add(),Pt||this.label.shadow(e.shadow),this.shared=e.shared},destroy:function(){this.label&&(this.label=this.label.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(t,e,i,n){var r=this,o=r.now,a=r.options.animation!==!1&&!r.isHidden&&(ht(t-o.x)>1||ht(e-o.y)>1),s=r.followPointer||r.len>1;Jt(o,{x:a?(2*o.x+t)/3:t,y:a?(o.y+e)/2:e,anchorX:s?I:a?(2*o.anchorX+i)/3:i,anchorY:s?I:a?(o.anchorY+n)/2:n}),r.label.attr(o),a&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){r&&r.move(t,e,i,n)},32))},hide:function(t){var e=this;clearTimeout(this.hideTimer),t=$t(t,this.options.hideDelay,500),this.isHidden||(this.hideTimer=h(function(){e.label[t?"fadeOut":"hide"](),e.isHidden=!0},t))},getAnchor:function(t,e){var i,n,r,o=this.chart,a=o.inverted,s=o.plotTop,l=o.plotLeft,c=0,h=0,t=u(t);return i=t[0].tooltipPos,this.followPointer&&e&&(e.chartX===I&&(e=o.pointer.normalize(e)),i=[e.chartX-o.plotLeft,e.chartY-s]),i||(zt(t,function(t){n=t.series.yAxis,r=t.series.xAxis,c+=t.plotX+(!a&&r?r.left-l:0),h+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!a&&n?n.top-s:0)}),c/=t.length,h/=t.length,i=[a?o.plotWidth-h:c,this.shared&&!a&&t.length>1&&e?e.chartY-s:a?o.plotHeight-c:h]),Ft(i,at)},getPosition:function(t,e,i){var n,r=this.chart,o=this.distance,a={},s=i.h||0,l=["y",r.chartHeight,e,i.plotY+r.plotTop,r.plotTop,r.plotTop+r.plotHeight],c=["x",r.chartWidth,t,i.plotX+r.plotLeft,r.plotLeft,r.plotLeft+r.plotWidth],u=!this.followPointer&&$t(i.ttBelow,!r.inverted==!!i.negative),h=function(t,e,i,n,r,l){var c=i<n-o,h=n+o+i<e,d=n-o-i;if(n+=o,u&&h)a[t]=n;else if(!u&&c)a[t]=d;else if(c)a[t]=ut(l-i,d-s<0?d:d-s);else{if(!h)return!1;a[t]=ct(r,n+s+i>e?n:n+s)}},d=function(t,e,i,n){var r;return n<o||n>e-o?r=!1:a[t]=n<i/2?1:n>e-i/2?e-i-2:n-i/2,r},f=function(t){var e=l;l=c,c=e,n=t},p=function(){h.apply(0,l)!==!1?d.apply(0,c)===!1&&!n&&(f(!0),p()):n?a.x=a.y=0:(f(!0),p())};return(r.inverted||this.len>1)&&f(),p(),a},defaultFormatter:function(t){var e,i=this.points||u(this);return e=[t.tooltipFooterHeaderFormatter(i[0])],e=e.concat(t.bodyFormatter(i)),e.push(t.tooltipFooterHeaderFormatter(i[0],!0)),e.join("")},refresh:function(t,e){var i,n,r,o,a=this.chart,s=this.label,l=this.options,c={},h=[];o=l.formatter||this.defaultFormatter;var d,c=a.hoverPoints,f=this.shared;clearTimeout(this.hideTimer),this.followPointer=u(t)[0].series.tooltipOptions.followPointer,r=this.getAnchor(t,e),i=r[0],n=r[1],!f||t.series&&t.series.noSharedTooltip?c=t.getLabelConfig():(a.hoverPoints=t,c&&zt(c,function(t){t.setState()}),zt(t,function(t){t.setState("hover"),h.push(t.getLabelConfig())}),c={x:t[0].category,y:t[0].y},c.points=h,this.len=h.length,t=t[0]),o=o.call(c,this),c=t.series,this.distance=$t(c.tooltipOptions.distance,16),o===!1?this.hide():(this.isHidden&&(Vt(s),s.attr({opacity:1,display:"block"}).show()),s.attr({text:o}),d=l.borderColor||t.color||c.color||"#606060",s.attr({stroke:d}),this.updatePosition({plotX:i,plotY:n,negative:t.negative,ttBelow:t.ttBelow,h:r[2]||0}),this.isHidden=!1),Ut(a,"tooltipRefresh",{text:o,x:i+a.plotLeft,y:n+a.plotTop,borderColor:d})},updatePosition:function(t){var e=this.chart,i=this.label,i=(this.options.positioner||this.getPosition).call(this,i.width,i.height,t);this.move(at(i.x),at(i.y||0),t.plotX+e.plotLeft,t.plotY+e.plotTop)},getXDateFormat:function(t,e,i){var n,r,o,e=e.dateTimeLabelFormats,a=i&&i.closestPointRange,s={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond";if(a){o=B("%m-%d %H:%M:%S.%L",t.x);for(r in H){if(a===H.week&&+B("%w",t.x)===i.options.startOfWeek&&"00:00:00.000"===o.substr(6)){r="week";break}if(H[r]>a){r=l;break}if(s[r]&&o.substr(s[r])!=="01-01 00:00:00.000".substr(s[r]))break;"week"!==r&&(l=r)}r&&(n=e[r])}else n=e.day;return n||e.year},tooltipFooterHeaderFormatter:function(t,e){var i=e?"footer":"header",n=t.series,r=n.tooltipOptions,o=r.xDateFormat,a=n.xAxis,s=a&&"datetime"===a.options.type&&Zt(t.key),i=r[i+"Format"];return s&&!o&&(o=this.getXDateFormat(t,r,a)),s&&o&&(i=i.replace("{point.key}","{point.key:"+o+"}")),v(i,{point:t,series:n})},bodyFormatter:function(t){return Ft(t,function(t){var e=t.series.tooltipOptions;return(e.pointFormatter||t.point.tooltipFormatter).call(t.point,e.pointFormat)})}};var ce;D=rt&&rt.documentElement.ontouchstart!==I;var ue=nt.Pointer=function(t,e){this.init(t,e)};if(ue.prototype={init:function(t,e){var i,n=e.chart,r=n.events,o=Pt?"":n.zoomType,n=t.inverted;this.options=e,this.chart=t,this.zoomX=i=/x/.test(o),this.zoomY=o=/y/.test(o),this.zoomHor=i&&!n||o&&n,this.zoomVert=o&&!n||i&&n,this.hasZoom=i||o,this.runChartClick=r&&!!r.click,this.pinchDown=[],this.lastValidTouch={},nt.Tooltip&&e.tooltip.enabled&&(t.tooltip=new le(t,e.tooltip),this.followTouchMove=$t(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},normalize:function(e,i){var n,r,e=e||t.event;return e.target||(e.target=e.srcElement),r=e.touches?e.touches.length?e.touches.item(0):e.changedTouches[0]:e,i||(this.chartPosition=i=Xt(this.chart.container)),r.pageX===I?(n=ct(e.x,e.clientX-i.left),r=e.y):(n=r.pageX-i.left,r=r.pageY-i.top),Jt(e,{chartX:at(n),chartY:at(r)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return zt(this.chart.axes,function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})}),e},runPointActions:function(t){var e,i,n,r,o=this.chart,a=o.series,s=o.tooltip,l=!!s&&s.shared,c=!0,u=o.hoverPoint,h=o.hoverSeries,d=[];if(!l&&!h)for(e=0;e<a.length;e++)!a[e].directTouch&&a[e].options.stickyTracking||(a=[]);if(h&&(l?h.noSharedTooltip:h.directTouch)&&u?d=[u]:(!l&&h&&!h.options.stickyTracking&&(a=[h]),zt(a,function(e){i=e.noSharedTooltip&&l,n=!l&&e.directTouch,e.visible&&!i&&!n&&$t(e.options.enableMouseTracking,!0)&&(r=e.searchPoint(t,!i&&1===e.kdDimensions))&&r.series&&d.push(r)}),d.sort(function(t,e){var i=t.distX-e.distX,n=t.dist-e.dist,r=t.series.group.zIndex>e.series.group.zIndex?-1:1;return 0!==i?i:0!==n?n:r})),l)for(e=d.length;e--;)(d[e].clientX!==d[0].clientX||d[e].series.noSharedTooltip)&&d.splice(e,1);if(d[0]&&(d[0]!==this.hoverPoint||s&&s.isHidden)){if(l&&!d[0].series.noSharedTooltip){for(e=0;e>=0;e--)d[e].onMouseOver(t,d[e]!==(h&&h.directTouch&&u||d[0]));h&&h.directTouch&&u&&u!==d[0]&&u.onMouseOver(t,!1),d.length&&s&&s.refresh(d.sort(function(t,e){return t.series.index-e.series.index}),t)}else s&&s.refresh(d[0],t),h&&h.directTouch||d[0].onMouseOver(t);this.prevKDPoint=d[0],c=!1}c&&(a=h&&h.tooltipOptions.followPointer,s&&a&&!s.isHidden&&(a=s.getAnchor([{}],t),s.updatePosition({plotX:a[0],plotY:a[1]}))),this._onDocumentMouseMove||(this._onDocumentMouseMove=function(t){Et[ce]&&Et[ce].pointer.onDocumentMouseMove(t)},Yt(rt,"mousemove",this._onDocumentMouseMove)),zt(l?d:[$t(u,d[0])],function(e){zt(o.axes,function(i){(!e||e.series&&e.series[i.coll]===i)&&i.drawCrosshair(t,e)})})},reset:function(t,e){var i=this.chart,n=i.hoverSeries,r=i.hoverPoint,o=i.hoverPoints,a=i.tooltip,s=a&&a.shared?o:r;t&&s&&zt(u(s),function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?a&&s&&(a.refresh(s),r&&(r.setState(r.state,!0),zt(i.axes,function(t){t.crosshair&&t.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),o&&zt(o,function(t){t.setState()}),n&&n.onMouseOut(),a&&a.hide(e),this._onDocumentMouseMove&&(Gt(rt,"mousemove",this._onDocumentMouseMove),this._onDocumentMouseMove=null),zt(i.axes,function(t){t.hideCrosshair()}),this.hoverX=this.prevKDPoint=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(t,e){var i,n=this.chart;zt(n.series,function(r){i=t||r.getPlotBox(),r.xAxis&&r.xAxis.zoomEnabled&&(r.group.attr(i),r.markerGroup&&(r.markerGroup.attr(i),r.markerGroup.clip(e?n.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(i))}),n.clipRect.attr(e||n.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e,i=this.chart,n=i.options.chart,r=t.chartX,o=t.chartY,a=this.zoomHor,s=this.zoomVert,l=i.plotLeft,c=i.plotTop,u=i.plotWidth,h=i.plotHeight,d=this.selectionMarker,f=this.mouseDownX,p=this.mouseDownY,g=n.panKey&&t[n.panKey+"Key"];d&&d.touch||(r<l?r=l:r>l+u&&(r=l+u),o<c?o=c:o>c+h&&(o=c+h),this.hasDragged=Math.sqrt(Math.pow(f-r,2)+Math.pow(p-o,2)),this.hasDragged>10&&(e=i.isInsidePlot(f-l,p-c),i.hasCartesianSeries&&(this.zoomX||this.zoomY)&&e&&!g&&!d&&(this.selectionMarker=d=i.renderer.rect(l,c,a?1:u,s?1:h,0).attr({fill:n.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()),d&&a&&(r-=f,d.attr({width:ht(r),x:(r>0?0:r)+f})),d&&s&&(r=o-p,d.attr({height:ht(r),y:(r>0?0:r)+p})),e&&!d&&n.panning&&i.pan(t,n.panning)))},drop:function(t){var e=this,i=this.chart,n=this.hasPinched;if(this.selectionMarker){var r,o={originalEvent:t,xAxis:[],yAxis:[]},a=this.selectionMarker,s=a.attr?a.attr("x"):a.x,c=a.attr?a.attr("y"):a.y,u=a.attr?a.attr("width"):a.width,h=a.attr?a.attr("height"):a.height;(this.hasDragged||n)&&(zt(i.axes,function(i){if(i.zoomEnabled&&l(i.min)&&(n||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])){var a=i.horiz,d="touchend"===t.type?i.minPixelPadding:0,f=i.toValue((a?s:c)+d),a=i.toValue((a?s+u:c+h)-d);o[i.coll].push({axis:i,min:ut(f,a),max:ct(f,a)}),r=!0}}),r&&Ut(i,"selection",o,function(t){i.zoom(Jt(t,n?{animation:!1}:null))})),this.selectionMarker=this.selectionMarker.destroy(),n&&this.scaleGroups()}i&&(d(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.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){Et[ce]&&Et[ce].pointer.drop(t)},onDocumentMouseMove:function(t){var e=this.chart,i=this.chartPosition,t=this.normalize(t,i);i&&!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)&&this.reset()},onContainerMouseLeave:function(t){var e=Et[ce];e&&(t.relatedTarget||t.toElement)&&(e.pointer.reset(),e.pointer.chartPosition=null)},onContainerMouseMove:function(t){var e=this.chart;l(ce)&&Et[ce]&&Et[ce].mouseIsDown||(ce=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 i;t;){if(i=c(t,"class")){if(i.indexOf(e)!==-1)return!0;if(i.indexOf("highcharts-container")!==-1)return!1}t=t.parentNode}},onTrackerMouseOut:function(t){var e=this.chart.hoverSeries,t=t.relatedTarget||t.toElement;!e||!t||e.options.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)||e.onMouseOut()},onContainerClick:function(t){var e=this.chart,i=e.hoverPoint,n=e.plotLeft,r=e.plotTop,t=this.normalize(t);e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(Ut(i.series,"click",Jt(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(Jt(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-n,t.chartY-r)&&Ut(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)},Yt(e,"mouseleave",t.onContainerMouseLeave),1===At&&Yt(rt,"mouseup",t.onDocumentMouseUp),D&&(e.ontouchstart=function(e){t.onContainerTouchStart(e)},e.ontouchmove=function(e){t.onContainerTouchMove(e)},1===At&&Yt(rt,"touchend",t.onDocumentTouchEnd))},destroy:function(){var t;Gt(this.chart.container,"mouseleave",this.onContainerMouseLeave),At||(Gt(rt,"mouseup",this.onDocumentMouseUp),Gt(rt,"touchend",this.onDocumentTouchEnd)),clearInterval(this.tooltipTimeout);for(t in this)this[t]=null}},Jt(nt.Pointer.prototype,{pinchTranslate:function(t,e,i,n,r,o){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,t,e,i,n,r,o),(this.zoomVert||this.pinchVert)&&this.pinchTranslateDirection(!1,t,e,i,n,r,o)},pinchTranslateDirection:function(t,e,i,n,r,o,a,s){var l,c,u,h=this.chart,d=t?"x":"y",f=t?"X":"Y",p="chart"+f,g=t?"width":"height",m=h["plot"+(t?"Left":"Top")],v=s||1,y=h.inverted,b=h.bounds[t?"h":"v"],x=1===e.length,w=e[0][p],S=i[0][p],k=!x&&e[1][p],T=!x&&i[1][p],i=function(){!x&&ht(w-k)>20&&(v=s||ht(S-T)/ht(w-k)),c=(m-S)/v+w,l=h["plot"+(t?"Width":"Height")]/v};i(),e=c,e<b.min?(e=b.min,u=!0):e+l>b.max&&(e=b.max-l,u=!0),u?(S-=.8*(S-a[d][0]),x||(T-=.8*(T-a[d][1])),i()):a[d]=[S,T],y||(o[d]=c-m,o[g]=l),o=y?1/v:v,r[g]=l,r[d]=e,n[y?t?"scaleY":"scaleX":"scale"+f]=v,n["translate"+f]=o*m+(S-o*w)},pinch:function(t){var e=this,i=e.chart,n=e.pinchDown,r=t.touches,o=r.length,a=e.lastValidTouch,s=e.hasZoom,l=e.selectionMarker,c={},u=1===o&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),h={};o>1&&(e.initiated=!0),s&&e.initiated&&!u&&t.preventDefault(),Ft(r,function(t){return e.normalize(t)}),"touchstart"===t.type?(zt(r,function(t,e){n[e]={chartX:t.chartX,chartY:t.chartY}}),a.x=[n[0].chartX,n[1]&&n[1].chartX],a.y=[n[0].chartY,n[1]&&n[1].chartY],zt(i.axes,function(t){if(t.zoomEnabled){var e=i.bounds[t.horiz?"h":"v"],n=t.minPixelPadding,r=t.toPixels($t(t.options.min,t.dataMin)),o=t.toPixels($t(t.options.max,t.dataMax)),a=ut(r,o),r=ct(r,o);e.min=ut(t.pos,a-n),e.max=ct(t.pos+t.len,r+n)}}),e.res=!0):n.length&&(l||(e.selectionMarker=l=Jt({destroy:_t,touch:!0},i.plotBox)),e.pinchTranslate(n,r,c,l,h,a),e.hasPinched=s,e.scaleGroups(c,h),!s&&e.followTouchMove&&1===o?this.runPointActions(e.normalize(t)):e.res&&(e.res=!1,this.reset(!1,0)))},touch:function(t,e){var i,n=this.chart;ce=n.index,1===t.touches.length?(t=this.normalize(t),n.isInsidePlot(t.chartX-n.plotLeft,t.chartY-n.plotTop)&&!n.openMenu?(e&&this.runPointActions(t),"touchmove"===t.type&&(n=this.pinchDown,i=!!n[0]&&Math.sqrt(Math.pow(n[0].chartX-t.chartX,2)+Math.pow(n[0].chartY-t.chartY,2))>=4),$t(i,!0)&&this.pinch(t)):e&&this.reset()):2===t.touches.length&&this.pinch(t)},onContainerTouchStart:function(t){this.touch(t,!0)},onContainerTouchMove:function(t){this.touch(t)},onDocumentTouchEnd:function(t){Et[ce]&&Et[ce].pointer.drop(t)}}),t.PointerEvent||t.MSPointerEvent){var he={},de=!!t.PointerEvent,fe=function(){var t,e=[];e.item=function(t){return this[t]};for(t in he)he.hasOwnProperty(t)&&e.push({pageX:he[t].pageX,pageY:he[t].pageY,target:he[t].target});return e},pe=function(t,e,i,n){"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!Et[ce]||(n(t),n=Et[ce].pointer,n[e]({type:i,target:t.currentTarget,preventDefault:_t,touches:fe()}))};Jt(ue.prototype,{onContainerPointerDown:function(t){pe(t,"onContainerTouchStart","touchstart",function(t){he[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},onContainerPointerMove:function(t){pe(t,"onContainerTouchMove","touchmove",function(t){he[t.pointerId]={pageX:t.pageX,pageY:t.pageY},he[t.pointerId].target||(he[t.pointerId].target=t.currentTarget)})},onDocumentPointerUp:function(t){pe(t,"onDocumentTouchEnd","touchend",function(t){delete he[t.pointerId]})},batchMSEvents:function(t){t(this.chart.container,de?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,de?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(rt,de?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),te(ue.prototype,"init",function(t,e,i){t.call(this,e,i),this.hasZoom&&d(e.container,{"-ms-touch-action":"none","touch-action":"none"})}),te(ue.prototype,"setDOMEvents",function(t){t.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(Yt)}),te(ue.prototype,"destroy",function(t){this.batchMSEvents(Gt),t.call(this)})}var ge=nt.Legend=function(t,e){this.init(t,e)};ge.prototype={init:function(t,e){var i=this,r=e.itemStyle,o=e.itemMarginTop||0;this.options=e,e.enabled&&(i.itemStyle=r,i.itemHiddenStyle=n(r,e.itemHiddenStyle),i.itemMarginTop=o,i.padding=r=$t(e.padding,8),i.initialItemX=r,i.initialItemY=r-5,i.maxItemWidth=0,i.chart=t,i.itemHeight=0,i.symbolWidth=$t(e.symbolWidth,16),i.pages=[],i.render(),Yt(i.chart,"endResize",function(){i.positionCheckboxes()}))},colorizeItem:function(t,e){var i,n=this.options,r=t.legendItem,o=t.legendLine,a=t.legendSymbol,s=this.itemHiddenStyle.color,n=e?n.itemStyle.color:s,l=e?t.legendColor||t.color||"#CCC":s,s=t.options&&t.options.marker,c={fill:l};if(r&&r.css({fill:n,color:n}),o&&o.attr({stroke:l}),a){if(s&&a.isMarker)for(i in c.stroke=l,s=t.convertAttribs(s))r=s[i],r!==I&&(c[i]=r);a.attr(c)}},positionItem:function(t){var e=this.options,i=e.symbolPadding,e=!e.rtl,n=t._legendItemPos,r=n[0],n=n[1],o=t.checkbox;(t=t.legendGroup)&&t.element&&t.translate(e?r:this.legendWidth-r-2*i-4,n),o&&(o.x=r,o.y=n)},destroyItem:function(t){var e=t.checkbox;zt(["legendItem","legendLine","legendSymbol","legendGroup"],function(e){t[e]&&(t[e]=t[e].destroy())}),e&&T(t.checkbox)},destroy:function(){var t=this.group,e=this.box;e&&(this.box=e.destroy()),t&&(this.group=t.destroy())},positionCheckboxes:function(t){var e,i=this.group.alignAttr,n=this.clipHeight||this.legendHeight,r=this.titleHeight;i&&(e=i.translateY,zt(this.allItems,function(o){var a,s=o.checkbox;s&&(a=e+r+s.y+(t||0)+3,d(s,{left:i.translateX+o.checkboxOffset+s.x-20+"px",top:a+"px",display:a>e-6&&a<e+n-6?"":"none"}))}))},renderTitle:function(){var t=this.padding,e=this.options.title,i=0;e.text&&(this.title||(this.title=this.chart.renderer.label(e.text,t-3,t-4,null,null,null,null,null,"legend-title").attr({zIndex:1}).css(e.style).add(this.group)),t=this.title.getBBox(),i=t.height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:i})),this.titleHeight=i},setText:function(t){var e=this.options;t.legendItem.attr({text:e.labelFormat?v(e.labelFormat,t):e.labelFormatter.call(t)})},renderItem:function(t){var e=this.chart,i=e.renderer,r=this.options,o="horizontal"===r.layout,a=this.symbolWidth,s=r.symbolPadding,l=this.itemStyle,c=this.itemHiddenStyle,u=this.padding,h=o?$t(r.itemDistance,20):0,d=!r.rtl,f=r.width,p=r.itemMarginBottom||0,g=this.itemMarginTop,m=this.initialItemX,v=t.legendItem,y=t.series&&t.series.drawLegendSymbol?t.series:t,b=y.options,b=this.createCheckboxForItem&&b&&b.showCheckbox,x=r.useHTML;v||(t.legendGroup=i.g("legend-item").attr({zIndex:1}).add(this.scrollGroup),t.legendItem=v=i.text("",d?a+s:-s,this.baseline||0,x).css(n(t.visible?l:c)).attr({align:d?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=i.fontMetrics(l.fontSize,v),this.baseline=this.fontMetrics.f+3+g,v.attr("y",this.baseline)),y.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,v,x,l,c),b&&this.createCheckboxForItem(t)),this.colorizeItem(t,t.visible),this.setText(t),i=v.getBBox(),a=t.checkboxOffset=r.itemWidth||t.legendItemWidth||a+s+i.width+h+(b?20:0),this.itemHeight=s=at(t.legendItemHeight||i.height),o&&this.itemX-m+a>(f||e.chartWidth-2*u-m-r.x)&&(this.itemX=m,this.itemY+=g+this.lastLineHeight+p,this.lastLineHeight=0),this.maxItemWidth=ct(this.maxItemWidth,a),this.lastItemY=g+this.itemY+p,this.lastLineHeight=ct(s,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],o?this.itemX+=a:(this.itemY+=g+s+p,this.lastLineHeight=s),this.offsetWidth=f||ct((o?this.itemX-m-h:a)+u,this.offsetWidth)},getAllItems:function(){var t=[];return zt(this.chart.series,function(e){var i=e.options;$t(i.showInLegend,!l(i.linkedTo)&&I,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))}),t},adjustMargins:function(t,e){var i=this.chart,n=this.options,r=n.align.charAt(0)+n.verticalAlign.charAt(0)+n.layout.charAt(0);n.floating||zt([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(o,a){o.test(r)&&!l(t[a])&&(i[jt[a]]=ct(i[jt[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*n[a%2?"x":"y"]+$t(n.margin,12)+e[a]))})},render:function(){var t,e,i,n,r=this,o=r.chart,a=o.renderer,s=r.group,l=r.box,c=r.options,u=r.padding,h=c.borderWidth,d=c.backgroundColor;r.itemX=r.initialItemX,r.itemY=r.initialItemY,r.offsetWidth=0,r.lastItemY=0,s||(r.group=s=a.g("legend").attr({zIndex:7}).add(),r.contentGroup=a.g().attr({zIndex:1}).add(s),r.scrollGroup=a.g().add(r.contentGroup)),r.renderTitle(),t=r.getAllItems(),x(t,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),c.reversed&&t.reverse(),r.allItems=t,r.display=e=!!t.length,r.lastLineHeight=0,zt(t,function(t){r.renderItem(t)}),i=(c.width||r.offsetWidth)+u,n=r.lastItemY+r.lastLineHeight+r.titleHeight,n=r.handleOverflow(n),n+=u,(h||d)&&(l?i>0&&n>0&&(l[l.isNew?"attr":"animate"](l.crisp({width:i,height:n})),l.isNew=!1):(r.box=l=a.rect(0,0,i,n,c.borderRadius,h||0).attr({stroke:c.borderColor,"stroke-width":h||0,fill:d||"none"}).add(s).shadow(c.shadow),l.isNew=!0),l[e?"show":"hide"]()),r.legendWidth=i,r.legendHeight=n,zt(t,function(t){r.positionItem(t)}),e&&s.align(Jt({width:i,height:n},c),!0,"spacingBox"),o.isResizing||this.positionCheckboxes()},handleOverflow:function(t){var e,i,n=this,r=this.chart,o=r.renderer,a=this.options,s=a.y,s=r.spacingBox.height+("top"===a.verticalAlign?-s:s)-this.padding,l=a.maxHeight,c=this.clipRect,u=a.navigation,h=$t(u.animation,!0),d=u.arrowSize||12,f=this.nav,p=this.pages,g=this.padding,m=this.allItems,v=function(t){c.attr({height:t}),n.contentGroup.div&&(n.contentGroup.div.style.clip="rect("+g+"px,9999px,"+(g+t)+"px,0)")};return"horizontal"===a.layout&&(s/=2),l&&(s=ut(s,l)),p.length=0,t>s&&u.enabled!==!1?(this.clipHeight=e=ct(s-20-this.titleHeight-g,0),this.currentPage=$t(this.currentPage,1),this.fullHeight=t,zt(m,function(t,n){var r=t._legendItemPos[1],o=at(t.legendItem.getBBox().height),a=p.length;(!a||r-p[a-1]>e&&(i||r)!==p[a-1])&&(p.push(i||r),a++),n===m.length-1&&r+o-p[a-1]>e&&p.push(r),r!==i&&(i=r)}),c||(c=n.clipRect=o.clipRect(0,g,9999,0),n.contentGroup.clip(c)),v(e),f||(this.nav=f=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,d,d).on("click",function(){n.scroll(-1,h)}).add(f),this.pager=o.text("",15,10).css(u.style).add(f),this.down=o.symbol("triangle-down",0,0,d,d).on("click",function(){n.scroll(1,h)}).add(f)),n.scroll(0),t=s):f&&(v(r.chartHeight),f.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var i=this.pages,n=i.length,r=this.currentPage+t,o=this.clipHeight,a=this.options.navigation,s=a.activeColor,a=a.inactiveColor,l=this.pager,c=this.padding;r>n&&(r=n),r>0&&(e!==I&&P(e,this.chart),this.nav.attr({translateX:c,translateY:o+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:1===r?a:s}).css({cursor:1===r?"default":"pointer"}),l.attr({text:r+"/"+n}),this.down.attr({x:18+this.pager.getBBox().width,fill:r===n?a:s}).css({cursor:r===n?"default":"pointer"}),i=-i[r-1]+this.initialItemY,this.scrollGroup.animate({translateY:i}),this.currentPage=r,this.positionCheckboxes(i))}},re=nt.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.options.symbolHeight||t.fontMetrics.f;e.legendSymbol=this.chart.renderer.rect(0,t.baseline-i+1,t.symbolWidth,i,t.options.symbolRadius||0).attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e,i=this.options,n=i.marker,r=t.symbolWidth,o=this.chart.renderer,a=this.legendGroup,t=t.baseline-at(.3*t.fontMetrics.b);i.lineWidth&&(e={"stroke-width":i.lineWidth},i.dashStyle&&(e.dashstyle=i.dashStyle),this.legendLine=o.path([It,0,t,Rt,r,t]).attr(e).add(a)),n&&n.enabled!==!1&&(i=n.radius,this.legendSymbol=n=o.symbol(this.symbol,r/2-i,t-i,2*i,2*i,n).add(a),n.isMarker=!0)}},(/Trident\/7\.0/.test(mt)||wt)&&te(ge.prototype,"positionItem",function(t,e){var i=this,n=function(){e._legendItemPos&&t.call(i,e)};n(),setTimeout(n)});var me=nt.Chart=function(){this.getArgs.apply(this,arguments)};nt.chart=function(t,e,i){return new me(t,e,i)},me.prototype={callbacks:[],getArgs:function(){var t=[].slice.call(arguments);(o(t[0])||t[0].nodeName)&&(this.renderTo=t.shift()),this.init(t[0],t[1])},init:function(t,e){var i,r=t.series;t.series=null,i=n(N,t),i.series=t.series=r,this.userOptions=t,r=i.chart,this.margin=this.splashArray("margin",r),this.spacing=this.splashArray("spacing",r);var o=r.events;this.bounds={h:{},v:{}},this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.hasCartesianSeries=r.showAxes;var a,s=this;if(s.index=Et.length,Et.push(s),At++,r.reflow!==!1&&Yt(s,"load",function(){s.initReflow()}),o)for(a in o)Yt(s,a,o[a]);s.xAxis=[],s.yAxis=[],s.animation=!Pt&&$t(r.animation,!0),s.pointCount=s.colorCounter=s.symbolCounter=0,s.firstRender()},initSeries:function(t){var i=this.options.chart;return(i=Nt[t.type||i.type||i.defaultSeriesType])||e(17,!0),i=new i,i.init(this,t),i},isInsidePlot:function(t,e,i){var n=i?e:t,t=i?t:e;return n>=0&&n<=this.plotWidth&&t>=0&&t<=this.plotHeight},redraw:function(t){var e,i,n=this.axes,r=this.series,o=this.pointer,a=this.legend,s=this.isDirtyLegend,l=this.hasCartesianSeries,c=this.isDirtyBox,u=r.length,h=u,d=this.renderer,f=d.isHidden(),p=[];for(P(t,this),f&&this.cloneRenderTo(),this.layOutTitles();h--;)if(t=r[h],t.options.stacking&&(e=!0,t.isDirty)){i=!0;break}if(i)for(h=u;h--;)t=r[h],t.options.stacking&&(t.isDirty=!0);zt(r,function(t){t.isDirty&&"point"===t.options.legendType&&(t.updateTotals&&t.updateTotals(),s=!0),t.isDirtyData&&Ut(t,"updatedData")}),s&&a.options.enabled&&(a.render(),this.isDirtyLegend=!1),e&&this.getStacks(),l&&!this.isResizing&&(this.maxTicks=null,zt(n,function(t){t.updateNames(),t.setScale()})),this.getMargins(),l&&(zt(n,function(t){t.isDirty&&(c=!0)}),zt(n,function(t){var i=t.min+","+t.max;t.extKey!==i&&(t.extKey=i,p.push(function(){Ut(t,"afterSetExtremes",Jt(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(c||e)&&t.redraw()})),c&&this.drawChartBox(),zt(r,function(t){t.isDirty&&t.visible&&(!t.isCartesian||t.xAxis)&&t.redraw()}),o&&o.reset(!0),d.draw(),Ut(this,"redraw"),f&&this.cloneRenderTo(!0),zt(p,function(t){t.call()})},get:function(t){var e,i,n=this.axes,r=this.series;for(e=0;e<n.length;e++)if(n[e].options.id===t)return n[e];for(e=0;e<r.length;e++)if(r[e].options.id===t)return r[e];for(e=0;e<r.length;e++)for(i=r[e].points||[],n=0;n<i.length;n++)if(i[n].id===t)return i[n];return null},getAxes:function(){var t=this,e=this.options,i=e.xAxis=u(e.xAxis||{}),e=e.yAxis=u(e.yAxis||{});zt(i,function(t,e){t.index=e,t.isX=!0}),zt(e,function(t,e){t.index=e}),i=i.concat(e),zt(i,function(e){new se(t,e)})},getSelectedPoints:function(){var t=[];return zt(this.series,function(e){t=t.concat(Wt(e.points||[],function(t){return t.selected}))}),t},getSelectedSeries:function(){return Wt(this.series,function(t){return t.selected})},setTitle:function(t,e,i){var r,o,a=this,s=a.options;o=s.title=n(s.title,t),r=s.subtitle=n(s.subtitle,e),s=r,zt([["title",t,o],["subtitle",e,s]],function(t){var e=t[0],i=a[e],n=t[1],t=t[2];i&&n&&(a[e]=i=i.destroy()),t&&t.text&&!i&&(a[e]=a.renderer.text(t.text,0,0,t.useHTML).attr({align:t.align,class:"highcharts-"+e,zIndex:t.zIndex||4}).css(t.style).add())}),a.layOutTitles(i)},layOutTitles:function(t){var e=0,i=this.title,n=this.subtitle,r=this.options,o=r.title,r=r.subtitle,a=this.renderer,s=this.spacingBox;!i||(i.css({width:(o.width||s.width+o.widthAdjust)+"px"}).align(Jt({y:a.fontMetrics(o.style.fontSize,i).b-3},o),!1,s),o.floating||o.verticalAlign)||(e=i.getBBox().height),n&&(n.css({width:(r.width||s.width+r.widthAdjust)+"px"}).align(Jt({y:e+(o.margin-13)+a.fontMetrics(r.style.fontSize,i).b},r),!1,s),!r.floating&&!r.verticalAlign&&(e=lt(e+n.getBBox().height))),i=this.titleOffset!==e,this.titleOffset=e,!this.isDirtyBox&&i&&(this.isDirtyBox=i,this.hasRendered&&$t(t,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var t=this.options.chart,e=t.width,t=t.height,i=this.renderToClone||this.renderTo;l(e)||(this.containerWidth=Bt(i,"width")),l(t)||(this.containerHeight=Bt(i,"height")),this.chartWidth=ct(0,e||this.containerWidth||600),this.chartHeight=ct(0,$t(t,this.containerHeight>19?this.containerHeight:400))},cloneRenderTo:function(t){var e=this.renderToClone,i=this.container;if(t){if(e){for(;e.childNodes.length;)this.renderTo.appendChild(e.firstChild);T(e),delete this.renderToClone}}else i&&i.parentNode===this.renderTo&&this.renderTo.removeChild(i),this.renderToClone=e=this.renderTo.cloneNode(0),d(e,{position:"absolute",top:"-9999px",display:"block"}),e.style.setProperty&&e.style.setProperty("display","block","important"),rt.body.appendChild(e),i&&e.appendChild(i)},getContainer:function(){var t,i,n,a=this.options,s=a.chart;t=this.renderTo;var l="highcharts-"+Mt++;t||(this.renderTo=t=s.renderTo),o(t)&&(this.renderTo=t=rt.getElementById(t)),t||e(13,!0),i=r(c(t,"data-highcharts-chart")),Zt(i)&&Et[i]&&Et[i].hasRendered&&Et[i].destroy(),c(t,"data-highcharts-chart",this.index),t.innerHTML="",!s.skipClone&&!t.offsetWidth&&this.cloneRenderTo(),this.getChartSize(),i=this.chartWidth,n=this.chartHeight,this.container=t=f(Lt,{className:"highcharts-container"+(s.className?" "+s.className:""),id:l},Jt({position:"relative",overflow:"hidden",width:i+"px",height:n+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},s.style),this.renderToClone||t),this._cursor=t.style.cursor,this.renderer=new(nt[s.renderer]||R)(t,i,n,s.style,s.forExport,a.exporting&&a.exporting.allowHTML),Pt&&this.renderer.create(this,t,i,n),this.renderer.chartIndex=this.index},getMargins:function(t){var e=this.spacing,i=this.margin,n=this.titleOffset;this.resetMargins(),n&&!l(i[0])&&(this.plotTop=ct(this.plotTop,n+this.options.title.margin+e[0])),
this.legend.display&&this.legend.adjustMargins(i,e),this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin),this.extraTopMargin&&(this.plotTop+=this.extraTopMargin),t||this.getAxisMargins()},getAxisMargins:function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.margin;t.hasCartesianSeries&&zt(t.axes,function(t){t.visible&&t.getOffset()}),zt(jt,function(n,r){l(i[r])||(t[n]+=e[r])}),t.setChartSize()},reflow:function(e){var i=this,n=i.options.chart,r=i.renderTo,o=l(n.width),a=n.width||Bt(r,"width"),n=n.height||Bt(r,"height"),r=e?e.target:t;o||i.isPrinting||!a||!n||r!==t&&r!==rt||(a===i.containerWidth&&n===i.containerHeight||(clearTimeout(i.reflowTimeout),i.reflowTimeout=h(function(){i.container&&i.setSize(void 0,void 0,!1)},e?100:0)),i.containerWidth=a,i.containerHeight=n)},initReflow:function(){var e=this,i=function(t){e.reflow(t)};Yt(t,"resize",i),Yt(e,"destroy",function(){Gt(t,"resize",i)})},setSize:function(t,e,i){var n=this,r=n.renderer;n.isResizing+=1,P(i,n),n.oldChartHeight=n.chartHeight,n.oldChartWidth=n.chartWidth,void 0!==t&&(n.options.chart.width=t),void 0!==e&&(n.options.chart.height=e),n.getChartSize(),t=r.globalAnimation,(t?qt:d)(n.container,{width:n.chartWidth+"px",height:n.chartHeight+"px"},t),n.setChartSize(!0),r.setSize(n.chartWidth,n.chartHeight,i),n.maxTicks=null,zt(n.axes,function(t){t.isDirty=!0,t.setScale()}),zt(n.series,function(t){t.isDirty=!0}),n.isDirtyLegend=!0,n.isDirtyBox=!0,n.layOutTitles(),n.getMargins(),n.redraw(i),n.oldChartHeight=null,Ut(n,"resize"),h(function(){n&&Ut(n,"endResize",null,function(){n.isResizing-=1})},C(t).duration)},setChartSize:function(t){var e,i,n,r,o=this.inverted,a=this.renderer,s=this.chartWidth,l=this.chartHeight,c=this.options.chart,u=this.spacing,h=this.clipOffset;this.plotLeft=e=at(this.plotLeft),this.plotTop=i=at(this.plotTop),this.plotWidth=n=ct(0,at(s-e-this.marginRight)),this.plotHeight=r=ct(0,at(l-i-this.marginBottom)),this.plotSizeX=o?r:n,this.plotSizeY=o?n:r,this.plotBorderWidth=c.plotBorderWidth||0,this.spacingBox=a.spacingBox={x:u[3],y:u[0],width:s-u[3]-u[1],height:l-u[0]-u[2]},this.plotBox=a.plotBox={x:e,y:i,width:n,height:r},s=2*st(this.plotBorderWidth/2),o=lt(ct(s,h[3])/2),a=lt(ct(s,h[0])/2),this.clipBox={x:o,y:a,width:st(this.plotSizeX-ct(s,h[1])/2-o),height:ct(0,st(this.plotSizeY-ct(s,h[2])/2-a))},t||zt(this.axes,function(t){t.setAxisSize(),t.setAxisTranslation()})},resetMargins:function(){var t=this;zt(jt,function(e,i){t[e]=$t(t.margin[i],t.spacing[i])}),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},drawChartBox:function(){var t,e=this.options.chart,i=this.renderer,n=this.chartWidth,r=this.chartHeight,o=this.chartBackground,a=this.plotBackground,s=this.plotBorder,l=this.plotBGImage,c=e.borderWidth||0,u=e.backgroundColor,h=e.plotBackgroundColor,d=e.plotBackgroundImage,f=e.plotBorderWidth||0,p=this.plotLeft,g=this.plotTop,m=this.plotWidth,v=this.plotHeight,y=this.plotBox,b=this.clipRect,x=this.clipBox;t=c+(e.shadow?8:0),(c||u)&&(o?o.animate(o.crisp({width:n-t,height:r-t})):(o={fill:u||"none"},c&&(o.stroke=e.borderColor,o["stroke-width"]=c),this.chartBackground=i.rect(t/2,t/2,n-t,r-t,e.borderRadius,c).attr(o).addClass("highcharts-background").add().shadow(e.shadow))),h&&(a?a.animate(y):this.plotBackground=i.rect(p,g,m,v,0).attr({fill:h}).add().shadow(e.plotShadow)),d&&(l?l.animate(y):this.plotBGImage=i.image(d,p,g,m,v).add()),b?b.animate({width:x.width,height:x.height}):this.clipRect=i.clipRect(x),f&&(s?(s.strokeWidth=-f,s.animate(s.crisp({x:p,y:g,width:m,height:v}))):this.plotBorder=i.rect(p,g,m,v,0,-f).attr({stroke:e.plotBorderColor,"stroke-width":f,fill:"none",zIndex:1}).add()),this.isDirtyBox=!1},propFromSeries:function(){var t,e,i,n=this,r=n.options.chart,o=n.options.series;zt(["inverted","angular","polar"],function(a){for(t=Nt[r.type||r.defaultSeriesType],i=n[a]||r[a]||t&&t.prototype[a],e=o&&o.length;!i&&e--;)(t=Nt[o[e].type])&&t.prototype[a]&&(i=!0);n[a]=i})},linkSeries:function(){var t=this,e=t.series;zt(e,function(t){t.linkedSeries.length=0}),zt(e,function(e){var i=e.options.linkedTo;o(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,e.visible=$t(e.options.visible,i.options.visible,e.visible))})},renderSeries:function(){zt(this.series,function(t){t.translate(),t.render()})},renderLabels:function(){var t=this,e=t.options.labels;e.items&&zt(e.items,function(i){var n=Jt(e.style,i.style),o=r(n.left)+t.plotLeft,a=r(n.top)+t.plotTop+12;delete n.left,delete n.top,t.renderer.text(i.html,o,a).attr({zIndex:2}).css(n).add()})},render:function(){var t,e,i,n,r=this.axes,o=this.renderer,a=this.options;this.setTitle(),this.legend=new ge(this,a.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),t=this.plotWidth,e=this.plotHeight-=21,zt(r,function(t){t.setScale()}),this.getAxisMargins(),i=t/this.plotWidth>1.1,n=e/this.plotHeight>1.05,(i||n)&&(this.maxTicks=null,zt(r,function(t){(t.horiz&&i||!t.horiz&&n)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries&&zt(r,function(t){t.visible&&t.render()}),this.seriesGroup||(this.seriesGroup=o.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.showCredits(a.credits),this.hasRendered=!0},showCredits:function(e){e.enabled&&!this.credits&&(this.credits=this.renderer.text(e.text,0,0).on("click",function(){e.href&&(t.location.href=e.href)}).attr({align:e.position.align,zIndex:8}).css(e.style).add().align(e.position))},destroy:function(){var t,e=this,i=e.axes,n=e.series,r=e.container,o=r&&r.parentNode;for(Ut(e,"destroy"),Et[e.index]=I,At--,e.renderTo.removeAttribute("data-highcharts-chart"),Gt(e),t=i.length;t--;)i[t]=i[t].destroy();for(t=n.length;t--;)n[t]=n[t].destroy();zt("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,pointer,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())}),r&&(r.innerHTML="",Gt(r),o&&T(r));for(t in e)delete e[t]},isReadyToRender:function(){var e=this;return!(!Tt&&t==t.top&&"complete"!==rt.readyState||Pt&&!t.canvg)||(Pt?ae.push(function(){e.firstRender()},e.options.global.canvasToolsURL):rt.attachEvent("onreadystatechange",function(){rt.detachEvent("onreadystatechange",e.firstRender),"complete"===rt.readyState&&e.firstRender()}),!1)},firstRender:function(){var t=this,e=t.options;t.isReadyToRender()&&(t.getContainer(),Ut(t,"init"),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),zt(e.series||[],function(e){t.initSeries(e)}),t.linkSeries(),Ut(t,"beforeRender"),nt.Pointer&&(t.pointer=new ue(t,e)),t.render(),t.renderer.draw(),!t.renderer.imgCount&&t.onload&&t.onload(),t.cloneRenderTo(!0))},onload:function(){var t=this;zt([this.callback].concat(this.callbacks),function(e){e&&void 0!==t.index&&e.apply(t,[t])}),Ut(t,"load"),this.onload=null},splashArray:function(t,e){var i=e[t],i=Qt(i)?i:[i,i,i,i];return[$t(e[t+"Top"],i[0]),$t(e[t+"Right"],i[1]),$t(e[t+"Bottom"],i[2]),$t(e[t+"Left"],i[3])]}};var oe=nt.CenteredSeriesMixin={getCenter:function(){var t,e,i=this.options,n=this.chart,r=2*(i.slicedOffset||0),o=n.plotWidth-2*r,n=n.plotHeight-2*r,a=i.center,a=[$t(a[0],"50%"),$t(a[1],"50%"),i.size||"100%",i.innerSize||0],s=ut(o,n);for(t=0;t<4;++t)e=a[t],i=t<2||2===t&&/%$/.test(e),a[t]=(/%$/.test(e)?[o,n,s,a[2]][t]*parseFloat(e)/100:parseFloat(e))+(i?r:0);return a[3]>a[2]&&(a[3]=a[2]),a}},ve=function(){};ve.prototype={init:function(t,e,i){return this.series=t,this.color=t.color,this.applyOptions(e,i),this.pointAttr={},t.options.colorByPoint&&(e=t.options.colors||t.chart.options.colors,this.color=this.color||e[t.colorCounter++],t.colorCounter===e.length)&&(t.colorCounter=0),t.chart.pointCount++,this},applyOptions:function(t,e){var i=this.series,n=i.options.pointValKey||i.pointValKey,t=ve.prototype.optionsToObject.call(this,t);return Jt(this,t),this.options=this.options?Jt(this.options,t):t,t.group&&delete this.group,n&&(this.y=this[n]),this.isNull=$t(this.isValid&&!this.isValid(),null===this.x||!Zt(this.y,!0)),"name"in this&&void 0===e&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),void 0===this.x&&i&&(this.x=void 0===e?i.autoIncrement(this):e),this},optionsToObject:function(t){var e={},i=this.series,n=i.options.keys,r=n||i.pointArrayMap||["y"],o=r.length,s=0,l=0;if(Zt(t)||null===t)e[r[0]]=t;else if(a(t))for(!n&&t.length>o&&(i=typeof t[0],"string"===i?e.name=t[0]:"number"===i&&(e.x=t[0]),s++);l<o;)n&&void 0===t[s]||(e[r[l]]=t[s]),s++,l++;else"object"==typeof t&&(e=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return e},destroy:function(){var t,e=this.series.chart,i=e.hoverPoints;e.pointCount--,i&&(this.setState(),s(i,this),!i.length)&&(e.hoverPoints=null),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(Gt(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this);for(t in this)this[t]=null},destroyElements:function(){for(var t,e=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],i=6;i--;)t=e[i],this[t]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,i=e.tooltipOptions,n=$t(i.valueDecimals,""),r=i.valuePrefix||"",o=i.valueSuffix||"";return zt(e.pointArrayMap||["y"],function(e){e="{point."+e,(r||o)&&(t=t.replace(e+"}",r+e+"}"+o)),t=t.replace(e+"}",e+":,."+n+"f}")}),v(t,{point:this,series:this.series})},firePointEvent:function(t,e,i){var n=this,r=this.series.options;(r.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&this.importEvents(),"click"===t&&r.allowPointSelect&&(i=function(t){n.select&&n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),Ut(this,t,e,i)},visible:!0};var ye=nt.Series=function(){};ye.prototype={isCartesian:!0,type:"line",pointClass:ve,sorted:!0,requireSorting:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],init:function(t,e){var i,n,r=this,o=t.series,a=function(t,e){return $t(t.options.index,t._i)-$t(e.options.index,e._i)};r.chart=t,r.options=e=r.setOptions(e),r.linkedSeries=[],r.bindAxes(),Jt(r,{name:e.name,state:"",pointAttr:{},visible:e.visible!==!1,selected:e.selected===!0}),Pt&&(e.animation=!1),n=e.events;for(i in n)Yt(r,i,n[i]);(n&&n.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),r.getColor(),r.getSymbol(),zt(r.parallelArrays,function(t){r[t+"Data"]=[]}),r.setData(e.data,!1),r.isCartesian&&(t.hasCartesianSeries=!0),o.push(r),r._i=o.length-1,x(o,a),this.yAxis&&x(this.yAxis.series,a),zt(o,function(t,e){t.index=e,t.name=t.name||"Series "+(e+1)})},bindAxes:function(){var t,i=this,n=i.options,r=i.chart;zt(i.axisTypes||[],function(o){zt(r[o],function(e){t=e.options,(n[o]===t.index||n[o]!==I&&n[o]===t.id||n[o]===I&&0===t.index)&&(e.series.push(i),i[o]=e,e.isDirty=!0)}),!i[o]&&i.optionalAxis!==o&&e(18,!0)})},updateParallelArrays:function(t,e){var i=t.series,n=arguments,r=Zt(e)?function(n){var r="y"===n&&i.toYData?i.toYData(t):t[n];i[n+"Data"][e]=r}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(n,2))};zt(i.parallelArrays,r)},autoIncrement:function(){var t,e=this.options,i=this.xIncrement,n=e.pointIntervalUnit,i=$t(i,e.pointStart,0);return this.pointInterval=t=$t(this.pointInterval,e.pointInterval,1),n&&(e=new z(i),"day"===n?e=+e[tt](e[q]()+t):"month"===n?e=+e[et](e[V]()+t):"year"===n&&(e=+e[it](e[K]()+t)),t=e-i),this.xIncrement=i+t,i},setOptions:function(t){var e=this.chart,i=e.options.plotOptions,e=e.userOptions||{},r=e.plotOptions||{},o=i[this.type];return this.userOptions=t,i=n(o,i.series,t),this.tooltipOptions=n(N.tooltip,N.plotOptions[this.type].tooltip,e.tooltip,r.series&&r.series.tooltip,r[this.type]&&r[this.type].tooltip,t.tooltip),null===o.marker&&delete i.marker,this.zoneAxis=i.zoneAxis,t=this.zones=(i.zones||[]).slice(),!i.negativeColor&&!i.negativeFillColor||i.zones||t.push({value:i[this.zoneAxis+"Threshold"]||i.threshold||0,color:i.negativeColor,fillColor:i.negativeFillColor}),t.length&&l(t[t.length-1].value)&&t.push({color:this.color,fillColor:this.fillColor}),i},getCyclic:function(t,e,i){var n=this.userOptions,r="_"+t+"Index",o=t+"Counter";e||(l(n[r])?e=n[r]:(n[r]=e=this.chart[o]%i.length,this.chart[o]+=1),e=i[e]),this[t]=e},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||ee[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:re.drawLineMarker,setData:function(t,i,n,r){var s,l=this,c=l.points,u=c&&c.length||0,h=l.options,d=l.chart,f=null,p=l.xAxis,g=h.turboThreshold,m=this.xData,v=this.yData,y=(s=l.pointArrayMap)&&s.length,t=t||[];if(s=t.length,i=$t(i,!0),r!==!1&&s&&u===s&&!l.cropped&&!l.hasGroupedData&&l.visible)zt(t,function(t,e){c[e].update&&t!==h.data[e]&&c[e].update(t,!1,null,!1)});else{if(l.xIncrement=null,l.colorCounter=0,zt(this.parallelArrays,function(t){l[t+"Data"].length=0}),g&&s>g){for(n=0;null===f&&n<s;)f=t[n],n++;if(Zt(f))for(n=0;n<s;n++)m[n]=this.autoIncrement(),v[n]=t[n];else if(a(f))if(y)for(n=0;n<s;n++)f=t[n],m[n]=f[0],v[n]=f.slice(1,y+1);else for(n=0;n<s;n++)f=t[n],m[n]=f[0],v[n]=f[1];else e(12)}else for(n=0;n<s;n++)t[n]!==I&&(f={series:l},l.pointClass.prototype.applyOptions.apply(f,[t[n]]),l.updateParallelArrays(f,n));for(o(v[0])&&e(14,!0),l.data=[],l.options.data=l.userOptions.data=t,n=u;n--;)c[n]&&c[n].destroy&&c[n].destroy();p&&(p.minRange=p.userMinRange),l.isDirty=l.isDirtyData=d.isDirtyBox=!0,n=!1}"point"===h.legendType&&(this.processData(),this.generatePoints()),i&&d.redraw(n)},processData:function(t){var i,n=this.xData,r=this.yData,o=n.length;i=0;var a,s,l,c=this.xAxis,u=this.options;l=u.cropThreshold;var h,d,f=this.getExtremesFromAll||u.getExtremesFromAll,p=this.isCartesian,u=c&&c.val2lin,g=c&&c.isLog;if(p&&!this.isDirty&&!c.isDirty&&!this.yAxis.isDirty&&!t)return!1;for(c&&(t=c.getExtremes(),h=t.min,d=t.max),p&&this.sorted&&!f&&(!l||o>l||this.forceCrop)&&(n[o-1]<h||n[0]>d?(n=[],r=[]):(n[0]<h||n[o-1]>d)&&(i=this.cropData(this.xData,this.yData,h,d),n=i.xData,r=i.yData,i=i.start,a=!0)),l=n.length||1;--l;)o=g?u(n[l])-u(n[l-1]):n[l]-n[l-1],o>0&&(s===I||o<s)?s=o:o<0&&this.requireSorting&&e(15);this.cropped=a,this.cropStart=i,this.processedXData=n,this.processedYData=r,this.closestPointRange=s},cropData:function(t,e,i,n){var r,o=t.length,a=0,s=o,l=$t(this.cropShoulder,1);for(r=0;r<o;r++)if(t[r]>=i){a=ct(0,r-l);break}for(i=r;i<o;i++)if(t[i]>n){s=i+l;break}return{xData:t.slice(a,s),yData:e.slice(a,s),start:a,end:s}},generatePoints:function(){var t,e,i,n,r=this.options.data,o=this.data,a=this.processedXData,s=this.processedYData,l=this.pointClass,c=a.length,h=this.cropStart||0,d=this.hasGroupedData,f=[];for(o||d||(o=[],o.length=r.length,o=this.data=o),n=0;n<c;n++)e=h+n,d?(f[n]=(new l).init(this,[a[n]].concat(u(s[n]))),f[n].dataGroup=this.groupMap[n]):(o[e]?i=o[e]:r[e]!==I&&(o[e]=i=(new l).init(this,r[e],a[n])),f[n]=i),f[n].index=e;if(o&&(c!==(t=o.length)||d))for(n=0;n<t;n++)n===h&&!d&&(n+=c),o[n]&&(o[n].destroyElements(),o[n].plotX=I);this.data=o,this.points=f},getExtremes:function(t){var e,i=this.yAxis,n=this.processedXData,r=[],o=0;e=this.xAxis.getExtremes();var s,l,c,u,h=e.min,d=e.max,t=t||this.stackedYData||this.processedYData||[];for(e=t.length,u=0;u<e;u++)if(l=n[u],c=t[u],s=(Zt(c,!0)||a(c))&&(!i.isLog||c.length||c>0),l=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(n[u+1]||l)>=h&&(n[u-1]||l)<=d,s&&l)if(s=c.length)for(;s--;)null!==c[s]&&(r[o++]=c[s]);else r[o++]=c;this.dataMin=w(r),this.dataMax=S(r)},translate:function(){this.processedXData||this.processData(),this.generatePoints();for(var t,e,i,n,r=this.options,o=r.stacking,a=this.xAxis,s=a.categories,c=this.yAxis,u=this.points,h=u.length,d=!!this.modifyValue,f=r.pointPlacement,p="between"===f||Zt(f),g=r.threshold,m=r.startFromThreshold?g:0,v=Number.MAX_VALUE,r=0;r<h;r++){var y=u[r],b=y.x,x=y.y;e=y.low;var w,S=o&&c.stacks[(this.negStacks&&x<(m?0:g)?"-":"")+this.stackKey];c.isLog&&null!==x&&x<=0&&(y.isNull=!0),y.plotX=t=O(ut(ct(-1e5,a.translate(b,0,0,0,1,f,"flags"===this.type)),1e5)),o&&this.visible&&!y.isNull&&S&&S[b]&&(n=this.getStackIndicator(n,b,this.index),w=S[b],x=w.points[n.key],e=x[0],x=x[1],e===m&&n.key===S[b].base&&(e=$t(g,c.min)),c.isLog&&e<=0&&(e=null),y.total=y.stackTotal=w.total,y.percentage=w.total&&y.y/w.total*100,y.stackY=x,w.setOffset(this.pointXOffset||0,this.barW||0)),y.yBottom=l(e)?c.translate(e,0,1,0,1):null,d&&(x=this.modifyValue(x,y)),y.plotY=e="number"==typeof x&&x!==1/0?ut(ct(-1e5,c.translate(x,0,1,0,1)),1e5):I,y.isInside=e!==I&&e>=0&&e<=c.len&&t>=0&&t<=a.len,y.clientX=p?O(a.translate(b,0,0,0,1,f)):t,y.negative=y.y<(g||0),y.category=s&&s[y.x]!==I?s[y.x]:y.x,y.isNull||(void 0!==i&&(v=ut(v,ht(t-i))),i=t)}this.closestPointRangePx=v},getValidPoints:function(t,e){var i=this.chart;return Wt(t||this.points||[],function(t){return!(e&&!i.isInsidePlot(t.plotX,t.plotY,i.inverted))&&!t.isNull})},setClip:function(t){var e=this.chart,i=this.options,n=e.renderer,r=e.inverted,o=this.clipBox,a=o||e.clipBox,s=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,a.height,i.xAxis,i.yAxis].join(","),l=e[s],c=e[s+"m"];l||(t&&(a.width=0,e[s+"m"]=c=n.clipRect(-99,r?-e.plotLeft:-e.plotTop,99,r?e.chartWidth:e.chartHeight)),e[s]=l=n.clipRect(a),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),i.clip!==!1&&(this.group.clip(t||o?l:e.clipRect),this.markerGroup.clip(c),this.sharedClipKey=s),t||(l.count[this.index]&&(delete l.count[this.index],l.count.length-=1),0===l.count.length&&s&&e[s]&&(o||(e[s]=e[s].destroy()),e[s+"m"]&&(e[s+"m"]=e[s+"m"].destroy())))},animate:function(t){var e,i=this.chart,n=C(this.options.animation);t?this.setClip(n):(e=this.sharedClipKey,(t=i[e])&&t.animate({width:i.plotSizeX},n),i[e+"m"]&&i[e+"m"].animate({width:i.plotSizeX+99},n),this.animate=null)},afterAnimate:function(){this.setClip(),Ut(this,"afterAnimate")},drawPoints:function(){var t,e,i,n,r,o,a,s,l,c,u,h,d=this.points,f=this.chart,p=this.options.marker,g=this.pointAttr[""],m=this.markerGroup,v=$t(p.enabled,this.xAxis.isRadial,this.closestPointRangePx>2*p.radius);if(p.enabled!==!1||this._hasPointMarkers)for(n=d.length;n--;)r=d[n],e=st(r.plotX),i=r.plotY,l=r.graphic,c=r.marker||{},u=!!r.marker,t=v&&c.enabled===I||c.enabled,h=r.isInside,t&&Zt(i)&&null!==r.y?(t=r.pointAttr[r.selected?"select":""]||g,o=t.r,a=$t(c.symbol,this.symbol),s=0===a.indexOf("url"),l?l[h?"show":"hide"](!0).attr(t).animate(Jt({x:e-o,y:i-o},l.symbolName?{width:2*o,height:2*o}:{})):h&&(o>0||s)&&(r.graphic=f.renderer.symbol(a,e-o,i-o,2*o,2*o,u?c:p).attr(t).add(m))):l&&(r.graphic=l.destroy())},convertAttribs:function(t,e,i,n){var r,o,a=this.pointAttrToOptions,s={},t=t||{},e=e||{},i=i||{},n=n||{};for(r in a)o=a[r],s[r]=$t(t[o],e[r],i[r],n[r]);return s},getAttribs:function(){var t,e,i,n=this,r=n.options,o=ee[n.type].marker?r.marker:r,a=o.states,s=a.hover,c=n.color,u=n.options.negativeColor,h={stroke:c,fill:c},d=n.points||[],f=[],p=n.pointAttrToOptions;t=n.hasPointSpecificOptions;var g=o.lineColor,m=o.fillColor;e=r.turboThreshold;var v,y,b=n.zones,x=n.zoneAxis||"y";if(r.marker?(s.radius=+s.radius||+o.radius+ +s.radiusPlus,s.lineWidth=s.lineWidth||o.lineWidth+s.lineWidthPlus):(s.color=s.color||_(s.color||c).brighten(s.brightness).get(),s.negativeColor=s.negativeColor||_(s.negativeColor||u).brighten(s.brightness).get()),f[""]=n.convertAttribs(o,h),zt(["hover","select"],function(t){f[t]=n.convertAttribs(a[t],f[""])}),n.pointAttr=f,c=d.length,!e||c<e||t)for(;c--;){if(e=d[c],(o=e.options&&e.options.marker||e.options)&&o.enabled===!1&&(o.radius=0),h=null,b.length){for(t=0,h=b[t];e[x]>=h.value;)h=b[++t];e.color=e.fillColor=h=$t(h.color,n.color)}if(t=r.colorByPoint||e.color,e.options)for(y in p)l(o[p[y]])&&(t=!0);t?(o=o||{},i=[],a=o.states||{},t=a.hover=a.hover||{},r.marker&&(!e.negative||t.fillColor||s.fillColor)||(t[n.pointAttrToOptions.fill]=t.color||!e.options.color&&s[e.negative&&u?"negativeColor":"color"]||_(e.color).brighten(t.brightness||s.brightness).get()),v={color:e.color},m||(v.fillColor=e.color),g||(v.lineColor=e.color),o.hasOwnProperty("color")&&!o.color&&delete o.color,h&&!s.fillColor&&(t.fillColor=h),i[""]=n.convertAttribs(Jt(v,o),f[""]),i.hover=n.convertAttribs(a.hover,f.hover,i[""]),i.select=n.convertAttribs(a.select,f.select,i[""])):i=f,e.pointAttr=i}},destroy:function(){var t,e,i,n,r=this,o=r.chart,a=/AppleWebKit\/533/.test(mt),l=r.data||[];for(Ut(r,"destroy"),Gt(r),zt(r.axisTypes||[],function(t){(n=r[t])&&(s(n.series,r),n.isDirty=n.forceRedraw=!0)}),r.legendItem&&r.chart.legend.destroyItem(r),t=l.length;t--;)(e=l[t])&&e.destroy&&e.destroy();r.points=null,clearTimeout(r.animationTimeout);for(i in r)r[i]instanceof E&&!r[i].survive&&(t=a&&"group"===i?"hide":"destroy",r[i][t]());o.hoverSeries===r&&(o.hoverSeries=null),s(o.series,r);for(i in r)delete r[i]},getGraphPath:function(t,e,i){var n,r,o=this,a=o.options,s=a.step,c=[],u=[],t=t||o.points;return(n=t.reversed)&&t.reverse(),(s={right:1,center:2}[s]||s&&3)&&n&&(s=4-s),a.connectNulls&&!e&&!i&&(t=this.getValidPoints(t)),zt(t,function(n,h){var d=n.plotX,f=n.plotY,p=t[h-1];(n.leftCliff||p&&p.rightCliff)&&!i&&(r=!0),n.isNull&&!l(e)&&h>0?r=!a.connectNulls:n.isNull&&!e?r=!0:(0===h||r?p=[It,n.plotX,n.plotY]:o.getPointSpline?p=o.getPointSpline(t,n,h):s?(p=1===s?[Rt,p.plotX,f]:2===s?[Rt,(p.plotX+d)/2,p.plotY,Rt,(p.plotX+d)/2,f]:[Rt,d,p.plotY],p.push(Rt,d,f)):p=[Rt,d,f],u.push(n.x),s&&u.push(n.x),c.push.apply(c,p),r=!1)}),c.xMap=u,o.graphPath=c},drawGraph:function(){var t=this,e=this.options,i=[["graph",e.lineColor||this.color,e.dashStyle]],n=e.lineWidth,r="square"!==e.linecap,o=(this.gappedPath||this.getGraphPath).call(this);zt(this.zones,function(n,r){i.push(["zoneGraph"+r,n.color||t.color,n.dashStyle||e.dashStyle])}),zt(i,function(i,a){var s=i[0],l=t[s];l?(l.endX=o.xMap,l.animate({d:o})):n&&o.length&&(l={stroke:i[1],"stroke-width":n,fill:"none",zIndex:1},i[2]?l.dashstyle=i[2]:r&&(l["stroke-linecap"]=l["stroke-linejoin"]="round"),l=t[s]=t.chart.renderer.path(o).attr(l).add(t.group).shadow(a<2&&e.shadow)),l&&(l.startX=o.xMap,l.isArea=o.isArea)})},applyZones:function(){var t,e,i,n,r,o,a,s,l,c=this,u=this.chart,h=u.renderer,d=this.zones,f=this.clips||[],p=this.graph,g=this.area,m=ct(u.chartWidth,u.chartHeight),v=this[(this.zoneAxis||"y")+"Axis"],y=u.inverted,b=!1;d.length&&(p||g)&&v&&v.min!==I&&(r=v.reversed,o=v.horiz,p&&p.hide(),g&&g.hide(),n=v.getExtremes(),zt(d,function(d,x){t=r?o?u.plotWidth:0:o?0:v.toPixels(n.min),t=ut(ct($t(e,t),0),m),e=ut(ct(at(v.toPixels($t(d.value,n.max),!0)),0),m),b&&(t=e=v.toPixels(n.max)),a=Math.abs(t-e),s=ut(t,e),l=ct(t,e),v.isXAxis?(i={x:y?l:s,y:0,width:a,height:m},o||(i.x=u.plotHeight-i.x)):(i={x:0,y:y?l:s,width:m,height:a},o&&(i.y=u.plotWidth-i.y)),y&&h.isVML&&(i=v.isXAxis?{x:0,y:r?s:l,height:i.width,width:u.chartWidth}:{x:i.y-u.plotLeft-u.spacingBox.x,y:0,width:i.height,height:u.chartHeight}),f[x]?f[x].animate(i):(f[x]=h.clipRect(i),p&&c["zoneGraph"+x].clip(f[x]),g&&c["zoneArea"+x].clip(f[x])),b=d.value>n.max}),this.clips=f)},invertGroups:function(){function t(){var t={width:e.yAxis.len,height:e.xAxis.len};zt(["group","markerGroup"],function(i){e[i]&&e[i].attr(t).invert()})}var e=this,i=e.chart;e.xAxis&&(Yt(i,"resize",t),Yt(e,"destroy",function(){Gt(i,"resize",t)}),t(),e.invertGroups=t)},plotGroup:function(t,e,i,n,r){var o=this[t],a=!o;return a&&(this[t]=o=this.chart.renderer.g(e).attr({zIndex:n||.1}).add(r),o.addClass("highcharts-series-"+this.index)),o.attr({visibility:i})[a?"attr":"animate"](this.getPlotBox()),o},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t,e=this,i=e.chart,n=e.options,r=!!e.animate&&i.renderer.isSVG&&C(n.animation).duration,o=e.visible?"inherit":"hidden",a=n.zIndex,s=e.hasRendered,l=i.seriesGroup;t=e.plotGroup("group","series",o,a,l),e.markerGroup=e.plotGroup("markerGroup","markers",o,a,l),r&&e.animate(!0),e.getAttribs(),t.inverted=!!e.isCartesian&&i.inverted,e.drawGraph&&(e.drawGraph(),e.applyZones()),zt(e.points,function(t){t.redraw&&t.redraw()}),e.drawDataLabels&&e.drawDataLabels(),e.visible&&e.drawPoints(),e.drawTracker&&e.options.enableMouseTracking!==!1&&e.drawTracker(),i.inverted&&e.invertGroups(),n.clip!==!1&&!e.sharedClipKey&&!s&&t.clip(i.clipRect),r&&e.animate(),s||(e.animationTimeout=h(function(){e.afterAnimate()},r)),e.isDirty=e.isDirtyData=!1,e.hasRendered=!0},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,n=this.xAxis,r=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:$t(n&&n.left,t.plotLeft),translateY:$t(r&&r.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdDimensions:1,kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,n=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:r?n.len-t.chartX+n.pos:t.chartY-n.pos},e)},buildKDTree:function(){function t(i,n,r){var o,a;if(a=i&&i.length)return o=e.kdAxisArray[n%r],i.sort(function(t,e){return t[o]-e[o]}),a=Math.floor(a/2),{point:i[a],left:t(i.slice(0,a),n+1,r),right:t(i.slice(a+1),n+1,r)}}var e=this,i=e.kdDimensions;delete e.kdTree,h(function(){e.kdTree=t(e.getValidPoints(null,!e.directTouch),i,i)},e.options.kdNow?0:1)},searchKDTree:function(t,e){function i(t,e,s,c){var u,h,d=e.point,f=n.kdAxisArray[s%c],p=d;return h=l(t[r])&&l(d[r])?Math.pow(t[r]-d[r],2):null,u=l(t[o])&&l(d[o])?Math.pow(t[o]-d[o],2):null,u=(h||0)+(u||0),d.dist=l(u)?Math.sqrt(u):Number.MAX_VALUE,d.distX=l(h)?Math.sqrt(h):Number.MAX_VALUE,f=t[f]-d[f],u=f<0?"left":"right",h=f<0?"right":"left",e[u]&&(u=i(t,e[u],s+1,c),p=u[a]<p[a]?u:d),e[h]&&Math.sqrt(f*f)<p[a]&&(t=i(t,e[h],s+1,c),p=t[a]<p[a]?t:p),p}var n=this,r=this.kdAxisArray[0],o=this.kdAxisArray[1],a=e?"distX":"dist";if(this.kdTree||this.buildKDTree(),this.kdTree)return i(t,this.kdTree,this.kdDimensions,this.kdDimensions)}},L.prototype={destroy:function(){k(this,this.axis)},render:function(t){var e=this.options,i=e.format,i=i?v(i,this):e.formatter.call(this);this.label?this.label.attr({text:i,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(i,null,null,e.useHTML).css(e.style).attr({align:this.textAlign,rotation:e.rotation,visibility:"hidden"}).add(t)},setOffset:function(t,e){var i=this.axis,n=i.chart,r=n.inverted,o=i.reversed,o=this.isNegative&&!o||!this.isNegative&&o,a=i.translate(i.usePercentage?100:this.total,0,0,0,1),i=i.translate(0),i=ht(a-i),s=n.xAxis[0].translate(this.x)+t,l=n.plotHeight,o={x:r?o?a:a-i:s,y:r?l-s-e:o?l-a-i:l-a,width:r?i:e,height:r?e:i};(r=this.label)&&(r.align(this.alignOptions,null,o),o=r.alignAttr,r[this.options.crop===!1||n.isInsidePlot(o.x,o.y)?"show":"hide"](!0))}},me.prototype.getStacks=function(){var t=this;zt(t.yAxis,function(t){t.stacks&&t.hasVisibleSeries&&(t.oldStacks=t.stacks)}),zt(t.series,function(e){!e.options.stacking||e.visible!==!0&&t.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=e.type+$t(e.options.stack,""))})},se.prototype.buildStacks=function(){var t,e,i=this.series,n=$t(this.options.reversedStacks,!0),r=i.length;if(!this.isXAxis){for(this.usePercentage=!1,e=r;e--;)i[n?e:r-e-1].setStackedPoints();for(e=r;e--;)t=i[n?e:r-e-1],t.setStackCliffs&&t.setStackCliffs();if(this.usePercentage)for(e=0;e<r;e++)i[e].setPercentStacks()}},se.prototype.renderStackTotals=function(){var t,e,i=this.chart,n=i.renderer,r=this.stacks,o=this.stackTotalGroup;o||(this.stackTotalGroup=o=n.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),o.translate(i.plotLeft,i.plotTop);for(t in r)for(e in i=r[t])i[e].render(o)},se.prototype.resetStacks=function(){var t,e,i=this.stacks;if(!this.isXAxis)for(t in i)for(e in i[t])i[t][e].touched<this.stacksTouched?(i[t][e].destroy(),delete i[t][e]):(i[t][e].total=null,i[t][e].cum=0)},se.prototype.cleanStacks=function(){var t,e,i;if(!this.isXAxis){this.oldStacks&&(t=this.stacks=this.oldStacks);for(e in t)for(i in t[e])t[e][i].cum=t[e][i].total}},ye.prototype.setStackedPoints=function(){if(this.options.stacking&&(this.visible===!0||this.chart.options.chart.ignoreHiddenSeries===!1)){var t,e,i,n,r,o,a,s=this.processedXData,c=this.processedYData,u=[],h=c.length,d=this.options,f=d.threshold,p=d.startFromThreshold?f:0,g=d.stack,d=d.stacking,m=this.stackKey,v="-"+m,y=this.negStacks,b=this.yAxis,x=b.stacks,w=b.oldStacks;for(b.stacksTouched+=1,r=0;r<h;r++)o=s[r],a=c[r],t=this.getStackIndicator(t,o,this.index),n=t.key,i=(e=y&&a<(p?0:f))?v:m,x[i]||(x[i]={}),x[i][o]||(w[i]&&w[i][o]?(x[i][o]=w[i][o],x[i][o].total=null):x[i][o]=new L(b,b.options.stackLabels,e,o,g)),i=x[i][o],null!==a&&(i.points[n]=i.points[this.index]=[$t(i.cum,p)],l(i.cum)||(i.base=n),i.touched=b.stacksTouched,t.index>0&&this.singleStacks===!1&&(i.points[n][0]=i.points[this.index+","+o+",0"][0])),"percent"===d?(e=e?m:v,y&&x[e]&&x[e][o]?(e=x[e][o],i.total=e.total=ct(e.total,i.total)+ht(a)||0):i.total=O(i.total+(ht(a)||0))):i.total=O(i.total+(a||0)),i.cum=$t(i.cum,p)+(a||0),null!==a&&(i.points[n].push(i.cum),u[r]=i.cum);"percent"===d&&(b.usePercentage=!0),this.stackedYData=u,b.oldStacks={}}},ye.prototype.setPercentStacks=function(){var t,e=this,i=e.stackKey,n=e.yAxis.stacks,r=e.processedXData;zt([i,"-"+i],function(i){for(var o,a,s,l=r.length;l--;)a=r[l],t=e.getStackIndicator(t,a,e.index),o=(s=n[i]&&n[i][a])&&s.points[t.key],(a=o)&&(s=s.total?100/s.total:0,a[0]=O(a[0]*s),a[1]=O(a[1]*s),e.stackedYData[l]=a[1])})},ye.prototype.getStackIndicator=function(t,e,i){return l(t)&&t.x===e?t.index++:t={x:e,index:0},t.key=[i,e,t.index].join(","),t},Jt(me.prototype,{addSeries:function(t,e,i){var n,r=this;return t&&(e=$t(e,!0),Ut(r,"addSeries",{options:t},function(){n=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),e&&r.redraw(i)})),n},addAxis:function(t,e,i,r){var o=e?"xAxis":"yAxis",a=this.options,t=n(t,{index:this[o].length,isX:e});new se(this,t),a[o]=u(a[o]||{}),a[o].push(t),$t(i,!0)&&this.redraw(r)},showLoading:function(t){var e=this,i=e.options,n=e.loadingDiv,r=i.loading,o=function(){n&&d(n,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})};n||(e.loadingDiv=n=f(Lt,{className:"highcharts-loading"},Jt(r.style,{zIndex:10,display:"none"}),e.container),e.loadingSpan=f("span",null,r.labelStyle,n),Yt(e,"redraw",o)),e.loadingSpan.innerHTML=t||i.lang.loading,e.loadingShown||(d(n,{opacity:0,display:""}),qt(n,{opacity:r.style.opacity},{duration:r.showDuration||0}),e.loadingShown=!0),o()},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&qt(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){d(e,{display:"none"})}}),this.loadingShown=!1}}),Jt(ve.prototype,{update:function(t,e,i,n){function r(){a.applyOptions(t),null===a.y&&l&&(a.graphic=l.destroy()),Qt(t,!0)&&(a.redraw=function(){l&&l.element&&t&&t.marker&&t.marker.symbol&&(a.graphic=l.destroy()),t&&t.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.redraw=null}),o=a.index,s.updateParallelArrays(a,o),u.data[o]=Qt(u.data[o],!0)?a.options:t,s.isDirty=s.isDirtyData=!0,!s.fixedBox&&s.hasCartesianSeries&&(c.isDirtyBox=!0),"point"===u.legendType&&(c.isDirtyLegend=!0),e&&c.redraw(i)}var o,a=this,s=a.series,l=a.graphic,c=s.chart,u=s.options,e=$t(e,!0);n===!1?r():a.firePointEvent("update",{options:t},r)},remove:function(t,e){this.series.removePoint(Ht(this,this.series.data),t,e)}}),Jt(ye.prototype,{addPoint:function(t,e,i,n){var r,o,a,s,l=this.options,c=this.data,u=this.chart,h=this.xAxis&&this.xAxis.names,d=l.data,f=this.xData,e=$t(e,!0);
if(r={series:this},this.pointClass.prototype.applyOptions.apply(r,[t]),s=r.x,a=f.length,this.requireSorting&&s<f[a-1])for(o=!0;a&&f[a-1]>s;)a--;this.updateParallelArrays(r,"splice",a,0,0),this.updateParallelArrays(r,a),h&&r.name&&(h[s]=r.name),d.splice(a,0,t),o&&(this.data.splice(a,0,null),this.processData()),"point"===l.legendType&&this.generatePoints(),i&&(c[0]&&c[0].remove?c[0].remove(!1):(c.shift(),this.updateParallelArrays(r,"shift"),d.shift())),this.isDirtyData=this.isDirty=!0,e&&(this.getAttribs(),u.redraw(n))},removePoint:function(t,e,i){var n=this,r=n.data,o=r[t],a=n.points,s=n.chart,l=function(){a&&a.length===r.length&&a.splice(t,1),r.splice(t,1),n.options.data.splice(t,1),n.updateParallelArrays(o||{series:n},"splice",t,1),o&&o.destroy(),n.isDirty=!0,n.isDirtyData=!0,e&&s.redraw()};P(i,s),e=$t(e,!0),o?o.firePointEvent("remove",null,l):l()},remove:function(t,e,i){function n(){r.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(),$t(t,!0)&&o.redraw(e)}var r=this,o=r.chart;i!==!1?Ut(r,"remove",null,n):n()},update:function(t,e){var i,r=this,o=this.chart,a=this.userOptions,s=this.type,l=Nt[s].prototype,c=["group","markerGroup","dataLabelsGroup"];(t.type&&t.type!==s||void 0!==t.zIndex)&&(c.length=0),zt(c,function(t){c[t]=r[t],delete r[t]}),t=n(a,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},t),this.remove(!1,null,!1);for(i in l)this[i]=I;Jt(this,Nt[t.type||s].prototype),zt(c,function(t){r[t]=c[t]}),this.init(o,t),o.linkSeries(),$t(e,!0)&&o.redraw(!1)}}),Jt(se.prototype,{update:function(t,e){var i=this.chart,t=i.options[this.coll][this.options.index]=n(this.userOptions,t);this.destroy(!0),this.init(i,Jt(t,{events:I})),i.isDirtyBox=!0,$t(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,n=this.series,r=n.length;r--;)n[r]&&n[r].remove(!1);s(e.axes,this),s(e[i],this),e.options[i].splice(this.options.index,1),zt(e[i],function(t,e){t.options.index=e}),this.destroy(),e.isDirtyBox=!0,$t(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}});var be=p(ye);Nt.line=be,ee.area=n(ie,{softThreshold:!1,threshold:0});var xe=p(ye,{type:"area",singleStacks:!1,getStackPoints:function(){var t,e,i,n=[],r=[],o=this.xAxis,a=this.yAxis,s=a.stacks[this.stackKey],l={},c=this.points,u=this.index,h=a.series,d=h.length,f=$t(a.options.reversedStacks,!0)?1:-1;if(this.options.stacking){for(e=0;e<c.length;e++)l[c[e].x]=c[e];for(i in s)null!==s[i].total&&r.push(i);r.sort(function(t,e){return t-e}),t=Ft(h,function(){return this.visible}),zt(r,function(i,c){var h,p,g=0;if(l[i]&&!l[i].isNull)n.push(l[i]),zt([-1,1],function(n){var o=1===n?"rightNull":"leftNull",a=0,g=s[r[c+n]];if(g)for(e=u;e>=0&&e<d;)h=g.points[e],h||(e===u?l[i][o]=!0:t[e]&&(p=s[i].points[e])&&(a-=p[1]-p[0])),e+=f;l[i][1===n?"rightCliff":"leftCliff"]=a});else{for(e=u;e>=0&&e<d;){if(h=s[i].points[e]){g=h[1];break}e+=f}g=a.toPixels(g,!0),n.push({isNull:!0,plotX:o.toPixels(i,!0),plotY:g,yBottom:g})}})}return n},getGraphPath:function(t){var e,i,n,r,o=ye.prototype.getGraphPath,a=this.options,s=a.stacking,l=this.yAxis,c=[],u=[],h=this.index,d=l.stacks[this.stackKey],f=a.threshold,p=l.getThreshold(a.threshold),a=a.connectNulls||"percent"===s,g=function(e,i,r){var o,a,g=t[e],e=s&&d[g.x].points[h],m=g[r+"Null"]||0,r=g[r+"Cliff"]||0,g=!0;r||m?(o=(m?e[0]:e[1])+r,a=e[0]+r,g=!!m):!s&&t[i]&&t[i].isNull&&(o=a=f),void 0!==o&&(u.push({plotX:n,plotY:null===o?p:l.getThreshold(o),isNull:g}),c.push({plotX:n,plotY:null===a?p:l.getThreshold(a),doCurve:!1}))},t=t||this.points;for(s&&(t=this.getStackPoints()),e=0;e<t.length;e++)i=t[e].isNull,n=$t(t[e].rectPlotX,t[e].plotX),r=$t(t[e].yBottom,p),(!i||a)&&(a||g(e,e-1,"left"),i&&!s&&a||(u.push(t[e]),c.push({x:e,plotX:n,plotY:r})),a||g(e,e+1,"right"));return e=o.call(this,u,!0,!0),c.reversed=!0,i=o.call(this,c,!0,!0),i.length&&(i[0]=Rt),i=e.concat(i),o=o.call(this,u,!1,a),i.xMap=e.xMap,this.areaPath=i,o},drawGraph:function(){this.areaPath=[],ye.prototype.drawGraph.apply(this);var t=this,e=this.areaPath,i=this.options,n=[["area",this.color,i.fillColor]];zt(this.zones,function(e,r){n.push(["zoneArea"+r,e.color||t.color,e.fillColor||i.fillColor])}),zt(n,function(n){var r=n[0],o=t[r];o?(o.endX=e.xMap,o.animate({d:e})):(o={fill:n[2]||n[1],zIndex:0},n[2]||(o["fill-opacity"]=$t(i.fillOpacity,.75)),o=t[r]=t.chart.renderer.path(e).attr(o).add(t.group),o.isArea=!0),o.startX=e.xMap,o.shiftUnit=i.step?2:1})},drawLegendSymbol:re.drawRectangle});return Nt.area=xe,ee.spline=n(ie),be=p(ye,{type:"spline",getPointSpline:function(t,e,i){var n,r,o,a,s=e.plotX,l=e.plotY,c=t[i-1],i=t[i+1];if(c&&!c.isNull&&c.doCurve!==!1&&i&&!i.isNull&&i.doCurve!==!1){t=c.plotY,o=i.plotX;var i=i.plotY,u=0;n=(1.5*s+c.plotX)/2.5,r=(1.5*l+t)/2.5,o=(1.5*s+o)/2.5,a=(1.5*l+i)/2.5,o!==n&&(u=(a-r)*(o-s)/(o-n)+l-a),r+=u,a+=u,r>t&&r>l?(r=ct(t,l),a=2*l-r):r<t&&r<l&&(r=ut(t,l),a=2*l-r),a>i&&a>l?(a=ct(i,l),r=2*l-a):a<i&&a<l&&(a=ut(i,l),r=2*l-a),e.rightContX=o,e.rightContY=a}return e=["C",$t(c.rightContX,c.plotX),$t(c.rightContY,c.plotY),$t(n,s),$t(r,l),s,l],c.rightContX=c.rightContY=null,e}}),Nt.spline=be,ee.areaspline=n(ee.area),xe=xe.prototype,be=p(be,{type:"areaspline",getStackPoints:xe.getStackPoints,getGraphPath:xe.getGraphPath,setStackCliffs:xe.setStackCliffs,drawGraph:xe.drawGraph,drawLegendSymbol:re.drawRectangle}),Nt.areaspline=be,ee.column=n(ie,{borderColor:"#FFFFFF",borderRadius:0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:.1,shadow:!1,halo:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0}),be=p(ye,{type:"column",pointAttrToOptions:{stroke:"borderColor",fill:"color",r:"borderRadius"},cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){ye.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&zt(e.series,function(e){e.type===t.type&&(e.isDirty=!0)})},getColumnMetrics:function(){var t,e=this,i=e.options,n=e.xAxis,r=e.yAxis,o=n.reversed,a={},s=0;i.grouping===!1?s=1:zt(e.chart.series,function(i){var n,o=i.options,l=i.yAxis;i.type===e.type&&i.visible&&r.len===l.len&&r.pos===l.pos&&(o.stacking?(t=i.stackKey,a[t]===I&&(a[t]=s++),n=a[t]):o.grouping!==!1&&(n=s++),i.columnIndex=n)});var l=ut(ht(n.transA)*(n.ordinalSlope||i.pointRange||n.closestPointRange||n.tickInterval||1),n.len),c=l*i.groupPadding,u=(l-2*c)/s,i=ut(i.maxPointWidth||n.len,$t(i.pointWidth,u*(1-2*i.pointPadding)));return e.columnMetrics={width:i,offset:(u-i)/2+(c+((e.columnIndex||0)+(o?1:0))*u-l/2)*(o?-1:1)},e.columnMetrics},crispCol:function(t,e,i,n){var r=this.chart,o=this.borderWidth,a=-(o%2?.5:0),o=o%2?.5:1;return r.inverted&&r.renderer.isVML&&(o+=1),i=Math.round(t+i)+a,t=Math.round(t)+a,i-=t,n=Math.round(e+n)+o,a=ht(e)<=.5&&n>.5,e=Math.round(e)+o,n-=e,a&&n&&(e-=1,n+=1),{x:t,y:e,width:i,height:n}},translate:function(){var t=this,e=t.chart,i=t.options,n=t.borderWidth=$t(i.borderWidth,t.closestPointRange*t.xAxis.transA<2?0:1),r=t.yAxis,o=t.translatedThreshold=r.getThreshold(i.threshold),a=$t(i.minPointLength,5),s=t.getColumnMetrics(),l=s.width,c=t.barW=ct(l,1+2*n),u=t.pointXOffset=s.offset;e.inverted&&(o-=.5),i.pointPadding&&(c=lt(c)),ye.prototype.translate.apply(t),zt(t.points,function(i){var n,s=ut($t(i.yBottom,o),9e4),h=999+ht(s),h=ut(ct(-h,i.plotY),r.len+h),d=i.plotX+u,f=c,p=ut(h,s),g=ct(h,s)-p;ht(g)<a&&a&&(g=a,n=!r.reversed&&!i.negative||r.reversed&&i.negative,p=ht(p-o)>a?s-a:o-(n?a:0)),i.barX=d,i.pointWidth=l,i.tooltipPos=e.inverted?[r.len+r.pos-e.plotLeft-h,t.xAxis.len-d-f/2,g]:[d+f/2,h+r.pos-e.plotTop,g],i.shapeType="rect",i.shapeArgs=t.crispCol.apply(t,i.isNull?[i.plotX,r.len/2,0,0]:[d,p,f,g])})},getSymbol:_t,drawLegendSymbol:re.drawRectangle,drawGraph:_t,drawPoints:function(){var t,e,i=this,r=this.chart,o=i.options,a=r.renderer,s=o.animationLimit||250;zt(i.points,function(c){var u,h=c.graphic;Zt(c.plotY)&&null!==c.y?(t=c.shapeArgs,u=l(i.borderWidth)?{"stroke-width":i.borderWidth}:{},e=c.pointAttr[c.selected?"select":""]||i.pointAttr[""],h?(Vt(h),h.attr(u).attr(e)[r.pointCount<s?"animate":"attr"](n(t))):c.graphic=a[c.shapeType](t).attr(u).attr(e).add(c.group||i.group).shadow(o.shadow,null,o.stacking&&!o.borderRadius)):h&&(c.graphic=h.destroy())})},animate:function(t){var e=this,i=this.yAxis,n=e.options,r=this.chart.inverted,o={};Tt&&(t?(o.scaleY=.001,t=ut(i.pos+i.len,ct(i.pos,i.toPixels(n.threshold))),r?o.translateX=t-i.len:o.translateY=t,e.group.attr(o)):(o[r?"translateX":"translateY"]=i.pos,e.group.animate(o,Jt(C(e.options.animation),{step:function(t,i){e.group.attr({scaleY:ct(.001,i.pos)})}})),e.animate=null))},remove:function(){var t=this,e=t.chart;e.hasRendered&&zt(e.series,function(e){e.type===t.type&&(e.isDirty=!0)}),ye.prototype.remove.apply(t,arguments)}}),Nt.column=be,ee.bar=n(ee.column),xe=p(be,{type:"bar",inverted:!0}),Nt.bar=xe,ee.scatter=n(ie,{lineWidth:0,marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px;"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),xe=p(ye,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,kdDimensions:2,drawGraph:function(){this.options.lineWidth&&ye.prototype.drawGraph.call(this)}}),Nt.scatter=xe,ee.pie=n(ie,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return null===this.y?void 0: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}}),ie={type:"pie",isCartesian:!1,pointClass:p(ve,{init:function(){ve.prototype.init.apply(this,arguments);var t,e=this;return e.name=$t(e.name,"Slice"),t=function(t){e.slice("select"===t.type)},Yt(e,"select",t),Yt(e,"unselect",t),e},setVisible:function(t,e){var i=this,n=i.series,r=n.chart,o=n.options.ignoreHiddenPoint,e=$t(e,o);t!==i.visible&&(i.visible=i.options.visible=t=t===I?!i.visible:t,n.options.data[Ht(i,n.data)]=i.options,zt(["graphic","dataLabel","connector","shadowGroup"],function(e){i[e]&&i[e][t?"show":"hide"](!0)}),i.legendItem&&r.legend.colorizeItem(i,t),!t&&"hover"===i.state&&i.setState(""),o&&(n.isDirty=!0),e&&r.redraw())},slice:function(t,e,i){var n=this.series;P(i,n.chart),$t(e,!0),this.sliced=this.options.sliced=t=l(t)?t:!this.sliced,n.options.data[Ht(this,n.data)]=this.options,t=t?this.slicedTranslation:{translateX:0,translateY:0},this.graphic.animate(t),this.shadowGroup&&this.shadowGroup.animate(t)},haloPath:function(t){var e=this.shapeArgs,i=this.series.chart;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(i.plotLeft+e.x,i.plotTop+e.y,e.r+t,e.r+t,{innerR:this.shapeArgs.r,start:e.start,end:e.end})}}),requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},animate:function(t){var e=this,i=e.points,n=e.startAngleRad;t||(zt(i,function(t){var i=t.graphic,r=t.shapeArgs;i&&(i.attr({r:t.startR||e.center[3]/2,start:n,end:n}),i.animate({r:r.r,start:r.start,end:r.end},e.options.animation))}),e.animate=null)},updateTotals:function(){var t,e,i=0,n=this.points,r=n.length,o=this.options.ignoreHiddenPoint;for(t=0;t<r;t++)e=n[t],e.y<0&&(e.y=null),i+=o&&!e.visible?0:e.y;for(this.total=i,t=0;t<r;t++)e=n[t],e.percentage=i>0&&(e.visible||!o)?e.y/i*100:0,e.total=i},generatePoints:function(){ye.prototype.generatePoints.call(this),this.updateTotals()},translate:function(t){this.generatePoints();var e,i,n,r,o,a=0,s=this.options,l=s.slicedOffset,c=l+s.borderWidth,u=s.startAngle||0,h=this.startAngleRad=pt/180*(u-90),u=(this.endAngleRad=pt/180*($t(s.endAngle,u+360)-90))-h,d=this.points,f=s.dataLabels.distance,s=s.ignoreHiddenPoint,p=d.length;for(t||(this.center=t=this.getCenter()),this.getX=function(e,i){return n=ot.asin(ut((e-t[1])/(t[2]/2+f),1)),t[0]+(i?-1:1)*dt(n)*(t[2]/2+f)},r=0;r<p;r++)o=d[r],e=h+a*u,s&&!o.visible||(a+=o.percentage/100),i=h+a*u,o.shapeType="arc",o.shapeArgs={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:at(1e3*e)/1e3,end:at(1e3*i)/1e3},n=(i+e)/2,n>1.5*pt?n-=2*pt:n<-pt/2&&(n+=2*pt),o.slicedTranslation={translateX:at(dt(n)*l),translateY:at(ft(n)*l)},e=dt(n)*t[2]/2,i=ft(n)*t[2]/2,o.tooltipPos=[t[0]+.7*e,t[1]+.7*i],o.half=n<-pt/2||n>pt/2?1:0,o.angle=n,c=ut(c,f/2),o.labelPos=[t[0]+e+dt(n)*f,t[1]+i+ft(n)*f,t[0]+e+dt(n)*c,t[1]+i+ft(n)*c,t[0]+e,t[1]+i,f<0?"center":o.half?"right":"left",n]},drawGraph:null,drawPoints:function(){var t,e,i,n,r,o,a=this,s=a.chart.renderer,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=s.g("shadow").add(a.group)),zt(a.points,function(c){null!==c.y&&(e=c.graphic,r=c.shapeArgs,i=c.shadowGroup,n=c.pointAttr[c.selected?"select":""],n.stroke||(n.stroke=n.fill),l&&!i&&(i=c.shadowGroup=s.g("shadow").add(a.shadowGroup)),t=c.sliced?c.slicedTranslation:{translateX:0,translateY:0},i&&i.attr(t),e?e.setRadialReference(a.center).attr(n).animate(Jt(r,t)):(o={"stroke-linejoin":"round"},c.visible||(o.visibility="hidden"),c.graphic=e=s[c.shapeType](r).setRadialReference(a.center).attr(n).attr(o).attr(t).add(a.group).shadow(l,i)))})},searchPoint:_t,sortByAngle:function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},drawLegendSymbol:re.drawRectangle,getCenter:oe.getCenter,getSymbol:_t},ie=p(ye,ie),Nt.pie=ie,ye.prototype.drawDataLabels=function(){var t,e,i,r,o=this,a=o.options,s=a.cursor,c=a.dataLabels,u=o.points,h=o.hasRendered||0,d=$t(c.defer,!0),f=o.chart.renderer;(c.enabled||o._hasPointLabels)&&(o.dlProcessOptions&&o.dlProcessOptions(c),r=o.plotGroup("dataLabelsGroup","data-labels",d&&!h?"hidden":"visible",c.zIndex||6),d&&(r.attr({opacity:+h}),h||Yt(o,"afterAnimate",function(){o.visible&&r.show(!0),r[a.animation?"animate":"attr"]({opacity:1},{duration:200})})),e=c,zt(u,function(u){var h,d,p,g,m=u.dataLabel,y=u.connector,b=!0,x={};if(t=u.dlOptions||u.options&&u.options.dataLabels,h=$t(t&&t.enabled,e.enabled)&&null!==u.y,m&&!h)u.dataLabel=m.destroy();else if(h){if(c=n(e,t),g=c.style,h=c.rotation,d=u.getLabelConfig(),i=c.format?v(c.format,d):c.formatter.call(d,c),g.color=$t(c.color,g.color,o.color,"black"),m)l(i)?(m.attr({text:i}),b=!1):(u.dataLabel=m=m.destroy(),y&&(u.connector=y.destroy()));else if(l(i)){m={fill:c.backgroundColor,stroke:c.borderColor,"stroke-width":c.borderWidth,r:c.borderRadius||0,rotation:h,padding:c.padding,zIndex:1},"contrast"===g.color&&(x.color=c.inside||c.distance<0||a.stacking?f.getContrast(u.color||o.color):"#000000"),s&&(x.cursor=s);for(p in m)m[p]===I&&delete m[p];m=u.dataLabel=f[h?"text":"label"](i,0,-9999,c.shape,null,null,c.useHTML).attr(m).css(Jt(g,x)).add(r).shadow(c.shadow)}m&&o.alignDataLabel(u,m,c,null,b)}}))},ye.prototype.alignDataLabel=function(t,e,i,n,r){var o=this.chart,a=o.inverted,s=$t(t.plotX,-9999),l=$t(t.plotY,-9999),c=e.getBBox(),u=o.renderer.fontMetrics(i.style.fontSize).b,h=i.rotation,d=i.align,f=this.visible&&(t.series.forceDL||o.isInsidePlot(s,at(l),a)||n&&o.isInsidePlot(s,a?n.x+1:n.y+n.height-1,a)),p="justify"===$t(i.overflow,"justify");f&&(n=Jt({x:a?o.plotWidth-l:s,y:at(a?o.plotHeight-s:l),width:0,height:0},n),Jt(i,{width:c.width,height:c.height}),h?(p=!1,a=o.renderer.rotCorr(u,h),a={x:n.x+i.x+n.width/2+a.x,y:n.y+i.y+{top:0,middle:.5,bottom:1}[i.verticalAlign]*n.height},e[r?"attr":"animate"](a).attr({align:d}),s=(h+720)%360,s=s>180&&s<360,"left"===d?a.y-=s?c.height:0:"center"===d?(a.x-=c.width/2,a.y-=c.height/2):"right"===d&&(a.x-=c.width,a.y-=s?0:c.height)):(e.align(i,null,n),a=e.alignAttr),p?this.justifyDataLabel(e,i,a,c,n,r):$t(i.crop,!0)&&(f=o.isInsidePlot(a.x,a.y)&&o.isInsidePlot(a.x+c.width,a.y+c.height)),i.shape&&!h&&e.attr({anchorX:t.plotX,anchorY:t.plotY})),f||(Vt(e),e.attr({y:-9999}),e.placed=!1)},ye.prototype.justifyDataLabel=function(t,e,i,n,r,o){var a,s,l=this.chart,c=e.align,u=e.verticalAlign,h=t.box?0:t.padding||0;a=i.x+h,a<0&&("right"===c?e.align="left":e.x=-a,s=!0),a=i.x+n.width-h,a>l.plotWidth&&("left"===c?e.align="right":e.x=l.plotWidth-a,s=!0),a=i.y+h,a<0&&("bottom"===u?e.verticalAlign="top":e.y=-a,s=!0),a=i.y+n.height-h,a>l.plotHeight&&("top"===u?e.verticalAlign="bottom":e.y=l.plotHeight-a,s=!0),s&&(t.placed=!o,t.align(e,null,r))},Nt.pie&&(Nt.pie.prototype.drawDataLabels=function(){var t,e,i,n,r,o,a,s,l,c,u,h=this,d=h.data,f=h.chart,p=h.options.dataLabels,g=$t(p.connectorPadding,10),m=$t(p.connectorWidth,1),v=f.plotWidth,y=f.plotHeight,b=$t(p.softConnector,!0),x=p.distance,w=h.center,k=w[2]/2,T=w[1],O=x>0,P=[[],[]],C=[0,0,0,0],M=function(t,e){return e.y-t.y};if(h.visible&&(p.enabled||h._hasPointLabels)){for(ye.prototype.drawDataLabels.apply(h),zt(d,function(t){t.dataLabel&&t.visible&&(P[t.half].push(t),t.dataLabel._pos=null)}),c=2;c--;){var _,E=[],A=[],L=P[c],I=L.length;if(I){for(h.sortByAngle(L,c-.5),u=d=0;!d&&L[u];)d=L[u]&&L[u].dataLabel&&(L[u].dataLabel.getBBox().height||21),u++;if(x>0){for(r=ut(T+k+x,f.plotHeight),u=ct(0,T-k-x);u<=r;u+=d)E.push(u);if(r=E.length,I>r){for(t=[].concat(L),t.sort(M),u=I;u--;)t[u].rank=u;for(u=I;u--;)L[u].rank>=r&&L.splice(u,1);I=L.length}for(u=0;u<I;u++){t=L[u],o=t.labelPos,t=9999;var R,D;for(D=0;D<r;D++)R=ht(E[D]-o[1]),R<t&&(t=R,_=D);if(_<u&&null!==E[u])_=u;else for(r<I-u+_&&null!==E[u]&&(_=r-I+u);null===E[_];)_++;A.push({i:_,y:E[_]}),E[_]=null}A.sort(M)}for(u=0;u<I;u++)t=L[u],o=t.labelPos,n=t.dataLabel,l=t.visible===!1?"hidden":"inherit",t=o[1],x>0?(r=A.pop(),_=r.i,s=r.y,(t>s&&null!==E[_+1]||t<s&&null!==E[_-1])&&(s=ut(ct(0,t),f.plotHeight))):s=t,a=p.justify?w[0]+(c?-1:1)*(k+x):h.getX(s===T-k-x||s===T+k+x?t:s,c),n._attr={visibility:l,align:o[6]},n._pos={x:a+p.x+({left:g,right:-g}[o[6]]||0),y:s+p.y-10},n.connX=a,n.connY=s,null===this.options.size&&(r=n.width,a-r<g?C[3]=ct(at(r-a+g),C[3]):a+r>v-g&&(C[1]=ct(at(a+r-v+g),C[1])),s-d/2<0?C[0]=ct(at(-s+d/2),C[0]):s+d/2>y&&(C[2]=ct(at(s+d/2-y),C[2])))}}(0===S(C)||this.verifyDataLabelOverflow(C))&&(this.placeDataLabels(),O&&m&&zt(this.points,function(t){e=t.connector,o=t.labelPos,(n=t.dataLabel)&&n._pos&&t.visible?(l=n._attr.visibility,a=n.connX,s=n.connY,i=b?[It,a+("left"===o[6]?5:-5),s,"C",a,s,2*o[2]-o[4],2*o[3]-o[5],o[2],o[3],Rt,o[4],o[5]]:[It,a+("left"===o[6]?5:-5),s,Rt,o[2],o[3],Rt,o[4],o[5]],e?(e.animate({d:i}),e.attr("visibility",l)):t.connector=e=h.chart.renderer.path(i).attr({"stroke-width":m,stroke:p.connectorColor||t.color||"#606060",visibility:l}).add(h.dataLabelsGroup)):e&&(t.connector=e.destroy())}))}},Nt.pie.prototype.placeDataLabels=function(){zt(this.points,function(t){var e=t.dataLabel;e&&t.visible&&((t=e._pos)?(e.attr(e._attr),e[e.moved?"animate":"attr"](t),e.moved=!0):e&&e.attr({y:-9999}))})},Nt.pie.prototype.alignDataLabel=_t,Nt.pie.prototype.verifyDataLabelOverflow=function(t){var e,i=this.center,n=this.options,r=n.center,o=n.minSize||80,a=o;return null!==r[0]?a=ct(i[2]-ct(t[1],t[3]),o):(a=ct(i[2]-t[1]-t[3],o),i[0]+=(t[3]-t[1])/2),null!==r[1]?a=ct(ut(a,i[2]-ct(t[0],t[2])),o):(a=ct(ut(a,i[2]-t[0]-t[2]),o),i[1]+=(t[0]-t[2])/2),a<i[2]?(i[2]=a,i[3]=Math.min(/%$/.test(n.innerSize||0)?a*parseFloat(n.innerSize||0)/100:parseFloat(n.innerSize||0),a),this.translate(i),this.drawDataLabels&&this.drawDataLabels()):e=!0,e}),Nt.column&&(Nt.column.prototype.alignDataLabel=function(t,e,i,r,o){var a=this.chart.inverted,s=t.series,l=t.dlBox||t.shapeArgs,c=$t(t.below,t.plotY>$t(this.translatedThreshold,s.yAxis.len)),u=$t(i.inside,!!this.options.stacking);l&&(r=n(l),r.y<0&&(r.height+=r.y,r.y=0),l=r.y+r.height-s.yAxis.len,l>0&&(r.height-=l),a&&(r={x:s.yAxis.len-r.y-r.height,y:s.xAxis.len-r.x-r.width,width:r.height,height:r.width}),u||(a?(r.x+=c?0:r.width,r.width=0):(r.y+=c?r.height:0,r.height=0))),i.align=$t(i.align,!a||u?"center":c?"right":"left"),i.verticalAlign=$t(i.verticalAlign,a||u?"middle":c?"top":"bottom"),ye.prototype.alignDataLabel.call(this,t,e,i,r,o)}),function(t){var e=t.Chart,i=t.each,n=t.pick,r=t.addEvent;e.prototype.callbacks.push(function(t){function e(){var e=[];i(t.series,function(t){var r=t.options.dataLabels,o=t.dataLabelCollections||["dataLabel"];(r.enabled||t._hasPointLabels)&&!r.allowOverlap&&t.visible&&i(o,function(r){i(t.points,function(t){t[r]&&(t[r].labelrank=n(t.labelrank,t.shapeArgs&&t.shapeArgs.height),e.push(t[r]))})})}),t.hideOverlappingLabels(e)}e(),r(t,"redraw",e)}),e.prototype.hideOverlappingLabels=function(t){var e,n,r,o,a,s,l,c,u,h=t.length;for(n=0;n<h;n++)(e=t[n])&&(e.oldOpacity=e.opacity,e.newOpacity=1);for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),n=0;n<h;n++)for(r=t[n],e=n+1;e<h;++e)o=t[e],r&&o&&r.placed&&o.placed&&0!==r.newOpacity&&0!==o.newOpacity&&(a=r.alignAttr,s=o.alignAttr,l=r.parentGroup,c=o.parentGroup,u=2*(r.box?0:r.padding),a=!(s.x+c.translateX>a.x+l.translateX+(r.width-u)||s.x+c.translateX+(o.width-u)<a.x+l.translateX||s.y+c.translateY>a.y+l.translateY+(r.height-u)||s.y+c.translateY+(o.height-u)<a.y+l.translateY))&&((r.labelrank<o.labelrank?r:o).newOpacity=0);i(t,function(t){var e,i;t&&(i=t.newOpacity,t.oldOpacity!==i&&t.placed&&(i?t.show(!0):e=function(){t.hide()},t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,e)),t.isOld=!0)})}}(nt),ie=nt.TrackerMixin={drawTrackerPoint:function(){var t=this,e=t.chart,i=e.pointer,n=t.options.cursor,r=n&&{cursor:n},o=function(t){for(var i,n=t.target;n&&!i;)i=n.point,n=n.parentNode;i!==I&&i!==e.hoverPoint&&i.onMouseOver(t)};zt(t.points,function(t){t.graphic&&(t.graphic.element.point=t),t.dataLabel&&(t.dataLabel.element.point=t)}),t._hasTracking||(zt(t.trackerGroups,function(e){t[e]&&(t[e].addClass("highcharts-tracker").on("mouseover",o).on("mouseout",function(t){i.onTrackerMouseOut(t)}).css(r),D)&&t[e].on("touchstart",o)}),t._hasTracking=!0)},drawTrackerGraph:function(){var t=this,e=t.options,i=e.trackByArea,n=[].concat(i?t.areaPath:t.graphPath),r=n.length,o=t.chart,a=o.pointer,s=o.renderer,l=o.options.tooltip.snap,c=t.tracker,u=e.cursor,h=u&&{cursor:u},d=function(){o.hoverSeries!==t&&t.onMouseOver()},f="rgba(192,192,192,"+(Tt?1e-4:.002)+")";if(r&&!i)for(u=r+1;u--;)n[u]===It&&n.splice(u+1,0,n[u+1]-l,n[u+2],Rt),(u&&n[u]===It||u===r)&&n.splice(u,0,Rt,n[u-2]+l,n[u-1]);c?c.attr({d:n}):(t.tracker=s.path(n).attr({"stroke-linejoin":"round",visibility:t.visible?"visible":"hidden",stroke:f,fill:i?f:"none","stroke-width":e.lineWidth+(i?0:2*l),zIndex:2}).add(t.group),zt([t.tracker,t.markerGroup],function(t){t.addClass("highcharts-tracker").on("mouseover",d).on("mouseout",function(t){a.onTrackerMouseOut(t)}).css(h),D&&t.on("touchstart",d)}))}},Nt.column&&(be.prototype.drawTracker=ie.drawTrackerPoint),Nt.pie&&(Nt.pie.prototype.drawTracker=ie.drawTrackerPoint),Nt.scatter&&(xe.prototype.drawTracker=ie.drawTrackerPoint),Jt(ge.prototype,{setItemEvents:function(t,e,i,n,r){var o=this;(i?e:t.legendGroup).on("mouseover",function(){t.setState("hover"),e.css(o.options.itemHoverStyle)}).on("mouseout",function(){e.css(t.visible?n:r),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible()},e={browserEvent:e};t.firePointEvent?t.firePointEvent("legendItemClick",e,i):Ut(t,"legendItemClick",e,i)})},createCheckboxForItem:function(t){t.checkbox=f("input",{type:"checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),Yt(t.checkbox,"click",function(e){Ut(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})}}),N.legend.itemStyle.cursor="pointer",Jt(me.prototype,{showResetZoom:function(){var t=this,e=N.lang,i=t.options.chart.resetZoomButton,n=i.theme,r=n.states,o="chart"===i.relativeTo?null:"plotBox";this.resetZoomButton=t.renderer.button(e.resetZoom,null,null,function(){t.zoomOut()},n,r&&r.hover).attr({align:i.position.align,title:e.resetZoomTitle}).add().align(i.position,!1,o)},zoomOut:function(){var t=this;Ut(t,"selection",{resetSelection:!0},function(){t.zoom()})},zoom:function(t){var e,i,n=this.pointer,r=!1;!t||t.resetSelection?zt(this.axes,function(t){e=t.zoom()}):zt(t.xAxis.concat(t.yAxis),function(t){var i=t.axis,o=i.isXAxis;(n[o?"zoomX":"zoomY"]||n[o?"pinchX":"pinchY"])&&(e=i.zoom(t.min,t.max),i.displayBtn&&(r=!0))}),i=this.resetZoomButton,r&&!i?this.showResetZoom():!r&&Qt(i)&&(this.resetZoomButton=i.destroy()),e&&this.redraw($t(this.options.chart.animation,t&&t.animation,this.pointCount<100))},pan:function(t,e){var i,n=this,r=n.hoverPoints;r&&zt(r,function(t){t.setState()}),zt("xy"===e?[1,0]:[1],function(e){var e=n[e?"xAxis":"yAxis"][0],r=e.horiz,o=t[r?"chartX":"chartY"],r=r?"mouseDownX":"mouseDownY",a=n[r],s=(e.pointRange||0)/2,l=e.getExtremes(),c=e.toValue(a-o,!0)+s,s=e.toValue(a+e.len-o,!0)-s,a=a>o;e.series.length&&(a||c>ut(l.dataMin,l.min))&&(!a||s<ct(l.dataMax,l.max))&&(e.setExtremes(c,s,!1,!1,{trigger:"pan"}),i=!0),n[r]=o}),i&&n.redraw(!1),d(n.container,{cursor:"move"})}}),Jt(ve.prototype,{select:function(t,e){var i=this,n=i.series,r=n.chart,t=$t(t,!i.selected);i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,n.options.data[Ht(i,n.data)]=i.options,i.setState(t&&"select"),e||zt(r.getSelectedPoints(),function(t){t.selected&&t!==i&&(t.selected=t.options.selected=!1,n.options.data[Ht(t,n.data)]=t.options,t.setState(""),t.firePointEvent("unselect"))})})},onMouseOver:function(t,e){var i=this.series,n=i.chart,r=n.tooltip,o=n.hoverPoint;n.hoverSeries!==i&&i.onMouseOver(),o&&o!==this&&o.onMouseOut(),this.series&&(this.firePointEvent("mouseOver"),r&&(!r.shared||i.noSharedTooltip)&&r.refresh(this,t),this.setState("hover"),!e)&&(n.hoverPoint=this)},onMouseOut:function(){var t=this.series.chart,e=t.hoverPoints;this.firePointEvent("mouseOut"),e&&Ht(this,e)!==-1||(this.setState(),t.hoverPoint=null)},importEvents:function(){if(!this.hasImportedEvents){var t,e=n(this.series.options.point,this.options).events;this.events=e;for(t in e)Yt(this,t,e[t]);this.hasImportedEvents=!0}},setState:function(t,e){var i,r=st(this.plotX),o=this.plotY,a=this.series,s=a.options.states,l=ee[a.type].marker&&a.options.marker,c=l&&!l.enabled,u=l&&l.states[t],h=u&&u.enabled===!1,d=a.stateMarkerGraphic,f=this.marker||{},p=a.chart,g=a.halo,t=t||"";i=this.pointAttr[t]||a.pointAttr[t],t===this.state&&!e||this.selected&&"select"!==t||s[t]&&s[t].enabled===!1||t&&(h||c&&u.enabled===!1)||t&&f.states&&f.states[t]&&f.states[t].enabled===!1||(this.graphic?(l=l&&this.graphic.symbolName&&i.r,this.graphic.attr(n(i,l?{x:r-l,y:o-l,width:2*l,height:2*l}:{})),d&&d.hide()):(t&&u&&(l=u.radius,f=f.symbol||a.symbol,d&&d.currentSymbol!==f&&(d=d.destroy()),d?d[e?"animate":"attr"]({x:r-l,y:o-l}):f&&(a.stateMarkerGraphic=d=p.renderer.symbol(f,r-l,o-l,2*l,2*l).attr(i).add(a.markerGroup),d.currentSymbol=f)),d&&(d[t&&p.isInsidePlot(r,o,p.inverted)?"show":"hide"](),d.element.point=this)),(r=s[t]&&s[t].halo)&&r.size?(g||(a.halo=g=p.renderer.path().add(p.seriesGroup)),g.attr(Jt({fill:this.color||a.color,"fill-opacity":r.opacity,zIndex:-1},r.attributes))[e?"animate":"attr"]({d:this.haloPath(r.size)})):g&&g.attr({d:[]}),this.state=t)},haloPath:function(t){var e=this.series,i=e.chart,n=e.getPlotBox(),r=i.inverted,o=Math.floor(this.plotX);return i.renderer.symbols.circle(n.translateX+(r?e.yAxis.len-this.plotY:o)-t,n.translateY+(r?e.xAxis.len-o:this.plotY)-t,2*t,2*t)}}),Jt(ye.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&Ut(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,n=e.hoverPoint;e.hoverSeries=null,n&&n.onMouseOut(),this&&t.events.mouseOut&&Ut(this,"mouseOut"),i&&!t.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),this.setState()},setState:function(t){var e=this.options,i=this.graph,n=e.states,r=e.lineWidth,e=0,t=t||"";if(this.state!==t&&(this.state=t,!(n[t]&&n[t].enabled===!1)&&(t&&(r=n[t].lineWidth||r+(n[t].lineWidthPlus||0)),i&&!i.dashstyle)))for(t={"stroke-width":r},i.attr(t);this["zoneGraph"+e];)this["zoneGraph"+e].attr(t),e+=1},setVisible:function(t,e){var i,n=this,r=n.chart,o=n.legendItem,a=r.options.chart.ignoreHiddenSeries,s=n.visible;i=(n.visible=t=n.options.visible=n.userOptions.visible=void 0===t?!s:t)?"show":"hide",zt(["group","dataLabelsGroup","markerGroup","tracker"],function(t){n[t]&&n[t][i]()}),r.hoverSeries!==n&&(r.hoverPoint&&r.hoverPoint.series)!==n||n.onMouseOut(),o&&r.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&zt(r.series,function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),zt(n.linkedSeries,function(e){e.setVisible(t,!1)}),a&&(r.isDirtyBox=!0),e!==!1&&r.redraw(),Ut(n,i)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=t===I?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),Ut(this,t?"select":"unselect")},drawTracker:ie.drawTrackerGraph}),Jt(nt,{Color:_,Point:ve,Tick:A,Renderer:R,SVGElement:E,SVGRenderer:ne,arrayMin:w,arrayMax:S,charts:Et,correctFloat:O,dateFormat:B,error:e,format:v,pathAnim:void 0,getOptions:function(){return N},hasBidiBug:Ot,isTouchDevice:St,setOptions:function(t){return N=n(!0,N,t),M(),N},addEvent:Yt,removeEvent:Gt,createElement:f,discardElement:T,css:d,each:zt,map:Ft,merge:n,splat:u,stableSort:x,extendClass:p,pInt:r,svg:Tt,canvas:Pt,vml:!Tt&&!Pt,product:"Highcharts",version:"4.2.7"}),nt})},function(t,e){},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=i(1),c=n(l),u=i(205),h=n(u),d=i(184),f=n(d),p=i(189),g=n(p),m=i(198),v=n(m),y=i(199),b=n(y),x=i(200),w=n(x),S=function(t){function e(t){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.state={data:{hpid:0,subCompanyId:1,hpCss:"",areaElements:[]}},window.hpIsSort=!1,i}return a(e,t),s(e,[{key:"componentWillMount",value:function(){var t=this.props.params.hpid,e=this.props.params.subCompanyId;this.loadData(t,e,null)}},{key:"componentDidMount",value:function(){window.reloadHomepage=this.reloadHomepage.bind(this);var t=this,e=this.refs["drag-container"];(0,h.default)([e]).on("out",function(){window.hpIsSort=!0;for(var e=document.querySelectorAll("#itemList .item"),i=[],n=0;n<e.length;n++){var r=e[n].getAttribute("data-eid");i.push(r)}var o=i.join(","),a=t.state.data.hpid,s=t.state.data.subCompanyId;MoveEleData(a,s,o)})}},{key:"loadData",value:function(t,e,i){var n=this,r="/page/interfaces/mobile/homepageInterface.jsp?hpid="+t+"&subCompanyId="+e;fetch(r+"&"+(new Date).getTime(),{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8","X-Requested-With":"XMLHttpRequest"},credentials:"include"}).then(function(t){t.ok?t.json().then(function(t){var e=t.hpid,r=localStorage.getItem("hp_"+e);if(r){var o=JSON.parse(r);o.hpInfo=t,localStorage.setItem("hp_"+e,JSON.stringify(o))}else localStorage.setItem("hp_"+e,JSON.stringify({hpInfo:t}));n.setState({data:t}),i&&"function"==typeof i&&i()}):console.log("Looks like the response wasn't perfect, got status",t.status)}).catch(function(t){return console.log("Fetch failed!",t);
})}},{key:"reloadHomepage",value:function(t,e,i){window.hpIsSort&&(window.hpIsSort=!1,this.setState({data:{hpid:t,subCompanyId:e,hpCss:"",areaElements:[]}}));var n=JSON.parse(localStorage.getItem("hp_"+t));n&&this.setState({data:n.hpInfo}),this.loadData(t,e,i)}},{key:"render",value:function(){var t=this.state.data.hpCss;document.getElementById("hpStyle").innerHTML=t;var e=this.state.data.hpid,i=this.state.data.areaElements.map(function(t,i){var n=void 0,r=t.item.eid,o=t.item.ebaseid;switch(o){case"mobilePicture":n=c.default.createElement(b.default,{ref:"item_"+r,hpid:e,eid:r,item:t.item,header:t.header,tabs:t.tabs});break;case"29":n=c.default.createElement(v.default,{ref:"item_"+r,hpid:e,eid:r,item:t.item,header:t.header,tabs:t.tabs});break;case"7":n=c.default.createElement(g.default,{ref:"item_"+r,hpid:e,eid:r,item:t.item,header:t.header,tabs:t.tabs});break;case"8":n=c.default.createElement(f.default,{ref:"item_"+r,hpid:e,eid:r,item:t.item,header:t.header,tabs:t.tabs});break;case"reportForm":n=c.default.createElement(w.default,{ref:"item_"+r,hpid:e,eid:r,item:t.item,header:t.header,tabs:t.tabs})}return c.default.createElement("div",{key:i,className:"item","data-eid":r,onClick:function(t){t.stopPropagation(),onSetting(r,o)}},n,c.default.createElement("div",{className:"item-close",title:"删除元素",onClick:function(t){t.stopPropagation(),onDel(r)}}))});return c.default.createElement("div",{id:"homepage-container"},c.default.createElement("div",{id:"itemList",ref:"drag-container"},i))}}]),e}(l.Component);t.exports=S},function(t,e,i){"use strict";function n(){function t(t){e(t),o(t.getElementsByTagName("*")).forEach(e)}function e(t){t.removeAttribute("data-reactid")}return r.apply(this,o(arguments)).on("cloned",t)}var r=i(206),o=i(208);t.exports=n},function(t,e,i){(function(e){"use strict";function n(t,e){function i(t){return ut.containers.indexOf(t)!==-1||ct.isContainer(t)}function n(t){var e=t?"remove":"add";r(k,e,"mousedown",O),r(k,e,"mouseup",R)}function s(t){var e=t?"remove":"add";r(k,e,"mousemove",P)}function g(t){var e=t?"remove":"add";x[e](k,"selectstart",T),x[e](k,"click",T)}function v(){n(!0),R({})}function T(t){st&&t.preventDefault()}function O(t){et=t.clientX,it=t.clientY;var e=1!==o(t)||t.metaKey||t.ctrlKey;if(!e){var i=t.target,n=C(i);n&&(st=n,s(),"mousedown"===t.type&&(p(i)?i.focus():t.preventDefault()))}}function P(t){if(st){if(0===o(t))return void R({});if(void 0===t.clientX||t.clientX!==et||void 0===t.clientY||t.clientY!==it){if(ct.ignoreInputTextSelection){var e=y("clientX",t),i=y("clientY",t),n=S.elementFromPoint(e,i);if(p(n))return}var r=st;s(!0),g(),L(),E(r);var l=a(Z);$=y("pageX",t)-l.left,tt=y("pageY",t)-l.top,w.add(ot||Z,"gu-transit"),Y(),W(t)}}}function C(t){if(!(ut.dragging&&J||i(t))){for(var e=t;f(t)&&i(f(t))===!1;){if(ct.invalid(t,e))return;if(t=f(t),!t)return}var n=f(t);if(n&&!ct.invalid(t,e)){var r=ct.moves(t,n,e,m(t));if(r)return{item:t,source:n}}}}function M(t){return!!C(t)}function _(t){var e=C(t);e&&E(e)}function E(t){V(t.item,t.source)&&(ot=t.item.cloneNode(!0),ut.emit("cloned",ot,t.item,"copy")),Q=t.source,Z=t.item,nt=rt=m(t.item),ut.dragging=!0,ut.emit("drag",Z,Q)}function A(){return!1}function L(){if(ut.dragging){var t=ot||Z;D(t,f(t))}}function I(){st=!1,s(!0),g(!0)}function R(t){if(I(),ut.dragging){var e=ot||Z,i=y("clientX",t),n=y("clientY",t),r=l(J,i,n),o=z(r,i,n);o&&(ot&&ct.copySortSource||!ot||o!==Q)?D(e,o):ct.removeOnSpill?j():N()}}function D(t,e){var i=f(t);ot&&ct.copySortSource&&e===Q&&i.removeChild(Z),H(e)?ut.emit("cancel",t,Q,Q):ut.emit("drop",t,e,Q,rt),B()}function j(){if(ut.dragging){var t=ot||Z,e=f(t);e&&e.removeChild(t),ut.emit(ot?"cancel":"remove",t,e,Q),B()}}function N(t){if(ut.dragging){var e=arguments.length>0?t:ct.revertOnSpill,i=ot||Z,n=f(i),r=H(n);r===!1&&e&&(ot?n&&n.removeChild(ot):Q.insertBefore(i,nt)),r||e?ut.emit("cancel",i,Q,Q):ut.emit("drop",i,n,Q,rt),B()}}function B(){var t=ot||Z;I(),G(),t&&w.rm(t,"gu-transit"),at&&clearTimeout(at),ut.dragging=!1,lt&&ut.emit("out",t,lt,Q),ut.emit("dragend",t),Q=Z=ot=nt=rt=at=lt=null}function H(t,e){var i;return i=void 0!==e?e:J?rt:m(ot||Z),t===Q&&i===nt}function z(t,e,n){function r(){var r=i(o);if(r===!1)return!1;var a=U(o,t),s=q(o,a,e,n),l=H(o,s);return!!l||ct.accepts(Z,o,Q,s)}for(var o=t;o&&!r();)o=f(o);return o}function W(t){function e(t){ut.emit(t,c,lt,Q)}function i(){d&&e("over")}function n(){lt&&e("out")}if(J){t.preventDefault();var r=y("clientX",t),o=y("clientY",t),a=r-$,s=o-tt;J.style.left=a+"px",J.style.top=s+"px";var c=ot||Z,u=l(J,r,o),h=z(u,r,o),d=null!==h&&h!==lt;(d||null===h)&&(n(),lt=h,i());var p=f(c);if(h===Q&&ot&&!ct.copySortSource)return void(p&&p.removeChild(c));var g,v=U(h,u);if(null!==v)g=q(h,v,r,o);else{if(ct.revertOnSpill!==!0||ot)return void(ot&&p&&p.removeChild(c));g=nt,h=Q}(null===g&&d||g!==c&&g!==m(c))&&(rt=g,h.insertBefore(c,g),ut.emit("shadow",c,h,Q))}}function X(t){w.rm(t,"gu-hide")}function F(t){ut.dragging&&w.add(t,"gu-hide")}function Y(){if(!J){var t=Z.getBoundingClientRect();J=Z.cloneNode(!0),J.style.width=h(t)+"px",J.style.height=d(t)+"px",w.rm(J,"gu-transit"),w.add(J,"gu-mirror"),ct.mirrorContainer.appendChild(J),r(k,"add","mousemove",W),w.add(ct.mirrorContainer,"gu-unselectable"),ut.emit("cloned",J,Z,"mirror")}}function G(){J&&(w.rm(ct.mirrorContainer,"gu-unselectable"),r(k,"remove","mousemove",W),f(J).removeChild(J),J=null)}function U(t,e){for(var i=e;i!==t&&f(i)!==t;)i=f(i);return i===k?null:i}function q(t,e,i,n){function r(){var e,r,o,a=t.children.length;for(e=0;e<a;e++){if(r=t.children[e],o=r.getBoundingClientRect(),s&&o.left+o.width/2>i)return r;if(!s&&o.top+o.height/2>n)return r}return null}function o(){var t=e.getBoundingClientRect();return a(s?i>t.left+h(t)/2:n>t.top+d(t)/2)}function a(t){return t?m(e):e}var s="horizontal"===ct.direction,l=e!==t?o():r();return l}function V(t,e){return"boolean"==typeof ct.copy?ct.copy:ct.copy(t,e)}var K=arguments.length;1===K&&Array.isArray(t)===!1&&(e=t,t=[]);var J,Q,Z,$,tt,et,it,nt,rt,ot,at,st,lt=null,ct=e||{};void 0===ct.moves&&(ct.moves=u),void 0===ct.accepts&&(ct.accepts=u),void 0===ct.invalid&&(ct.invalid=A),void 0===ct.containers&&(ct.containers=t||[]),void 0===ct.isContainer&&(ct.isContainer=c),void 0===ct.copy&&(ct.copy=!1),void 0===ct.copySortSource&&(ct.copySortSource=!1),void 0===ct.revertOnSpill&&(ct.revertOnSpill=!1),void 0===ct.removeOnSpill&&(ct.removeOnSpill=!1),void 0===ct.direction&&(ct.direction="vertical"),void 0===ct.ignoreInputTextSelection&&(ct.ignoreInputTextSelection=!0),void 0===ct.mirrorContainer&&(ct.mirrorContainer=S.body);var ut=b({containers:ct.containers,start:_,end:L,cancel:N,remove:j,destroy:v,canMove:M,dragging:!1});return ct.removeOnSpill===!0&&ut.on("over",X).on("out",F),n(),ut}function r(t,i,n,r){var o={mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"},a={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},s={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};e.navigator.pointerEnabled?x[i](t,a[n],r):e.navigator.msPointerEnabled?x[i](t,s[n],r):(x[i](t,o[n],r),x[i](t,n,r))}function o(t){if(void 0!==t.touches)return t.touches.length;if(void 0!==t.which&&0!==t.which)return t.which;if(void 0!==t.buttons)return t.buttons;var e=t.button;return void 0!==e?1&e?1:2&e?3:4&e?2:0:void 0}function a(t){var e=t.getBoundingClientRect();return{left:e.left+s("scrollLeft","pageXOffset"),top:e.top+s("scrollTop","pageYOffset")}}function s(t,i){return"undefined"!=typeof e[i]?e[i]:k.clientHeight?k[t]:S.body[t]}function l(t,e,i){var n,r=t||{},o=r.className;return r.className+=" gu-hide",n=S.elementFromPoint(e,i),r.className=o,n}function c(){return!1}function u(){return!0}function h(t){return t.width||t.right-t.left}function d(t){return t.height||t.bottom-t.top}function f(t){return t.parentNode===S?null:t.parentNode}function p(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||g(t)}function g(t){return!!t&&("false"!==t.contentEditable&&("true"===t.contentEditable||g(f(t))))}function m(t){function e(){var e=t;do e=e.nextSibling;while(e&&1!==e.nodeType);return e}return t.nextElementSibling||e()}function v(t){return t.targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t}function y(t,e){var i=v(e),n={pageX:"clientX",pageY:"clientY"};return t in n&&!(t in i)&&n[t]in i&&(t=n[t]),i[t]}var b=i(207),x=i(214),w=i(217),S=document,k=S.documentElement;t.exports=n}).call(e,function(){return this}())},function(t,e,i){"use strict";var n=i(208),r=i(209);t.exports=function(t,e){var i=e||{},o={};return void 0===t&&(t={}),t.on=function(e,i){return o[e]?o[e].push(i):o[e]=[i],t},t.once=function(e,i){return i._once=!0,t.on(e,i),t},t.off=function(e,i){var n=arguments.length;if(1===n)delete o[e];else if(0===n)o={};else{var r=o[e];if(!r)return t;r.splice(r.indexOf(i),1)}return t},t.emit=function(){var e=n(arguments);return t.emitterSnapshot(e.shift()).apply(this,e)},t.emitterSnapshot=function(e){var a=(o[e]||[]).slice(0);return function(){var o=n(arguments),s=this||t;if("error"===e&&i.throws!==!1&&!a.length)throw 1===o.length?o[0]:o;return a.forEach(function(n){i.async?r(n,o,s):n.apply(s,o),n._once&&t.off(e,n)}),t}},t}},function(t,e){t.exports=function(t,e){return Array.prototype.slice.call(t,e)}},function(t,e,i){"use strict";var n=i(210);t.exports=function(t,e,i){t&&n(function(){t.apply(i||null,e||[])})}},function(t,e,i){(function(e){var i,n="function"==typeof e;i=n?function(t){e(t)}:function(t){setTimeout(t,0)},t.exports=i}).call(e,i(211).setImmediate)},function(t,e,i){(function(t){function n(t,e){this._id=t,this._clearFn=e}var r="undefined"!=typeof t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;e.setTimeout=function(){return new n(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new n(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},i(212),e.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof t&&t.clearImmediate||this&&this.clearImmediate}).call(e,function(){return this}())},function(t,e,i){(function(t,e){!function(t,i){"use strict";function n(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var n={callback:t,args:e};return g[p]=n,f(p),p++}function r(t){delete g[t]}function o(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(i,n)}}function a(t){if(m)setTimeout(a,0,t);else{var e=g[t];if(e){m=!0;try{o(e)}finally{r(t),m=!1}}}}function s(){f=function(t){e.nextTick(function(){a(t)})}}function l(){if(t.postMessage&&!t.importScripts){var e=!0,i=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=i,e}}function c(){var e="setImmediate$"+Math.random()+"$",i=function(i){i.source===t&&"string"==typeof i.data&&0===i.data.indexOf(e)&&a(+i.data.slice(e.length))};t.addEventListener?t.addEventListener("message",i,!1):t.attachEvent("onmessage",i),f=function(i){t.postMessage(e+i,"*")}}function u(){var t=new MessageChannel;t.port1.onmessage=function(t){var e=t.data;a(e)},f=function(e){t.port2.postMessage(e)}}function h(){var t=v.documentElement;f=function(e){var i=v.createElement("script");i.onreadystatechange=function(){a(e),i.onreadystatechange=null,t.removeChild(i),i=null},t.appendChild(i)}}function d(){f=function(t){setTimeout(a,0,t)}}if(!t.setImmediate){var f,p=1,g={},m=!1,v=t.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(t);y=y&&y.setTimeout?y:t,"[object process]"==={}.toString.call(t.process)?s():l()?c():t.MessageChannel?u():v&&"onreadystatechange"in v.createElement("script")?h():d(),y.setImmediate=n,y.clearImmediate=r}}("undefined"==typeof self?"undefined"==typeof t?this:t:self)}).call(e,function(){return this}(),i(213))},function(t,e){function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function r(t){if(u===setTimeout)return setTimeout(t,0);if((u===i||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function o(t){if(h===clearTimeout)return clearTimeout(t);if((h===n||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function a(){g&&f&&(g=!1,f.length?p=f.concat(p):m=-1,p.length&&s())}function s(){if(!g){var t=r(a);g=!0;for(var e=p.length;e;){for(f=p,p=[];++m<e;)f&&f[m].run();m=-1,e=p.length}f=null,g=!1,o(t)}}function l(t,e){this.fun=t,this.array=e}function c(){}var u,h,d=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:i}catch(t){u=i}try{h="function"==typeof clearTimeout?clearTimeout:n}catch(t){h=n}}();var f,p=[],g=!1,m=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];p.push(new l(t,e)),1!==p.length||g||r(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(t,e,i){(function(e){"use strict";function n(t,e,i,n){return t.addEventListener(e,i,n)}function r(t,e,i){return t.attachEvent("on"+e,c(t,e,i))}function o(t,e,i,n){return t.removeEventListener(e,i,n)}function a(t,e,i){var n=u(t,e,i);if(n)return t.detachEvent("on"+e,n)}function s(t,e,i){function n(){var t;return p.createEvent?(t=p.createEvent("Event"),t.initEvent(e,!0,!0)):p.createEventObject&&(t=p.createEventObject()),t}function r(){return new d(e,{detail:i})}var o=f.indexOf(e)===-1?r():n();t.dispatchEvent?t.dispatchEvent(o):t.fireEvent("on"+e,o)}function l(t,i,n){return function(i){var r=i||e.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,n.call(t,r)}}function c(t,e,i){var n=u(t,e,i)||l(t,e,i);return v.push({wrapper:n,element:t,type:e,fn:i}),n}function u(t,e,i){var n=h(t,e,i);if(n){var r=v[n].wrapper;return v.splice(n,1),r}}function h(t,e,i){var n,r;for(n=0;n<v.length;n++)if(r=v[n],r.element===t&&r.type===e&&r.fn===i)return n}var d=i(215),f=i(216),p=e.document,g=n,m=o,v=[];e.addEventListener||(g=r,m=a),t.exports={add:g,remove:m,fabricate:s}}).call(e,function(){return this}())},function(t,e){(function(e){function i(){try{var t=new n("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}var n=e.CustomEvent;t.exports=i()?n:"function"==typeof document.createEvent?function(t,e){var i=document.createEvent("CustomEvent");return e?i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):i.initCustomEvent(t,!1,!1,void 0),i}:function(t,e){var i=document.createEventObject();return i.type=t,e?(i.bubbles=Boolean(e.bubbles),i.cancelable=Boolean(e.cancelable),i.detail=e.detail):(i.bubbles=!1,i.cancelable=!1,i.detail=void 0),i}}).call(e,function(){return this}())},function(t,e){(function(e){"use strict";var i=[],n="",r=/^on/;for(n in e)r.test(n)&&i.push(n.slice(2));t.exports=i}).call(e,function(){return this}())},function(t,e){"use strict";function i(t){var e=o[t];return e?e.lastIndex=0:o[t]=e=new RegExp(a+t+s,"g"),e}function n(t,e){var n=t.className;n.length?i(e).test(n)||(t.className+=" "+e):t.className=e}function r(t,e){t.className=t.className.replace(i(e)," ").trim()}var o={},a="(?:^|\\s)",s="(?:\\s|$)";t.exports={add:n,rm:r}}]);