UNPKG

@jpmorganchase/perspective-examples

Version:
1 lines 369 kB
!function(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory():"function"==typeof define&&define.amd?define([],factory):"object"==typeof exports?exports["perspective-view-highcharts"]=factory():root["perspective-view-highcharts"]=factory()}("undefined"!=typeof self?self:this,function(){return function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=46)}([function(module,exports){var core=module.exports={version:"2.5.3"};"number"==typeof __e&&(__e=core)},function(module,exports,__webpack_require__){var store=__webpack_require__(30)("wks"),uid=__webpack_require__(31),Symbol=__webpack_require__(2).Symbol,USE_SYMBOL="function"==typeof Symbol;(module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)("Symbol."+name))}).store=store},function(module,exports){var global=module.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=global)},function(module,exports,__webpack_require__){var isObject=__webpack_require__(7);module.exports=function(it){if(!isObject(it))throw TypeError(it+" is not an object!");return it}},function(module,exports,__webpack_require__){var global=__webpack_require__(2),core=__webpack_require__(0),ctx=__webpack_require__(9),hide=__webpack_require__(5),$export=function(type,name,source){var key,own,out,IS_FORCED=type&$export.F,IS_GLOBAL=type&$export.G,IS_STATIC=type&$export.S,IS_PROTO=type&$export.P,IS_BIND=type&$export.B,IS_WRAP=type&$export.W,exports=IS_GLOBAL?core:core[name]||(core[name]={}),expProto=exports.prototype,target=IS_GLOBAL?global:IS_STATIC?global[name]:(global[name]||{}).prototype;IS_GLOBAL&&(source=name);for(key in source)(own=!IS_FORCED&&target&&void 0!==target[key])&&key in exports||(out=own?target[key]:source[key],exports[key]=IS_GLOBAL&&"function"!=typeof target[key]?source[key]:IS_BIND&&own?ctx(out,global):IS_WRAP&&target[key]==out?function(C){var F=function(a,b,c){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(a);case 2:return new C(a,b)}return new C(a,b,c)}return C.apply(this,arguments)};return F.prototype=C.prototype,F}(out):IS_PROTO&&"function"==typeof out?ctx(Function.call,out):out,IS_PROTO&&((exports.virtual||(exports.virtual={}))[key]=out,type&$export.R&&expProto&&!expProto[key]&&hide(expProto,key,out)))};$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128,module.exports=$export},function(module,exports,__webpack_require__){var dP=__webpack_require__(11),createDesc=__webpack_require__(27);module.exports=__webpack_require__(8)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){return object[key]=value,object}},function(module,exports){module.exports={}},function(module,exports){module.exports=function(it){return"object"==typeof it?null!==it:"function"==typeof it}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(10);module.exports=function(fn,that,length){if(aFunction(fn),void 0===that)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports){module.exports=function(it){if("function"!=typeof it)throw TypeError(it+" is not a function!");return it}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(3),IE8_DOM_DEFINE=__webpack_require__(51),toPrimitive=__webpack_require__(52),dP=Object.defineProperty;exports.f=__webpack_require__(8)?Object.defineProperty:function(O,P,Attributes){if(anObject(O),P=toPrimitive(P,!0),anObject(Attributes),IE8_DOM_DEFINE)try{return dP(O,P,Attributes)}catch(e){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported!");return"value"in Attributes&&(O[P]=Attributes.value),O}},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return!0}}},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(7),document=__webpack_require__(2).document,is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(54),enumBugKeys=__webpack_require__(32);module.exports=Object.keys||function(O){return $keys(O,enumBugKeys)}},function(module,exports,__webpack_require__){var IObject=__webpack_require__(28),defined=__webpack_require__(18);module.exports=function(it){return IObject(defined(it))}},function(module,exports){module.exports=function(it){if(void 0==it)throw TypeError("Can't call method on "+it);return it}},function(module,exports){var ceil=Math.ceil,floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}},function(module,exports,__webpack_require__){var shared=__webpack_require__(30)("keys"),uid=__webpack_require__(31);module.exports=function(key){return shared[key]||(shared[key]=uid(key))}},function(module,exports,__webpack_require__){var defined=__webpack_require__(18);module.exports=function(it){return Object(defined(it))}},function(module,exports,__webpack_require__){"use strict";var $at=__webpack_require__(61)(!0);__webpack_require__(34)(String,"String",function(iterated){this._t=String(iterated),this._i=0},function(){var point,O=this._t,index=this._i;return index>=O.length?{value:void 0,done:!0}:(point=$at(O,index),this._i+=point.length,{value:point,done:!1})})},function(module,exports,__webpack_require__){var def=__webpack_require__(11).f,has=__webpack_require__(13),TAG=__webpack_require__(1)("toStringTag");module.exports=function(it,tag,stat){it&&!has(it=stat?it:it.prototype,TAG)&&def(it,TAG,{configurable:!0,value:tag})}},function(module,exports,__webpack_require__){__webpack_require__(66);for(var global=__webpack_require__(2),hide=__webpack_require__(5),Iterators=__webpack_require__(6),TO_STRING_TAG=__webpack_require__(1)("toStringTag"),DOMIterables="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(","),i=0;i<DOMIterables.length;i++){var NAME=DOMIterables[i],Collection=global[NAME],proto=Collection&&Collection.prototype;proto&&!proto[TO_STRING_TAG]&&hide(proto,TO_STRING_TAG,NAME),Iterators[NAME]=Iterators.Array}},function(module,exports,__webpack_require__){var cof=__webpack_require__(14),TAG=__webpack_require__(1)("toStringTag"),ARG="Arguments"==cof(function(){return arguments}()),tryGet=function(it,key){try{return it[key]}catch(e){}};module.exports=function(it){var O,T,B;return void 0===it?"Undefined":null===it?"Null":"string"==typeof(T=tryGet(O=Object(it),TAG))?T:ARG?cof(O):"Object"==(B=cof(O))&&"function"==typeof O.callee?"Arguments":B}},function(module,exports,__webpack_require__){"use strict";function PromiseCapability(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw TypeError("Bad Promise constructor");resolve=$$resolve,reject=$$reject}),this.resolve=aFunction(resolve),this.reject=aFunction(reject)}var aFunction=__webpack_require__(10);module.exports.f=function(C){return new PromiseCapability(C)}},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value:value}}},function(module,exports,__webpack_require__){var cof=__webpack_require__(14);module.exports=Object("z").propertyIsEnumerable(0)?Object:function(it){return"String"==cof(it)?it.split(""):Object(it)}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(19),min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},function(module,exports,__webpack_require__){var global=__webpack_require__(2),store=global["__core-js_shared__"]||(global["__core-js_shared__"]={});module.exports=function(key){return store[key]||(store[key]={})}},function(module,exports){var id=0,px=Math.random();module.exports=function(key){return"Symbol(".concat(void 0===key?"":key,")_",(++id+px).toString(36))}},function(module,exports){module.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(59),__esModule:!0}},function(module,exports,__webpack_require__){"use strict";var LIBRARY=__webpack_require__(35),$export=__webpack_require__(4),redefine=__webpack_require__(62),hide=__webpack_require__(5),has=__webpack_require__(13),Iterators=__webpack_require__(6),$iterCreate=__webpack_require__(63),setToStringTag=__webpack_require__(23),getPrototypeOf=__webpack_require__(65),ITERATOR=__webpack_require__(1)("iterator"),BUGGY=!([].keys&&"next"in[].keys()),returnThis=function(){return this};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next);var methods,key,IteratorPrototype,getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case"keys":case"values":return function(){return new Constructor(this,kind)}}return function(){return new Constructor(this,kind)}},TAG=NAME+" Iterator",DEF_VALUES="values"==DEFAULT,VALUES_BUG=!1,proto=Base.prototype,$native=proto[ITERATOR]||proto["@@iterator"]||DEFAULT&&proto[DEFAULT],$default=!BUGGY&&$native||getMethod(DEFAULT),$entries=DEFAULT?DEF_VALUES?getMethod("entries"):$default:void 0,$anyNative="Array"==NAME?proto.entries||$native:$native;if($anyNative&&(IteratorPrototype=getPrototypeOf($anyNative.call(new Base)))!==Object.prototype&&IteratorPrototype.next&&(setToStringTag(IteratorPrototype,TAG,!0),LIBRARY||has(IteratorPrototype,ITERATOR)||hide(IteratorPrototype,ITERATOR,returnThis)),DEF_VALUES&&$native&&"values"!==$native.name&&(VALUES_BUG=!0,$default=function(){return $native.call(this)}),LIBRARY&&!FORCED||!BUGGY&&!VALUES_BUG&&proto[ITERATOR]||hide(proto,ITERATOR,$default),Iterators[NAME]=$default,Iterators[TAG]=returnThis,DEFAULT)if(methods={values:DEF_VALUES?$default:getMethod("values"),keys:IS_SET?$default:getMethod("keys"),entries:$entries},FORCED)for(key in methods)key in proto||redefine(proto,key,methods[key]);else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods);return methods}},function(module,exports){module.exports=!0},function(module,exports,__webpack_require__){var anObject=__webpack_require__(3),dPs=__webpack_require__(64),enumBugKeys=__webpack_require__(32),IE_PROTO=__webpack_require__(20)("IE_PROTO"),Empty=function(){},createDict=function(){var iframeDocument,iframe=__webpack_require__(15)("iframe"),i=enumBugKeys.length;for(iframe.style.display="none",__webpack_require__(37).appendChild(iframe),iframe.src="javascript:",iframeDocument=iframe.contentWindow.document,iframeDocument.open(),iframeDocument.write("<script>document.F=Object<\/script>"),iframeDocument.close(),createDict=iframeDocument.F;i--;)delete createDict.prototype[enumBugKeys[i]];return createDict()};module.exports=Object.create||function(O,Properties){var result;return null!==O?(Empty.prototype=anObject(O),result=new Empty,Empty.prototype=null,result[IE_PROTO]=O):result=createDict(),void 0===Properties?result:dPs(result,Properties)}},function(module,exports,__webpack_require__){var document=__webpack_require__(2).document;module.exports=document&&document.documentElement},function(module,exports,__webpack_require__){var classof=__webpack_require__(25),ITERATOR=__webpack_require__(1)("iterator"),Iterators=__webpack_require__(6);module.exports=__webpack_require__(0).getIteratorMethod=function(it){if(void 0!=it)return it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(3),aFunction=__webpack_require__(10),SPECIES=__webpack_require__(1)("species");module.exports=function(O,D){var S,C=anObject(O).constructor;return void 0===C||void 0==(S=anObject(C)[SPECIES])?D:aFunction(S)}},function(module,exports,__webpack_require__){var defer,channel,port,ctx=__webpack_require__(9),invoke=__webpack_require__(74),html=__webpack_require__(37),cel=__webpack_require__(15),global=__webpack_require__(2),process=global.process,setTask=global.setImmediate,clearTask=global.clearImmediate,MessageChannel=global.MessageChannel,Dispatch=global.Dispatch,counter=0,queue={},run=function(){var id=+this;if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id],fn()}},listener=function(event){run.call(event.data)};setTask&&clearTask||(setTask=function(fn){for(var args=[],i=1;arguments.length>i;)args.push(arguments[i++]);return queue[++counter]=function(){invoke("function"==typeof fn?fn:Function(fn),args)},defer(counter),counter},clearTask=function(id){delete queue[id]},"process"==__webpack_require__(14)(process)?defer=function(id){process.nextTick(ctx(run,id,1))}:Dispatch&&Dispatch.now?defer=function(id){Dispatch.now(ctx(run,id,1))}:MessageChannel?(channel=new MessageChannel,port=channel.port2,channel.port1.onmessage=listener,defer=ctx(port.postMessage,port,1)):global.addEventListener&&"function"==typeof postMessage&&!global.importScripts?(defer=function(id){global.postMessage(id+"","*")},global.addEventListener("message",listener,!1)):defer="onreadystatechange"in cel("script")?function(id){html.appendChild(cel("script")).onreadystatechange=function(){html.removeChild(this),run.call(id)}}:function(id){setTimeout(ctx(run,id,1),0)}),module.exports={set:setTask,clear:clearTask}},function(module,exports){module.exports=function(exec){try{return{e:!1,v:exec()}}catch(e){return{e:!0,v:e}}}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(3),isObject=__webpack_require__(7),newPromiseCapability=__webpack_require__(26);module.exports=function(C,x){if(anObject(C),isObject(x)&&x.constructor===C)return x;var promiseCapability=newPromiseCapability.f(C);return(0,promiseCapability.resolve)(x),promiseCapability.promise}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(85),__esModule:!0}},function(module,exports){!function(M,S){"object"==typeof module&&module.exports?module.exports=M.document?S(M):S:M.Highcharts=S(M)}("undefined"!=typeof window?window:this,function(M){M=function(){var a=window,C=a.document,A=a.navigator&&a.navigator.userAgent||"",F=C&&C.createElementNS&&!!C.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,E=/(edge|msie|trident)/i.test(A)&&!window.opera,m=!F,f=/Firefox/.test(A),l=f&&4>parseInt(A.split("Firefox/")[1],10);return a.Highcharts?a.Highcharts.error(16,!0):{product:"Highcharts",version:"5.0.14",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:l,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:E,isWebKit:/AppleWebKit/.test(A),isFirefox:f,isTouchDevice:/(Mobile|Android|Windows Phone)/.test(A),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:F,vml:m,win:a,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}(),function(a){var C=[],A=a.charts,F=a.doc,E=a.win;a.error=function(m,f){if(m=a.isNumber(m)?"Highcharts error #"+m+": www.highcharts.com/errors/"+m:m,f)throw Error(m);E.console&&console.log(m)},a.Fx=function(a,f,l){this.options=f,this.elem=a,this.prop=l},a.Fx.prototype={dSetter:function(){var t,a=this.paths[0],f=this.paths[1],l=[],r=this.now,u=a.length;if(1===r)l=this.toD;else if(u===f.length&&1>r)for(;u--;)t=parseFloat(a[u]),l[u]=isNaN(t)?a[u]:r*parseFloat(f[u]-t)+t;else l=f;this.elem.attr("d",l,null,!0)},update:function(){var a=this.elem,f=this.prop,l=this.now,r=this.options.step;this[f+"Setter"]?this[f+"Setter"]():a.attr?a.element&&a.attr(f,l,null,!0):a.style[f]=l+this.unit,r&&r.call(a,l,this)},run:function(a,f,l){var t,r=this,m=function(a){return!m.stopped&&r.step(a)};this.startTime=+new Date,this.start=a,this.end=f,this.unit=l,this.now=this.start,this.pos=0,m.elem=this.elem,m.prop=this.prop,m()&&1===C.push(m)&&(m.timerId=setInterval(function(){for(t=0;t<C.length;t++)C[t]()||C.splice(t--,1);C.length||clearInterval(m.timerId)},13))},step:function(m){var l,f=+new Date,r=this.options,u=this.elem,t=r.complete,g=r.duration,d=r.curAnim;return u.attr&&!u.element?m=!1:m||f>=g+this.startTime?(this.now=this.end,this.pos=1,this.update(),l=d[this.prop]=!0,a.objectEach(d,function(a){!0!==a&&(l=!1)}),l&&t&&t.call(u),m=!1):(this.pos=r.easing((f-this.startTime)/g),this.now=this.start+(this.end-this.start)*this.pos,this.update(),m=!0),m},initPath:function(m,f,l){function r(a){var c,e;for(n=a.length;n--;)c="M"===a[n]||"L"===a[n],e=/[a-zA-Z]/.test(a[n+3]),c&&e&&a.splice(n+1,0,a[n+1],a[n+2],a[n+1],a[n+2])}function u(a,c){for(;a.length<v;){a[0]=c[v-a.length];var b=a.slice(0,e);[].splice.apply(a,[0,0].concat(b)),D&&(b=a.slice(a.length-e),[].splice.apply(a,[a.length,0].concat(b)),n--)}a[0]="M"}function t(a,c){for(var q=(v-a.length)/e;0<q&&q--;)y=a.slice().splice(a.length/J-e,e*J),y[0]=c[v-e-q*e],b&&(y[e-6]=y[e-2],y[e-5]=y[e-1]),[].splice.apply(a,[a.length/J,0].concat(y)),D&&q--}f=f||"";var g,v,y,n,d=m.startX,k=m.endX,b=-1<f.indexOf("C"),e=b?7:3;f=f.split(" "),l=l.slice();var c,D=m.isArea,J=D?2:1;if(b&&(r(f),r(l)),d&&k){for(n=0;n<d.length;n++){if(d[n]===k[0]){g=n;break}if(d[0]===k[k.length-d.length+n]){g=n,c=!0;break}}void 0===g&&(f=[])}return f.length&&a.isNumber(g)&&(v=l.length+g*J*e,c?(u(f,l),t(l,f)):(u(l,f),t(f,l))),[f,l]}},a.Fx.prototype.fillSetter=a.Fx.prototype.strokeSetter=function(){this.elem.attr(this.prop,a.color(this.start).tweenTo(a.color(this.end),this.pos),null,!0)},a.extend=function(a,f){var m;a||(a={});for(m in f)a[m]=f[m];return a},a.merge=function(){var m,l,f=arguments,r={},u=function(f,g){return"object"!=typeof f&&(f={}),a.objectEach(g,function(d,k){!a.isObject(d,!0)||a.isClass(d)||a.isDOMElement(d)?f[k]=g[k]:f[k]=u(f[k]||{},d)}),f};for(!0===f[0]&&(r=f[1],f=Array.prototype.slice.call(f,2)),l=f.length,m=0;m<l;m++)r=u(r,f[m]);return r},a.pInt=function(a,f){return parseInt(a,f||10)},a.isString=function(a){return"string"==typeof a},a.isArray=function(a){return"[object Array]"===(a=Object.prototype.toString.call(a))||"[object Array Iterator]"===a},a.isObject=function(m,f){return!(!m||"object"!=typeof m||f&&a.isArray(m))},a.isDOMElement=function(m){return a.isObject(m)&&"number"==typeof m.nodeType},a.isClass=function(m){var f=m&&m.constructor;return!(!a.isObject(m,!0)||a.isDOMElement(m)||!f||!f.name||"Object"===f.name)},a.isNumber=function(a){return"number"==typeof a&&!isNaN(a)},a.erase=function(a,f){for(var m=a.length;m--;)if(a[m]===f){a.splice(m,1);break}},a.defined=function(a){return void 0!==a&&null!==a},a.attr=function(m,f,l){var r;return a.isString(f)?a.defined(l)?m.setAttribute(f,l):m&&m.getAttribute&&(r=m.getAttribute(f)):a.defined(f)&&a.isObject(f)&&a.objectEach(f,function(a,f){m.setAttribute(f,a)}),r},a.splat=function(m){return a.isArray(m)?m:[m]},a.syncTimeout=function(a,f,l){if(f)return setTimeout(a,f,l);a.call(0,l)},a.pick=function(){var f,l,a=arguments,r=a.length;for(f=0;f<r;f++)if(void 0!==(l=a[f])&&null!==l)return l},a.css=function(m,f){a.isMS&&!a.svg&&f&&void 0!==f.opacity&&(f.filter="alpha(opacity="+100*f.opacity+")"),a.extend(m.style,f)},a.createElement=function(m,f,l,r,u){m=F.createElement(m);var t=a.css;return f&&a.extend(m,f),u&&t(m,{padding:0,border:"none",margin:0}),l&&t(m,l),r&&r.appendChild(m),m},a.extendClass=function(m,f){var l=function(){};return l.prototype=new m,a.extend(l.prototype,f),l},a.pad=function(a,f,l){return Array((f||2)+1-String(a).length).join(l||0)+a},a.relativeLength=function(a,f,l){return/%$/.test(a)?f*parseFloat(a)/100+(l||0):parseFloat(a)},a.wrap=function(a,f,l){var r=a[f];a[f]=function(){var a=Array.prototype.slice.call(arguments),f=arguments,g=this;return g.proceed=function(){r.apply(g,arguments.length?arguments:f)},a.unshift(r),a=l.apply(this,a),g.proceed=null,a}},a.getTZOffset=function(m){var f=a.Date;return 6e4*(f.hcGetTimezoneOffset&&f.hcGetTimezoneOffset(m)||f.hcTimezoneOffset||0)},a.dateFormat=function(m,f,l){if(!a.defined(f)||isNaN(f))return a.defaultOptions.lang.invalidDate||"";m=a.pick(m,"%Y-%m-%d %H:%M:%S");var r=a.Date,u=new r(f-a.getTZOffset(f)),t=u[r.hcGetHours](),g=u[r.hcGetDay](),d=u[r.hcGetDate](),k=u[r.hcGetMonth](),b=u[r.hcGetFullYear](),e=a.defaultOptions.lang,v=e.weekdays,y=e.shortWeekdays,n=a.pad,r=a.extend({a:y?y[g]:v[g].substr(0,3),A:v[g],d:n(d),e:n(d,2," "),w:g,b:e.shortMonths[k],B:e.months[k],m:n(k+1),y:b.toString().substr(2,2),Y:b,H:n(t),k:t,I:n(t%12||12),l:t%12||12,M:n(u[r.hcGetMinutes]()),p:12>t?"AM":"PM",P:12>t?"am":"pm",S:n(u.getSeconds()),L:n(Math.round(f%1e3),3)},a.dateFormats);return a.objectEach(r,function(a,e){for(;-1!==m.indexOf("%"+e);)m=m.replace("%"+e,"function"==typeof a?a(f):a)}),l?m.substr(0,1).toUpperCase()+m.substr(1):m},a.formatSingle=function(m,f){var l=/\.([0-9])/,r=a.defaultOptions.lang;return/f$/.test(m)?(l=(l=m.match(l))?l[1]:-1,null!==f&&(f=a.numberFormat(f,l,r.decimalPoint,-1<m.indexOf(",")?r.thousandsSep:""))):f=a.dateFormat(m,f),f},a.format=function(m,f){for(var u,t,g,d,b,l="{",r=!1,k=[];m&&-1!==(l=m.indexOf(l));){if(u=m.slice(0,l),r){for(u=u.split(":"),t=u.shift().split("."),d=t.length,b=f,g=0;g<d;g++)b=b[t[g]];u.length&&(b=a.formatSingle(u.join(":"),b)),k.push(b)}else k.push(u);m=m.slice(l+1),l=(r=!r)?"}":"{"}return k.push(m),k.join("")},a.getMagnitude=function(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))},a.normalizeTickInterval=function(m,f,l,r,u){var t,g=m;for(l=a.pick(l,1),t=m/l,f||(f=u?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(1===l?f=a.grep(f,function(a){return 0==a%1}):.1>=l&&(f=[1/l]))),r=0;r<f.length&&(g=f[r],!(u&&g*l>=m||!u&&t<=(f[r]+(f[r+1]||f[r]))/2));r++);return g=a.correctFloat(g*l,-Math.round(Math.log(.001)/Math.LN10))},a.stableSort=function(a,f){var r,m,l=a.length;for(m=0;m<l;m++)a[m].safeI=m;for(a.sort(function(a,g){return r=f(a,g),0===r?a.safeI-g.safeI:r}),m=0;m<l;m++)delete a[m].safeI},a.arrayMin=function(a){for(var f=a.length,l=a[0];f--;)a[f]<l&&(l=a[f]);return l},a.arrayMax=function(a){for(var f=a.length,l=a[0];f--;)a[f]>l&&(l=a[f]);return l},a.destroyObjectProperties=function(m,f){a.objectEach(m,function(a,r){a&&a!==f&&a.destroy&&a.destroy(),delete m[r]})},a.discardElement=function(m){var f=a.garbageBin;f||(f=a.createElement("div")),m&&f.appendChild(m),f.innerHTML=""},a.correctFloat=function(a,f){return parseFloat(a.toPrecision(f||14))},a.setAnimation=function(m,f){f.renderer.globalAnimation=a.pick(m,f.options.chart.animation,!0)},a.animObject=function(m){return a.isObject(m)?a.merge(m):{duration:m?500:0}},a.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},a.numberFormat=function(m,f,l,r){m=+m||0,f=+f;var g,d,u=a.defaultOptions.lang,t=(m.toString().split(".")[1]||"").split("e")[0].length,k=m.toString().split("e");return-1===f?f=Math.min(t,20):a.isNumber(f)||(f=2),d=(Math.abs(k[1]?k[0]:m)+Math.pow(10,-Math.max(f,t)-1)).toFixed(f),t=String(a.pInt(d)),g=3<t.length?t.length%3:0,l=a.pick(l,u.decimalPoint),r=a.pick(r,u.thousandsSep),m=(0>m?"-":"")+(g?t.substr(0,g)+r:""),m+=t.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+r),f&&(m+=l+d.slice(-f)),k[1]&&(m+="e"+k[1]),m},Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)},a.getStyle=function(m,f,l){return"width"===f?Math.min(m.offsetWidth,m.scrollWidth)-a.getStyle(m,"padding-left")-a.getStyle(m,"padding-right"):"height"===f?Math.min(m.offsetHeight,m.scrollHeight)-a.getStyle(m,"padding-top")-a.getStyle(m,"padding-bottom"):((m=E.getComputedStyle(m,void 0))&&(m=m.getPropertyValue(f),a.pick(l,!0)&&(m=a.pInt(m))),m)},a.inArray=function(a,f){return f.indexOf?f.indexOf(a):[].indexOf.call(f,a)},a.grep=function(a,f){return[].filter.call(a,f)},a.find=function(a,f){return[].find.call(a,f)},a.map=function(a,f){for(var l=[],r=0,m=a.length;r<m;r++)l[r]=f.call(a[r],a[r],r,a);return l},a.offset=function(a){var f=F.documentElement;return a=a.getBoundingClientRect(),{top:a.top+(E.pageYOffset||f.scrollTop)-(f.clientTop||0),left:a.left+(E.pageXOffset||f.scrollLeft)-(f.clientLeft||0)}},a.stop=function(a,f){for(var l=C.length;l--;)C[l].elem!==a||f&&f!==C[l].prop||(C[l].stopped=!0)},a.each=function(a,f,l){return Array.prototype.forEach.call(a,f,l)},a.objectEach=function(a,f,l){for(var r in a)a.hasOwnProperty(r)&&f.call(l,a[r],r,a)},a.addEvent=function(m,f,l){function r(a){a.target=a.srcElement||E,l.call(m,a)}var u=m.hcEvents=m.hcEvents||{};return m.addEventListener?m.addEventListener(f,l,!1):m.attachEvent&&(m.hcEventsIE||(m.hcEventsIE={}),l.hcGetKey||(l.hcGetKey=a.uniqueKey()),m.hcEventsIE[l.hcGetKey]=r,m.attachEvent("on"+f,r)),u[f]||(u[f]=[]),u[f].push(l),function(){a.removeEvent(m,f,l)}},a.removeEvent=function(m,f,l){function r(a,b){m.removeEventListener?m.removeEventListener(a,b,!1):m.attachEvent&&(b=m.hcEventsIE[b.hcGetKey],m.detachEvent("on"+a,b))}function u(){var d,b;m.nodeName&&(f?(d={},d[f]=!0):d=g,a.objectEach(d,function(a,d){if(g[d])for(b=g[d].length;b--;)r(d,g[d][b])}))}var t,d,g=m.hcEvents;g&&(f?(t=g[f]||[],l?(d=a.inArray(l,t),-1<d&&(t.splice(d,1),g[f]=t),r(f,l)):(u(),g[f]=[])):(u(),m.hcEvents={}))},a.fireEvent=function(m,f,l,r){var u;u=m.hcEvents;var t,g;if(l=l||{},F.createEvent&&(m.dispatchEvent||m.fireEvent))u=F.createEvent("Events"),u.initEvent(f,!0,!0),a.extend(u,l),m.dispatchEvent?m.dispatchEvent(u):m.fireEvent(f,u);else if(u)for(u=u[f]||[],t=u.length,l.target||a.extend(l,{preventDefault:function(){l.defaultPrevented=!0},target:m,type:f}),f=0;f<t;f++)(g=u[f])&&!1===g.call(m,l)&&l.preventDefault();r&&!l.defaultPrevented&&r(l)},a.animate=function(m,f,l){var r,t,g,d,u="";a.isObject(l)||(d=arguments,l={duration:d[2],easing:d[3],complete:d[4]}),a.isNumber(l.duration)||(l.duration=400),l.easing="function"==typeof l.easing?l.easing:Math[l.easing]||Math.easeInOutSine,l.curAnim=a.merge(f),a.objectEach(f,function(d,b){a.stop(m,b),g=new a.Fx(m,l,b),t=null,"d"===b?(g.paths=g.initPath(m,m.d,f.d),g.toD=f.d,r=0,t=1):m.attr?r=m.attr(b):(r=parseFloat(a.getStyle(m,b))||0,"opacity"!==b&&(u="px")),t||(t=d),t&&t.match&&t.match("px")&&(t=t.replace(/px/g,"")),g.run(r,t,u)})},a.seriesType=function(m,f,l,r,u){var t=a.getOptions(),g=a.seriesTypes;return t.plotOptions[m]=a.merge(t.plotOptions[f],l),g[m]=a.extendClass(g[f]||function(){},r),g[m].prototype.type=m,u&&(g[m].prototype.pointClass=a.extendClass(a.Point,u)),g[m]},a.uniqueKey=function(){var a=Math.random().toString(36).substring(2,9),f=0;return function(){return"highcharts-"+a+"-"+f++}}(),E.jQuery&&(E.jQuery.fn.highcharts=function(){var m=[].slice.call(arguments);if(this[0])return m[0]?(new(a[a.isString(m[0])?m.shift():"Chart"])(this[0],m[0],m[1]),this):A[a.attr(this[0],"data-highcharts-chart")]}),F&&!F.defaultView&&(a.getStyle=function(m,f){var l={width:"clientWidth",height:"clientHeight"}[f];return m.style[f]?a.pInt(m.style[f]):("opacity"===f&&(f="filter"),l?(m.style.zoom=1,Math.max(m[l]-2*a.getStyle(m,"padding"),0)):(m=m.currentStyle[f.replace(/\-(\w)/g,function(a,f){return f.toUpperCase()})],"filter"===f&&(m=m.replace(/alpha\(opacity=([0-9]+)\)/,function(a,f){return f/100})),""===m?1:a.pInt(m)))}),Array.prototype.forEach||(a.each=function(a,f,l){for(var r=0,m=a.length;r<m;r++)if(!1===f.call(l,a[r],r,a))return r}),Array.prototype.indexOf||(a.inArray=function(a,f){var l,r=0;if(f)for(l=f.length;r<l;r++)if(f[r]===a)return r;return-1}),Array.prototype.filter||(a.grep=function(a,f){for(var l=[],r=0,m=a.length;r<m;r++)f(a[r],r)&&l.push(a[r]);return l}),Array.prototype.find||(a.find=function(a,f){var l,r=a.length;for(l=0;l<r;l++)if(f(a[l],l))return a[l]})}(M),function(a){var C=a.each,A=a.isNumber,F=a.map,E=a.merge,m=a.pInt;a.Color=function(f){if(!(this instanceof a.Color))return new a.Color(f);this.init(f)},a.Color.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(a){return[m(a[1]),m(a[2]),m(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[m(a[1]),m(a[2]),m(a[3]),1]}}],names:{none:"rgba(255,255,255,0)",white:"#ffffff",black:"#000000"},init:function(f){var l,r,m,t;if((this.input=f=this.names[f&&f.toLowerCase?f.toLowerCase():""]||f)&&f.stops)this.stops=F(f.stops,function(g){return new a.Color(g[1])});else if(f&&"#"===f.charAt()&&(l=f.length,f=parseInt(f.substr(1),16),7===l?r=[(16711680&f)>>16,(65280&f)>>8,255&f,1]:4===l&&(r=[(3840&f)>>4|(3840&f)>>8,(240&f)>>4|240&f,(15&f)<<4|15&f,1])),!r)for(m=this.parsers.length;m--&&!r;)t=this.parsers[m],(l=t.regex.exec(f))&&(r=t.parse(l));this.rgba=r||[]},get:function(a){var m,f=this.input,r=this.rgba;return this.stops?(m=E(f),m.stops=[].concat(m.stops),C(this.stops,function(f,g){m.stops[g]=[m.stops[g][0],f.get(a)]})):m=r&&A(r[0])?"rgb"===a||!a&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===a?r[3]:"rgba("+r.join(",")+")":f,m},brighten:function(a){var f,r=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(A(a)&&0!==a)for(f=0;3>f;f++)r[f]+=m(255*a),0>r[f]&&(r[f]=0),255<r[f]&&(r[f]=255);return this},setOpacity:function(a){return this.rgba[3]=a,this},tweenTo:function(a,l){var f,m;return a.rgba.length?(f=this.rgba,a=a.rgba,m=1!==a[3]||1!==f[3],a=(m?"rgba(":"rgb(")+Math.round(a[0]+(f[0]-a[0])*(1-l))+","+Math.round(a[1]+(f[1]-a[1])*(1-l))+","+Math.round(a[2]+(f[2]-a[2])*(1-l))+(m?","+(a[3]+(f[3]-a[3])*(1-l)):"")+")"):a=a.input||"none",a}},a.color=function(f){return new a.Color(f)}}(M),function(a){var C,A,F=a.addEvent,E=a.animate,m=a.attr,f=a.charts,l=a.color,r=a.css,u=a.createElement,t=a.defined,g=a.deg2rad,d=a.destroyObjectProperties,k=a.doc,b=a.each,e=a.extend,v=a.erase,y=a.grep,n=a.hasTouch,D=a.inArray,J=a.isArray,c=a.isFirefox,G=a.isMS,q=a.isObject,B=a.isString,K=a.isWebKit,p=a.merge,z=a.noop,I=a.objectEach,L=a.pick,h=a.pInt,w=a.removeEvent,P=a.stop,H=a.svg,O=a.SVG_NS,Q=a.symbolSizes,R=a.win;C=a.SVGElement=function(){return this},e(C.prototype,{opacity:1,SVG_NS:O,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline".split(" "),init:function(a,h){this.element="span"===h?u(h):k.createElementNS(this.SVG_NS,h),this.renderer=a},animate:function(x,h,c){return h=a.animObject(L(h,this.renderer.globalAnimation,!0)),0!==h.duration?(c&&(h.complete=c),E(this,x,h)):(this.attr(x,null,c),h.step&&h.step.call(this)),this},colorGradient:function(x,h,c){var e,q,N,d,n,g,k,H,G,v,f,w=this.renderer,z=[];x.radialGradient?q="radialGradient":x.linearGradient&&(q="linearGradient"),q&&(N=x[q],n=w.gradients,k=x.stops,v=c.radialReference,J(N)&&(x[q]=N={x1:N[0],y1:N[1],x2:N[2],y2:N[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===q&&v&&!t(N.gradientUnits)&&(d=N,N=p(N,w.getRadialAttr(v,d),{gradientUnits:"userSpaceOnUse"})),I(N,function(a,x){"id"!==x&&z.push(x,a)}),I(k,function(a){z.push(a)}),z=z.join(","),n[z]?v=n[z].attr("id"):(N.id=v=a.uniqueKey(),n[z]=g=w.createElement(q).attr(N).add(w.defs),g.radAttr=d,g.stops=[],b(k,function(x){0===x[1].indexOf("rgba")?(e=a.color(x[1]),H=e.get("rgb"),G=e.get("a")):(H=x[1],G=1),x=w.createElement("stop").attr({offset:x[0],"stop-color":H,"stop-opacity":G}).add(g),g.stops.push(x)})),f="url("+w.url+"#"+v+")",c.setAttribute(h,f),c.gradient=z,x.toString=function(){return f})},applyTextOutline:function(x){var c,w,p,e,q,h=this.element;if(-1!==x.indexOf("contrast")&&(x=x.replace(/contrast/g,this.renderer.getContrast(h.style.fill))),x=x.split(" "),w=x[x.length-1],(p=x[0])&&"none"!==p&&a.svg){for(this.fakeTS=!0,x=[].slice.call(h.getElementsByTagName("tspan")),this.ySetter=this.xSetter,p=p.replace(/(^[\d\.]+)(.*?)$/g,function(a,x,h){return 2*x+h}),q=x.length;q--;)c=x[q],"highcharts-text-outline"===c.getAttribute("class")&&v(x,h.removeChild(c));e=h.firstChild,b(x,function(a,x){0===x&&(a.setAttribute("x",h.getAttribute("x")),x=h.getAttribute("y"),a.setAttribute("y",x||0),null===x&&h.setAttribute("y",0)),a=a.cloneNode(1),m(a,{class:"highcharts-text-outline",fill:w,stroke:w,"stroke-width":p,"stroke-linejoin":"round"}),h.insertBefore(a,e)})}},attr:function(a,h,c,w){var x,e,b,N,p=this.element,q=this;return"string"==typeof a&&void 0!==h&&(x=a,a={},a[x]=h),"string"==typeof a?q=(this[a+"Getter"]||this._defaultGetter).call(this,a,p):(I(a,function(x,h){b=!1,w||P(this,h),this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(h)&&(e||(this.symbolAttr(a),e=!0),b=!0),!this.rotation||"x"!==h&&"y"!==h||(this.doTransform=!0),b||(N=this[h+"Setter"]||this._defaultSetter,N.call(this,x,h,p),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(h)&&this.updateShadows(h,x,N))},this),this.afterSetters()),c&&c(),q},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(a,h,c){for(var x=this.shadows,w=x.length;w--;)c.call(x[w],"height"===a?Math.max(h-(x[w].cutHeight||0),0):"d"===a?this.d:h,a,x[w])},addClass:function(a,h){var x=this.attr("class")||"";return-1===x.indexOf(a)&&(h||(a=(x+(x?" ":"")+a).replace(" "," ")),this.attr("class",a)),this},hasClass:function(a){return-1!==D(a,(this.attr("class")||"").split(" "))},removeClass:function(a){return this.attr("class",(this.attr("class")||"").replace(a,""))},symbolAttr:function(a){var x=this;b("x y r start end width height innerR anchorX anchorY".split(" "),function(h){x[h]=L(a[h],x[h])}),x.attr({d:x.renderer.symbols[x.symbolName](x.x,x.y,x.width,x.height,x)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a,h){var w,x=this,c={};return h=h||a.strokeWidth||0,w=Math.round(h)%2/2,a.x=Math.floor(a.x||x.x||0)+w,a.y=Math.floor(a.y||x.y||0)+w,a.width=Math.floor((a.width||x.width||0)-2*w),a.height=Math.floor((a.height||x.height||0)-2*w),t(a.strokeWidth)&&(a.strokeWidth=h),I(a,function(a,h){x[h]!==a&&(x[h]=c[h]=a)}),c},css:function(a){var p,b,x=this.styles,c={},w=this.element,q="",d=!x,n=["textOutline","textOverflow","width"];return a&&a.color&&(a.fill=a.color),x&&I(a,function(a,h){a!==x[h]&&(c[h]=a,d=!0)}),d&&(x&&(a=e(x,c)),p=this.textWidth=a&&a.width&&"auto"!==a.width&&"text"===w.nodeName.toLowerCase()&&h(a.width),this.styles=a,p&&!H&&this.renderer.forExport&&delete a.width,G&&!H?r(this.element,a):(b=function(a,x){return"-"+x.toLowerCase()},I(a,function(a,x){-1===D(x,n)&&(q+=x.replace(/([A-Z])/g,b)+":"+a+";")}),q&&m(w,"style",q)),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline))),this},strokeWidth:function(){return this["stroke-width"]||0},on:function(a,h){var x=this,c=x.element;return n&&"click"===a?(c.ontouchstart=function(a){x.touchEventFired=Date.now(),a.preventDefault(),h.call(c,a)},c.onclick=function(a){(-1===R.navigator.userAgent.indexOf("Android")||1100<Date.now()-(x.touchEventFired||0))&&h.call(c,a)}):c["on"+a]=h,this},setRadialReference:function(a){var x=this.renderer.gradients[this.element.gradient];return this.element.radialReference=a,x&&x.radAttr&&x.animate(this.renderer.getRadialAttr(a,x.radAttr)),this},translate:function(a,h){return this.attr({translateX:a,translateY:h})},invert:function(a){return this.inverted=a,this.updateTransform(),this},updateTransform:function(){var a=this.translateX||0,h=this.translateY||0,c=this.scaleX,w=this.scaleY,p=this.inverted,e=this.rotation,q=this.element;p&&(a+=this.width,h+=this.height),a=["translate("+a+","+h+")"],p?a.push("rotate(90) scale(-1,1)"):e&&a.push("rotate("+e+" "+(q.getAttribute("x")||0)+" "+(q.getAttribute("y")||0)+")"),(t(c)||t(w))&&a.push("scale("+L(c,1)+" "+L(w,1)+")"),a.length&&q.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;return a.parentNode.appendChild(a),this},align:function(a,h,c){var x,w,p,e,q={};w=this.renderer,p=w.alignedObjects;var b,d;return a?(this.alignOptions=a,this.alignByTranslate=h,(!c||B(c))&&(this.alignTo=x=c||"renderer",v(p,this),p.push(this),c=null)):(a=this.alignOptions,h=this.alignByTranslate,x=this.alignTo),c=L(c,w[x],w),x=a.align,w=a.verticalAlign,p=(c.x||0)+(a.x||0),e=(c.y||0)+(a.y||0),"right"===x?b=1:"center"===x&&(b=2),b&&(p+=(c.width-(a.width||0))/b),q[h?"translateX":"x"]=Math.round(p),"bottom"===w?d=1:"middle"===w&&(d=2),d&&(e+=(c.height-(a.height||0))/d),q[h?"translateY":"y"]=Math.round(e),this[this.placed?"animate":"attr"](q),this.placed=!0,this.alignAttr=q,this},getBBox:function(a,h){var x,w,d,k,G,c=this.renderer,p=this.element,q=this.styles,n=this.textStr,N=c.cache,H=c.cacheKeys;if(h=L(h,this.rotation),w=h*g,d=q&&q.fontSize,void 0!==n&&(G=n.toString(),-1===G.indexOf("<")&&(G=G.replace(/[0-9]/g,"0")),G+=["",h||0,d,q&&q.width,q&&q.textOverflow].join()),G&&!a&&(x=N[G]),!x){if(p.namespaceURI===this.SVG_NS||c.forExport){try{(k=this.fakeTS&&function(a){b(p.querySelectorAll(".highcharts-text-outline"),function(x){x.style.display=a})})&&k("none"),x=p.getBBox?e({},p.getBBox()):{width:p.offsetWidth,height:p.offsetHeight},k&&k("")}catch(W){}(!x||0>x.width)&&(x={width:0,height:0})}else x=this.htmlGetBBox();if(c.isSVG&&(a=x.width,c=x.height,q&&"11px"===q.fontSize&&17===Math.round(c)&&(x.height=c=14),h&&(x.width=Math.abs(c*Math.sin(w))+Math.abs(a*Math.cos(w)),x.height=Math.abs(c*Math.cos(w))+Math.abs(a*Math.sin(w)))),G&&0<x.height){for(;250<H.length;)delete N[H.shift()];N[G]||H.push(G),N[G]=x}}return x},show:function(a){return this.attr({visibility:a?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var x=this;x.animate({opacity:0},{duration:a||150,complete:function(){x.attr({y:-9999})}})},add:function(a){var c,x=this.renderer,h=this.element;return a&&(this.parentGroup=a),this.parentInverted=a&&a.inverted,void 0!==this.textStr&&x.buildText(this),this.added=!0,(!a||a.handleZ||this.zIndex)&&(c=this.zIndexSetter()),c||(a?a.element:x.box).appendChild(h),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(a){var x=a.parentNode;x&&x.removeChild(a)},destroy:function(){var a=this,h=a.element||{},c=a.renderer.isSVG&&"SPAN"===h.nodeName&&a.parentGroup,w=h.ownerSVGElement;if(h.onclick=h.onmouseout=h.onmouseover=h.onmousemove=h.point=null,P(a),a.clipPath&&w&&(b(w.querySelectorAll("[clip-path]"),function(x){-1<x.getAttribute("clip-path").indexOf(a.clipPath.element.id+")")&&x.removeAttribute("clip-path")}),a.clipPath=a.clipPath.destroy()),a.stops){for(w=0;w<a.stops.length;w++)a.stops[w]=a.stops[w].destroy();a.stops=null}for(a.safeRemoveChild(h),a.destroyShadows();c&&c.div&&0===c.div.childNodes.length;)h=c.parentGroup,a.safeRemoveChild(c.div),delete c.div,c=h;return a.alignTo&&v(a.renderer.alignedObjects,a),I(a,function(x,h){delete a[h]}),null},shadow:function(a,h,c){var w,p,e,b,d,n,x=[],q=this.element;if(a){if(!this.shadows){for(b=L(a.width,3),d=(a.opacity||.15)/b,n=this.parentInverted?"(-1,-1)":"("+L(a.offsetX,1)+", "+L(a.offsetY,1)+")",w=1;w<=b;w++)p=q.cloneNode(0),e=2*b+1-2*w,m(p,{isShadow:"true",stroke:a.color||"#000000","stroke-opacity":d*w,"stroke-width":e,transform:"translate"+n,fill:"none"}),c&&(m(p,"height",Math.max(m(p,"height")-e,0)),p.cutHeight=e),h?h.element.appendChild(p):q.parentNode.insertBefore(p,q),x.push(p);this.shadows=x}}else this.destroyShadows();return this},destroyShadows:function(){b(this.shadows||[],function(a){this.safeRemoveChild(a)},this),this.shadows=void 0},xGetter:function(a){return"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy")),this._defaultGetter(a)},_defaultGetter:function(a){return a=L(this[a],this.element?this.element.getAttribute(a):null,0),/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a)),a},dSetter:function(a,h,c){a&&a.join&&(a=a.join(" ")),/(NaN| {2}|^$)/.test(a)&&(a="M 0 0"),this[h]!==a&&(c.setAttribute(h,a),this[h]=a)},dashstyleSetter:function(a){var x,c=this["stroke-width"];if("inherit"===c&&(c=1),a=a&&a.toLowerCase()){for(a=a.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(","),x=a.length;x--;)a[x]=h(a[x])*c;a=a.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",a)}},alignSetter:function(a){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[a])},opacitySetter:function(a,h,c){this[h]=a,c.setAttribute(h,a)},titleSetter:function(a){var h=this.element.getElementsByTagName("title")[0];h||(h=k.createElementNS(this.SVG_NS,"title"),this.element.appendChild(h)),h.firstChild&&h.removeChild(h.firstChild),h.appendChild(k.createTextNode(String(L(a),"").replace(/<[^>]*>/g,"")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,h,c){"string"==typeof a?c.setAttribute(h,a):a&&this.colorGradient(a,h,c)},visibilitySetter:function(a,h,c){"inherit"===a?c.removeAttribute(h):this[h]!==a&&c.setAttribute(h,a),this[h]=a},zIndexSetter:function(a,c){var q,b,x=this.renderer,w=this.parentGroup,p=(w||x).element||x.box,e=this.element;q=this.added;var d;if(t(a)&&(e.zIndex=a,a=+a,this[c]===a&&(q=!1),this[c]=a),q){for((a=this.zIndex)&&w&&(w.handleZ=!0),c=p.childNodes,d=0;d<c.length&&!b;d++)w=c[d],q=w.zIndex,w!==e&&(h(q)>a||!t(a)&&t(q)||0>a&&!t(q)&&p!==x.box)&&(p.insertBefore(e,w),b=!0);b||p.appendChild(e)}return b},_defaultSetter:function(a,h,c){c.setAttribute(h,a)}}),C.prototype.yGetter=C.prototype.xGetter,C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=function(a,h){this[h]=a,this.doTransform=!0},C.prototype["stroke-widthSetter"]=C.prototype.strokeSetter=function(a,h,c){this[h]=a,this.stroke&&this["stroke-width"]?(C.prototype.fillSetter.call(this,this.stroke,"stroke",c),c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===h&&0===a&&this.hasStroke&&(c.removeAttribute("stroke"),this.hasStroke=!1)},A=a.SVGRenderer=function(){this.init.apply(this,arguments)},e(A.prototype,{Element:C,SVG_NS:O,init:function(a,h,w,p,q,e){var x;p=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}).css(this.getStyle(p)),x=p.element,a.appendChild(x),-1===a.innerHTML.indexOf("xmlns")&&m(x,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=x,this.boxWrapper=p,this.alignedObjects=[],this.url=(c||K)&&k.getElementsByTagName("base").length?R.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(k.createTextNode("Created with Highcharts 5.0.14")),this.defs=this.createElement("defs").add(),this.allowHTML=e,this.forExport=q,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(h,w,!1);var b;c&&a.getBoundingClientRect&&(h=function(){r(a,{left:0,top:0}),b=a.getBoundingClientRect(),r(a,{left:Math.ceil(b.left)-b.left+"px",top:Math.ceil(b.top)-b.top+"px"})},h(),this.unSubPixelFix=F(R,"resize",h))},getStyle:function(a){return this.style=e({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),d(this.gradients||{}),this.gradients=null,a&&(this.defs=a.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(a){var h=new this.Element;return h.init(this,a),h},draw:z,getRadialAttr:function(a,h){return{cx:a[0]-a[2]/2+h.cx*a[2],cy:a[1]-a[2]/2+h.cy*a[2],r:h.r*a[2]}},getSpanWidth:function(a,h){var c=a.getBBox(!0).width;return!H&&this.forExport&&(c=this.measureSpanWidth(h.firstChild.data,a.styles)),c},applyEllipsis:function(a,h,c,w){var q,n,x=a.rotation,p=c,e=0,b=c.length,d=function(a){h.removeChild(h.firstChild),a&&h.appendChild(k.createTextNode(a))};if(a.rotation=0,p=this.getSpanWidth(a,h),n=p>w){for(;e<=b;)q=Math.ceil((e+b)/2),p=c.substring(0,q)+"\u2026",d(p),p=this.getSpanWidth(a,h),e===b?e=b+1:p>w?b=q-1:e=q;0===b&&d("")}return a.rotation=x,n},buildText:function(a){var d,n,g,G,t,J,c=a.element,w=this,x=w.forExport,p=L(a.textStr,"").toString(),q=-1!==p.indexOf("<"),e=c.childNodes,v=m(c,"x"),z=a.styles,f=a.textWidth,I=z&&z.lineHeight,B=z&&z.textOutline,D=z&&"ellipsis"===z.textOverflow,l=z&&"nowrap"===z.whiteSpace,P=z&&z.fontSize,u=e.length,z=f&&!a.added&&this.box,K=function(a){var x;return x=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:P||w.style.fontSize||12,I?h(I):w.fontMetrics(x,a.getAttribute("style")?a:c).h};if((t=[p,D,l,I,B,P,f].join())!==a.textCache){for(a.textCache=t;u--;)c.removeChild(e[u]);q||B||D||f||-1!==p.indexOf(" ")?(d=/<.*class="([^"]+)".*>/,n=/<.*style="([^"]+)".*>/,g=/<.*href="([^"]+)".*>/,z&&z.appendChild(c),p=q?p.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):[p],p=y(p,function(a){return""!==a}),b(p,function(h,p){var q,e=0;h=h.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||"),q=h.split("|||"),b(q,function(h){if(""!==h||1===q.length){var y,I,b={},z=k.createElementNS(w.SVG_NS,"tspan");if(d.test(h)&&(y=h.match(d)[1],m(z,"class",y)),n.test(h)&&(I=h.match(n)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),m(z,"style",I)),g.test(h)&&!x&&(m(z,"onclick",'location.href="'+h.match(g)[1]+'"'),r(z,{cursor:"pointer"}))," "!==(h=(h.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">"))){if(z.appendChild(k.createTextNode(h)),e?b.dx=0:p&&null!==v&&(b.x=v),m(z,b),c.appendChild(z),!e&&J&&(!H&&x&&r(z,{display:"block"}),m(z,"dy",K(z))),f){b=h.replace(/([^\^])-/g,"$1- ").split(" "),y=1<q.length||p||1<b.length&&!l;var N,B=[],P=K(z),t=a.rotation;for(D&&(G=w.applyEllipsis(a,z,h,f));!D&&y&&(b.length||B.length);)a.rotation=0,N=w.getSpanWidth(a,z),h=N>f,void 0===G&&(G=h),h&&1!==b.length?(z.removeChild(z.firstChild),B.unshift(b.pop())):(b=B,B=[],b.length&&!l&&(z=k.createElementNS(O,"tspan"),m(z,{dy:P,x:v}),I&&m(z,"style",I),c.appendChild(z)),N>f&&(f=N)),b.length&&z.appendChild(k.createTextNode(b.join(" ").replace(/- /g,"-")));a.rotation=t}e++}}}),J=J||c.childNodes.length}),G&&a.attr("title",a.textStr),z&&z.removeChild(c),B&&a.applyTextOutline&&a.applyTextOutline(B)):c.appendChild(k.createTextNode(p.replace(/&lt;/g,"<").replace(/&gt;/g,">")))}},getContrast:function(a){return a=l(a).rgba,510<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"},button:function(a,h,c,w,q,b,d,n,g){var x=this.label(a,h,c,g,null,null,null,null,"button"),k=0;x.attr(p({padding:8,r:2},q));var z,H,v,f;return q=p({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},q),z=q.style,delete q.style,b=p(q,{fill:"#e6e6e6"},b),H=b.style,delete b.style,d=p(q,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},d),v=d.style,delete d.style,n=p(q,{style:{color:"#cccccc"}},n),f=n.style,delete n.style,F(x.element,G?"mouseover":"mouseenter",function(){3!==k&&x.setState(1)}),F(x.element,G?"mouseout":"mouseleave",function(){3!==k&&x.setState(k)}),x.setState=function(a){1!==a&&(x.state=k=a),x.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0]),x.attr([q,b,d,n][a||0]).css([z,H,v,f][a||0])},x.attr(q).css(e({cursor:"default"},z)),x.on("click",function(a){3!==k&&w.call(x,a)})},crispLine:function(a,h){return a[1]===a[4]&&(a[1]=a[4]=Math.round(a[1])-h%2/2),a[2]===a[5]&&(a[2]=a[5]=Math.round(a[2])+h%2/2),a},path:function(a){var h={fill:"none"};return J(a)?h.d=a:q(a)&&e(h,a),this.createElement("path").attr(h)},circle:function(a,h,c){return a=q(a)?a:{x:a,y:h,r:c},h=this.createElement("circle"),h.xSetter=h.ySetter=function(a,h,c){c.setAttribute("c"+h,a)},h.attr(a)},arc:function(a,h,c,w,p,b){return q(a)?(w=a,h=w.y,c=w.r,a=w.x):w={innerR:w,start:p,end:b},a=this.symbol("arc",a,h,c,c,w),a.r=c,a},rect:function(a,h,c,w,p,b){p=q(a)?a.r:p;var x=this.createElement("rect");return a=q(a)?a:void 0===a?{}:{x:a,y:h,width:Math.max(c,0),height:Math.max(w,0)},void 0!==b&&(a.strokeWidth=b,a=x.crisp(a)),a.fill="none",p&&(a.r=p),x.rSetter=function(a,h,c){m(c,{rx:a,ry:a})},x.attr(a)},setSize:function(a,h,c){var w=this.alignedObj