!function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";function i(l,h,c){(c=c||e||t.jQuery)&&(h.prototype.option||(h.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[l]=function(t){var e,n,s,o,a,r;return"string"==typeof t?(e=d.call(arguments,1),s=e,a="$()."+l+'("'+(n=t)+'")',(e=this).each(function(t,e){var i,e=c.data(e,l);e?(i=e[n])&&"_"!=n.charAt(0)?(i=i.apply(e,s),o=void 0===o?i:o):u(a+" is not a valid method"):u(l+" not initialized. Cannot call methods, i.e. "+a)}),void 0!==o?o:e):(r=t,this.each(function(t,e){var i=c.data(e,l);i?(i.option(r),i._init()):(i=new h(e,r),c.data(e,l,i))}),this)},n(c))}function n(t){!t||t.bridget||(t.bridget=i)}var d=Array.prototype.slice,s=t.console,u=void 0===s?function(){}:function(t){s.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;if(t&&e)return-1==(i=(i=this._events=this._events||{})[t]=i[t]||[]).indexOf(e)&&i.push(e),this},e.once=function(t,e){var i;if(t&&e)return this.on(t,e),((i=this._onceEvents=this._onceEvents||{})[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s<i.length;s++){var o=i[s];n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function g(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function y(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function b(t){if(C||(C=!0,(r=document.createElement("div")).style.width="200px",r.style.padding="1px 2px 3px 4px",r.style.borderStyle="solid",r.style.borderWidth="1px 2px 3px 4px",r.style.boxSizing="border-box",(a=document.body||document.documentElement).appendChild(r),n=y(r),v=200==Math.round(g(n.width)),b.isBoxSizeOuter=v,a.removeChild(r)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=y(t);if("none"!=e.display){var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox="border-box"==e.boxSizing,s=0;s<w;s++){var c=x[s],o=e[c],o=parseFloat(o);i[c]=isNaN(o)?0:o}var a=i.paddingLeft+i.paddingRight,r=i.paddingTop+i.paddingBottom,t=i.marginLeft+i.marginRight,d=i.marginTop+i.marginBottom,u=i.borderLeftWidth+i.borderRightWidth,p=i.borderTopWidth+i.borderBottomWidth,f=n&&v,l=g(e.width),l=(!1!==l&&(i.width=l+(f?0:a+u)),g(e.height));return!1!==l&&(i.height=l+(f?0:r+p)),i.innerWidth=i.width-(a+u),i.innerHeight=i.height-(r+p),i.outerWidth=i.width+t,i.outerHeight=i.height+d,i}for(var m={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},h=0;h<w;h++)m[x[h]]=0;return m}var r,a,n}var v,e="undefined"==typeof console?function(){}:function(t){console.error(t)},x=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],w=x.length,C=!1;return b}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var i=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(t,e){return t[i](e)}}),function(e,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(i,o){var l={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice,h=(l.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},l.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},l.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,o(t,e))return t},l.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.filterFindElements=function(t,n){t=l.makeArray(t);var s=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){o(t,n)&&s.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)s.push(e[i])}else s.push(t)}),s},l.debounceMethod=function(t,e,n){n=n||100;var s=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o],e=(clearTimeout(t),arguments),i=this;this[o]=setTimeout(function(){s.apply(i,e),delete i[o]},n)}},l.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},l.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()},i.console);return l.htmlInit=function(a,r){l.docReady(function(){var t=l.toDashed(r),n="data-"+t,e=document.querySelectorAll("["+n+"]"),t=document.querySelectorAll(".js-"+t),e=l.makeArray(e).concat(l.makeArray(t)),s=n+"-options",o=i.jQuery;e.forEach(function(e){var t,i=e.getAttribute(n)||e.getAttribute(s);try{t=i&&JSON.parse(i)}catch(t){return void(h&&h.error("Error parsing "+n+" on "+e.className+": "+t))}i=new a(e,t);o&&o.data(e,r,i)})})},l}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var n=document.documentElement.style,s="string"==typeof n.transition?"transition":"WebkitTransition",n="string"==typeof n.transform?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],a={transform:n,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},t=i.prototype=Object.create(t.prototype),r=(t.constructor=i,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,i=this.element.style;for(e in t)i[a[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],t=t[i?"top":"bottom"],s=parseFloat(n),o=parseFloat(t),a=this.layout.size;-1!=n.indexOf("%")&&(s=s/100*a.width),-1!=t.indexOf("%")&&(o=o/100*a.height),s=isNaN(s)?0:s,o=isNaN(o)?0:o,s-=e?a.paddingLeft:a.paddingRight,o-=i?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=o},t.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),s=i?"right":"left",o=this.position.x+t[i?"paddingLeft":"paddingRight"],i=(e[i?"left":"right"]=this.getXValue(o),e[s]="",n?"paddingTop":"paddingBottom"),o=n?"bottom":"top",s=this.position.y+t[i];e[n?"top":"bottom"]=this.getYValue(s),e[o]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,s=t==this.position.x&&e==this.position.y;this.setPosition(t,e),!s||this.isTransitioning?((s={}).transform=this.getTranslate(t-i,e-n),this.transition({to:s,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})):this.layoutPosition()},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)},"opacity,"+n.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})),l=(t.enableTransition=function(){var t;this.isTransitioning||(t="number"==typeof(t=this.layout.options.transitionDuration)?t+"ms":t,this.css({transitionProperty:r,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(o,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)},{"-webkit-transform":"transform"}),h=(t.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=l[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)},{transitionProperty:"",transitionDuration:"",transitionDelay:""});return t.removeTransitionStyles=function(){this.css(h)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),function(s,o){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,n){return o(s,t,e,i,n)}):"object"==typeof module&&module.exports?module.exports=o(s,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):s.Outlayer=o(s,s.EvEmitter,s.getSize,s.fizzyUIUtils,s.Outlayer.Item)}(window,function(t,c,s,n,o){"use strict";function a(t,e){var i=n.getQueryElement(t);i?(this.element=i,l&&(this.$element=l(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++u,this.element.outlayerGUID=e,(h[e]=this)._create(),this._getOption("initLayout")&&this.layout()):d&&d.error("Bad element for "+this.constructor.namespace+": "+(i||t))}function r(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}function e(){}var d=t.console,l=t.jQuery,u=0,h={},i=(a.namespace="outlayer",a.Item=o,a.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},a.prototype),p=(n.extend(i,c.prototype),i.option=function(t){n.extend(this.options,t)},i._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},a.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},i._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},i.reloadItems=function(){this.items=this._itemize(this.element.children)},i._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],s=0;s<e.length;s++){var o=new i(e[s],this);n.push(o)}return n},i._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},i.getItemElements=function(){return this.items.map(function(t){return t.element})},i.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},i._init=i.layout,i._resetLayout=function(){this.getSize()},i.getSize=function(){this.size=s(this.element)},i._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?s(i)[e]:n):this[t]=0},i.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},i._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},i._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},i._getItemLayoutPosition=function(){return{x:0,y:0}},i._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},i.updateStagger=function(){var t=this.options.stagger;return null==t?void(this.stagger=0):(this.stagger=function(t){if("number"==typeof t)return t;var e=(t=t.match(/(^\d*\.?\d*)(\w*)/))&&t[1],t=t&&t[2];return e.length?parseFloat(e)*(p[t]||1):0}(t),this.stagger)},i._positionItem=function(t,e,i,n,s){n?t.goTo(e,i):(t.stagger(s*this.stagger),t.moveTo(e,i))},i._postLayout=function(){this.resizeContainer()},i.resizeContainer=function(){var t;!this._getOption("resizeContainer")||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},i._getContainerSize=e,i._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},i._emitCompleteOnItems=function(e,t){function i(){o.dispatchEvent(e+"Complete",null,[t])}function n(){++s==a&&i()}var s,o=this,a=t.length;t&&a?(s=0,t.forEach(function(t){t.once(e,n)})):i()},i.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),l&&(this.$element=this.$element||l(this.element),e?((n=l.Event(e)).type=t,this.$element.trigger(n,i)):this.$element.trigger(t,i))},i.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},i.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},i.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},i.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},i._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),n.makeArray(t)},i._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},i._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},i._manageStamp=e,i._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=s(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},i.handleEvent=n.handleEvent,i.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},i.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},i.onresize=function(){this.resize()},n.debounceMethod(a,"onresize",100),i.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},i.needsResizeLayout=function(){var t=s(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},i.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},i.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},i.prepended=function(t){var e,t=this._itemize(t);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},i.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},i.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},i.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},i.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},i.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},i.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},i.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},i.destroy=function(){var t=this.element.style,t=(t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize(),this.element.outlayerGUID);delete h[t],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},a.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&h[t]},a.create=function(t,e){var i=r(a);return i.defaults=n.extend({},a.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},a.compatOptions),i.namespace=t,i.data=a.data,i.Item=r(o),n.htmlInit(i,t),l&&l.bridget&&l.bridget(t,i),i},{ms:1,s:1e3});return a.Item=o,a}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create,s=(i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var n=i[t];this.sortData[t]=n(this.element,this)}}},i.destroy);return i.destroy=function(){s.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(e,i){"use strict";function n(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var s=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){s[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),s.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},s._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},s.getColumnWidth=function(){this.getSegmentSize("column","Width")},s.getRowHeight=function(){this.getSegmentSize("row","Height")},s.getSegmentSize=function(t,e){var i,t=t+e,n="outer"+e;this._getMeasurement(t,n),this[t]||(i=this.getFirstItemSize(),this[t]=i&&i[n]||this.isotope.size["inner"+e])},s.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},s.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},s.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(s)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n}),function(t,e){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,r){var t=t.create("masonry"),e=(t.compatOptions.fitWidth="isFitWidth",t.prototype);return e._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},e.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(t=(t=this.items[0])&&t.element,this.columnWidth=t&&r(t).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,e=t-e%t,i=Math[e&&e<1?"round":"floor"](i);this.cols=Math.max(i,1)},e.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=r(t);this.containerWidth=t&&t.innerWidth},e._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,e=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),e=Math.min(e,this.cols),i=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](e,t),n={x:this.columnWidth*i.col,y:i.y},s=i.y+t.size.outerHeight,o=e+i.col,a=i.col;a<o;a++)this.colYs[a]=s;return n},e._getTopColPosition=function(t){var t=this._getTopColGroup(t),e=Math.min.apply(Math,t);return{col:t.indexOf(e),y:e}},e._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},e._getColGroupY=function(t,e){if(e<2)return this.colYs[t];t=this.colYs.slice(t,t+e);return Math.max.apply(Math,t)},e._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},e._manageStamp=function(t){var e=r(t),t=this._getElementOffset(t),i=this._getOption("originLeft")?t.left:t.right,n=i+e.outerWidth,i=Math.floor(i/this.columnWidth),i=Math.max(0,i),s=Math.floor(n/this.columnWidth);s-=n%this.columnWidth?0:1;for(var s=Math.min(this.cols-1,s),o=(this._getOption("originTop")?t.top:t.bottom)+e.outerHeight,a=i;a<=s;a++)this.colYs[a]=Math.max(o,this.colYs[a])},e._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},e._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},e.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},t}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i,t=t.create("masonry"),n=t.prototype,s={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in e.prototype)s[i]||(n[i]=e.prototype[i]);var o=n.measureColumns,a=(n.measureColumns=function(){this.items=this.isotope.filteredItems,o.call(this)},n._getOption);return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},t}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var t=t.create("fitRows"),e=t.prototype;return e._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},e._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter,i=(0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY),{x:this.x,y:this.y});return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},e._getContainerSize=function(){return{height:this.maxY}},t}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var t=t.create("vertical",{horizontalAlignment:0}),e=t.prototype;return e._resetLayout=function(){this.y=0},e._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},e._getContainerSize=function(){return{height:this.y}},t}),function(a,r){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(t,e,i,n,s,o){return r(a,t,0,i,n,s,o)}):"object"==typeof module&&module.exports?module.exports=r(a,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):a.Isotope=r(a,a.Outlayer,a.getSize,a.matchesSelector,a.fizzyUIUtils,a.Isotope.Item,a.Isotope.LayoutMode)}(window,function(t,i,c,n,o,e,s){var a=t.jQuery,r=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},l=i.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),t=(l.Item=e,l.LayoutMode=s,l.prototype),h=(t._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],s.modes)this._initLayoutMode(t)},t.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},t._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e<t.length;e++)t[e].id=this.itemGUID++;return this._updateItemsSortData(t),t},t._initLayoutMode=function(t){var e=s.modes[t],i=this.options[t]||{};this.options[t]=e.options?o.extend(e.options,i):i,this.modes[t]=new e(this)},t.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},t._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},t.arrange=function(t){this.option(t),this._getIsInstant();t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},t._init=t.arrange,t._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},t._getIsInstant=function(){var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;return this._isInstant=t},t._bindArrangeComplete=function(){function t(){e&&i&&n&&s.dispatchEvent("arrangeComplete",null,[s.filteredItems])}var e,i,n,s=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){n=!0,t()})},t._filter=function(t){for(var e=this.options.filter,i=[],n=[],s=[],o=this._getFilterTest(e||"*"),a=0;a<t.length;a++){var r,l=t[a];l.isIgnored||((r=o(l))&&i.push(l),r&&l.isHidden?n.push(l):r||l.isHidden||s.push(l))}return{matches:i,needReveal:n,needHide:s}},t._getFilterTest=function(e){return a&&this.options.isJQueryFiltering?function(t){return a(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return n(t.element,e)}},t.updateSortData=function(t){t=t?(t=o.makeArray(t),this.getItems(t)):this.items;this._getSorters(),this._updateItemsSortData(t)},t._getSorters=function(){var t,e=this.options.getSortData;for(t in e){var i=e[t];this._sorters[t]=h(i)}},t._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].updateSortData()},function(t){if("string"!=typeof t)return t;var e,i,n=(t=r(t).split(" "))[0],s=(s=n.match(/^\[(.+)\]$/))&&s[1],o=(i=n,(e=s)?function(t){return t.getAttribute(e)}:function(t){t=t.querySelector(i);return t&&t.textContent}),a=l.sortDataParsers[t[1]];return a?function(t){return t&&a(o(t))}:function(t){return t&&o(t)}}),d=(l.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},t._sort=function(){var t,a,r;this.options.sortBy&&(t=o.makeArray(this.options.sortBy),this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory)),a=this.sortHistory,r=this.options.sortAscending,this.filteredItems.sort(function(t,e){for(var i=0;i<a.length;i++){var n=a[i],s=t.sortData[n],o=e.sortData[n];if(o<s||s<o)return(o<s?1:-1)*((void 0!==r[n]?r[n]:r)?1:-1)}return 0}))},t._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},t._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},t._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},t._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},t._manageStamp=function(t){this._mode()._manageStamp(t)},t._getContainerSize=function(){return this._mode()._getContainerSize()},t.needsResizeLayout=function(){return this._mode().needsResizeLayout()},t.appended=function(t){var t=this.addItems(t);t.length&&(t=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(t))},t.prepended=function(t){var e,t=this._itemize(t);t.length&&(this._resetLayout(),this._manageStamps(),e=this._filterRevealAdded(t),this.layoutItems(this.filteredItems),this.filteredItems=e.concat(this.filteredItems),this.items=t.concat(this.items))},t._filterRevealAdded=function(t){t=this._filter(t);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},t.insert=function(t){var e=this.addItems(t);if(e.length){for(var i,n=e.length,s=0;s<n;s++)i=e[s],this.element.appendChild(i.element);t=this._filter(e).matches;for(s=0;s<n;s++)e[s].isLayoutInstant=!0;for(this.arrange(),s=0;s<n;s++)delete e[s].isLayoutInstant;this.reveal(t)}},t.remove);return t.remove=function(t){t=o.makeArray(t);var e=this.getItems(t);d.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var s=e[n];o.removeFrom(this.filteredItems,s)}},t.shuffle=function(){for(var t=0;t<this.items.length;t++)this.items[t].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},t._noTransition=function(t,e){var i=this.options.transitionDuration,t=(this.options.transitionDuration=0,t.apply(this,e));return this.options.transitionDuration=i,t},t.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},l}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}(this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;if(t&&e)return-1==(i=(i=this._events=this._events||{})[t]=i[t]||[]).indexOf(e)&&i.push(e),this},e.once=function(t,e){var i;if(t&&e)return this.on(t,e),((i=this._onceEvents=this._onceEvents||{})[t]=i[t]||[])[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,s=i[n];e=e||[];for(var o=this._onceEvents&&this._onceEvents[t];s;){var a=o&&o[s];a&&(this.off(t,s),delete o[s]),s.apply(this,e),s=i[n+=a?0:1]}return this}},t}),function(e,i){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("ev-emitter")):e.imagesLoaded=i(e,e.EvEmitter)}(window,function(e,t){function n(t,e){for(var i in e)t[i]=e[i];return t}function s(t,e,i){return this instanceof s?("string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=function(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}(t),this.options=n({},this.options),"function"==typeof e?i=e:n(this.options,e),i&&this.on("always",i),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(function(){this.check()}.bind(this))):new s(t,e,i)}function i(t){this.img=t}function o(t,e){this.url=t,this.element=e,this.img=new Image}var a=e.jQuery,r=e.console,l=((s.prototype=Object.create(t.prototype)).options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if("string"==typeof this.options.background)for(var o=t.querySelectorAll(this.options.background),n=0;n<o.length;n++){var a=o[n];this.addElementBackgroundImages(a)}}},{1:!0,9:!0,11:!0});return s.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var s=n&&n[2];s&&this.addBackground(s,t),n=i.exec(e.backgroundImage)}},s.prototype.addImage=function(t){t=new i(t);this.images.push(t)},s.prototype.addBackground=function(t,e){t=new o(t,e);this.images.push(t)},s.prototype.check=function(){function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}var n=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},s.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+i,t,e)},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(t.prototype)).check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},i.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(o.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},o.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(s.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((a=t).fn.imagesLoaded=function(t,e){return new s(this,t,e).jqDeferred.promise(a(this))})})(),s}),function(l,h,c){"use strict";h.infinitescroll=function(t,e,i){this.element=h(i),this._create(t,e)||(this.failed=!0)},h.infinitescroll.defaults={loading:{finished:c,finishedMsg:"<em>Congratulations, you've reached the end of the internet.</em>",img:"data:image/gif;base64,R0lGODlh3AATAPQeAPDy+MnQ6LW/4N3h8MzT6rjC4sTM5r/I5NHX7N7j8c7U6tvg8OLl8uXo9Ojr9b3G5MfP6Ovu9tPZ7PT1+vX2+tbb7vf4+8/W69jd7rC73vn5/O/x+K243ai02////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQECgD/ACwAAAAA3AATAAAF/6AnjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEj0BAScpHLJbDqf0Kh0Sq1ar9isdioItAKGw+MAKYMFhbF63CW438f0mg1R2O8EuXj/aOPtaHx7fn96goR4hmuId4qDdX95c4+RBIGCB4yAjpmQhZN0YGYGXitdZBIVGAsLoq4BBKQDswm1CQRkcG6ytrYKubq8vbfAcMK9v7q7EMO1ycrHvsW6zcTKsczNz8HZw9vG3cjTsMIYqQkCLBwHCgsMDQ4RDAYIqfYSFxDxEfz88/X38Onr16+Bp4ADCco7eC8hQYMAEe57yNCew4IVBU7EGNDiRn8Z831cGLHhSIgdFf9chIeBg7oA7gjaWUWTVQAGE3LqBDCTlc9WOHfm7PkTqNCh54rePDqB6M+lR536hCpUqs2gVZM+xbrTqtGoWqdy1emValeXKzggYBBB5y1acFNZmEvXAoN2cGfJrTv3bl69Ffj2xZt3L1+/fw3XRVw4sGDGcR0fJhxZsF3KtBTThZxZ8mLMgC3fRatCbYMNFCzwLEqLgE4NsDWs/tvqdezZf13Hvk2A9Szdu2X3pg18N+68xXn7rh1c+PLksI/Dhe6cuO3ow3NfV92bdArTqC2Ebd3A8vjf5QWfH6Bg7Nz17c2fj69+fnq+8N2Lty+fuP78/eV2X13neIcCeBRwxorbZrA1ANoCDGrgoG8RTshahQ9iSKEEzUmYIYfNWViUhheCGJyIP5E4oom7WWjgCeBFAJNv1DVV01MAdJhhjdkplWNzO/5oXI846njjVEIqR2OS2B1pE5PVscajkxhMycqLJghQSwT40PgfAl4GqNSXYdZXJn5gSkmmmmJu1aZYb14V51do+pTOCmA40AqVCIhG5IJ9PvYnhIFOxmdqhpaI6GeHCtpooisuutmg+Eg62KOMKuqoTaXgicQWoIYq6qiklmoqFV0UoeqqrLbq6quwxirrrLTWauutJ4QAACH5BAUKABwALAcABADOAAsAAAX/IPd0D2dyRCoUp/k8gpHOKtseR9yiSmGbuBykler9XLAhkbDavXTL5k2oqFqNOxzUZPU5YYZd1XsD72rZpBjbeh52mSNnMSC8lwblKZGwi+0QfIJ8CncnCoCDgoVnBHmKfByGJimPkIwtiAeBkH6ZHJaKmCeVnKKTHIihg5KNq4uoqmEtcRUtEREMBggtEr4QDrjCuRC8h7/BwxENeicSF8DKy82pyNLMOxzWygzFmdvD2L3P0dze4+Xh1Arkyepi7dfFvvTtLQkZBC0T/FX3CRgCMOBHsJ+EHYQY7OinAGECgQsB+Lu3AOK+CewcWjwxQeJBihtNGHSoQOE+iQ3//4XkwBBhRZMcUS6YSXOAwIL8PGqEaSJCiYt9SNoCmnJPAgUVLChdaoFBURN8MAzl2PQphwQLfDFd6lTowglHve6rKpbjhK7/pG5VinZP1qkiz1rl4+tr2LRwWU64cFEihwEtZgbgR1UiHaMVvxpOSwBA37kzGz9e8G+B5MIEKLutOGEsAH2ATQwYfTmuX8aETWdGPZmiZcccNSzeTCA1Sw0bdiitC7LBWgu8jQr8HRzqgpK6gX88QbrB14z/kF+ELpwB8eVQj/JkqdylAudji/+ts3039vEEfK8Vz2dlvxZKG0CmbkKDBvllRd6fCzDvBLKBDSCeffhRJEFebFk1k/Mv9jVIoIJZSeBggwUaNeB+Qk34IE0cXlihcfRxkOAJFFhwGmKlmWDiakZhUJtnLBpnWWcnKaAZcxI0piFGGLBm1mc90kajSCveeBVWKeYEoU2wqeaQi0PetoE+rr14EpVC7oAbAUHqhYExbn2XHHsVqbcVew9tx8+XJKk5AZsqqdlddGpqAKdbAYBn1pcczmSTdWvdmZ17c1b3FZ99vnTdCRFM8OEcAhLwm1NdXnWcBBSMRWmfkWZqVlsmLIiAp/o1gGV2vpS4lalGYsUOqXrddcKCmK61aZ8SjEpUpVFVoCpTj4r661Km7kBHjrDyc1RAIQAAIfkEBQoAGwAsBwAEAM4ACwAABf/gtmUCd4goQQgFKj6PYKi0yrrbc8i4ohQt12EHcal+MNSQiCP8gigdz7iCioaCIvUmZLp8QBzW0EN2vSlCuDtFKaq4RyHzQLEKZNdiQDhRDVooCwkbfm59EAmKi4SGIm+AjIsKjhsqB4mSjT2IOIOUnICeCaB/mZKFNTSRmqVpmJqklSqskq6PfYYCDwYHDC4REQwGCBLGxxIQDsHMwhAIX8bKzcENgSLGF9PU1j3Sy9zX2NrgzQziChLk1BHWxcjf7N046tvN82715czn9Pryz6Ilc4ACj4EBOCZM8KEnAYYADBRKnACAYUMFv1wotIhCEcaJCisqwJFgAUSQGyX/kCSVUUTIdKMwJlyo0oXHlhskwrTJciZHEXsgaqS4s6PJiCAr1uzYU8kBBSgnWFqpoMJMUjGtDmUwkmfVmVypakWhEKvXsS4nhLW5wNjVroJIoc05wSzTr0PtiigpYe4EC2vj4iWrFu5euWIMRBhacaVJhYQBEFjA9jHjyQ0xEABwGceGAZYjY0YBOrRLCxUp29QM+bRkx5s7ZyYgVbTqwwti2ybJ+vLtDYpycyZbYOlptxdx0kV+V7lC5iJAyyRrwYKxAdiz82ng0/jnAdMJFz0cPi104Ec1Vj9/M6F173vKL/feXv156dw11tlqeMMnv4V5Ap53GmjQQH97nFfg+IFiucfgRX5Z8KAgbUlQ4IULIlghhhdOSB6AgX0IVn8eReghen3NRIBsRgnH4l4LuEidZBjwRpt6NM5WGwoW0KSjCwX6yJSMab2GwwAPDXfaBCtWpluRTQqC5JM5oUZAjUNS+VeOLWpJEQ7VYQANW0INJSZVDFSnZphjSikfmzE5N4EEbQI1QJmnWXCmHulRp2edwDXF43txukenJwvI9xyg9Q26Z3MzGUcBYFEChZh6DVTq34AU8Iflh51Sd+CnKFYQ6mmZkhqfBKfSxZWqA9DZanWjxmhrWwi0qtCrt/43K6WqVjjpmhIqgEGvculaGKklKstAACEAACH5BAUKABwALAcABADOAAsAAAX/ICdyQmaMYyAUqPgIBiHPxNpy79kqRXH8wAPsRmDdXpAWgWdEIYm2llCHqjVHU+jjJkwqBTecwItShMXkEfNWSh8e1NGAcLgpDGlRgk7EJ/6Ae3VKfoF/fDuFhohVeDeCfXkcCQqDVQcQhn+VNDOYmpSWaoqBlUSfmowjEA+iEAEGDRGztAwGCDcXEA60tXEiCrq8vREMEBLIyRLCxMWSHMzExnbRvQ2Sy7vN0zvVtNfU2tLY3rPgLdnDvca4VQS/Cpk3ABwSLQkYAQwT/P309vcI7OvXr94jBQMJ/nskkGA/BQBRLNDncAIAiDcG6LsxAWOLiQzmeURBKWSLCQbv/1F0eDGinJUKR47YY1IEgQASKk7Yc7ACRwZm7mHweRJoz59BJUogisKCUaFMR0x4SlJBVBFTk8pZivTR0K73rN5wqlXEAq5Fy3IYgHbEzQ0nLy4QSoCjXLoom96VOJEeCosK5n4kkFfqXjl94wa+l1gvAcGICbewAOAxY8l/Ky/QhAGz4cUkGxu2HNozhwMGBnCUqUdBg9UuW9eUynqSwLHIBujePef1ZGQZXcM+OFuEBeBhi3OYgLyqcuaxbT9vLkf4SeqyWxSQpKGB2gQpm1KdWbu72rPRzR9Ne2Nu9Kzr/1Jqj0yD/fvqP4aXOt5sW/5qsXXVcv1Nsp8IBUAmgswGF3llGgeU1YVXXKTN1FlhWFXW3gIE+DVChApysACHHo7Q4A35lLichh+ROBmLKAzgYmYEYDAhCgxKGOOMn4WR4kkDaoBBOxJtdNKQxFmg5JIWIBnQc07GaORfUY4AEkdV6jHlCEISSZ5yTXpp1pbGZbkWmcuZmQCaE6iJ0FhjMaDjTMsgZaNEHFRAQVp3bqXnZED1qYcECOz5V6BhSWCoVJQIKuKQi2KFKEkEFAqoAo7uYSmO3jk61wUUMKmknJ4SGimBmAa0qVQBhAAAIfkEBQoAGwAsBwAEAM4ACwAABf/gJm5FmRlEqhJC+bywgK5pO4rHI0D3pii22+Mg6/0Ej96weCMAk7cDkXf7lZTTnrMl7eaYoy10JN0ZFdco0XAuvKI6qkgVFJXYNwjkIBcNBgR8TQoGfRsJCRuCYYQQiI+ICosiCoGOkIiKfSl8mJkHZ4U9kZMbKaI3pKGXmJKrngmug4WwkhA0lrCBWgYFCCMQFwoQDRHGxwwGCBLMzRLEx8iGzMMO0cYNeCMKzBDW19lnF9DXDIY/48Xg093f0Q3s1dcR8OLe8+Y91OTv5wrj7o7B+7VNQqABIoRVCMBggsOHE36kSoCBIcSH3EbFangxogJYFi8CkJhqQciLJEf/LDDJEeJIBT0GsOwYUYJGBS0fjpQAMidGmyVP6sx4Y6VQhzs9VUwkwqaCCh0tmKoFtSMDmBOf9phg4SrVrROuasRQAaxXpVUhdsU6IsECZlvX3kwLUWzRt0BHOLTbNlbZG3vZinArge5Dvn7wbqtQkSYAAgtKmnSsYKVKo2AfW048uaPmG386i4Q8EQMBAIAnfB7xBxBqvapJ9zX9WgRS2YMpnvYMGdPK3aMjt/3dUcNI4blpj7iwkMFWDXDvSmgAlijrt9RTR78+PS6z1uAJZIe93Q8g5zcsWCi/4Y+C8bah5zUv3vv89uft30QP23punGCx5954oBBwnwYaNCDY/wYrsYeggnM9B2Fpf8GG2CEUVWhbWAtGouEGDy7Y4IEJVrbSiXghqGKIo7z1IVcXIkKWWR361QOLWWnIhwERpLaaCCee5iMBGJQmJGyPFTnbkfHVZGRtIGrg5HALEJAZbu39BuUEUmq1JJQIPtZilY5hGeSWsSk52G9XqsmgljdIcABytq13HyIM6RcUA+r1qZ4EBF3WHWB29tBgAzRhEGhig8KmqKFv8SeCeo+mgsF7YFXa1qWSbkDpom/mqR1PmHCqJ3fwNRVXjC7S6CZhFVCQ2lWvZiirhQq42SACt25IK2hv8TprriUV1usGgeka7LFcNmCldMLi6qZMgFLgpw16Cipb7bC1knXsBiEAACH5BAUKABsALAcABADOAAsAAAX/4FZsJPkUmUGsLCEUTywXglFuSg7fW1xAvNWLF6sFFcPb42C8EZCj24EJdCp2yoegWsolS0Uu6fmamg8n8YYcLU2bXSiRaXMGvqV6/KAeJAh8VgZqCX+BexCFioWAYgqNi4qAR4ORhRuHY408jAeUhAmYYiuVlpiflqGZa5CWkzc5fKmbbhIpsAoQDRG8vQwQCBLCwxK6vb5qwhfGxxENahvCEA7NzskSy7vNzzzK09W/PNHF1NvX2dXcN8K55cfh69Luveol3vO8zwi4Yhj+AQwmCBw4IYclDAAJDlQggVOChAoLKkgFkSCAHDwWLKhIEOONARsDKryogFPIiAUb/95gJNIiw4wnI778GFPhzBKFOAq8qLJEhQpiNArjMcHCmlTCUDIouTKBhApELSxFWiGiVKY4E2CAekPgUphDu0742nRrVLJZnyrFSqKQ2ohoSYAMW6IoDpNJ4bLdILTnAj8KUF7UeENjAKuDyxIgOuGiOI0EBBMgLNew5AUrDTMGsFixwBIaNCQuAXJB57qNJ2OWm2Aj4skwCQCIyNkhhtMkdsIuodE0AN4LJDRgfLPtn5YDLdBlraAByuUbBgxQwICxMOnYpVOPej074OFdlfc0TqC62OIbcppHjV4o+LrieWhfT8JC/I/T6W8oCl29vQ0XjLdBaA3s1RcPBO7lFvpX8BVoG4O5jTXRQRDuJ6FDTzEWF1/BCZhgbyAKE9qICYLloQYOFtahVRsWYlZ4KQJHlwHS/IYaZ6sZd9tmu5HQm2xi1UaTbzxYwJk/wBF5g5EEYOBZeEfGZmNdFyFZmZIR4jikbLThlh5kUUVJGmRT7sekkziRWUIACABk3T4qCsedgO4xhgGcY7q5pHJ4klBBTQRJ0CeHcoYHHUh6wgfdn9uJdSdMiebGJ0zUPTcoS286FCkrZxnYoYYKWLkBowhQoBeaOlZAgVhLidrXqg2GiqpQpZ4apwSwRtjqrB3muoF9BboaXKmshlqWqsWiGt2wphJkQbAU5hoCACH5BAUKABsALAcABADOAAsAAAX/oGFw2WZuT5oZROsSQnGaKjRvilI893MItlNOJ5v5gDcFrHhKIWcEYu/xFEqNv6B1N62aclysF7fsZYe5aOx2yL5aAUGSaT1oTYMBwQ5VGCAJgYIJCnx1gIOBhXdwiIl7d0p2iYGQUAQBjoOFSQR/lIQHnZ+Ue6OagqYzSqSJi5eTpTxGcjcSChANEbu8DBAIEsHBChe5vL13G7fFuscRDcnKuM3H0La3EA7Oz8kKEsXazr7Cw9/Gztar5uHHvte47MjktznZ2w0G1+D3BgirAqJmJMAQgMGEgwgn5Ei0gKDBhBMALGRYEOJBb5QcWlQo4cbAihZz3GgIMqFEBSM1/4ZEOWPAgpIIJXYU+PIhRG8ja1qU6VHlzZknJNQ6UanCjQkWCIGSUGEjAwVLjc44+DTqUQtPPS5gejUrTa5TJ3g9sWCr1BNUWZI161StiQUDmLYdGfesibQ3XMq1OPYthrwuA2yU2LBs2cBHIypYQPPlYAKFD5cVvNPtW8eVGbdcQADATsiNO4cFAPkvHpedPzc8kUcPgNGgZ5RNDZG05reoE9s2vSEP79MEGiQGy1qP8LA4ZcdtsJE48ONoLTBtTV0B9LsTnPceoIDBDQvS7W7vfjVY3q3eZ4A339J4eaAmKqU/sV58HvJh2RcnIBsDUw0ABqhBA5aV5V9XUFGiHfVeAiWwoFgJJrIXRH1tEMiDFV4oHoAEGlaWhgIGSGBO2nFomYY3mKjVglidaNYJGJDkWW2xxTfbjCbVaOGNqoX2GloR8ZeTaECS9pthRGJH2g0b3Agbk6hNANtteHD2GJUucfajCQBy5OOTQ25ZgUPvaVVQmbKh9510/qQpwXx3SQdfk8tZJOd5b6JJFplT3ZnmmX3qd5l1eg5q00HrtUkUn0AKaiGjClSAgKLYZcgWXwocGRcCFGCKwSB6ceqphwmYRUFYT/1WKlOdUpipmxW0mlCqHjYkAaeoZlqrqZ4qd+upQKaapn/AmgAegZ8KUtYtFAQQAgAh+QQFCgAbACwHAAQAzgALAAAF/+C2PUcmiCiZGUTrEkKBis8jQEquKwU5HyXIbEPgyX7BYa5wTNmEMwWsSXsqFbEh8DYs9mrgGjdK6GkPY5GOeU6ryz7UFopSQEzygOGhJBjoIgMDBAcBM0V/CYqLCQqFOwobiYyKjn2TlI6GKC2YjJZknouaZAcQlJUHl6eooJwKooobqoewrJSEmyKdt59NhRKFMxLEEA4RyMkMEAjDEhfGycqAG8TQx9IRDRDE3d3R2ctD1RLg0ttKEnbY5wZD3+zJ6M7X2RHi9Oby7u/r9g38UFjTh2xZJBEBMDAboogAgwkQI07IMUORwocSJwCgWDFBAIwZOaJIsOBjRogKJP8wTODw5ESVHVtm3AhzpEeQElOuNDlTZ0ycEUWKWFASqEahGwYUPbnxoAgEdlYSqDBkgoUNClAlIHbSAoOsqCRQnQHxq1axVb06FWFxLIqyaze0Tft1JVqyE+pWXMD1pF6bYl3+HTqAWNW8cRUFzmih0ZAAB2oGKukSAAGGRHWJgLiR6AylBLpuHKKUMlMCngMpDSAa9QIUggZVVvDaJobLeC3XZpvgNgCmtPcuwP3WgmXSq4do0DC6o2/guzcseECtUoO0hmcsGKDgOt7ssBd07wqesAIGZC1YIBa7PQHvb1+SFo+++HrJSQfB33xfav3i5eX3Hnb4CTJgegEq8tH/YQEOcIJzbm2G2EoYRLgBXFpVmFYDcREV4HIcnmUhiGBRouEMJGJGzHIspqgdXxK0yCKHRNXoIX4uorCdTyjkyNtdPWrA4Up82EbAbzMRxxZRR54WXVLDIRmRcag5d2R6ugl3ZXzNhTecchpMhIGVAKAYpgJjjsSklBEd99maZoo535ZvdamjBEpusJyctg3h4X8XqodBMx0tiNeg/oGJaKGABpogS40KSqiaEgBqlQWLUtqoVQnytekEjzo0hHqhRorppOZt2p923M2AAV+oBtpAnnPNoB6HaU6mAAIU+IXmi3j2mtFXuUoHKwXpzVrsjcgGOauKEjQrwq157hitGq2NoWmjh7z6Wmxb0m5w66+2VRAuXN/yFUAIACH5BAUKABsALAcABADOAAsAAAX/4CZuRiaM45MZqBgIRbs9AqTcuFLE7VHLOh7KB5ERdjJaEaU4ClO/lgKWjKKcMiJQ8KgumcieVdQMD8cbBeuAkkC6LYLhOxoQ2PF5Ys9PKPBMen17f0CCg4VSh32JV4t8jSNqEIOEgJKPlkYBlJWRInKdiJdkmQlvKAsLBxdABA4RsbIMBggtEhcQsLKxDBC2TAS6vLENdJLDxMZAubu8vjIbzcQRtMzJz79S08oQEt/guNiyy7fcvMbh4OezdAvGrakLAQwyABsELQkY9BP+//ckyPDD4J9BfAMh1GsBoImMeQUN+lMgUJ9CiRMa5msxoB9Gh/o8GmxYMZXIgxtR/yQ46S/gQAURR0pDwYDfywoyLPip5AdnCwsMFPBU4BPFhKBDi444quCmDKZOfwZ9KEGpCKgcN1jdALSpPqIYsabS+nSqvqplvYqQYAeDPgwKwjaMtiDl0oaqUAyo+3TuWwUAMPpVCfee0cEjVBGQq2ABx7oTWmQk4FglZMGN9fGVDMCuiH2AOVOu/PmyxM630gwM0CCn6q8LjVJ8GXvpa5Uwn95OTC/nNxkda1/dLSK475IjCD6dHbK1ZOa4hXP9DXs5chJ00UpVm5xo2qRpoxptwF2E4/IbJpB/SDz9+q9b1aNfQH08+p4a8uvX8B53fLP+ycAfemjsRUBgp1H20K+BghHgVgt1GXZXZpZ5lt4ECjxYR4ScUWiShEtZqBiIInRGWnERNnjiBglw+JyGnxUmGowsyiiZg189lNtPGACjV2+S9UjbU0JWF6SPvEk3QZEqsZYTk3UAaRSUnznJI5LmESCdBVSyaOWUWLK4I5gDUYVeV1T9l+FZClCAUVA09uSmRHBCKAECFEhW51ht6rnmWBXkaR+NjuHpJ40D3DmnQXt2F+ihZxlqVKOfQRACACH5BAUKABwALAcABADOAAsAAAX/ICdyUCkUo/g8mUG8MCGkKgspeC6j6XEIEBpBUeCNfECaglBcOVfJFK7YQwZHQ6JRZBUqTrSuVEuD3nI45pYjFuWKvjjSkCoRaBUMWxkwBGgJCXspQ36Bh4EEB0oKhoiBgyNLjo8Ki4QElIiWfJqHnISNEI+Ql5J9o6SgkqKkgqYihamPkW6oNBgSfiMMDQkGCBLCwxIQDhHIyQwQCGMKxsnKVyPCF9DREQ3MxMPX0cu4wt7J2uHWx9jlKd3o39MiuefYEcvNkuLt5O8c1ePI2tyELXGQwoGDAQf+iEC2xByDCRAjTlAgIUWCBRgCPJQ4AQBFXAs0coT40WLIjRxL/47AcHLkxIomRXL0CHPERZkpa4q4iVKiyp0tR/7kwHMkTUBBJR5dOCEBAVcKKtCAyOHpowXCpk7goABqBZdcvWploACpBKkpIJI1q5OD2rIWE0R1uTZu1LFwbWL9OlKuWb4c6+o9i3dEgw0RCGDUG9KlRw56gDY2qmCByZBaASi+TACA0TucAaTteCcy0ZuOK3N2vJlx58+LRQyY3Xm0ZsgjZg+oPQLi7dUcNXi0LOJw1pgNtB7XG6CBy+U75SYfPTSQAgZTNUDnQHt67wnbZyvwLgKiMN3oCZB3C76tdewpLFgIP2C88rbi4Y+QT3+8S5USMICZXWj1pkEDeUU3lOYGB3alSoEiMIjgX4WlgNF2EibIwQIXauWXSRg2SAOHIU5IIIMoZkhhWiJaiFVbKo6AQEgQXrTAazO1JhkBrBG3Y2Y6EsUhaGn95hprSN0oWpFE7rhkeaQBchGOEWnwEmc0uKWZj0LeuNV3W4Y2lZHFlQCSRjTIl8uZ+kG5HU/3sRlnTG2ytyadytnD3HrmuRcSn+0h1dycexIK1KCjYaCnjCCVqOFFJTZ5GkUUjESWaUIKU2lgCmAKKQIUjHapXRKE+t2og1VgankNYnohqKJ2CmKplso6GKz7WYCgqxeuyoF8u9IQAgA7",msg:null,msgText:"<em>Loading the next set of posts...</em>",selector:null,speed:"fast",start:c},state:{isDuringAjax:!1,isInvalidPage:!1,isDestroyed:!1,isDone:!1,isPaused:!1,isBeyondMaxPage:!1,currPage:1},debug:!1,behavior:c,binder:h(l),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:!1,pathParse:c,dataType:"html",appendCallback:!0,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:c,path:c,prefill:!1,maxPage:c},h.infinitescroll.prototype={_binding:function(t){var e=this,i=e.options;if(i.v="2.0b2.120520",i.behavior&&this["_binding_"+i.behavior]!==c)this["_binding_"+i.behavior].call(this);else{if("bind"!==t&&"unbind"!==t)return this._debug("Binding value  "+t+" not valid"),!1;"unbind"===t?this.options.binder.unbind("smartscroll.infscr."+e.options.infid):this.options.binder[t]("smartscroll.infscr."+e.options.infid,function(){e.scroll()}),this._debug("Binding",t)}},_create:function(t,n){var s=h.extend(!0,{},h.infinitescroll.defaults,t),o=(this.options=s,h(l));if(!this._validate(t))return!1;var e=h(s.nextSelector).attr("href");if(!e)return this._debug("Navigation selector not found"),!1;s.path=s.path||this._determinepath(e),s.contentSelector=s.contentSelector||this.element,s.loading.selector=s.loading.selector||s.contentSelector,s.loading.msg=s.loading.msg||h('<div id="infscr-loading"><div class="spinner"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div><div class="text">'+s.loading.msgText+"</div></div>"),(new Image).src=s.loading.img,s.pixelsFromNavToBottom===c&&(s.pixelsFromNavToBottom=h(document).height()-h(s.navSelector).offset().top,this._debug("pixelsFromNavToBottom: "+s.pixelsFromNavToBottom));var i=this;return s.loading.start=s.loading.start||function(){h(s.navSelector).hide(),s.loading.msg.appendTo(s.loading.selector).fadeIn(s.loading.speed,h.proxy(function(){this.beginAjax(s)},i))},s.loading.finished=s.loading.finished||function(){s.state.isBeyondMaxPage||s.loading.msg.fadeOut(s.loading.speed)},s.callback=function(t,e,i){s.behavior&&t["_callback_"+s.behavior]!==c&&t["_callback_"+s.behavior].call(h(s.contentSelector)[0],e,i),n&&n.call(h(s.contentSelector)[0],e,s,i),s.prefill&&o.bind("resize.infinite-scroll",t._prefill)},t.debug&&(!Function.prototype.bind||"object"!=typeof console&&"function"!=typeof console||"object"!=typeof console.log||["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(t){console[t]=this.call(console[t],console)},Function.prototype.bind)),this._setup(),s.prefill&&this._prefill(),!0},_prefill:function(){function t(){return e.options.contentSelector.height()<=i.height()}var e=this,i=h(l);this._prefill=function(){t()&&e.scroll(),i.bind("resize.infinite-scroll",function(){t()&&(i.unbind("resize.infinite-scroll"),e.scroll())})},this._prefill()},_debug:function(){!0===this.options.debug&&("undefined"!=typeof console&&"function"==typeof console.log?1===Array.prototype.slice.call(arguments).length&&"string"==typeof Array.prototype.slice.call(arguments)[0]?console.log(Array.prototype.slice.call(arguments).toString()):console.log(Array.prototype.slice.call(arguments)):Function.prototype.bind||"undefined"==typeof console||"object"!=typeof console.log||Function.prototype.call.call(console.log,console,Array.prototype.slice.call(arguments)))},_determinepath:function(t){var e=this.options;if(e.behavior&&this["_determinepath_"+e.behavior]!==c)return this["_determinepath_"+e.behavior].call(this,t);if(e.pathParse)return this._debug("pathParse manual"),e.pathParse(t,this.options.state.currPage+1);if(t.match(/^(.*?)\b2\b(.*?$)/))t=t.match(/^(.*?)\b2\b(.*?$)/).slice(1);else if(t.match(/^(.*?)2(.*?$)/)){if(t.match(/^(.*?page=)2(\/.*|$)/))return t=t.match(/^(.*?page=)2(\/.*|$)/).slice(1);t=t.match(/^(.*?)2(.*?$)/).slice(1)}else{if(t.match(/^(.*?page=)1(\/.*|$)/))return t=t.match(/^(.*?page=)1(\/.*|$)/).slice(1);this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com."),e.state.isInvalidPage=!0}return this._debug("determinePath",t),t},_error:function(t){var e=this.options;e.behavior&&this["_error_"+e.behavior]!==c?this["_error_"+e.behavior].call(this,t):(this._debug("Error",t="destroy"!==t&&"end"!==t?"unknown":t),"end"!==t&&!e.state.isBeyondMaxPage||this._showdonemsg(),e.state.isDone=!0,e.state.currPage=1,e.state.isPaused=!1,e.state.isBeyondMaxPage=!1,this._binding("unbind"))},_loadcallback:function(t,e,i){var n,s=this.options,o=this.options.callback,a=s.state.isDone?"done":s.appendCallback?"append":"no-append";if(s.behavior&&this["_loadcallback_"+s.behavior]!==c)this["_loadcallback_"+s.behavior].call(this,t,e);else{switch(a){case"done":return this._showdonemsg(),!1;case"no-append":"html"===s.dataType&&(e=h(e="<div>"+e+"</div>").find(s.itemSelector));break;case"append":var r=t.children();if(0===r.length)return this._error("end");for(n=document.createDocumentFragment();t[0].firstChild;)n.appendChild(t[0].firstChild);this._debug("contentSelector",h(s.contentSelector)[0]),h(s.contentSelector)[0].appendChild(n),e=r.get()}s.loading.finished.call(h(s.contentSelector)[0],s),s.animate&&(a=h(l).scrollTop()+h(s.loading.msg).height()+s.extraScrollPx+"px",h("html,body").animate({scrollTop:a},800,function(){s.state.isDuringAjax=!1})),s.animate||(s.state.isDuringAjax=!1),o(this,e,i),s.prefill&&this._prefill()}},_nearbottom:function(){var t=this.options,e=0+h(document).height()-t.binder.scrollTop()-h(l).height();return t.behavior&&this["_nearbottom_"+t.behavior]!==c?this["_nearbottom_"+t.behavior].call(this):(this._debug("math:",e,t.pixelsFromNavToBottom),e-t.bufferPx<t.pixelsFromNavToBottom)},_pausing:function(t){var e=this.options;if(!e.behavior||this["_pausing_"+e.behavior]===c){switch("pause"!==t&&"resume"!==t&&null!==t&&this._debug("Invalid argument. Toggling pause value instead"),t=!t||"pause"!==t&&"resume"!==t?"toggle":t){case"pause":e.state.isPaused=!0;break;case"resume":e.state.isPaused=!1;break;case"toggle":e.state.isPaused=!e.state.isPaused}return this._debug("Paused",e.state.isPaused),!1}this["_pausing_"+e.behavior].call(this,t)},_setup:function(){var t=this.options;if(!t.behavior||this["_setup_"+t.behavior]===c)return this._binding("bind"),!1;this["_setup_"+t.behavior].call(this)},_showdonemsg:function(){var t=this.options;t.behavior&&this["_showdonemsg_"+t.behavior]!==c?this["_showdonemsg_"+t.behavior].call(this):(t.loading.msg.find(".spinner").animate({opacity:0},500).parent().find("div.text").addClass("all-loaded").html(t.loading.finishedMsg).animate({opacity:.8},2e3,function(){h(this).parent().fadeOut(t.loading.speed)}),t.errorCallback.call(h(t.contentSelector)[0],"done"))},_validate:function(t){for(var e in t)if(e.indexOf&&-1<e.indexOf("Selector")&&0===h(t[e]).length)return this._debug("Your "+e+" found no elements."),!1;return!0},bind:function(){this._binding("bind")},destroy:function(){return this.options.state.isDestroyed=!0,this.options.loading.finished(),this._error("destroy")},pause:function(){this._pausing("pause")},resume:function(){this._pausing("resume")},beginAjax:function(n){var s,o,t,a,r=this,e=n.path;if(n.state.currPage++,n.maxPage!=c&&n.state.currPage>n.maxPage)return n.state.isBeyondMaxPage=!0,void this.destroy();switch(s=h(n.contentSelector).is("table, tbody")?h("<tbody/>"):h("<div/>"),o="function"==typeof e?e(n.state.currPage):e.join(n.state.currPage),r._debug("heading into ajax",o),t="html"===n.dataType||"json"===n.dataType?n.dataType:"html+callback",n.appendCallback&&"html"===n.dataType&&(t+="+callback"),t){case"html+callback":r._debug("Using HTML via .load() method"),s.load(o+" "+n.itemSelector,c,function(t){r._loadcallback(s,t,o)});break;case"html":r._debug("Using "+t.toUpperCase()+" via $.ajax() method"),h.ajax({url:o,dataType:n.dataType,complete:function(t,e){(a=void 0!==t.isResolved?t.isResolved():"success"===e||"notmodified"===e)?r._loadcallback(s,t.responseText,o):r._error("end")}});break;case"json":r._debug("Using "+t.toUpperCase()+" via $.ajax() method"),h.ajax({dataType:"json",type:"GET",url:o,success:function(t,e,i){a=void 0!==i.isResolved?i.isResolved():"success"===e||"notmodified"===e,n.appendCallback?n.template!==c?(i=n.template(t),s.append(i),a?r._loadcallback(s,i):r._error("end")):(r._debug("template must be defined."),r._error("end")):a?r._loadcallback(s,t,o):r._error("end")},error:function(){r._debug("JSON ajax request failed."),r._error("end")}})}},retrieve:function(t){t=t||null;var e=this.options;if(e.behavior&&this["retrieve_"+e.behavior]!==c)this["retrieve_"+e.behavior].call(this,t);else{if(e.state.isDestroyed)return this._debug("Instance is destroyed"),!1;e.state.isDuringAjax=!0,e.loading.start.call(h(e.contentSelector)[0],e)}},scroll:function(){var t=this.options,e=t.state;t.behavior&&this["scroll_"+t.behavior]!==c?this["scroll_"+t.behavior].call(this):e.isDuringAjax||e.isInvalidPage||e.isDone||e.isDestroyed||e.isPaused||this._nearbottom()&&this.retrieve()},toggle:function(){this._pausing()},unbind:function(){this._binding("unbind")},update:function(t){h.isPlainObject(t)&&(this.options=h.extend(!0,this.options,t))}},h.fn.infinitescroll=function(e,i){switch(typeof e){case"string":var n=Array.prototype.slice.call(arguments,1);this.each(function(){var t=h.data(this,"infinitescroll");return!!t&&(!(!h.isFunction(t[e])||"_"===e.charAt(0))&&void t[e].apply(t,n))});break;case"object":this.each(function(){var t=h.data(this,"infinitescroll");t?t.update(e):(t=new h.infinitescroll(e,i,this)).failed||h.data(this,"infinitescroll",t)})}return this};var s,t=h.event;t.special.smartscroll={setup:function(){h(this).bind("scroll",t.special.smartscroll.handler)},teardown:function(){h(this).unbind("scroll",t.special.smartscroll.handler)},handler:function(t,e){var i=this,n=arguments;t.type="smartscroll",s&&clearTimeout(s),s=setTimeout(function(){h(i).trigger("smartscroll",n)},"execAsap"===e?0:100)}},h.fn.smartscroll=function(t){return t?this.bind("smartscroll",t):this.trigger("smartscroll",["execAsap"])}}(window,jQuery),function(b,i){"use strict";function r(t){return t.cloneNode(!0)}function t(t,e){d[t]=d[t]||[],d[t].push(e)}function l(f,m,t,g){var e,y=f.getAttribute("data-src")||f.getAttribute("src");/\.svg/i.test(y)?n?-1===x.indexOf(f)&&(x.push(f),f.setAttribute("src",""),s(y,function(s){if(void 0===s||"string"==typeof s)return g(s),!1;var t=f.getAttribute("id"),t=(t&&s.setAttribute("id",t),f.getAttribute("title")),t=(t&&s.setAttribute("title",t),[].concat(s.getAttribute("class")||[],"injected-svg",f.getAttribute("class")||[]).join(" ")),t=(s.setAttribute("class",function(t){for(var e={},i=(t=t.split(" ")).length,n=[];i--;)e.hasOwnProperty(t[i])||(e[t[i]]=1,n.unshift(t[i]));return n.join(" ")}(t)),f.getAttribute("style")),t=(t&&s.setAttribute("style",t),[].filter.call(f.attributes,function(t){return/^data-\w[\w\-]*$/.test(t.name)}));v.call(t,function(t){t.name&&t.value&&s.setAttribute(t.name,t.value)});var o,c,a,r,d={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(d).forEach(function(t){c=d[t];for(var n,e=0,i=(o=s.querySelectorAll("defs "+t+"[id]")).length;e<i;e++)a=o[e].id,r=a+"-"+w,v.call(c,function(t){for(var e=0,i=(n=s.querySelectorAll("["+t+'*="'+a+'"]')).length;e<i;e++)n[e].setAttribute(t,"url(#"+r+")")}),o[e].id=r}),s.removeAttribute("xmlns:a");for(var e,i=s.querySelectorAll("script"),n=[],l=0,u=i.length;l<u;l++)(e=i[l].getAttribute("type"))&&"application/ecmascript"!==e&&"application/javascript"!==e||(e=i[l].innerText||i[l].textContent,n.push(e),s.removeChild(i[l]));if(0<n.length&&("always"===m||"once"===m&&!C[y])){for(var h=0,p=n.length;h<p;h++)new Function(n[h])(b);C[y]=!0}t=s.querySelectorAll("style");v.call(t,function(t){t.textContent+=""}),f.parentNode.replaceChild(s,f),delete x[x.indexOf(f)],f=null,w++,g(s)})):(e=f.getAttribute("data-fallback")||f.getAttribute("data-png"))?(f.setAttribute("src",e),g(null)):t?(f.setAttribute("src",t+"/"+y.split("/").pop().replace(".svg",".png")),g(null)):g("This browser does not support SVG and no PNG fallback was defined."):g("Attempted to inject a file with a non-svg extension: "+y)}function e(e,t,i){var n,s=(t=t||{}).evalScripts||"always",o=t.pngFallback||!1,a=t.each;void 0!==e.length?(n=0,v.call(e,function(t){l(t,s,o,function(t){a&&"function"==typeof a&&a(t),i&&e.length===++n&&i(n)})})):e?l(e,s,o,function(t){a&&"function"==typeof a&&a(t),i&&i(1),e=null}):i&&i(0)}var h="file:"===b.location.protocol,n=i.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"),v=Array.prototype.forEach||function(t,e){if(null==this||"function"!=typeof t)throw new TypeError;for(var i=this.length>>>0,n=0;n<i;++n)n in this&&t.call(e,this[n],n,this)},c={},w=0,x=[],d=[],C={},s=function(s,o){if(void 0!==c[s])c[s]instanceof SVGSVGElement?o(r(c[s])):t(s,o);else{if(!b.XMLHttpRequest)return o("Browser does not support XMLHttpRequest"),!1;c[s]={},t(s,o);var a=new XMLHttpRequest;a.onreadystatechange=function(){if(4===a.readyState){if(404===a.status||null===a.responseXML)return o("Unable to load SVG file: "+s),h&&o("Note: SVG injection ajax calls do not work locally without adjusting security setting in your browser. Or consider using a local webserver."),o(),!1;if(!(200===a.status||h&&0===a.status))return o("There was a problem injecting the SVG: "+a.status+" "+a.statusText),!1;if(a.responseXML instanceof Document)c[s]=a.responseXML.documentElement;else if(DOMParser&&DOMParser instanceof Function){try{var e=(new DOMParser).parseFromString(a.responseText,"text/xml")}catch(t){e=void 0}if(!e||e.getElementsByTagName("parsererror").length)return o("Unable to parse SVG file: "+s),!1;c[s]=e.documentElement}for(var i=s,t=0,n=d[i].length;t<n;t++)!function(t){setTimeout(function(){d[i][t](r(c[i]))},0)}(t)}},a.open("GET",s),a.overrideMimeType&&a.overrideMimeType("text/xml"),a.send()}};"object"==typeof module&&"object"==typeof module.exports?module.exports=exports=e:"function"==typeof define&&define.amd?define(function(){return e}):"object"==typeof b&&(b.SVGInjector=e)}(window,document),function(l){var i,h,e,s,n,c=/[\t\r\n]/g,d=/\s+/,o="[\\x20\\t\\r\\n\\f]",t=(l.fn.addClass=(l.fn.addClass,function(e){var t,i,n,s,o,a,r;if(jQuery.isFunction(e))return this.each(function(t){jQuery(this).addClass(e.call(this,t,this.className))});if(e&&"string"==typeof e)for(t=e.split(d),i=0,n=this.length;i<n;i++)if(1===(s=this[i]).nodeType)if(s.className&&s.getAttribute("class")||1!==t.length){for(o=" "+(o=l.svg.isSVGElem(s)?s.className?s.className.baseVal:s.getAttribute("class"):s.className)+" ",a=0,r=t.length;a<r;a++)o.indexOf(" "+t[a]+" ")<0&&(o+=t[a]+" ");o=jQuery.trim(o),l.svg.isSVGElem(s)?s.className?s.className.baseVal=o:s.setAttribute("class",o):s.className=o}else l.svg.isSVGElem(s)?s.className?s.className.baseVal=e:s.setAttribute("class",e):s.className=e;return this}),l.fn.removeClass=(l.fn.removeClass,function(e){var t,i,n,s,o,a,r;if(jQuery.isFunction(e))return this.each(function(t){jQuery(this).removeClass(e.call(this,t,this.className))});if(e&&"string"==typeof e||void 0===e)for(t=(e||"").split(d),i=0,n=this.length;i<n;i++)if(1===(s=this[i]).nodeType&&(s.className||s.getAttribute("class"))){if(e){for(o=(" "+(o=l.svg.isSVGElem(s)?s.className?s.className.baseVal:s.getAttribute("class"):s.className)+" ").replace(c," "),a=0,r=t.length;a<r;a++)for(;0<=o.indexOf(" "+t[a]+" ");)o=o.replace(" "+t[a]+" "," ");o=jQuery.trim(o)}else o="";l.svg.isSVGElem(s)?s.className?s.className.baseVal=o:s.setAttribute("class",o):s.className=o}return this}),l.fn.toggleClass=(i=l.fn.toggleClass,function(t,e){return this.each(function(){l.svg.isSVGElem(this)?("boolean"!=typeof e&&(e=!l(this).hasClass(t)),l(this)[(e?"add":"remove")+"Class"](t)):i.apply(l(this),[t,e])})}),l.fn.hasClass=(l.fn.hasClass,function(t){for(var e,i=" "+t+" ",n=0,s=this.length;n<s;n++)if(1===(e=this[n]).nodeType&&-1<(" "+(l.svg.isSVGElem(e)?e.className?e.className.baseVal:e.getAttribute("class"):e.className)+" ").replace(c," ").indexOf(i))return!0;return!1}),l.fn.attr=(h=l.fn.attr,function(t,e,i){var n=arguments;if("string"==typeof t&&void 0===e){var s=h.apply(this,n);if(s&&s.baseVal&&null!=s.baseVal.numberOfItems)if(e="",s=s.baseVal,"transform"==t){for(var o=0;o<s.numberOfItems;o++){var a=s.getItem(o);switch(a.type){case 1:e+=" matrix("+a.matrix.a+","+a.matrix.b+","+a.matrix.c+","+a.matrix.d+","+a.matrix.e+","+a.matrix.f+")";break;case 2:e+=" translate("+a.matrix.e+","+a.matrix.f+")";break;case 3:e+=" scale("+a.matrix.a+","+a.matrix.d+")";break;case 4:e+=" rotate("+a.angle+")";break;case 5:e+=" skewX("+a.angle+")";break;case 6:e+=" skewY("+a.angle+")"}}s=e.substring(1)}else s=s.getItem(0).valueAsString;return s&&s.baseVal?s.baseVal.valueAsString:s}var r=t;return"string"==typeof t&&((r={})[t]=e),l(this).each(function(){if(l.svg.isSVGElem(this))for(var t in r){var e=l.isFunction(r[t])?r[t]():r[t];i?this.style[t]=e:this.setAttribute(t,e)}else h.apply(l(this),n)})}),l.fn.removeAttr=(e=l.fn.removeAttr,function(t){return this.each(function(){l.svg.isSVGElem(this)?this[t]&&this[t].baseVal?this[t].baseVal.value="":this.setAttribute(t,""):e.apply(l(this),[t])})}),l.extend(l.cssNumber,{stopOpacity:!0,strokeMitrelimit:!0,strokeOpacity:!0}),l.cssProps&&(l.css=(s=l.css,function(t,e,i,n){return(e.match(/^svg.*/)?l(t).attr(l.cssProps[e]||e):"")||s(t,e,i,n)})),l.find.isXML=(n=l.find.isXML,function(t){return l.svg.isSVGElem(t)||n(t)}),document.createElement("div"));t.appendChild(document.createComment("")),0<t.getElementsByTagName("*").length&&(l.expr.find.TAG=function(t,e){var i=e.getElementsByTagName(t[1]);if("*"===t[1]){for(var n=[],s=0;i[s]||i.item(s);s++)1===(i[s]||i.item(s)).nodeType&&n.push(i[s]||i.item(s));i=n}return i}),l.expr.filter.CLASS=function(t){var e=new RegExp("(^|"+o+")"+t+"("+o+"|$)");return function(t){t=l.svg.isSVGElem(t)?t.className?t.className.baseVal:t.getAttribute("class"):t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"";return e.test(t)}}}(jQuery),function(p){function t(){this._settings=[],this._extensions=[],this.regional=[],this.regional[""]={errorLoadingText:"Error loading",notSupportedText:"This browser does not support SVG"},this.local=this.regional[""],this._uuid=(new Date).getTime(),this._renesis=function(t){try{return!(!window.ActiveXObject||!new ActiveXObject(t))}catch(t){return!1}}("RenesisX.RenesisCtrl")}var s="svgwrapper";function e(t,e){this._svg=t,this._container=e;for(var i=0;i<p.svg._extensions.length;i++){var n=p.svg._extensions[i];this[n[0]]=new n[1](this)}}function i(){this._path=""}function n(){this._parts=[]}function c(t){return t&&t.constructor==Array}p.extend(t.prototype,{markerClassName:"hasSVG",svgNS:"http://www.w3.org/2000/svg",xlinkNS:"http://www.w3.org/1999/xlink",_wrapperClass:e,_attrNames:{class_:"class",in_:"in",alignmentBaseline:"alignment-baseline",baselineShift:"baseline-shift",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",vertAdvY:"vert-adv-y",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode"},_attachSVG:function(e,i){var t=e.namespaceURI==this.svgNS?e:null;if(!p((e=t?null:e)||t).hasClass(this.markerClassName)){"string"==typeof i?i={loadURL:i}:"function"==typeof i&&(i={onLoad:i}),p(e||t).addClass(this.markerClassName);try{t||((t=document.createElementNS(this.svgNS,"svg")).setAttribute("version","1.1"),0<e.clientWidth&&t.setAttribute("width",e.clientWidth),0<e.clientHeight&&t.setAttribute("height",e.clientHeight),e.appendChild(t)),this._afterLoad(e,t,i||{})}catch(t){p.browser.msie?(e.id||(e.id="svg"+this._uuid++),this._settings[e.id]=i,e.innerHTML='<embed type="image/svg+xml" width="100%" height="100%" src="'+(i.initPath||"")+'blank.svg" pluginspage="http://www.adobe.com/svg/viewer/install/main.html"/>'):e.innerHTML='<p class="svg_error">'+this.local.notSupportedText+"</p>"}}},_registerSVG:function(){for(var t=0;t<document.embeds.length;t++){var e=document.embeds[t].parentNode;if(p(e).hasClass(p.svg.markerClassName)&&!p.data(e,s)){var i=null;try{i=document.embeds[t].getSVGDocument()}catch(t){return void setTimeout(p.svg._registerSVG,250)}(i=i?i.documentElement:null)&&p.svg._afterLoad(e,i)}}},_afterLoad:function(t,e,i){var i=i||this._settings[t.id],n=(this._settings[t?t.id:""]=null,new this._wrapperClass(e,t));p.data(t||e,s,n);try{i.loadURL&&n.load(i.loadURL,i),i.settings&&n.configure(i.settings),i.onLoad&&!i.loadURL&&i.onLoad.apply(t||e,[n])}catch(t){alert(t)}},_getSVG:function(t){return t="string"==typeof t?p(t)[0]:t.jquery?t[0]:t,p.data(t,s)},_destroySVG:function(t){var e=p(t);e.hasClass(this.markerClassName)&&(e.removeClass(this.markerClassName),t.namespaceURI!=this.svgNS&&e.empty(),p.removeData(t,s))},addExtension:function(t,e){this._extensions.push([t,e])},isSVGElem:function(t){return 1==t.nodeType&&t.namespaceURI==p.svg.svgNS}}),p.extend(e.prototype,{_width:function(){return this._container?this._container.clientWidth:this._svg.width},_height:function(){return this._container?this._container.clientHeight:this._svg.height},root:function(){return this._svg},configure:function(t,e,i){if(t.nodeName||(i=e,e=t,t=this._svg),i)for(var n=t.attributes.length-1;0<=n;n--){var s=t.attributes.item(n);"onload"!=s.nodeName&&"version"!=s.nodeName&&"xmlns"!=s.nodeName.substring(0,5)&&t.attributes.removeNamedItem(s.nodeName)}for(var o in e)t.setAttribute(p.svg._attrNames[o]||o,e[o]);return this},getElementById:function(t){return this._svg.ownerDocument.getElementById(t)},change:function(t,e){if(t)for(var i in e)null==e[i]?t.removeAttribute(p.svg._attrNames[i]||i):t.setAttribute(p.svg._attrNames[i]||i,e[i]);return this},_args:function(t,e,i){e.splice(0,0,"parent"),e.splice(e.length,0,"settings");var n={},s=0;null!=t[0]&&t[0].jquery&&(t[0]=t[0][0]),null==t[0]||"object"==typeof t[0]&&t[0].nodeName||(n.parent=null,s=1);for(var o=0;o<t.length;o++)n[e[o+s]]=t[o];return i&&p.each(i,function(t,e){"object"==typeof n[e]&&(n.settings=n[e],n[e]=null)}),n},title:function(t,e,i){var n=this._args(arguments,["text"]),s=this._makeNode(n.parent,"title",n.settings||{});return s.appendChild(this._svg.ownerDocument.createTextNode(n.text)),s},describe:function(t,e,i){var n=this._args(arguments,["text"]),s=this._makeNode(n.parent,"desc",n.settings||{});return s.appendChild(this._svg.ownerDocument.createTextNode(n.text)),s},defs:function(t,e,i){var n=this._args(arguments,["id"],["id"]);return this._makeNode(n.parent,"defs",p.extend(n.id?{id:n.id}:{},n.settings||{}))},symbol:function(t,e,i,n,s,o,a){var r=this._args(arguments,["id","x1","y1","width","height"]);return this._makeNode(r.parent,"symbol",p.extend({id:r.id,viewBox:r.x1+" "+r.y1+" "+r.width+" "+r.height},r.settings||{}))},marker:function(t,e,i,n,s,o,a,r){var l=this._args(arguments,["id","refX","refY","mWidth","mHeight","orient"],["orient"]);return this._makeNode(l.parent,"marker",p.extend({id:l.id,refX:l.refX,refY:l.refY,markerWidth:l.mWidth,markerHeight:l.mHeight,orient:l.orient||"auto"},l.settings||{}))},style:function(t,e,i){var n=this._args(arguments,["styles"]),s=this._makeNode(n.parent,"style",p.extend({type:"text/css"},n.settings||{}));return s.appendChild(this._svg.ownerDocument.createTextNode(n.styles)),p.browser.opera&&p("head").append('<style type="text/css">'+n.styles+"</style>"),s},script:function(t,e,i,n){var s=this._args(arguments,["script","type"],["type"]),o=this._makeNode(s.parent,"script",p.extend({type:s.type||"text/javascript"},s.settings||{}));return o.appendChild(this._svg.ownerDocument.createTextNode(s.script)),p.browser.mozilla||p.globalEval(s.script),o},linearGradient:function(t,e,i,n,s,o,a,h){var r=this._args(arguments,["id","stops","x1","y1","x2","y2"],["x1"]),l=p.extend({id:r.id},null!=r.x1?{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}:{});return this._gradient(r.parent,"linearGradient",p.extend(l,r.settings||{}),r.stops)},radialGradient:function(t,e,i,n,s,o,a,h,c){var r=this._args(arguments,["id","stops","cx","cy","r","fx","fy"],["cx"]),l=p.extend({id:r.id},null!=r.cx?{cx:r.cx,cy:r.cy,r:r.r,fx:r.fx,fy:r.fy}:{});return this._gradient(r.parent,"radialGradient",p.extend(l,r.settings||{}),r.stops)},_gradient:function(t,e,i,n){for(var s=this._makeNode(t,e,i),o=0;o<n.length;o++){var a=n[o];this._makeNode(s,"stop",p.extend({offset:a[0],stopColor:a[1]},null!=a[2]?{stopOpacity:a[2]}:{}))}return s},pattern:function(t,e,i,n,s,o,a,h,c,d,u){var r=this._args(arguments,["id","x","y","width","height","vx","vy","vwidth","vheight"],["vx"]),l=p.extend({id:r.id,x:r.x,y:r.y,width:r.width,height:r.height},null!=r.vx?{viewBox:r.vx+" "+r.vy+" "+r.vwidth+" "+r.vheight}:{});return this._makeNode(r.parent,"pattern",p.extend(l,r.settings||{}))},clipPath:function(t,e,i,n){var s=this._args(arguments,["id","units"]);return s.units=s.units||"userSpaceOnUse",this._makeNode(s.parent,"clipPath",p.extend({id:s.id,clipPathUnits:s.units},s.settings||{}))},mask:function(t,e,i,n,s,o,a){var r=this._args(arguments,["id","x","y","width","height"]);return this._makeNode(r.parent,"mask",p.extend({id:r.id,x:r.x,y:r.y,width:r.width,height:r.height},r.settings||{}))},createPath:function(){return new i},createText:function(){return new n},svg:function(t,e,i,n,s,o,a,h,c,d){var r=this._args(arguments,["x","y","width","height","vx","vy","vwidth","vheight"],["vx"]),l=p.extend({x:r.x,y:r.y,width:r.width,height:r.height},null!=r.vx?{viewBox:r.vx+" "+r.vy+" "+r.vwidth+" "+r.vheight}:{});return this._makeNode(r.parent,"svg",p.extend(l,r.settings||{}))},group:function(t,e,i){var n=this._args(arguments,["id"],["id"]);return this._makeNode(n.parent,"g",p.extend({id:n.id},n.settings||{}))},use:function(t,e,i,n,s,o,a){var r=this._args(arguments,["x","y","width","height","ref"]),l=("string"==typeof r.x&&(r.ref=r.x,r.settings=r.y,r.x=r.y=r.width=r.height=null),this._makeNode(r.parent,"use",p.extend({x:r.x,y:r.y,width:r.width,height:r.height},r.settings||{})));return l.setAttributeNS(p.svg.xlinkNS,"href",r.ref),l},link:function(t,e,i){var n=this._args(arguments,["ref"]),s=this._makeNode(n.parent,"a",n.settings);return s.setAttributeNS(p.svg.xlinkNS,"href",n.ref),s},image:function(t,e,i,n,s,o,a){var r=this._args(arguments,["x","y","width","height","ref"]),l=this._makeNode(r.parent,"image",p.extend({x:r.x,y:r.y,width:r.width,height:r.height},r.settings||{}));return l.setAttributeNS(p.svg.xlinkNS,"href",r.ref),l},path:function(t,e,i){var n=this._args(arguments,["path"]);return this._makeNode(n.parent,"path",p.extend({d:n.path.path?n.path.path():n.path},n.settings||{}))},rect:function(t,e,i,n,s,o,a,r){var l=this._args(arguments,["x","y","width","height","rx","ry"],["rx"]);return this._makeNode(l.parent,"rect",p.extend({x:l.x,y:l.y,width:l.width,height:l.height},l.rx?{rx:l.rx,ry:l.ry}:{},l.settings||{}))},circle:function(t,e,i,n,s){var o=this._args(arguments,["cx","cy","r"]);return this._makeNode(o.parent,"circle",p.extend({cx:o.cx,cy:o.cy,r:o.r},o.settings||{}))},ellipse:function(t,e,i,n,s,o){var a=this._args(arguments,["cx","cy","rx","ry"]);return this._makeNode(a.parent,"ellipse",p.extend({cx:a.cx,cy:a.cy,rx:a.rx,ry:a.ry},a.settings||{}))},line:function(t,e,i,n,s,o){var a=this._args(arguments,["x1","y1","x2","y2"]);return this._makeNode(a.parent,"line",p.extend({x1:a.x1,y1:a.y1,x2:a.x2,y2:a.y2},a.settings||{}))},polyline:function(t,e,i){var n=this._args(arguments,["points"]);return this._poly(n.parent,"polyline",n.points,n.settings)},polygon:function(t,e,i){var n=this._args(arguments,["points"]);return this._poly(n.parent,"polygon",n.points,n.settings)},_poly:function(t,e,i,n){for(var s="",o=0;o<i.length;o++)s+=i[o].join()+" ";return this._makeNode(t,e,p.extend({points:p.trim(s)},n||{}))},text:function(t,e,i,n,s){var o=this._args(arguments,["x","y","value"]);return"string"==typeof o.x&&arguments.length<4&&(o.value=o.x,o.settings=o.y,o.x=o.y=null),this._text(o.parent,"text",o.value,p.extend({x:o.x&&c(o.x)?o.x.join(" "):o.x,y:o.y&&c(o.y)?o.y.join(" "):o.y},o.settings||{}))},textpath:function(t,e,i,n){var s=this._args(arguments,["path","value"]),o=this._text(s.parent,"textPath",s.value,s.settings||{});return o.setAttributeNS(p.svg.xlinkNS,"href",s.path),o},_text:function(t,e,i,n){var s=this._makeNode(t,e,n);if("string"==typeof i)s.appendChild(s.ownerDocument.createTextNode(i));else for(var o=0;o<i._parts.length;o++){var a,r,l=i._parts[o];"tspan"==l[0]?((r=this._makeNode(s,l[0],l[2])).appendChild(s.ownerDocument.createTextNode(l[1])),s.appendChild(r)):"tref"==l[0]?((r=this._makeNode(s,l[0],l[2])).setAttributeNS(p.svg.xlinkNS,"href",l[1]),s.appendChild(r)):"textpath"==l[0]?((a=p.extend({},l[2])).href=null,(r=this._makeNode(s,l[0],a)).setAttributeNS(p.svg.xlinkNS,"href",l[2].href),r.appendChild(s.ownerDocument.createTextNode(l[1])),s.appendChild(r)):s.appendChild(s.ownerDocument.createTextNode(l[1]))}return s},other:function(t,e,i){var n=this._args(arguments,["name"]);return this._makeNode(n.parent,n.name,n.settings||{})},_makeNode:function(t,e,i){t=t||this._svg;var n=this._svg.ownerDocument.createElementNS(p.svg.svgNS,e);for(e in i){var s=i[e];null==s||"string"==typeof s&&""==s||n.setAttribute(p.svg._attrNames[e]||e,s)}return t.appendChild(n),n},add:function(t,e){var i=this._args(1==arguments.length?[null,t]:arguments,["node"]),n=this;i.parent=i.parent||this._svg,i.node=i.node.jquery?i.node:p(i.node);try{if(p.svg._renesis)throw"Force traversal";i.parent.appendChild(i.node.cloneNode(!0))}catch(t){i.node.each(function(){var t=n._cloneAsSVG(this);t&&i.parent.appendChild(t)})}return this},clone:function(t,e){var i=this,n=this._args(1==arguments.length?[null,t]:arguments,["node"]),s=(n.parent=n.parent||this._svg,n.node=n.node.jquery?n.node:p(n.node),[]);return n.node.each(function(){var t=i._cloneAsSVG(this);t&&(t.id="",n.parent.appendChild(t),s.push(t))}),s},_cloneAsSVG:function(e){var i=null;if(1==e.nodeType){for(var i=this._svg.ownerDocument.createElementNS(p.svg.svgNS,this._checkName(e.nodeName)),t=0;t<e.attributes.length;t++){var n=e.attributes.item(t);"xmlns"!=n.nodeName&&n.nodeValue&&("xlink"==n.prefix?i.setAttributeNS(p.svg.xlinkNS,n.localName||n.baseName,n.nodeValue):i.setAttribute(this._checkName(n.nodeName),n.nodeValue))}for(t=0;t<e.childNodes.length;t++){var s=this._cloneAsSVG(e.childNodes[t]);s&&i.appendChild(s)}}else if(3==e.nodeType)p.trim(e.nodeValue)&&(i=this._svg.ownerDocument.createTextNode(e.nodeValue));else if(4==e.nodeType&&p.trim(e.nodeValue))try{i=this._svg.ownerDocument.createCDATASection(e.nodeValue)}catch(t){i=this._svg.ownerDocument.createTextNode(e.nodeValue.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}return i},_checkName:function(t){return"svg:"==(t="A"<=t.substring(0,1)&&t.substring(0,1)<="Z"?t.toLowerCase():t).substring(0,4)?t.substring(4):t},load:function(t,l){(l="boolean"==typeof l?{addTo:l}:"function"==typeof l?{onLoad:l}:"string"==typeof l||"object"==typeof l&&l.nodeName||"object"==typeof l&&l.jquery?{parent:l}:l||{}).parent||l.addTo||this.clear(!1);function e(t){var e=new ActiveXObject("Microsoft.XMLDOM");return e.validateOnParse=!1,e.resolveExternals=!1,e.async=!1,e.loadXML(t),0!=e.parseError.errorCode?(d(e.parseError.reason),null):e}function i(t){if(t){var e,i;if("svg"!=t.documentElement.nodeName)return i=(e=t.getElementsByTagName("parsererror")).length?e[0].getElementsByTagName("div"):[],d(e.length?(i.length?i:e)[0].firstChild.nodeValue:"???"),0;for(var n=l.parent?p(l.parent)[0]:c._svg,s={},o=0;o<t.documentElement.attributes.length;o++){var a=t.documentElement.attributes.item(o);"version"!=a.nodeName&&"xmlns"!=a.nodeName.substring(0,5)&&(s[a.nodeName]=a.nodeValue)}c.configure(n,s,!l.parent);for(var r=t.documentElement.childNodes,o=0;o<r.length;o++)try{if(p.svg._renesis)throw"Force traversal";n.appendChild(c._svg.ownerDocument.importNode(r[o],!0)),"script"==r[o].nodeName&&p.globalEval(r[o].textContent)}catch(t){c.add(n,r[o])}l.changeSize||c.configure(n,{width:h[0],height:h[1]}),l.onLoad&&l.onLoad.apply(c._container||c._svg,[c])}}var h=[this._svg.getAttribute("width"),this._svg.getAttribute("height")],c=this,d=function(t){t=p.svg.local.errorLoadingText+": "+t,l.onLoad?l.onLoad.apply(c._container||c._svg,[c,t]):c.text(null,10,20,t)};return t.match("<svg")?i(p.browser.msie?e(t):(new DOMParser).parseFromString(t,"text/xml")):p.ajax({url:t,dataType:p.browser.msie?"text":"xml",success:function(t){i(p.browser.msie?e(t):t)},error:function(t,e,i){d(e+(i?" "+i.message:""))}}),this},remove:function(t){return(t=t.jquery?t[0]:t).parentNode.removeChild(t),this},clear:function(t){for(t&&this.configure({},!0);this._svg.firstChild;)this._svg.removeChild(this._svg.firstChild);return this},toSVG:function(t){return t=t||this._svg,"undefined"==typeof XMLSerializer?this._toSVG(t):(new XMLSerializer).serializeToString(t)},_toSVG:function(t){var e="";if(!t)return e;if(3==t.nodeType)e=t.nodeValue;else if(4==t.nodeType)e="<![CDATA["+t.nodeValue+"]]>";else{if(e="<"+t.nodeName,t.attributes)for(var i=0;i<t.attributes.length;i++){var n=t.attributes.item(i);""==p.trim(n.nodeValue)||n.nodeValue.match(/^\[object/)||n.nodeValue.match(/^function/)||(e+=" "+(n.namespaceURI==p.svg.xlinkNS?"xlink:":"")+n.nodeName+'="'+n.nodeValue+'"')}if(t.firstChild){e+=">";for(var s=t.firstChild;s;)e+=this._toSVG(s),s=s.nextSibling;e+="</"+t.nodeName+">"}else e+="/>"}return e}}),p.extend(i.prototype,{reset:function(){return this._path="",this},move:function(t,e,i){return i=c(t)?e:i,this._coords(i?"m":"M",t,e)},line:function(t,e,i){return i=c(t)?e:i,this._coords(i?"l":"L",t,e)},horiz:function(t,e){return this._path+=(e?"h":"H")+(c(t)?t.join(" "):t),this},vert:function(t,e){return this._path+=(e?"v":"V")+(c(t)?t.join(" "):t),this},curveC:function(t,e,i,n,s,o,a){return a=c(t)?e:a,this._coords(a?"c":"C",t,e,i,n,s,o)},smoothC:function(t,e,i,n,s){return s=c(t)?e:s,this._coords(s?"s":"S",t,e,i,n)},curveQ:function(t,e,i,n,s){return s=c(t)?e:s,this._coords(s?"q":"Q",t,e,i,n)},smoothQ:function(t,e,i){return i=c(t)?e:i,this._coords(i?"t":"T",t,e)},_coords:function(t,e,i,n,s,o,a){if(c(e))for(var r=0;r<e.length;r++){var l=e[r];this._path+=(0==r?t:" ")+l[0]+","+l[1]+(l.length<4?"":" "+l[2]+","+l[3]+(l.length<6?"":" "+l[4]+","+l[5]))}else this._path+=t+e+","+i+(null==n?"":" "+n+","+s+(null==o?"":" "+o+","+a));return this},arc:function(t,e,i,n,s,o,a,r){if(r=c(t)?e:r,this._path+=r?"a":"A",c(t))for(var l=0;l<t.length;l++){var h=t[l];this._path+=(0==l?"":" ")+h[0]+","+h[1]+" "+h[2]+" "+(h[3]?"1":"0")+","+(h[4]?"1":"0")+" "+h[5]+","+h[6]}else this._path+=t+","+e+" "+i+" "+(n?"1":"0")+","+(s?"1":"0")+" "+o+","+a;return this},close:function(){return this._path+="z",this},path:function(){return this._path}}),i.prototype.moveTo=i.prototype.move,i.prototype.lineTo=i.prototype.line,i.prototype.horizTo=i.prototype.horiz,i.prototype.vertTo=i.prototype.vert,i.prototype.curveCTo=i.prototype.curveC,i.prototype.smoothCTo=i.prototype.smoothC,i.prototype.curveQTo=i.prototype.curveQ,i.prototype.smoothQTo=i.prototype.smoothQ,i.prototype.arcTo=i.prototype.arc,p.extend(n.prototype,{reset:function(){return this._parts=[],this},string:function(t){return this._parts[this._parts.length]=["text",t],this},span:function(t,e){return this._parts[this._parts.length]=["tspan",t,e],this},ref:function(t,e){return this._parts[this._parts.length]=["tref",t,e],this},path:function(t,e,i){return this._parts[this._parts.length]=["textpath",e,p.extend({href:t},i||{})],this}}),p.fn.svg=function(t){var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&"get"==t?p.svg["_"+t+"SVG"].apply(p.svg,[this[0]].concat(e)):this.each(function(){"string"==typeof t?p.svg["_"+t+"SVG"].apply(p.svg,[this].concat(e)):p.svg._attachSVG(this,t||{})})},p.svg=new t}(jQuery),function(o){"use strict";var a,t,n,s,i="dotdotdot";function e(){s=o(window),a={},t={},n={},o.each([a,t,n],function(t,n){n.add=function(t){for(var e=0,i=(t=t.split(" ")).length;e<i;e++)n[t[e]]=n.ddd(t[e])}}),a.ddd=function(t){return"ddd-"+t},a.add("truncated keep text"),t.ddd=function(t){return"ddd-"+t},t.add("text"),n.ddd=function(t){return t+".ddd"},n.add("resize"),e=function(){}}o[i]&&"3.1.0"<o[i].version||(o[i]=function(t,e){this.$dot=t,this.api=["getInstance","truncate","restore","destroy","watch","unwatch"],this.opts=e;t=this.$dot.data(i);return t&&t.destroy(),this.init(),this.truncate(),this.opts.watch&&this.watch(),this},o[i].version="3.1.0",o[i].uniqueId=0,o[i].defaults={ellipsis:"… ",callback:function(t){},truncate:"word",tolerance:0,keep:null,watch:"window",height:null},o[i].prototype={init:function(){this.watchTimeout=null,this.watchInterval=null,this.uniqueId=o[i].uniqueId++,this.originalContent=this.$dot.contents(),this.originalStyle=this.$dot.attr("style")||"","break-word"!==this.$dot.css("word-wrap")&&this.$dot.css("word-wrap","break-word"),"nowrap"===this.$dot.css("white-space")&&this.$dot.css("white-space","normal"),null===this.opts.height&&(this.opts.height=this._getMaxHeight())},getInstance:function(){return this},truncate:function(){var i=this,t=(this.$inner=this.$dot.wrapInner("<div />").children().css({display:"block",height:"auto",width:"auto",border:"none",padding:0,margin:0}),this.$inner.contents().detach().end().append(this.originalContent.clone(!0)),this.$inner.find("script, style").addClass(a.keep),this.opts.keep&&this.$inner.find(this.opts.keep).addClass(a.keep),this.$inner.find("*").not("."+a.keep).add(this.$inner).contents().each(function(){var t,e=o(this);3==this.nodeType?e.parent().is("table, thead, tfoot, tr, dl, ul, ol, video")?e.remove():1<e.parent().contents().length&&(t=o('<span class="'+a.text+'">'+i.__getTextContent(this)+"</span>").css({display:"inline",height:"auto",width:"auto",border:"none",padding:0,margin:0}),e.replaceWith(t)):8==this.nodeType&&e.remove()}),this.maxHeight=this._getMaxHeight(),this._truncateNode(this.$dot));return this.$dot[t?"addClass":"removeClass"](a.truncated),this.$inner.find("."+a.text).each(function(){o(this).replaceWith(o(this).contents())}),this.$inner.find("."+a.keep).removeClass(a.keep),this.$inner.replaceWith(this.$inner.contents()),this.$inner=null,this.opts.callback.call(this.$dot[0],t),t},restore:function(){this.unwatch(),this.$dot.contents().detach().end().append(this.originalContent).attr("style",this.originalStyle).removeClass(a.truncated)},destroy:function(){this.restore(),this.$dot.data(i,null)},watch:function(){var e=this,i=(this.unwatch(),{});"window"==this.opts.watch?s.on(n.resize+e.uniqueId,function(t){e.watchTimeout&&clearTimeout(e.watchTimeout),e.watchTimeout=setTimeout(function(){i=e._watchSizes(i,s,"width","height")},100)}):this.watchInterval=setInterval(function(){i=e._watchSizes(i,e.$dot,"innerWidth","innerHeight")},500)},unwatch:function(){s.off(n.resize+this.uniqueId),this.watchInterval&&clearInterval(this.watchInterval),this.watchTimeout&&clearTimeout(this.watchTimeout)},_api:function(){var i=this,n={};return o.each(this.api,function(t){var e=this;n[e]=function(){var t=i[e].apply(i,arguments);return void 0===t?n:t}}),n},_truncateNode:function(t){var i=this,n=!1,s=!1;return o(t.children().get().reverse()).not("."+a.keep).each(function(){o(this).contents()[0];var t=o(this);if(!n&&!t.hasClass(a.keep)){if(t.children().length)n=i._truncateNode(t);else if(!i._fits()||s){var e=o("<span>").css("display","none");if(t.replaceWith(e),t.detach(),i._fits()){if("node"==i.opts.truncate)return!0;e.replaceWith(t),(n=i._truncateWord(t))||(s=!0,t.detach())}else e.remove()}t.contents().length||t.remove()}}),n},_truncateWord:function(t){var e=t.contents()[0];if(!e)return!1;for(var i,n=this,t=this.__getTextContent(e),s=-1!==t.indexOf(" ")?" ":"　",o=t.split(s),a=o.length;0<=a;a--){if(i=o.slice(0,a).join(s),0==a)return"letter"==n.opts.truncate&&(n.__setTextContent(e,o.slice(0,a+1).join(s)),n._truncateLetter(e));if(i.length&&(n.__setTextContent(e,n._addEllipsis(i)),n._fits()))return"letter"!=n.opts.truncate||(n.__setTextContent(e,o.slice(0,a+1).join(s)),n._truncateLetter(e))}return!1},_truncateLetter:function(t){for(var e,i=this.__getTextContent(t).split(""),n=i.length;0<=n;n--)if((e=i.slice(0,n).join("")).length&&(this.__setTextContent(t,this._addEllipsis(e)),this._fits()))return!0;return!1},_fits:function(){return this.$inner.innerHeight()<=this.maxHeight+this.opts.tolerance},_addEllipsis:function(t){for(var e=[" ","　",",",";",".","!","?"];-1<o.inArray(t.slice(-1),e);)t=t.slice(0,-1);return t+=this.opts.ellipsis},_getMaxHeight:function(){if("number"==typeof this.opts.height)return this.opts.height;for(var t=["maxHeight","height"],e=0,i=0;i<t.length;i++)if("px"==(e=window.getComputedStyle(this.$dot[0])[t[i]]).slice(-2)){e=parseFloat(e);break}t=[];switch(this.$dot.css("boxSizing")){case"border-box":t.push("borderTopWidth"),t.push("borderBottomWidth");case"padding-box":t.push("paddingTop"),t.push("paddingBottom")}for(i=0;i<t.length;i++){var n=window.getComputedStyle(this.$dot[0])[t[i]];"px"==n.slice(-2)&&(e-=parseFloat(n))}return Math.max(e,0)},_watchSizes:function(t,e,i,n){return this.$dot.is(":visible")?(i={width:e[i](),height:e[n]()},t.width==i.width&&t.height==i.height||this.truncate(),i):t},__getTextContent:function(t){for(var e=["nodeValue","textContent","innerText"],i=0;i<e.length;i++)if("string"==typeof t[e[i]])return t[e[i]];return""},__setTextContent:function(t,e){for(var i=["nodeValue","textContent","innerText"],n=0;n<i.length;n++)t[i[n]]=e}},o.fn[i]=function(t){return e(),t=o.extend(!0,{},o[i].defaults,t),this.each(function(){o(this).data(i,new o[i](o(this),t)._api())})})}(jQuery),function(p){p.fn.ellipsis=function(u){return u=p.extend({row:1,onlyFullWords:!1,char:"...",callback:function(){},position:"tail"},u),this.each(function(){var t=p(this),e=h=t.text(),i=e.length,c=t.height(),n=(t.text("a"),parseFloat(t.css("lineHeight"),10)),s=t.height(),d=(s<n?n-s:0)*(u.row-1)+s*u.row;if(c<=d)return t.text(h),void u.callback.call(this);var o=1,a=0,r=h.length;if("tail"===u.position){for(;o<r;)a=Math.ceil((o+r)/2),t.text(h.slice(0,a)+u.char),t.height()<=d?o=a:r=a-1;h=h.slice(0,o),u.onlyFullWords&&(h=h.replace(/[\u00AD\w\uac00-\ud7af]+$/,"")),h+=u.char}else if("middle"===u.position){for(var l=0;o<r;)a=Math.ceil((o+r)/2),l=Math.max(i-a,0),t.text(e.slice(0,Math.floor((i-l)/2))+u.char+e.slice(Math.floor((i+l)/2),i)),t.height()<=d?o=a:r=a-1;var l=Math.max(i-o,0),n=e.slice(0,Math.floor((i-l)/2)),s=e.slice(Math.floor((i+l)/2),i),h=(n=u.onlyFullWords?n.replace(/[\u00AD\w\uac00-\ud7af]+$/,""):n)+u.char+s}t.text(h),u.callback.call(this)}),this}}(jQuery),function(y){var b="iCheck",j=b+"-helper",A="checkbox",v="radio",x="checked",f="un"+x,w="disabled",m="determinate",C="in"+m,M="update",S="type",I="click",E="touchbegin.i touchend.i",T="addClass",k="removeClass",L="trigger",P="label",g="cursor",Q=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);function D(t,e,i){var n=t[0],s=/er/.test(i)?C:/bl/.test(i)?w:x,o=i==M?{checked:n[x],disabled:n[w],indeterminate:"true"==t.attr(C)||"false"==t.attr(m)}:n[s];if(/^(ch|di|in)/.test(i)&&!o)_(t,s);else if(/^(un|en|de)/.test(i)&&o)O(t,s);else if(i==M)for(var a in o)(o[a]?_:O)(t,a,!0);else e&&"toggle"!=i||(e||t[L]("ifClicked"),o?n[S]!==v&&O(t,s):_(t,s))}function _(t,e,i){var n,s,o=t[0],a=t.parent(),r=e==x,l=e==C,c=e==w,h=l?m:r?f:"enabled",d=p(t,h+W(o[S])),u=p(t,e+W(o[S]));!0!==o[e]&&(!i&&e==x&&o[S]==v&&o.name&&(n=t.closest("form"),s='input[name="'+o.name+'"]',(s=n.length?n.find(s):y(s)).each(function(){this!==o&&y(this).data(b)&&O(y(this),e)})),l?(o[e]=!0,o[x]&&O(t,x,"force")):(i||(o[e]=!0),r&&o[C]&&O(t,C,!1)),F(t,r,e,i)),o[w]&&p(t,g,!0)&&a.find("."+j).css(g,"default"),a[T](u||p(t,e)||""),a.attr("role")&&!l&&a.attr("aria-"+(c?w:x),"true"),a[k](d||p(t,h)||"")}function O(t,e,i){var n=t[0],s=t.parent(),o=e==x,a=e==C,r=e==w,l=a?m:o?f:"enabled",h=p(t,l+W(n[S])),c=p(t,e+W(n[S]));!1!==n[e]&&(!a&&i&&"force"!=i||(n[e]=!1),F(t,o,l,i)),!n[w]&&p(t,g,!0)&&s.find("."+j).css(g,"pointer"),s[k](c||p(t,e)||""),s.attr("role")&&!a&&s.attr("aria-"+(r?w:x),"false"),s[T](h||p(t,l)||"")}function N(t,e){t.data(b)&&(t.parent().html(t.attr("style",t.data(b).s||"")),e&&t[L](e),t.off(".i").unwrap(),y(P+'[for="'+t[0].id+'"]').add(t.closest(P)).off(".i"))}function p(t,e,i){if(t.data(b))return t.data(b).o[e+(i?"":"Class")]}function W(t){return t.charAt(0).toUpperCase()+t.slice(1)}function F(t,e,i,n){n||(e&&t[L]("ifToggled"),t[L]("ifChanged")[L]("if"+W(i)))}y.fn[b]=function(e,s){function o(t){t.each(function(){var t=y(this);n=t.is(i)?n.add(t):n.add(t.find(i))})}var c,t,d,g,u,p,f,m,i='input[type="'+A+'"], input[type="'+v+'"]',n=y();return/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(e)?(e=e.toLowerCase(),o(this),n.each(function(){var t=y(this);"destroy"==e?N(t,"ifDestroyed"):D(t,!0,e),y.isFunction(s)&&s()})):"object"!=typeof e&&e?this:(t=(c=y.extend({checkedClass:x,disabledClass:w,indeterminateClass:C,labelHover:!0},e)).handle,d=c.hoverClass||"hover",g=c.focusClass||"focus",u=c.activeClass||"active",p=!!c.labelHover,f=c.labelHoverClass||"hover",m=0|(""+c.increaseArea).replace("%",""),t!=A&&t!=v||(i='input[type="'+t+'"]'),m<-50&&(m=-50),o(this),n.each(function(){var n=y(this),s=(N(n),this),t=s.id,e=-m+"%",i=100+2*m+"%",e={position:"absolute",top:e,left:e,display:"block",width:i,height:i,margin:0,padding:0,background:"#fff",border:0,opacity:0},i=Q?{position:"absolute",visibility:"hidden"}:m?e:{position:"absolute",opacity:0},o=s[S]==A?c.checkboxClass||"i"+A:c.radioClass||"i"+v,a=y(P+'[for="'+t+'"]').add(n.closest(P)),r=!!c.aria,l=b+"-"+Math.random().toString(36).substr(2,6),h='<div class="'+o+'" '+(r?'role="'+s[S]+'" ':"");r&&a.each(function(){h+='aria-labelledby="',this.id?h+=this.id:(this.id=l,h+=l),h+='"'}),h=n.wrap(h+"/>")[L]("ifCreated").parent().append(c.insert),o=y('<ins class="'+j+'"/>').css(e).appendTo(h),n.data(b,{o:c,s:n.attr("style")}).css(i),c.inheritClass&&h[T](s.className||""),c.inheritID&&t&&h.attr("id",b+"-"+t),"static"==h.css("position")&&h.css("position","relative"),D(n,!0,M),a.length&&a.on(I+".i mouseover.i mouseout.i "+E,function(t){var e=t[S],i=y(this);if(!s[w]){if(e==I){if(y(t.target).is("a"))return;D(n,!1,!0)}else p&&(/ut|nd/.test(e)?(h[k](d),i[k](f)):(h[T](d),i[T](f)));if(!Q)return!1;t.stopPropagation()}}),n.on(I+".i focus.i blur.i keyup.i keydown.i keypress.i",function(t){var e=t[S],t=t.keyCode;return e!=I&&("keydown"==e&&32==t?(s[S]==v&&s[x]||(s[x]?O:_)(n,x),!1):void("keyup"==e&&s[S]==v?s[x]||_(n,x):/us|ur/.test(e)&&h["blur"==e?k:T](g)))}),o.on(I+" mousedown mouseup mouseover mouseout "+E,function(t){var e=t[S],i=/wn|up/.test(e)?u:d;if(!s[w]){if(e==I?D(n,!1,!0):(/wn|er|in/.test(e)?h[T](i):h[k](i+" "+u),a.length&&p&&i==d&&a[/ut|nd/.test(e)?k:T](f)),!Q)return!1;t.stopPropagation()}})}))}}(window.jQuery||window.Zepto),function(t,e){"object"==typeof module&&module.exports?(e.default=e,module.exports=t.document?e(t):e):"function"==typeof define&&define.amd?define("highcharts/highcharts",function(){return e(t)}):(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=e(t))}("undefined"!=typeof window?window:this,function(l){function t(t,e,i,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,i))}var e={};return t(e,"parts/Globals.js",[],function(){var t=void 0!==l?l:"undefined"!=typeof window?window:{},e=t.document,i=t.navigator&&t.navigator.userAgent||"",n=e&&e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,s=/(edge|msie|trident)/i.test(i)&&!t.opera,o=-1!==i.indexOf("Firefox"),a=-1!==i.indexOf("Chrome"),r=o&&parseInt(i.split("Firefox/")[1],10)<4;return{product:"Highcharts",version:"8.0.0",deg2rad:2*Math.PI/360,doc:e,hasBidiBug:r,hasTouch:!!t.TouchEvent,isMS:s,isWebKit:-1!==i.indexOf("AppleWebKit"),isFirefox:o,isChrome:a,isSafari:!a&&-1!==i.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(i),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:n,win:t,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}}),t(e,"parts/Utilities.js",[e["parts/Globals.js"]],function(d){function h(t,e){return parseInt(t,e||10)}function s(t){return"string"==typeof t}function n(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function c(t,e){return!(!t||"object"!=typeof t||e&&n(t))}function o(t){return c(t)&&"number"==typeof t.nodeType}function a(t){var e=t&&t.constructor;return!(!c(t,!0)||o(t)||!e||!e.name||"Object"===e.name)}function y(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&-1/0<t}function r(t){return null!=t}function e(i,t,e){var n;return s(t)?r(e)?i.setAttribute(t,e):i&&i.getAttribute&&((n=i.getAttribute(t))||"class"!==t||(n=i.getAttribute(t+"Name"))):f(t,function(t,e){i.setAttribute(e,t)}),n}function u(t,e){for(var i in t=t||{},e)t[i]=e[i];return t}function p(){for(var t=arguments,e=t.length,i=0;i<e;i++){var n=t[i];if(null!=n)return n}}function g(t,e){function i(){}return u(i.prototype=new t,e),i}function b(t,e){return parseFloat(t.toPrecision(e||14))}function v(t,e,i,n){e=+e;var s=d.defaultOptions.lang,o=((t=+t||0).toString().split(".")[1]||"").split("e")[0].length,a=t.toString().split("e"),r=(-1===e?e=Math.min(o,20):y(e)?e&&a[1]&&a[1]<0&&(0<=(l=e+ +a[1])?(a[0]=(+a[0]).toExponential(l).split("e")[0],e=l):(a[0]=a[0].split(".")[0]||0,t=e<20?(a[0]*Math.pow(10,a[1])).toFixed(e):0,a[1]=0)):e=2,(Math.abs(a[1]?a[0]:t)+Math.pow(10,-Math.max(e,o)-1)).toFixed(e)),l=3<(o=String(h(r))).length?o.length%3:0;return i=p(i,s.decimalPoint),n=p(n,s.thousandsSep),t=(t<0?"-":"")+(l?o.substr(0,l)+n:""),t+=o.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+n),e&&(t+=i+r.slice(-e)),a[1]&&0!=+t&&(t+="e"+a[1]),t}function f(t,e,i){for(var n in t)Object.hasOwnProperty.call(t,n)&&e.call(i||t[n],t[n],n,t)}d.timers=[];var t,i,x=d.charts,m=d.doc,l=d.win;return d.error=function(t,e,i,n){function s(){if(e)throw Error(r);l.console&&console.log(r)}var o,a=y(t),r=a?"Highcharts error #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();void 0!==n&&(o="",a&&(r+="?"),d.objectEach(n,function(t,e){o+="\n"+e+": "+t,a&&(r+=encodeURI(e)+"="+encodeURI(t))}),r+=o),i?d.fireEvent(i,"displayError",{code:t,message:r,params:n},s):s()},d.Fx=function(t,e,i){this.options=e,this.elem=t,this.prop=i},d.Fx.prototype={dSetter:function(){var t=this.paths[0],e=this.paths[1],i=[],n=this.now,s=t.length;if(1===n)i=this.toD;else if(s===e.length&&n<1)for(;s--;){var o=parseFloat(t[s]);i[s]=isNaN(o)||"A"===e[s-4]||"A"===e[s-5]?e[s]:n*parseFloat(""+(e[s]-o))+o}else i=e;this.elem.attr("d",i,null,!0)},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,null,!0):t.style[e]=i+this.unit,n&&n.call(t,i,this)},run:function(t,e,i){var n=this,s=n.options,o=function(t){return!o.stopped&&n.step(t)},a=l.requestAnimationFrame||function(t){setTimeout(t,13)},r=function(){for(var t=0;t<d.timers.length;t++)d.timers[t]()||d.timers.splice(t--,1);d.timers.length&&a(r)};t!==e||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=e,this.unit=i,this.now=this.start,this.pos=0,o.elem=this.elem,o.prop=this.prop,o()&&1===d.timers.push(o)&&a(r)):(delete s.curAnim[this.prop],s.complete&&0===Object.keys(s.curAnim).length&&s.complete.call(this.elem))},step:function(t){var e,i=+new Date,n=this.options,s=this.elem,o=n.complete,a=n.duration,r=n.curAnim;return t=!(s.attr&&!s.element)&&(t||i>=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),e=r[this.prop]=!0,f(r,function(t){!0!==t&&(e=!1)}),e&&o&&o.call(s),!1):(this.pos=n.easing((i-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),!0))},initPath:function(c,t,e){function d(t){for(s=t.length;s--;){var e="M"===t[s]||"L"===t[s],i=/[a-zA-Z]/.test(t[s+3]);e&&i&&t.splice(s+1,0,t[s+1],t[s+2],t[s+1],t[s+2])}}function u(t,e){for(;t.length<o;){t[0]=e[o-t.length];var i=t.slice(0,r);[].splice.apply(t,[0,0].concat(i)),m&&(i=t.slice(t.length-r),[].splice.apply(t,[t.length,0].concat(i)),s--)}t[0]="M"}function p(t,e){for(var i=(o-t.length)/r;0<i&&i--;)(n=t.slice().splice(t.length/l-r,r*l))[0]=e[o-r-i*r],f&&(n[r-6]=n[r-2],n[r-5]=n[r-1]),[].splice.apply(t,[t.length/l,0].concat(n)),m&&i--}var n,s,o,i=c.startX,a=c.endX,f=-1<(t=t||"").indexOf("C"),r=f?7:3,m=(t=t.split(" "),e=e.slice(),c.isArea),l=m?2:1;if(f&&(d(t),d(e)),i&&a){for(s=0;s<i.length;s++){if(i[s]===a[0]){var h=s;break}if(i[0]===a[a.length-i.length+s]){var h=s,g=!0;break}if(i[i.length-1]===a[a.length-i.length+s]){h=i.length-s;break}}void 0===h&&(t=[])}return t.length&&y(h)&&(o=e.length+h*l*r,g?(u(t,e),p(e,t)):(u(e,t),p(t,e))),[t,e]},fillSetter:function(){d.Fx.prototype.strokeSetter.apply(this,arguments)},strokeSetter:function(){this.elem.attr(this.prop,d.color(this.start).tweenTo(d.color(this.end),this.pos),null,!0)}},d.merge=function(){function s(i,n){return"object"!=typeof i&&(i={}),f(n,function(t,e){!c(t,!0)||a(t)||o(t)?i[e]=n[e]:i[e]=s(i[e]||{},t)}),i}for(var t=arguments,e={},i=(!0===t[0]&&(e=t[1],t=Array.prototype.slice.call(t,2)),t.length),n=0;n<i;n++)e=s(e,t[n]);return e},d.clearTimeout=function(t){r(t)&&clearTimeout(t)},d.css=function(t,e){d.isMS&&!d.svg&&e&&void 0!==e.opacity&&(e.filter="alpha(opacity="+100*e.opacity+")"),u(t.style,e)},d.createElement=function(t,e,i,n,s){t=m.createElement(t);var o=d.css;return e&&u(t,e),s&&o(t,{padding:"0",border:"none",margin:"0"}),i&&o(t,i),n&&n.appendChild(t),t},d.datePropsToTimestamps=function(i){f(i,function(t,e){c(t)&&"function"==typeof t.getTime?i[e]=t.getTime():(c(t)||n(t))&&d.datePropsToTimestamps(t)})},d.formatSingle=function(t,e,i){var n=/\.([0-9])/,s=d.defaultOptions.lang,o=i&&i.time||d.time;return i=i&&i.numberFormatter||v,/f$/.test(t)?(n=(n=t.match(n))?n[1]:-1,null!==e&&(e=i(e,n,s.decimalPoint,-1<t.indexOf(",")?s.thousandsSep:""))):e=o.dateFormat(t,e),e},d.format=function(t,e,c){for(var i,n,s,o,a,r="{",l=!1,h=[];t&&-1!==(r=t.indexOf(r));){if(i=t.slice(0,r),l){for(o=(n=(i=i.split(":")).shift().split(".")).length,a=e,s=0;s<o;s++)a=a&&a[n[s]];i.length&&(a=d.formatSingle(i.join(":"),a,c)),h.push(a)}else h.push(i);t=t.slice(r+1),r=(l=!l)?"}":"{"}return h.push(t),h.join("")},d.getMagnitude=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},d.normalizeTickInterval=function(t,e,i,n,s){var o=t,a=t/(i=p(i,1));for(e||(e=s?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===n&&(1===i?e=e.filter(function(t){return 0==t%1}):i<=.1&&(e=[1/i]))),n=0;n<e.length&&(o=e[n],!(s&&t<=o*i||!s&&a<=(e[n]+(e[n+1]||e[n]))/2));n++);return b(o*i,-Math.round(Math.log(.001)/Math.LN10))},d.stableSort=function(t,i){for(var n,e=t.length,s=0;s<e;s++)t[s].safeI=s;for(t.sort(function(t,e){return 0===(n=i(t,e))?t.safeI-e.safeI:n}),s=0;s<e;s++)delete t[s].safeI},d.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},d.getStyle=function(t,e,i){return"width"===e?(e=Math.min(t.offsetWidth,t.scrollWidth),(i=t.getBoundingClientRect&&t.getBoundingClientRect().width)<e&&e-1<=i&&(e=Math.floor(i)),Math.max(0,e-d.getStyle(t,"padding-left")-d.getStyle(t,"padding-right"))):"height"===e?Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-d.getStyle(t,"padding-top")-d.getStyle(t,"padding-bottom")):(l.getComputedStyle||d.error(27,!0),(t=l.getComputedStyle(t,void 0))&&(t=t.getPropertyValue(e),p(i,"opacity"!==e)&&(t=h(t))),t)},d.inArray=function(t,e,i){return e.indexOf(t,i)},d.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){for(var i=t.length,n=0;n<i;n++)if(e(t[n],n))return t[n]},d.keys=Object.keys,d.stop=function(t,e){for(var i=d.timers.length;i--;)d.timers[i].elem!==t||e&&e!==d.timers[i].prop||(d.timers[i].stopped=!0)},f({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(e,t){d[t]=function(t){return Array.prototype[e].apply(t,[].slice.call(arguments,1))}}),d.addEvent=function(t,e,i,n){void 0===n&&(n={});var s=t.addEventListener||d.addEventListenerPolyfill,o="function"==typeof t&&t.prototype?t.prototype.protoEvents=t.prototype.protoEvents||{}:t.hcEvents=t.hcEvents||{};return d.Point&&t instanceof d.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0),s&&s.call(t,e,i,!1),o[e]||(o[e]=[]),o[e].push({fn:i,order:"number"==typeof n.order?n.order:1/0}),o[e].sort(function(t,e){return t.order-e.order}),function(){d.removeEvent(t,e,i)}},d.removeEvent=function(s,o,n){function a(t,e){var i=s.removeEventListener||d.removeEventListenerPolyfill;i&&i.call(s,t,e,!1)}function r(i){var n,t;s.nodeName&&(o?(t={})[o]=!0:t=i,f(t,function(t,e){if(i[e])for(n=i[e].length;n--;)a(e,i[e][n].fn)}))}var l;["protoEvents","hcEvents"].forEach(function(t,e){var i=(e=e?s:s.prototype)&&e[t];i&&(o?(l=i[o]||[],n?(i[o]=l.filter(function(t){return n!==t.fn}),a(o,n)):(r(i),i[o]=[])):(r(i),e[t]={}))})},d.fireEvent=function(t,e,i,n){var s,o;if(i=i||{},m.createEvent&&(t.dispatchEvent||t.fireEvent))(o=m.createEvent("Events")).initEvent(e,!0,!0),u(o,i),t.dispatchEvent?t.dispatchEvent(o):t.fireEvent(e,o);else{i.target||u(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});var a=t.protoEvents&&t.protoEvents[e],r=t.hcEvents&&t.hcEvents[e],l=0,h=0,c=(a=void 0===a?[]:a).length+(r=void 0===r?[]:r).length;for(s=0;s<c;s++)!1===(a[l]&&(!r[h]||a[l].order<=r[h].order)?a[l++]:r[h++]).fn.call(t,i)&&i.preventDefault()}n&&!i.defaultPrevented&&n.call(t,i)},d.animate=function(i,n,s){var o,a,r,t,l="";y((s=c(s)?s:{duration:(t=arguments)[2],easing:t[3],complete:t[4]}).duration)||(s.duration=400),s.easing="function"==typeof s.easing?s.easing:Math[s.easing]||Math.easeInOutSine,s.curAnim=d.merge(n),f(n,function(t,e){d.stop(i,e),r=new d.Fx(i,s,e),a=null,"d"===e?(r.paths=r.initPath(i,i.d,n.d),r.toD=n.d,o=0,a=1):i.attr?o=i.attr(e):(o=parseFloat(d.getStyle(i,e))||0,"opacity"!==e&&(l="px")),(a=a||t)&&a.match&&a.match("px")&&(a=a.replace(/px/g,"")),r.run(o,a,l)})},d.seriesType=function(t,e,i,n,s){var o=d.getOptions(),a=d.seriesTypes;return o.plotOptions[t]=d.merge(o.plotOptions[e],i),a[t]=g(a[e]||function(){},n),a[t].prototype.type=t,s&&(a[t].prototype.pointClass=g(d.Point,s)),a[t]},d.uniqueKey=(t=Math.random().toString(36).substring(2,9),i=0,function(){return"highcharts-"+t+"-"+i++}),d.isFunction=function(t){return"function"==typeof t},l.jQuery&&(l.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new d[s(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):x[e(this[0],"data-highcharts-chart")]}),{animObject:function(t){return c(t)?d.merge(t):{duration:t?500:0}},arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:e,clamp:function(t,e,i){return e<t?t<i?t:i:e},correctFloat:b,defined:r,destroyObjectProperties:function(i,n){f(i,function(t,e){t&&t!==n&&t.destroy&&t.destroy(),delete i[e]})},discardElement:function(t){var e=(e=d.garbageBin)||d.createElement("div");t&&e.appendChild(t),e.innerHTML=""},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},extend:u,extendClass:g,isArray:n,isClass:a,isDOMElement:o,isNumber:y,isObject:c,isString:s,numberFormat:v,objectEach:f,offset:function(t){var e=m.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0}).top+(l.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(l.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:p,pInt:h,relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},setAnimation:function(t,e){e.renderer.globalAnimation=p(t,e.options.chart.animation,!0)},splat:function(t){return n(t)?t:[t]},syncTimeout:function(t,e,i){return 0<e?setTimeout(t,e,i):(t.call(0,i),-1)},wrap:function(t,e,n){var s=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,i=this;return i.proceed=function(){s.apply(i,arguments.length?arguments:e)},t.unshift(s),t=n.apply(this,t),i.proceed=null,t}}}}),t(e,"parts/Color.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(o,t){var s=t.isNumber,n=t.pInt,a=o.merge;o.Color=function(t){if(!(this instanceof o.Color))return new o.Color(t);this.init(t)},o.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(t){return[n(t[1]),n(t[2]),n(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[n(t[1]),n(t[2]),n(t[3]),1]}}],names:{white:"#ffffff",black:"#000000"},init:function(t){var e,i,n;if((this.input=t=this.names[t&&t.toLowerCase?t.toLowerCase():""]||t)&&t.stops)this.stops=t.stops.map(function(t){return new o.Color(t[1])});else if(t&&t.charAt&&"#"===t.charAt()&&(n=t.length,t=parseInt(t.substr(1),16),7===n?e=[(16711680&t)>>16,(65280&t)>>8,255&t,1]:4===n&&(e=[(3840&t)>>4|(3840&t)>>8,(240&t)>>4|240&t,(15&t)<<4|15&t,1])),!e)for(i=this.parsers.length;i--&&!e;){var s=this.parsers[i];(n=s.regex.exec(t))&&(e=s.parse(n))}this.rgba=e||[]},get:function(i){var n,t=this.input,e=this.rgba;return this.stops?((n=a(t)).stops=[].concat(n.stops),this.stops.forEach(function(t,e){n.stops[e]=[n.stops[e][0],t.get(i)]})):n=e&&s(e[0])?"rgb"===i||!i&&1===e[3]?"rgb("+e[0]+","+e[1]+","+e[2]+")":"a"===i?e[3]:"rgba("+e.join(",")+")":t,n},brighten:function(e){var t,i=this.rgba;if(this.stops)this.stops.forEach(function(t){t.brighten(e)});else if(s(e)&&0!==e)for(t=0;t<3;t++)i[t]+=n(255*e),i[t]<0&&(i[t]=0),255<i[t]&&(i[t]=255);return this},setOpacity:function(t){return this.rgba[3]=t,this},tweenTo:function(t,e){var i=this.rgba,n=t.rgba;return e=n.length&&i&&i.length?((t=1!==n[3]||1!==i[3])?"rgba(":"rgb(")+Math.round(n[0]+(i[0]-n[0])*(1-e))+","+Math.round(n[1]+(i[1]-n[1])*(1-e))+","+Math.round(n[2]+(i[2]-n[2])*(1-e))+(t?","+(n[3]+(i[3]-n[3])*(1-e)):"")+")":t.input||"none"}},o.color=function(t){return new o.Color(t)}}),t(e,"parts/SvgRenderer.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(g,t){var s=t.animObject,k=t.attr,Q=t.defined,e=t.destroyObjectProperties,c=t.erase,D=t.extend,y=t.isArray,N=t.isNumber,r=t.isObject,d=t.isString,j=t.objectEach,A=t.pick,I=t.pInt,i=t.splat,b=g.addEvent,o=g.animate,m=g.charts,n=g.color,E=g.css,v=g.createElement,p=g.deg2rad,M=g.doc,a=g.hasTouch,h=g.isFirefox,x=g.isMS,u=g.isWebKit,_=g.merge,f=g.noop,W=g.removeEvent,w=g.stop,L=g.svg,P=g.SVG_NS,C=g.symbolSizes,S=g.win,O=g.SVGElement=function(){return this};D(O.prototype,{opacity:1,SVG_NS:P,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline cursor".split(" "),init:function(t,e){this.element="span"===e?v(e):M.createElementNS(this.SVG_NS,e),this.renderer=t,g.fireEvent(this,"afterInit")},animate:function(t,e,i){var n=s(A(e,this.renderer.globalAnimation,!0));return A(M.hidden,M.msHidden,M.webkitHidden,!1)&&(n.duration=0),0!==n.duration?(i&&(n.complete=i),o(this,t,n)):(this.attr(t,void 0,i),j(t,function(t,e){n.step&&n.step.call(this,t,{prop:e,pos:1})},this)),this},complexColor:function(t,c,e){var i,n,s,o,a,d,u,r,p,f,m,l=this.renderer,h=[];g.fireEvent(this.renderer,"complexColor",{args:arguments},function(){t.radialGradient?i="radialGradient":t.linearGradient&&(i="linearGradient"),i&&(n=t[i],o=l.gradients,d=t.stops,p=e.radialReference,y(n)&&(t[i]=n={x1:n[0],y1:n[1],x2:n[2],y2:n[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===i&&p&&!Q(n.gradientUnits)&&(n=_(s=n,l.getRadialAttr(p,s),{gradientUnits:"userSpaceOnUse"})),j(n,function(t,e){"id"!==e&&h.push(e,t)}),j(d,function(t){h.push(t)}),h=h.join(","),o[h]?f=o[h].attr("id"):(n.id=f=g.uniqueKey(),o[h]=a=l.createElement(i).attr(n).add(l.defs),a.radAttr=s,a.stops=[],d.forEach(function(t){r=0===t[1].indexOf("rgba")?(r=g.color(t[1]),u=r.get("rgb"),r.get("a")):(u=t[1],1),t=l.createElement("stop").attr({offset:t[0],"stop-color":u,"stop-opacity":r}).add(a),a.stops.push(t)})),m="url("+l.url+"#"+f+")",e.setAttribute(c,m),e.gradient=h,t.toString=function(){return m})})},applyTextOutline:function(t){var i,n,s=this.element,o=(t=(t=-1!==t.indexOf("contrast")?t.replace(/contrast/g,this.renderer.getContrast(s.style.fill)):t).split(" "))[t.length-1];(i=t[0])&&"none"!==i&&g.svg&&(this.fakeTS=!0,t=[].slice.call(s.getElementsByTagName("tspan")),this.ySetter=this.xSetter,i=i.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*e+i}),this.removeTextOutline(t),n=s.firstChild,t.forEach(function(t,e){0===e&&(t.setAttribute("x",s.getAttribute("x")),e=s.getAttribute("y"),t.setAttribute("y",e||0),null===e&&s.setAttribute("y",0)),t=t.cloneNode(1),k(t,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":i,"stroke-linejoin":"round"}),s.insertBefore(t,n)}))},removeTextOutline:function(t){for(var e,i=t.length;i--;)"highcharts-text-outline"===(e=t[i]).getAttribute("class")&&c(t,this.element.removeChild(e))},symbolCustomAttribs:"x y width height r start end innerR anchorX anchorY rounded".split(" "),attr:function(i,t,e,n){var s,o,a,r=this.element,l=this,h=this.symbolCustomAttribs;return"string"==typeof i&&void 0!==t&&(a=i,(i={})[a]=t),"string"==typeof i?l=(this[i+"Getter"]||this._defaultGetter).call(this,i,r):(j(i,function(t,e){o=!1,n||w(this,e),this.symbolName&&-1!==g.inArray(e,h)&&(s||(this.symbolAttr(i),s=!0),o=!0),!this.rotation||"x"!==e&&"y"!==e||(this.doTransform=!0),o||((o=this[e+"Setter"]||this._defaultSetter).call(this,t,e,r),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(e)&&this.updateShadows(e,t,o))},this),this.afterSetters()),e&&e.call(this),l},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(t,e,i){for(var n=this.shadows,s=n.length;s--;)i.call(n[s],"height"===t?Math.max(e-(n[s].cutHeight||0),0):"d"===t?this.d:e,t,n[s])},addClass:function(t,e){var i=!e&&this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(t,e){return-1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this},hasClass:function(t){return-1!==(this.attr("class")||"").split(" ").indexOf(t)},removeClass:function(t){return this.attr("class",(this.attr("class")||"").replace(d(t)?new RegExp(" ?"+t+" ?"):t,""))},symbolAttr:function(e){var i=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(t){i[t]=A(e[t],i[t])}),i.attr({d:i.renderer.symbols[i.symbolName](i.x,i.y,i.width,i.height,i)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},crisp:function(t,e){e=e||t.strokeWidth||0;var i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),Q(t.strokeWidth)&&(t.strokeWidth=e),t},css:function(t){var e,i,n=this.styles,s={},o=this.element,a="",r=!n,l=["textOutline","textOverflow","width"];return t&&t.color&&(t.fill=t.color),n&&j(t,function(t,e){t!==n[e]&&(s[e]=t,r=!0)}),r&&((t=n?D(n,s):t)&&(null===t.width||"auto"===t.width?delete this.textWidth:"text"===o.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=I(t.width))),this.styles=t,e&&!L&&this.renderer.forExport&&delete t.width,o.namespaceURI===this.SVG_NS?(i=function(t,e){return"-"+e.toLowerCase()},j(t,function(t,e){-1===l.indexOf(e)&&(a+=e.replace(/([A-Z])/g,i)+":"+t+";")}),a&&k(o,"style",a)):E(o,t),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))),this},getStyle:function(t){return S.getComputedStyle(this.element||this,"").getPropertyValue(t)},strokeWidth:function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t,e=this.getStyle("stroke-width"),i=0;return e.indexOf("px")===e.length-2?i=I(e):""!==e&&(t=M.createElementNS(P,"rect"),k(t,{width:e,"stroke-width":0}),this.element.parentNode.appendChild(t),i=t.getBBox().width,t.parentNode.removeChild(t)),i},on:function(t,e){var i=this,n=i.element;return a&&"click"===t?(n.ontouchstart=function(t){i.touchEventFired=Date.now(),t.preventDefault(),e.call(n,t)},n.onclick=function(t){(-1===S.navigator.userAgent.indexOf("Android")||1100<Date.now()-(i.touchEventFired||0))&&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(t){return this.inverted=t,this.updateTransform(),this},updateTransform:function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,n=this.scaleY,s=this.inverted,o=this.rotation,a=this.matrix,r=this.element;s&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],Q(a)&&t.push("matrix("+a.join(",")+")"),s?t.push("rotate(90) scale(-1,1)"):o&&t.push("rotate("+o+" "+A(this.rotationOriginX,r.getAttribute("x"),0)+" "+A(this.rotationOriginY,r.getAttribute("y")||0)+")"),(Q(i)||Q(n))&&t.push("scale("+A(i,1)+" "+A(n,1)+")"),t.length&&r.setAttribute("transform",t.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,i){var n,s,o,a={},r=this.renderer,l=r.alignedObjects,h=(t?(this.alignOptions=t,this.alignByTranslate=e,i&&!d(i)||(this.alignTo=n=i||"renderer",c(l,this),l.push(this),i=null)):(t=this.alignOptions,e=this.alignByTranslate,n=this.alignTo),i=A(i,r[n],r),n=t.align,r=t.verticalAlign,l=(i.x||0)+(t.x||0),(i.y||0)+(t.y||0));return"right"===n?s=1:"center"===n&&(s=2),s&&(l+=(i.width-(t.width||0))/s),a[e?"translateX":"x"]=Math.round(l),"bottom"===r?o=1:"middle"===r&&(o=2),o&&(h+=(i.height-(t.height||0))/o),a[e?"translateY":"y"]=Math.round(h),this[this.placed?"animate":"attr"](a),this.placed=!0,this.alignAttr=a,this},getBBox:function(t,e){var i,n,s,o=this.renderer,a=this.element,r=this.styles,c=this.textStr,l=o.cache,h=o.cacheKeys,d=a.namespaceURI===this.SVG_NS,u=(e=A(e,this.rotation,0),o.styledMode?a&&O.prototype.getStyle.call(a,"font-size"):r&&r.fontSize);if(Q(c)&&(-1===(s=c.toString()).indexOf("<")&&(s=s.replace(/[0-9]/g,"0")),s+=["",e,u,this.textWidth,r&&r.textOverflow].join()),!(i=s&&!t?l[s]:i)){if(d||o.forExport){try{(n=this.fakeTS&&function(e){[].forEach.call(a.querySelectorAll(".highcharts-text-outline"),function(t){t.style.display=e})})&&n("none"),i=a.getBBox?D({},a.getBBox()):{width:a.offsetWidth,height:a.offsetHeight},n&&n("")}catch(t){}(!i||i.width<0)&&(i={width:0,height:0})}else i=this.htmlGetBBox();if(o.isSVG&&(t=i.width,o=i.height,d&&(i.height=o={"11px,17":14,"13px,20":16}[r&&r.fontSize+","+Math.round(o)]||o),e&&(r=e*p,i.width=Math.abs(o*Math.sin(r))+Math.abs(t*Math.cos(r)),i.height=Math.abs(o*Math.cos(r))+Math.abs(t*Math.sin(r)))),s&&0<i.height){for(;250<h.length;)delete l[h.shift()];l[s]||h.push(s),l[s]=i}}return i},show:function(t){return this.attr({visibility:t?"inherit":"visible"})},hide:function(t){return t?this.attr({y:-9999}):this.attr({visibility:"hidden"}),this},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,(e=t&&!t.handleZ&&!this.zIndex?e:this.zIndexSetter())||(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 i=this,t=i.element||{},e=i.renderer,n=e.isSVG&&"SPAN"===t.nodeName&&i.parentGroup,s=t.ownerSVGElement,o=i.clipPath;if(t.onclick=t.onmouseout=t.onmouseover=t.onmousemove=t.point=null,w(i),o&&s&&([].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){-1<t.getAttribute("clip-path").indexOf(o.element.id)&&t.removeAttribute("clip-path")}),i.clipPath=o.destroy()),i.stops){for(s=0;s<i.stops.length;s++)i.stops[s]=i.stops[s].destroy();i.stops=null}for(i.safeRemoveChild(t),e.styledMode||i.destroyShadows();n&&n.div&&0===n.div.childNodes.length;)t=n.parentGroup,i.safeRemoveChild(n.div),delete n.div,n=t;i.alignTo&&c(e.alignedObjects,i),j(i,function(t,e){i[e]&&i[e].parentGroup===i&&i[e].destroy&&i[e].destroy(),delete i[e]})},shadow:function(t,e,i){var n=[],s=this.element;if(t){if(!this.shadows){for(var o=A(t.width,3),a=(t.opacity||.15)/o,c=this.parentInverted?"(-1,-1)":"("+A(t.offsetX,1)+", "+A(t.offsetY,1)+")",r=1;r<=o;r++){var l=s.cloneNode(0),h=2*o+1-2*r;k(l,{stroke:t.color||"#000000","stroke-opacity":a*r,"stroke-width":h,transform:"translate"+c,fill:"none"}),l.setAttribute("class",(l.getAttribute("class")||"")+" highcharts-shadow"),i&&(k(l,"height",Math.max(k(l,"height")-h,0)),l.cutHeight=h),e?e.element.appendChild(l):s.parentNode&&s.parentNode.insertBefore(l,s),n.push(l)}this.shadows=n}}else this.destroyShadows();return this},destroyShadows:function(){(this.shadows||[]).forEach(function(t){this.safeRemoveChild(t)},this),this.shadows=void 0},xGetter:function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},_defaultGetter:function(t){return t=A(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),t=/^[\-0-9\.]+$/.test(t)?parseFloat(t):t},dSetter:function(t,e,i){t&&t.join&&(t=t.join(" ")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(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(e=(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(",")).length;e--;)t[e]=I(t[e])*i;t=t.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},alignSetter:function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},opacitySetter:function(t,e,i){this[e]=t,i.setAttribute(e,t)},titleSetter:function(t){var e=this.element.getElementsByTagName("title")[0];e||(e=M.createElementNS(this.SVG_NS,"title"),this.element.appendChild(e)),e.firstChild&&e.removeChild(e.firstChild),e.appendChild(M.createTextNode(String(A(t,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},setTextPath:function(t,e){var i=this.element,n={textAnchor:"text-anchor"},s=!1,o=this.textPathWrapper,a=!o,r=(e=_(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e)).attributes;if(t&&e&&e.enabled){o&&null===o.element.parentNode?(a=!0,o=o.destroy()):o&&this.removeTextOutline.call(o.parentGroup,[].slice.call(i.getElementsByTagName("tspan"))),this.options&&this.options.padding&&(r.dx=-this.options.padding),o||(this.textPathWrapper=o=this.renderer.createElement("textPath"),s=!0);var l=o.element;if((e=t.element.getAttribute("id"))||t.element.setAttribute("id",e=g.uniqueKey()),a)for(t=i.getElementsByTagName("tspan");t.length;)t[0].setAttribute("y",0),N(r.dx)&&t[0].setAttribute("x",-r.dx),l.appendChild(t[0]);s&&o.add({element:this.text?this.text.element:i}),l.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+e),Q(r.dy)&&(l.parentNode.setAttribute("dy",r.dy),delete r.dy),Q(r.dx)&&(l.parentNode.setAttribute("dx",r.dx),delete r.dx),j(r,function(t,e){l.setAttribute(n[e]||e,t)}),i.removeAttribute("transform"),this.removeTextOutline.call(o,[].slice.call(i.getElementsByTagName("tspan"))),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=f}else o&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(i,t),this.updateTransform(),this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this},destroyTextPath:function(t,e){var i=t.getElementsByTagName("text")[0];if(i){if(i.removeAttribute("dx"),i.removeAttribute("dy"),e.element.setAttribute("id",""),i.getElementsByTagName("textPath").length){for(t=this.textPathWrapper.element.childNodes;t.length;)i.appendChild(t[0]);i.removeChild(this.textPathWrapper.element)}}else(t.getAttribute("dx")||t.getAttribute("dy"))&&(t.removeAttribute("dx"),t.removeAttribute("dy"));this.textPathWrapper=this.textPathWrapper.destroy()},fillSetter:function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},visibilitySetter:function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},zIndexSetter:function(t,e){var i,n=this.renderer,s=((l=this.parentGroup)||n).element||n.box,o=this.element,a=!1,n=s===n.box,r=this.added;if(Q(t)?(o.setAttribute("data-z-index",t),this[e]===(t=+t)&&(r=!1)):Q(this[e])&&o.removeAttribute("data-z-index"),this[e]=t,r){for((t=this.zIndex)&&l&&(l.handleZ=!0),i=(e=s.childNodes).length-1;0<=i&&!a;i--){var l,r=(l=e[i]).getAttribute("data-z-index"),h=!Q(r);l!==o&&(t<0&&h&&!n&&!i?(s.insertBefore(o,e[i]),a=!0):(I(r)<=t||h&&(!Q(t)||0<=t))&&(s.insertBefore(o,e[i+1]||null),a=!0))}a||(s.insertBefore(o,e[n?3:0]||null),a=!0)}return a},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}}),O.prototype.yGetter=O.prototype.xGetter,O.prototype.translateXSetter=O.prototype.translateYSetter=O.prototype.rotationSetter=O.prototype.verticalAlignSetter=O.prototype.rotationOriginXSetter=O.prototype.rotationOriginYSetter=O.prototype.scaleXSetter=O.prototype.scaleYSetter=O.prototype.matrixSetter=function(t,e){this[e]=t,this.doTransform=!0},O.prototype["stroke-widthSetter"]=O.prototype.strokeSetter=function(t,e,i){this[e]=t,this.stroke&&this["stroke-width"]?(O.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):this.renderer.styledMode&&this["stroke-width"]&&(i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},t=g.SVGRenderer=function(){this.init.apply(this,arguments)},D(t.prototype,{Element:O,SVG_NS:P,init:function(t,e,i,n,s,o,a){var r,l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});a||l.css(this.getStyle(n)),n=l.element,t.appendChild(n),k(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&k(n,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=n,this.boxWrapper=l,this.alignedObjects=[],this.url=(h||u)&&M.getElementsByTagName("base").length?S.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(M.createTextNode("Created with Highcharts 8.0.0")),this.defs=this.createElement("defs").add(),this.allowHTML=o,this.forExport=s,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),h&&t.getBoundingClientRect&&((e=function(){E(t,{left:0,top:0}),r=t.getBoundingClientRect(),E(t,{left:Math.ceil(r.left)-r.left+"px",top:Math.ceil(r.top)-r.top+"px"})})(),this.unSubPixelFix=b(S,"resize",e))},definition:function(t){var a=this;return function n(t,s){var o;return i(t).forEach(function(t){var e=a.createElement(t.tagName),i={};j(t,function(t,e){"tagName"!==e&&"children"!==e&&"textContent"!==e&&(i[e]=t)}),e.attr(i),e.add(s||a.defs),t.textContent&&e.element.appendChild(M.createTextNode(t.textContent)),n(t.children||[],e),o=e}),o}(t)},getStyle:function(t){return this.style=D({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),e(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:f,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]}},truncate:function(i,n,s,o,c,d,u){function p(t){n.firstChild&&n.removeChild(n.firstChild),t&&n.appendChild(M.createTextNode(t))}function f(t,e){if(void 0===l[e=e||t])if(n.getSubStringLength)try{l[e]=c+n.getSubStringLength(0,o?e+1:e)}catch(t){}else g.getSpanWidth&&(p(u(s||o,t)),l[e]=c+g.getSpanWidth(i,n));return l[e]}var t,m,g=this,y=i.rotation,e=o?1:0,a=(s||o).length,r=a,l=[],h=(i.rotation=0,f(n.textContent.length));if(m=d<c+h){for(;e<=a;)h=f(r=Math.ceil((e+a)/2),(t=o?u(o,r):t)&&t.length-1),e===a?e=a+1:d<h?a=r-1:e=r;0===a?p(""):s&&a===s.length-1||p(t||u(s||o,r))}return o&&o.splice(0,r),i.actualWidth=h,i.rotation=y,m},escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},buildText:function(d){function b(t){var e;return f.styledMode||(e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:T||f.style.fontSize||12),o?I(o):f.fontMetrics(e,t.getAttribute("style")?t:p).h}function u(i,n){return j(f.escapes,function(t,e){n&&-1!==n.indexOf(t)||(i=i.toString().replace(new RegExp(t,"g"),e))}),i}function v(t,e){var i=t.indexOf("<");if(-1!==(i=(t=t.substring(i,t.indexOf(">")-i)).indexOf(e+"="))&&(i=i+e.length+1,'"'===(e=t.charAt(i))||"'"===e))return(t=t.substring(i+1)).substring(0,t.indexOf(e))}var x,w,p=d.element,f=this,C=f.forExport,t=A(d.textStr,"").toString(),n=-1!==t.indexOf("<"),s=p.childNodes,S=k(p,"x"),e=d.styles,m=d.textWidth,o=e&&e.lineHeight,i=e&&e.textOutline,g=e&&"ellipsis"===e.textOverflow,y=e&&"nowrap"===e.whiteSpace,T=e&&e.fontSize,a=s.length,e=m&&!d.added&&this.box,r=/<br.*?>/g,l=[t,g,y,o,i,T,m].join();if(l!==d.textCache){for(d.textCache=l;a--;)p.removeChild(s[a]);n||i||g||m||-1!==t.indexOf(" ")&&(!y||r.test(t))?(e&&e.appendChild(p),(t=(t=n?(t=f.styledMode?t.replace(/<(b|strong)>/g,'<span class="highcharts-strong">').replace(/<(i|em)>/g,'<span class="highcharts-emphasized">'):t.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(r):[t]).filter(function(t){return""!==t})).forEach(function(t,r){var l=0,h=0,c=(t=t.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||")).split("|||");c.forEach(function(t){if(""!==t||1===c.length){var e,i={},n=M.createElementNS(f.SVG_NS,"tspan");if((e=v(t,"class"))&&k(n,"class",e),(e=v(t,"style"))&&(e=e.replace(/(;| |^)color([ :])/,"$1fill$2"),k(n,"style",e)),(o=v(t,"href"))&&!C&&(k(n,"onclick",'location.href="'+o+'"'),k(n,"class","highcharts-anchor"),f.styledMode||E(n,{cursor:"pointer"}))," "!==(t=u(t.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(n.appendChild(M.createTextNode(t)),l?i.dx=0:r&&null!==S&&(i.x=S),k(n,i),p.appendChild(n),!l&&w&&(!L&&C&&E(n,{display:"block"}),k(n,"dy",b(n))),m){var s=t.replace(/([^\^])-/g,"$1- ").split(" "),i=!y&&(1<c.length||r||1<s.length),o=0,a=b(n);if(g)x=f.truncate(d,n,t,void 0,0,Math.max(0,m-parseInt(T||12,10)),function(t,e){return t.substring(0,e)+"…"});else if(i)for(;s.length;)s.length&&!y&&0<o&&(n=M.createElementNS(P,"tspan"),k(n,{dy:a,x:S}),e&&k(n,"style",e),n.appendChild(M.createTextNode(s.join(" ").replace(/- /g,"-"))),p.appendChild(n)),f.truncate(d,n,null,s,0===o?h:0,m,function(t,e){return s.slice(0,e).join(" ").replace(/- /g,"-")}),h=d.actualWidth,o++}l++}}}),w=w||p.childNodes.length}),g&&x&&d.attr("title",u(d.textStr,["&lt;","&gt;"])),e&&e.removeChild(p),i&&d.applyTextOutline&&d.applyTextOutline(i)):p.appendChild(M.createTextNode(u(t)))}},getContrast:function(t){return(t=n(t).rgba)[0]*=1,t[1]*=1.2,t[2]*=.5,459<t[0]+t[1]+t[2]?"#000000":"#FFFFFF"},button:function(t,d,u,p,e,i,n,s,f,m){var o,a,r,g,l=this.label(t,d,u,f,null,null,m,null,"button"),h=0,c=this.styledMode;return l.attr(_({padding:8,r:2},e)),c||(o=(e=_({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},e)).style,delete e.style,a=(i=_(e,{fill:"#e6e6e6"},i)).style,delete i.style,r=(n=_(e,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},n)).style,delete n.style,g=(s=_(e,{style:{color:"#cccccc"}},s)).style,delete s.style),b(l.element,x?"mouseover":"mouseenter",function(){3!==h&&l.setState(1)}),b(l.element,x?"mouseout":"mouseleave",function(){3!==h&&l.setState(h)}),l.setState=function(t){1!==t&&(l.state=h=t),l.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),c||l.attr([e,i,n,s][t||0]).css([o,a,r,g][t||0])},c||l.attr(e).css(D({cursor:"default"},o)),l.on("click",function(t){3!==h&&p.call(l,t)})},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=Math.round(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=Math.round(t[2])+e%2/2),t},path:function(t){var e=this.styledMode?{}:{fill:"none"};return y(t)?e.d=t:r(t)&&D(e,t),this.createElement("path").attr(e)},circle:function(t,e,i){return t=r(t)?t:void 0===t?{}:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},arc:function(t,e,i,n,s,o){return r(t)?(e=(n=t).y,i=n.r,t=n.x):n={innerR:n,start:s,end:o},(t=this.symbol("arc",t,e,i,i,n)).r=i,t},rect:function(t,e,i,n,s,o){s=r(t)?t.r:s;var a=this.createElement("rect");return t=r(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(n,0)},this.styledMode||(void 0!==o&&(t.strokeWidth=o,t=a.crisp(t)),t.fill="none"),s&&(t.r=s),a.rSetter=function(t,e,i){a.r=t,k(i,{rx:t,ry:t})},a.rGetter=function(){return a.r},a.attr(t)},setSize:function(t,e,i){var n=this.alignedObjects,s=n.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:A(i,!0)?void 0:0});s--;)n[s].align()},g:function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},image:function(e,t,i,n,h,s){function o(t){r(l.element,e),s.call(l,t)}var a={preserveAspectRatio:"none"},r=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)},l=(1<arguments.length&&D(a,{x:t,y:i,width:n,height:h}),this.createElement("image").attr(a));return s?(r(l.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),a=new S.Image,b(a,"load",o),a.src=e,a.complete&&o({})):r(l.element,e),l},symbol:function(t,e,i,c,d,o){var n,s,a,r=this,u=/^url\((.*?)\)$/,p=u.test(t),l=!p&&(this.symbols[t]?t:"circle"),h=l&&this.symbols[l],f=Q(e)&&h&&h.call(this.symbols,Math.round(e),Math.round(i),c,d,o);return h?(s=this.path(f),r.styledMode||s.attr("fill","none"),D(s,{symbolName:l,x:e,y:i,width:c,height:d}),o&&D(s,o)):p&&(n=t.match(u)[1],(s=this.image(n)).imgwidth=A(C[n]&&C[n].width,o&&o.width),s.imgheight=A(C[n]&&C[n].height,o&&o.height),a=function(){s.attr({width:s.width,height:s.height})},["width","height"].forEach(function(t){s[t+"Setter"]=function(t,e){var i={},n=this["img"+e],s="width"===e?"translateX":"translateY";this[e]=t,Q(n)&&(o&&"within"===o.backgroundSize&&this.width&&this.height&&(n=Math.round(n*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,n),this.alignByTranslate||(i[s]=((this[e]||0)-n)/2,this.attr(i)))}}),Q(e)&&s.attr({x:e,y:i}),s.isImg=!0,Q(s.imgwidth)&&Q(s.imgheight)?a():(s.attr({width:0,height:0}),v("img",{onload:function(){var t=m[r.chartIndex];0===this.width&&(E(this,{position:"absolute",top:"-999em"}),M.body.appendChild(this)),C[n]={width:this.width,height:this.height},s.imgwidth=this.width,s.imgheight=this.height,s.element&&a(),this.parentNode&&this.parentNode.removeChild(this),r.imgCount--,!r.imgCount&&t&&t.onload&&t.onload()},src:n}),this.imgCount++)),s},symbols:{circle:function(t,e,i,n){return this.arc(t+i/2,e+n/2,i/2,n/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(t,e,i,n){return["M",t,e,"L",t+i,e,t+i,e+n,t,e+n,"Z"]},triangle:function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n,t,e+n,"Z"]},"triangle-down":function(t,e,i,n){return["M",t,e,"L",t+i,e,t+i/2,e+n,"Z"]},diamond:function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n/2,t+i/2,e+n,t,e+n/2,"Z"]},arc:function(t,e,i,n,s){var o=s.start,a=s.r||i,r=s.r||n||i,l=s.end-.001,h=(i=s.innerR,n=A(s.open,Math.abs(s.end-s.start-2*Math.PI)<.001),Math.cos(o)),c=Math.sin(o),d=Math.cos(l),l=Math.sin(l),a=["M",t+a*h,e+r*c,"A",a,r,0,o=A(s.longArc,s.end-o-Math.PI<.001?0:1),A(s.clockwise,1),t+a*d,e+r*l];return Q(i)&&a.push(n?"M":"L",t+i*d,e+i*l,"A",i,i,0,o,Q(s.clockwise)?1-s.clockwise:0,t+i*h,e+i*c),a.push(n?"":"Z"),a},callout:function(t,e,i,n,s){var o=Math.min(s&&s.r||0,i,n),a=o+6,r=s&&s.anchorX,l=(s=s&&s.anchorY,["M",t+o,e,"L",t+i-o,e,"C",t+i,e,t+i,e,t+i,e+o,"L",t+i,e+n-o,"C",t+i,e+n,t+i,e+n,t+i-o,e+n,"L",t+o,e+n,"C",t,e+n,t,e+n,t,e+n-o,"L",t,e+o,"C",t,e,t,e,t+o,e]);return r&&i<r?e+a<s&&s<e+n-a?l.splice(13,3,"L",t+i,s-6,t+i+6,s,t+i,s+6,t+i,e+n-o):l.splice(13,3,"L",t+i,n/2,r,s,t+i,n/2,t+i,e+n-o):r&&r<0?e+a<s&&s<e+n-a?l.splice(33,3,"L",t,s+6,t-6,s,t,s-6,t,e+o):l.splice(33,3,"L",t,n/2,r,s,t,n/2,t,e+o):s&&n<s&&t+a<r&&r<t+i-a?l.splice(23,3,"L",r+6,e+n,r,e+n+6,r-6,e+n,t+o,e+n):s&&s<0&&t+a<r&&r<t+i-a&&l.splice(3,3,"L",r-6,e,r,e-6,r+6,e,i-o,e),l}},clipRect:function(t,e,i,n){var s=g.uniqueKey()+"-",o=this.createElement("clipPath").attr({id:s}).add(this.defs);return(t=this.rect(t,e,i,n,0).add(o)).id=s,t.clipPath=o,t.count=0,t},text:function(t,e,i,n){var s={};return!n||!this.allowHTML&&this.forExport?(s.x=Math.round(e||0),i&&(s.y=Math.round(i)),Q(t)&&(s.text=t),t=this.createElement("text").attr(s),n||(t.xSetter=function(t,e,i){for(var n=i.getElementsByTagName("tspan"),s=i.getAttribute(e),o=0;o<n.length;o++){var a=n[o];a.getAttribute(e)===s&&a.setAttribute(e,t)}i.setAttribute(e,t)}),t):this.html(t,e,i)},fontMetrics:function(t,e){return t=!this.styledMode&&/px/.test(t)||!S.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&O.prototype.getStyle.call(e,"font-size"),{h:e=(t=/px/.test(t)?I(t):12)<24?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},rotCorr:function(t,e,i){var n=t;return e&&i&&(n=Math.max(n*Math.cos(e*p),4)),{x:-t/3*Math.sin(e*p),y:n}},label:function(t,e,u,p,f,m,g,y,i){var n,s,o,b,v,x,w,C,S,a=this,T=a.styledMode,r=a.g("button"!==i&&"label"),l=r.text=a.text("",0,0,g).attr({zIndex:1}),k=0,h=3,j=0,A={},M=/^url\((.*?)\)$/.test(p),I=T||M,E=function(){return T?n.strokeWidth()%2/2:(C?parseInt(C,10):0)%2/2},c=(i&&r.addClass("highcharts-"+i),function(){var t=l.element.style,e={};s=(void 0===o||void 0===b||w)&&Q(l.textStr)&&l.getBBox(),r.width=(o||s.width||0)+2*h+j,r.height=(b||s.height||0)+2*h,S=h+Math.min(a.fontMetrics(t&&t.fontSize,l).b,s?s.height:1/0),I&&(n||(r.box=n=a.symbols[p]||M?a.symbol(p):a.rect(),n.addClass(("button"===i?"":"highcharts-label-box")+(i?" highcharts-"+i+"-box":"")),n.add(r),t=E(),e.x=t,e.y=(y?-S:0)+t),e.width=Math.round(r.width),e.height=Math.round(r.height),n.attr(D(e,A)),A={})}),L=function(){var t=j+h,e=y?0:S;Q(o)&&s&&("center"===w||"right"===w)&&(t+={center:.5,right:1}[w]*(o-s.width)),t===l.x&&e===l.y||(l.attr("x",t),l.hasBoxWidthChanged&&(s=l.getBBox(!0),c()),void 0!==e&&l.attr("y",e)),l.x=t,l.y=e},d=function(t,e){n?n.attr(t,e):A[t]=e},P=(r.onAdd=function(){l.add(r),r.attr({text:t||0===t?t:"",x:e,y:u}),n&&Q(f)&&r.attr({anchorX:f,anchorY:m})},r.widthSetter=function(t){o=N(t)?t:null},r.heightSetter=function(t){b=t},r["text-alignSetter"]=function(t){w=t},r.paddingSetter=function(t){Q(t)&&t!==h&&(h=r.padding=t,L())},r.paddingLeftSetter=function(t){Q(t)&&t!==j&&(j=t,L())},r.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==k&&(k=t,s&&r.attr({x:v}))},r.textSetter=function(t){void 0!==t&&l.attr({text:t}),c(),L()},r["stroke-widthSetter"]=function(t,e){t&&(I=!0),C=this["stroke-width"]=t,d(e,t)},T?r.rSetter=function(t,e){d(e,t)}:r.strokeSetter=r.fillSetter=r.rSetter=function(t,e){"r"!==e&&("fill"===e&&t&&(I=!0),r[e]=t),d(e,t)},r.anchorXSetter=function(t,e){f=r.anchorX=t,d(e,Math.round(t)-E()-v)},r.anchorYSetter=function(t,e){m=r.anchorY=t,d(e,t-x)},r.xSetter=function(t){r.x=t,k&&(t-=k*((o||s.width)+2*h),r["forceAnimate:x"]=!0),v=Math.round(t),r.attr("translateX",v)},r.ySetter=function(t){x=r.y=Math.round(t),r.attr("translateY",x)},r.css);return g={css:function(e){var i;return e&&(i={},e=_(e),r.textProps.forEach(function(t){void 0!==e[t]&&(i[t]=e[t],delete e[t])}),l.css(i),"width"in i&&c(),"fontSize"in i&&(c(),L())),P.call(r,e)},getBBox:function(){return{width:s.width+2*h,height:s.height+2*h,x:s.x-h,y:s.y-h}},destroy:function(){W(r.element,"mouseenter"),W(r.element,"mouseleave"),l=l&&l.destroy(),n=n&&n.destroy(),O.prototype.destroy.call(r),r=a=c=L=d=null}},T||(g.shadow=function(t){return t&&(c(),n&&n.shadow(t)),r}),D(r,g)}}),g.Renderer=t}),t(e,"parts/Html.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var c=e.attr,p=e.defined,d=e.extend,a=e.pick,m=e.pInt,u=t.createElement,f=t.css,o=t.isFirefox,n=t.isMS,s=t.isWebKit,r=t.SVGElement,i=(e=t.SVGRenderer,t.win);d(r.prototype,{htmlCss:function(t){var e,i="SPAN"===this.element.tagName&&t&&"width"in t,n=a(i&&t.width,void 0);return i&&(delete t.width,this.textWidth=n,e=!0),t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=d(this.styles,t),f(this.element,t),e&&this.htmlUpdateTransform(),this},htmlGetBBox:function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){var e,i,n,s,c,d,t,o,a,r,l,u,h;this.added?(e=this.renderer,i=this.element,n=this.translateX||0,s=this.translateY||0,c=this.x||0,d=this.y||0,o={left:0,center:.5,right:1}[t=this.textAlign||"left"],a=(r=this.styles)&&r.whiteSpace,f(i,{marginLeft:n,marginTop:s}),!e.styledMode&&this.shadows&&this.shadows.forEach(function(t){f(t,{marginLeft:n+1,marginTop:s+1})}),this.inverted&&[].forEach.call(i.childNodes,function(t){e.invertChild(t,i)}),"SPAN"===i.tagName&&(r=this.rotation,l=this.textWidth&&m(this.textWidth),u=[r,t,i.innerHTML,this.textWidth,this.textAlign].join(),(h=l!==this.oldTextWidth)&&!(h=l>this.oldTextWidth)&&((h=this.textPxLength)||(f(i,{width:"",whiteSpace:a||"nowrap"}),h=i.offsetWidth),h=l<h),h&&(/[ \-]/.test(i.textContent||i.innerText)||"ellipsis"===i.style.textOverflow)?(f(i,{width:l+"px",display:"block",whiteSpace:a||"normal"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,u!==this.cTT&&(a=e.fontMetrics(i.style.fontSize,i).b,!p(r)||r===(this.oldRotation||0)&&t===this.oldAlign||this.setSpanRotation(r,o,a),this.getSpanCorrection(!p(r)&&this.textPxLength||i.offsetWidth,a,o,r,t)),f(i,{left:c+(this.xCorr||0)+"px",top:d+(this.yCorr||0)+"px"}),this.cTT=u,this.oldRotation=r,this.oldAlign=t)):this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var n={},s=this.renderer.getTransformKey();n[s]=n.transform="rotate("+t+"deg)",n[s+(o?"Origin":"-origin")]=n.transformOrigin=100*e+"% "+i+"px",f(this.element,n)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),d(e.prototype,{getTransformKey:function(){return n&&!/Edge/.test(i.navigator.userAgent)?"-ms-transform":s?"-webkit-transform":o?"MozTransform":i.opera?"-o-transform":""},html:function(t,e,i){function l(o,a){["opacity","visibility"].forEach(function(s){o[s+"Setter"]=function(t,e,i){var n=o.div?o.div.style:a;r.prototype[s+"Setter"].call(this,t,e,i),n&&(n[e]=t)}}),o.addedSetters=!0}var h=this.createElement("span"),n=h.element,s=h.renderer,o=s.isSVG;return h.textSetter=function(t){t!==n.innerHTML&&(delete this.bBox,delete this.oldTextWidth),this.textStr=t,n.innerHTML=a(t,""),h.doTransform=!0},o&&l(h,h.element.style),h.xSetter=h.ySetter=h.alignSetter=h.rotationSetter=function(t,e){h[e="align"===e?"textAlign":e]=t,h.doTransform=!0},h.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},h.attr({text:t,x:Math.round(e),y:Math.round(i)}).css({position:"absolute"}),s.styledMode||h.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),n.style.whiteSpace="nowrap",h.css=h.htmlCss,o&&(h.add=function(t){var o=s.box.parentNode,a=[];if(this.parentGroup=t){var r=t.div;if(!r){for(;t;)a.push(t),t=t.parentGroup;a.reverse().forEach(function(i){function t(t,e){i[e]=t,"translateX"===e?s.left=t+"px":s.top=t+"px",i.doTransform=!0}var e,n=c(i.element,"class"),s=(r=i.div=i.div||u("div",n?{className:n}:void 0,{position:"absolute",left:(i.translateX||0)+"px",top:(i.translateY||0)+"px",display:i.display,opacity:i.opacity,pointerEvents:i.styles&&i.styles.pointerEvents},r||o)).style;d(i,{classSetter:(e=r,function(t){this.element.setAttribute("class",t),e.className=t}),on:function(){return a[0].div&&h.on.apply({element:a[0].div},arguments),i},translateXSetter:t,translateYSetter:t}),i.addedSetters||l(i)})}}else r=o;return r.appendChild(n),h.added=!0,h.alignOnAdd&&h.htmlUpdateTransform(),h}),h}})}),t(e,"parts/Time.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(p,t){var f=t.defined,m=t.extend,e=t.isObject,g=t.objectEach,y=t.pad,b=t.pick,i=t.splat,o=p.merge,v=p.timeUnits,n=p.win;p.Time=function(t){this.update(t,!1)},p.Time.prototype={defaultOptions:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},update:function(t){var e=b(t&&t.useUTC,!0),s=this;this.options=t=o(!0,this.options||{},t),this.Date=t.Date||n.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),(this.variableTimezone=!(e&&!t.getTimezoneOffset&&!t.timezone))||this.timezoneOffset?(this.get=function(t,e){var i=e.getTime(),n=i-s.getTimezoneOffset(e);return e.setTime(n),t=e["getUTC"+t](),e.setTime(i),t},this.set=function(t,e,i){var n;"Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==e.getTimezoneOffset()%60?e["set"+t](i):(n=s.getTimezoneOffset(e),n=e.getTime()-n,e.setTime(n),e["setUTC"+t](i),t=s.getTimezoneOffset(e),n=e.getTime()+t,e.setTime(n))}):e?(this.get=function(t,e){return e["getUTC"+t]()},this.set=function(t,e,i){return e["setUTC"+t](i)}):(this.get=function(t,e){return e["get"+t]()},this.set=function(t,e,i){return e["set"+t](i)})},makeTime:function(t,e,i,n,s,o){var a,r,l;return this.useUTC?(a=this.Date.UTC.apply(0,arguments),(r=this.getTimezoneOffset(a))!==(l=this.getTimezoneOffset(a+=r))?a+=l-r:r-36e5!==this.getTimezoneOffset(a-36e5)||p.isSafari||(a-=36e5)):a=new this.Date(t,e,b(i,1),b(n,0),b(s,0),b(o,0)).getTime(),a},timezoneOffsetFunction:function(){var t=this,e=this.options,i=n.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t).getTimezoneOffset()};if(e.timezone){if(i)return function(t){return 6e4*-i.tz(t,e.timezone).utcOffset()};p.error(25)}return this.useUTC&&e.getTimezoneOffset?function(t){return 6e4*e.getTimezoneOffset(t)}:function(){return 6e4*(t.timezoneOffset||0)}},dateFormat:function(i,n,c){if(!f(n)||isNaN(n))return p.defaultOptions.lang.invalidDate||"";i=b(i,"%Y-%m-%d %H:%M:%S");var s=this,t=new this.Date(n),e=this.get("Hours",t),o=this.get("Day",t),a=this.get("Date",t),r=this.get("Month",t),l=this.get("FullYear",t),h=p.defaultOptions.lang,d=h.weekdays,u=h.shortWeekdays,t=m({a:u?u[o]:d[o].substr(0,3),A:d[o],d:y(a),e:y(a,2," "),w:o,b:h.shortMonths[r],B:h.months[r],m:y(r+1),o:r+1,y:l.toString().substr(2,2),Y:l,H:y(e),k:e,I:y(e%12||12),l:e%12||12,M:y(s.get("Minutes",t)),p:e<12?"AM":"PM",P:e<12?"am":"pm",S:y(t.getSeconds()),L:y(Math.floor(n%1e3),3)},p.dateFormats);return g(t,function(t,e){for(;-1!==i.indexOf("%"+e);)i=i.replace("%"+e,"function"==typeof t?t.call(s,n):t)}),c?i.substr(0,1).toUpperCase()+i.substr(1):i},resolveDTLFormat:function(t){return e(t,!0)?t:{main:(t=i(t))[0],from:t[1],to:t[2]}},getTimeTicks:function(t,e,i,n){var c,s=this,o=[],d={},a=new s.Date(e),r=t.unitRange,l=t.count||1;if(n=b(n,1),f(e)){s.set("Milliseconds",a,r>=v.second?0:l*Math.floor(s.get("Milliseconds",a)/l)),r>=v.second&&s.set("Seconds",a,r>=v.minute?0:l*Math.floor(s.get("Seconds",a)/l)),r>=v.minute&&s.set("Minutes",a,r>=v.hour?0:l*Math.floor(s.get("Minutes",a)/l)),r>=v.hour&&s.set("Hours",a,r>=v.day?0:l*Math.floor(s.get("Hours",a)/l)),r>=v.day&&s.set("Date",a,r>=v.month?1:Math.max(1,l*Math.floor(s.get("Date",a)/l))),r>=v.month&&(s.set("Month",a,r>=v.year?0:l*Math.floor(s.get("Month",a)/l)),h=s.get("FullYear",a)),r>=v.year&&s.set("FullYear",a,h-h%l),r===v.week&&(h=s.get("Day",a),s.set("Date",a,s.get("Date",a)-h+n+(h<n?-7:0))),h=s.get("FullYear",a),n=s.get("Month",a);var h,u=s.get("Date",a),p=s.get("Hours",a);for(e=a.getTime(),s.variableTimezone&&(c=i-e>4*v.month||s.getTimezoneOffset(e)!==s.getTimezoneOffset(i)),e=a.getTime(),a=1;e<i;)o.push(e),e=r===v.year?s.makeTime(h+a*l,0):r===v.month?s.makeTime(h,n+a*l):!c||r!==v.day&&r!==v.week?c&&r===v.hour&&1<l?s.makeTime(h,n,u,p+a*l):e+r*l:s.makeTime(h,n,u+a*l*(r===v.day?1:7)),a++;o.push(e),r<=v.hour&&o.length<1e4&&o.forEach(function(t){0==t%18e5&&"000000000"===s.dateFormat("%H%M%S%L",t)&&(d[t]="day")})}return o.info=m(t,{higherRanks:d,totalRange:r*l}),o}}}),t(e,"parts/Options.js",[e["parts/Globals.js"]],function(n){var t=n.color,e=n.merge;n.defaultOptions={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:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:n.Time.prototype.defaultOptions,chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:n.svg,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:"",padding:8,snap:n.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:t("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},n.setOptions=function(t){return n.defaultOptions=e(!0,n.defaultOptions,t),(t.time||t.global)&&n.time.update(e(n.defaultOptions.global,n.defaultOptions.time,t.global,t.time)),n.defaultOptions},n.getOptions=function(){return n.defaultOptions},n.defaultPlotOptions=n.defaultOptions.plotOptions,n.time=new n.Time(e(n.defaultOptions.global,n.defaultOptions.time)),n.dateFormat=function(t,e,i){return n.time.dateFormat(t,e,i)}}),t(e,"parts/Tick.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(l,t){var r=t.clamp,g=t.correctFloat,y=t.defined,e=t.destroyObjectProperties,w=t.extend,u=t.isNumber,h=t.objectEach,b=t.pick,v=l.fireEvent,o=l.merge,x=l.deg2rad;l.Tick=function(t,e,i,n,s){this.axis=t,this.pos=e,this.type=i||"",this.isNewLabel=this.isNew=!0,this.parameters=s||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,i||n||this.addLabel()},l.Tick.prototype={addLabel:function(){var t,e,c,d,i=this,n=i.axis,s=n.options,u=n.chart,o=n.categories,p=n.names,a=i.pos,r=b(i.options&&i.options.labels,s.labels),f=a===(h=n.tickPositions)[0],m=a===h[h.length-1],p=this.parameters.category||(o?b(o[a],p[a],a):a),l=i.label,o=(!r.step||1===r.step)&&1===n.tickInterval,h=h.info;n.isDatetimeAxis&&h&&(d=(c=u.time.resolveDTLFormat(s.dateTimeLabelFormats[!s.grid&&h.higherRanks[a]||h.unitName])).main),i.isFirst=f,i.isLast=m,i.formatCtx={axis:n,chart:u,isFirst:f,isLast:m,dateTimeLabelFormat:d,tickPositionInfo:h,value:n.isLog?g(n.lin2log(p)):p,pos:a},s=n.labelFormatter.call(i.formatCtx,this.formatCtx),(e=c&&c.list)&&(i.shortenLabel=function(){for(t=0;t<e.length;t++)if(l.attr({text:n.labelFormatter.call(w(i.formatCtx,{dateTimeLabelFormat:e[t]}))}),l.getBBox().width<n.getSlotWidth(i)-2*b(r.padding,5))return;l.attr({text:""})}),o&&n._addedPlotLB&&n.isXAxis&&i.moveLabel(s,r),y(l)||i.movedLabel?l&&l.textStr!==s&&!o&&(!l.textWidth||r.style&&r.style.width||l.styles.width||l.css({width:null}),l.attr({text:s}),l.textPxLength=l.getBBox().width):(i.label=l=i.createLabel({x:0,y:0},s,r),i.rotation=0)},moveLabel:function(e,t){var i,n=this,s=n.label,o=!1,a=n.axis,r=a.reversed,l=a.chart.inverted;s&&s.textStr===e?(n.movedLabel=s,o=!0,delete n.label):h(a.ticks,function(t){o||t.isNew||t===n||!t.label||t.label.textStr!==e||(n.movedLabel=t.label,o=!0,t.labelPos=n.movedLabel.xy,delete t.label)}),o||!n.labelPos&&!s||(i=n.labelPos||s.xy,s=l?i.x:r?0:a.width+a.left,a=l?r?a.width+a.left:0:i.y,n.movedLabel=n.createLabel({x:s,y:a},e,t),n.movedLabel&&n.movedLabel.attr({opacity:0}))},createLabel:function(t,e,i){var n=this.axis,s=n.chart;return(t=y(e)&&i.enabled?s.renderer.text(e,t.x,t.y,i.useHTML).add(n.labelGroup):null)&&(s.styledMode||t.css(o(i.style)),t.textPxLength=t.getBBox().width),t},replaceMovedLabel:function(){var t,e=this.label,i=this.axis,n=i.reversed,s=this.axis.chart.inverted;e&&!this.isNew&&(t=s?e.xy.x:n?i.left:i.width+i.left,n=s?n?i.width+i.top:i.top:e.xy.y,e.animate({x:t,y:n,opacity:0},void 0,e.destroy),delete this.label),i.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e,i=this.axis,c=i.options.labels,n=t.x,d=i.chart.chartWidth,s=i.chart.spacing,u=b(i.labelLeft,Math.min(i.pos,s[3])),s=b(i.labelRight,Math.max(i.isRadial?0:i.pos+i.len,d-s[1])),p=this.label,o=this.rotation,a={left:0,center:.5,right:1}[i.labelAlign||p.attr("align")],r=p.getBBox().width,l=i.getSlotWidth(this),h=l,f=1,m={};o||"justify"!==b(c.overflow,"justify")?o<0&&n-a*r<u?e=Math.round(n/Math.cos(o*x)-u):0<o&&s<n+a*r&&(e=Math.round((d-n)/Math.cos(o*x))):(d=n+(1-a)*r,n-a*r<u?h=t.x+h*(1-a)-u:s<d&&(h=s-t.x+h*a,f=-1),(h=Math.min(l,h))<l&&"center"===i.labelAlign&&(t.x+=f*(l-h-a*(l-Math.min(r,h)))),(h<r||i.autoRotation&&(p.styles||{}).width)&&(e=h)),e&&(this.shortenLabel?this.shortenLabel():(m.width=Math.floor(e),(c.style||{}).textOverflow||(m.textOverflow="ellipsis"),p.css(m)))},getPosition:function(t,e,i,n){var s=this.axis,o=s.chart,a=n&&o.oldChartHeight||o.chartHeight;return(t={x:t?g(s.translate(e+i,null,null,n)+s.transB):s.left+s.offset+(s.opposite?(n&&o.oldChartWidth||o.chartWidth)-s.right-s.left:0),y:t?a-s.bottom+s.offset-(s.opposite?s.height:0):g(a-s.translate(e+i,null,null,n)-s.transB)}).y=r(t.y,-1e5,1e5),v(this,"afterGetPosition",{pos:t}),t},getLabelPosition:function(t,e,i,n,c,s,d,u){var o=this.axis,p=o.transA,f=(o.isLinked&&o.linkedParent?o.linkedParent:o).reversed,a=o.staggerLines,r=o.tickRotCorr||{x:0,y:0},l=c.y,m=n||o.reserveSpaceDefault?0:-o.labelOffset*("center"===o.labelAlign?.5:1),h={};return y(l)||(l=0===o.side?i.rotation?-8:-i.getBBox().height:2===o.side?r.y+8:Math.cos(i.rotation*x)*(r.y-i.getBBox(!1,0).height/2)),t=t+c.x+m+r.x-(s&&n?s*p*(f?-1:1):0),e=e+l-(s&&!n?s*p*(f?1:-1):0),a&&(i=d/(u||1)%a,o.opposite&&(i=a-i-1),e+=o.labelOffset/a*i),h.x=t,h.y=Math.round(e),v(this,"afterGetLabelPosition",{pos:h,tickmarkOffset:s,index:d}),h},getMarkPath:function(t,e,i,n,s,o){return o.crispLine(["M",t,e,"L",t+(s?0:-i),e+(s?i:0)],n)},renderGridLine:function(t,e,i){var n=this.axis,s=n.options,o=this.gridLine,a={},r=this.pos,l=this.type,c=b(this.tickmarkOffset,n.tickmarkOffset),d=n.chart.renderer,h=l?l+"Grid":"grid",u=s[h+"LineWidth"],p=s[h+"LineColor"],s=s[h+"LineDashStyle"];o||(n.chart.styledMode||(a.stroke=p,a["stroke-width"]=u,s&&(a.dashstyle=s)),l||(a.zIndex=1),t&&(e=0),this.gridLine=o=d.path().attr(a).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(n.gridGroup)),o&&(i=n.getPlotLinePath({value:r+c,lineWidth:o.strokeWidth()*i,force:"pass",old:t}))&&o[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},renderMark:function(t,e,c){var i=this.axis,n=i.options,s=i.chart.renderer,o=this.type,a=o?o+"Tick":"tick",r=i.tickSize(a),l=this.mark,h=!l,d=t.x,u=(t=t.y,b(n[a+"Width"],!o&&i.isXAxis?1:0)),n=n[a+"Color"];r&&(i.opposite&&(r[0]=-r[0]),h&&(this.mark=l=s.path().addClass("highcharts-"+(o?o+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||l.attr({stroke:n,"stroke-width":u})),l[h?"attr":"animate"]({d:this.getMarkPath(d,t,r[0],l.strokeWidth()*c,i.horiz,s),opacity:e}))},renderLabel:function(t,c,e,i){var n=(l=this.axis).horiz,s=l.options,o=this.label,a=s.labels,r=a.step,l=b(this.tickmarkOffset,l.tickmarkOffset),h=!0,d=t.x;t=t.y,o&&u(d)&&(o.xy=t=this.getLabelPosition(d,t,o,n,a,l,i,r),this.isFirst&&!this.isLast&&!b(s.showFirstLabel,1)||this.isLast&&!this.isFirst&&!b(s.showLastLabel,1)?h=!1:!n||a.step||a.rotation||c||0===e||this.handleOverflow(t),(h=r&&i%r?!1:h)&&u(t.y)?(t.opacity=e,o[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(o.attr("y",-9999),this.isNewLabel=!0))},render:function(t,e,i){var n=(r=this.axis).horiz,s=this.pos,o=b(this.tickmarkOffset,r.tickmarkOffset),o=(s=this.getPosition(n,s,o,e)).x,a=s.y,r=n&&o===r.pos+r.len||!n&&a===r.pos?-1:1;i=b(i,1),this.isActive=!0,this.renderGridLine(e,i,r),this.renderMark(s,i,r),this.renderLabel(s,e,i,t),this.isNew=!1,l.fireEvent(this,"afterRender")},destroy:function(){e(this,this.axis)}}}),t(e,"parts/Axis.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(v,t){var j=t.animObject,c=t.arrayMax,d=t.arrayMin,A=t.clamp,x=t.correctFloat,w=t.defined,o=t.destroyObjectProperties,l=t.extend,a=t.isArray,C=t.isNumber,g=t.isString,S=t.objectEach,T=t.pick,r=t.relativeLength,h=t.splat,M=t.syncTimeout,u=v.addEvent,p=v.color,f=v.defaultOptions,m=v.deg2rad,k=v.fireEvent,y=v.format,I=v.getMagnitude,E=v.merge,L=v.normalizeTickInterval,P=v.removeEvent,Q=v.seriesTypes,b=v.Tick;return l((t=function(){this.init.apply(this,arguments)}).prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},init:function(t,e){var i=e.isX,n=this,s=(n.chart=t,n.horiz=t.inverted&&!n.isZAxis?!i:i,n.isXAxis=i,n.coll=n.coll||(i?"xAxis":"yAxis"),k(this,"init",{userOptions:e}),n.opposite=e.opposite,n.side=e.side||(n.horiz?n.opposite?0:2:n.opposite?1:3),n.setOptions(e),this.options),o=s.type;n.labelFormatter=s.labels.formatter||n.defaultLabelFormatter,n.userOptions=e,n.minPixelPadding=0,n.reversed=s.reversed,n.visible=!1!==s.visible,n.zoomEnabled=!1!==s.zoomEnabled,n.hasNames="category"===o||!0===s.categories,n.categories=s.categories||n.hasNames,n.names||(n.names=[],n.names.keys={}),n.plotLinesAndBandsGroups={},n.isLog="logarithmic"===o,n.isDatetimeAxis="datetime"===o,n.positiveValuesOnly=n.isLog&&!n.allowNegativeLog,n.isLinked=w(s.linkedTo),n.ticks={},n.labelEdge=[],n.minorTicks={},n.plotLinesAndBands=[],n.alternateBands={},n.len=0,n.minRange=n.userMinRange=s.minRange||s.maxZoom,n.range=s.range,n.offset=s.offset||0,n.stacks={},n.oldStacks={},n.stacksTouched=0,n.max=null,n.min=null,n.crosshair=T(s.crosshair,h(t.options.tooltip.crosshairs)[i?0:1],!1),e=n.options.events,-1===t.axes.indexOf(n)&&(i?t.axes.splice(t.xAxis.length,0,n):t.axes.push(n),t[n.coll].push(n)),n.series=n.series||[],t.inverted&&!n.isZAxis&&i&&void 0===n.reversed&&(n.reversed=!0),S(e,function(t,e){v.isFunction(t)&&u(n,e,t)}),n.lin2log=s.linearToLogConverter||n.lin2log,n.isLog&&(n.val2lin=n.log2lin,n.lin2val=n.lin2log),k(this,"afterInit")},setOptions:function(t){this.options=E(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],E(f[this.coll],t)),k(this,"afterSetOptions",{userOptions:t})},defaultLabelFormatter:function(){var t=this.axis,e=this.value,i=t.chart.time,c=t.categories,n=this.dateTimeLabelFormat,s=(o=f.lang).numericSymbols,o=o.numericSymbolMagnitude||1e3,a=s&&s.length,r=t.options.labels.format,t=t.isLog?Math.abs(e):t.tickInterval,d=this.chart,l=d.numberFormatter;if(r)var h=y(r,this,d);else if(c)h=e;else if(n)h=i.dateFormat(n,e);else if(a&&1e3<=t)for(;a--&&void 0===h;)(i=Math.pow(o,a+1))<=t&&0==10*e%i&&null!==s[a]&&0!==e&&(h=l(e/i,-1)+s[a]);return h=void 0===h?1e4<=Math.abs(e)?l(e,-1):l(e,-1,void 0,""):h},getSeriesExtremes:function(){var o,a=this,r=a.chart;k(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1,a.dataMin=a.dataMax=a.threshold=null,a.softThreshold=!a.isXAxis,a.buildStacks&&a.buildStacks(),a.series.forEach(function(t){var e,i,n,s;!t.visible&&r.options.chart.ignoreHiddenSeries||(e=(s=t.options).threshold,a.hasVisibleSeries=!0,a.positiveValuesOnly&&e<=0&&(e=null),a.isXAxis?(s=t.xData).length&&(i=(o=t.getXExtremes(s)).min,n=o.max,C(i)||i instanceof Date||(s=s.filter(C),i=(o=t.getXExtremes(s)).min,n=o.max),s.length&&(a.dataMin=Math.min(T(a.dataMin,i),i),a.dataMax=Math.max(T(a.dataMax,n),n))):(t.getExtremes(),n=t.dataMax,i=t.dataMin,w(i)&&w(n)&&(a.dataMin=Math.min(T(a.dataMin,i),i),a.dataMax=Math.max(T(a.dataMax,n),n)),w(e)&&(a.threshold=e),s.softThreshold&&!a.positiveValuesOnly||(a.softThreshold=!1)))})}),k(this,"afterGetSeriesExtremes")},translate:function(t,e,c,i,n,s){var o=this.linkedParent||this,a=1,r=0,l=i?o.oldTransA:o.transA,h=(i=i?o.oldMin:o.min,o.minPixelPadding);return n=(o.isOrdinal||o.isBroken||o.isLog&&n)&&o.lin2val,l=l||o.transA,c&&(a*=-1,r=o.len),o.reversed&&(r-=(a*=-1)*(o.sector||o.len)),e?(t=(t*a+r-h)/l+i,n&&(t=o.lin2val(t))):(n&&(t=o.val2lin(t)),t=C(i)?a*(t-i)*l+r+a*h+(C(s)?l*s:0):void 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){function c(t,e,i){return("pass"!==h&&t<e||i<t)&&(h?t=A(t,e,i):d=!0),t}var e,i,n,s,d,o=this,a=o.chart,u=o.left,p=o.top,r=t.old,f=t.value,l=t.translatedValue,m=t.lineWidth,h=t.force,g=r&&a.oldChartHeight||a.chartHeight,y=r&&a.oldChartWidth||a.chartWidth,b=o.transB;return t={value:f,lineWidth:m,old:r,force:h,acrossPanes:t.acrossPanes,translatedValue:l},k(this,"getPlotLinePath",t,function(t){l=T(l,o.translate(f,null,null,r)),l=A(l,-1e5,1e5),e=n=Math.round(l+b),i=s=Math.round(g-l-b),C(l)?o.horiz?(i=p,s=g-o.bottom,e=n=c(e,u,u+o.width)):(e=u,n=y-o.right,i=s=c(i,p,p+o.height)):h=!(d=!0),t.path=d&&!h?null:a.renderer.crispLine(["M",e,i,"L",n,s],m||1)}),t.path},getLinearTickPositions:function(t,e,i){var n,s=x(Math.floor(e/t)*t),o=(i=x(Math.ceil(i/t)*t),[]);if(x(s+t)===s&&(n=20),this.single)return[e];for(e=s;e<=i&&(o.push(e),(e=x(e+t,n))!==a);)var a=e;return o},getMinorTickInterval:function(){var t=this.options;return!0===t.minorTicks?T(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},getMinorTickPositions:function(){var n=this,t=n.options,e=n.tickPositions,s=n.minorTickInterval,o=[],i=n.pointRangePadding||0,a=n.min-i,r=(i=n.max+i)-a;if(r&&r/s<n.len/3)if(n.isLog)this.paddedTicks.forEach(function(t,e,i){e&&o.push.apply(o,n.getLogTickPositions(s,i[e-1],i[e],!0))});else if(n.isDatetimeAxis&&"auto"===this.getMinorTickInterval())o=o.concat(n.getTimeTicks(n.normalizeTimeTickInterval(s),a,i,t.startOfWeek));else for(t=a+(e[0]-a)%s;t<=i&&t!==o[0];t+=s)o.push(t);return 0!==o.length&&n.trimTicks(o),o},adjustForMinRange:function(){var e,i,n,s,t,o,a,r=this.options,l=this.min,h=this.max;this.isXAxis&&void 0===this.minRange&&!this.isLog&&(w(r.min)||w(r.max)?this.minRange=null:(this.series.forEach(function(t){for(s=t.xData,i=t.xIncrement?1:s.length-1;0<i;i--)n=s[i]-s[i-1],(void 0===e||n<e)&&(e=n)}),this.minRange=Math.min(5*e,this.dataMax-this.dataMin))),h-l<this.minRange&&(t=this.dataMax-this.dataMin>=this.minRange,a=[l-(a=((o=this.minRange)-h+l)/2),T(r.min,l-a)],t&&(a[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),h=[(l=c(a))+o,T(r.max,l+o)],t&&(h[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(h=d(h))-l<o&&(a[0]=h-o,a[1]=T(r.min,h-o),l=c(a))),this.min=l,this.max=h},getClosest:function(){var n;return this.categories?n=1:this.series.forEach(function(t){var e=t.closestPointRange,i=t.visible||!t.chart.options.chart.ignoreHiddenSeries;!t.noSharedTooltip&&w(e)&&i&&(n=w(n)?Math.min(n,e):e)}),n},nameToX:function(t){var e,i=a(this.categories),n=i?this.categories:this.names,s=t.options.x;return t.series.requireSorting=!1,-1===(s=w(s)?s:!1===this.options.uniqueNames?t.series.autoIncrement():i?n.indexOf(t.name):T(n.keys[t.name],-1))?i||(e=n.length):e=s,void 0!==e&&(this.names[e]=t.name,this.names.keys[t.name]=e),e},updateNames:function(){var s=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(n){n.xIncrement=null,n.points&&!n.isDirtyData||(s.max=Math.max(s.max,n.xData.length-1),n.processData(),n.generatePoints()),n.data.forEach(function(t,e){var i;t&&t.options&&void 0!==t.name&&(void 0!==(i=s.nameToX(t))&&i!==t.x&&(t.x=i,n.xData[e]=i))})}))},setAxisTranslation:function(c){var n,s=this,t=s.max-s.min,o=s.axisPointRange||0,a=0,r=0,e=s.linkedParent,l=!!s.categories,i=s.transA,h=s.isXAxis;(h||l||o)&&(n=s.getClosest(),e?(a=e.minPointOffset,r=e.pointRangePadding):s.series.forEach(function(t){var e=l?1:h?T(t.options.pointRange,n,0):s.axisPointRange||0,i=t.options.pointPlacement;o=Math.max(o,e),s.single&&!l||(t=Q.xrange&&t instanceof Q.xrange?!h:h,a=Math.max(a,t&&g(i)?0:e/2),r=Math.max(r,t&&"on"===i?0:e))}),e=s.ordinalSlope&&n?s.ordinalSlope/n:1,s.minPointOffset=a*=e,s.pointRangePadding=r*=e,s.pointRange=Math.min(o,s.single&&l?1:t),h&&(s.closestPointRange=n)),c&&(s.oldTransA=i),s.translationSlope=s.transA=i=s.staticScale||s.len/(t+r||1),s.transB=s.horiz?s.left:s.bottom,s.minPixelPadding=i*a,k(this,"afterSetAxisTranslation")},minFromRange:function(){return this.max-this.range},setTickInterval:function(t){var e,c,i=this,n=i.chart,s=i.options,d=i.isLog,u=i.isDatetimeAxis,p=i.isXAxis,o=i.isLinked,f=s.maxPadding,m=s.minPadding,a=s.tickInterval,g=s.tickPixelInterval,y=i.categories,r=C(i.threshold)?i.threshold:null,b=i.softThreshold,l=(u||y||o||this.getTickAmount(),T(i.userMin,s.min)),h=T(i.userMax,s.max);o?(i.linkedParent=n[i.coll][s.linkedTo],e=i.linkedParent.getExtremes(),i.min=T(e.min,e.dataMin),i.max=T(e.max,e.dataMax),s.type!==i.linkedParent.options.type&&v.error(11,1,n)):(!b&&w(r)&&(i.dataMin>=r?(e=r,m=0):i.dataMax<=r&&(c=r,f=0)),i.min=T(l,e,i.dataMin),i.max=T(h,c,i.dataMax)),d&&(i.positiveValuesOnly&&!t&&Math.min(i.min,T(i.dataMin,i.min))<=0&&v.error(10,1,n),i.min=x(i.log2lin(i.min),16),i.max=x(i.log2lin(i.max),16)),i.range&&w(i.max)&&(i.userMin=i.min=l=Math.max(i.dataMin,i.minFromRange()),i.userMax=h=i.max,i.range=null),k(i,"foundExtremes"),i.beforePadding&&i.beforePadding(),i.adjustForMinRange(),!(y||i.axisPointRange||i.usePercentage||o)&&w(i.min)&&w(i.max)&&(n=i.max-i.min)&&(!w(l)&&m&&(i.min-=n*m),!w(h)&&f&&(i.max+=n*f)),C(i.userMin)||(C(s.softMin)&&s.softMin<i.min&&(i.min=l=s.softMin),C(s.floor)&&(i.min=Math.max(i.min,s.floor))),C(i.userMax)||(C(s.softMax)&&s.softMax>i.max&&(i.max=h=s.softMax),C(s.ceiling)&&(i.max=Math.min(i.max,s.ceiling))),b&&w(i.dataMin)&&(r=r||0,!w(l)&&i.min<r&&i.dataMin>=r?i.min=i.options.minRange?Math.min(r,i.max-i.minRange):r:!w(h)&&i.max>r&&i.dataMax<=r&&(i.max=i.options.minRange?Math.max(r,i.min+i.minRange):r)),i.tickInterval=i.min===i.max||void 0===i.min||void 0===i.max?1:o&&!a&&g===i.linkedParent.options.tickPixelInterval?a=i.linkedParent.tickInterval:T(a,this.tickAmount?(i.max-i.min)/Math.max(this.tickAmount-1,1):void 0,y?1:(i.max-i.min)*g/Math.max(i.len,g)),p&&!t&&i.series.forEach(function(t){t.processData(i.min!==i.oldMin||i.max!==i.oldMax)}),i.setAxisTranslation(!0),i.beforeSetTickPositions&&i.beforeSetTickPositions(),i.postProcessTickInterval&&(i.tickInterval=i.postProcessTickInterval(i.tickInterval)),i.pointRange&&!a&&(i.tickInterval=Math.max(i.pointRange,i.tickInterval)),t=T(s.minTickInterval,i.isDatetimeAxis&&i.closestPointRange),!a&&i.tickInterval<t&&(i.tickInterval=t),u||d||a||(i.tickInterval=L(i.tickInterval,null,I(i.tickInterval),T(s.allowDecimals,!(.5<i.tickInterval&&i.tickInterval<5&&1e3<i.max&&i.max<9999)),!!this.tickAmount)),this.tickAmount||(i.tickInterval=i.unsquish()),this.setTickPositions()},setTickPositions:function(){var t=this.options,e=t.tickPositions,i=this.getMinorTickInterval(),n=t.tickPositioner,s=t.startOnTick,o=t.endOnTick;this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i&&this.tickInterval?this.tickInterval/5:i,this.single=this.min===this.max&&w(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=i=e&&e.slice(),!i&&(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)?(i=[this.min,this.max],v.error(19,!1,this.chart)):i=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),i.length>this.len&&((i=[i[0],i.pop()])[0]===i[1]&&(i.length=1)),this.tickPositions=i,n=n&&n.apply(this,[this.min,this.max]))&&(this.tickPositions=i=n),this.paddedTicks=i.slice(0),this.trimTicks(i,s,o),this.isLinked||(this.single&&i.length<2&&!this.categories&&(this.min-=.5,this.max+=.5),e||n||this.adjustTickAmount()),k(this,"afterSetTickPositions")},trimTicks:function(t,e,i){var n=t[0],s=t[t.length-1],o=this.minPointOffset||0;if(k(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==n)this.min=n;else for(;this.min-o>t[0];)t.shift();if(i)this.max=s;else for(;this.max+o<t[t.length-1];)t.pop();0===t.length&&w(n)&&!this.options.tickPositions&&t.push((s+n)/2)}},alignToOthers:function(){var i,n={},t=this.options;return!1===this.chart.options.chart.alignTicks||!1===t.alignTicks||!1===t.startOnTick||!1===t.endOnTick||this.isLog||this.chart[this.coll].forEach(function(t){var e=t.options,e=[t.horiz?e.left:e.top,e.width,e.height,e.pane].join();t.series.length&&(n[e]?i=!0:n[e]=1)}),i},getTickAmount:function(){var t=this.options,e=t.tickAmount,i=t.tickPixelInterval;(e=!(e=!w(t.tickInterval)&&this.len<i&&!this.isRadial&&!this.isLog&&t.startOnTick&&t.endOnTick?2:e)&&this.alignToOthers()?Math.ceil(this.len/i)+1:e)<4&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t,e=this.options,i=this.tickInterval,n=this.tickPositions,s=this.tickAmount,o=this.finalTickAmt,a=n&&n.length,r=T(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(a<s){for(t=this.min;n.length<s;)n.length%2||t===r?n.push(x(n[n.length-1]+i)):n.unshift(x(n[0]-i));this.transA*=(a-1)/(s-1),this.min=e.startOnTick?n[0]:Math.min(this.min,n[0]),this.max=e.endOnTick?n[n.length-1]:Math.max(this.max,n[n.length-1])}else s<a&&(this.tickInterval*=2,this.setTickPositions());if(w(o)){for(i=e=n.length;i--;)(3===o&&1==i%2||o<=2&&0<i&&i<e-1)&&n.splice(i,1);this.finalTickAmt=void 0}}},setScale:function(){var t,e=this.series.some(function(t){return t.isDirtyData||t.isDirty||t.xAxis&&t.xAxis.isDirty});this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),(t=this.len!==this.oldAxisLength)||e||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=t||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks(),k(this,"afterSetScale")},setExtremes:function(t,e,i,n,s){var o=this,a=o.chart;i=T(i,!0),o.series.forEach(function(t){delete t.kdTree}),s=l(s,{min:t,max:e}),k(o,"setExtremes",s,function(){o.userMin=t,o.userMax=e,o.eventArgs=s,i&&a.redraw(n)})},zoom:function(t,e){var n=this.dataMin,s=this.dataMax,i=this.options,o=Math.min(n,T(i.min,n)),a=Math.max(s,T(i.max,s));return k(this,"zoom",t={newMin:t,newMax:e},function(t){var e=t.newMin,i=t.newMax;e===this.min&&i===this.max||(this.allowZoomOutside||(!w(n)||a<(e=e<o?o:e)&&(e=a),!w(s)||a<(i=i<o?o:i)&&(i=a)),this.displayBtn=void 0!==e||void 0!==i,this.setExtremes(e,i,!1,void 0,{trigger:"zoom"})),t.zoomed=!0}),t.zoomed},setAxisSize:function(){var t=this.chart,e=(a=this.options).offsets||[0,0,0,0],i=this.horiz,n=this.width=Math.round(r(T(a.width,t.plotWidth-e[3]+e[1]),t.plotWidth)),s=this.height=Math.round(r(T(a.height,t.plotHeight-e[0]+e[2]),t.plotHeight)),o=this.top=Math.round(r(T(a.top,t.plotTop+e[0]),t.plotHeight,t.plotTop)),a=this.left=Math.round(r(T(a.left,t.plotLeft+e[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-s-o,this.right=t.chartWidth-n-a,this.len=Math.max(i?n:s,0),this.pos=i?a:o},getExtremes:function(){var t=this.isLog;return{min:t?x(this.lin2log(this.min)):this.min,max:t?x(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=(i=this.isLog)?this.lin2log(this.min):this.min,i=i?this.lin2log(this.max):this.max;return null===t||-1/0===t?t=e:1/0===t?t=i:t<e?t=e:i<t&&(t=i),this.translate(t,0,1,0,1)},autoLabelAlign:function(t){var e=(T(t,0)-90*this.side+720)%360;return k(this,"autoLabelAlign",t={align:"center"},function(t){15<e&&e<165?t.align="right":195<e&&e<345&&(t.align="left")}),t.align},tickSize:function(t){var e,i=this.options,n=i[t+"Length"],s=T(i[t+"Width"],"tick"===t&&this.isXAxis&&!this.categories?1:0);return s&&n&&(e=[n="inside"===i[t+"Position"]?-n:n,s]),k(this,"afterTickSize",t={tickSize:e}),t.tickSize},labelMetrics:function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},unsquish:function(){function i(t){var e=1<(e=t/(r||1))?Math.ceil(e):1;return h<e*o&&1/0!==t&&1/0!==r&&h&&(e=Math.ceil(h/o)),x(e*o)}var n,s,t,e=this.options.labels,c=this.horiz,o=this.tickInterval,a=o,r=this.len/(((this.categories?1:0)+this.max-this.min)/o),l=e.rotation,d=this.labelMetrics(),u=Number.MAX_VALUE,h=this.max-this.min;return c?(t=!e.staggerLines&&!e.step&&(w(l)?[l]:r<T(e.autoRotationLimit,80)&&e.autoRotation))&&t.forEach(function(t){var e;!(t===l||t&&-90<=t&&t<=90)||(e=(s=i(Math.abs(d.h/Math.sin(m*t))))+Math.abs(t/360))<u&&(u=e,n=t,a=s)}):e.step||(a=i(d.h)),this.autoRotation=t,this.labelRotation=T(n,l),a},getSlotWidth:function(t){var e=this.chart,i=this.horiz,n=this.options.labels,s=Math.max(this.tickPositions.length-(this.categories?0:1),1),o=e.margin[3];return t&&t.slotWidth||i&&(n.step||0)<2&&!n.rotation&&(this.staggerLines||1)*this.len/s||!i&&(n.style&&parseInt(n.style.width,10)||o&&o-e.spacing[3]||.33*e.chartWidth)},renderUnsquish:function(){var t=this.chart,c=t.renderer,e=this.tickPositions,d=this.ticks,i=this.options.labels,u=i&&i.style||{},p=this.horiz,n=this.getSlotWidth(),s=Math.max(1,Math.round(n-2*(i.padding||5))),o={},a=this.labelMetrics(),f=i.style&&i.style.textOverflow,r=0;if(g(i.rotation)||(o.rotation=i.rotation||0),e.forEach(function(t){(t=d[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>r&&(r=t.label.textPxLength)}),this.maxLabelLength=r,this.autoRotation)s<r&&r>a.h?o.rotation=this.labelRotation:this.labelRotation=0;else if(n){var l=s;if(!f)for(var m="clip",s=e.length;!p&&s--;){var h=e[s];(h=d[h].label)&&(h.styles&&"ellipsis"===h.styles.textOverflow?h.css({textOverflow:"clip"}):h.textPxLength>n&&h.css({width:n+"px"}),h.getBBox().height>this.len/e.length-(a.h-a.f)&&(h.specificTextOverflow="ellipsis"))}}o.rotation&&(l=r>.5*t.chartHeight?.33*t.chartHeight:r,f||(m="ellipsis")),(this.labelAlign=i.align||this.autoLabelAlign(this.labelRotation))&&(o.align=this.labelAlign),e.forEach(function(t){var e=(t=d[t])&&t.label,i=u.width,n={};e&&(e.attr(o),t.shortenLabel?t.shortenLabel():l&&!i&&"nowrap"!==u.whiteSpace&&(l<e.textPxLength||"SPAN"===e.element.tagName)?(n.width=l,f||(n.textOverflow=e.specificTextOverflow||m),e.css(n)):e.styles&&e.styles.width&&!n.width&&!i&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=o.rotation)},this),this.tickRotCorr=c.rotCorr(a.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&w(this.min)&&w(this.max)},addTitle:function(t){var e,i=this.chart.renderer,n=this.horiz,s=this.opposite,o=this.options.title,a=this.chart.styledMode;this.axisTitle||((e=o.textAlign)||(e=(n?{low:"left",middle:"center",high:"right"}:{low:s?"right":"left",middle:"center",high:s?"left":"right"})[o.align]),this.axisTitle=i.text(o.text,0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation||0,align:e}).addClass("highcharts-axis-title"),a||this.axisTitle.css(E(o.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||o.style.width||this.isRadial||this.axisTitle.css({width:this.len}),this.axisTitle[t?"show":"hide"](t)},generateTick:function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new b(this,t)},getOffset:function(){var c,d,i=this,t=(h=i.chart).renderer,e=i.options,n=i.tickPositions,u=i.ticks,s=i.horiz,o=i.side,p=h.inverted&&!i.isZAxis?[1,0,3,2][o]:o,f=0,a=0,r=e.title,m=e.labels,l=0,g=h.axisOffset,h=h.clipOffset,y=[-1,1,1,-1][o],b=e.className,v=i.axisParent,x=i.hasData();i.showAxis=c=x||T(e.showEmpty,!0),i.staggerLines=i.horiz&&m.staggerLines,i.axisGroup||(i.gridGroup=t.g("grid").attr({zIndex:e.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(b||"")).add(v),i.axisGroup=t.g("axis").attr({zIndex:e.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(b||"")).add(v),i.labelGroup=t.g("axis-labels").attr({zIndex:m.zIndex||7}).addClass("highcharts-"+i.coll.toLowerCase()+"-labels "+(b||"")).add(v)),x||i.isLinked?(n.forEach(function(t,e){i.generateTick(t,e)}),i.renderUnsquish(),i.reserveSpaceDefault=0===o||2===o||{1:"left",3:"right"}[o]===i.labelAlign,T(m.reserveSpace,"center"===i.labelAlign||null,i.reserveSpaceDefault)&&n.forEach(function(t){l=Math.max(u[t].getLabelSize(),l)}),i.staggerLines&&(l*=i.staggerLines),i.labelOffset=l*(i.opposite?-1:1)):S(u,function(t,e){t.destroy(),delete u[e]}),r&&r.text&&!1!==r.enabled&&(i.addTitle(c),c&&!1!==r.reserveSpace)&&(i.titleOffset=f=i.axisTitle.getBBox()[s?"height":"width"],d=r.offset,a=w(d)?0:T(r.margin,s?5:10)),i.renderLine(),i.offset=y*T(e.offset,g[o]?g[o]+(e.margin||0):0),i.tickRotCorr=i.tickRotCorr||{x:0,y:0},t=0===o?-i.labelMetrics().h:2===o?i.tickRotCorr.y:0,a=Math.abs(l)+a,l&&(a=a-t+y*(s?T(m.y,i.tickRotCorr.y+8*y):m.x)),i.axisTitleMargin=T(d,a),i.getMaxLabelDimensions&&(i.maxLabelDimensions=i.getMaxLabelDimensions(u,n)),s=this.tickSize("tick"),g[o]=Math.max(g[o],i.axisTitleMargin+f+y*i.offset,a,n&&n.length&&s?s[0]+y*i.offset:0),e=e.offset?0:2*Math.floor(i.axisLine.strokeWidth()/2),h[p]=Math.max(h[p],e),k(this,"afterGetOffset")},getLinePath:function(t){var e=this.chart,i=this.opposite,n=this.offset,s=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(["M",s?this.left:o,s?n:this.top,"L",s?e.chartWidth-this.right:o,s?n:e.chartHeight-this.bottom],t)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var t=this.horiz,e=this.left,i=this.top,n=this.len,s=this.options.title,o=t?e:i,a=this.opposite,r=this.offset,l=s.x||0,c=s.y||0,h=this.axisTitle,d=this.chart.renderer.fontMetrics(s.style&&s.style.fontSize,h),h=Math.max(h.getBBox(null,0).height-d.h-1,0),n={low:o+(t?0:n),middle:o+n/2,high:o+(t?n:0)}[s.align],e=(t?i+this.height:e)+(t?1:-1)*(a?-1:1)*this.axisTitleMargin+[-h,h,d.f,-h][this.side],t={x:t?n+l:e+(a?this.width:0)+r+l,y:t?e+c-(a?this.height:0)+r:n+c};return k(this,"afterGetTitlePosition",{titlePosition:t}),t},renderMinorTick:function(t){var e=this.chart.hasRendered&&C(this.oldMin),i=this.minorTicks;i[t]||(i[t]=new b(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},renderTick:function(t,e){var i=this.isLinked,n=this.ticks,s=this.chart.hasRendered&&C(this.oldMin);(!i||t>=this.min&&t<=this.max)&&(n[t]||(n[t]=new b(this,t)),s&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))},render:function(){var i,n,s=this,c=s.chart,t=s.options,d=s.isLog,u=s.isLinked,o=s.tickPositions,e=s.axisTitle,a=s.ticks,p=s.minorTicks,r=s.alternateBands,f=t.stackLabels,m=t.alternateGridColor,l=s.tickmarkOffset,h=s.axisLine,g=s.showAxis,y=j(c.renderer.globalAnimation);s.labelEdge.length=0,s.overlap=!1,[a,p,r].forEach(function(t){S(t,function(t){t.isActive=!1})}),(s.hasData()||u)&&(s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach(function(t){s.renderMinorTick(t)}),o.length&&(o.forEach(function(t,e){s.renderTick(t,e)}),l&&(0===s.min||s.single)&&(a[-1]||(a[-1]=new b(s,-1,null,!0)),a[-1].render(-1))),m&&o.forEach(function(t,e){n=void 0!==o[e+1]?o[e+1]+l:s.max-l,0==e%2&&t<s.max&&n<=s.max+(c.polar?-l:l)&&(r[t]||(r[t]=new v.PlotLineOrBand(s)),i=t+l,r[t].options={from:d?s.lin2log(i):i,to:d?s.lin2log(n):n,color:m},r[t].render(),r[t].isActive=!0)}),s._addedPlotLB||((t.plotLines||[]).concat(t.plotBands||[]).forEach(function(t){s.addPlotBandOrLine(t)}),s._addedPlotLB=!0)),[a,p,r].forEach(function(t){var e,i=[],n=y.duration;S(t,function(t,e){t.isActive||(t.render(e,!1,0),t.isActive=!1,i.push(e))}),M(function(){for(e=i.length;e--;)t[i[e]]&&!t[i[e]].isActive&&(t[i[e]].destroy(),delete t[i[e]])},t!==r&&c.hasRendered&&n?n:0)}),h&&(h[h.isPlaced?"animate":"attr"]({d:this.getLinePath(h.strokeWidth())}),h.isPlaced=!0,h[g?"show":"hide"](g)),e&&g&&(t=s.getTitlePosition(),C(t.y)?(e[e.isNew?"attr":"animate"](t),e.isNew=!1):(e.attr("y",-9999),e.isNew=!0)),f&&f.enabled&&s.renderStackTotals(),s.isDirty=!1,k(this,"afterRender")},redraw:function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(t){var e,i=this,n=i.stacks,s=i.plotLinesAndBands;if(k(this,"destroy",{keepEvents:t}),t||P(i),S(n,function(t,e){o(t),n[e]=null}),[i.ticks,i.minorTicks,i.alternateBands].forEach(function(t){o(t)}),s)for(t=s.length;t--;)s[t].destroy();for(e in"stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(t){i[t]&&(i[t]=i[t].destroy())}),i.plotLinesAndBandsGroups)i.plotLinesAndBandsGroups[e]=i.plotLinesAndBandsGroups[e].destroy();S(i,function(t,e){-1===i.keepProps.indexOf(e)&&delete i[e]})},drawCrosshair:function(t,e){var i,n,s=this.crosshair,o=T(s.snap,!0),a=this.cross;if(k(this,"drawCrosshair",{e:t,point:e}),t=t||this.cross&&this.cross.e,this.crosshair&&!1!==(w(e)||!o)){if(o?w(e)&&(i=T("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):i=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),w(i)&&(n={value:e&&(this.isXAxis?e.x:T(e.stackY,e.y)),translatedValue:i},this.chart.polar&&l(n,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),n=this.getPlotLinePath(n)||null),!w(n))return void this.hideCrosshair();o=this.categories&&!this.isRadial,a||(this.cross=a=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(o?"category ":"thin ")+s.className).attr({zIndex:T(s.zIndex,2)}).add(),this.chart.styledMode||(a.attr({stroke:s.color||(o?p("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":T(s.width,1)}).css({"pointer-events":"none"}),s.dashStyle&&a.attr({dashstyle:s.dashStyle}))),a.show().attr({d:n}),o&&!s.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();k(this,"afterDrawCrosshair",{e:t,point:e})},hideCrosshair:function(){this.cross&&this.cross.hide(),k(this,"afterHideCrosshair")}}),v.Axis=t}),t(e,"parts/DateTimeAxis.js",[e["parts/Globals.js"]],function(t){var e=t.Axis,a=t.getMagnitude,r=t.normalizeTickInterval,l=t.timeUnits;e.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)},e.prototype.normalizeTimeTickInterval=function(t,e){for(var i=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]],n=(e=i[i.length-1],l[e[0]]),s=e[1],o=0;o<i.length&&(e=i[o],n=l[e[0]],s=e[1],!(i[o+1]&&t<=(n*s[s.length-1]+l[i[o+1][0]])/2));o++);return n===l.year&&t<5*n&&(s=[1,2,5]),{unitRange:n,count:t=r(t/n,s,"year"===e[0]?Math.max(a(t/n),1):1),unitName:e[0]}}}),t(e,"parts/LogarithmicAxis.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var u=e.pick,p=(e=t.Axis,t.getMagnitude),f=t.normalizeTickInterval;e.prototype.getLogTickPositions=function(t,e,i,n){var s=this.options,o=this.len,a=[];if(n||(this._minorAutoInterval=null),.5<=t)t=Math.round(t),a=this.getLinearTickPositions(t,e,i);else if(.08<=t)for(var r,o=Math.floor(e),s=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];o<i+1&&!r;o++)for(var c=s.length,l=0;l<c&&!r;l++)var d=this.log2lin(this.lin2log(o)*s[l]),h=(e<d&&(!n||h<=i)&&void 0!==h&&a.push(h),i<h&&(r=!0),d);else e=this.lin2log(e),i=this.lin2log(i),t=n?this.getMinorTickInterval():s.tickInterval,t=u("auto"===t?null:t,this._minorAutoInterval,s.tickPixelInterval/(n?5:1)*(i-e)/((n?o/this.tickPositions.length:o)||1)),t=f(t,null,p(t)),a=this.getLinearTickPositions(t,e,i).map(this.log2lin),n||(this._minorAutoInterval=t/5);return n||(this.tickInterval=t),a},e.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},e.prototype.lin2log=function(t){return Math.pow(10,t)}}),t(e,"parts/PlotLineOrBand.js",[e["parts/Globals.js"],e["parts/Axis.js"],e["parts/Utilities.js"]],function(x,t,e){var a=e.arrayMax,r=e.arrayMin,w=e.defined,i=e.destroyObjectProperties,o=e.erase,n=e.extend,S=e.objectEach,C=e.pick,T=x.merge;x.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},x.PlotLineOrBand.prototype={render:function(){x.fireEvent(this,"render");var i=this,t=i.axis,e=t.horiz,n=i.options,s=n.label,o=i.label,c=n.to,d=n.from,u=n.value,a=w(d)&&w(c),p=w(u),r=i.svgElem,f=!r,l=[],h=n.color,m=C(n.zIndex,0),g=n.events,l={class:"highcharts-plot-"+(a?"band ":"line ")+(n.className||"")},y={},b=t.chart.renderer,v=a?"bands":"lines";if(t.isLog&&(d=t.log2lin(d),c=t.log2lin(c),u=t.log2lin(u)),t.chart.styledMode||(p?(l.stroke=h||"#999999",l["stroke-width"]=C(n.width,1),n.dashStyle&&(l.dashstyle=n.dashStyle)):a&&(l.fill=h||"#e6ebf5",n.borderWidth&&(l.stroke=n.borderColor,l["stroke-width"]=n.borderWidth))),y.zIndex=m,(h=t.plotLinesAndBandsGroups[v+="-"+m])||(t.plotLinesAndBandsGroups[v]=h=b.g("plot-"+v).attr(y).add()),f&&(i.svgElem=r=b.path().attr(l).add(h)),p)l=t.getPlotLinePath({value:u,lineWidth:r.strokeWidth(),acrossPanes:n.acrossPanes});else{if(!a)return;l=t.getPlotBandPath(d,c,n)}return(f||!r.d)&&l&&l.length?(r.attr({d:l}),g&&S(g,function(t,e){r.on(e,function(t){g[e].apply(i,[t])})})):r&&(l?(r.show(!0),r.animate({d:l})):r.d&&(r.hide(),o&&(i.label=o=o.destroy()))),s&&(w(s.text)||w(s.formatter))&&l&&l.length&&0<t.width&&0<t.height&&!l.isFlat?(s=T({align:e&&a&&"center",x:e?!a&&4:10,verticalAlign:!e&&a&&"middle",y:e?a?16:10:a?6:-4,rotation:e&&!a&&90},s),this.renderLabel(s,l,a,m)):o&&o.hide(),i},renderLabel:function(t,e,i,n){var s=this.label,o=this.axis.chart.renderer;s||((s={align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||"")}).zIndex=n,n=this.getLabelText(t),this.label=s=o.text(n,0,0,t.useHTML).attr(s).add(),this.axis.chart.styledMode||s.css(t.style)),o=e.xBounds||[e[1],e[4],i?e[6]:e[1]],e=e.yBounds||[e[2],e[5],i?e[7]:e[2]],i=r(o),n=r(e),s.align(t,!1,{x:i,y:n,width:a(o)-i,height:a(e)-n}),s.show(!0)},getLabelText:function(t){return w(t.formatter)?t.formatter.call(this):t.text},destroy:function(){o(this.axis.plotLinesAndBands,this),delete this.axis,i(this)}},n(t.prototype,{getPlotBandPath:function(t,e){var i,n=this.getPlotLinePath({value:e,force:!0,acrossPanes:this.options.acrossPanes}),s=this.getPlotLinePath({value:t,force:!0,acrossPanes:this.options.acrossPanes}),o=[],a=this.horiz,r=1;if(t=t<this.min&&e<this.min||t>this.max&&e>this.max,s&&n)for(t&&(i=s.toString()===n.toString(),r=0),t=0;t<s.length;t+=6)a&&n[t+1]===s[t+1]?(n[t+1]+=r,n[t+4]+=r):a||n[t+2]!==s[t+2]||(n[t+2]+=r,n[t+5]+=r),o.push("M",s[t+1],s[t+2],"L",s[t+4],s[t+5],n[t+4],n[t+5],n[t+1],n[t+2],"z"),o.isFlat=i;return o},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(t,e){var i,n=new x.PlotLineOrBand(this,t).render(),s=this.userOptions;return n&&(e&&((i=s[e]||[]).push(t),s[e]=i),this.plotLinesAndBands.push(n)),n},removePlotBandOrLine:function(e){for(var t=this.plotLinesAndBands,i=this.options,n=this.userOptions,s=t.length;s--;)t[s].id===e&&t[s].destroy();[i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]].forEach(function(t){for(s=t.length;s--;)t[s].id===e&&o(t,t[s])})},removePlotBand:function(t){this.removePlotBandOrLine(t)},removePlotLine:function(t){this.removePlotBandOrLine(t)}})}),t(e,"parts/Tooltip.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(E,t){var L=t.clamp,r=t.defined,i=t.discardElement,h=t.extend,u=t.isNumber,Q=t.isString,P=t.pick,d=t.splat,n=t.syncTimeout,S=E.doc,p=E.format,e=E.merge,c=E.timeUnits;E.Tooltip=function(){this.init.apply(this,arguments)},E.Tooltip.prototype={init:function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=P(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},cleanSplit:function(i){this.chart.series.forEach(function(t){var e=t&&t.tt;e&&(!e.isActive||i?t.tt=e.destroy():e.isActive=!1)})},applyFilter:function(){var t=this.chart;t.renderer.definition({tagName:"filter",id:"drop-shadow-"+t.index,opacity:.5,children:[{tagName:"feGaussianBlur",in:"SourceAlpha",stdDeviation:1},{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",in:"SourceGraphic"}]}]}),t.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+t.index+"{filter:url(#drop-shadow-"+t.index+")}"})},getLabel:function(){var i,n,s=this,t=this.chart.renderer,e=this.chart.styledMode,o=this.options,a="tooltip"+(r(o.className)?" "+o.className:"");return this.label||(this.outside&&(this.container=i=E.doc.createElement("div"),i.className="highcharts-tooltip-container",E.css(i,{position:"absolute",top:"1px",pointerEvents:o.style&&o.style.pointerEvents,zIndex:3}),E.doc.body.appendChild(i),this.renderer=t=new E.Renderer(i,0,0,{},void 0,void 0,t.styledMode)),this.split?this.label=t.g(a):(this.label=t.label("",0,0,o.shape||"callout",null,null,o.useHTML,null,a).attr({padding:o.padding,r:o.borderRadius}),e||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth}).css(o.style).shadow(o.shadow)),e&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),s.outside&&!s.split&&(n={x:this.label.xSetter,y:this.label.ySetter},this.label.xSetter=function(t,e){n[e].call(this.label,s.distance),i.style.left=t+"px"},this.label.ySetter=function(t,e){n[e].call(this.label,s.distance),i.style.top=t+"px"}),this.label.attr({zIndex:8}).add()),this.label},update:function(t){this.destroy(),e(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,e(!0,this.options,t))},destroy:function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),i(this.container)),E.clearTimeout(this.hideTimer),E.clearTimeout(this.tooltipTimeout)},move:function(t,e,i,n){var s=this,o=s.now,a=!1!==s.options.animation&&!s.isHidden&&(1<Math.abs(t-o.x)||1<Math.abs(e-o.y)),r=s.followPointer||1<s.len;h(o,{x:a?(2*o.x+t)/3:t,y:a?(o.y+e)/2:e,anchorX:r?void 0:a?(2*o.anchorX+i)/3:i,anchorY:r?void 0:a?(o.anchorY+n)/2:n}),s.getLabel().attr(o),a&&(E.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){s&&s.move(t,e,i,n)},32))},hide:function(t){var e=this;E.clearTimeout(this.hideTimer),t=P(t,this.options.hideDelay,500),this.isHidden||(this.hideTimer=n(function(){e.getLabel()[t?"fadeOut":"hide"](),e.isHidden=!0},t))},getAnchor:function(t,e){var i,n,s=this.chart,o=s.pointer,a=s.inverted,r=s.plotTop,c=s.plotLeft,l=0,h=0;return t=d(t),(t=this.followPointer&&e?[(e=void 0===e.chartX?o.normalize(e):e).chartX-s.plotLeft,e.chartY-r]:t[0].tooltipPos||(t.forEach(function(t){i=t.series.yAxis,n=t.series.xAxis,l+=t.plotX+(!a&&n?n.left-c:0),h+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!a&&i?i.top-r:0)}),l/=t.length,h/=t.length,[a?s.plotWidth-h:l,this.shared&&!a&&1<t.length&&e?e.chartY-r:a?s.plotHeight-l:h])).map(Math.round)},getPosition:function(i,n,s){function t(t){var e="x"===t;return[t,e?l:h,e?i:n].concat(r?[e?m(i):g(n),e?c.left-u+m(s.plotX+a.plotLeft):c.top-u+g(s.plotY+a.plotTop),0,e?l:h]:[e?i:n,e?s.plotX+a.plotLeft:s.plotY+a.plotTop,e?a.plotLeft:a.plotTop,e?a.plotLeft+a.plotWidth:a.plotTop+a.plotHeight])}var o,a=this.chart,u=this.distance,p={},f=a.inverted&&s.h||0,r=this.outside,l=r?S.documentElement.clientWidth-2*u:a.chartWidth,h=r?Math.max(S.body.scrollHeight,S.documentElement.scrollHeight,S.body.offsetHeight,S.documentElement.offsetHeight,S.documentElement.clientHeight):a.chartHeight,c=a.pointer.getChartPosition(),e=a.containerScaling,m=function(t){return e?t*e.scaleX:t},g=function(t){return e?t*e.scaleY:t},d=t("y"),y=t("x"),b=!this.followPointer&&P(s.ttBelow,!a.inverted==!!s.negative),v=function(t,e,i,n,s,c,d){var o=("y"===t?g:m)(u),a=(i-n)/2,r=n<s-u,l=s+u+n<e,h=s-o-i+a;if(s=s+o-a,b&&l)p[t]=s;else if(!b&&r)p[t]=h;else if(r)p[t]=Math.min(d-n,h-f<0?h:h-f);else{if(!l)return!1;p[t]=Math.max(c,e<s+f+i?s:s+f)}},x=function(t,e,i,n,s){var o;return s<u||e-u<s?o=!1:p[t]=s<i/2?1:e-n/2<s?e-n-2:s-i/2,o},w=function(t){var e=d;d=y,y=e,o=t},C=function(){!1!==v.apply(0,d)?!1!==x.apply(0,y)||o||(w(!0),C()):o?p.x=p.y=0:(w(!0),C())};return(a.inverted||1<this.len)&&w(),C(),p},defaultFormatter:function(t){var e=this.points||d(this),i=[t.tooltipFooterHeaderFormatter(e[0])];return(i=i.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),i},refresh:function(t,e){var i,n,s=this.chart,o=this.options,a=t,r={},l=[],h=o.formatter||this.defaultFormatter,r=this.shared,c=s.styledMode;o.enabled&&(E.clearTimeout(this.hideTimer),this.followPointer=d(a)[0].series.tooltipOptions.followPointer,e=(i=this.getAnchor(a,e))[0],n=i[1],!r||a.series&&a.series.noSharedTooltip?r=a.getLabelConfig():(s.pointer.applyInactiveState(a),a.forEach(function(t){t.setState("hover"),l.push(t.getLabelConfig())}),(r={x:a[0].category,y:a[0].y}).points=l,a=a[0]),this.len=l.length,s=h.call(r,this),h=a.series,this.distance=P(h.tooltipOptions.distance,16),!1===s?this.hide():(this.split?this.renderSplit(s,d(t)):(t=this.getLabel(),o.style.width&&!c||t.css({width:this.chart.spacingBox.width}),t.attr({text:s&&s.join?s.join(""):s}),t.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+P(a.colorIndex,h.colorIndex)),c||t.attr({stroke:o.borderColor||a.color||h.color||"#666666"}),this.updatePosition({plotX:e,plotY:n,negative:a.negative,ttBelow:a.ttBelow,h:i[2]||0})),this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1),E.fireEvent(this,"refresh"))},renderSplit:function(t,m){function g(t,e,i,n,s){return void 0===s&&(s=!0),{x:t=i?(e=A?0:I,L(t-n/2,f.left,f.right-n)):(e-=M,L(t=s?t-n-u:t+u,s?t:f.left,f.right)),y:e}}var y,c=this,e=c.chart,i=c.chart,o=i.chartWidth,a=i.chartHeight,b=i.plotHeight,v=i.plotLeft,x=i.plotTop,r=i.plotWidth,l=i.pointer,w=i.renderer,n=void 0===(n=i.scrollablePixelsX)?0:n,s=i.scrollablePixelsY,d=void 0===s?0:s,C=(s=void 0===(s=i.scrollingContainer)?{scrollLeft:0,scrollTop:0}:s).scrollLeft,S=s.scrollTop,T=i.styledMode,u=c.distance,p=c.options,k=c.options.positioner,f={left:n?v:0,right:n?v+r-n:o,top:d?x:0,bottom:d?x+b-d:a},j=c.getLabel(),A=!(!e.xAxis[0]||!e.xAxis[0].opposite),M=x,I=b-d;t=(t=Q(t)?[!1,t]:t).slice(0,m.length+1).reduce(function(t,e,i){var n,s,o,a,r,l,h;return!1!==e&&""!==e&&(o=(s=(n=(i=m[i-1]||{isHeader:!0,plotX:m[0].plotX,plotY:b,series:{}}).isHeader)?c:i.series).tt,a=i.isHeader,h=i.series,l="highcharts-color-"+P(i.colorIndex,h.colorIndex,"none"),o||(o={padding:p.padding,r:p.borderRadius},T||(o.fill=p.backgroundColor,o["stroke-width"]=p.borderWidth),o=w.label(null,null,null,p[a?"headerShape":"shape"]||"callout",null,null,p.useHTML).addClass(a?"highcharts-tooltip-header ":"highcharts-tooltip-box "+l).attr(o).add(j)),o.isActive=!0,o.attr({text:e}),T||o.css(p.style).shadow(p.shadow).attr({stroke:p.borderColor||i.color||h.color||"#333333"}),s=(a=(e=s.tt=o).getBBox()).width+e.strokeWidth(),n&&(y=a.height,I+=y,A&&(M-=y)),h=void 0===(h=i.plotX)?0:h,l=void 0===(l=i.plotY)?0:l,r=i.series,l=i.isHeader?(h=v+h-C,x+(b-d)/2):(o=r.xAxis,r=r.yAxis,h=o.pos+L(h,-u,o.len+u)-C,r.pos+L(l,0,r.len)-S),h=L(h,f.left-u,f.right+u),l=L(l,f.top,f.bottom),a=a.height+1,o=k?k.call(c,s,a,i):g(h,l,n,s),t.push({align:k?0:void 0,anchorX:h,anchorY:l,boxWidth:s,point:i,rank:P(o.rank,n?1:0),size:a,target:o.y,tt:e,x:o.x})),t},[]),!k&&t.some(function(t){return t.x<0})&&(t=t.map(function(t){var e=g(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return h(t,{target:e.y,x:e.x})})),c.cleanSplit(),E.distribute(t,I,void 0),t.forEach(function(t){var e=t.pos;t.tt.attr({visibility:void 0===e?"hidden":"inherit",x:t.x,y:e+M,anchorX:t.anchorX,anchorY:t.anchorY})}),t=c.container,e=c.renderer,c.outside&&t&&e&&(i=j.getBBox(),e.setSize(i.width+i.x,i.height+i.y,!1),l=l.getChartPosition(),t.style.left=l.left+"px",t.style.top=l.top+"px")},updatePosition:function(t){var e,i=this.chart,n=i.pointer,s=this.getLabel(),o=t.plotX+i.plotLeft,a=t.plotY+i.plotTop,n=n.getChartPosition();t=(this.options.positioner||this.getPosition).call(this,s.width,s.height,t),this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(s.width+e,s.height+e,!1),(i=i.containerScaling)&&(E.css(this.container,{transform:"scale("+i.scaleX+", "+i.scaleY+")"}),o*=i.scaleX,a*=i.scaleY),o+=n.left-t.x,a+=n.top-t.y),this.move(Math.round(t.x),Math.round(t.y||0),o,a)},getDateFormat:function(t,e,i,n){var s,o=this.chart.time,a=o.dateFormat("%m-%d %H:%M:%S.%L",e),r={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond";for(h in c){if(t===c.week&&+o.dateFormat("%w",e)===i&&"00:00:00.000"===a.substr(6)){var h="week";break}if(c[h]>t){h=l;break}if(r[h]&&a.substr(r[h])!=="01-01 00:00:00.000".substr(r[h]))break;"week"!==h&&(l=h)}return s=h?o.resolveDTLFormat(n[h]).main:s},getXDateFormat:function(t,e,i){e=e.dateTimeLabelFormats;var n=i&&i.closestPointRange;return(n?this.getDateFormat(n,t.x,i.options.startOfWeek,e):e.day)||e.year},tooltipFooterHeaderFormatter:function(e,t){var i=t?"footer":"header",n=e.series,s=n.tooltipOptions,o=s.xDateFormat,a=n.xAxis,r=a&&"datetime"===a.options.type&&u(e.key),l=s[i+"Format"];return E.fireEvent(this,"headerFormatter",t={isFooter:t,labelConfig:e},function(t){r&&!o&&(o=this.getXDateFormat(e,s,a)),r&&o&&(e.point&&e.point.tooltipDateKeys||["key"]).forEach(function(t){l=l.replace("{point."+t+"}","{point."+t+":"+o+"}")}),n.chart.styledMode&&(l=this.styledModeFormat(l)),t.text=p(l,{point:e,series:n},this.chart)}),t.text},bodyFormatter:function(t){return t.map(function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")})},styledModeFormat:function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')}}}),t(e,"parts/Pointer.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(l,t){var n=t.attr,p=t.defined,f=t.extend,i=t.isNumber,y=t.isObject,e=t.objectEach,s=t.offset,h=t.pick,u=t.splat,c=l.addEvent,d=l.charts,b=l.color,g=l.css,v=l.find,m=l.fireEvent,o=l.Tooltip;l.Pointer=function(t,e){this.init(t,e)},l.Pointer.prototype={init:function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},o&&(t.tooltip=new o(t,e.tooltip),this.followTouchMove=h(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(t){var e=(n=this.chart).options.chart,i=e.zoomType||"",n=n.inverted;/touch/.test(t.type)&&(i=h(e.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=i=/y/.test(i),this.zoomHor=t&&!n||i&&n,this.zoomVert=i&&!n||t&&n,this.hasZoom=t||i},getChartPosition:function(){var t=(t=this.chart).scrollingContainer||t.container;return this.chartPosition||(this.chartPosition=s(t))},normalize:function(t,e){var i=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,n=(e=e||this.getChartPosition(),i.pageX-e.left);return e=i.pageY-e.top,(i=this.chart.containerScaling)&&(n/=i.scaleX,e/=i.scaleY),f(t,{chartX:Math.round(n),chartY:Math.round(e)})},getCoordinates:function(e){var i={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(t){i[t.isXAxis?"xAxis":"yAxis"].push({axis:t,value:t.toValue(e[t.horiz?"chartX":"chartY"])})}),i},findNearestKDPoint:function(t,s,o){var a;return t.forEach(function(t){var e,i,n=!(t.noSharedTooltip&&s)&&t.options.findNearestPointBy.indexOf("y")<0;t=t.searchPoint(o,n),(n=y(t,!0))&&!(n=!y(a,!0))&&(n=a.distX-t.distX,e=a.dist-t.dist,i=(t.series.group&&t.series.group.zIndex)-(a.series.group&&a.series.group.zIndex),n=0<(0!==n&&s?n:0!=e?e:0!=i?i:a.series.index>t.series.index?-1:1)),n&&(a=t)}),a},getPointFromEvent:function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},getChartCoordinatesFromPoint:function(t,e){var i=(n=t.series).xAxis,n=n.yAxis,s=h(t.clientX,t.plotX),o=t.shapeArgs;return i&&n?e?{chartX:i.len+i.pos-s,chartY:n.len+n.pos-t.plotY}:{chartX:s+i.pos,chartY:t.plotY+n.pos}:o&&o.x&&o.y?{chartX:o.x,chartY:o.y}:void 0},getHoverData:function(t,e,i,n,s,o){var a,r=[],l=(n=!(!n||!t),e&&!e.stickyTracking?[e]:i.filter(function(t){return t.visible&&!(!s&&t.directTouch)&&h(t.options.enableMouseTracking,!0)&&t.stickyTracking}));return e=(a=n||!o?t:this.findNearestKDPoint(l,s,o))&&a.series,a&&(s&&!e.noSharedTooltip?(l=i.filter(function(t){return t.visible&&!(!s&&t.directTouch)&&h(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip})).forEach(function(t){var e=v(t.points,function(t){return t.x===a.x&&!t.isNull});y(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),r.push(e))}):r.push(a)),{hoverPoint:a,hoverSeries:e,hoverPoints:r}},runPointActions:function(n,t){var e=this.chart,i=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,s=!!i&&i.shared,o=(a=t||e.hoverPoint)&&a.series||e.hoverSeries,a=(o=this.getHoverData(a,o,e.series,(!n||"touchmove"!==n.type)&&(!!t||o&&o.directTouch&&this.isDirectTouch),s,n)).hoverPoint,r=o.hoverPoints;if(t=(o=o.hoverSeries)&&o.tooltipOptions.followPointer,s=s&&o&&!o.noSharedTooltip,a&&(a!==e.hoverPoint||i&&i.isHidden)){if((e.hoverPoints||[]).forEach(function(t){-1===r.indexOf(t)&&t.setState()}),e.hoverSeries!==o&&o.onMouseOver(),this.applyInactiveState(r),(r||[]).forEach(function(t){t.setState("hover")}),e.hoverPoint&&e.hoverPoint.firePointEvent("mouseOut"),!a.series)return;a.firePointEvent("mouseOver"),e.hoverPoints=r,e.hoverPoint=a,i&&i.refresh(s?r:a,n)}else t&&i&&!i.isHidden&&(a=i.getAnchor([{}],n),i.updatePosition({plotX:a[0],plotY:a[1]}));this.unDocMouseMove||(this.unDocMouseMove=c(e.container.ownerDocument,"mousemove",function(t){var e=d[l.hoverChartIndex];e&&e.pointer.onDocumentMouseMove(t)})),e.axes.forEach(function(e){var t=h(e.crosshair.snap,!0),i=t?l.find(r,function(t){return t.series[e.coll]===e}):void 0;i||!t?e.drawCrosshair(n,i):e.hideCrosshair()})},applyInactiveState:function(t){var e,i=[];(t||[]).forEach(function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})},reset:function(e,t){var i=this.chart,n=i.hoverSeries,s=i.hoverPoint,o=i.hoverPoints,a=i.tooltip,r=a&&a.shared?o:s;e&&r&&u(r).forEach(function(t){t.series.isCartesian&&void 0===t.plotX&&(e=!1)}),e?a&&r&&u(r).length&&(a.refresh(r),a.shared&&o?o.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):s&&(s.setState(s.state,!0),i.axes.forEach(function(t){t.crosshair&&s.series[t.coll]===t&&t.drawCrosshair(null,s)}))):(s&&s.onMouseOut(),o&&o.forEach(function(t){t.setState()}),n&&n.onMouseOut(),a&&a.hide(t),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(e,i){var n,s=this.chart;s.series.forEach(function(t){n=e||t.getPlotBox(),t.xAxis&&t.xAxis.zoomEnabled&&t.group&&(t.group.attr(n),t.markerGroup&&(t.markerGroup.attr(n),t.markerGroup.clip(i?s.clipRect:null)),t.dataLabelsGroup&&t.dataLabelsGroup.attr(n))}),s.clipRect.attr(i||s.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 c,e=this.chart,i=e.options.chart,n=t.chartX,s=t.chartY,d=this.zoomHor,u=this.zoomVert,o=e.plotLeft,a=e.plotTop,p=e.plotWidth,f=e.plotHeight,r=this.selectionMarker,l=this.mouseDownX,h=this.mouseDownY,m=y(i.panning)?i.panning&&i.panning.enabled:i.panning,g=i.panKey&&t[i.panKey+"Key"];r&&r.touch||(n<o?n=o:o+p<n&&(n=o+p),s<a?s=a:a+f<s&&(s=a+f),this.hasDragged=Math.sqrt(Math.pow(l-n,2)+Math.pow(h-s,2)),10<this.hasDragged&&(c=e.isInsidePlot(l-o,h-a),e.hasCartesianSeries&&(this.zoomX||this.zoomY)&&c&&!g&&!r&&(this.selectionMarker=r=e.renderer.rect(o,a,d?1:p,u?1:f,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||r.attr({fill:i.selectionMarkerFill||b("#335cad").setOpacity(.25).get()})),r&&d&&(n-=l,r.attr({width:Math.abs(n),x:(0<n?0:n)+l})),r&&u&&(n=s-h,r.attr({height:Math.abs(n),y:(0<n?0:n)+h})),c&&!r&&m&&e.pan(t,i.panning)))},drop:function(s){var o,t,a,r,l,h,c,u=this,e=this.chart,d=this.hasPinched;this.selectionMarker&&(o={originalEvent:s,xAxis:[],yAxis:[]},t=this.selectionMarker,a=t.attr?t.attr("x"):t.x,r=t.attr?t.attr("y"):t.y,l=t.attr?t.attr("width"):t.width,h=t.attr?t.attr("height"):t.height,(this.hasDragged||d)&&(e.axes.forEach(function(t){var e,i,n;t.zoomEnabled&&p(t.min)&&(d||u[{xAxis:"zoomX",yAxis:"zoomY"}[t.coll]])&&(n=t.horiz,e="touchend"===s.type?t.minPixelPadding:0,i=t.toValue((n?a:r)+e),n=t.toValue((n?a+l:r+h)-e),o[t.coll].push({axis:t,min:Math.min(i,n),max:Math.max(i,n)}),c=!0)}),c&&m(e,"selection",o,function(t){e.zoom(f(t,d?{animation:!1}:null))})),i(e.index)&&(this.selectionMarker=this.selectionMarker.destroy()),d&&this.scaleGroups()),e&&i(e.index)&&(g(e.container,{cursor:e._cursor}),e.cancelClick=10<this.hasDragged,e.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(t){2!==(t=this.normalize(t)).button&&(this.zoomOption(t),t.preventDefault&&t.preventDefault(),this.dragStart(t))},onDocumentMouseUp:function(t){d[l.hoverChartIndex]&&d[l.hoverChartIndex].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=d[l.hoverChartIndex];e&&(t.relatedTarget||t.toElement)&&(e.pointer.reset(),e.pointer.chartPosition=void 0)},onContainerMouseMove:function(t){var e=this.chart;p(l.hoverChartIndex)&&d[l.hoverChartIndex]&&d[l.hoverChartIndex].mouseIsDown||(l.hoverChartIndex=e.index),(t=this.normalize(t)).preventDefault||(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=n(t,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentNode}},onTrackerMouseOut:function(t){var e=this.chart.hoverSeries;t=t.relatedTarget||t.toElement,this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},onContainerClick:function(t){var e=this.chart,i=e.hoverPoint,n=e.plotLeft,s=e.plotTop;t=this.normalize(t),e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(m(i.series,"click",f(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(f(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-n,t.chartY-s)&&m(e,"click",t)))},setDOMEvents:function(){var e=this,t=e.chart.container,i=t.ownerDocument;t.onmousedown=function(t){e.onContainerMouseDown(t)},t.onmousemove=function(t){e.onContainerMouseMove(t)},t.onclick=function(t){e.onContainerClick(t)},this.unbindContainerMouseLeave=c(t,"mouseleave",e.onContainerMouseLeave),l.unbindDocumentMouseUp||(l.unbindDocumentMouseUp=c(i,"mouseup",e.onDocumentMouseUp)),l.hasTouch&&(c(t,"touchstart",function(t){e.onContainerTouchStart(t)}),c(t,"touchmove",function(t){e.onContainerTouchMove(t)}),l.unbindDocumentTouchEnd||(l.unbindDocumentTouchEnd=c(i,"touchend",e.onDocumentTouchEnd)))},destroy:function(){var i=this;i.unDocMouseMove&&i.unDocMouseMove(),this.unbindContainerMouseLeave(),l.chartCount||(l.unbindDocumentMouseUp&&(l.unbindDocumentMouseUp=l.unbindDocumentMouseUp()),l.unbindDocumentTouchEnd&&(l.unbindDocumentTouchEnd=l.unbindDocumentTouchEnd())),clearInterval(i.tooltipTimeout),e(i,function(t,e){i[e]=null})}}}),t(e,"parts/TouchPointer.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(s,t){var u=t.extend,p=t.pick,e=s.charts,f=s.noop;u(s.Pointer.prototype,{pinchTranslate:function(t,e,i,n,s,o){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,n,s,o),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,n,s,o)},pinchTranslateDirection:function(t,e,i,c,d,n,u,p){var s,f,m,o=this.chart,a=t?"x":"y",g=t?"X":"Y",r="chart"+g,y=t?"width":"height",b=o["plot"+(t?"Left":"Top")],l=p||1,v=o.inverted,x=o.bounds[t?"h":"v"],w=1===e.length,C=e[0][r],h=i[0][r],S=!w&&e[1][r],T=!w&&i[1][r];(i=function(){!w&&20<Math.abs(C-S)&&(l=p||Math.abs(h-T)/Math.abs(C-S)),f=(b-h)/l+C,s=o["plot"+(t?"Width":"Height")]/l})(),(e=f)<x.min?(e=x.min,m=!0):e+s>x.max&&(e=x.max-s,m=!0),m?(h-=.8*(h-u[a][0]),w||(T-=.8*(T-u[a][1])),i()):u[a]=[h,T],v||(n[a]=f-b,n[y]=s),n=v?1/l:l,d[y]=s,d[a]=e,c[v?t?"scaleY":"scaleX":"scale"+g]=l,c["translate"+g]=n*b+(h-n*C)},pinch:function(t){var e=this,a=e.chart,i=e.pinchDown,n=t.touches,s=n.length,o=e.lastValidTouch,r=e.hasZoom,l=e.selectionMarker,h={},c=1===s&&(e.inClass(t.target,"highcharts-tracker")&&a.runTrackerClick||e.runChartClick),d={};1<s&&(e.initiated=!0),r&&e.initiated&&!c&&t.preventDefault(),[].map.call(n,function(t){return e.normalize(t)}),"touchstart"===t.type?([].forEach.call(n,function(t,e){i[e]={chartX:t.chartX,chartY:t.chartY}}),o.x=[i[0].chartX,i[1]&&i[1].chartX],o.y=[i[0].chartY,i[1]&&i[1].chartY],a.axes.forEach(function(t){var e,i,n,s,o;t.zoomEnabled&&(e=a.bounds[t.horiz?"h":"v"],i=t.minPixelPadding,n=t.toPixels(Math.min(p(t.options.min,t.dataMin),t.dataMin)),s=t.toPixels(Math.max(p(t.options.max,t.dataMax),t.dataMax)),o=Math.max(n,s),e.min=Math.min(t.pos,Math.min(n,s)-i),e.max=Math.max(t.pos+t.len,o+i))}),e.res=!0):e.followTouchMove&&1===s?this.runPointActions(e.normalize(t)):i.length&&(l||(e.selectionMarker=l=u({destroy:f,touch:!0},a.plotBox)),e.pinchTranslate(i,n,h,l,d,o),e.hasPinched=r,e.scaleGroups(h,d),e.res&&(e.res=!1,this.reset(!1,0)))},touch:function(t,e){var i,n=this.chart;n.index!==s.hoverChartIndex&&this.onContainerMouseLeave({relatedTarget:!0}),s.hoverChartIndex=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&&(i=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2))),p(i,!0)&&this.pinch(t)):e&&this.reset()):2===t.touches.length&&this.pinch(t)},onContainerTouchStart:function(t){this.zoomOption(t),this.touch(t,!0)},onContainerTouchMove:function(t){this.touch(t)},onDocumentTouchEnd:function(t){e[s.hoverChartIndex]&&e[s.hoverChartIndex].pointer.drop(t)}})}),t(e,"parts/MSPointer.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(o,t){var a,e,i,n=t.extend,r=t.objectEach,c=(t=t.wrap,o.addEvent),l=o.charts,d=o.css,u=o.doc,p=o.noop,s=o.Pointer,f=o.removeEvent,h=o.win;o.hasTouch||!h.PointerEvent&&!h.MSPointerEvent||(a={},e=!!h.PointerEvent,i=function(t,e,i,n){var s;"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!l[o.hoverChartIndex]||(n(t),(n=l[o.hoverChartIndex].pointer)[e]({type:i,target:t.currentTarget,preventDefault:p,touches:((s=[]).item=function(t){return this[t]},r(a,function(t){s.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),s)}))},n(s.prototype,{onContainerPointerDown:function(t){i(t,"onContainerTouchStart","touchstart",function(t){a[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},onContainerPointerMove:function(t){i(t,"onContainerTouchMove","touchmove",function(t){a[t.pointerId]={pageX:t.pageX,pageY:t.pageY},a[t.pointerId].target||(a[t.pointerId].target=t.currentTarget)})},onDocumentPointerUp:function(t){i(t,"onDocumentTouchEnd","touchend",function(t){delete a[t.pointerId]})},batchMSEvents:function(t){t(this.chart.container,e?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,e?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(u,e?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),t(s.prototype,"init",function(t,e,i){t.call(this,e,i),this.hasZoom&&d(e.container,{"-ms-touch-action":"none","touch-action":"none"})}),t(s.prototype,"setDOMEvents",function(t){t.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(c)}),t(s.prototype,"destroy",function(t){this.batchMSEvents(f),t.call(this)}))}),t(e,"parts/Legend.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(c,t){var r=t.defined,i=t.discardElement,h=t.isNumber,v=t.pick,u=t.relativeLength,p=t.setAnimation,f=t.syncTimeout,n=(t=t.wrap,c.addEvent),m=c.css,d=c.fireEvent,s=c.isFirefox,l=c.marginNames,g=c.merge,y=c.stableSort,e=c.win;c.Legend=function(t,e){this.init(t,e)},c.Legend.prototype={init:function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),n(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=n(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},setOptions:function(t){var e=v(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=g(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=v(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted},update:function(t,e){var i=this.chart;this.setOptions(g(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,v(e,!0)&&i.redraw(),d(this,"afterUpdate")},colorizeItem:function(t,e){var i,n,s,o,a,r,l,h;t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),this.chart.styledMode||(a=this.options,i=t.legendItem,n=t.legendLine,s=t.legendSymbol,o=this.itemHiddenStyle.color,a=e?a.itemStyle.color:o,r=e&&t.color||o,l=t.options&&t.options.marker,h={fill:r},i&&i.css({fill:a,color:a}),n&&n.attr({stroke:r}),s&&(l&&s.isMarker&&(h=t.pointAttribs(),e||(h.stroke=h.fill=o)),s.attr(h))),d(this,"afterColorizeItem",{item:t,visible:e})},positionItems:function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},positionItem:function(t){var e=(i=this.options).symbolPadding,i=!i.rtl,n=(s=t._legendItemPos)[0],s=s[1],o=t.checkbox;(t=t.legendGroup)&&t.element&&t[r(t.translateY)?"animate":"attr"]({translateX:i?n:this.legendWidth-n-2*e-4,translateY:s}),o&&(o.x=n,o.y=s)},destroyItem:function(e){var t=e.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),t&&i(e.checkbox)},destroy:function(){function e(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach(function(t){["legendItem","legendGroup"].forEach(e,t)}),"clipRect up down pager nav box title group".split(" ").forEach(e,this),this.display=null},positionCheckboxes:function(){var n,s=this.group&&this.group.alignAttr,o=this.clipHeight||this.legendHeight,a=this.titleHeight;s&&(n=s.translateY,this.allItems.forEach(function(t){var e,i=t.checkbox;i&&(e=n+a+i.y+(this.scrollOffset||0)+3,m(i,{left:s.translateX+t.checkboxOffset+i.x-20+"px",top:e+"px",display:this.proximate||n-6<e&&e<n+o-6?"":"none"}))},this))},renderTitle:function(){var t=this.options,e=this.padding,i=t.title,n=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,null,null,null,t.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),n=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:n})),this.titleHeight=n},setText:function(t){var e=this.options;t.legendItem.attr({text:e.labelFormat?c.format(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},renderItem:function(t){var e=this.chart,i=e.renderer,n=this.options,c=this.symbolWidth,s=n.symbolPadding,o=this.itemStyle,d=this.itemHiddenStyle,a="horizontal"===n.layout?v(n.itemDistance,20):0,u=!n.rtl,r=t.legendItem,p=!t.series,l=!p&&t.series.drawLegendSymbol?t.series:t,h=l.options,a=c+s+a+((h=this.createCheckboxForItem&&h&&h.showCheckbox)?20:0),f=n.useHTML,m=t.options.className;r||(t.legendGroup=i.g("legend-item").addClass("highcharts-"+l.type+"-series highcharts-color-"+t.colorIndex+(m?" "+m:"")+(p?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=r=i.text("",u?c+s:-s,this.baseline||0,f),e.styledMode||r.css(g(t.visible?o:d)),r.attr({align:u?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=i.fontMetrics(e.styledMode?12:o.fontSize,r),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,r.attr("y",this.baseline)),this.symbolHeight=n.symbolHeight||this.fontMetrics.f,l.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,r,f)),h&&!t.checkbox&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!e.styledMode&&o.width||r.css({width:(n.itemWidth||this.widthOption||e.spacingBox.width)-a}),this.setText(t),e=r.getBBox(),t.itemWidth=t.checkboxOffset=n.itemWidth||t.legendItemWidth||e.width+a,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||e.height||this.symbolHeight)},layoutItem:function(t){var e=this.options,i=this.padding,n="horizontal"===e.layout,s=t.itemHeight,o=this.itemMarginBottom,a=this.itemMarginTop,r=n?v(e.itemDistance,20):0,l=this.maxLegendWidth,e=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth;n&&this.itemX-i+e>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+o),this.lastLineHeight=0),this.lastItemY=a+this.itemY+o,this.lastLineHeight=Math.max(s,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],n?this.itemX+=e:(this.itemY+=a+s+o,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((n?this.itemX-i-(t.checkbox?0:r):e)+i,this.offsetWidth)},getAllItems:function(){var i=[];return this.chart.series.forEach(function(t){var e=t&&t.options;t&&v(e.showInLegend,!r(e.linkedTo)&&void 0,!0)&&(i=i.concat(t.legendItems||("point"===e.legendType?t.data:t)))}),d(this,"afterGetAllItems",{allItems:i}),i},getAlignment:function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},adjustMargins:function(i,n){var s=this.chart,o=this.options,a=this.getAlignment();a&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(t,e){t.test(a)&&!r(i[e])&&(s[l[e]]=Math.max(s[l[e]],s.legend[(e+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][e]*o[e%2?"x":"y"]+v(o.margin,12)+n[e]+(s.titleOffset[e]||0)))})},proximatePositions:function(){var s=this.chart,o=[],a="left"===this.options.align;this.allItems.forEach(function(t){var e,i,n=a;t.yAxis&&t.points&&(t.xAxis.options.reversed&&(n=!n),e=c.find(n?t.points:t.points.slice(0).reverse(),function(t){return h(t.plotY)}),n=this.itemMarginTop+t.legendItem.getBBox().height+this.itemMarginBottom,i=t.yAxis.top-s.plotTop,t.visible?(e=e?e.plotY:t.yAxis.height,e+=i-.3*n):e=i+t.yAxis.height,o.push({target:e,size:n,item:t}))},this),c.distribute(o,s.plotHeight),o.forEach(function(t){t.item._legendItemPos[1]=s.plotTop-s.spacing[0]+t.pos})},render:function(){var t,e=this.chart,i=e.renderer,n=this.group,s=this.box,o=this.options,a=this.padding,r=(this.itemX=a,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=u(o.width,e.spacingBox.width-a),e.spacingBox.width-2*a-o.x),l=(-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(r/=2),this.maxLegendWidth=this.widthOption||r,n||(this.group=n=i.g("legend").attr({zIndex:7}).add(),this.contentGroup=i.g().attr({zIndex:1}).add(n),this.scrollGroup=i.g().add(this.contentGroup)),this.renderTitle(),r=this.getAllItems(),y(r,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),o.reversed&&r.reverse(),this.allItems=r,this.display=t=!!r.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,r.forEach(this.renderItem,this),r.forEach(this.layoutItem,this),r=(this.widthOption||this.offsetWidth)+a,this.lastItemY+this.lastLineHeight+this.titleHeight),l=this.handleOverflow(l);l+=a,s||(this.box=s=i.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(n),s.isNew=!0),e.styledMode||s.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),0<r&&0<l&&(s[s.isNew?"attr":"animate"](s.crisp.call({},{x:0,y:0,width:r,height:l},s.strokeWidth())),s.isNew=!1),s[t?"show":"hide"](),e.styledMode&&"none"===n.getStyle("display")&&(r=l=0),this.legendWidth=r,this.legendHeight=l,t&&(s=(i=e.spacingBox).y,/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?s+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(s-=e.titleOffset[2]),s!==i.y&&(i=g(i,{y:s})),n.align(g(o,{width:r,height:l,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,i)),this.proximate||this.positionItems(),d(this,"afterRender")},handleOverflow:function(c){function d(t){"number"==typeof t?a.attr({height:t}):a&&(e.clipRect=a.destroy(),e.contentGroup.clip()),e.contentGroup.div&&(e.contentGroup.div.style.clip=t?"rect("+s+"px,9999px,"+(s+t)+"px,0)":"auto")}function u(t){return e[t]=i.circle(0,0,1.3*r).translate(r/2,r/2).add(l),f.styledMode||e[t].attr("fill","rgba(0,0,0,0.0001)"),e[t]}var p,o,e=this,f=this.chart,i=f.renderer,t=this.options,n=t.y,s=this.padding,n=f.spacingBox.height+("top"===t.verticalAlign?-n:n)-s,m=t.maxHeight,a=this.clipRect,g=t.navigation,y=v(g.animation,!0),r=g.arrowSize||12,l=this.nav,h=this.pages,b=this.allItems;return"horizontal"!==t.layout||"middle"===t.verticalAlign||t.floating||(n/=2),m&&(n=Math.min(n,m)),h.length=0,n<c&&!1!==g.enabled?(this.clipHeight=p=Math.max(n-20-this.titleHeight-s,0),this.currentPage=v(this.currentPage,1),this.fullHeight=c,b.forEach(function(t,e){var i=t._legendItemPos[1],n=Math.round(t.legendItem.getBBox().height),s=h.length;(!s||i-h[s-1]>p&&(o||i)!==h[s-1])&&(h.push(o||i),s++),t.pageIx=s-1,o&&(b[e-1].pageIx=s-1),e===b.length-1&&i+n-h[s-1]>p&&i!==o&&(h.push(i),t.pageIx=s),i!==o&&(o=i)}),a||(a=e.clipRect=i.clipRect(0,s,9999,0),e.contentGroup.clip(a)),d(p),l||(this.nav=l=i.g().attr({zIndex:1}).add(this.group),this.up=i.symbol("triangle",0,0,r,r).add(l),u("upTracker").on("click",function(){e.scroll(-1,y)}),this.pager=i.text("",15,10).addClass("highcharts-legend-navigation"),f.styledMode||this.pager.css(g.style),this.pager.add(l),this.down=i.symbol("triangle-down",0,0,r,r).add(l),u("downTracker").on("click",function(){e.scroll(1,y)})),e.scroll(0),c=n):l&&(d(),this.nav=l.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),c},scroll:function(t,e){var i=this,n=this.chart,s=this.pages,o=s.length,a=this.currentPage+t,r=(t=this.clipHeight,this.options.navigation),l=this.pager,h=this.padding;0<(a=o<a?o:a)&&(void 0!==e&&p(e,n),this.nav.attr({translateX:h,translateY:t+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),l.attr({text:a+"/"+o}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:a===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),n.styledMode||(this.up.attr({fill:1===a?r.inactiveColor:r.activeColor}),this.upTracker.css({cursor:1===a?"default":"pointer"}),this.down.attr({fill:a===o?r.inactiveColor:r.activeColor}),this.downTracker.css({cursor:a===o?"default":"pointer"})),this.scrollOffset=-s[a-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=a,this.positionCheckboxes(),e=c.animObject(v(e,n.renderer.globalAnimation,!0)),f(function(){d(i,"afterScroll",{currentPage:a})},e.duration||0))}},c.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.symbolHeight,n=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(n?(t.symbolWidth-i)/2:0,t.baseline-i+1,n?i:t.symbolWidth,i,v(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e=this.options,i=e.marker,n=t.symbolWidth,s=t.symbolHeight,o=s/2,a=this.chart.renderer,r=this.legendGroup,l=(t=t.baseline-Math.round(.3*t.fontMetrics.b),{});this.chart.styledMode||(l={"stroke-width":e.lineWidth||0},e.dashStyle&&(l.dashstyle=e.dashStyle)),this.legendLine=a.path(["M",0,t,"L",n,t]).addClass("highcharts-graph").attr(l).add(r),i&&!1!==i.enabled&&n&&(e=Math.min(v(i.radius,o),o),0===this.symbol.indexOf("url")&&(i=g(i,{width:s,height:s}),e=0),this.legendSymbol=i=a.symbol(this.symbol,n/2-e,t-e,2*e,2*e,i).addClass("highcharts-point").add(r),i.isMarker=!0)}},(/Trident\/7\.0/.test(e.navigator&&e.navigator.userAgent)||s)&&t(c.Legend.prototype,"positionItem",function(t,e){function i(){e._legendItemPos&&t.call(n,e)}var n=this;i(),n.bubbleLegend||setTimeout(i)})}),t(e,"parts/Chart.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(l,t){var p=t.animObject,f=t.attr,a=t.defined,g=t.discardElement,y=t.erase,m=t.extend,i=t.isArray,b=t.isNumber,v=t.isObject,x=t.isString,w=t.numberFormat,S=t.objectEach,h=t.pick,T=t.pInt,n=t.relativeLength,k=t.setAnimation,s=t.splat,j=t.syncTimeout,A=l.addEvent,M=l.animate,c=l.doc,o=l.Axis,I=l.createElement,E=l.defaultOptions,d=l.charts,L=l.css,P=l.find,C=l.fireEvent,Q=l.Legend,D=l.marginNames,u=l.merge,_=l.Pointer,O=l.removeEvent,N=l.seriesTypes,r=l.win,W=l.Chart=function(){this.getArgs.apply(this,arguments)};l.chart=function(t,e,i){return new W(t,e,i)},m(W.prototype,{callbacks:[],getArgs:function(){var t=[].slice.call(arguments);(x(t[0])||t[0].nodeName)&&(this.renderTo=t.shift()),this.init(t[0],t[1])},init:function(n,s){var o,a=n.series,r=n.plotOptions||{};C(this,"init",{args:arguments},function(){n.series=null,o=u(E,n),S(o.plotOptions,function(t,e){v(t)&&(t.tooltip=r[e]&&u(r[e].tooltip)||void 0)}),o.tooltip.userOptions=n.chart&&n.chart.forExport&&n.tooltip.userOptions||n.tooltip,o.series=n.series=a,this.userOptions=n;var t=o.chart,e=t.events,i=(this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=s,this.isResizing=0,this.options=o,this.axes=[],this.series=[],this.time=n.time&&Object.keys(n.time).length?new l.Time(n.time):l.time,this.numberFormatter=t.numberFormatter||w,this.styledMode=t.styledMode,this.hasCartesianSeries=t.showAxes,this);i.index=d.length,d.push(i),l.chartCount++,e&&S(e,function(t,e){l.isFunction(t)&&A(i,e,t)}),i.xAxis=[],i.yAxis=[],i.pointCount=i.colorCounter=i.symbolCounter=0,C(i,"afterInit"),i.firstRender()})},initSeries:function(t){var e=this.options.chart,e=t.type||e.type||e.defaultSeriesType,i=N[e];return i||l.error(17,!0,this,{missingModuleFor:e}),(e=new i).init(this,t),e},setSeriesData:function(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})},getSeriesOrderByLinks:function(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})},orderSeries:function(t){var e=this.series;for(t=t||0;t<e.length;t++)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},isInsidePlot:function(t,e,i){var n=i?e:t;return t=i?t:e,0<=n&&n<=this.plotWidth&&0<=t&&t<=this.plotHeight},redraw:function(t){C(this,"beforeRedraw");var e=this.axes,i=this.series,n=this.pointer,s=this.legend,o=this.userOptions.legend,a=this.isDirtyLegend,r=this.hasCartesianSeries,l=this.isDirtyBox,c=this.renderer,d=c.isHidden(),u=[];for(this.setResponsive&&this.setResponsive(!1),k(t,this),d&&this.temporaryDisplay(),this.layOutTitles(),t=i.length;t--;){var h=i[t];if(h.options.stacking){var p=!0;if(h.isDirty){var f=!0;break}}}if(f)for(t=i.length;t--;)(h=i[t]).options.stacking&&(h.isDirty=!0);i.forEach(function(t){t.isDirty&&("point"===t.options.legendType?(t.updateTotals&&t.updateTotals(),a=!0):o&&(o.labelFormatter||o.labelFormat)&&(a=!0)),t.isDirtyData&&C(t,"updatedData")}),a&&s&&s.options.enabled&&(s.render(),this.isDirtyLegend=!1),p&&this.getStacks(),r&&e.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),r&&(e.forEach(function(t){t.isDirty&&(l=!0)}),e.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,u.push(function(){C(t,"afterSetExtremes",m(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(l||p)&&t.redraw()})),l&&this.drawChartBox(),C(this,"predraw"),i.forEach(function(t){(l||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),n&&n.reset(!0),c.draw(),C(this,"redraw"),C(this,"render"),d&&this.temporaryDisplay(!0),u.forEach(function(t){t.call()})},get:function(e){function t(t){return t.id===e||t.options&&t.options.id===e}for(var i=this.series,n=P(this.axes,t)||P(this.series,t),s=0;!n&&s<i.length;s++)n=P(i[s].points||[],t);return n},getAxes:function(){var e=this,t=(i=this.options).xAxis=s(i.xAxis||{}),i=i.yAxis=s(i.yAxis||{});C(this,"getAxes"),t.forEach(function(t,e){t.index=e,t.isX=!0}),i.forEach(function(t,e){t.index=e}),t.concat(i).forEach(function(t){new o(e,t)}),C(this,"afterGetAxes")},getSelectedPoints:function(){var e=[];return this.series.forEach(function(t){e=e.concat((t[t.hasGroupedData?"points":"data"]||[]).filter(function(t){return h(t.selectedStaging,t.selected)}))}),e},getSelectedSeries:function(){return this.series.filter(function(t){return t.selected})},setTitle:function(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},applyDescription:function(e,t){var i=this,n="title"===e?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"},n=this.options[e]=u(!this.styledMode&&{style:n},this.options[e],t),s=this[e];s&&t&&(this[e]=s=s.destroy()),n&&!s&&((s=this.renderer.text(n.text,0,0,n.useHTML).attr({align:n.align,class:"highcharts-"+e,zIndex:n.zIndex||4}).add()).update=function(t){i[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[e]](t)},this.styledMode||s.css(n.style),this[e]=s)},layOutTitles:function(t){var a=[0,0,0],r=this.renderer,l=this.spacingBox,e=(["title","subtitle","caption"].forEach(function(t){var e,i,n=this[t],s=this.options[t],o=s.verticalAlign||"top";t="title"===t?-3:"top"===o?a[0]+2:0,n&&(this.styledMode||(e=s.style.fontSize),e=r.fontMetrics(e,n).b,n.css({width:(s.width||l.width+(s.widthAdjust||0))+"px"}),i=Math.round(n.getBBox(s.useHTML).height),n.align(m({y:"bottom"===o?e:t+e,height:i},s),!1,"spacingBox"),s.floating||("top"===o?a[0]=Math.ceil(a[0]+i):"bottom"===o&&(a[2]=Math.ceil(a[2]+i))))},this),a[0]&&"top"===(this.options.title.verticalAlign||"top")&&(a[0]+=this.options.title.margin),a[2]&&"bottom"===this.options.caption.verticalAlign&&(a[2]+=this.options.caption.margin),!this.titleOffset||this.titleOffset.join(",")!==a.join(","));this.titleOffset=a,C(this,"afterLayOutTitles"),!this.isDirtyBox&&e&&(this.isDirtyBox=this.isDirtyLegend=e,this.hasRendered&&h(t,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var t=(e=this.options.chart).width,e=e.height,i=this.renderTo;a(t)||(this.containerWidth=l.getStyle(i,"width")),a(e)||(this.containerHeight=l.getStyle(i,"height")),this.chartWidth=Math.max(0,t||this.containerWidth||600),this.chartHeight=Math.max(0,n(e,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},temporaryDisplay:function(t){var e=this.renderTo;if(t)for(;e&&e.style;)e.hcOrigStyle&&(l.css(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(c.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(c.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,c.body.appendChild(e)),"none"!==l.getStyle(e,"display",!1)&&!e.hcOricDetached||(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},t={display:"block",overflow:"hidden"},e!==this.renderTo&&(t.height=0),l.css(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==c.body););},setClassName:function(t){this.container.className="highcharts-container "+(t||"")},getContainer:function(){var t,e,i=this.options,n=i.chart,s=this.renderTo,o=l.uniqueKey(),a=(s||(this.renderTo=s=n.renderTo),x(s)&&(this.renderTo=s=c.getElementById(s)),s||l.error(13,!0,this),T(f(s,"data-highcharts-chart"))),r=(b(a)&&d[a]&&d[a].hasRendered&&d[a].destroy(),f(s,"data-highcharts-chart",this.index),s.innerHTML="",n.skipClone||s.offsetWidth||this.temporaryDisplay(),this.getChartSize(),a=this.chartWidth,this.chartHeight);if(L(s,{overflow:"hidden"}),this.styledMode||(t=m({position:"relative",overflow:"hidden",width:a+"px",height:r+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},n.style)),this.container=s=I("div",{id:o},t,s),this._cursor=s.style.cursor,this.renderer=new(l[n.renderer]||l.Renderer)(s,a,r,null,n.forExport,i.exporting&&i.exporting.allowHTML,this.styledMode),this.setClassName(n.className),this.styledMode)for(e in i.defs)this.renderer.definition(i.defs[e]);else this.renderer.setStyle(n.style);this.renderer.chartIndex=this.index,C(this,"afterGetContainer")},getMargins:function(t){var e=this.spacing,i=this.margin,n=this.titleOffset;this.resetMargins(),n[0]&&!a(i[0])&&(this.plotTop=Math.max(this.plotTop,n[0]+e[0])),n[2]&&!a(i[2])&&(this.marginBottom=Math.max(this.marginBottom,n[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),C(this,"getMargins"),t||this.getAxisMargins()},getAxisMargins:function(){function t(t){t.forEach(function(t){t.visible&&t.getOffset()})}var i=this,n=i.axisOffset=[0,0,0,0],e=i.colorAxis,s=i.margin;i.hasCartesianSeries?t(i.axes):e&&e.length&&t(e),D.forEach(function(t,e){a(s[e])||(i[t]+=n[e])}),i.setChartSize()},reflow:function(t){var e=this,i=e.options.chart,n=e.renderTo,s=a(i.width)&&a(i.height),o=i.width||l.getStyle(n,"width"),i=i.height||l.getStyle(n,"height"),n=t?t.target:r;s||e.isPrinting||!o||!i||n!==r&&n!==c||(o===e.containerWidth&&i===e.containerHeight||(l.clearTimeout(e.reflowTimeout),e.reflowTimeout=j(function(){e.container&&e.setSize(void 0,void 0,!1)},t?100:0)),e.containerWidth=o,e.containerHeight=i)},setReflow:function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=A(r,"resize",function(t){e.options&&e.reflow(t)}),A(this,"destroy",this.unbindReflow))},setSize:function(t,e,i){var n,s=this,o=s.renderer;s.isResizing+=1,k(i,s),s.oldChartHeight=s.chartHeight,s.oldChartWidth=s.chartWidth,void 0!==t&&(s.options.chart.width=t),void 0!==e&&(s.options.chart.height=e),s.getChartSize(),s.styledMode||((n=o.globalAnimation)?M:L)(s.container,{width:s.chartWidth+"px",height:s.chartHeight+"px"},n),s.setChartSize(!0),o.setSize(s.chartWidth,s.chartHeight,i),s.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.layOutTitles(),s.getMargins(),s.redraw(i),s.oldChartHeight=null,C(s,"resize"),j(function(){s&&C(s,"endResize",null,function(){--s.isResizing})},p(n).duration||0)},setChartSize:function(t){var e,i,n,s,o=this.inverted,a=this.renderer,r=this.chartWidth,c=this.chartHeight,d=this.options.chart,l=this.spacing,h=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=n=Math.max(0,Math.round(r-e-this.marginRight)),this.plotHeight=s=Math.max(0,Math.round(c-i-this.marginBottom)),this.plotSizeX=o?s:n,this.plotSizeY=o?n:s,this.plotBorderWidth=d.plotBorderWidth||0,this.spacingBox=a.spacingBox={x:l[3],y:l[0],width:r-l[3]-l[1],height:c-l[0]-l[2]},this.plotBox=a.plotBox={x:e,y:i,width:n,height:s},r=2*Math.floor(this.plotBorderWidth/2),o=Math.ceil(Math.max(r,h[3])/2),a=Math.ceil(Math.max(r,h[0])/2),this.clipBox={x:o,y:a,width:Math.floor(this.plotSizeX-Math.max(r,h[1])/2-o),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(r,h[2])/2-a))},t||this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),C(this,"afterSetChartSize",{skipAxes:t})},resetMargins:function(){C(this,"resetMargins");var s=this,o=s.options.chart;["margin","spacing"].forEach(function(i){var t=o[i],n=v(t)?t:[t,t,t,t];["Top","Right","Bottom","Left"].forEach(function(t,e){s[i][e]=h(o[i+t],n[e])})}),D.forEach(function(t,e){s[t]=h(s.margin[e],s.spacing[e])}),s.axisOffset=[0,0,0,0],s.clipOffset=[0,0,0,0]},drawChartBox:function(){var t,e,i=this.options.chart,n=this.renderer,c=this.chartWidth,d=this.chartHeight,s=this.chartBackground,o=this.plotBackground,a=this.plotBorder,u=this.styledMode,r=this.plotBGImage,l=i.backgroundColor,p=i.plotBackgroundColor,f=i.plotBackgroundImage,m=this.plotLeft,g=this.plotTop,y=this.plotWidth,b=this.plotHeight,v=this.plotBox,x=this.clipRect,w=this.clipBox,h="animate";s||(this.chartBackground=s=n.rect().addClass("highcharts-background").add(),h="attr"),u?e=t=s.strokeWidth():(t=(e=i.borderWidth||0)+(i.shadow?8:0),l={fill:l||"none"},(e||s["stroke-width"])&&(l.stroke=i.borderColor,l["stroke-width"]=e),s.attr(l).shadow(i.shadow)),s[h]({x:t/2,y:t/2,width:c-t-e%2,height:d-t-e%2,r:i.borderRadius}),h="animate",o||(h="attr",this.plotBackground=o=n.rect().addClass("highcharts-plot-background").add()),o[h](v),u||(o.attr({fill:p||"none"}).shadow(i.plotShadow),f&&(r?(f!==r.attr("href")&&r.attr("href",f),r.animate(v)):this.plotBGImage=n.image(f,m,g,y,b).add())),x?x.animate({width:w.width,height:w.height}):this.clipRect=n.clipRect(w),h="animate",a||(h="attr",this.plotBorder=a=n.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),u||a.attr({stroke:i.plotBorderColor,"stroke-width":i.plotBorderWidth||0,fill:"none"}),a[h](a.crisp({x:m,y:g,width:y,height:b},-a.strokeWidth())),this.isDirtyBox=!1,C(this,"afterDrawChartBox")},propFromSeries:function(){var e,i,n,s=this,o=s.options.chart,a=s.options.series;["inverted","angular","polar"].forEach(function(t){for(e=N[o.type||o.defaultSeriesType],n=o[t]||e&&e.prototype[t],i=a&&a.length;!n&&i--;)(e=N[a[i].type])&&e.prototype[t]&&(n=!0);s[t]=n})},linkSeries:function(){var i=this,t=i.series;t.forEach(function(t){t.linkedSeries.length=0}),t.forEach(function(t){var e=t.options.linkedTo;x(e)&&(e=":previous"===e?i.series[t.index-1]:i.get(e))&&e.linkedParent!==t&&(e.linkedSeries.push(t),(t.linkedParent=e).enabledDataSorting&&t.setDataSortingOptions(),t.visible=h(t.options.visible,e.options.visible,t.visible))}),C(this,"afterLinkSeries")},renderSeries:function(){this.series.forEach(function(t){t.translate(),t.render()})},renderLabels:function(){var s=this,o=s.options.labels;o.items&&o.items.forEach(function(t){var e=m(o.style,t.style),i=T(e.left)+s.plotLeft,n=T(e.top)+s.plotTop+12;delete e.left,delete e.top,s.renderer.text(t.html,i,n).attr({zIndex:2}).css(e).add()})},render:function(){function t(t){t.forEach(function(t){t.visible&&t.render()})}var e=this.axes,i=this.colorAxis,n=this.renderer,s=this.options,o=0,a=(this.setTitle(),this.legend=new Q(this,s.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),s=this.plotWidth,e.some(function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return o=21,!0}),this.plotHeight=Math.max(this.plotHeight-o,0)),r=(e.forEach(function(t){t.setScale()}),this.getAxisMargins(),1.1<s/this.plotWidth),l=1.05<a/this.plotHeight;(r||l)&&(e.forEach(function(t){(t.horiz&&r||!t.horiz&&l)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?t(e):i&&i.length&&t(i),this.seriesGroup||(this.seriesGroup=n.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.updateContainerScaling(),this.hasRendered=!0},addCredits:function(t){var e=this;(t=u(!0,this.options.credits,t)).enabled&&!this.credits&&(this.credits=this.renderer.text(t.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){t.href&&(r.location.href=t.href)}).attr({align:t.position.align,zIndex:8}),e.styledMode||this.credits.css(t.style),this.credits.add().align(t.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},updateContainerScaling:function(){var t,e,i=this.container;i.offsetWidth&&i.offsetHeight&&i.getBoundingClientRect&&(e=(t=i.getBoundingClientRect()).width/i.offsetWidth,i=t.height/i.offsetHeight,1!=e||1!==i?this.containerScaling={scaleX:e,scaleY:i}:delete this.containerScaling)},destroy:function(){var t,i=this,e=i.axes,n=i.series,s=i.container,o=s&&s.parentNode;for(C(i,"destroy"),i.renderer.forExport?y(d,i):d[i.index]=void 0,l.chartCount--,i.renderTo.removeAttribute("data-highcharts-chart"),O(i),t=e.length;t--;)e[t]=e[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=n.length;t--;)n[t]=n[t].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(t){var e=i[t];e&&e.destroy&&(i[t]=e.destroy())}),s&&(s.innerHTML="",O(s),o&&g(s)),S(i,function(t,e){delete i[e]})},firstRender:function(){var e=this,t=e.options;e.isReadyToRender&&!e.isReadyToRender()||(e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.getAxes(),(i(t.series)?t.series:[]).forEach(function(t){e.initSeries(t)}),e.linkSeries(),e.setSeriesData(),C(e,"beforeRender"),_&&(e.pointer=new _(e,t)),e.render(),!e.renderer.imgCount&&e.onload&&e.onload(),e.temporaryDisplay(!0))},onload:function(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),C(this,"load"),C(this,"render"),a(this.index)&&this.setReflow(this.options.chart.reflow),this.onload=null}})}),t(e,"parts/ScrollablePlotArea.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(a,t){var r=t.pick,l=a.addEvent;t=a.Chart,l(t,"afterSetChartSize",function(t){var s,e=(i=this.options.chart.scrollablePlotArea)&&i.minWidth,i=i&&i.minHeight;this.renderer.forExport||(e?(this.scrollablePixelsX=e=Math.max(0,e-this.chartWidth))&&(this.plotWidth+=e,this.inverted?(this.clipBox.height+=e,this.plotBox.height+=e):(this.clipBox.width+=e,this.plotBox.width+=e),s={1:{name:"right",value:e}}):i&&(this.scrollablePixelsY=e=Math.max(0,i-this.chartHeight))&&(this.plotHeight+=e,this.inverted?(this.clipBox.width+=e,this.plotBox.width+=e):(this.clipBox.height+=e,this.plotBox.height+=e),s={2:{name:"bottom",value:e}}),s&&!t.skipAxes&&this.axes.forEach(function(n){s[n.side]?n.getPlotLinePath=function(){var t=s[n.side].name,e=this[t],i=(this[t]=e-s[n.side].value,a.Axis.prototype.getPlotLinePath.apply(this,arguments));return this[t]=e,i}:(n.setAxisSize(),n.setAxisTranslation())}))}),l(t,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),t.prototype.setUpScrolling=function(){var t={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(t.overflowX="auto"),this.scrollablePixelsY&&(t.overflowY="auto"),this.scrollingContainer=a.createElement("div",{className:"highcharts-scrolling"},t,this.renderTo),this.innerContainer=a.createElement("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},t.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,n=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),n.push(t,t+"-labels"),n.forEach(function(t){[].forEach.call(e.querySelectorAll(t),function(t){(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})})},t.prototype.applyFixed=function(){var t,e=!this.fixedDiv,i=this.options.chart.scrollablePlotArea,n=(e?(this.fixedDiv=a.createElement("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:2},null,!0),this.renderTo.insertBefore(this.fixedDiv,this.renderTo.firstChild),this.renderTo.style.overflow="visible",this.fixedRenderer=t=new a.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight),this.scrollableMask=t.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":r(i.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),this.moveFixedElements(),l(this,"afterShowResetZoom",this.moveFixedElements),l(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),t=this.chartWidth+(this.scrollablePixelsX||0),this.chartHeight+(this.scrollablePixelsY||0)),s=(a.stop(this.container),this.container.style.width=t+"px",this.container.style.height=n+"px",this.renderer.boxWrapper.attr({width:t,height:n,viewBox:[0,0,t,n].join(" ")}),this.chartBackground.attr({width:t,height:n}),this.scrollablePixelsY&&(this.scrollingContainer.style.height=this.chartHeight+"px"),e&&(i.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*i.scrollPositionX),i.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*i.scrollPositionY)),n=this.axisOffset,e=this.plotTop-n[0]-1,i=this.plotLeft-n[3]-1,t=this.plotTop+this.plotHeight+n[2]+1,n=this.plotLeft+this.plotWidth+n[1]+1,this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0)),o=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0),e=this.scrollablePixelsX?["M",0,e,"L",this.plotLeft-1,e,"L",this.plotLeft-1,t,"L",0,t,"Z","M",s,e,"L",this.chartWidth,e,"L",this.chartWidth,t,"L",s,t,"Z"]:this.scrollablePixelsY?["M",i,0,"L",i,this.plotTop-1,"L",n,this.plotTop-1,"L",n,0,"Z","M",i,o,"L",i,this.chartHeight,"L",n,this.chartHeight,"L",n,o,"Z"]:["M",0,0];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:e})}}),t(e,"parts/Point.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(l,t){var s,r=t.animObject,n=t.defined,h=t.erase,o=t.extend,u=t.isArray,c=t.isNumber,p=t.isObject,f=t.syncTimeout,a=t.pick,d=l.fireEvent,m=l.format,g=l.uniqueKey,y=l.removeEvent;l.Point=s=function(){},l.Point.prototype={init:function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=n(this.id)?this.id:g(),this.resolveColor(),t.chart.pointCount++,d(this,"afterInit"),this},resolveColor:function(){var t=this.series,e=t.chart.options.chart.colorCount,i=t.chart.styledMode;i||this.options.color||(this.color=t.color),t.options.colorByPoint?(i||(e=t.options.colors||t.chart.options.colors,this.color=this.color||e[t.colorCounter],e=e.length),i=t.colorCounter,t.colorCounter++,t.colorCounter===e&&(t.colorCounter=0)):i=t.colorIndex,this.colorIndex=a(this.colorIndex,i)},applyOptions:function(t,e){var i=this.series,n=i.options.pointValKey||i.pointValKey;return t=s.prototype.optionsToObject.call(this,t),o(this,t),this.options=this.options?o(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,n&&(this.y=this[n]),this.formatPrefix=(this.isNull=a(this.isValid&&!this.isValid(),null===this.x||!c(this.y)))?"null":"point",this.selected&&(this.state="select"),"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},setNestedProperty:function(t,s,e){return e.split(".").reduce(function(t,e,i,n){return t[e]=n.length-1===i?s:p(t[e],!0)?t[e]:{},t[e]},t),t},optionsToObject:function(t){var e={},i=this.series,n=i.options.keys,s=n||i.pointArrayMap||["y"],o=s.length,a=0,r=0;if(c(t)||null===t)e[s[0]]=t;else if(u(t))for(!n&&t.length>o&&("string"===(i=typeof t[0])?e.name=t[0]:"number"===i&&(e.x=t[0]),a++);r<o;)n&&void 0===t[a]||(0<s[r].indexOf(".")?l.Point.prototype.setNestedProperty(e,t[a],s[r]):e[s[r]]=t[a]),a++,r++;else"object"==typeof t&&((e=t).dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return e},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){for(var t=(e=this.series).zones,e=e.zoneAxis||"y",i=0,n=t[i];this[e]>=n.value;)n=t[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},hasNewShapeType:function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},destroy:function(){function t(){for(e in o&&(i.setState(),h(o,i),o.length||(n.hoverPoints=null)),i===n.hoverPoint&&i.onMouseOut(),(i.graphic||i.dataLabel||i.dataLabels)&&(y(i),i.destroyElements()),i)i[e]=null}var e,i=this,n=(s=i.series).chart,s=s.options.dataSorting,o=n.hoverPoints,a=r(i.series.chart.renderer.globalAnimation);s&&s.enabled?(this.animateBeforeDestroy(),f(t,a.duration)):t(),n.pointCount--,i.legendItem&&n.legend.destroyItem(i)},animateBeforeDestroy:function(){var e,i=this,n={x:i.startXPos,opacity:0},t=i.getGraphicalProps();t.singular.forEach(function(t){e="dataLabel"===t,i[t]=i[t].animate(e?{x:i[t].startXPos,y:i[t].startYPos,opacity:0}:n)}),t.plural.forEach(function(t){i[t].forEach(function(t){t.element&&t.animate(o({x:i.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))})})},destroyElements:function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach(function(t){e[t]=e[t].destroy()}),t.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.destroy()}),delete e[t]})},getGraphicalProps:function(i){var t,n=this,e=[],s={singular:[],plural:[]};for((i=i||{graphic:1,dataLabel:1}).graphic&&e.push("graphic","shadowGroup"),i.dataLabel&&e.push("dataLabel","dataLabelUpper","connector"),t=e.length;t--;){var o=e[t];n[o]&&s.singular.push(o)}return["dataLabel","connector"].forEach(function(t){var e=t+"s";i[t]&&n[e]&&s.plural.push(e)}),s},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(e){var t=this.series,i=t.tooltipOptions,n=a(i.valueDecimals,""),s=i.valuePrefix||"",o=i.valueSuffix||"";return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||["y"]).forEach(function(t){t="{point."+t,e=(e=s||o?e.replace(RegExp(t+"}","g"),s+t+"}"+o):e).replace(RegExp(t+"}","g"),t+":,."+n+"f}")}),m(e,{point:this,series:this.series},t.chart)},firePointEvent:function(t,e,i){var n=this,s=this.series.options;(s.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&this.importEvents(),"click"===t&&s.allowPointSelect&&(i=function(t){n.select&&n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),d(this,t,e,i)},visible:!0}}),t(e,"parts/Series.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(x,t){var c=t.animObject,f=t.arrayMax,g=t.arrayMin,j=t.clamp,L=t.correctFloat,A=t.defined,h=t.erase,m=t.extend,P=t.isArray,M=t.isNumber,w=t.isString,d=t.objectEach,I=t.pick,y=t.splat,u=t.syncTimeout,a=x.addEvent,l=x.defaultOptions,e=x.defaultPlotOptions,E=x.fireEvent,p=x.merge,r=x.removeEvent,b=x.SVGElement,v=x.win;x.Series=x.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){var t=this.series.chart.numberFormatter;return null===this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,eventsToUnbind:[],isCartesian:!0,parallelArrays:["x","y"],pointClass:x.Point,requireSorting:!0,sorted:!0,init:function(t,e){E(this,"init",{options:e});var i,n=this,s=t.series,o=(this.eventOptions=this.eventOptions||{},n.chart=t,n.options=e=n.setOptions(e),n.linkedSeries=[],n.bindAxes(),m(n,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),e.events);d(o,function(t,e){x.isFunction(t)&&n.eventOptions[e]!==t&&(x.isFunction(n.eventOptions[e])&&r(n,e,n.eventOptions[e]),n.eventOptions[e]=t,a(n,e,t))}),(o&&o.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach(function(t){n[t+"Data"]||(n[t+"Data"]=[])}),n.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(i=s[s.length-1]),n._i=I(i&&i._i,-1)+1,t.orderSeries(this.insert(s)),e.dataSorting&&e.dataSorting.enabled?n.setDataSortingOptions():n.points||n.data||n.setData(e.data,!1),E(this,"afterInit")},insert:function(t){var e,i=this.options.index;if(M(i)){for(e=t.length;e--;)if(i>=I(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return I(e,t.length-1)},bindAxes:function(){var i,n=this,s=n.options,t=n.chart;E(this,"bindAxes",null,function(){(n.axisTypes||[]).forEach(function(e){t[e].forEach(function(t){i=t.options,(s[e]===i.index||void 0!==s[e]&&s[e]===i.id||void 0===s[e]&&0===i.index)&&(n.insert(t.series),(n[e]=t).isDirty=!0)}),n[e]||n.optionalAxis===e||x.error(18,!0,t)})})},updateParallelArrays:function(i,n){var s=i.series,e=arguments,t=M(n)?function(t){var e="y"===t&&s.toYData?s.toYData(i):i[t];s[t+"Data"][n]=e}:function(t){Array.prototype[n].apply(s[t+"Data"],Array.prototype.slice.call(e,2))};s.parallelArrays.forEach(t)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},autoIncrement:function(){var t,e=this.options,i=this.xIncrement,n=e.pointIntervalUnit,s=this.chart.time,i=I(i,e.pointStart,0);return this.pointInterval=t=I(this.pointInterval,e.pointInterval,1),n&&(e=new s.Date(i),"day"===n?s.set("Date",e,s.get("Date",e)+t):"month"===n?s.set("Month",e,s.get("Month",e)+t):"year"===n&&s.set("FullYear",e,s.get("FullYear",e)+t),t=e.getTime()-i),this.xIncrement=i+t,i},setDataSortingOptions:function(){var t=this.options;m(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),A(t.pointRange)||(t.pointRange=1)},setOptions:function(t){var e=this.chart,i=e.options,n=i.plotOptions,s=e.userOptions||{},o=(t=p(t),e=e.styledMode,{plotOptions:n,userOptions:t}),a=(E(this,"setOptions",o),o.plotOptions[this.type]),r=s.plotOptions||{};return this.userOptions=o.userOptions,s=p(a,n.series,s.plotOptions&&s.plotOptions[this.type],t),this.tooltipOptions=p(l.tooltip,l.plotOptions.series&&l.plotOptions.series.tooltip,l.plotOptions[this.type].tooltip,i.tooltip.userOptions,n.series&&n.series.tooltip,n[this.type].tooltip,t.tooltip),this.stickyTracking=I(t.stickyTracking,r[this.type]&&r[this.type].stickyTracking,r.series&&r.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||s.stickyTracking),null===a.marker&&delete s.marker,this.zoneAxis=s.zoneAxis,i=this.zones=(s.zones||[]).slice(),!s.negativeColor&&!s.negativeFillColor||s.zones||(n={value:s[this.zoneAxis+"Threshold"]||s.threshold||0,className:"highcharts-negative"},e||(n.color=s.negativeColor,n.fillColor=s.negativeFillColor),i.push(n)),i.length&&A(i[i.length-1].value)&&i.push(e?{}:{color:this.color,fillColor:this.fillColor}),E(this,"afterSetOptions",{options:s}),s},getName:function(){return I(this.options.name,"Series "+(this.index+1))},getCyclic:function(t,e,i){var n,s=this.chart,o=this.userOptions,a=t+"Index",r=t+"Counter",l=i?i.length:I(s.options.chart[t+"Count"],s[t+"Count"]);e||(n=I(o[a],o["_"+a]),A(n)||(s.series.length||(s[r]=0),o["_"+a]=n=s[r]%l,s[r]+=1),i&&(e=i[n])),void 0!==n&&(this[a]=n),this[t]=e},getColor:function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||e[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},findPointIndex:function(e,t){var i,n,s=e.id,o=e.x,a=this.points,r=this.options.dataSorting;if(s)var l=this.chart.get(s);else if(this.linkedParent||this.enabledDataSorting){var h=r&&r.matchByName?"name":"index";if(!(l=x.find(a,function(t){return!t.touched&&t[h]===e[h]})))return}return!l||void 0!==(n=l&&l.index)&&(i=!0),-1!==(n=void 0===n&&M(o)?this.xData.indexOf(o,t):n)&&void 0!==n&&this.cropped&&(n=n>=this.cropStart?n-this.cropStart:n),n=!i&&a[n]&&a[n].touched?void 0:n},drawLegendSymbol:x.LegendSymbolMixin.drawLineMarker,updateData:function(t,n){var s,e,o,a=this.options,r=a.dataSorting,l=this.points,h=[],d=this.requireSorting,c=t.length===l.length,i=!0;if(this.xIncrement=null,t.forEach(function(t,e){var i=A(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},n=i.x;i.id||M(n)?(-1===(n=this.findPointIndex(i,o))||void 0===n?h.push(t):l[n]&&t!==a.data[n]?(l[n].update(t,!1,null,!1),l[n].touched=!0,d&&(o=n+1)):l[n]&&(l[n].touched=!0),(!c||e!==n||r&&r.enabled||this.hasDerivedData)&&(s=!0)):h.push(t)},this),s)for(t=l.length;t--;)(e=l[t])&&!e.touched&&e.remove&&e.remove(!1,n);else!c||r&&r.enabled?i=!1:(t.forEach(function(t,e){l[e].update&&t!==l[e].y&&l[e].update(t,!1,null,!1)}),h.length=0);return l.forEach(function(t){t&&(t.touched=!1)}),!!i&&(h.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=f(this.xData),this.autoIncrement()),!0)},setData:function(t,c,e,i){var d,n=this,s=n.points,u=s&&s.length||0,o=n.options,a=n.chart,p=o.dataSorting,r=null,f=n.xAxis,r=o.turboThreshold,m=this.xData,l=this.yData,g=(h=n.pointArrayMap)&&h.length,y=o.keys,b=0,v=1,h=(t=t||[]).length;if(c=I(c,!0),p&&p.enabled&&(t=this.sortData(t)),!(d=!1!==i&&h&&u&&!n.cropped&&!n.hasGroupedData&&n.visible&&!n.isSeriesBoosting?this.updateData(t,e):d)){if(n.xIncrement=null,n.colorCounter=0,this.parallelArrays.forEach(function(t){n[t+"Data"].length=0}),r&&r<h)if(r=n.getFirstValidPoint(t),M(r))for(e=0;e<h;e++)m[e]=this.autoIncrement(),l[e]=t[e];else if(P(r))if(g)for(e=0;e<h;e++)i=t[e],m[e]=i[0],l[e]=i.slice(1,g+1);else for(y&&(b=0<=(b=y.indexOf("x"))?b:0,v=0<=(v=y.indexOf("y"))?v:1),e=0;e<h;e++)i=t[e],m[e]=i[b],l[e]=i[v];else x.error(12,!1,a);else for(e=0;e<h;e++)void 0!==t[e]&&(n.pointClass.prototype.applyOptions.apply(i={series:n},[t[e]]),n.updateParallelArrays(i,e));for(l&&w(l[0])&&x.error(14,!0,a),n.data=[],n.options.data=n.userOptions.data=t,e=u;e--;)s[e]&&s[e].destroy&&s[e].destroy();f&&(f.minRange=f.userMinRange),n.isDirty=a.isDirtyBox=!0,n.isDirtyData=!!s,e=!1}"point"===o.legendType&&(this.processData(),this.generatePoints()),c&&a.redraw(e)},sortData:function(s){function o(t,e){return A(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}}var i=this,n=i.options.dataSorting.sortKey||"y";return s.forEach(function(t,e){s[e]=o(i,t),s[e].index=e},this),s.concat().sort(function(t,e){return M(e[n])?e[n]-t[n]:-1}).forEach(function(t,e){t.x=e},this),i.linkedSeries&&i.linkedSeries.forEach(function(i){var t=i.options,n=t.data;t.dataSorting&&t.dataSorting.enabled||!n||(n.forEach(function(t,e){n[e]=o(i,t),s[e]&&(n[e].x=s[e].x,n[e].index=e)}),i.setData(n,!1))}),s},processData:function(t){var e,i,c,n,s=this.xData,d=this.yData,o=s.length,a=0,r=this.xAxis,l=(h=this.options).cropThreshold,u=this.getExtremesFromAll||h.getExtremesFromAll,p=this.isCartesian,h=r&&r.val2lin,f=r&&r.isLog,m=this.requireSorting;if(p&&!this.isDirty&&!r.isDirty&&!this.yAxis.isDirty&&!t)return!1;for(r&&(e=(t=r.getExtremes()).min,i=t.max),p&&this.sorted&&!u&&(!l||l<o||this.forceCrop)&&(s[o-1]<e||s[0]>i?(s=[],d=[]):this.yData&&(s[0]<e||s[o-1]>i)&&(s=(a=this.cropData(this.xData,this.yData,e,i)).xData,d=a.yData,a=a.start,c=!0)),l=s.length||1;--l;)0<(o=f?h(s[l])-h(s[l-1]):s[l]-s[l-1])&&(void 0===n||o<n)?n=o:o<0&&m&&(x.error(15,!1,this.chart),m=!1);this.cropped=c,this.cropStart=a,this.processedXData=s,this.processedYData=d,this.closestPointRange=this.basePointRange=n},cropData:function(t,e,i,n,s){var o,a=t.length,r=0,l=a;for(s=I(s,this.cropShoulder),o=0;o<a;o++)if(t[o]>=i){r=Math.max(0,o-s);break}for(i=o;i<a;i++)if(t[i]>n){l=i+s;break}return{xData:t.slice(r,l),yData:e.slice(r,l),start:r,end:l}},generatePoints:function(){var t,e,i=(r=this.options).data,n=this.data,s=this.processedXData,c=this.processedYData,d=this.pointClass,o=s.length,u=this.cropStart||0,a=this.hasGroupedData,r=r.keys,p=[];for(n||a||((n=[]).length=i.length,n=this.data=n),r&&a&&(this.options.keys=!1),e=0;e<o;e++){var l,h=u+e;a?((l=(new d).init(this,[s[e]].concat(y(c[e])))).dataGroup=this.groupMap[e],l.dataGroup.options&&(l.options=l.dataGroup.options,m(l,l.dataGroup.options),delete l.dataLabels)):(l=n[h])||void 0===i[h]||(n[h]=l=(new d).init(this,i[h],s[e])),l&&(l.index=h,p[e]=l)}if(this.options.keys=r,n&&(o!==(t=n.length)||a))for(e=0;e<t;e++)e!==u||a||(e+=o),n[e]&&(n[e].destroyElements(),n[e].plotX=void 0);this.data=n,this.points=p,E(this,"afterGeneratePoints")},getXExtremes:function(t){return{min:g(t),max:f(t)}},getExtremes:function(t){var e,i=this.xAxis,n=this.yAxis,s=this.processedXData||this.xData,o=[],c=0,d=0,a=0,u=this.requireSorting?this.cropShoulder:0,p=!!n&&n.positiveValuesOnly,n=(t=t||this.stackedYData||this.processedYData||[]).length;for(i&&(d=(a=i.getExtremes()).min,a=a.max),e=0;e<n;e++){var r=s[e],l=t[e],h=(M(l)||P(l))&&(l.length||0<l||!p),r=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!i||(s[e+u]||r)>=d&&(s[e-u]||r)<=a;if(h&&r)if(h=l.length)for(;h--;)M(l[h])&&(o[c++]=l[h]);else o[c++]=l}this.dataMin=g(o),this.dataMax=f(o),E(this,"afterGetExtremes")},getFirstValidPoint:function(t){for(var e=null,i=t.length,n=0;null===e&&n<i;)e=t[n],n++;return e},translate:function(){this.processedXData||this.processData(),this.generatePoints();for(var t,e=this.options,c=e.stacking,i=this.xAxis,d=i.categories,u=this.enabledDataSorting,n=this.yAxis,p=this.points,f=p.length,m=!!this.modifyValue,g=this.pointPlacementToXValue(),y=M(g),s=e.threshold,b=e.startFromThreshold?s:0,v=this.zoneAxis||"y",x=Number.MAX_VALUE,w=0;w<f;w++){var C,o,S,T,a=p[w],r=a.x,l=a.y,h=a.low,k=c&&n.stacks[(this.negStacks&&l<(b?0:s)?"-":"")+this.stackKey];n.positiveValuesOnly&&null!==l&&l<=0&&(a.isNull=!0),a.plotX=t=L(j(i.translate(r,0,0,0,1,g,"flags"===this.type),-1e5,1e5)),c&&this.visible&&k&&k[r]&&(C=this.getStackIndicator(C,r,this.index),a.isNull||(S=(o=k[r]).points[C.key])),P(S)&&(h=S[0],l=S[1],h===b&&C.key===k[r].base&&(h=I(M(s)&&s,n.min)),n.positiveValuesOnly&&h<=0&&(h=null),a.total=a.stackTotal=o.total,a.percentage=o.total&&a.y/o.total*100,a.stackY=l,this.irregularWidths||o.setOffset(this.pointXOffset||0,this.barW||0)),a.yBottom=A(h)?j(n.translate(h,0,1,0,1),-1e5,1e5):null,m&&(l=this.modifyValue(l,a)),a.plotY=l="number"==typeof l&&1/0!==l?j(n.translate(l,0,1,0,1),-1e5,1e5):void 0,a.isInside=void 0!==l&&0<=l&&l<=n.len&&0<=t&&t<=i.len,a.clientX=y?L(i.translate(r,0,0,0,1,g)):t,a.negative=a[v]<(e[v+"Threshold"]||s||0),a.category=d&&void 0!==d[a.x]?d[a.x]:a.x,a.isNull||!1===a.visible||(void 0!==T&&(x=Math.min(x,Math.abs(t-T))),T=t),a.zone=this.zones.length&&a.getZone(),!a.graphic&&this.group&&u&&(a.isNew=!0)}this.closestPointRangePx=x,E(this,"afterTranslate")},getValidPoints:function(t,e,i){var n=this.chart;return(t||this.points||[]).filter(function(t){return!(e&&!n.isInsidePlot(t.plotX,t.plotY,n.inverted))&&(!1!==t.visible&&(i||!t.isNull))})},getClipBox:function(t,e){var i=this.options,n=this.chart,s=n.inverted,o=this.xAxis,a=o&&this.yAxis;return t&&!1===i.clip&&a?t=s?{y:-n.chartWidth+a.len+a.pos,height:n.chartWidth,width:n.chartHeight,x:-n.chartHeight+o.len+o.pos}:{y:-a.pos,height:n.chartHeight,width:n.chartWidth,x:-o.pos}:(t=this.clipBox||n.clipBox,e&&(t.width=n.plotSizeX,t.x=0)),e?{width:t.width,x:t.x}:t},setClip:function(t){var e=this.chart,i=this.options,n=e.renderer,s=e.inverted,o=this.clipBox,a=this.getClipBox(t),r=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,a.height,i.xAxis,i.yAxis].join(),l=e[r],h=e[r+"m"];l||(t&&(a.width=0,s&&(a.x=e.plotSizeX+(!1!==i.clip?0:e.plotTop)),e[r+"m"]=h=n.clipRect(s?e.plotSizeX+99:-99,s?-e.plotLeft:-e.plotTop,99,s?e.chartWidth:e.chartHeight)),e[r]=l=n.clipRect(a),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),!1===i.clip&&!t||(this.group.clip(t||o?l:e.clipRect),this.markerGroup.clip(h),this.sharedClipKey=r),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&r&&e[r]&&(o||(e[r]=e[r].destroy()),e[r+"m"]&&(e[r+"m"]=e[r+"m"].destroy())))},animate:function(t){var e,i,n=this.chart,s=c(this.options.animation);t?this.setClip(s):(t=n[e=this.sharedClipKey],i=this.getClipBox(s,!0),t&&t.animate(i,s),n[e+"m"]&&n[e+"m"].animate({width:i.width+99,x:i.x-(n.inverted?0:99)},s),this.animate=null)},afterAnimate:function(){this.setClip(),E(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,c=this.points,i=this.chart,n=this.options.marker,d=this[this.specialGroup]||this.markerGroup,s=this.xAxis,u=I(n.enabled,!(s&&!s.isRadial)||null,this.closestPointRangePx>=n.enabledThreshold*n.radius);if(!1!==n.enabled||this._hasPointMarkers)for(t=0;t<c.length;t++){var p,o,a,r=c[t],l=(e=r.graphic)?"animate":"attr",h=r.marker||{},f=!!r.marker;(u&&void 0===h.enabled||h.enabled)&&!r.isNull&&!1!==r.visible?(p=I(h.symbol,this.symbol),o=this.markerAttribs(r,r.selected&&"select"),this.enabledDataSorting&&(r.startXPos=s.reversed?-o.width:s.width),a=!1!==r.isInside,e?e[a?"show":"hide"](a).animate(o):a&&(0<o.width||r.hasImage)&&(r.graphic=e=i.renderer.symbol(p,o.x,o.y,o.width,o.height,f?h:n).add(d),this.enabledDataSorting&&i.hasRendered&&(e.attr({x:r.startXPos}),l="animate")),e&&"animate"===l&&e[a?"show":"hide"](a).animate(o),e&&!i.styledMode&&e[l](this.pointAttribs(r,r.selected&&"select")),e&&e.addClass(r.getClassName(),!0)):e&&(r.graphic=e.destroy())}},markerAttribs:function(t,e){var i=this.options.marker,n=t.marker||{},s=n.symbol||i.symbol,o=I(n.radius,i.radius);return e&&(i=i.states[e],e=n.states&&n.states[e],o=I(e&&e.radius,i&&i.radius,o+(i&&i.radiusPlus||0))),t.hasImage=s&&0===s.indexOf("url"),t.hasImage&&(o=0),t={x:Math.floor(t.plotX)-o,y:t.plotY-o},o&&(t.width=t.height=2*o),t},pointAttribs:function(t,e){var i=this.options.marker,n=(r=t&&t.options)&&r.marker||{},s=this.color,o=r&&r.color,a=t&&t.color,r=I(n.lineWidth,i.lineWidth),l=t&&t.zone&&t.zone.color;return t=1,s=o||l||a||s,o=n.fillColor||i.fillColor||s,s=n.lineColor||i.lineColor||s,i=i.states[e=e||"normal"],e=n.states&&n.states[e]||{},r=I(e.lineWidth,i.lineWidth,r+I(e.lineWidthPlus,i.lineWidthPlus,0)),o=e.fillColor||i.fillColor||o,{stroke:s=e.lineColor||i.lineColor||s,"stroke-width":r,fill:o,opacity:t=I(e.opacity,i.opacity,t)}},destroy:function(i){var t,e,n,s=this,o=s.chart,a=/AppleWebKit\/533/.test(v.navigator.userAgent),r=s.data||[];for(E(s,"destroy"),this.removeEvents(i),(s.axisTypes||[]).forEach(function(t){(n=s[t])&&n.series&&(h(n.series,s),n.isDirty=n.forceRedraw=!0)}),s.legendItem&&s.chart.legend.destroyItem(s),t=r.length;t--;)(e=r[t])&&e.destroy&&e.destroy();s.points=null,x.clearTimeout(s.animationTimeout),d(s,function(t,e){t instanceof b&&!t.survive&&t[a&&"group"===e?"hide":"destroy"]()}),o.hoverSeries===s&&(o.hoverSeries=null),h(o.series,s),o.orderSeries(),d(s,function(t,e){i&&"hcEvents"===e||delete s[e]})},getGraphPath:function(o,a,r){var t,l,h=this,c=h.options,d=c.step,u=[],p=[];return(t=(o=o||h.points).reversed)&&o.reverse(),(d={right:1,center:2}[d]||d&&3)&&t&&(d=4-d),(o=this.getValidPoints(o,!1,!(c.connectNulls&&!a&&!r))).forEach(function(t,e){var i=t.plotX,n=t.plotY,s=o[e-1];(t.leftCliff||s&&s.rightCliff)&&!r&&(l=!0),l=t.isNull&&!A(a)&&0<e?!c.connectNulls:!(!t.isNull||a)||(0===e||l?e=["M",t.plotX,t.plotY]:h.getPointSpline?e=h.getPointSpline(o,t,e):d?(e=1===d?["L",s.plotX,n]:2===d?["L",(s.plotX+i)/2,s.plotY,"L",(s.plotX+i)/2,n]:["L",i,s.plotY]).push("L",i,n):e=["L",i,n],p.push(t.x),d&&(p.push(t.x),2===d&&p.push(t.x)),u.push.apply(u,e),!1)}),u.xMap=p,h.graphPath=u},drawGraph:function(){var o=this,a=this.options,r=(this.gappedPath||this.getGraphPath).call(this),l=this.chart.styledMode,t=[["graph","highcharts-graph"]];l||t[0].push(a.lineColor||this.color||"#cccccc",a.dashStyle),(t=o.getZonesGraphs(t)).forEach(function(t,e){var i=t[0],n=o[i],s=n?"animate":"attr";n?(n.endX=o.preventGraphAnimation?null:r.xMap,n.animate({d:r})):r.length&&(o[i]=n=o.chart.renderer.path(r).addClass(t[1]).attr({zIndex:1}).add(o.group)),n&&!l&&(i={stroke:t[2],"stroke-width":a.lineWidth,fill:o.fillGraph&&o.color||"none"},t[3]?i.dashstyle=t[3]:"square"!==a.linecap&&(i["stroke-linecap"]=i["stroke-linejoin"]="round"),n[s](i).shadow(e<2&&a.shadow)),n&&(n.startX=r.xMap,n.isArea=r.isArea)})},getZonesGraphs:function(i){return this.zones.forEach(function(t,e){e=["zone-graph-"+e,"highcharts-graph highcharts-zone-graph-"+e+" "+(t.className||"")],this.chart.styledMode||e.push(t.color||this.color,t.dashStyle||this.options.dashStyle),i.push(e)},this),i},applyZones:function(){var i,n,u,p,s,f,o,a,m=this,r=this.chart,g=r.renderer,t=this.zones,l=this.clips||[],h=this.graph,c=this.area,y=Math.max(r.chartWidth,r.chartHeight),d=this[(this.zoneAxis||"y")+"Axis"],b=r.inverted,v=!1;t.length&&(h||c)&&d&&void 0!==d.min?(f=d.reversed,o=d.horiz,h&&!this.showLine&&h.hide(),c&&c.hide(),a=d.getExtremes(),t.forEach(function(t,e){s=f?o?r.plotWidth:0:!o&&d.toPixels(a.min)||0,s=j(I(i,s),0,y),i=j(Math.round(d.toPixels(I(t.value,a.max),!0)||0),0,y),v&&(s=i=d.toPixels(a.max)),u=Math.abs(s-i),p=Math.min(s,i),s=Math.max(s,i),d.isXAxis?(n={x:b?s:p,y:0,width:u,height:y},o||(n.x=r.plotHeight-n.x)):(n={x:0,y:b?s:p,width:y,height:u},o&&(n.y=r.plotWidth-n.y)),b&&g.isVML&&(n=d.isXAxis?{x:0,y:f?p:s,height:n.width,width:r.chartWidth}:{x:n.y-r.plotLeft-r.spacingBox.x,y:0,width:n.height,height:r.chartHeight}),l[e]?l[e].animate(n):l[e]=g.clipRect(n),h&&m["zone-graph-"+e].clip(l[e]),c&&m["zone-area-"+e].clip(l[e]),v=t.value>a.max,m.resetZones&&0===i&&(i=void 0)}),this.clips=l):m.visible&&(h&&h.show(!0),c&&c.show(!0))},invertGroups:function(e){function t(){["group","markerGroup"].forEach(function(t){i[t]&&(n.renderer.isVML&&i[t].attr({width:i.yAxis.len,height:i.xAxis.len}),i[t].width=i.yAxis.len,i[t].height=i.xAxis.len,i[t].invert(!i.isRadialSeries&&e))})}var i=this,n=i.chart;i.xAxis&&(i.eventsToUnbind.push(a(n,"resize",t)),t(),i.invertGroups=t)},plotGroup:function(t,e,i,n,s){var o=this[t],a=!o;return a&&(this[t]=o=this.chart.renderer.g().attr({zIndex:n||.1}).add(s)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(A(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),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}},removeEvents:function(t){t?this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind.length=0):r(this)},render:function(){var t=this,e=t.chart,i=t.options,n=!!t.animate&&e.renderer.isSVG&&c(i.animation).duration,s=t.visible?"inherit":"hidden",o=i.zIndex,a=t.hasRendered,r=e.seriesGroup,l=e.inverted,h=(E(this,"render"),t.plotGroup("group","series",s,o,r));t.markerGroup=t.plotGroup("markerGroup","markers",s,o,r),n&&t.animate(!0),h.inverted=!(!t.isCartesian&&!t.invertable)&&l,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(l),!1===i.clip||t.sharedClipKey||a||h.clip(e.clipRect),n&&t.animate(),a||(t.animationTimeout=u(function(){t.afterAnimate()},n||0)),t.isDirty=!1,t.hasRendered=!0,E(t,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,n=this.xAxis,s=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:I(n&&n.left,t.plotLeft),translateY:I(s&&s.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,n=this.yAxis,s=this.chart.inverted;return this.searchKDTree({clientX:s?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:s?n.len-t.chartX+n.pos:t.chartY-n.pos},e,t)},buildKDTree:function(t){this.buildingKdTree=!0;var a=this,e=-1<a.options.findNearestPointBy.indexOf("y")?2:1;delete a.kdTree,u(function(){a.kdTree=function t(e,i,n){var s,o;if(s=e&&e.length)return o=a.kdAxisArray[i%n],e.sort(function(t,e){return t[o]-e[o]}),{point:e[s=Math.floor(s/2)],left:t(e.slice(0,s),i+1,n),right:t(e.slice(s+1),i+1,n)}}(a.getValidPoints(null,!a.directTouch),e,e),a.buildingKdTree=!1},a.options.kdNow||t&&"touchstart"===t.type?0:1)},searchKDTree:function(t,e,i){var c=this,d=this.kdAxisArray[0],u=this.kdAxisArray[1],p=e?"distX":"dist";if(e=-1<c.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,n,s){var o=i.point,a=c.kdAxisArray[n%s],r=o,l=A(e[d])&&A(o[d])?Math.pow(e[d]-o[d],2):null,h=(l||0)+((A(e[u])&&A(o[u])?Math.pow(e[u]-o[u],2):null)||0);return o.dist=A(h)?Math.sqrt(h):Number.MAX_VALUE,o.distX=A(l)?Math.sqrt(l):Number.MAX_VALUE,l=(a=e[a]-o[a])<0?"right":"left",i[h=a<0?"left":"right"]&&(r=(h=t(e,i[h],n+1,s))[p]<r[p]?h:o),r=i[l]&&Math.sqrt(a*a)<r[p]&&(e=t(e,i[l],n+1,s))[p]<r[p]?e:r}(t,this.kdTree,e,e)},pointPlacementToXValue:function(){var t=this.xAxis,e=this.options.pointPlacement;return"between"===e&&(e=t.reversed?-.5:.5),M(e)&&(e*=I(this.options.pointRange||t.pointRange)),e}})}),t(e,"parts/Stacking.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(w,t){var C=t.correctFloat,S=t.defined,e=t.destroyObjectProperties,s=t.objectEach,T=t.pick,i=(t=w.Axis,w.Chart),o=w.format,h=w.Series;w.StackItem=function(t,e,i,n,s){var o=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e=e||{},this.x=n,this.total=null,this.points={},this.stack=s,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(o?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":i?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(o?i?"right":"left":"center")},w.StackItem.prototype={destroy:function(){e(this,this.axis)},render:function(t){var e=this.axis.chart,i=this.options,n=(n=i.format)?o(n,this,e):i.formatter.call(this);this.label?this.label.attr({text:n,visibility:"hidden"}):(this.label=e.renderer.label(n,null,null,i.shape,null,null,i.useHTML,!1,"stack-labels"),n={text:n,align:this.textAlign,rotation:i.rotation,padding:T(i.padding,0),visibility:"hidden"},this.label.attr(n),e.styledMode||this.label.css(i.style),this.label.added||this.label.add(t)),this.label.labelrank=e.plotHeight},setOffset:function(t,e,i,n,s){var o,a,r=this.axis,l=r.chart;n=r.translate(r.usePercentage?100:n||this.total,0,0,0,1),i=r.translate(i||0),i=S(n)&&Math.abs(n-i),t=T(s,l.xAxis[0].translate(this.x))+t,r=S(n)&&this.getStackBox(l,this,t,n,e,i,r),e=this.label,t=this.isNegative,s="justify"===T(this.options.overflow,"justify"),e&&r&&(i=e.getBBox(),o=l.inverted?t?i.width:0:i.width/2,a=l.inverted?i.height/2:t?-4:i.height+4,this.alignOptions.x=T(this.options.x,0),e.align(this.alignOptions,null,r),n=e.alignAttr,e.show(),n.y-=a,s&&(n.x-=o,h.prototype.justifyDataLabel.call(this.axis,e,this.alignOptions,n,i,r),n.x+=o),n.x=e.alignAttr.x,e.attr({x:n.x,y:n.y}),T(!s&&this.options.crop,!0)&&((l=l.isInsidePlot(e.x+(l.inverted?0:-i.width/2),e.y)&&l.isInsidePlot(e.x+(l.inverted?t?-i.width:i.width:i.width/2),e.y+i.height))||e.hide()))},getStackBox:function(t,e,i,n,s,o,a){var r=e.axis.reversed,l=t.inverted;return t=a.height+a.pos-(l?t.plotLeft:t.plotTop),e=e.isNegative&&!r||!e.isNegative&&r,{x:l?e?n:n-o:i,y:l?t-i-s:e?t-n-o:t-n,width:l?o:s,height:l?s:o}}},i.prototype.getStacks=function(){var i=this,n=i.inverted;i.yAxis.forEach(function(t){t.stacks&&t.hasVisibleSeries&&(t.oldStacks=t.stacks)}),i.series.forEach(function(t){var e=t.xAxis&&t.xAxis.options||{};!t.options.stacking||!0!==t.visible&&!1!==i.options.chart.ignoreHiddenSeries||(t.stackKey=[t.type,T(t.options.stack,""),n?e.top:e.left,n?e.height:e.width].join())})},t.prototype.buildStacks=function(){var t,e=this.series,i=T(this.options.reversedStacks,!0),n=e.length;if(!this.isXAxis){for(this.usePercentage=!1,t=n;t--;)e[i?t:n-t-1].setStackedPoints();for(t=0;t<n;t++)e[t].modifyStacks();w.fireEvent(this,"afterBuildStacks")}},t.prototype.renderStackTotals=function(){var t=this.chart,e=t.renderer,i=this.stacks,n=this.stackTotalGroup;n||(this.stackTotalGroup=n=e.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),n.translate(t.plotLeft,t.plotTop),s(i,function(t){s(t,function(t){t.render(n)})})},t.prototype.resetStacks=function(){var n=this,t=n.stacks;n.isXAxis||s(t,function(i){s(i,function(t,e){t.touched<n.stacksTouched?(t.destroy(),delete i[e]):(t.total=null,t.cumulative=null)})})},t.prototype.cleanStacks=function(){var t;this.isXAxis||(this.oldStacks&&(t=this.stacks=this.oldStacks),s(t,function(t){s(t,function(t){t.cumulative=t.total})}))},h.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var t,e,c=this.processedXData,d=this.processedYData,u=[],p=d.length,f=(n=this.options).threshold,i=T(n.startFromThreshold&&f,0),m=n.stack,n=n.stacking,g=this.stackKey,y="-"+g,b=this.negStacks,s=this.yAxis,o=s.stacks,v=s.oldStacks;for(s.stacksTouched+=1,e=0;e<p;e++){var a=c[e],r=d[e],x=this.getStackIndicator(x,a,this.index),l=x.key,h=(t=b&&r<(i?0:f))?y:g;o[h]||(o[h]={}),o[h][a]||(v[h]&&v[h][a]?(o[h][a]=v[h][a],o[h][a].total=null):o[h][a]=new w.StackItem(s,s.options.stackLabels,t,a,m)),h=o[h][a],null!==r?(h.points[l]=h.points[this.index]=[T(h.cumulative,i)],S(h.cumulative)||(h.base=l),h.touched=s.stacksTouched,0<x.index&&!1===this.singleStacks&&(h.points[l][0]=h.points[this.index+","+a+",0"][0])):h.points[l]=h.points[this.index]=null,"percent"===n?(t=t?g:y,b&&o[t]&&o[t][a]?(t=o[t][a],h.total=t.total=Math.max(t.total,h.total)+Math.abs(r)||0):h.total=C(h.total+(Math.abs(r)||0))):h.total=C(h.total+(r||0)),h.cumulative=T(h.cumulative,i)+(r||0),null!==r&&(h.points[l].push(h.cumulative),u[e]=h.cumulative)}"percent"===n&&(s.usePercentage=!0),this.stackedYData=u,s.oldStacks={}}},h.prototype.modifyStacks=function(){var s,o=this,t=o.stackKey,a=o.yAxis.stacks,r=o.processedXData,l=o.options.stacking;o[l+"Stacker"]&&[t,"-"+t].forEach(function(t){for(var e,i,n=r.length;n--;)e=r[n],s=o.getStackIndicator(s,e,o.index,t),(i=(e=a[t]&&a[t][e])&&e.points[s.key])&&o[l+"Stacker"](i,e,n)})},h.prototype.percentStacker=function(t,e,i){e=e.total?100/e.total:0,t[0]=C(t[0]*e),t[1]=C(t[1]*e),this.stackedYData[i]=t[1]},h.prototype.getStackIndicator=function(t,e,i,n){return!S(t)||t.x!==e||n&&t.key!==n?t={x:e,index:0,key:n}:t.index++,t.key=[i,e,t.index].join(),t}}),t(e,"parts/Dynamics.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(m,t){var p=t.defined,o=t.erase,g=t.extend,r=t.isArray,f=t.isNumber,d=t.isObject,w=t.isString,u=t.objectEach,y=t.pick,C=t.relativeLength,h=t.setAnimation,S=t.splat,l=m.addEvent,c=m.animate,T=m.Axis,k=(t=m.Chart,m.createElement),a=m.css,b=m.fireEvent,v=m.merge,e=m.Point,i=m.Series,x=m.seriesTypes;m.cleanRecursively=function(i,n){var s={};return u(i,function(t,e){d(i[e],!0)&&!i.nodeType&&n[e]?(t=m.cleanRecursively(i[e],n[e]),Object.keys(t).length&&(s[e]=t)):!d(i[e])&&i[e]===n[e]||(s[e]=i[e])}),s},g(t.prototype,{addSeries:function(t,e,i){var n,s=this;return t&&(e=y(e,!0),b(s,"addSeries",{options:t},function(){n=s.initSeries(t),s.isDirtyLegend=!0,s.linkSeries(),n.enabledDataSorting&&n.setData(t.data,!1),b(s,"afterAddSeries",{series:n}),e&&s.redraw(i)})),n},addAxis:function(t,e,i,n){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:n})},addColorAxis:function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},createAxis:function(t,e){var i=this.options,n="colorAxis"===t,s=e.redraw,o=e.animation,a=(e=v(e.axis,{index:this[t].length,isX:"xAxis"===t}),new(n?m.ColorAxis:T)(this,e));return i[t]=S(i[t]||{}),i[t].push(e),n&&(this.isDirtyLegend=!0,this.axes.forEach(function(t){t.series=[]}),this.series.forEach(function(t){t.bindAxes(),t.isDirtyData=!0})),y(s,!0)&&this.redraw(o),a},showLoading:function(t){function e(){s&&a(s,{left:i.plotLeft+"px",top:i.plotTop+"px",width:i.plotWidth+"px",height:i.plotHeight+"px"})}var i=this,n=i.options,s=i.loadingDiv,o=n.loading;s||(i.loadingDiv=s=k("div",{className:"highcharts-loading highcharts-loading-hidden"},null,i.container),i.loadingSpan=k("span",{className:"highcharts-loading-inner"},null,s),l(i,"redraw",e)),s.className="highcharts-loading",i.loadingSpan.innerHTML=y(t,n.lang.loading,""),i.styledMode||(a(s,g(o.style,{zIndex:10})),a(i.loadingSpan,o.labelStyle),i.loadingShown||(a(s,{opacity:0,display:""}),c(s,{opacity:o.style.opacity||.5},{duration:o.showDuration||0}))),i.loadingShown=!0,e()},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||c(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){a(e,{display:"none"})}})),this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" "),collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],update:function(t,e,s,i){var n,o,a,r,l=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},c=t.isResponsiveOptions,d=[];b(l,"update",{options:t}),c||l.setResponsive(!1,!0),t=m.cleanRecursively(t,l.options),v(!0,l.userOptions,t),(n=t.chart)&&(v(!0,l.options.chart,n),"className"in n&&l.setClassName(n.className),"reflow"in n&&l.setReflow(n.reflow),("inverted"in n||"polar"in n||"type"in n)&&(l.propFromSeries(),r=!0),"alignTicks"in n&&(r=!0),u(n,function(t,e){-1!==l.propsRequireUpdateSeries.indexOf("chart."+e)&&(o=!0),-1!==l.propsRequireDirtyBox.indexOf(e)&&(l.isDirtyBox=!0),c||-1===l.propsRequireReflow.indexOf(e)||(a=!0)}),!l.styledMode&&"style"in n&&l.renderer.setStyle(n.style)),!l.styledMode&&t.colors&&(this.options.colors=t.colors),t.plotOptions&&v(!0,this.options.plotOptions,t.plotOptions),t.time&&this.time===m.time&&(this.time=new m.Time(t.time)),u(t,function(t,e){l[e]&&"function"==typeof l[e].update?l[e].update(t,!1):"function"==typeof l[h[e]]&&l[h[e]](t),"chart"!==e&&-1!==l.propsRequireUpdateSeries.indexOf(e)&&(o=!0)}),this.collectionsWithUpdate.forEach(function(i){var n;t[i]&&("series"===i&&(n=[],l[i].forEach(function(t,e){t.options.isInternal||n.push(y(t.options.index,e))})),S(t[i]).forEach(function(t,e){(e=p(t.id)&&l.get(t.id)||l[i][n?n[e]:e])&&e.coll===i&&(e.update(t,!1),s&&(e.touched=!0)),!e&&s&&l.collectionsWithInit[i]&&(l.collectionsWithInit[i][0].apply(l,[t].concat(l.collectionsWithInit[i][1]||[]).concat([!1])).touched=!0)}),s&&l[i].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:d.push(t)}))}),d.forEach(function(t){t.remove&&t.remove(!1)}),r&&l.axes.forEach(function(t){t.update({},!1)}),o&&l.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this),t.loading&&v(!0,l.options.loading,t.loading),r=n&&n.width,n=n&&n.height,w(n)&&(n=C(n,r||l.chartWidth)),a||f(r)&&r!==l.chartWidth||f(n)&&n!==l.chartHeight?l.setSize(r,n,i):y(e,!0)&&l.redraw(i),b(l,"afterUpdate",{options:t,redraw:e,animation:i})},setSubtitle:function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},setCaption:function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)}}),t.prototype.collectionsWithInit={xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},g(e.prototype,{update:function(t,e,i,c){function n(){o.applyOptions(t),null===o.y&&r&&(o.graphic=r.destroy()),d(t,!0)&&(r&&r.element&&t&&t.marker&&void 0!==t.marker.symbol&&(o.graphic=r.destroy()),t&&t.dataLabels&&o.dataLabel&&(o.dataLabel=o.dataLabel.destroy()),o.connector&&(o.connector=o.connector.destroy())),s=o.index,a.updateParallelArrays(o,s),h.data[s]=d(h.data[s],!0)||d(t,!0)?o.options:y(t,h.data[s]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===h.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(i)}var s,o=this,a=o.series,r=o.graphic,l=a.chart,h=a.options;e=y(e,!0),!1===c?n():o.firePointEvent("update",{options:t},n)},remove:function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}}),g(i.prototype,{addPoint:function(t,e,c,d,u){var i,n=this.options,s=this.data,p=this.chart,o=(o=this.xAxis)&&o.hasNames&&o.names,f=n.data,a=this.xData,r=(e=y(e,!0),{series:this}),l=(this.pointClass.prototype.applyOptions.apply(r,[t]),r.x),h=a.length;if(this.requireSorting&&l<a[h-1])for(i=!0;h&&a[h-1]>l;)h--;this.updateParallelArrays(r,"splice",h,0,0),this.updateParallelArrays(r,h),o&&r.name&&(o[l]=r.name),f.splice(h,0,t),i&&(this.data.splice(h,0,null),this.processData()),"point"===n.legendType&&this.generatePoints(),c&&(s[0]&&s[0].remove?s[0].remove(!1):(s.shift(),this.updateParallelArrays(r,"shift"),f.shift())),!1!==u&&b(this,"addPoint",{point:r}),this.isDirtyData=this.isDirty=!0,e&&p.redraw(d)},removePoint:function(t,e,i){function n(){r&&r.length===o.length&&r.splice(t,1),o.splice(t,1),s.options.data.splice(t,1),s.updateParallelArrays(a||{series:s},"splice",t,1),a&&a.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&l.redraw()}var s=this,o=s.data,a=o[t],r=s.points,l=s.chart;h(i,l),e=y(e,!0),a?a.firePointEvent("remove",null,n):n()},remove:function(t,e,i,n){function s(){o.destroy(n),o.remove=null,a.isDirtyLegend=a.isDirtyBox=!0,a.linkSeries(),y(t,!0)&&a.redraw(e)}var o=this,a=o.chart;!1!==i?b(o,"remove",null,s):s()},update:function(e,c){e=m.cleanRecursively(e,this.userOptions),b(this,"update",{options:e});var d,i,n=this,s=n.chart,t=n.userOptions,o=n.initialType||n.type,a=e.type||t.type||s.options.chart.type,r=!(this.hasDerivedData||e.dataGrouping||a&&a!==this.type||void 0!==e.pointStart||e.pointInterval||e.pointIntervalUnit||e.keys),u=x[o].prototype,p=["group","markerGroup","dataLabelsGroup","transformGroup"],l=["eventOptions","navigatorSeries","baseSeries"],f=n.finishedAnimating&&{animation:!1},h={};for(d in r&&(l.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==e.visible&&l.push("area","graph"),n.parallelArrays.forEach(function(t){l.push(t+"Data")}),e.data&&(e.dataSorting&&g(n.options.dataSorting,e.dataSorting),this.setData(e.data,!1))),e=v(t,f,{index:(void 0===t.index?n:t).index,pointStart:y(t.pointStart,n.xData[0])},!r&&{data:n.options.data},e),r&&e.data&&(e.data=n.options.data),(l=p.concat(l)).forEach(function(t){l[t]=n[t],delete n[t]}),n.remove(!1,null,!1,!0),u)n[d]=void 0;x[a||o]?g(n,x[a||o].prototype):m.error(17,!0,s,{missingModuleFor:a||o}),l.forEach(function(t){n[t]=l[t]}),n.init(s,e),r&&this.points&&(!1===(i=n.options).visible?(h.graphic=1,h.dataLabel=1):n._hasPointLabels||(a=i.marker,u=i.dataLabels,a&&(!1===a.enabled||"symbol"in a)&&(h.graphic=1),u&&!1===u.enabled&&(h.dataLabel=1)),this.points.forEach(function(t){t&&t.series&&(t.resolveColor(),Object.keys(h).length&&t.destroyElements(h),!1===i.showInLegend&&t.legendItem&&s.legend.destroyItem(t))},this)),e.zIndex!==t.zIndex&&p.forEach(function(t){n[t]&&n[t].attr({zIndex:e.zIndex})}),n.initialType=o,s.linkSeries(),b(this,"afterUpdate"),y(c,!0)&&s.redraw(r&&void 0)},setName:function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}}),g(T.prototype,{update:function(t,e){var i=this.chart,n=t&&t.events||{};t=v(this.userOptions,t),i.options[this.coll].indexOf&&(i.options[this.coll][i.options[this.coll].indexOf(this.userOptions)]=t),u(i.options[this.coll].events,function(t,e){void 0===n[e]&&(n[e]=void 0)}),this.destroy(!0),this.init(i,g(t,{events:n})),i.isDirtyBox=!0,y(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,n=this.series,s=n.length;s--;)n[s]&&n[s].remove(!1);o(e.axes,this),o(e[i],this),r(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],e[i].forEach(function(t,e){t.options.index=t.userOptions.index=e}),this.destroy(),e.isDirtyBox=!0,y(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})}),t(e,"parts/AreaSeries.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var s=e.objectEach,y=e.pick,l=t.color,b=t.Series;(e=t.seriesType)("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(t){var l,e=[],h=[],f=this.xAxis,i=this.yAxis,c=i.stacks[this.stackKey],d={},u=this.index,n=i.series,p=n.length,m=y(i.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(l=0;l<t.length;l++)t[l].leftNull=t[l].rightNull=void 0,d[t[l].x]=t[l];s(c,function(t,e){null!==t.total&&h.push(e)}),h.sort(function(t,e){return t-e});var g=n.map(function(t){return t.visible});h.forEach(function(s,o){var a,r,t=0;if(d[s]&&!d[s].isNull)e.push(d[s]),[-1,1].forEach(function(t){var e=1===t?"rightNull":"leftNull",i=0,n=c[h[o+t]];if(n)for(l=u;0<=l&&l<p;)(a=n.points[l])||(l===u?d[s][e]=!0:g[l]&&(r=c[s].points[l])&&(i-=r[1]-r[0])),l+=m;d[s][1===t?"rightCliff":"leftCliff"]=i});else{for(l=u;0<=l&&l<p;){if(a=c[s].points[l]){t=a[1];break}l+=m}t=i.translate(t,0,1,0,1),e.push({isNull:!0,plotX:f.translate(s,0,0,0,1),x:s,plotY:t,yBottom:t})}})}return e},getGraphPath:function(r){function s(t,e,i){var n,s,o=r[t],a=(t=l&&f[o.x].points[p],o[i+"Null"]||0);i=o[i+"Cliff"]||0,o=!0,i||a?(n=(a?t[0]:t[1])+i,s=t[0]+i,o=!!a):!l&&r[e]&&r[e].isNull&&(n=s=m),void 0!==n&&(d.push({plotX:g,plotY:null===n?u:h.getThreshold(n),isNull:o,isCliff:!0}),c.push({plotX:g,plotY:null===s?u:h.getThreshold(s),doCurve:!1}))}var t,e=b.prototype.getGraphPath,l=(i=this.options).stacking,h=this.yAxis,c=[],d=[],p=this.index,f=h.stacks[this.stackKey],m=i.threshold,u=Math.round(h.getThreshold(i.threshold)),i=y(i.connectNulls,"percent"===l);for(r=r||this.points,l&&(r=this.getStackPoints(r)),t=0;t<r.length;t++){l||(r[t].leftCliff=r[t].rightCliff=r[t].leftNull=r[t].rightNull=void 0);var n=r[t].isNull,g=y(r[t].rectPlotX,r[t].plotX),o=y(r[t].yBottom,u);n&&!i||(i||s(t,t-1,"left"),n&&!l&&i||(d.push(r[t]),c.push({x:t,plotX:g,plotY:o})),i||s(t,t+1,"right"))}return t=e.call(this,d,!0,!0),c.reversed=!0,(n=e.call(this,c,!0,!0)).length&&(n[0]="L"),n=t.concat(n),e=e.call(this,d,!1,i),n.xMap=t.xMap,this.areaPath=n,e},drawGraph:function(){this.areaPath=[],b.prototype.drawGraph.apply(this);var o=this,a=this.areaPath,r=this.options,i=[["area","highcharts-area",this.color,r.fillColor]];this.zones.forEach(function(t,e){i.push(["zone-area-"+e,"highcharts-area highcharts-zone-area-"+e+" "+t.className,t.color||o.color,t.fillColor||r.fillColor])}),i.forEach(function(t){var e=t[0],i=o[e],n=i?"animate":"attr",s={};i?(i.endX=o.preventGraphAnimation?null:a.xMap,i.animate({d:a})):(s.zIndex=0,(i=o[e]=o.chart.renderer.path(a).addClass(t[1]).add(o.group)).isArea=!0),o.chart.styledMode||(s.fill=y(t[3],l(t[2]).setOpacity(y(r.fillOpacity,.75)).get())),i[n](s),i.startX=a.xMap,i.shiftUnit=r.step?2:1})},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle})}),t(e,"parts/SplineSeries.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var d=e.pick;(t=t.seriesType)("spline","line",{},{getPointSpline:function(t,e,i){var n,c,s,o,a,r=e.plotX,l=e.plotY,h=t[i-1];return i=t[i+1],!h||h.isNull||!1===h.doCurve||e.isCliff||!i||i.isNull||!1===i.doCurve||e.isCliff||(t=h.plotY,o=i.plotX,n=0,s=(1.5*l+t)/2.5,a=(1.5*l+(i=i.plotY))/2.5,a+=n=(o=(1.5*r+o)/2.5)!==(c=(1.5*r+h.plotX)/2.5)?(a-s)*(o-r)/(o-c)+l-a:n,t<(s+=n)&&l<s?a=2*l-(s=Math.max(t,l)):s<t&&s<l&&(a=2*l-(s=Math.min(t,l))),i<a&&l<a?s=2*l-(a=Math.max(i,l)):a<i&&a<l&&(s=2*l-(a=Math.min(i,l))),e.rightContX=o,e.rightContY=a),e=["C",d(h.rightContX,h.plotX),d(h.rightContY,h.plotY),d(c,r),d(s,l),r,l],h.rightContX=h.rightContY=null,e}})}),t(e,"parts/AreaSplineSeries.js",[e["parts/Globals.js"]],function(t){var e=t.seriesTypes.area.prototype;(0,t.seriesType)("areaspline","spline",t.defaultPlotOptions.area,{getStackPoints:e.getStackPoints,getGraphPath:e.getGraphPath,drawGraph:e.drawGraph,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle})}),t(e,"parts/ColumnSeries.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var l=e.animObject,x=e.clamp,w=e.defined,h=e.extend,c=e.isNumber,C=e.pick,u=t.color,d=t.merge,n=t.Series,p=(e=t.seriesType,t.svg);e("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){n.prototype.init.apply(this,arguments);var e=this,t=e.chart;t.hasRendered&&t.series.forEach(function(t){t.type===e.type&&(t.isDirty=!0)})},getColumnMetrics:function(){var s,o=this,t=o.options,e=o.xAxis,a=o.yAxis,i=e.options.reversedStacks,i=e.reversed&&!i||!e.reversed&&i,r={},l=0,n=(!1===t.grouping?l=1:o.chart.series.forEach(function(t){var e,i=t.yAxis,n=t.options;t.type!==o.type||!t.visible&&o.chart.options.chart.ignoreHiddenSeries||a.len!==i.len||a.pos!==i.pos||(n.stacking?(s=t.stackKey,void 0===r[s]&&(r[s]=l++),e=r[s]):!1!==n.grouping&&(e=l++),t.columnIndex=e)}),Math.min(Math.abs(e.transA)*(e.ordinalSlope||t.pointRange||e.closestPointRange||e.tickInterval||1),e.len)),c=n*t.groupPadding,h=(n-2*c)/(l||1),t=Math.min(t.maxPointWidth||e.len,C(t.pointWidth,h*(1-2*t.pointPadding)));return o.columnMetrics={width:t,offset:(h-t)/2+(c+((o.columnIndex||0)+(i?1:0))*h-n/2)*(i?-1:1)},o.columnMetrics},crispCol:function(t,e,i,n){var s=this.chart,o=-((a=this.borderWidth)%2?.5:0),a=a%2?.5:1;return s.inverted&&s.renderer.isVML&&(a+=1),this.options.crisp&&(i=Math.round(t+i)+o,i-=t=Math.round(t)+o),n=Math.round(e+n)+a,o=Math.abs(e)<=.5&&.5<n,n-=e=Math.round(e)+a,o&&n&&(--e,n+=1),{x:t,y:e,width:i,height:n}},translate:function(){var h=this,c=h.chart,t=h.options,e=h.dense=h.closestPointRange*h.xAxis.transA<2,e=h.borderWidth=C(t.borderWidth,e?0:1),d=h.yAxis,u=t.threshold,p=h.translatedThreshold=d.getThreshold(u),f=C(t.minPointLength,5),i=h.getColumnMetrics(),m=i.width,g=h.barW=Math.max(m,1+2*e),y=h.pointXOffset=i.offset,b=h.dataMin,v=h.dataMax;c.inverted&&(p-=.5),t.pointPadding&&(g=Math.ceil(g)),n.prototype.translate.apply(h),h.points.forEach(function(t){var e,i=C(t.yBottom,p),n=999+Math.abs(i),s=m,n=x(t.plotY,-n,d.len+n),o=t.plotX+y,a=g,r=Math.min(n,i),l=Math.max(n,i)-r;f&&Math.abs(l)<f&&(l=f,e=!d.reversed&&!t.negative||d.reversed&&t.negative,t.y===u&&h.dataMax<=u&&d.min<u&&b!==v&&(e=!e),r=Math.abs(r-p)>f?i-f:p-(e?f:0)),w(t.options.pointWidth)&&(s=a=Math.ceil(t.options.pointWidth),o-=Math.round((s-m)/2)),t.barX=o,t.pointWidth=s,t.tooltipPos=c.inverted?[d.len+d.pos-c.plotLeft-n,h.xAxis.len-o-a/2,l]:[o+a/2,n+d.pos-c.plotTop,l],t.shapeType=h.pointClass.prototype.shapeType||"rect",t.shapeArgs=h.crispCol.apply(h,t.isNull?[o,p,a,0]:[o,r,a,l])})},getSymbol:t.noop,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i,n=this.options,s=(h=this.pointAttrToOptions||{}).stroke||"borderColor",o=h["stroke-width"]||"borderWidth",a=t&&t.color||this.color,r=t&&t[s]||n[s]||this.color||a,l=t&&t[o]||n[o]||this[o]||0,h=t&&t.options.dashStyle||n.dashStyle,c=C(t&&t.opacity,n.opacity,1);return t&&this.zones.length&&(i=t.getZone(),a=t.options.color||i&&(i.color||t.nonZonedColor)||this.color,i&&(r=i.borderColor||r,h=i.dashStyle||h,l=i.borderWidth||l)),e&&t&&(e=(t=d(n.states[e],t.options.states&&t.options.states[e]||{})).brightness,a=t.color||void 0!==e&&u(a).brighten(t.brightness).get()||a,r=t[s]||r,l=t[o]||l,h=t.dashStyle||h,c=C(t.opacity,c)),s={fill:a,stroke:r,"stroke-width":l,opacity:c},h&&(s.dashstyle=h),s},drawPoints:function(){var s,o=this,a=this.chart,r=o.options,l=a.renderer,h=r.animationLimit||250;o.points.forEach(function(t){var e=t.graphic,i=!!e,n=e&&a.pointCount<h?"animate":"attr";c(t.plotY)&&null!==t.y?(s=t.shapeArgs,e&&t.hasNewShapeType()&&(e=e.destroy()),o.enabledDataSorting&&(t.startXPos=o.xAxis.reversed?-(s?s.width:0):o.xAxis.width),e||(t.graphic=e=l[t.shapeType](s).add(t.group||o.group))&&o.enabledDataSorting&&a.hasRendered&&a.pointCount<h&&(e.attr({x:t.startXPos}),i=!0,n="animate"),e&&i&&e[n](d(s)),r.borderRadius&&e[n]({r:r.borderRadius}),a.styledMode||e[n](o.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&r.shadow,null,r.stacking&&!r.borderRadius),e.addClass(t.getClassName(),!0)):e&&(t.graphic=e.destroy())})},animate:function(t){var i,n=this,s=this.yAxis,e=n.options,o=this.chart.inverted,a={},r=o?"translateX":"translateY";p&&(t?(a.scaleY=.001,t=x(s.toPixels(e.threshold),s.pos,s.pos+s.len),o?a.translateX=t-s.len:a.translateY=t,n.clipBox&&n.setClip(),n.group.attr(a)):(i=n.group.attr(r),n.group.animate({scaleY:1},h(l(n.options.animation),{step:function(t,e){a[r]=i+e.pos*(s.pos-i),n.group.attr(a)}})),n.animate=null))},remove:function(){var e=this,t=e.chart;t.hasRendered&&t.series.forEach(function(t){t.type===e.type&&(t.isDirty=!0)}),n.prototype.remove.apply(e,arguments)}})}),t(e,"parts/BarSeries.js",[e["parts/Globals.js"]],function(t){(t=t.seriesType)("bar","column",null,{inverted:!0})}),t(e,"parts/ScatterSeries.js",[e["parts/Globals.js"]],function(t){var e=t.Series;(0,t.seriesType)("scatter","line",{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y: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/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&e.prototype.drawGraph.call(this)},applyJitter:function(){var l=this,h=this.options.jitter,c=this.points.length;h&&this.points.forEach(function(a,r){["x","y"].forEach(function(t,e){var i,n,s,o="plot"+t.toUpperCase();h[t]&&!a.isNull&&(s=l[t+"Axis"],i=h[t]*s.transA,s&&!s.isLog&&(n=Math.max(0,a[o]-i),s=Math.min(s.len,a[o]+i),e=1e4*Math.sin(r+e*c),a[o]=n+(s-n)*(e-Math.floor(e)),"x"===t&&(a.clientX=a.plotX)))})})}}),t.addEvent(e,"afterTranslate",function(){this.applyJitter&&this.applyJitter()})}),t(e,"mixins/centered-series.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var i=e.isNumber,l=e.pick,h=e.relativeLength,n=t.deg2rad;t.CenteredSeriesMixin={getCenter:function(){for(var t=this.options,e=this.chart,i=2*(t.slicedOffset||0),n=e.plotWidth-2*i,e=e.plotHeight-2*i,s=t.center,s=[l(s[0],"50%"),l(s[1],"50%"),t.size||"100%",t.innerSize||0],o=Math.min(n,e),a=0;a<4;++a){var r=s[a],t=a<2||2===a&&/%$/.test(r);s[a]=h(r,[n,e,o,s[2]][a])+(t?i:0)}return s[3]>s[2]&&(s[3]=s[2]),s},getStartAndEndRadians:function(t,e){return t=i(t)?t:0,e=i(e)&&t<e&&e-t<360?e:t+360,{start:n*(t+-90),end:n*(e+-90)}}}}),t(e,"parts/PieSeries.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var o=e.clamp,s=e.defined,i=e.isNumber,g=e.pick,y=e.relativeLength,r=e.setAnimation,n=t.addEvent,b=(e=t.CenteredSeriesMixin).getStartAndEndRadians,d=t.merge,a=t.noop,l=t.Point,h=t.Series,c=t.seriesType,v=t.fireEvent;c("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var n=this,e=n.points,s=n.startAngleRad;t||(e.forEach(function(t){var e=t.graphic,i=t.shapeArgs;e&&i&&(e.attr({r:g(t.startR,n.center&&n.center[3]/2),start:s,end:s}),e.animate({r:i.r,start:i.start,end:i.end},n.options.animation))}),n.animate=null)},hasData:function(){return!!this.processedXData.length},updateTotals:function(){for(var t=0,e=this.points,i=e.length,n=this.options.ignoreHiddenPoint,s=0;s<i;s++){var o=e[s];t+=n&&!o.visible||o.isNull?0:o.y}for(this.total=t,s=0;s<i;s++)(o=e[s]).percentage=0<t&&(o.visible||!n)?o.y/t*100:0,o.total=t},generatePoints:function(){h.prototype.generatePoints.call(this),this.updateTotals()},getX:function(t,e,i){var n=this.center,s=this.radii?this.radii[i.index]:n[2]/2;return t=Math.asin(o((t-n[1])/(s+i.labelDistance),-1,1)),n[0]+(e?-1:1)*Math.cos(t)*(s+i.labelDistance)+(0<i.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},translate:function(t){this.generatePoints();var e,i=0,c=(s=this.options).slicedOffset,d=c+(s.borderWidth||0),n=b(s.startAngle,s.endAngle),u=this.startAngleRad=n.start,n=(this.endAngleRad=n.end)-u,p=this.points,f=s.dataLabels.distance,s=s.ignoreHiddenPoint,m=p.length;for(t||(this.center=t=this.getCenter()),e=0;e<m;e++){var o=p[e],a=u+i*n,r=(s&&!o.visible||(i+=o.percentage/100),u+i*n),l=(o.shapeType="arc",o.shapeArgs={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*a)/1e3,end:Math.round(1e3*r)/1e3},o.labelDistance=g(o.options.dataLabels&&o.options.dataLabels.distance,f),o.labelDistance=y(o.labelDistance,o.shapeArgs.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,o.labelDistance),(r=(r+a)/2)>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),o.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)},Math.cos(r)*t[2]/2),h=Math.sin(r)*t[2]/2;o.tooltipPos=[t[0]+.7*l,t[1]+.7*h],o.half=r<-Math.PI/2||r>Math.PI/2?1:0,o.angle=r,a=Math.min(d,o.labelDistance/5),o.labelPosition={natural:{x:t[0]+l+Math.cos(r)*o.labelDistance,y:t[1]+h+Math.sin(r)*o.labelDistance},final:{},alignment:o.labelDistance<0?"center":o.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+l+Math.cos(r)*a,y:t[1]+h+Math.sin(r)*a},touchingSliceAt:{x:t[0]+l,y:t[1]+h}}}}v(this,"afterTranslate")},drawEmpty:function(){var t,e,i=this.options;0===this.total?(t=this.center[0],e=this.center[1],this.graph||(this.graph=this.chart.renderer.circle(t,e,0).addClass("highcharts-graph").add(this.group)),this.graph.animate({"stroke-width":i.borderWidth,cx:t,cy:e,r:this.center[2]/2,fill:i.fillColor||"none",stroke:i.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())},redrawPoints:function(){var n,s,o,a,r=this,l=r.chart,h=l.renderer,c=r.options.shadow;this.drawEmpty(),!c||r.shadowGroup||l.styledMode||(r.shadowGroup=h.g("shadow").attr({zIndex:-1}).add(r.group)),r.points.forEach(function(t){var e,i={};s=t.graphic,!t.isNull&&s?(a=t.shapeArgs,n=t.getTranslate(),l.styledMode||(e=t.shadowGroup,(e=c&&!e?t.shadowGroup=h.g("shadow").add(r.shadowGroup):e)&&e.attr(n),o=r.pointAttribs(t,t.selected&&"select")),t.delayedRendering?(s.setRadialReference(r.center).attr(a).attr(n),l.styledMode||s.attr(o).attr({"stroke-linejoin":"round"}).shadow(c,e),t.delayedRendering=!1):(s.setRadialReference(r.center),l.styledMode||d(!0,i,o),d(!0,i,a,n),s.animate(i)),s.attr({visibility:t.visible?"inherit":"hidden"}),s.addClass(t.getClassName())):s&&(t.graphic=s.destroy())})},drawPoints:function(){var e=this.chart.renderer;this.points.forEach(function(t){t.graphic||(t.graphic=e[t.shapeType](t.shapeArgs).add(t.series.group),t.delayedRendering=!0)})},searchPoint:a,sortByAngle:function(t,i){t.sort(function(t,e){return void 0!==t.angle&&(e.angle-t.angle)*i})},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,getCenter:e.getCenter,getSymbol:a,drawGraph:null},{init:function(){l.prototype.init.apply(this,arguments);function t(t){e.slice("select"===t.type)}var e=this;e.name=g(e.name,"Slice");return n(e,"select",t),n(e,"unselect",t),e},isValid:function(){return i(this.y)&&0<=this.y},setVisible:function(e,t){var i=this,n=i.series,s=n.chart,o=n.options.ignoreHiddenPoint;t=g(t,o),e!==i.visible&&(i.visible=i.options.visible=e=void 0===e?!i.visible:e,n.options.data[n.data.indexOf(i)]=i.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(t){i[t]&&i[t][e?"show":"hide"](!0)}),i.legendItem&&s.legend.colorizeItem(i,e),e||"hover"!==i.state||i.setState(""),o&&(n.isDirty=!0),t&&s.redraw())},slice:function(t,e,i){var n=this.series;r(i,n.chart),g(e,!0),this.sliced=this.options.sliced=s(t)?t:!this.sliced,n.options.data[n.data.indexOf(this)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},connectorShapes:{fixedOffset:function(t,e,i){var n=e.breakAt;return e=e.touchingSliceAt,["M",t.x,t.y].concat(i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*n.x-e.x,2*n.y-e.y,n.x,n.y]:["L",n.x,n.y]).concat(["L",e.x,e.y])},straight:function(t,e){return e=e.touchingSliceAt,["M",t.x,t.y,"L",e.x,e.y]},crookedLine:function(t,e,i){e=e.touchingSliceAt;var n=(a=this.series).center[0],s=a.chart.plotWidth,o=a.chart.plotLeft,a=t.alignment,r=this.shapeArgs.r;return i=y(i.crookDistance,1),n=["L",i="left"===a?n+r+(s+o-n-r)*(1-i):o+(n-r)*i,t.y],("left"===a?i>t.x||i<e.x:i<t.x||i>e.x)&&(n=[]),["M",t.x,t.y].concat(n).concat(["L",e.x,e.y])}},getConnectorPath:function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=e.connectorShape,n=this.connectorShapes;return(i=n[i]?n[i]:i).call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)}})}),t(e,"parts/DataLabels.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(A,t){var l=t.animObject,a=t.arrayMax,c=t.clamp,M=t.defined,v=t.extend,r=t.isArray,y=t.objectEach,I=t.pick,h=t.relativeLength,b=t.splat,x=A.format,E=A.merge,L=(t=A.noop,A.Series),e=A.seriesTypes,d=A.stableSort;A.distribute=function(t,i,n){function e(t,e){return t.target-e.target}for(var s=!0,o=t,a=[],r=0,l=o.reducedLen||i,h=t.length;h--;)r+=t[h].size;if(l<r){for(d(t,function(t,e){return(e.rank||0)-(t.rank||0)}),r=h=0;r<=l;)r+=t[h].size,h++;a=t.splice(h-1,t.length)}for(d(t,e),t=t.map(function(t){return{size:t.size,targets:[t.target],align:I(t.align,.5)}});s;){for(h=t.length;h--;)s=t[h],r=(Math.min.apply(0,s.targets)+Math.max.apply(0,s.targets))/2,s.pos=c(r-s.size*s.align,0,i-s.size);for(h=t.length,s=!1;h--;)0<h&&t[h-1].pos+t[h-1].size>t[h].pos&&(t[h-1].size+=t[h].size,t[h-1].targets=t[h-1].targets.concat(t[h].targets),t[h-1].align=.5,t[h-1].pos+t[h-1].size>i&&(t[h-1].pos=i-t[h-1].size),t.splice(h,1),s=!0)}o.push.apply(o,a),h=0,t.some(function(t){var e=0;if(t.targets.some(function(){if(o[h].pos=t.pos+e,Math.abs(o[h].pos-o[h].target)>n)return o.slice(0,h+1).forEach(function(t){delete t.pos}),o.reducedLen=(o.reducedLen||i)-.1*i,o.reducedLen>.1*i&&A.distribute(o,i,n),!0;e+=o[h].size,h++}))return!0}),d(o,e)},L.prototype.drawDataLabels=function(){function t(e,i){var t,n=[];if(r(e)&&!r(i))n=e.map(function(t){return E(t,i)});else if(r(i)&&!r(e))n=i.map(function(t){return E(e,t)});else if(r(e)||r(i))for(t=Math.max(e.length,i.length);t--;)n[t]=E(e[t],i[t]);else n=E(e,i);return n}var u,p=this,f=p.chart,m=p.options,e=m.dataLabels,o=p.points,i=p.hasRendered||0,n=l(m.animation).duration,s=Math.min(n,200),a=!f.renderer.forExport&&I(e.defer,0<s),g=f.renderer,e=t(t(f.options.plotOptions&&f.options.plotOptions.series&&f.options.plotOptions.series.dataLabels,f.options.plotOptions&&f.options.plotOptions[p.type]&&f.options.plotOptions[p.type].dataLabels),e);A.fireEvent(this,"drawDataLabels"),(r(e)||e.enabled||p._hasPointLabels)&&(u=p.plotGroup("dataLabelsGroup","data-labels",a&&!i?"hidden":"inherit",e.zIndex||6),a&&(u.attr({opacity:+i}),i||setTimeout(function(){var t=p.dataLabelsGroup;t&&(p.visible&&u.show(!0),t[m.animation?"animate":"attr"]({opacity:1},{duration:s}))},n-s)),o.forEach(function(d){b(t(e,d.dlOptions||d.options&&d.options.dataLabels)).forEach(function(t,e){var i,n,s,o,a=t.enabled&&(!d.isNull||d.dataLabelOnNull)&&(r=d,!(l=(a=t).filter)||(a=l.operator,r=r[l.property],l=l.value,">"===a&&l<r||"<"===a&&r<l||">="===a&&l<=r||"<="===a&&r<=l||"=="===a&&r==l||"==="===a&&r===l)),r=d.dataLabels?d.dataLabels[e]:d.dataLabel,l=d.connectors?d.connectors[e]:d.connector,h=I(t.distance,d.labelDistance),c=!r;a&&(i=d.getLabelConfig(),n=I(t[d.formatPrefix+"Format"],t.format),i=M(n)?x(n,i,f):(t[d.formatPrefix+"Formatter"]||t.formatter).call(i,t),n=t.style,s=t.rotation,f.styledMode||(n.color=I(t.color,n.color,p.color,"#000000"),"contrast"===n.color?(d.contrastColor=g.getContrast(d.color||p.color),n.color=!M(h)&&t.inside||h<0||m.stacking?d.contrastColor:"#000000"):delete d.contrastColor,m.cursor&&(n.cursor=m.cursor)),o={r:t.borderRadius||0,rotation:s,padding:t.padding,zIndex:1},f.styledMode||(o.fill=t.backgroundColor,o.stroke=t.borderColor,o["stroke-width"]=t.borderWidth),y(o,function(t,e){void 0===t&&delete o[e]})),!r||a&&M(i)?a&&M(i)&&(r?o.text=i:(d.dataLabels=d.dataLabels||[],r=d.dataLabels[e]=s?g.text(i,0,-9999).addClass("highcharts-data-label"):g.label(i,0,-9999,t.shape,null,null,t.useHTML,null,"data-label"),e||(d.dataLabel=r),r.addClass(" highcharts-data-label-color-"+d.colorIndex+" "+(t.className||"")+(t.useHTML?" highcharts-tracker":""))),r.options=t,r.attr(o),f.styledMode||r.css(n).shadow(t.shadow),r.added||r.add(u),t.textPath&&!t.useHTML&&(r.setTextPath(d.getDataLabelPath&&d.getDataLabelPath(r)||d.graphic,t.textPath),d.dataLabelPath&&!t.textPath.enabled&&(d.dataLabelPath=d.dataLabelPath.destroy())),p.alignDataLabel(d,r,t,null,c)):(d.dataLabel=d.dataLabel&&d.dataLabel.destroy(),d.dataLabels&&(1===d.dataLabels.length?delete d.dataLabels:delete d.dataLabels[e]),e||delete d.dataLabel,l&&(d.connector=d.connector.destroy(),d.connectors&&(1===d.connectors.length?delete d.connectors:delete d.connectors[e])))})})),A.fireEvent(this,"afterDrawDataLabels")},L.prototype.alignDataLabel=function(e,i,t,n,s){var c,d=this,o=this.chart,a=this.isCartesian&&o.inverted,u=this.enabledDataSorting,r=I(e.dlBox&&e.dlBox.centerX,e.plotX,-9999),p=I(e.plotY,-9999),l=i.getBBox(),f=t.rotation,m=t.align,g=o.isInsidePlot(r,Math.round(p),a),y="justify"===I(t.overflow,u?"none":"justify"),b=this.visible&&(e.series.forceDL||u&&!y||g||n&&o.isInsidePlot(r,a?n.x+1:n.y+n.height-1,a)),h=function(t){u&&d.xAxis&&!y&&d.setDataLabelStartPos(e,i,s,g,t)};b&&(c=o.renderer.fontMetrics(o.styledMode?void 0:t.style.fontSize,i).b,n=v({x:a?this.yAxis.len-p:r,y:Math.round(a?this.xAxis.len-r:p),width:0,height:0},n),v(t,{width:l.width,height:l.height}),f?(y=!1,r=o.renderer.rotCorr(c,f),h(r={x:n.x+t.x+n.width/2+r.x,y:n.y+t.y+{top:0,middle:.5,bottom:1}[t.verticalAlign]*n.height}),i[s?"attr":"animate"](r).attr({align:m}),h=180<(h=(f+720)%360)&&h<360,"left"===m?r.y-=h?l.height:0:"center"===m?(r.x-=l.width/2,r.y-=l.height/2):"right"===m&&(r.x-=l.width,r.y-=h?0:l.height),i.placed=!0,i.alignAttr=r):(h(n),i.align(t,null,n),r=i.alignAttr),y&&0<=n.height?this.justifyDataLabel(i,t,r,l,n,s):I(t.crop,!0)&&(b=o.isInsidePlot(r.x,r.y)&&o.isInsidePlot(r.x+l.width,r.y+l.height)),t.shape&&!f&&i[s?"attr":"animate"]({anchorX:a?o.plotWidth-e.plotY:e.plotX,anchorY:a?o.plotHeight-e.plotX:e.plotY})),s&&u&&(i.placed=!1),b||u&&!y||(i.hide(!0),i.placed=!1)},L.prototype.setDataLabelStartPos=function(t,e,i,n,s){var o=this.chart,a=o.inverted,r=this.xAxis,l=r.reversed,h=a?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,r=a?s.x:l?-h-t:r.width-h+t,s=a?l?this.yAxis.height-h+t:-h-t:s.y,e.startXPos=r,e.startYPos=s,n?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),o.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)},L.prototype.justifyDataLabel=function(t,e,i,n,c,d){var s,o=this.chart,a=e.align,r=e.verticalAlign,l=!t.box&&t.padding||0,h=i.x+l;return h<0&&("right"===a?(e.align="left",e.inside=!0):e.x=-h,s=!0),(h=i.x+n.width-l)>o.plotWidth&&("left"===a?(e.align="right",e.inside=!0):e.x=o.plotWidth-h,s=!0),(h=i.y+l)<0&&("bottom"===r?(e.verticalAlign="top",e.inside=!0):e.y=-h,s=!0),(h=i.y+n.height-l)>o.plotHeight&&("top"===r?(e.verticalAlign="bottom",e.inside=!0):e.y=o.plotHeight-h,s=!0),s&&(t.placed=!d,t.align(e,null,c)),s},e.pie&&(e.pie.prototype.dataLabelPositioners={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,n){return t.getX(i<e.top+2||i>e.bottom-2?n:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,n){return t=t.getBBox().width,e?t+n:i-t-n},alignToConnectors:function(t,e,i,n){var s,o=0;return t.forEach(function(t){s=t.dataLabel.getBBox().width,o<s&&(o=s)}),e?o+n:i-o-n}},e.pie.prototype.drawDataLabels=function(){var r,n,i,l,h,g,c,d,y,b,s,u=this,t=u.data,p=u.chart,f=u.options.dataLabels,v=f.connectorPadding,x=p.plotWidth,w=p.plotHeight,C=p.plotLeft,e=Math.round(p.chartWidth/3),S=u.center,T=S[2]/2,k=S[1],o=[[],[]],m=[0,0,0,0],j=u.dataLabelPositioners;u.visible&&(f.enabled||u._hasPointLabels)&&(t.forEach(function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),L.prototype.drawDataLabels.apply(u),t.forEach(function(t){t.dataLabel&&(t.visible?(o[t.half].push(t),t.dataLabel._pos=null,!M(f.style.width)&&!M(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>e&&(t.dataLabel.css({width:.7*e}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))}),o.forEach(function(t,e){var i,n,s,o=t.length,a=[];if(o)for(u.sortByAngle(t,e-.5),0<u.maxLabelDistance&&(n=Math.max(0,k-T-u.maxLabelDistance),s=Math.min(k+T+u.maxLabelDistance,p.plotHeight),t.forEach(function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,k-T-t.labelDistance),t.bottom=Math.min(k+T+t.labelDistance,p.plotHeight),i=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+i/2,size:i,rank:t.y},a.push(t.distributeBox))}),n=s+i-n,A.distribute(a,n,n/5)),b=0;b<o;b++){if(r=t[b],h=r.labelPosition,l=r.dataLabel,y=!1===r.visible?"hidden":"inherit",d=n=h.natural.y,a&&M(r.distributeBox)&&(void 0===r.distributeBox.pos?y="hidden":(g=r.distributeBox.size,d=j.radialDistributionY(r))),delete r.positionIndex,f.justify)c=j.justify(r,T,S);else switch(f.alignTo){case"connectors":c=j.alignToConnectors(t,e,x,C);break;case"plotEdges":c=j.alignToPlotEdges(l,e,x,C);break;default:c=j.radialDistributionX(u,r,d,n)}l._attr={visibility:y,align:h.alignment},l._pos={x:c+f.x+({left:v,right:-v}[h.alignment]||0),y:d+f.y-10},h.final.x=c,h.final.y=d,I(f.crop,!0)&&(h=l.getBBox().width,n=null,c-h<v&&1===e?(n=Math.round(h-c+v),m[3]=Math.max(n,m[3])):x-v<c+h&&0===e&&(n=Math.round(c+h-x+v),m[1]=Math.max(n,m[1])),d-g/2<0?m[0]=Math.max(Math.round(g/2-d),m[0]):w<d+g/2&&(m[2]=Math.max(Math.round(d+g/2-w),m[2])),l.sideOverflow=n)}}),0===a(m)||this.verifyDataLabelOverflow(m))&&(this.placeDataLabels(),this.points.forEach(function(t){var e;s=E(f,t.options.dataLabels),(n=I(s.connectorWidth,1))&&(i=t.connector,(l=t.dataLabel)&&l._pos&&t.visible&&0<t.labelDistance?(y=l._attr.visibility,(e=!i)&&(t.connector=i=p.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(u.dataLabelsGroup),p.styledMode||i.attr({"stroke-width":n,stroke:s.connectorColor||t.color||"#666666"})),i[e?"attr":"animate"]({d:t.getConnectorPath()}),i.attr("visibility",y)):i&&(t.connector=i.destroy()))}))},e.pie.prototype.placeDataLabels=function(){this.points.forEach(function(t){var e,i=t.dataLabel;i&&t.visible&&((e=i._pos)?(i.sideOverflow&&(i._attr.width=Math.max(i.getBBox().width-i.sideOverflow,0),i.css({width:i._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),i.shortened=!0),i.attr(i._attr),i[i.moved?"animate":"attr"](e),i.moved=!0):i&&i.attr({y:-9999})),delete t.distributeBox},this)},e.pie.prototype.alignDataLabel=t,e.pie.prototype.verifyDataLabelOverflow=function(t){var e,i=this.center,n=this.options,s=n.center,o=n.minSize||80,a=null!==n.size;return a||(null!==s[0]?e=Math.max(i[2]-Math.max(t[1],t[3]),o):(e=Math.max(i[2]-t[1]-t[3],o),i[0]+=(t[3]-t[1])/2),null!==s[1]?e=c(e,o,i[2]-Math.max(t[0],t[2])):(e=c(e,o,i[2]-t[0]-t[2]),i[1]+=(t[0]-t[2])/2),e<i[2]?(i[2]=e,i[3]=Math.min(h(n.innerSize||0,e),e),this.translate(i),this.drawDataLabels&&this.drawDataLabels()):a=!0),a}),e.column&&(e.column.prototype.alignDataLabel=function(t,e,i,n,s){var o=this.chart.inverted,a=t.series,r=t.dlBox||t.shapeArgs,l=I(t.below,t.plotY>I(this.translatedThreshold,a.yAxis.len)),h=I(i.inside,!!this.options.stacking);r&&((n=E(r)).y<0&&(n.height+=n.y,n.y=0),0<(r=n.y+n.height-a.yAxis.len)&&(n.height-=r),o&&(n={x:a.yAxis.len-n.y-n.height,y:a.xAxis.len-n.x-n.width,width:n.height,height:n.width}),h||(o?(n.x+=l?0:n.width,n.width=0):(n.y+=l?n.height:0,n.height=0))),i.align=I(i.align,!o||h?"center":l?"right":"left"),i.verticalAlign=I(i.verticalAlign,o||h?"middle":l?"top":"bottom"),L.prototype.alignDataLabel.call(this,t,e,i,n,s),n&&(n.height<=0&&n.y===this.chart.plotHeight||n.width<=0&&0===n.x)&&(e.hide(!0),e.placed=!1),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})})}),t(e,"modules/overlapping-datalabels.src.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){var s=e.isArray,i=e.objectEach,o=e.pick,n=(e=t.Chart,t.addEvent),d=t.fireEvent;n(e,"render",function(){var n=[];(this.labelCollectors||[]).forEach(function(t){n=n.concat(t())}),(this.yAxis||[]).forEach(function(t){t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&i(t.stacks,function(t){i(t,function(t){n.push(t.label)})})}),(this.series||[]).forEach(function(t){var e=t.options.dataLabels;t.visible&&(!1!==e.enabled||t._hasPointLabels)&&t.points.forEach(function(i){i.visible&&(s(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[]).forEach(function(t){var e=t.options;t.labelrank=o(e.labelrank,i.labelrank,i.shapeArgs&&i.shapeArgs.height),e.allowOverlap||n.push(t)})})}),this.hideOverlappingLabels(n)}),e.prototype.hideOverlappingLabels=function(t){for(var e,n=this,i=t.length,c=n.renderer,s=!1,o=function(t){var e,i,n=!t.box&&t.padding||0,s=0;if(t&&(!t.alignAttr||t.placed))return e=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},i=t.parentGroup,t.width||(s=t.getBBox(),t.width=s.width,t.height=s.height,s=c.fontMetrics(null,t.element).h),{x:e.x+(i.translateX||0)+n,y:e.y+(i.translateY||0)+n-s,width:t.width-2*n,height:t.height-2*n}},a=0;a<i;a++)(l=t[a])&&(l.oldOpacity=l.opacity,l.newOpacity=1,l.absoluteBox=o(l));for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),a=0;a<i;a++)for(var r=(o=t[a])&&o.absoluteBox,l=a+1;l<i;++l){var h=(e=t[l])&&e.absoluteBox;!r||!h||o===e||0===o.newOpacity||0===e.newOpacity||h.x>r.x+r.width||h.x+h.width<r.x||h.y>r.y+r.height||h.y+h.height<r.y||((o.labelrank<e.labelrank?o:e).newOpacity=0)}t.forEach(function(t){var e,i;t&&(i=t.newOpacity,t.oldOpacity!==i&&(t.alignAttr&&t.placed?(i?t.show(!0):e=function(){t.hide(!0),t.placed=!1},s=!0,t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,e),d(n,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0)}),s&&d(n,"afterHideAllOverlappingLabels")}}),t(e,"parts/Interaction.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(n,t){var d=t.defined,y=t.extend,a=t.isArray,u=t.isObject,r=t.objectEach,b=t.pick,s=n.addEvent,l=(t=n.Chart,n.createElement),o=n.css,h=n.defaultOptions,x=n.defaultPlotOptions,v=n.fireEvent,p=n.hasTouch,c=n.Legend,f=n.merge,m=n.Point,g=n.Series,e=n.seriesTypes,w=n.svg,i=n.TrackerMixin={drawTrackerPoint:function(){function e(t){var e=s.getPointFromEvent(t);void 0!==e&&(s.isDirectTouch=!0,e.onMouseOver(t))}var t,i=this,n=i.chart,s=n.pointer;i.points.forEach(function(e){t=a(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach(function(t){t.div?t.div.point=e:t.element.point=e})}),i._hasTracking||(i.trackerGroups.forEach(function(t){i[t]&&(i[t].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(t){s.onTrackerMouseOut(t)}),p&&i[t].on("touchstart",e),!n.styledMode&&i.options.cursor&&i[t].css(o).css({cursor:i.options.cursor}))}),i._hasTracking=!0),v(this,"afterDrawTracker")},drawTrackerGraph:function(){function e(){r.hoverSeries!==i&&i.onMouseOver()}var t,i=this,n=i.options,s=n.trackByArea,o=[].concat(s?i.areaPath:i.graphPath),a=o.length,r=i.chart,c=r.pointer,d=r.renderer,l=r.options.tooltip.snap,h=i.tracker,u="rgba(192,192,192,"+(w?1e-4:.002)+")";if(a&&!s)for(t=a+1;t--;)"M"===o[t]&&o.splice(t+1,0,o[t+1]-l,o[t+2],"L"),(t&&"M"===o[t]||t===a)&&o.splice(t,0,"L",o[t-2]+l,o[t-1]);h?h.attr({d:o}):i.graph&&(i.tracker=d.path(o).attr({visibility:i.visible?"visible":"hidden",zIndex:2}).addClass(s?"highcharts-tracker-area":"highcharts-tracker-line").add(i.group),r.styledMode||i.tracker.attr({"stroke-linejoin":"round",stroke:u,fill:s?u:"none","stroke-width":i.graph.strokeWidth()+(s?0:2*l)}),[i.tracker,i.markerGroup].forEach(function(t){t.addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(t){c.onTrackerMouseOut(t)}),n.cursor&&!r.styledMode&&t.css({cursor:n.cursor}),p&&t.on("touchstart",e)})),v(this,"afterDrawTracker")}};e.column&&(e.column.prototype.drawTracker=i.drawTrackerPoint),e.pie&&(e.pie.prototype.drawTracker=i.drawTrackerPoint),e.scatter&&(e.scatter.prototype.drawTracker=i.drawTrackerPoint),y(c.prototype,{setItemEvents:function(i,t,e){var n=this,s=n.chart.renderer.boxWrapper,o=i instanceof m,a="highcharts-legend-"+(o?"point":"series")+"-active",r=n.chart.styledMode;(e?t:i.legendGroup).on("mouseover",function(){i.visible&&n.allItems.forEach(function(t){i!==t&&t.setState("inactive",!o)}),i.setState("hover"),i.visible&&s.addClass(a),r||t.css(n.options.itemHoverStyle)}).on("mouseout",function(){n.chart.styledMode||t.css(f(i.visible?n.itemStyle:n.itemHiddenStyle)),n.allItems.forEach(function(t){i!==t&&t.setState("",!o)}),s.removeClass(a),i.setState()}).on("click",function(t){function e(){i.setVisible&&i.setVisible(),n.allItems.forEach(function(t){i!==t&&t.setState(i.visible?"inactive":"",!o)})}s.removeClass(a),t={browserEvent:t},i.firePointEvent?i.firePointEvent("legendItemClick",t,e):v(i,"legendItemClick",t,e)})},createCheckboxForItem:function(e){e.checkbox=l("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),s(e.checkbox,"click",function(t){v(e.series||e,"checkboxClick",{checked:t.target.checked,item:e},function(){e.select()})})}}),y(t.prototype,{showResetZoom:function(){function t(){e.zoomOut()}var e=this,i=h.lang,n=e.options.chart.resetZoomButton,s=n.theme,o=s.states,a="chart"===n.relativeTo||"spaceBox"===n.relativeTo?null:"plotBox";v(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(i.resetZoom,null,null,t,s,o&&o.hover).attr({align:n.position.align,title:i.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(n.position,!1,a)}),v(this,"afterShowResetZoom")},zoomOut:function(){v(this,"selection",{resetSelection:!0},this.zoom)},zoom:function(t){var a,r=this,l=r.pointer,h=!1,c=r.inverted?l.mouseDownX:l.mouseDownY,e=(!t||t.resetSelection?(r.axes.forEach(function(t){a=t.zoom()}),l.initiated=!1):t.xAxis.concat(t.yAxis).forEach(function(t){var e=t.axis,i=r.inverted?e.left:e.top,n=r.inverted?i+e.width:i+e.height,s=e.isXAxis,o=!1;(!s&&i<=c&&c<=n||s||!d(c))&&(o=!0),l[s?"zoomX":"zoomY"]&&o&&(a=e.zoom(t.min,t.max),e.displayBtn&&(h=!0))}),r.resetZoomButton);h&&!e?r.showResetZoom():!h&&u(e)&&(r.resetZoomButton=e.destroy()),a&&r.redraw(b(r.options.chart.animation,t&&t.animation,r.pointCount<100))},pan:function(d,t){var u,p=this,e=p.hoverPoints,i=p.options.chart,n=(t="object"==typeof t?t:{enabled:t,type:"x"},i&&i.panning&&(i.panning=t),t.type);v(this,"pan",{originalEvent:d},function(){e&&e.forEach(function(t){t.setState()});var t=[1];"xy"===n?t=[1,0]:"y"===n&&(t=[0]),t.forEach(function(t){var e=p[t?"xAxis":"yAxis"][0],i=e.options,n=e.horiz,s=d[n?"chartX":"chartY"],o=p[n=n?"mouseDownX":"mouseDownY"],a=(e.pointRange||0)/2,r=e.reversed&&!p.inverted||!e.reversed&&p.inverted?-1:1,l=e.getExtremes(),h=e.toValue(o-s,!0)+a*r,c=(r=e.toValue(o+e.len-s,!0)-a*r)<h,o=c?r:h,h=c?h:r;r=Math.min(l.dataMin,a?l.min:e.toValue(e.toPixels(l.min)-e.minPixelPadding)),a=Math.max(l.dataMax,a?l.max:e.toValue(e.toPixels(l.max)+e.minPixelPadding)),i.ordinal||(t&&(0<(i=r-o)&&(h+=i,o=r),0<(i=h-a)&&(h=a,o-=i)),(e.series.length&&o!==l.min&&h!==l.max&&t||e.panningState&&o>=e.panningState.startMin&&h<=e.panningState.startMax)&&(e.setExtremes(o,h,!1,!1,{trigger:"pan"}),u=!0),p[n]=s)}),u&&p.redraw(!1),o(p.container,{cursor:"move"})})}}),y(m.prototype,{select:function(t,e){var i=this,n=i.series,s=n.chart;this.selectedStaging=t=b(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,n.options.data[n.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||s.getSelectedPoints().forEach(function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(s.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},onMouseOver:function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},onMouseOut:function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null},importEvents:function(){var i,t;this.hasImportedEvents||(t=f((i=this).series.options.point,i.options).events,i.events=t,r(t,function(t,e){n.isFunction(t)&&s(i,e,t)}),this.hasImportedEvents=!0)},setState:function(t,c){var e,i,d,n=this.series,s=this.state,o=n.options.states[t||"normal"]||{},a=x[n.type].marker&&n.options.marker,u=a&&!1===a.enabled,p=a&&a.states&&a.states[t||"normal"]||{},f=!1===p.enabled,r=n.stateMarkerGraphic,m=this.marker||{},l=n.chart,h=n.halo,g=a&&n.markerAttribs;(t=t||"")===this.state&&!c||this.selected&&"select"!==t||!1===o.enabled||t&&(f||u&&!1===p.enabled)||t&&m.states&&m.states[t]&&!1===m.states[t].enabled||(this.state=t,g&&(e=n.markerAttribs(this,t)),this.graphic?(s&&this.graphic.removeClass("highcharts-point-"+s),t&&this.graphic.addClass("highcharts-point-"+t),l.styledMode||(i=n.pointAttribs(this,t),d=b(l.options.chart.animation,o.animation),n.options.inactiveOtherPoints&&((this.dataLabels||[]).forEach(function(t){t&&t.animate({opacity:i.opacity},d)}),this.connector&&this.connector.animate({opacity:i.opacity},d)),this.graphic.animate(i,d)),e&&this.graphic.animate(e,b(l.options.chart.animation,p.animation,a.animation)),r&&r.hide()):(t&&p&&(s=m.symbol||n.symbol,r&&r.currentSymbol!==s&&(r=r.destroy()),e&&(r?r[c?"animate":"attr"]({x:e.x,y:e.y}):s&&(n.stateMarkerGraphic=r=l.renderer.symbol(s,e.x,e.y,e.width,e.height).add(n.markerGroup),r.currentSymbol=s)),!l.styledMode&&r&&r.attr(n.pointAttribs(this,t))),r&&(r[t&&this.isInside?"show":"hide"](),r.element.point=this)),t=o.halo,o=(r=this.graphic||r)&&r.visibility||"inherit",t&&t.size&&r&&"hidden"!==o&&!this.isCluster?(h||(n.halo=h=l.renderer.path().add(r.parentGroup)),h.show()[c?"animate":"attr"]({d:this.haloPath(t.size)}),h.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,n.colorIndex)+(this.className?" "+this.className:""),visibility:o,zIndex:-1}),h.point=this,l.styledMode||h.attr(y({fill:this.color||n.color,"fill-opacity":t.opacity},t.attributes))):h&&h.point&&h.point.haloPath&&h.animate({d:h.point.haloPath(0)},null,h.hide),v(this,"afterSetState"))},haloPath:function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)}}),y(g.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&v(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&&v(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach(function(t){t.setState("",!0)})},setState:function(e,t){var i=this,n=i.options,s=i.graph,o=n.inactiveOtherPoints,a=n.states,r=n.lineWidth,l=n.opacity,h=b(a[e||"normal"]&&a[e||"normal"].animation,i.chart.options.chart.animation),n=0;if(e=e||"",i.state!==e&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(t){t&&(i.state&&t.removeClass("highcharts-series-"+i.state),e&&t.addClass("highcharts-series-"+e))}),i.state=e,!i.chart.styledMode)){if(a[e]&&!1===a[e].enabled)return;if(e&&(r=a[e].lineWidth||r+(a[e].lineWidthPlus||0),l=b(a[e].opacity,l)),s&&!s.dashstyle)for(s.animate(a={"stroke-width":r},h);i["zone-graph-"+n];)i["zone-graph-"+n].attr(a),n+=1;o||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(t){t&&t.animate({opacity:l},h)})}t&&o&&i.points&&i.setAllPointsToState(e)},setAllPointsToState:function(e){this.points.forEach(function(t){t.setState&&t.setState(e)})},setVisible:function(e,t){var i=this,n=i.chart,s=i.legendItem,o=n.options.chart.ignoreHiddenSeries,a=i.visible,r=(i.visible=e=i.options.visible=i.userOptions.visible=void 0===e?!a:e)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(t){i[t]&&i[t][r]()}),n.hoverSeries!==i&&(n.hoverPoint&&n.hoverPoint.series)!==i||i.onMouseOut(),s&&n.legend.colorizeItem(i,e),i.isDirty=!0,i.options.stacking&&n.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),i.linkedSeries.forEach(function(t){t.setVisible(e,!1)}),o&&(n.isDirtyBox=!0),v(i,r),!1!==t&&n.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),v(this,t?"select":"unselect")},drawTracker:i.drawTrackerGraph})}),t(e,"parts/Responsive.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(o,t){var l=t.isArray,h=t.isObject,c=t.objectEach,n=t.pick,d=t.splat;(t=o.Chart).prototype.setResponsive=function(t,e){var i=this.options.responsive,n=[],s=this.currentResponsive;!e&&i&&i.rules&&i.rules.forEach(function(t){void 0===t._id&&(t._id=o.uniqueKey()),this.matchResponsiveRule(t,n)},this),(e=o.merge.apply(0,n.map(function(e){return o.find(i.rules,function(t){return t._id===e}).chartOptions}))).isResponsiveOptions=!0,(n=n.toString()||void 0)!==(s&&s.ruleIds)&&(s&&this.update(s.undoOptions,t,!0),n?((s=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:n,mergedOptions:e,undoOptions:s},this.update(e,t,!0)):this.currentResponsive=void 0)},t.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=n(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=n(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=n(i.minWidth,0)&&this.chartHeight>=n(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.currentOptions=function(t){var r=this,e={};return function i(t,n,s,o){var a;c(t,function(t,e){if(!o&&-1<r.collectionsWithUpdate.indexOf(e))for(t=d(t),s[e]=[],a=0;a<t.length;a++)n[e][a]&&(s[e][a]={},i(t[a],n[e][a],s[e][a],o+1));else h(t)?(s[e]=l(t)?[]:{},i(t,n[e]||{},s[e],o+1)):s[e]=void 0===n[e]?null:n[e]})}(t,this.options,e,0),e}}),t(e,"masters/highcharts.src.js",[e["parts/Globals.js"],e["parts/Utilities.js"]],function(t,e){return(0,e.extend)(t,{animObject:e.animObject,arrayMax:e.arrayMax,arrayMin:e.arrayMin,attr:e.attr,correctFloat:e.correctFloat,defined:e.defined,destroyObjectProperties:e.destroyObjectProperties,discardElement:e.discardElement,erase:e.erase,extend:e.extend,extendClass:e.extendClass,isArray:e.isArray,isClass:e.isClass,isDOMElement:e.isDOMElement,isNumber:e.isNumber,isObject:e.isObject,isString:e.isString,numberFormat:e.numberFormat,objectEach:e.objectEach,offset:e.offset,pad:e.pad,pick:e.pick,pInt:e.pInt,relativeLength:e.relativeLength,setAnimation:e.setAnimation,splat:e.splat,syncTimeout:e.syncTimeout,wrap:e.wrap}),t}),(e["masters/highcharts.src.js"]._modules=e)["masters/highcharts.src.js"]}),function(e){"object"==typeof module&&module.exports?module.exports=e.default=e:"function"==typeof define&&define.amd?define("highcharts/highcharts-more",["highcharts"],function(t){return e(t),e.Highcharts=t,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){function e(t,e,i,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,i))}e(t=t?t._modules:{},"parts-more/Pane.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(t,e){function i(t,e){this.init(t,e)}var s=e.extend,n=e.splat,o=t.CenteredSeriesMixin,a=t.merge;t.Chart.prototype.collectionsWithUpdate.push("pane"),s(i.prototype,{coll:"pane",init:function(t,e){this.chart=e,this.background=[],e.pane.push(this),this.setOptions(t)},setOptions:function(t){this.options=a(this.defaultOptions,this.chart.angular?{background:{}}:void 0,t)},render:function(){var t=this.options,e=this.options.background,i=this.chart.renderer;if(this.group||(this.group=i.g("pane-group").attr({zIndex:t.zIndex||0}).add()),this.updateCenter(),e)for(e=n(e),t=Math.max(e.length,this.background.length||0),i=0;i<t;i++)e[i]&&this.axis?this.renderBackground(a(this.defaultBackgroundOptions,e[i]),i):this.background[i]&&(this.background[i]=this.background[i].destroy(),this.background.splice(i,1))},renderBackground:function(t,e){var i="animate",n={class:"highcharts-pane "+(t.className||"")};this.chart.styledMode||s(n,{fill:t.backgroundColor,stroke:t.borderColor,"stroke-width":t.borderWidth}),this.background[e]||(this.background[e]=this.chart.renderer.path().add(this.group),i="attr"),this.background[e][i]({d:this.axis.getPlotBandPath(t.from,t.to,t)}).attr(n)},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},updateCenter:function(t){this.center=(t||this.axis||{}).center=o.getCenter.call(this)},update:function(t,e){a(!0,this.options,t),a(!0,this.chart.options.pane,t),this.setOptions(this.options),this.render(),this.chart.axes.forEach(function(t){t.pane===this&&(t.pane=null,t.update({},e))},this)}}),t.Pane=i}),e(t,"parts-more/RadialAxis.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(e,t){var r=t.correctFloat,a=t.defined,c=t.extend,y=t.pick,d=t.pInt,b=t.relativeLength,i=(t=t.wrap,e.addEvent),n=e.Axis,u=e.merge,s=e.noop,o=e.Tick,l=n.prototype,h=o.prototype,p={getOffset:s,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},createLabelCollector:function(){return!1},setScale:s,setCategories:s,setTitle:s},f={defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},defaultCircularOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},defaultRadialOptions:{gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(t){(t=this.options=u(this.defaultOptions,this.defaultPolarOptions,t)).plotBands||(t.plotBands=[]),e.fireEvent(this,"afterSetOptions")},getOffset:function(){l.getOffset.call(this),this.chart.axisOffset[this.side]=0},getLinePath:function(t,e){t=this.center;var i=this.chart,n=y(e,t[2]/2-this.offset);return this.isCircular||void 0!==e?((e=this.chart.renderer.symbols.arc(this.left+t[0],this.top+t[1],n,n,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[this.left+t[0]],e.yBounds=[this.top+t[1]-n]):(e=this.postTranslate(this.angleRad,n),e=["M",t[0]+i.plotLeft,t[1]+i.plotTop,"L",e.x,e.y]),e},setAxisTranslation:function(){l.setAxisTranslation.call(this),this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)},beforeSetTickPositions:function(){this.autoConnect=this.isCircular&&void 0===y(this.userMax,this.options.max)&&r(this.endAngleRad-this.startAngleRad)===r(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)},setAxisSize:function(){l.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*y(this.sector,1)/2)},getPosition:function(t,e){return t=this.translate(t),this.postTranslate(this.isCircular?t:this.angleRad,y(this.isCircular?e:t<0?0:t,this.center[2]/2)-this.offset)},postTranslate:function(t,e){var i=this.chart,n=this.center;return t=this.startAngleRad+t,{x:i.plotLeft+n[0]+Math.cos(t)*e,y:i.plotTop+n[1]+Math.sin(t)*e}},getPlotBandPath:function(t,e,i){var n,s=this.center,o=this.startAngleRad,a=s[2]/2,r=[y(i.outerRadius,"100%"),i.innerRadius,y(i.thickness,10)],l=Math.min(this.offset,0),c=/%$/,h=this.isCircular;return"polygon"===this.options.gridLineInterpolation?r=this.getPlotLinePath({value:t}).concat(this.getPlotLinePath({value:e,reverse:!0})):(t=Math.max(t,this.min),e=Math.min(e,this.max),h||(r[0]=this.translate(t),r[1]=this.translate(e)),r=r.map(function(t){return t=c.test(t)?d(t,10)*a/100:t}),"circle"!==i.shape&&h?(t=o+this.translate(t),e=o+this.translate(e)):(t=-Math.PI/2,e=1.5*Math.PI,n=!0),r[0]-=l,r[2]-=l,r=this.chart.renderer.symbols.arc(this.left+s[0],this.top+s[1],r[0],r[0],{start:Math.min(t,e),end:Math.max(t,e),innerR:y(r[1],r[0]-r[2]),open:n}),h&&(h=(e+t)/2,l=this.left+s[0]+s[2]/2*Math.cos(h),r.xBounds=h>-Math.PI/2&&h<Math.PI/2?[l,this.chart.plotWidth]:[0,l],r.yBounds=[this.top+s[1]+s[2]/2*Math.sin(h)],r.yBounds[0]+=h>-Math.PI&&h<0||h>Math.PI?-10:10)),r},getCrosshairPosition:function(t,e,i){var n,s,o=t.value;return this.isCircular?(a(o)?!t.point||(n=t.point.shapeArgs||{}).start&&(o=this.translate(t.point.rectPlotY,!0)):(n=t.chartX||0,s=t.chartY||0,o=this.translate(Math.atan2(s-i,n-e)-this.startAngleRad,!0)),n=(t=this.getPosition(o)).x,s=t.y):(a(o)||(n=t.chartX,s=t.chartY),a(n)&&a(s)&&(o=this.translate(Math.min(Math.sqrt(Math.pow(n-e,2)+Math.pow(s-i,2)),this.len),!0))),[o,n||0,s||0]},getPlotLinePath:function(t){var i,c,n,e=this,s=e.center,o=e.chart,d=o.inverted,a=t.value,u=t.reverse,r=e.getPosition(a),p=(l=e.pane.options.background?e.pane.options.background[0]||e.pane.options.background:{}).innerRadius||"0%",f=l.outerRadius||"100%",l=s[0]+o.plotLeft,s=s[1]+o.plotTop,h=r.x,r=r.y;return t.isCrosshair&&(r=this.getCrosshairPosition(t,l,s),a=r[0],h=r[1],r=r[2]),e.isCircular?n=["M",l+(u="string"==typeof p?b(p,1):p/Math.sqrt(Math.pow(h-l,2)+Math.pow(r-s,2)))*(h-l),s-u*(s-r),"L",h-(1-(t="string"==typeof f?b(f,1):f/Math.sqrt(Math.pow(h-l,2)+Math.pow(r-s,2))))*(h-l),r+(1-t)*(s-r)]:(a=e.translate(a),!t.isCrosshair&&(a<0||a>e.height)&&d&&(a=0),"circle"===e.options.gridLineInterpolation?n=e.getLinePath(0,a):(o[d?"yAxis":"xAxis"].forEach(function(t){t.pane===e.pane&&(i=t)}),n=[],l=i.tickPositions,i.autoConnect&&(l=l.concat([l[0]])),(l=u?[].concat(l).reverse():l).forEach(function(t,e){c=i.getPosition(t,a),n.push(e?"L":"M",c.x,c.y)}))),n},getTitlePosition:function(){var t=this.center,e=this.chart,i=this.options.title;return{x:e.plotLeft+t[0]+(i.x||0),y:e.plotTop+t[1]-{high:.5,middle:.25,low:0}[i.align]*t[2]+(i.y||0)}},createLabelCollector:function(){var e=this;return function(){if(e.isRadial&&e.tickPositions&&!0!==e.options.labels.allowOverlap)return e.tickPositions.map(function(t){return e.ticks[t]&&e.ticks[t].label}).filter(function(t){return!!t})}}};i(n,"init",function(t){var e,i=this.chart,n=i.inverted,s=i.angular,o=i.polar,a=this.isXAxis,r=this.coll,l=s&&a,h=i.options;t=t.userOptions.pane||0,t=this.pane=i.pane&&i.pane[t],"colorAxis"===r?this.isRadial=!1:(s?(c(this,l?p:f),(e=!a)&&(this.defaultPolarOptions=this.defaultRadialGaugeOptions)):o&&(c(this,f),this.defaultPolarOptions=(e=this.horiz)?this.defaultCircularOptions:u("xAxis"===r?this.defaultOptions:this.defaultYAxisOptions,this.defaultRadialOptions),n&&"yAxis"===r&&(this.defaultPolarOptions.stackLabels=this.defaultYAxisOptions.stackLabels)),s||o?(this.isRadial=!0,h.chart.zoomType=null,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&i.labelCollectors.push(this.labelCollector)):this.isRadial=!1,t&&e&&(t.axis=this),this.isCircular=e)}),i(n,"afterInit",function(){var t=this.chart,e=this.options,i=this.pane,n=i&&i.options;t.angular&&this.isXAxis||!i||!t.angular&&!t.polar||(this.angleRad=(e.angle||0)*Math.PI/180,this.startAngleRad=(n.startAngle-90)*Math.PI/180,this.endAngleRad=(y(n.endAngle,n.startAngle+360)-90)*Math.PI/180,this.offset=e.offset||0)}),i(n,"autoLabelAlign",function(t){this.isRadial&&(t.align=void 0,t.preventDefault())}),i(n,"destroy",function(){var t;this.chart&&this.chart.labelCollectors&&(0<=(t=this.chart.labelCollectors.indexOf(this.labelCollector))&&this.chart.labelCollectors.splice(t,1))}),i(o,"afterGetPosition",function(t){this.axis.getPosition&&c(t.pos,this.axis.getPosition(this.pos))}),i(o,"afterGetLabelPosition",function(c){var d,t=this.axis,e=this.label,i=e.getBBox(),n=t.options.labels,u=n.y,p=20,s=n.align,o=(t.translate(this.pos)+t.startAngleRad+Math.PI/2)/Math.PI*180%360,a=Math.round(o),r="end",l=a<0?a+360:a,h=l,f=0,m=0,g=null===n.y?.3*-i.height:0;t.isRadial&&(d=t.getPosition(this.pos,t.center[2]/2+b(y(n.distance,-25),t.center[2]/2,-t.center[2]/2)),"auto"===n.rotation?e.attr({rotation:o}):null===u&&(u=t.chart.renderer.fontMetrics(e.styles&&e.styles.fontSize).b-i.height/2),null===s&&(s=t.isCircular?(p=i.width>t.len*t.tickInterval/(t.max-t.min)?0:p)<o&&o<180-p?"left":180+p<o&&o<360-p?"right":"center":"center",e.attr({align:s})),"auto"===s&&2===t.tickPositions.length&&t.isCircular&&(90<l&&l<180?l=180-l:270<l&&l<=360&&(l=540-l),t.pane.options.startAngle!==a&&t.pane.options.startAngle!==a+360&&t.pane.options.startAngle!==a-360||(r="start"),s=-90<=a&&a<=90||-360<=a&&a<=-270||270<=a&&a<=360?"start"===r?"right":"left":"start"===r?"left":"right",l<15||180<=l&&l<195?f=.3*i.height:15<=l&&l<=35?f="start"===r?0:.75*i.height:195<=l&&l<=215?f="start"===r?.75*i.height:0:35<l&&l<=90?f="start"===r?.25*-i.height:i.height:215<l&&l<=270&&(f="start"===r?i.height:.25*-i.height),(h=180<h&&h<=360?360-h:h)<15?m="start"===r?.15*-i.height:.15*i.height:165<h&&h<=180&&(m="start"===r?.15*i.height:.15*-i.height),e.attr({align:s=70<h&&h<110?"center":s}),e.translate(m,f+g)),c.pos.x=d.x+n.x,c.pos.y=d.y+u)}),t(h,"getMarkPath",function(t,e,i,n,s,o,a){var r=this.axis;return e=r.isRadial?["M",e,i,"L",(t=r.getPosition(this.pos,r.center[2]/2+n)).x,t.y]:t.call(this,e,i,n,s,o,a)})}),e(t,"parts-more/AreaRangeSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(t,e){var n=e.defined,c=e.extend,d=e.isArray,i=e.isNumber,u=e.pick,p=(e=t.seriesType,t.seriesTypes),f=t.Series.prototype,s=t.Point.prototype;e("arearange","area",{lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}},{pointArrayMap:["low","high"],pointValKey:"low",deferTranslatePolar:!0,toYData:function(t){return[t.low,t.high]},highToXY:function(t){var e=this.chart,i=this.xAxis.postTranslate(t.rectPlotX,this.yAxis.len-t.plotHigh);t.plotHighX=i.x-e.plotLeft,t.plotHigh=i.y-e.plotTop,t.plotLowX=t.plotX},translate:function(){var n=this,s=n.yAxis,o=!!n.modifyValue;p.area.prototype.translate.apply(n),n.points.forEach(function(t){var e=t.high,i=t.plotY;t.isNull?t.plotY=null:(t.plotLow=i,t.plotHigh=s.translate(o?n.modifyValue(e,t):e,0,1,0,1),o&&(t.yBottom=t.plotHigh))}),this.chart.polar&&this.points.forEach(function(t){n.highToXY(t),t.tooltipPos=[(t.plotHighX+t.plotLowX)/2,(t.plotHigh+t.plotLow)/2]})},getGraphPath:function(t){for(var e=[],i=[],n=p.area.prototype.getGraphPath,s=this.options,o=this.chart.polar&&!1!==s.connectEnds,a=s.connectNulls,r=s.step,l=(t=t||this.points).length;l--;){var h=t[l],c=(h.isNull||o||a||t[l+1]&&!t[l+1].isNull||i.push({plotX:h.plotX,plotY:h.plotY,doCurve:!1}),{polarPlotY:h.polarPlotY,rectPlotX:h.rectPlotX,yBottom:h.yBottom,plotX:u(h.plotHighX,h.plotX),plotY:h.plotHigh,isNull:h.isNull});i.push(c),e.push(c),h.isNull||o||a||t[l-1]&&!t[l-1].isNull||i.push({plotX:h.plotX,plotY:h.plotY,doCurve:!1})}return t=n.call(this,t),r&&(s.step={left:"right",center:"center",right:"left"}[r=!0===r?"left":r]),e=n.call(this,e),i=n.call(this,i),s.step=r,s=[].concat(t,e),this.chart.polar||"M"!==i[0]||(i[0]="L"),this.graphPath=s,this.areaPath=t.concat(i),s.isArea=!0,s.xMap=t.xMap,this.areaPath.xMap=t.xMap,s},drawDataLabels:function(){var t,e,i,n,s,o=this.points,a=o.length,r=[],l=this.options.dataLabels,h=this.chart.inverted;if(d(l)?n=1<l.length?(i=l[0],l[1]):(i=l[0],{enabled:!1}):((i=c({},l)).x=l.xHigh,i.y=l.yHigh,(n=c({},l)).x=l.xLow,n.y=l.yLow),i.enabled||this._hasPointLabels){for(t=a;t--;)(e=o[t])&&(s=i.inside?e.plotHigh<e.plotLow:e.plotHigh>e.plotLow,e.y=e.high,e._plotY=e.plotY,e.plotY=e.plotHigh,r[t]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=s,h?i.align||(i.align=s?"right":"left"):i.verticalAlign||(i.verticalAlign=s?"top":"bottom"));for(this.options.dataLabels=i,f.drawDataLabels&&f.drawDataLabels.apply(this,arguments),t=a;t--;)(e=o[t])&&(e.dataLabelUpper=e.dataLabel,e.dataLabel=r[t],delete e.dataLabels,e.y=e.low,e.plotY=e._plotY)}if(n.enabled||this._hasPointLabels){for(t=a;t--;)(e=o[t])&&(s=n.inside?e.plotHigh<e.plotLow:e.plotHigh>e.plotLow,e.below=!s,h?n.align||(n.align=s?"left":"right"):n.verticalAlign||(n.verticalAlign=s?"bottom":"top"));this.options.dataLabels=n,f.drawDataLabels&&f.drawDataLabels.apply(this,arguments)}if(i.enabled)for(t=a;t--;)(e=o[t])&&(e.dataLabels=[e.dataLabelUpper,e.dataLabel].filter(function(t){return!!t}));this.options.dataLabels=l},alignDataLabel:function(){p.column.prototype.alignDataLabel.apply(this,arguments)},drawPoints:function(){var t,e=this.points.length;for(f.drawPoints.apply(this,arguments),t=0;t<e;){var i=this.points[t];i.origProps={plotY:i.plotY,plotX:i.plotX,isInside:i.isInside,negative:i.negative,zone:i.zone,y:i.y},i.lowerGraphic=i.graphic,i.graphic=i.upperGraphic,i.plotY=i.plotHigh,n(i.plotHighX)&&(i.plotX=i.plotHighX),i.y=i.high,i.negative=i.high<(this.options.threshold||0),i.zone=this.zones.length&&i.getZone(),this.chart.polar||(i.isInside=i.isTopInside=void 0!==i.plotY&&0<=i.plotY&&i.plotY<=this.yAxis.len&&0<=i.plotX&&i.plotX<=this.xAxis.len),t++}for(f.drawPoints.apply(this,arguments),t=0;t<e;)(i=this.points[t]).upperGraphic=i.graphic,i.graphic=i.lowerGraphic,c(i,i.origProps),delete i.origProps,t++},setStackedPoints:t.noop},{setState:function(){var t=this.state,e=this.series,i=e.chart.polar;n(this.plotHigh)||(this.plotHigh=e.yAxis.toPixels(this.high,!0)),n(this.plotLow)||(this.plotLow=this.plotY=e.yAxis.toPixels(this.low,!0)),e.stateMarkerGraphic&&(e.lowerStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.upperStateMarkerGraphic),this.graphic=this.upperGraphic,this.plotY=this.plotHigh,i&&(this.plotX=this.plotHighX),s.setState.apply(this,arguments),this.state=t,this.plotY=this.plotLow,this.graphic=this.lowerGraphic,i&&(this.plotX=this.plotLowX),e.stateMarkerGraphic&&(e.upperStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.lowerStateMarkerGraphic,e.lowerStateMarkerGraphic=void 0),s.setState.apply(this,arguments)},haloPath:function(){var t=this.series.chart.polar,e=[];return this.plotY=this.plotLow,t&&(this.plotX=this.plotLowX),this.isInside&&(e=s.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,t&&(this.plotX=this.plotHighX),e=this.isTopInside?e.concat(s.haloPath.apply(this,arguments)):e},destroyElements:function(){return["lowerGraphic","upperGraphic"].forEach(function(t){this[t]&&(this[t]=this[t].destroy())},this),this.graphic=null,s.destroyElements.apply(this,arguments)},isValid:function(){return i(this.low)&&i(this.high)}})}),e(t,"parts-more/AreaSplineRangeSeries.js",[t["parts/Globals.js"]],function(t){(0,t.seriesType)("areasplinerange","arearange",null,{getPointSpline:t.seriesTypes.spline.prototype.getPointSpline})}),e(t,"parts-more/ColumnRangeSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(t,e){var p=e.clamp,f=e.pick,i=(e=t.defaultPlotOptions,t.merge),n=t.noop,s=t.seriesType,m=t.seriesTypes.column.prototype;s("columnrange","arearange",i(e.column,e.arearange,{pointRange:null,marker:null,states:{hover:{halo:!1}}}),{translate:function(){var o,a=this,r=a.yAxis,l=a.xAxis,h=l.startAngleRad,c=a.chart,d=a.xAxis.isRadial,u=Math.max(c.chartWidth,c.chartHeight)+999;m.translate.apply(a),a.points.forEach(function(t){var e=t.shapeArgs,i=a.options.minPointLength,n=(t.plotHigh=o=p(r.translate(t.high,0,1,0,1),-u,u),t.plotLow=p(t.plotY,-u,u),o),s=f(t.rectPlotY,t.plotY)-o;Math.abs(s)<i?(s+=i-=s,n-=i/2):s<0&&(n-=s*=-1),d?(o=t.barX+h,t.shapeType="path",t.shapeArgs={d:a.polarArc(n+s,n,o,o+t.pointWidth)}):(e.height=s,e.y=n,t.tooltipPos=c.inverted?[r.len+r.pos-c.plotLeft-n-s/2,l.len+l.pos-c.plotTop-e.x-e.width/2,s]:[l.left-c.plotLeft+e.x+e.width/2,r.pos-c.plotTop+n+s/2,s])})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:n,getSymbol:n,crispCol:function(){return m.crispCol.apply(this,arguments)},drawPoints:function(){return m.drawPoints.apply(this,arguments)},drawTracker:function(){return m.drawTracker.apply(this,arguments)},getColumnMetrics:function(){return m.getColumnMetrics.apply(this,arguments)},pointAttribs:function(){return m.pointAttribs.apply(this,arguments)},animate:function(){return m.animate.apply(this,arguments)},polarArc:function(){return m.polarArc.apply(this,arguments)},translate3dPoints:function(){return m.translate3dPoints.apply(this,arguments)},translate3dShapes:function(){return m.translate3dShapes.apply(this,arguments)}},{setState:m.pointClass.prototype.setState})}),e(t,"parts-more/ColumnPyramidSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(t,e){var C=e.clamp,S=e.pick,i=(e=t.seriesType,t.seriesTypes.column.prototype);e("columnpyramid","column",{},{translate:function(){var u=this,p=u.chart,f=u.options,t=u.dense=u.closestPointRange*u.xAxis.transA<2,t=u.borderWidth=S(f.borderWidth,t?0:1),m=u.yAxis,g=f.threshold,y=u.translatedThreshold=m.getThreshold(g),b=S(f.minPointLength,5),e=u.getColumnMetrics(),x=e.width,v=u.barW=Math.max(x,1+2*t),w=u.pointXOffset=e.offset;p.inverted&&(y-=.5),f.pointPadding&&(v=Math.ceil(v)),i.translate.apply(u),u.points.forEach(function(t){var e=S(t.yBottom,y),i=999+Math.abs(e),n=C(t.plotY,-i,m.len+i),i=t.plotX+w,s=v/2,o=Math.min(n,e),e=Math.max(n,e)-o;t.barX=i,t.pointWidth=x,t.tooltipPos=p.inverted?[m.len+m.pos-p.plotLeft-n,u.xAxis.len-i-s,e]:[i+s,n+m.pos-p.plotTop,e],n=g+(t.total||t.y),"percent"===f.stacking&&(n=g+(t.y<0)?-100:100);var a=s*(o+e-(n=m.toPixels(n,!0)))/(r=p.plotHeight-n-(p.plotHeight-y)),r=i-(l=s*(o-n)/r)+s,l=i+l+s,c=i+a+s,a=i-a+s,h=o-b,d=o+e;t.y<0&&(d=(h=o)+e+b),p.inverted&&(a=s*(n-((c=p.plotWidth-o)-e))/(r=n-(p.plotWidth-y)),l=(r=i+s+(l=s*(n-c)/r))-2*l,c=i-a+s,a=i+a+s,d=(h=o)+e-b,t.y<0&&(d=o+e+b)),t.shapeType="path",t.shapeArgs={x:r,y:h,width:l-r,height:e,d:["M",r,h,"L",l,h,c,d,a,d,"Z"]}})}})}),e(t,"parts-more/GaugeSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(t,e){var u=e.clamp,p=e.isNumber,f=e.pick,m=e.pInt,g=t.merge,i=t.Series,n=(e=t.seriesType,t.TrackerMixin);e("gauge","line",{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:t.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var h=this.yAxis,c=this.options,d=h.center;this.generatePoints(),this.points.forEach(function(t){var e=g(c.dial,t.dial),i=m(f(e.radius,"80%"))*d[2]/200,n=m(f(e.baseLength,"70%"))*i/100,s=m(f(e.rearLength,"10%"))*i/100,o=e.baseWidth||3,a=e.topWidth||1,r=c.overshoot,l=h.startAngleRad+h.translate(t.y,null,null,null,!0);!p(r)&&!1!==c.wrap||(r=p(r)?r/180*Math.PI:0,l=u(l,h.startAngleRad-r,h.endAngleRad+r)),l=180*l/Math.PI,t.shapeType="path",t.shapeArgs={d:e.path||["M",-s,-o/2,"L",n,-o/2,i,-a/2,i,a/2,n,o/2,-s,o/2,"z"],translateX:d[0],translateY:d[1],rotation:l},t.plotX=d[0],t.plotY=d[1]})},drawPoints:function(){var o=this,a=o.chart,t=o.yAxis.center,e=o.pivot,r=o.options,i=r.pivot,l=a.renderer;o.points.forEach(function(t){var e=t.graphic,i=t.shapeArgs,n=i.d,s=g(r.dial,t.dial);e?(e.animate(i),i.d=n):t.graphic=l[t.shapeType](i).attr({rotation:i.rotation,zIndex:1}).addClass("highcharts-dial").add(o.group),a.styledMode||t.graphic[e?"animate":"attr"]({stroke:s.borderColor||"none","stroke-width":s.borderWidth||0,fill:s.backgroundColor||"#000000"})}),e?e.animate({translateX:t[0],translateY:t[1]}):(o.pivot=l.circle(0,0,f(i.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(t[0],t[1]).add(o.group),a.styledMode||o.pivot.attr({"stroke-width":i.borderWidth||0,stroke:i.borderColor||"#cccccc",fill:i.backgroundColor||"#000000"}))},animate:function(t){var i=this;t||(i.points.forEach(function(t){var e=t.graphic;e&&(e.attr({rotation:180*i.yAxis.startAngleRad/Math.PI}),e.animate({rotation:t.shapeArgs.rotation},i.options.animation))}),i.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup),i.prototype.render.call(this),this.group.clip(this.chart.clipRect)},setData:function(t,e){i.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),f(e,!0)&&this.chart.redraw()},hasData:function(){return!!this.points.length},drawTracker:n&&n.drawTrackerPoint},{setState:function(t){this.state=t}})}),e(t,"parts-more/BoxPlotSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(t,e){var T=e.pick,i=(e=t.noop,t.seriesType),n=t.seriesTypes;i("boxplot","column",{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2},{pointArrayMap:["low","q1","median","q3","high"],toYData:function(t){return[t.low,t.q1,t.median,t.q3,t.high]},pointValKey:"high",pointAttribs:function(){return{}},drawDataLabels:e,translate:function(){var i=this.yAxis,t=this.pointArrayMap;n.column.prototype.translate.apply(this),this.points.forEach(function(e){t.forEach(function(t){null!==e[t]&&(e[t+"Plot"]=i.translate(e[t],0,1,0,1))})})},drawPoints:function(){var h,v,c,d,u,p,x,f,m,g=this,y=g.options,w=g.chart,C=w.renderer,S=!1!==g.doQuartiles,b=g.options.whiskerLength;g.points.forEach(function(t){var e=t.graphic,i=e?"animate":"attr",n=t.shapeArgs,s={},o={},a={},r={},l=t.color||g.color;void 0!==t.plotY&&(f=n.width,p=Math.floor(n.x),x=p+f,f=Math.round(f/2),m=Math.floor(S?t.q1Plot:t.lowPlot),c=Math.floor(S?t.q3Plot:t.lowPlot),h=Math.floor(t.highPlot),v=Math.floor(t.lowPlot),e||(t.graphic=e=C.g("point").add(g.group),t.stem=C.path().addClass("highcharts-boxplot-stem").add(e),b&&(t.whiskers=C.path().addClass("highcharts-boxplot-whisker").add(e)),S&&(t.box=C.path(void 0).addClass("highcharts-boxplot-box").add(e)),t.medianShape=C.path(void 0).addClass("highcharts-boxplot-median").add(e)),w.styledMode||(o.stroke=t.stemColor||y.stemColor||l,o["stroke-width"]=T(t.stemWidth,y.stemWidth,y.lineWidth),o.dashstyle=t.stemDashStyle||y.stemDashStyle,t.stem.attr(o),b&&(a.stroke=t.whiskerColor||y.whiskerColor||l,a["stroke-width"]=T(t.whiskerWidth,y.whiskerWidth,y.lineWidth),t.whiskers.attr(a)),S&&(s.fill=t.fillColor||y.fillColor||l,s.stroke=y.lineColor||l,s["stroke-width"]=y.lineWidth||0,t.box.attr(s)),r.stroke=t.medianColor||y.medianColor||l,r["stroke-width"]=T(t.medianWidth,y.medianWidth,y.lineWidth),t.medianShape.attr(r)),d=t.stem.strokeWidth()%2/2,u=p+f+d,t.stem[i]({d:["M",u,c,"L",u,h,"M",u,m,"L",u,v]}),S&&(d=t.box.strokeWidth()%2/2,m=Math.floor(m)+d,c=Math.floor(c)+d,p+=d,x+=d,t.box[i]({d:["M",p,c,"L",p,m,"L",x,m,"L",x,c,"L",p,c,"z"]})),b&&(d=t.whiskers.strokeWidth()%2/2,h+=d,v+=d,m=/%$/.test(b)?f*parseFloat(b)/100:b/2,t.whiskers[i]({d:["M",u-m,h,"L",u+m,h,"M",u-m,v,"L",u+m,v]})),c=Math.round(t.medianPlot),d=t.medianShape.strokeWidth()%2/2,c+=d,t.medianShape[i]({d:["M",p,c,"L",x,c]}))})},setStackedPoints:e})}),e(t,"parts-more/ErrorBarSeries.js",[t["parts/Globals.js"]],function(t){var e=t.noop,i=t.seriesType,n=t.seriesTypes;i("errorbar","boxplot",{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null},{type:"errorbar",pointArrayMap:["low","high"],toYData:function(t){return[t.low,t.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:n.arearange?function(){var e=this.pointValKey;n.arearange.prototype.drawDataLabels.call(this),this.data.forEach(function(t){t.y=t[e]})}:e,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||n.column.prototype.getColumnMetrics.call(this)}})}),e(t,"parts-more/WaterfallSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(t,e){var s=e.arrayMax,o=e.arrayMin,p=e.correctFloat,n=e.isNumber,a=e.objectEach,y=e.pick,i=(e=t.addEvent,t.Axis),r=t.Chart,l=t.Point,f=t.Series,h=t.StackItem,c=t.seriesType,b=t.seriesTypes;e(i,"afterInit",function(){this.isXAxis||(this.waterfallStacks={changed:!1})}),e(i,"afterBuildStacks",function(){this.waterfallStacks.changed=!1,delete this.waterfallStacks.alreadyChanged}),e(r,"beforeRedraw",function(){for(var t=this.axes,e=this.series,i=e.length;i--;)e[i].options.stacking&&(t.forEach(function(t){t.isXAxis||(t.waterfallStacks.changed=!0)}),i=0)}),e(i,"afterRender",function(){var t=this.options.stackLabels;t&&t.enabled&&this.waterfallStacks&&this.renderWaterfallStackTotals()}),i.prototype.renderWaterfallStackTotals=function(){var t=this.waterfallStacks,e=this.stackTotalGroup,i=new h(this,this.options.stackLabels,!1,0,void 0);this.dummyStackItem=i,a(t,function(t){a(t,function(t){i.total=t.stackTotal,t.label&&(i.label=t.label),h.prototype.render.call(i,e),t.label=i.label,delete i.label})}),i.total=null},c("waterfall","column",{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}},{pointValKey:"y",showLine:!0,generatePoints:function(){b.column.prototype.generatePoints.apply(this);for(var t=0,e=this.points.length;t<e;t++){var i=this.points[t],n=this.processedYData[t];(i.isIntermediateSum||i.isSum)&&(i.y=p(n))}},translate:function(){for(var t,c=this.options,e=this.yAxis,d=y(c.minPointLength,5),u=d/2,p=c.threshold,f=c.stacking,m=e.waterfallStacks[this.stackKey],i=(b.column.prototype.translate.apply(this),t=p),g=this.points,n=0,c=g.length;n<c;n++){var s,o=g[n],a=this.processedYData[n],r=o.shapeArgs,l=[0,a],h=o.y;f?(m&&(l=m[n],"overlap"===f?(s=l.stackState[l.stateIndex--],s=0<=h?s:s-h,Object.hasOwnProperty.call(l,"absolutePos")&&delete l.absolutePos,Object.hasOwnProperty.call(l,"absoluteNeg")&&delete l.absoluteNeg):(0<=h?(s=l.threshold+l.posTotal,l.posTotal-=h):(s=l.threshold+l.negTotal,l.negTotal-=h,s-=h),!l.posTotal&&Object.hasOwnProperty.call(l,"absolutePos")&&(l.posTotal=l.absolutePos,delete l.absolutePos),!l.negTotal&&Object.hasOwnProperty.call(l,"absoluteNeg")&&(l.negTotal=l.absoluteNeg,delete l.absoluteNeg)),o.isSum||(l.connectorThreshold=l.threshold+l.stackTotal),h=e.reversed?(a=0<=h?s-h:s+h,s):(a=s)-h,o.below=a<=y(p,0),r.y=e.translate(a,0,1,0,1),r.height=Math.abs(r.y-e.translate(h,0,1,0,1))),(h=e.dummyStackItem)&&(h.x=n,h.label=m[n].label,h.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[n],this.stackedYPos[n]))):(s=Math.max(i,i+h)+l[0],r.y=e.translate(s,0,1,0,1),o.isSum?(r.y=e.translate(l[1],0,1,0,1),r.height=Math.min(e.translate(l[0],0,1,0,1),e.len)-r.y):o.isIntermediateSum?(h=0<=h?(a=l[1]+t,t):(a=t,l[1]+t),e.reversed&&(a=(a^=h)^(h^=a)),r.y=e.translate(a,0,1,0,1),r.height=Math.abs(r.y-Math.min(e.translate(h,0,1,0,1),e.len)),t+=l[1]):(r.height=0<a?e.translate(i,0,1,0,1)-r.y:e.translate(i,0,1,0,1)-e.translate(i-a,0,1,0,1),i+=a,o.below=i<y(p,0)),r.height<0&&(r.y+=r.height,r.height*=-1)),o.plotY=r.y=Math.round(r.y)-this.borderWidth%2/2,r.height=Math.max(Math.round(r.height),.001),o.yBottom=r.y+r.height,r.height<=d&&!o.isNull?(r.height=d,r.y-=u,o.plotY=r.y,o.minPointLengthOffset=o.y<0?-u:u):(o.isNull&&(r.width=0),o.minPointLengthOffset=0),r=o.plotY+(o.negative?r.height:0),this.chart.inverted?o.tooltipPos[0]=e.len-r:o.tooltipPos[1]=r}},processData:function(c){for(var t,e,i,n,s=this.options,o=this.yData,a=s.data,d=o.length,u=s.threshold||0,r=e=t=i=n=0;r<d;r++){var l=o[r],h=a&&a[r]?a[r]:{};"sum"===l||h.isSum?o[r]=p(e):"intermediateSum"===l||h.isIntermediateSum?(o[r]=p(t),t=0):(e+=l,t+=l),i=Math.min(e,i),n=Math.max(e,n)}f.prototype.processData.call(this,c),s.stacking||(this.dataMin=i+u,this.dataMax=n)},toYData:function(t){return t.isSum?"sum":t.isIntermediateSum?"intermediateSum":t.y},updateParallelArrays:function(t,e){f.prototype.updateParallelArrays.call(this,t,e),"sum"!==this.yData[0]&&"intermediateSum"!==this.yData[0]||(this.yData[0]=null)},pointAttribs:function(t,e){var i=this.options.upColor;return i&&!t.options.color&&(t.color=0<t.y?i:null),delete(t=b.column.prototype.pointAttribs.call(this,t,e)).dashstyle,t},getGraphPath:function(){return["M",0,0]},getCrispPath:function(){for(var t=this.data,e=this.yAxis,c=t.length,d=Math.round(this.graph.strokeWidth())%2/2,u=Math.round(this.borderWidth)%2/2,p=this.xAxis.reversed,i=this.yAxis.reversed,f=this.options.stacking,n=[],s=1;s<c;s++){var o,m=t[s].shapeArgs,a=t[s-1],r=t[s-1].shapeArgs,l=e.waterfallStacks[this.stackKey],h=0<a.y?-r.height:0;l&&(l=l[s-1],h=f?(l=l.connectorThreshold,Math.round(e.translate(l,0,1,0,1)+(i?h:0))-d):r.y+a.minPointLengthOffset+u-d,o=["M",r.x+(p?0:r.width),h,"L",m.x+(p?m.width:0),h]),(!f&&o&&a.y<0&&!i||0<a.y&&i)&&(o[2]+=r.height,o[5]+=r.height),n=n.concat(o)}return n},drawGraph:function(){f.prototype.drawGraph.call(this),this.graph.attr({d:this.getCrispPath()})},setStackedPoints:function(){function c(t,e,i,n){if(x)for(;i<x;i++)a.stackState[i]+=n;else a.stackState[0]=t,x=a.stackState.length;a.stackState.push(a.stackState[x-1]+e)}var t,d,u=this.options,e=this.yAxis.waterfallStacks,p=u.threshold,i=p||0,f=i,n=this.stackKey,m=this.xData,g=m.length,y=(this.yAxis.usePercentage=!1,t=d=i);if(this.visible||!this.chart.options.chart.ignoreHiddenSeries){var b=e.changed;(s=e.alreadyChanged)&&s.indexOf(n)<0&&(b=!0),e[n]||(e[n]={});for(var s=e[n],o=0;o<g;o++){s[h=m[o]]&&!b||(s[h]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:b&&s[h]?s[h].label:void 0});var a=s[h],r=this.yData[o],l=(0<=r?a.posTotal+=r:a.negTotal+=r,u.data[o]),h=a.absolutePos=a.posTotal,v=a.absoluteNeg=a.negTotal,x=(a.stackTotal=h+v,a.stackState.length);l&&l.isIntermediateSum?(c(d,t,0,d),d=t,t=p,i=(i^=f)^(f^=i)):l&&l.isSum?(c(p,y,x),i=p):(c(i,r,0,y),l&&(y+=r,t+=r)),a.stateIndex++,a.threshold=i,i+=a.stackTotal}e.changed=!1,e.alreadyChanged||(e.alreadyChanged=[]),e.alreadyChanged.push(n)}},getExtremes:function(){var t,e,i,n=this.options.stacking;n&&(t=(t=this.yAxis).waterfallStacks,e=this.stackedYNeg=[],i=this.stackedYPos=[],a(t[this.stackKey],"overlap"===n?function(t){e.push(o(t.stackState)),i.push(s(t.stackState))}:function(t){e.push(t.negTotal+t.threshold),i.push(t.posTotal+t.threshold)}),this.dataMin=o(e),this.dataMax=s(i))}},{getClassName:function(){var t=l.prototype.getClassName.call(this);return this.isSum?t+=" highcharts-sum":this.isIntermediateSum&&(t+=" highcharts-intermediate-sum"),t},isValid:function(){return n(this.y)||this.isSum||this.isIntermediateSum}})}),e(t,"parts-more/PolygonSeries.js",[t["parts/Globals.js"]],function(t){var i=t.Series,e=t.seriesType,n=t.seriesTypes;e("polygon","scatter",{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0},{type:"polygon",getGraphPath:function(){for(var t=i.prototype.getGraphPath.call(this),e=t.length+1;e--;)(e===t.length||"M"===t[e])&&0<e&&t.splice(e,0,"z");return this.areaPath=t},drawGraph:function(){this.options.fillColor=this.color,n.area.prototype.drawGraph.call(this)},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawTracker:i.prototype.drawTracker,setStackedPoints:t.noop})}),e(t,"parts-more/BubbleLegend.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(o,t){var a=t.arrayMax,h=t.arrayMin,r=t.isNumber,l=t.objectEach,d=t.pick,s=(t=t.wrap,o.Series),e=o.Legend,i=o.Chart,n=o.addEvent,p=o.color,u=o.merge,c=o.noop,f=o.stableSort;(0,o.setOptions)({legend:{bubbleLegend:{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:10,color:void 0},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}}),o.BubbleLegend=function(t,e){this.init(t,e)},o.BubbleLegend.prototype={init:function(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e},setState:c,addToLegend:function(t){t.splice(this.options.legendIndex,0,this)},drawLegendSymbol:function(t){var e=this.chart,i=this.options,n=d(t.options.itemDistance,20),s=i.ranges,o=i.connectorDistance;this.fontMetrics=e.renderer.fontMetrics(i.labels.style.fontSize.toString()+"px"),s&&s.length&&r(s[0].value)?(f(s,function(t,e){return e.value-t.value}),this.ranges=s,this.setOptions(),this.render(),e=this.getMaxLabelSize(),t=2*(s=this.ranges[0].radius),o=0<(o=o-s+e.width)?o:0,this.maxLabel=e,this.movementX="left"===i.labels.align?o:0,this.legendItemWidth=t+o+n,this.legendItemHeight=t+this.fontMetrics.h/2):t.options.bubbleLegend.autoRanges=!0},setOptions:function(){var i=this.ranges,n=this.options,s=this.chart.series[n.seriesIndex],o=this.legend.baseline,a={"z-index":n.zIndex,"stroke-width":n.borderWidth},r={"z-index":n.zIndex,"stroke-width":n.connectorWidth},l=this.getLabelStyles(),h=s.options.marker.fillOpacity,c=this.chart.styledMode;i.forEach(function(t,e){c||(a.stroke=d(t.borderColor,n.borderColor,s.color),a.fill=d(t.color,n.color,1!==h?p(s.color).setOpacity(h).get("rgba"):s.color),r.stroke=d(t.connectorColor,n.connectorColor,s.color)),i[e].radius=this.getRangeRadius(t.value),i[e]=u(i[e],{center:i[0].radius-i[e].radius+o}),c||u(!0,i[e],{bubbleStyle:u(!1,a),connectorStyle:u(!1,r),labelStyle:l})},this)},getLabelStyles:function(){var t=this.options,i={},e="left"===t.labels.align,n=this.legend.options.rtl;return l(t.labels.style,function(t,e){"color"!==e&&"fontSize"!==e&&"z-index"!==e&&(i[e]=t)}),u(!1,i,{"font-size":t.labels.style.fontSize,fill:d(t.labels.style.color,"#000000"),"z-index":t.zIndex,align:n||e?"right":"left"})},getRangeRadius:function(t){var e=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,e.ranges[e.ranges.length-1].value,e.ranges[0].value,e.minSize,e.maxSize,t)},render:function(){var t=this.chart.renderer,e=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),this.legendSymbol=t.g("bubble-legend"),this.legendItem=t.g("bubble-legend-item"),this.legendSymbol.translateX=0,this.legendSymbol.translateY=0,this.ranges.forEach(function(t){t.value>=e&&this.renderRange(t)},this),this.legendSymbol.add(this.legendItem),this.legendItem.add(this.legendGroup),this.hideOverlappingLabels()},renderRange:function(t){var e=this.options,i=e.labels,n=this.chart.renderer,c=this.symbols,d=c.labels,u=t.center,p=Math.abs(t.radius),s=e.connectorDistance,o=i.align,a=i.style.fontSize,s=this.legend.options.rtl||"left"===o?-s:s,i=e.connectorWidth,r=this.ranges[0].radius,l=u-p-e.borderWidth/2+i/2,a=a/2-(this.fontMetrics.h-a)/2,h=n.styledMode,f=("center"===o&&(e.connectorDistance=s=0,t.labelStyle.align="center"),o=l+e.labels.y,r+s+e.labels.x);c.bubbleItems.push(n.circle(r,u+((l%1?1:.5)-(i%2?0:.5)),p).attr(h?{}:t.bubbleStyle).addClass((h?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-symbol "+(e.className||"")).add(this.legendSymbol)),c.connectors.push(n.path(n.crispLine(["M",r,l,"L",r+s,l],e.connectorWidth)).attr(h?{}:t.connectorStyle).addClass((h?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(e.connectorClassName||"")).add(this.legendSymbol)),t=n.text(this.formatLabel(t),f,o+a).attr(h?{}:t.labelStyle).addClass("highcharts-bubble-legend-labels "+(e.labels.className||"")).add(this.legendSymbol),d.push(t),t.placed=!0,t.alignAttr={x:f,y:o+a}},getMaxLabelSize:function(){var e,i;return this.symbols.labels.forEach(function(t){i=t.getBBox(!0),e=!e||i.width>e.width?i:e}),e||{}},formatLabel:function(t){var e=(i=this.options).labels.formatter,i=i.labels.format,n=this.chart.numberFormatter;return i?o.format(i,t):e?e.call(t):n(t.value,1)},hideOverlappingLabels:function(){var t=this.chart,i=this.symbols;!this.options.labels.allowOverlap&&i&&(t.hideOverlappingLabels(i.labels),i.labels.forEach(function(t,e){t.newOpacity?t.newOpacity!==t.oldOpacity&&i.connectors[e].show():i.connectors[e].hide()}))},getRanges:function(){var e,t=this.legend.bubbleLegend,i=t.options.ranges,n=Number.MAX_VALUE,s=-Number.MAX_VALUE,o=(t.chart.series.forEach(function(t){t.isBubble&&!t.ignoreSeries&&((e=t.zData.filter(r)).length&&(n=d(t.options.zMin,Math.min(n,Math.max(h(e),!1===t.options.displayNegative?t.options.zThreshold:-Number.MAX_VALUE))),s=d(t.options.zMax,Math.max(s,a(e)))))}),n===s?[{value:s}]:[{value:n},{value:(n+s)/2},{value:s,autoRanges:!0}]);return i.length&&i[0].radius&&o.reverse(),o.forEach(function(t,e){i&&i[e]&&(o[e]=u(!1,i[e],t))}),o},predictBubbleSizes:function(){var t=this.chart,e=this.fontMetrics,i=t.legend.options,n="horizontal"===i.layout,s=n?t.legend.lastLineHeight:0,o=t.plotSizeX,a=t.plotSizeY,r=t.series[this.options.seriesIndex],t=Math.ceil(r.minPxSize),l=Math.ceil(r.maxPxSize),r=r.options.maxSize,h=Math.min(a,o);return i.floating||!/%$/.test(r)?e=l:(r=parseFloat(r),e=(h+s-e.h/2)*r/100/(r/100+1),(n&&o<=a-e||!n&&a<=o-e)&&(e=l)),[t,Math.ceil(e)]},updateRanges:function(t,e){var i=this.legend.options.bubbleLegend;i.minSize=t,i.maxSize=e,i.ranges=this.getRanges()},correctSizes:function(){var t=this.legend,e=this.chart.series[this.options.seriesIndex];1<Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,e.maxPxSize),t.render())}},n(o.Legend,"afterGetAllItems",function(t){var e=this.bubbleLegend,i=this.options,n=i.bubbleLegend,s=this.chart.getVisibleBubbleSeriesIndex();e&&e.ranges&&e.ranges.length&&(n.ranges.length&&(n.autoRanges=!!n.ranges[0].autoRanges),this.destroyItem(e)),0<=s&&i.enabled&&n.enabled&&(n.seriesIndex=s,this.bubbleLegend=new o.BubbleLegend(n,this),this.bubbleLegend.addToLegend(t.allItems))}),i.prototype.getVisibleBubbleSeriesIndex=function(){for(var t=this.series,e=0;e<t.length;){if(t[e]&&t[e].isBubble&&t[e].visible&&t[e].zData.length)return e;e++}return-1},e.prototype.getLinesHeights=function(){for(var t=this.allItems,e=[],i=t.length,n=0,s=0;s<i;s++)if(t[s].legendItemHeight&&(t[s].itemHeight=t[s].legendItemHeight),t[s]===t[i-1]||t[s+1]&&t[s]._legendItemPos[1]!==t[s+1]._legendItemPos[1]){e.push({height:0});for(var o=e[e.length-1];n<=s;n++)t[n].itemHeight>o.height&&(o.height=t[n].itemHeight);o.step=s}return e},e.prototype.retranslateItems=function(i){var n,s,o,a=this.options.rtl,r=0;this.allItems.forEach(function(t,e){n=t.legendGroup.translateX,s=t._legendItemPos[1],((o=t.movementX)||a&&t.ranges)&&(o=a?n-t.options.maxSize/2:n+o,t.legendGroup.attr({translateX:o})),e>i[r].step&&r++,t.legendGroup.attr({translateY:Math.round(s+i[r].height/2)}),t._legendItemPos[1]=s+i[r].height/2})},n(s,"legendItemClick",function(){var t=this.chart,e=this.visible,i=this.chart.legend;i&&i.bubbleLegend&&(this.visible=!e,this.ignoreSeries=e,t=0<=t.getVisibleBubbleSeriesIndex(),i.bubbleLegend.visible!==t&&(i.update({bubbleLegend:{enabled:t}}),i.bubbleLegend.visible=t),this.visible=e)}),t(i.prototype,"drawChartBox",function(t,e,i){var n,s=this.legend,o=0<=this.getVisibleBubbleSeriesIndex();s&&s.options.enabled&&s.bubbleLegend&&s.options.bubbleLegend.autoRanges&&o?(n=s.bubbleLegend.options,o=s.bubbleLegend.predictBubbleSizes(),s.bubbleLegend.updateRanges(o[0],o[1]),n.placed||(s.group.placed=!1,s.allItems.forEach(function(t){t.legendGroup.translateY=null})),s.render(),this.getMargins(),this.axes.forEach(function(t){t.visible&&t.render(),n.placed||(t.setScale(),t.updateNames(),l(t.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),n.placed=!0,this.getMargins(),t.call(this,e,i),s.bubbleLegend.correctSizes(),s.retranslateItems(s.getLinesHeights())):(t.call(this,e,i),s&&s.options.enabled&&s.bubbleLegend&&(s.render(),s.retranslateItems(s.getLinesHeights())))})}),e(t,"parts-more/BubbleSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(t,e){var g=e.arrayMax,y=e.arrayMin,b=e.clamp,o=e.extend,v=e.isNumber,x=e.pick,w=e.pInt,n=(e=t.Axis,t.color),i=t.noop,s=t.Point,r=t.Series,l=t.seriesType,a=t.seriesTypes;l("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",bubblePadding:!0,zoneAxis:"z",directTouch:!0,isBubble:!0,pointAttribs:function(t,e){var i=this.options.marker.fillOpacity;return t=r.prototype.pointAttribs.call(this,t,e),1!==i&&(t.fill=n(t.fill).setOpacity(i).get("rgba")),t},getRadii:function(t,e,i){var n=this.zData,s=this.yData,o=i.minPxSize,a=i.maxPxSize,r=[],l=0;for(i=n.length;l<i;l++){var h=n[l];r.push(this.getRadius(t,e,o,a,h,s[l]))}this.radii=r},getRadius:function(t,e,i,n,s,o){var a=this.options,c="width"!==a.sizeBy,r=a.zThreshold,l=e-t,h=.5;if(null===o||null===s)return null;if(v(s)){if(a.sizeByAbsoluteValue&&(s=Math.abs(s-r),l=Math.max(e-r,Math.abs(t-r)),t=0),s<t)return i/2-1;0<l&&(h=(s-t)/l)}return c&&0<=h&&(h=Math.sqrt(h)),Math.ceil(i+h*(n-i))/2},animate:function(t){!t&&this.points.length<this.options.animationLimit&&(this.points.forEach(function(t){var e,i=t.graphic;i&&i.width&&(e={x:i.x,y:i.y,width:i.width,height:i.height},i.attr({x:t.plotX,y:t.plotY,width:1,height:1}),i.animate(e,this.options.animation))},this),this.animate=null)},hasData:function(){return!!this.processedXData.length},translate:function(){var t,e=this.data,i=this.radii;for(a.scatter.prototype.translate.call(this),t=e.length;t--;){var n=e[t],s=i?i[t]:0;v(s)&&s>=this.minPxSize/2?(n.marker=o(n.marker,{radius:s,width:2*s,height:2*s}),n.dlBox={x:n.plotX-s,y:n.plotY-s,width:2*s,height:2*s}):n.shapeArgs=n.plotY=n.dlBox=void 0}},alignDataLabel:a.column.prototype.alignDataLabel,buildKDTree:i,applyZones:i},{haloPath:function(t){return s.prototype.haloPath.call(this,0===t?0:(this.marker&&this.marker.radius||0)+t)},ttBelow:!1}),e.prototype.beforePadding=function(){var s=this,t=this.len,e=this.chart,o=0,a=t,r=this.isXAxis,u=r?"xData":"yData",l=this.min,h={},p=Math.min(e.plotWidth,e.plotHeight),c=Number.MAX_VALUE,f=-Number.MAX_VALUE,m=this.max-l,d=t/m,i=[];this.series.forEach(function(t){var n=t.options;!t.bubblePadding||!t.visible&&e.options.chart.ignoreHiddenSeries||(s.allowZoomOutside=!0,i.push(t),r&&(["minSize","maxSize"].forEach(function(t){var e=n[t],i=/%$/.test(e),e=w(e);h[t]=i?p*e/100:e}),t.minPxSize=h.minSize,t.maxPxSize=Math.max(h.maxSize,h.minSize),(t=t.zData.filter(v)).length&&(c=x(n.zMin,b(y(t),!1===n.displayNegative?n.zThreshold:-Number.MAX_VALUE,c)),f=x(n.zMax,Math.max(f,g(t))))))}),i.forEach(function(t){var e,i=t[u],n=i.length;if(r&&t.getRadii(c,f,t),0<m)for(;n--;)v(i[n])&&s.dataMin<=i[n]&&i[n]<=s.max&&(e=t.radii?t.radii[n]:0,o=Math.min((i[n]-l)*d-e,o),a=Math.max((i[n]-l)*d+e,a))}),i.length&&0<m&&!this.isLog&&(a-=t,d*=(t+Math.max(0,o)-Math.min(a,t))/t,[["min","userMin",o],["max","userMax",a]].forEach(function(t){void 0===x(s.options[t[0]],s[t[1]])&&(s[t[0]]+=t[2]/d)}))}}),e(t,"modules/networkgraph/integrations.js",[t["parts/Globals.js"]],function(t){t.networkgraphIntegrations={verlet:{attractiveForceFunction:function(t,e){return(e-t)/t},repulsiveForceFunction:function(t,e){return(e-t)/t*(t<e?1:0)},barycenter:function(){var t=this.options.gravitationalConstant,e=this.barycenter.xFactor,i=this.barycenter.yFactor,e=(e-(this.box.left+this.box.width)/2)*t,i=(i-(this.box.top+this.box.height)/2)*t;this.nodes.forEach(function(t){t.fixedPosition||(t.plotX-=e/t.mass/t.degree,t.plotY-=i/t.mass/t.degree)})},repulsive:function(t,e,i){e=e*this.diffTemperature/t.mass/t.degree,t.fixedPosition||(t.plotX+=i.x*e,t.plotY+=i.y*e)},attractive:function(t,e,i){var n=t.getMass(),s=-i.x*e*this.diffTemperature;e=-i.y*e*this.diffTemperature,t.fromNode.fixedPosition||(t.fromNode.plotX-=s*n.fromNode/t.fromNode.degree,t.fromNode.plotY-=e*n.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.plotX+=s*n.toNode/t.toNode.degree,t.toNode.plotY+=e*n.toNode/t.toNode.degree)},integrate:function(t,e){var i=-t.options.friction,n=t.options.maxSpeed,s=(e.plotX+e.dispX-e.prevX)*i;i*=e.plotY+e.dispY-e.prevY;var o=(a=Math.abs)(s)/(s||1),a=a(i)/(i||1),s=o*Math.min(n,Math.abs(s)),i=a*Math.min(n,Math.abs(i));e.prevX=e.plotX+e.dispX,e.prevY=e.plotY+e.dispY,e.plotX+=s,e.plotY+=i,e.temperature=t.vectorLength({x:s,y:i})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.5)}},euler:{attractiveForceFunction:function(t,e){return t*t/e},repulsiveForceFunction:function(t,e){return e*e/t},barycenter:function(){var i=this.options.gravitationalConstant,n=this.barycenter.xFactor,s=this.barycenter.yFactor;this.nodes.forEach(function(t){var e;t.fixedPosition||(e=t.getDegree(),t.dispX+=(n-t.plotX)*i*(e*=1+e/2)/t.degree,t.dispY+=(s-t.plotY)*i*e/t.degree)})},repulsive:function(t,e,i,n){t.dispX+=i.x/n*e/t.degree,t.dispY+=i.y/n*e/t.degree},attractive:function(t,e,i,n){var s=t.getMass(),o=i.x/n*e;e*=i.y/n,t.fromNode.fixedPosition||(t.fromNode.dispX-=o*s.fromNode/t.fromNode.degree,t.fromNode.dispY-=e*s.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.dispX+=o*s.toNode/t.toNode.degree,t.toNode.dispY+=e*s.toNode/t.toNode.degree)},integrate:function(t,e){e.dispX+=e.dispX*t.options.friction,e.dispY+=e.dispY*t.options.friction;var i=e.temperature=t.vectorLength({x:e.dispX,y:e.dispY});0!==i&&(e.plotX+=e.dispX/i*Math.min(Math.abs(e.dispX),t.temperature),e.plotY+=e.dispY/i*Math.min(Math.abs(e.dispY),t.temperature))},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.3)}}}}),e(t,"modules/networkgraph/QuadTree.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(t,e){e=e.extend;var s=t.QuadTreeNode=function(t){this.box=t,this.boxSize=Math.min(t.width,t.height),this.nodes=[],this.body=this.isInternal=!1,this.isEmpty=!0};e(s.prototype,{insert:function(t,e){this.isInternal?this.nodes[this.getBoxPosition(t)].insert(t,e-1):(this.isEmpty=!1,this.body?e?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,e-1),this.body=!0),this.nodes[this.getBoxPosition(t)].insert(t,e-1)):((e=new s({top:t.plotX,left:t.plotY,width:.1,height:.1})).body=t,e.isInternal=!1,this.nodes.push(e)):(this.isInternal=!1,this.body=t))},updateMassAndCenter:function(){var e=0,i=0,n=0;this.isInternal?(this.nodes.forEach(function(t){t.isEmpty||(e+=t.mass,i+=t.plotX*t.mass,n+=t.plotY*t.mass)}),i/=e,n/=e):this.body&&(e=this.body.mass,i=this.body.plotX,n=this.body.plotY),this.mass=e,this.plotX=i,this.plotY=n},divideBox:function(){var t=this.box.width/2,e=this.box.height/2;this.nodes[0]=new s({left:this.box.left,top:this.box.top,width:t,height:e}),this.nodes[1]=new s({left:this.box.left+t,top:this.box.top,width:t,height:e}),this.nodes[2]=new s({left:this.box.left+t,top:this.box.top+e,width:t,height:e}),this.nodes[3]=new s({left:this.box.left,top:this.box.top+e,width:t,height:e})},getBoxPosition:function(t){var e=t.plotY<this.box.top+this.box.height/2;return t.plotX<this.box.left+this.box.width/2?e?0:3:e?1:2}}),e((t=t.QuadTree=function(t,e,i,n){this.box={left:t,top:e,width:i,height:n},this.maxDepth=25,this.root=new s(this.box,"0"),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}).prototype,{insertNodes:function(t){t.forEach(function(t){this.root.insert(t,this.maxDepth)},this)},visitNodeRecursive:function(t,e,i){var n;t=t||this.root,!1!==(n=t===this.root&&e?e(t):n)&&(t.nodes.forEach(function(t){if(t.isInternal){if(!1===(n=e?e(t):n))return;this.visitNodeRecursive(t,e,i)}else t.body&&e&&e(t.body);i&&i(t)},this),t===this.root&&i&&i(t))},calculateMassAndCenter:function(){this.visitNodeRecursive(null,null,function(t){t.updateMassAndCenter()})}})}),e(t,"modules/networkgraph/layouts.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(n,t){var s=t.clamp,e=t.defined,i=t.extend,r=t.pick,o=t.setAnimation,a=(t=n.addEvent,n.Chart);n.layouts={"reingold-fruchterman":function(){}},i(n.layouts["reingold-fruchterman"].prototype,{init:function(t){this.options=t,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=n.networkgraphIntegrations[t.integration],this.attractiveForce=r(t.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=r(t.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=t.approximation},start:function(){var t=this.series,e=this.options;this.currentStep=0,this.forces=t[0]&&t[0].forces||[],this.initialRendering&&(this.initPositions(),t.forEach(function(t){t.render()})),this.setK(),this.resetSimulation(e),e.enableSimulation&&this.step()},step:function(){var e=this,t=this.series,i=this.options;e.currentStep++,"barnes-hut"===e.approximation&&(e.createQuadTree(),e.quadTree.calculateMassAndCenter()),e.forces.forEach(function(t){e[t+"Forces"](e.temperature)}),e.applyLimits(e.temperature),e.temperature=e.coolDown(e.startTemperature,e.diffTemperature,e.currentStep),e.prevSystemTemperature=e.systemTemperature,e.systemTemperature=e.getSystemTemperature(),i.enableSimulation&&(t.forEach(function(t){t.chart&&t.render()}),e.maxIterations--&&isFinite(e.temperature)&&!e.isStable()?(e.simulation&&n.win.cancelAnimationFrame(e.simulation),e.simulation=n.win.requestAnimationFrame(function(){e.step()})):e.simulation=!1)},stop:function(){this.simulation&&n.win.cancelAnimationFrame(this.simulation)},setArea:function(t,e,i,n){this.box={left:t,top:e,width:i,height:n}},setK:function(){this.k=this.options.linkLength||this.integration.getK(this)},addElementsToCollection:function(t,e){t.forEach(function(t){-1===e.indexOf(t)&&e.push(t)})},removeElementFromCollection:function(t,e){-1!==(t=e.indexOf(t))&&e.splice(t,1)},clear:function(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()},resetSimulation:function(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()},setMaxIterations:function(t){this.maxIterations=r(t,this.options.maxIterations)},setTemperature:function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)},setDiffTemperature:function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)},setInitialRendering:function(t){this.initialRendering=t},createQuadTree:function(){this.quadTree=new n.QuadTree(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)},initPositions:function(){var t=this.options.initialPositions;n.isFunction(t)?(t.call(this),this.nodes.forEach(function(t){e(t.prevX)||(t.prevX=t.plotX),e(t.prevY)||(t.prevY=t.plotY),t.dispX=0,t.dispY=0})):"circle"===t?this.setCircularPositions():this.setRandomPositions()},setCircularPositions:function(){var i=this.box,t=this.nodes,n=2*Math.PI/(t.length+1),e=t.filter(function(t){return 0===t.linksTo.length}),s=[],o={},a=this.options.initialPositionRadius;e.forEach(function(t){s.push(t),function e(t){t.linksFrom.forEach(function(t){o[t.toNode.id]||(o[t.toNode.id]=!0,s.push(t.toNode),e(t.toNode))})}(t)}),s.length?t.forEach(function(t){-1===s.indexOf(t)&&s.push(t)}):s=t,s.forEach(function(t,e){t.plotX=t.prevX=r(t.plotX,i.width/2+a*Math.cos(e*n)),t.plotY=t.prevY=r(t.plotY,i.height/2+a*Math.sin(e*n)),t.dispX=0,t.dispY=0})},setRandomPositions:function(){function i(t){return(t=t*t/Math.PI)-Math.floor(t)}var n=this.box,t=this.nodes,s=t.length+1;t.forEach(function(t,e){t.plotX=t.prevX=r(t.plotX,n.width*i(e)),t.plotY=t.prevY=r(t.plotY,n.height*i(s+e)),t.dispX=0,t.dispY=0})},force:function(t){this.integration[t].apply(this,Array.prototype.slice.call(arguments,1))},barycenterForces:function(){this.getBarycenter(),this.force("barycenter")},getBarycenter:function(){var e=0,i=0,n=0;return this.nodes.forEach(function(t){i+=t.plotX*t.mass,n+=t.plotY*t.mass,e+=t.mass}),this.barycenter={x:i,y:n,xFactor:i/e,yFactor:n/e}},barnesHutApproximation:function(t,e){var i,n,s=this.getDistXY(t,e),o=this.vectorLength(s);return t!==e&&0!==o&&(e.isInternal?n=!(e.boxSize/o<this.options.theta&&0!==o)||(i=this.repulsiveForce(o,this.k),this.force("repulsive",t,i*e.mass,s,o),!1):(i=this.repulsiveForce(o,this.k),this.force("repulsive",t,i*e.mass,s,o))),n},repulsiveForces:function(){var o=this;"barnes-hut"===o.approximation?o.nodes.forEach(function(e){o.quadTree.visitNodeRecursive(null,function(t){return o.barnesHutApproximation(e,t)})}):o.nodes.forEach(function(s){o.nodes.forEach(function(t){var e,i,n;s===t||s.fixedPosition||(e=o.getDistXY(s,t),0!==(i=o.vectorLength(e))&&(n=o.repulsiveForce(i,o.k),o.force("repulsive",s,n*t.mass,e,i)))})})},attractiveForces:function(){var e,i,n,s=this;s.links.forEach(function(t){t.fromNode&&t.toNode&&(e=s.getDistXY(t.fromNode,t.toNode),0!==(i=s.vectorLength(e))&&(n=s.attractiveForce(i,s.k),s.force("attractive",t,n,e,i)))})},applyLimits:function(){var e=this;e.nodes.forEach(function(t){t.fixedPosition||(e.integration.integrate(e,t),e.applyLimitBox(t,e.box),t.dispX=0,t.dispY=0)})},applyLimitBox:function(t,e){var i=t.radius;t.plotX=s(t.plotX,e.left+i,e.width-i),t.plotY=s(t.plotY,e.top+i,e.height-i)},coolDown:function(t,e,i){return t-e*i},isStable:function(){return Math.abs(this.systemTemperature-this.prevSystemTemperature)<1e-5||this.temperature<=0},getSystemTemperature:function(){return this.nodes.reduce(function(t,e){return t+e.temperature},0)},vectorLength:function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},getDistR:function(t,e){return t=this.getDistXY(t,e),this.vectorLength(t)},getDistXY:function(t,e){var i=t.plotX-e.plotX;return{x:i,y:t=t.plotY-e.plotY,absX:Math.abs(i),absY:Math.abs(t)}}}),t(a,"predraw",function(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(t){t.stop()})}),t(a,"render",function(){function t(t){t.maxIterations--&&isFinite(t.temperature)&&!t.isStable()&&!t.options.enableSimulation&&(t.beforeStep&&t.beforeStep(),t.step(),e=!(i=!1))}var e=!1;if(this.graphLayoutsLookup){for(o(!1,this),this.graphLayoutsLookup.forEach(function(t){t.start()});!i;){var i=!0;this.graphLayoutsLookup.forEach(t)}e&&this.series.forEach(function(t){t&&t.layout&&t.render()})}})}),e(t,"modules/networkgraph/draggable-nodes.js",[t["parts/Globals.js"]],function(t){var e=t.Chart,o=t.addEvent;t.dragNodesMixin={onMouseDown:function(t,e){e=this.chart.pointer.normalize(e),t.fixedPosition={chartX:e.chartX,chartY:e.chartY,plotX:t.plotX,plotY:t.plotY},t.inDragMode=!0},onMouseMove:function(t,e){var i,n;t.fixedPosition&&t.inDragMode&&(n=(i=this.chart).pointer.normalize(e),e=t.fixedPosition.chartX-n.chartX,n=t.fixedPosition.chartY-n.chartY,(5<Math.abs(e)||5<Math.abs(n))&&(e=t.fixedPosition.plotX-e,n=t.fixedPosition.plotY-n,i.isInsidePlot(e,n)&&(t.plotX=e,t.plotY=n,t.hasDragged=!0,this.redrawHalo(t),this.layout.simulation?this.layout.resetSimulation():(this.layout.setInitialRendering(!1),this.layout.enableSimulation?this.layout.start():this.layout.setMaxIterations(1),this.chart.redraw(),this.layout.setInitialRendering(!0)))))},onMouseUp:function(t,e){t.fixedPosition&&t.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw(),t.inDragMode=t.hasDragged=!1,this.options.fixedDraggable||delete t.fixedPosition)},redrawHalo:function(t){t&&this.halo&&this.halo.attr({d:t.haloPath(this.options.states.hover.halo.size)})}},o(e,"load",function(){var t,i,n,s=this;s.container&&(t=o(s.container,"mousedown",function(t){var e=s.hoverPoint;e&&e.series&&e.series.hasDraggableNodes&&e.series.options.draggable&&(e.series.onMouseDown(e,t),i=o(s.container,"mousemove",function(t){return e&&e.series&&e.series.onMouseMove(e,t)}),n=o(s.container.ownerDocument,"mouseup",function(t){return i(),n(),e&&e.series&&e.series.onMouseUp(e,t)}))})),o(s,"destroy",function(){t()})})}),e(t,"parts-more/PackedBubbleSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(o,t){var p=t.clamp,l=t.defined,h=t.extend,a=t.extendClass,r=t.isArray,d=t.isNumber,c=t.pick,i=(t=o.seriesType,o.Series),u=o.Point,e=o.addEvent,f=o.fireEvent,m=o.Chart,g=o.Color,n=o.layouts["reingold-fruchterman"],y=o.seriesTypes.bubble.prototype.pointClass,s=o.dragNodesMixin;o.networkgraphIntegrations.packedbubble={repulsiveForceFunction:function(t,e,i,n){return Math.min(t,(i.marker.radius+n.marker.radius)/2)},barycenter:function(){var e,i,n=this,s=n.options.gravitationalConstant,o=n.box,a=n.nodes;a.forEach(function(t){i=n.options.splitSeries&&!t.isParentNode?(e=t.series.parentNode.plotX,t.series.parentNode.plotY):(e=o.width/2,o.height/2),t.fixedPosition||(t.plotX-=(t.plotX-e)*s/(t.mass*Math.sqrt(a.length)),t.plotY-=(t.plotY-i)*s/(t.mass*Math.sqrt(a.length)))})},repulsive:function(t,e,i,n){var s=e*this.diffTemperature/t.mass/t.degree;e=i.x*s,i=i.y*s,t.fixedPosition||(t.plotX+=e,t.plotY+=i),n.fixedPosition||(n.plotX-=e,n.plotY-=i)},integrate:o.networkgraphIntegrations.verlet.integrate,getK:o.noop},o.layouts.packedbubble=a(n,{beforeStep:function(){this.options.marker&&this.series.forEach(function(t){t&&t.calculateParentRadius()})},setCircularPositions:function(){var i,n,s=this,o=s.box,t=s.nodes,a=2*Math.PI/(t.length+1),r=s.options.initialPositionRadius;t.forEach(function(t,e){n=s.options.splitSeries&&!t.isParentNode?(i=t.series.parentNode.plotX,t.series.parentNode.plotY):(i=o.width/2,o.height/2),t.plotX=t.prevX=c(t.plotX,i+r*Math.cos(t.index||e*a)),t.plotY=t.prevY=c(t.plotY,n+r*Math.sin(t.index||e*a)),t.dispX=0,t.dispY=0})},repulsiveForces:function(){var i,n,s,o=this,a=o.options.bubblePadding;o.nodes.forEach(function(e){e.degree=e.mass,e.neighbours=0,o.nodes.forEach(function(t){i=0,e===t||e.fixedPosition||!o.options.seriesInteraction&&e.series!==t.series||(s=o.getDistXY(e,t),(n=o.vectorLength(s)-(e.marker.radius+t.marker.radius+a))<0&&(e.degree+=.01,e.neighbours++,i=o.repulsiveForce(-n/Math.sqrt(e.neighbours),o.k,e,t)),o.force("repulsive",e,i*t.mass,s,t,n))})})},applyLimitBox:function(t){var e,i;this.options.splitSeries&&!t.isParentNode&&this.options.parentNodeLimit&&(e=this.getDistXY(t,t.series.parentNode),(i=t.series.parentNodeRadius-t.marker.radius-this.vectorLength(e))<0&&i>-2*t.marker.radius&&(t.plotX-=.01*e.x,t.plotY-=.01*e.y)),n.prototype.applyLimitBox.apply(this,arguments)},isStable:function(){return Math.abs(this.systemTemperature-this.prevSystemTemperature)<1e-5||this.temperature<=0||0<this.systemTemperature&&this.systemTemperature/this.nodes.length<.02&&this.enableSimulation}}),t("packedbubble","bubble",{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,dataLabels:{formatter:function(){return this.point.value},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:1,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}},{hasDraggableNodes:!0,forces:["barycenter","repulsive"],pointArrayMap:["value"],pointValKey:"value",isCartesian:!1,requireSorting:!1,directTouch:!0,axisTypes:[],noSharedTooltip:!0,searchPoint:o.noop,accumulateAllPoints:function(t){for(var e,i=t.chart,n=[],s=0;s<i.series.length;s++)if((t=i.series[s]).visible||!i.options.chart.ignoreHiddenSeries)for(e=0;e<t.yData.length;e++)n.push([null,null,t.yData[e],t.index,e,{id:e,marker:{radius:0}}]);return n},init:function(){return i.prototype.init.apply(this,arguments),e(this,"updatedData",function(){this.chart.series.forEach(function(t){t.type===this.type&&(t.isDirty=!0)},this)}),this},render:function(){var e=[];i.prototype.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach(function(t){r(t.dataLabels)&&t.dataLabels.forEach(function(t){e.push(t)})}),this.chart.hideOverlappingLabels(e))},setVisible:function(){var e=this;i.prototype.setVisible.apply(e,arguments),e.parentNodeLayout&&e.graph?e.visible?(e.graph.show(),e.parentNode.dataLabel&&e.parentNode.dataLabel.show()):(e.graph.hide(),e.parentNodeLayout.removeElementFromCollection(e.parentNode,e.parentNodeLayout.nodes),e.parentNode.dataLabel&&e.parentNode.dataLabel.hide()):e.layout&&(e.visible?e.layout.addElementsToCollection(e.points,e.layout.nodes):e.points.forEach(function(t){e.layout.removeElementFromCollection(t,e.layout.nodes)}))},drawDataLabels:function(){var t=this.options.dataLabels.textPath,e=this.points;i.prototype.drawDataLabels.apply(this,arguments),this.parentNode&&(this.parentNode.formatPrefix="parentNode",this.points=[this.parentNode],this.options.dataLabels.textPath=this.options.dataLabels.parentNodeTextPath,i.prototype.drawDataLabels.apply(this,arguments),this.points=e,this.options.dataLabels.textPath=t)},seriesBox:function(){var e,t=this.chart,i=Math.max,n=Math.min,s=[t.plotLeft,t.plotLeft+t.plotWidth,t.plotTop,t.plotTop+t.plotHeight];return this.data.forEach(function(t){l(t.plotX)&&l(t.plotY)&&t.marker.radius&&(e=t.marker.radius,s[0]=n(s[0],t.plotX-e),s[1]=i(s[1],t.plotX+e),s[2]=n(s[2],t.plotY-e),s[3]=i(s[3],t.plotY+e))}),d(s.width/s.height)?s:null},calculateParentRadius:function(){var t=this.seriesBox();this.parentNodeRadius=p(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,t?Math.max(Math.sqrt(Math.pow(t.width,2)+Math.pow(t.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)},drawGraph:function(){var t,e,i;this.layout&&this.layout.options.splitSeries&&(t=this.chart,e={fill:(e=this.layout.options.parentNodeOptions.marker).fillColor||g(this.color).brighten(.4).get(),opacity:e.fillOpacity,stroke:e.lineColor||this.color,"stroke-width":e.lineWidth},i=this.visible?"inherit":"hidden",this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",i,.1,t.seriesGroup),this.group.attr({zIndex:2})),this.calculateParentRadius(),i=o.merge({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},e),this.parentNode.graphic||(this.graph=this.parentNode.graphic=t.renderer.symbol(e.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(i))},createParentNodes:function(){var e,i=this,t=i.chart,n=i.parentNodeLayout,s=i.parentNode;i.parentNodeMass=0,i.points.forEach(function(t){i.parentNodeMass+=Math.PI*Math.pow(t.marker.radius,2)}),i.calculateParentRadius(),n.nodes.forEach(function(t){t.seriesIndex===i.index&&(e=!0)}),n.setArea(0,0,t.plotWidth,t.plotHeight),e||(s=s||(new y).init(this,{mass:i.parentNodeRadius/2,marker:{radius:i.parentNodeRadius},dataLabels:{inside:!1},dataLabelOnNull:!0,degree:i.parentNodeRadius,isParentNode:!0,seriesIndex:i.index}),i.parentNode&&(s.plotX=i.parentNode.plotX,s.plotY=i.parentNode.plotY),i.parentNode=s,n.addElementsToCollection([i],n.series),n.addElementsToCollection([s],n.nodes))},addSeriesLayout:function(){var t=this.options.layoutAlgorithm,e=this.chart.graphLayoutsStorage,i=this.chart.graphLayoutsLookup,n=o.merge(t,t.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),s=e[t.type+"-series"];s||(e[t.type+"-series"]=s=new o.layouts[t.type],s.init(n),i.splice(s.index,0,s)),this.parentNodeLayout=s,this.createParentNodes()},addLayout:function(){var t=this.options.layoutAlgorithm,e=this.chart.graphLayoutsStorage,i=this.chart.graphLayoutsLookup,n=this.chart.options.chart,s=(e||(this.chart.graphLayoutsStorage=e={},this.chart.graphLayoutsLookup=i=[]),e[t.type]);s||(t.enableSimulation=l(n.forExport)?!n.forExport:t.enableSimulation,e[t.type]=s=new o.layouts[t.type],s.init(t),i.splice(s.index,0,s)),this.layout=s,this.points.forEach(function(t){t.mass=2,t.degree=1,t.collisionNmb=1}),s.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),s.addElementsToCollection([this],s.series),s.addElementsToCollection(this.points,s.nodes)},deferLayout:function(){var t=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),t.splitSeries&&this.addSeriesLayout())},translate:function(){var t,e,i,n,s=this.chart,o=this.data,a=this.index,r=this.options.useSimulation;for(this.processedXData=this.xData,this.generatePoints(),l(s.allDataPoints)||(s.allDataPoints=this.accumulateAllPoints(this),this.getPointRadius()),r?e=s.allDataPoints:(e=this.placeBubbles(s.allDataPoints),this.options.draggable=!1),t=0;t<e.length;t++)e[t][3]===a&&(i=o[e[t][4]],n=e[t][2],r||(i.plotX=e[t][0]-s.plotLeft+s.diffX,i.plotY=e[t][1]-s.plotTop+s.diffY),i.marker=h(i.marker,{radius:n,width:2*n,height:2*n}),i.radius=n);r&&this.deferLayout(),f(this,"afterTranslate")},checkOverlap:function(t,e){var i=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(i*i+n*n)-Math.abs(t[2]+e[2])<-.001},positionBubble:function(t,e,i){var n=Math.sqrt,s=Math.asin,o=Math.acos,a=Math.pow,r=Math.abs,n=n(a(t[0]-e[0],2)+a(t[1]-e[1],2)),o=o((a(n,2)+a(i[2]+e[2],2)-a(i[2]+t[2],2))/(2*(i[2]+e[2])*n)),s=s(r(t[0]-e[0])/n);return t=(t[1]-e[1]<0?0:Math.PI)+o+s*((t[0]-e[0])*(t[1]-e[1])<0?1:-1),[e[0]+(e[2]+i[2])*Math.sin(t),e[1]-(e[2]+i[2])*Math.cos(t),i[2],i[3],i[4]]},placeBubbles:function(t){var e,i=this.checkOverlap,n=this.positionBubble,s=[],o=1,a=0,r=0,l=[];if((t=t.sort(function(t,e){return e[2]-t[2]})).length){if(s.push([[0,0,t[0][2],t[0][3],t[0][4]]]),1<t.length)for(s.push([[0,0-t[1][2]-t[0][2],t[1][2],t[1][3],t[1][4]]]),e=2;e<t.length;e++)t[e][2]=t[e][2]||1,i(l=n(s[o][a],s[o-1][r],t[e]),s[o][0])?(s.push([]),s[o+1].push(n(s[o][a],s[o][r=0],t[e])),o++,a=0):1<o&&s[o-1][r+1]&&i(l,s[o-1][r+1])?(s[o].push(n(s[o][a],s[o-1][++r],t[e])),a++):(a++,s[o].push(l));this.chart.stages=s,this.chart.rawPositions=[].concat.apply([],s),this.resizeRadius(),l=this.chart.rawPositions}return l},resizeRadius:function(){for(var t=this.chart,e=t.rawPositions,i=Math.min,n=Math.max,c=t.plotLeft,d=t.plotTop,u=t.plotHeight,p=t.plotWidth,s=l=Number.POSITIVE_INFINITY,o=h=Number.NEGATIVE_INFINITY,a=0;a<e.length;a++)var r=e[a][2],s=i(s,e[a][0]-r),o=n(o,e[a][0]+r),l=i(l,e[a][1]-r),h=n(h,e[a][1]+r);if(i=i.apply([],[(p-c)/(a=[o-s,h-l])[0],(u-d)/a[1]]),1e-10<Math.abs(i-1)){for(a=0;a<e.length;a++)e[a][2]*=i;this.placeBubbles(e)}else t.diffY=u/2+d-l-(h-l)/2,t.diffX=p/2+c-s-(o-s)/2},calculateZExtremes:function(){var t=this.options.zMin,e=this.options.zMax,i=1/0,n=-1/0;return t&&e?[t,e]:(this.chart.series.forEach(function(t){t.yData.forEach(function(t){l(t)&&(n<t&&(n=t),t<i&&(i=t))})}),[t=c(t,i),e=c(e,n)])},getPointRadius:function(){var i,n,s,o=this,t=o.chart,a=o.options,r=a.useSimulation,d=Math.min(t.plotWidth,t.plotHeight),l={},u=[],h=t.allDataPoints,c=(["minSize","maxSize"].forEach(function(t){var e=parseInt(a[t],10),i=/%$/.test(a[t]);l[t]=i?d*e/100:e*Math.sqrt(h.length)}),t.minRadius=i=l.minSize/Math.sqrt(h.length),t.maxRadius=n=l.maxSize/Math.sqrt(h.length),r?o.calculateZExtremes():[i,n]);(h||[]).forEach(function(t,e){s=r?p(t[2],c[0],c[1]):t[2],0===(s=o.getRadius(c[0],c[1],i,n,s))&&(s=null),h[e][2]=s,u.push(s)}),o.radii=u},redrawHalo:s.redrawHalo,onMouseDown:s.onMouseDown,onMouseMove:s.onMouseMove,onMouseUp:function(e){var i,n,t;e.fixedPosition&&!e.removed&&(n=this.layout,(t=this.parentNodeLayout)&&n.options.dragBetweenSeries&&t.nodes.forEach(function(t){e&&e.marker&&t!==e.series.parentNode&&(i=n.getDistXY(e,t),n.vectorLength(i)-t.marker.radius-e.marker.radius<0&&(t.series.addPoint(o.merge(e.options,{plotX:e.plotX,plotY:e.plotY}),!1),n.removeElementFromCollection(e,n.nodes),e.remove()))}),s.onMouseUp.apply(this,arguments))},destroy:function(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(function(t){t.removeElementFromCollection(this,t.series)},this),this.parentNode&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),o.Series.prototype.destroy.apply(this,arguments)},alignDataLabel:o.Series.prototype.alignDataLabel},{destroy:function(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),u.prototype.destroy.apply(this,arguments)}}),e(m,"beforeRedraw",function(){this.allDataPoints&&delete this.allDataPoints})}),e(t,"parts-more/Polar.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(v,x){function t(t,e){var i=this.chart,n=this.options.animation,s=this.group,o=this.markerGroup,a=this.xAxis.center,r=i.plotLeft,l=i.plotTop;i.polar?this.isRadialBar?e||(this.startAngleRad=h(this.translatedThreshold,this.xAxis.startAngleRad),v.seriesTypes.pie.prototype.animate.call(this,e)):i.renderer.isSVG&&(n=v.animObject(n),e?(t={translateX:a[0]+r,translateY:a[1]+l,scaleX:.001,scaleY:.001},s.attr(t),o&&o.attr(t)):(s.animate(t={translateX:r,translateY:l,scaleX:1,scaleY:1},n),o&&o.animate(t,n),this.animate=null)):t.call(this,e)}var w=x.defined,h=x.pick,e=x.splat,i=x.wrap,n=v.Series,s=v.seriesTypes,l=n.prototype,o=v.Pointer.prototype;l.searchPointByAngle=function(t){var e=this.chart,i=this.xAxis.pane.center;return this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(t.chartX-i[0]-e.plotLeft,t.chartY-i[1]-e.plotTop)})},l.getConnectors=function(t,e,c,i){var n=i?1:0,s=0<=e&&e<=t.length-1?e:e<0?t.length-1+e:0,o=(e=s-1<0?t.length-(1+n):s-1,n=s+1>t.length-1?n:s+1,t[e]),n=t[n],a=o.plotX,o=o.plotY,r=n.plotX,l=n.plotY,h=(a=(1.5*(n=t[s].plotX)+a)/2.5,o=(1.5*(s=t[s].plotY)+o)/2.5,r=(1.5*n+r)/2.5,(1.5*s+l)/2.5),l=Math.sqrt(Math.pow(a-n,2)+Math.pow(o-s,2)),d=Math.sqrt(Math.pow(r-n,2)+Math.pow(h-s,2)),a=Math.atan2(o-s,a-n),h=Math.PI/2+(a+Math.atan2(h-s,r-n))/2;return Math.abs(a-h)>Math.PI/2&&(h-=Math.PI),a=n+Math.cos(h)*l,o=s+Math.sin(h)*l,n={rightContX:n+Math.cos(Math.PI+h)*d,rightContY:h=s+Math.sin(Math.PI+h)*d,leftContX:a,leftContY:o,plotX:n,plotY:s},c&&(n.prevPointCont=this.getConnectors(t,e,!1,i)),n},l.toXY=function(t){var e=this.chart,i=this.xAxis,n=this.yAxis,s=t.plotX,o=t.plotY,a=t.series,r=e.inverted,l=t.y;r&&a&&!a.isRadialBar&&(t.plotY=o="number"==typeof l&&n.translate(l)||0),t.rectPlotX=s,t.rectPlotY=o,n=r?i.postTranslate(o,s):i.postTranslate(s,n.len-o),t.plotX=t.polarPlotX=n.x-e.plotLeft,t.plotY=t.polarPlotY=n.y-e.plotTop,this.kdByAngle?((e=(s/Math.PI*180+i.pane.options.startAngle)%360)<0&&(e+=360),t.clientX=e):t.clientX=t.plotX},s.spline&&(i(s.spline.prototype,"getPointSpline",function(t,e,i,n){return t=this.chart.polar?n?["C",(t=this.getConnectors(e,n,!0,this.connectEnds)).prevPointCont.rightContX,t.prevPointCont.rightContY,t.leftContX,t.leftContY,t.plotX,t.plotY]:["M",i.plotX,i.plotY]:t.call(this,e,i,n)}),s.areasplinerange&&(s.areasplinerange.prototype.getPointSpline=s.spline.prototype.getPointSpline)),v.addEvent(n,"afterTranslate",function(){var e=this.chart;if(e.polar&&this.xAxis){if((this.kdByAngle=e.tooltip&&e.tooltip.shared)?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy="xy",!this.preventPostTranslate)for(var t=this.points,i=t.length;i--;)this.toXY(t[i]),!e.hasParallelCoordinates&&!this.yAxis.reversed&&t[i].y<this.yAxis.min&&(t[i].isNull=!0);this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(v.addEvent(this,"afterRender",function(){var t;e.polar&&(t=this.yAxis.center,this.clipCircle?this.clipCircle.animate({x:t[0],y:t[1],r:t[2]/2}):this.clipCircle=e.renderer.clipCircle(t[0],t[1],t[2]/2),this.group.clip(this.clipCircle),this.setClip=v.noop)})))}},{order:2}),i(l,"getGraphPath",function(t,e){var i,n,s=this;if(this.chart.polar){for(e=e||this.points,i=0;i<e.length;i++)if(!e[i].isNull){var o=i;break}!1!==this.options.connectEnds&&void 0!==o&&(this.connectEnds=!0,e.splice(e.length,0,e[o]),n=!0),e.forEach(function(t){void 0===t.polarPlotY&&s.toXY(t)})}return i=t.apply(this,[].slice.call(arguments,1)),n&&e.pop(),i});i(l,"animate",t),s.column&&((n=s.column.prototype).polarArc=function(t,e,i,n){var s=this.xAxis.center,o=this.yAxis.len;return this.chart.renderer.symbols.arc(s[0],s[1],o-e,null,{start:i,end:n,innerR:o-h(t,o)})},i(n,"animate",t),i(n,"translate",function(c){var d=(o=this.options).stacking,u=this.chart,p=this.xAxis,t=this.yAxis,f=t.reversed,m=p.center,e=p.startAngleRad,g=p.endAngleRad-e;if(this.preventPostTranslate=!0,c.call(this),p.isRadial){var i,y=(c=this.points).length,n=t.translate(t.min),s=t.translate(t.max);for(o=o.threshold||0,u.inverted&&v.isNumber(o)&&(i=t.translate(o),w(i)&&(i<0?i=0:g<i&&(i=g),this.translatedThreshold=i+e));y--;){var o,a,r,l=(o=c[y]).barX,b=o.x,h=o.y;u.inverted?(o.shapeType="arc",o.plotY=t.translate(h),d?(h=t.stacks[(h<0?"-":"")+this.stackKey],this.visible&&h&&h[b]&&!o.isNull&&(r=h[b].points[this.getStackIndicator(void 0,b,this.index).key],a=t.translate(r[0]),r=t.translate(r[1]),w(a)&&(a=x.clamp(a,0,g)))):(a=i,r=o.plotY),r<a&&(r=[a,a=r][0]),f?n<r?r=n:a<s?a=s:(n<a||r<s)&&(a=r=g):a<n?a=n:s<r?r=s:(r<n||s<a)&&(a=r=0),t.min>t.max&&(a=r=f?g:0),a+=e,r+=e,b=Math.max(l,0),l=Math.max(l+o.pointWidth,0),o.shapeArgs={x:m[0],y:m[1],r:l,innerR:b,start:a,end:r},o.opacity=a===r?0:void 0,o.plotY=(w(this.translatedThreshold)&&(a<this.translatedThreshold?a:r))-e):(o.shapeType="path",o.shapeArgs={d:this.polarArc(o.yBottom,o.plotY,a=l+e,a+o.pointWidth)}),this.toXY(o),u.inverted?(l=p.postTranslate(o.rectPlotY,o.barX+o.pointWidth/2),o.tooltipPos=[l.x-u.plotLeft,l.y-u.plotTop]):o.tooltipPos=[o.plotX,o.plotY],o.ttBelow=o.plotY>m[1]}}}),n.findAlignments=function(t,e){return null===e.align&&(e.align=20<t&&t<160?"left":200<t&&t<340?"right":"center"),null===e.verticalAlign&&(e.verticalAlign=t<45||315<t?"bottom":135<t&&t<225?"top":"middle"),e},i(n,"alignDataLabel",function(t,e,i,n,s,o){var a=this.chart,r=h(n.inside,!!this.options.stacking);a.polar?(t=e.rectPlotX/Math.PI*180,a.inverted?(this.forceDL=a.isInsidePlot(e.plotX,Math.round(e.plotY),!1),r&&e.shapeArgs?(s=e.shapeArgs,s={x:(s=this.xAxis.postTranslate((s.start+s.end)/2-this.xAxis.startAngleRad,e.barX+e.pointWidth/2)).x-a.plotLeft,y:s.y-a.plotTop}):e.tooltipPos&&(s={x:e.tooltipPos[0],y:e.tooltipPos[1]}),n.align=h(n.align,"center"),n.verticalAlign=h(n.verticalAlign,"middle")):n=this.findAlignments(t,n),l.alignDataLabel.call(this,e,i,n,s,o),this.isRadialBar&&e.shapeArgs&&e.shapeArgs.start===e.shapeArgs.end&&i.hide(!0)):t.call(this,e,i,n,s,o)})),i(o,"getCoordinates",function(t,s){var o=this.chart,a={xAxis:[],yAxis:[]};return o.polar?o.axes.forEach(function(t){var e,i=t.isXAxis,n=t.center;"colorAxis"!==t.coll&&(e=s.chartX-n[0]-o.plotLeft,n=s.chartY-n[1]-o.plotTop,a[i?"xAxis":"yAxis"].push({axis:t,value:t.translate(i?Math.PI-Math.atan2(e,n):Math.sqrt(Math.pow(e,2)+Math.pow(n,2)),!0)}))}):a=t.call(this,s),a}),v.SVGRenderer.prototype.clipCircle=function(t,e,i){var n=v.uniqueKey(),s=this.createElement("clipPath").attr({id:n}).add(this.defs);return(t=this.circle(t,e,i).add(s)).id=n,t.clipPath=s,t},v.addEvent(v.Chart,"getAxes",function(){this.pane||(this.pane=[]),e(this.options.pane).forEach(function(t){new v.Pane(t,this)},this)}),v.addEvent(v.Chart,"afterDrawChartBox",function(){this.pane.forEach(function(t){t.render()})}),v.addEvent(v.Series,"afterInit",function(){var t=this.chart;t.inverted&&t.polar&&(this.isRadialSeries=!0,this instanceof s.column&&(this.isRadialBar=!0))}),i(v.Chart.prototype,"get",function(t,e){return v.find(this.pane,function(t){return t.options.id===e})||t.call(this,e)})}),e(t,"masters/highcharts-more.src.js",[],function(){})}),function(e){"object"==typeof module&&module.exports?module.exports=e.default=e:"function"==typeof define&&define.amd?define("highcharts/modules/solid-gauge",["highcharts","highcharts/highcharts-more"],function(t){return e(t),e.Highcharts=t,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){function e(t,e,i,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,i))}e(t=t?t._modules:{},"modules/solid-gauge.src.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(r,t){var f=t.clamp,m=t.extend,i=t.isNumber,g=t.pick,y=t.pInt,e=((t=t.wrap)(r.Renderer.prototype.symbols,"arc",function(t,e,i,n,s,o){return t=t(e,i,n,s,o),o.rounded&&(o=["A",n=((o.r||n)-o.innerR)/2,n,0,1,1,t[12],t[13]],t.splice.apply(t,[t.length-1,0].concat(["A",n,n,0,1,1,t[1],t[2]])),t.splice.apply(t,[11,3].concat(o))),t}),{initDataClasses:function(i){var n,s=this.chart,o=0,a=this.options;this.dataClasses=n=[],i.dataClasses.forEach(function(t,e){t=r.merge(t),n.push(t),t.color||("category"===a.dataClassColor?(e=s.options.colors,t.color=e[o++],o===e.length&&(o=0)):t.color=r.color(a.minColor).tweenTo(r.color(a.maxColor),e/(i.dataClasses.length-1)))})},initStops:function(t){this.stops=t.stops||[[0,this.options.minColor],[1,this.options.maxColor]],this.stops.forEach(function(t){t.color=r.color(t[1])})},toColor:function(t,e){var i,n=this.stops,s=this.dataClasses;if(s)for(i=s.length;i--;){var o=s[i],a=o.from,n=o.to;if((void 0===a||a<=t)&&(void 0===n||t<=n)){var r=o.color;e&&(e.dataClass=i);break}}else{for(this.isLog&&(t=this.val2lin(t)),t=1-(this.max-t)/(this.max-this.min),i=n.length;i--&&!(t>n[i][0]););a=n[i]||n[i+1],t=1-((n=n[i+1]||a)[0]-t)/(n[0]-a[0]||1),r=a.color.tweenTo(n.color,t)}return r}});r.seriesType("solidgauge","gauge",{colorByPoint:!0,dataLabels:{y:0}},{drawLegendSymbol:r.LegendSymbolMixin.drawRectangle,translate:function(){var t=this.yAxis;m(t,e),!t.dataClasses&&t.options.dataClasses&&t.initDataClasses(t.options),t.initStops(t.options),r.seriesTypes.gauge.prototype.translate.call(this)},drawPoints:function(){var t,l=this,h=l.yAxis,c=h.center,d=l.options,u=l.chart.renderer,e=d.overshoot,p=i(e)?e/180*Math.PI:0;i(d.threshold)&&(t=h.startAngleRad+h.translate(d.threshold,null,null,null,!0)),this.thresholdAngleRad=g(t,h.startAngleRad),l.points.forEach(function(t){var e,i,n,s,o,a,r;t.isNull||(e=t.graphic,i=h.startAngleRad+h.translate(t.y,null,null,null,!0),n=y(g(t.options.radius,d.radius,100))*c[2]/200,s=y(g(t.options.innerRadius,d.innerRadius,60))*c[2]/200,o=h.toColor(t.y,t),a=Math.min(h.startAngleRad,h.endAngleRad),r=Math.max(h.startAngleRad,h.endAngleRad),"none"!==(o="none"===o?t.color||l.color||"none":o)&&(t.color=o),i=f(i,a-p,r+p),!1===d.wrap&&(i=f(i,a,r)),a=Math.min(i,l.thresholdAngleRad),(i=Math.max(i,l.thresholdAngleRad))-a>2*Math.PI&&(i=a+2*Math.PI),t.shapeArgs=s={x:c[0],y:c[1],r:n,innerR:s,start:a,end:i,rounded:d.rounded},t.startR=n,e?(n=s.d,e.animate(m({fill:o},s)),n&&(s.d=n)):t.graphic=e=u.arc(s).attr({fill:o,"sweep-flag":0}).add(l.group),l.chart.styledMode||("square"!==d.linecap&&e.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),e.attr({stroke:d.borderColor||"none","stroke-width":d.borderWidth||0})),e&&e.addClass(t.getClassName(),!0))})},animate:function(t){t||(this.startAngleRad=this.thresholdAngleRad,r.seriesTypes.pie.prototype.animate.call(this,t))}})}),e(t,"masters/modules/solid-gauge.src.js",[],function(){})}),function(e){"object"==typeof module&&module.exports?module.exports=e.default=e:"function"==typeof define&&define.amd?define("highcharts/modules/accessibility",["highcharts"],function(t){return e(t),e.Highcharts=t,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){function e(t,e,i,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,i))}e(t=t?t._modules:{},"modules/accessibility/utils/htmlUtilities.js",[t["parts/Globals.js"]],function(t){function s(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}var e=t.merge,i=t.win,n=i.document;return{addClass:function(t,e){t.classList?t.classList.add(e):t.className.indexOf(e)<0&&(t.className+=e)},escapeStringForHTML:s,getElement:function(t){return n.getElementById(t)},getFakeMouseEvent:function(t){if("function"==typeof i.MouseEvent)return new i.MouseEvent(t);if(n.createEvent){var e=n.createEvent("MouseEvent");if(e.initMouseEvent)return e.initMouseEvent(t,!0,!0,i,"click"===t?1:0,0,0,0,0,!1,!1,!1,!1,0,null),e}return{type:t}},removeElement:function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},reverseChildNodes:function(t){for(var e=t.childNodes.length;e--;)t.appendChild(t.childNodes[e])},setElAttrs:function(i,n){Object.keys(n).forEach(function(t){var e=n[t];null===e?i.removeAttribute(t):(e=s(""+e),i.setAttribute(t,e))})},stripHTMLTagsFromString:function(t){return"string"==typeof t?t.replace(/<\/?[^>]+(>|$)/g,""):t},visuallyHideElement:function(t){e(!0,t.style,{position:"absolute",width:"1px",height:"1px",overflow:"hidden","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:"0.01"})}}}),e(t,"modules/accessibility/utils/chartUtilities.js",[t["modules/accessibility/utils/htmlUtilities.js"],t["parts/Globals.js"]],function(t,e){function i(t){if(t.points&&t.points.length&&t.points[0].graphic)return t.points[0].graphic.element}function n(t){var e=i(t);return e&&e.parentNode||t.graph&&t.graph.element||t.group&&t.group.element}var s=t.stripHTMLTagsFromString,o=e.find;return{getChartTitle:function(t){return s(t.options.title.text||t.langFormat("accessibility.defaultChartTitle",{chart:t}))},getAxisDescription:function(t){return s(t&&(t.userOptions&&t.userOptions.accessibility&&t.userOptions.accessibility.description||t.axisTitle&&t.axisTitle.textStr||t.options.id||t.categories&&"categories"||t.isDatetimeAxis&&"Time"||"values"))},getPointFromXY:function(t,e,i){for(var n,s=t.length;s--;)if(n=o(t[s].points||[],function(t){return t.x===e&&t.y===i}))return n},getSeriesFirstPointElement:i,getSeriesFromName:function(t,e){return e?(t.series||[]).filter(function(t){return t.name===e}):t.series},getSeriesA11yElement:n,unhideChartElementFromAT:function t(e,i){i.setAttribute("aria-hidden",!1),i!==e.renderTo&&i.parentNode&&(Array.prototype.forEach.call(i.parentNode.childNodes,function(t){t.hasAttribute("aria-hidden")||t.setAttribute("aria-hidden",!0)}),t(e,i.parentNode))},hideSeriesFromAT:function(t){(t=n(t))&&t.setAttribute("aria-hidden",!0)}}}),e(t,"modules/accessibility/KeyboardNavigationHandler.js",[t["parts/Globals.js"]],function(t){function e(t,e){this.chart=t,this.keyCodeMap=e.keyCodeMap||[],this.validate=e.validate,this.init=e.init,this.terminate=e.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}var s=t.find;return e.prototype={run:function(t){var e=t.which||t.keyCode,i=this.response.noHandler,n=s(this.keyCodeMap,function(t){return-1<t[0].indexOf(e)});return n?i=n[1].call(this,e,t):9===e?i=this.response[t.shiftKey?"prev":"next"]:27===e&&(this.chart&&this.chart.tooltip&&this.chart.tooltip.hide(0),i=this.response.success),i}},e}),e(t,"modules/accessibility/utils/EventProvider.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(e,t){function i(){this.eventRemovers=[]}return(t=t.extend)(i.prototype,{addEvent:function(){var t=e.addEvent.apply(e,arguments);return this.eventRemovers.push(t),t},removeAddedEvents:function(){this.eventRemovers.forEach(function(t){t()}),this.eventRemovers=[]}}),i}),e(t,"modules/accessibility/utils/DOMElementProvider.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["modules/accessibility/utils/htmlUtilities.js"]],function(t,e,i){var n=t.win.document,s=(t=e.extend,i.removeElement);return t((i=function(){this.elements=[]}).prototype,{createElement:function(){var t=n.createElement.apply(n,arguments);return this.elements.push(t),t},destroyCreatedElements:function(){this.elements.forEach(function(t){s(t)}),this.elements=[]}}),i}),e(t,"modules/accessibility/AccessibilityComponent.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["modules/accessibility/utils/htmlUtilities.js"],t["modules/accessibility/utils/chartUtilities.js"],t["modules/accessibility/utils/EventProvider.js"],t["modules/accessibility/utils/DOMElementProvider.js"]],function(t,e,i,n,s,c){function o(){}var a=t.win,r=a.document,l=t.merge,d=t.fireEvent,u=(t=e.extend,i.removeElement),h=i.getFakeMouseEvent,p=n.unhideChartElementFromAT;return t(o.prototype={initBase:function(t){this.chart=t,this.eventProvider=new s,this.domElementProvider=new c,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9}},addEvent:function(){return this.eventProvider.addEvent.apply(this.eventProvider,arguments)},createElement:function(){return this.domElementProvider.createElement.apply(this.domElementProvider,arguments)},fireEventOnWrappedOrUnwrappedElement:function(t,e){var i=e.type;r.createEvent&&(t.dispatchEvent||t.fireEvent)?t.dispatchEvent?t.dispatchEvent(e):t.fireEvent(i,e):d(t,i,e)},fakeClickEvent:function(t){var e;t&&(e=h("click"),this.fireEventOnWrappedOrUnwrappedElement(t,e))},addProxyGroup:function(e){this.createOrUpdateProxyContainer();var i=this.createElement("div");return Object.keys(e||{}).forEach(function(t){null!==e[t]&&i.setAttribute(t,e[t])}),this.chart.a11yProxyContainer.appendChild(i),i},createOrUpdateProxyContainer:function(){var t=this.chart,e=t.renderer.box;t.a11yProxyContainer=t.a11yProxyContainer||this.createProxyContainerElement(),e.nextSibling!==t.a11yProxyContainer&&t.container.insertBefore(t.a11yProxyContainer,e.nextSibling)},createProxyContainerElement:function(){var t=r.createElement("div");return t.className="highcharts-a11y-proxy-container",t},createProxyButton:function(t,e,i,n,s){var o=t.element,a=this.createElement("button"),r=l({"aria-label":o.getAttribute("aria-label")},i);return t=this.getElementPosition(n||t),Object.keys(r).forEach(function(t){null!==r[t]&&a.setAttribute(t,r[t])}),a.className="highcharts-a11y-proxy-button",s&&this.addEvent(a,"click",s),this.setProxyButtonStyle(a,t),this.proxyMouseEventsForButton(o,a),e.appendChild(a),r["aria-hidden"]||p(this.chart,a),a},getElementPosition:function(t){var e=t.element;return(t=this.chart.renderTo)&&e&&e.getBoundingClientRect?(e=e.getBoundingClientRect(),t=t.getBoundingClientRect(),{x:e.left-t.left,y:e.top-t.top,width:e.right-e.left,height:e.bottom-e.top}):{x:0,y:0,width:1,height:1}},setProxyButtonStyle:function(t,e){l(!0,t.style,{"border-width":0,"background-color":"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute",width:(e.width||1)+"px",height:(e.height||1)+"px",left:(e.x||0)+"px",top:(e.y||0)+"px"})},proxyMouseEventsForButton:function(i,e){var n=this;"click touchstart touchend touchcancel touchmove mouseover mouseenter mouseleave mouseout".split(" ").forEach(function(t){n.addEvent(e,t,function(t){var e=n.cloneMouseEvent(t);i&&n.fireEventOnWrappedOrUnwrappedElement(i,e),t.stopPropagation(),t.preventDefault()})})},cloneMouseEvent:function(t){if("function"==typeof a.MouseEvent)return new a.MouseEvent(t.type,t);if(r.createEvent){var e=r.createEvent("MouseEvent");if(e.initMouseEvent)return e.initMouseEvent(t.type,t.bubbles,t.cancelable,t.view||a,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),e}return h(t.type)},destroyBase:function(){u(this.chart.a11yProxyContainer),this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()}},{init:function(){},getKeyboardNavigation:function(){},onChartUpdate:function(){},onChartRender:function(){},destroy:function(){}}),o}),e(t,"modules/accessibility/KeyboardNavigation.js",[t["parts/Globals.js"],t["modules/accessibility/utils/htmlUtilities.js"],t["modules/accessibility/KeyboardNavigationHandler.js"],t["modules/accessibility/utils/EventProvider.js"]],function(t,e,n,s){function i(t,e){this.init(t,e)}var o=t.merge,a=t.win,r=a.document,l=e.getElement;return i.prototype={init:function(t,e){var i=this,n=this.eventProvider=new s;this.chart=t,this.components=e,this.modules=[],this.currentModuleIx=0,n.addEvent(t.renderTo,"keydown",function(t){i.onKeydown(t)}),n.addEvent(r,"mouseup",function(){i.onMouseUp()}),this.update(),this.modules.length&&this.modules[0].init(1)},update:function(t){var e=(e=this.chart.options.accessibility)&&e.keyboardNavigation,i=this.components;this.updateContainerTabindex(),e&&e.enabled&&t&&t.length?(this.modules=t.reduce(function(t,e){return e=i[e].getKeyboardNavigation(),t.concat(e)},[new n(this.chart,{init:function(){}})]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())},onMouseUp:function(){var t,e;this.keyboardReset||this.chart.pointer&&this.chart.pointer.chartPosition||(t=this.chart,(e=this.modules&&this.modules[this.currentModuleIx||0])&&e.terminate&&e.terminate(),t.focusElement&&t.focusElement.removeFocusBorder(),this.currentModuleIx=0,this.keyboardReset=!0)},onKeydown:function(t){t=t||a.event;var e,i,n=this.modules&&this.modules.length&&this.modules[this.currentModuleIx];this.keyboardReset=!1,n&&((i=n.run(t))===n.response.success?e=!0:i===n.response.prev?e=this.prev():i===n.response.next&&(e=this.next()),e&&(t.preventDefault(),t.stopPropagation()))},prev:function(){return this.move(-1)},next:function(){return this.move(1)},move:function(t){var e=this.modules&&this.modules[this.currentModuleIx];if(e&&e.terminate&&e.terminate(t),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=t,e=this.modules&&this.modules[this.currentModuleIx]){if(e.validate&&!e.validate())return this.move(t);if(e.init)return e.init(t),!0}return(this.currentModuleIx=0)<t?(this.exiting=!0,this.exitAnchor.focus()):this.chart.renderTo.focus(),!1},updateExitAnchor:function(){var t=l("highcharts-end-of-chart-marker-"+this.chart.index);this.removeExitAnchor(),t?(this.makeElementAnExitAnchor(t),this.exitAnchor=t):this.createExitAnchor()},updateContainerTabindex:function(){var t=this.chart.options.accessibility,e=(t=!((t=t&&t.keyboardNavigation)&&!1===t.enabled),this.chart.container),i=e.getAttribute("tabIndex");t&&!i?e.setAttribute("tabindex","0"):t||"0"!==i||e.removeAttribute("tabindex")},makeElementAnExitAnchor:function(t){t.setAttribute("class","highcharts-exit-anchor"),t.setAttribute("tabindex","0"),t.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(t)},createExitAnchor:function(){var t=this.chart,e=this.exitAnchor=r.createElement("div");o(!0,e.style,{position:"absolute",width:"1px",height:"1px",zIndex:0,overflow:"hidden",outline:"none"}),t.renderTo.appendChild(e),this.makeElementAnExitAnchor(e)},removeExitAnchor:function(){this.exitAnchor&&this.exitAnchor.parentNode&&(this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor)},addExitAnchorEventsToEl:function(t){var e=this.chart,i=this;this.eventProvider.addEvent(t,"focus",function(t){(t=t||a.event).relatedTarget&&e.container.contains(t.relatedTarget)||i.exiting?i.exiting=!1:(e.renderTo.focus(),t.preventDefault(),i.modules&&i.modules.length&&(i.currentModuleIx=i.modules.length-1,(t=i.modules[i.currentModuleIx])&&t.validate&&!t.validate()?i.prev():t&&t.init(-1)))})},destroy:function(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),"0"===this.chart.container.getAttribute("tabindex")&&this.chart.container.removeAttribute("tabindex")}},i}),e(t,"modules/accessibility/components/LegendComponent.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["modules/accessibility/AccessibilityComponent.js"],t["modules/accessibility/KeyboardNavigationHandler.js"],t["modules/accessibility/utils/htmlUtilities.js"]],function(o,t,e,i,n){t=t.extend;var s=n.stripHTMLTagsFromString,a=n.removeElement;return o.Chart.prototype.highlightLegendItem=function(t){var e,i,n=this.legend.allItems,s=this.highlightedLegendItemIx;return!!n[t]&&(n[s]&&o.fireEvent(n[s].legendGroup.element,"mouseout"),e=(s=this.legend).allItems[t].pageIx,i=s.currentPage,void 0!==e&&e+1!==i&&s.scroll(1+e-i),this.setFocusToElement(n[t].legendItem,n[t].a11yProxyElement),o.fireEvent(n[t].legendGroup.element,"mouseover"),!0)},o.addEvent(o.Legend,"afterColorizeItem",function(t){var e=t.item;this.chart.options.accessibility.enabled&&e&&e.a11yProxyElement&&e.a11yProxyElement.setAttribute("aria-pressed",t.visible?"false":"true")}),(n=function(){}).prototype=new e,t(n.prototype,{init:function(){var t=this;this.addEvent(o.Legend,"afterScroll",function(){this.chart===t.chart&&t.updateProxies()})},updateLegendItemProxyVisibility:function(){var t=this.chart.legend,i=t.currentPage||1;(t.allItems||[]).forEach(function(t){var e=(t.pageIx||0)!==i-1;t.a11yProxyElement&&(t.a11yProxyElement.style.visibility=e?"hidden":"visible")})},onChartRender:function(){this.legendProxyButtonClicked?delete this.legendProxyButtonClicked:this.updateProxies()},updateProxies:function(){a(this.legendProxyGroup);var t=this.chart,e=t.legend&&t.legend.allItems,i=t.options.legend.accessibility||{};!e||!e.length||t.colorAxis&&t.colorAxis.length||!1===i.enabled||(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility())},addLegendProxyGroup:function(){var t=this.chart.options.accessibility,e=this.chart.langFormat("accessibility.legend.legendLabel",{});this.legendProxyGroup=this.addProxyGroup({"aria-label":e,role:"all"===t.landmarkVerbosity?"region":null})},proxyLegendItems:function(){var e=this;(this.chart.legend&&this.chart.legend.allItems||[]).forEach(function(t){t.legendItem&&t.legendItem.element&&e.proxyLegendItem(t)})},proxyLegendItem:function(t){var e=this,i=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:s(t.name)});t.a11yProxyElement=this.createProxyButton(t.legendItem,this.legendProxyGroup,{tabindex:-1,"aria-pressed":!t.visible,"aria-label":i},t.legendGroup.div?t.legendItem:t.legendGroup,function(){e.legendProxyButtonClicked=!0})},getKeyboardNavigation:function(){var t=this.keyCodes,e=this;return new i(this.chart,{keyCodeMap:[[[t.left,t.right,t.up,t.down],function(t){return e.onKbdArrowKey(this,t)}],[[t.enter,t.space],function(){return e.onKbdClick(this)}]],validate:function(){return e.shouldHaveLegendNavigation()},init:function(t){return e.onKbdNavigationInit(t)}})},onKbdArrowKey:function(t,e){var i=this.keyCodes,n=t.response,s=this.chart,o=s.options.accessibility,a=s.legend.allItems.length;return e=e===i.left||e===i.up?-1:1,s.highlightLegendItem(this.highlightedLegendItemIx+e)?(this.highlightedLegendItemIx+=e,n.success):1<a&&o.keyboardNavigation.wrapAround?(t.init(e),n.success):n[0<e?"next":"prev"]},onKbdClick:function(t){var e=this.chart.legend.allItems[this.highlightedLegendItemIx];return e&&e.a11yProxyElement&&o.fireEvent(e.a11yProxyElement,"click"),t.response.success},shouldHaveLegendNavigation:function(){var t=this.chart,e=t.colorAxis&&t.colorAxis.length,i=(t.options.legend||{}).accessibility||{};return!!(t.legend&&t.legend.allItems&&t.legend.display&&!e&&i.enabled&&i.keyboardNavigation&&i.keyboardNavigation.enabled)},onKbdNavigationInit:function(t){var e=this.chart,i=e.legend.allItems.length-1;e.highlightLegendItem(t=0<t?0:i),this.highlightedLegendItemIx=t}}),n}),e(t,"modules/accessibility/components/MenuComponent.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["modules/accessibility/AccessibilityComponent.js"],t["modules/accessibility/KeyboardNavigationHandler.js"],t["modules/accessibility/utils/chartUtilities.js"],t["modules/accessibility/utils/htmlUtilities.js"]],function(t,e,i,n,s,o){e=e.extend;var a=s.unhideChartElementFromAT,r=o.removeElement,l=o.getFakeMouseEvent;return t.Chart.prototype.showExportMenu=function(){var t;this.exportSVGElements&&this.exportSVGElements[0]&&((t=this.exportSVGElements[0].element).onclick&&t.onclick(l("click")))},t.Chart.prototype.hideExportMenu=function(){var t=this.exportDivElements;t&&this.exportContextMenu&&(t.forEach(function(t){"highcharts-menu-item"===t.className&&t.onmouseout&&t.onmouseout(l("mouseout"))}),this.highlightedExportItemIx=0,this.exportContextMenu.hideMenu(),this.container.focus())},t.Chart.prototype.highlightExportItem=function(t){var e,i=this.exportDivElements&&this.exportDivElements[t],n=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];return!(!i||"LI"!==i.tagName||i.children&&i.children.length)&&(e=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus,i.focus&&e&&i.focus(),n&&n.onmouseout&&n.onmouseout(l("mouseout")),i.onmouseover&&i.onmouseover(l("mouseover")),this.highlightedExportItemIx=t,!0)},t.Chart.prototype.highlightLastExportItem=function(){var t;if(this.exportDivElements)for(t=this.exportDivElements.length;t--;)if(this.highlightExportItem(t))return!0;return!1},(t=function(){}).prototype=new i,e(t.prototype,{init:function(){var t=this.chart,e=this;this.addEvent(t,"exportMenuShown",function(){e.onMenuShown()}),this.addEvent(t,"exportMenuHidden",function(){e.onMenuHidden()})},onMenuHidden:function(){var t=this.chart.exportContextMenu;t&&t.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")},onMenuShown:function(){var t=this.chart,e=t.exportContextMenu;e&&(this.addAccessibleContextMenuAttribs(),a(t,e)),this.setExportButtonExpandedState("true")},setExportButtonExpandedState:function(t){var e=this.exportButtonProxy;e&&e.setAttribute("aria-expanded",t)},onChartRender:function(){var t=this.chart,e=t.options.accessibility,i=(r(this.exportProxyGroup),t.options.exporting);i&&!1!==i.enabled&&i.accessibility&&i.accessibility.enabled&&t.exportSVGElements&&t.exportSVGElements[0]&&t.exportSVGElements[0].element&&(this.exportProxyGroup=this.addProxyGroup("all"===e.landmarkVerbosity?{"aria-label":t.langFormat("accessibility.exporting.exportRegionLabel",{chart:t}),role:"region"}:{}),this.exportButtonProxy=this.createProxyButton(this.chart.exportSVGElements[0],this.exportProxyGroup,{"aria-label":t.langFormat("accessibility.exporting.menuButtonLabel",{chart:t}),"aria-expanded":"false"}))},addAccessibleContextMenuAttribs:function(){var t=this.chart,e=t.exportDivElements;e&&e.length&&(e.forEach(function(t){"LI"!==t.tagName||t.children&&t.children.length?t.setAttribute("aria-hidden","true"):t.setAttribute("tabindex",-1)}),(e=e[0].parentNode).removeAttribute("aria-hidden"),e.setAttribute("aria-label",t.langFormat("accessibility.exporting.chartMenuLabel",{chart:t})))},getKeyboardNavigation:function(){var t=this.keyCodes,e=this.chart,i=this;return new n(e,{keyCodeMap:[[[t.left,t.up],function(){return i.onKbdPrevious(this)}],[[t.right,t.down],function(){return i.onKbdNext(this)}],[[t.enter,t.space],function(){return i.onKbdClick(this)}],[[t.esc],function(){return this.response.prev}]],validate:function(){return e.exportChart&&!1!==e.options.exporting.enabled&&!1!==e.options.exporting.accessibility.enabled},init:function(t){e.showExportMenu(),t<0?e.highlightLastExportItem():e.highlightExportItem(0)},terminate:function(){e.hideExportMenu()}})},onKbdPrevious:function(t){var e=this.chart,i=e.options.accessibility;t=t.response;for(var n=e.highlightedExportItemIx||0;n--;)if(e.highlightExportItem(n))return t.success;return i.keyboardNavigation.wrapAround?(e.highlightLastExportItem(),t.success):t.prev},onKbdNext:function(t){var e=this.chart,i=e.options.accessibility;t=t.response;for(var n=(e.highlightedExportItemIx||0)+1;n<e.exportDivElements.length;++n)if(e.highlightExportItem(n))return t.success;return i.keyboardNavigation.wrapAround?(e.highlightExportItem(0),t.success):t.next},onKbdClick:function(t){var e=this.chart;return this.fakeClickEvent(e.exportDivElements[e.highlightedExportItemIx]),t.response.success}}),t}),e(t,"modules/accessibility/components/SeriesComponent/SeriesKeyboardNavigation.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["modules/accessibility/KeyboardNavigationHandler.js"],t["modules/accessibility/utils/EventProvider.js"],t["modules/accessibility/utils/chartUtilities.js"]],function(n,t,s,r,e){function a(t){var e=t.index,i=t.series.points,n=i.length;if(i[e]===t)return e;for(;n--;)if(i[n]===t)return n}function l(t){var e=t.chart.options.accessibility.keyboardNavigation.seriesNavigation,i=t.options.accessibility||{},n=i.keyboardNavigation;return n&&!1===n.enabled||!1===i.enabled||!1===t.options.enableMouseTracking||!t.visible||e.pointNavigationEnabledThreshold&&e.pointNavigationEnabledThreshold<=t.points.length}function h(t){var e=t.series.chart.options.accessibility;return t.isNull&&e.keyboardNavigation.seriesNavigation.skipNullPoints||!1===t.visible||l(t.series)}function d(t,e,i,n){function s(t){return!(c(t.plotX)&&c(t.plotY))}var o=1/0,a=e.points.length;if(!s(t)){for(;a--;){var r,l=e.points[a];!s(l)&&(l=(t.plotX-l.plotX)*(t.plotX-l.plotX)*(i||1)+(t.plotY-l.plotY)*(t.plotY-l.plotY)*(n||1))<o&&(o=l,r=a)}return c(r)?e.points[r]:void 0}}function o(t){return delete t.highlightedPoint,t.series.reduce(function(t,e){return t||e.highlightFirstValidPoint()},!1)}function i(t,e){this.keyCodes=e,this.chart=t}var u=t.extend,c=t.defined,p=e.getPointFromXY,f=e.getSeriesFromName;return n.Series.prototype.keyboardMoveVertical=!0,["column","pie"].forEach(function(t){n.seriesTypes[t]&&(n.seriesTypes[t].prototype.keyboardMoveVertical=!1)}),n.Point.prototype.highlight=function(){var t=this.series.chart;return this.isNull?t.tooltip&&t.tooltip.hide(0):this.onMouseOver(),this.graphic&&t.setFocusToElement(this.graphic),t.highlightedPoint=this},n.Chart.prototype.highlightAdjacentPoint=function(t){var e=this.series,i=this.highlightedPoint,n=i&&a(i)||0,s=i&&i.series.points,o=(o=this.series&&this.series[this.series.length-1])&&o.points&&o.points[o.points.length-1];if(!e[0]||!e[0].points)return!1;if(i){if(e=e[i.series.index+(t?1:-1)],!(n=!(n=s[n+(t?1:-1)])&&e?e.points[t?0:e.points.length-1]:n))return!1}else n=t?e[0].points[0]:o;return h(n)?(l(e=n.series)?this.highlightedPoint=t?e.points[e.points.length-1]:e.points[0]:this.highlightedPoint=n,this.highlightAdjacentPoint(t)):n.highlight()},n.Series.prototype.highlightFirstValidPoint=function(){var t=this.chart.highlightedPoint,e=(t&&t.series)===this?a(t):0,i=(t=this.points).length;if(t&&i){for(var n=e;n<i;++n)if(!h(t[n]))return t[n].highlight();for(;0<=e;--e)if(!h(t[e]))return t[e].highlight()}return!1},n.Chart.prototype.highlightAdjacentSeries=function(t){var e,i=this.highlightedPoint,n=(e=this.series&&this.series[this.series.length-1])&&e.points&&e.points[e.points.length-1];return this.highlightedPoint?!!(e=this.series[i.series.index+(t?-1:1)])&&(!!(n=d(i,e,4))&&(l(e)?(n.highlight(),(t=this.highlightAdjacentSeries(t))||(i.highlight(),!1)):(n.highlight(),n.series.highlightFirstValidPoint()))):(e=t?this.series&&this.series[0]:e,!!(n=t?e&&e.points&&e.points[0]:n)&&n.highlight())},n.Chart.prototype.highlightAdjacentPointVertical=function(s){var o,a=this.highlightedPoint,r=1/0;return!(!c(a.plotX)||!c(a.plotY))&&(this.series.forEach(function(n){l(n)||n.points.forEach(function(t){var e,i;c(t.plotY)&&c(t.plotX)&&t!==a&&(e=t.plotY-a.plotY,i=Math.abs(t.plotX-a.plotX),i=Math.abs(e)*Math.abs(e)+i*i*4,n.yAxis.reversed&&(e*=-1),!(e<=0&&s||0<=e&&!s||i<5||h(t))&&i<r&&(r=i,o=t))})}),!!o&&o.highlight())},u(i.prototype,{init:function(){var i=this,t=this.chart,e=this.eventProvider=new r;e.addEvent(n.Series,"destroy",function(){return i.onSeriesDestroy(this)}),e.addEvent(t,"afterDrilldown",function(){o(this),this.focusElement&&this.focusElement.removeFocusBorder()}),e.addEvent(t,"drilldown",function(t){var e=(t=t.point).series;i.lastDrilledDownPoint={x:t.x,y:t.y,seriesName:e?e.name:""}}),e.addEvent(t,"drillupall",function(){setTimeout(function(){i.onDrillupAll()},10)})},onDrillupAll:function(){var t,e=this.lastDrilledDownPoint,i=this.chart,n=e&&f(i,e.seriesName);e&&n&&c(e.x)&&c(e.y)&&(t=p(n,e.x,e.y)),i.container&&i.container.focus(),t&&t.highlight&&t.highlight(),i.focusElement&&i.focusElement.removeFocusBorder()},getKeyboardNavigationHandler:function(){var e=this,t=this.keyCodes,i=this.chart,n=i.inverted;return new s(i,{keyCodeMap:[[n?[t.up,t.down]:[t.left,t.right],function(t){return e.onKbdSideways(this,t)}],[n?[t.left,t.right]:[t.up,t.down],function(t){return e.onKbdVertical(this,t)}],[[t.enter,t.space],function(){return i.highlightedPoint&&i.highlightedPoint.firePointEvent("click"),this.response.success}]],init:function(t){return e.onHandlerInit(this,t)},terminate:function(){return e.onHandlerTerminate()}})},onKbdSideways:function(t,e){var i=this.keyCodes;return this.attemptHighlightAdjacentPoint(t,e===i.right||e===i.down)},onKbdVertical:function(t,e){var i=this.chart,n=this.keyCodes;return e=e===n.down||e===n.right,(n=i.options.accessibility.keyboardNavigation.seriesNavigation).mode&&"serialize"===n.mode?this.attemptHighlightAdjacentPoint(t,e):(i[i.highlightedPoint&&i.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](e),t.response.success)},onHandlerInit:function(t,e){var i=this.chart;if(0<e)o(i);else{e=i.series.length;for(;e--&&(i.highlightedPoint=i.series[e].points[i.series[e].points.length-1],!i.series[e].highlightFirstValidPoint()););}return t.response.success},onHandlerTerminate:function(){var t=this.chart;t.tooltip&&t.tooltip.hide(0),delete t.highlightedPoint},attemptHighlightAdjacentPoint:function(t,e){var i=this.chart,n=i.options.accessibility.keyboardNavigation.wrapAround;return i.highlightAdjacentPoint(e)?t.response.success:n?t.init(e?1:-1):t.response[e?"next":"prev"]},onSeriesDestroy:function(t){var e=this.chart;e.highlightedPoint&&e.highlightedPoint.series===t&&(delete e.highlightedPoint,e.focusElement&&e.focusElement.removeFocusBorder())},destroy:function(){this.eventProvider.removeAddedEvents()}}),i}),e(t,"modules/accessibility/components/SeriesComponent/SeriesDescriber.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["modules/accessibility/utils/htmlUtilities.js"],t["modules/accessibility/utils/chartUtilities.js"]],function(s,t,e,i){function a(t){var e=t.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!1!==e&&t.points&&t.points.length>=e}function l(t,e){var i=t.series.chart,n=i.options.accessibility.point||{};return t=t.series.tooltipOptions||{},i=i.options.lang,b(e)?g(e,n.valueDecimals||t.valueDecimals||-1,i.decimalPoint,i.accessibility.thousandsSep||i.thousandsSep):e}function h(t,e){return t.chart.langFormat("accessibility.series."+e+"Description",{name:n(t[e]),series:t})}function o(t){var e=t.series,i=e.chart,n=i.options.accessibility.point||{};if(e.xAxis&&e.xAxis.isDatetimeAxis)return e=s.Tooltip.prototype.getXDateFormat.call({getDateFormat:s.Tooltip.prototype.getDateFormat,chart:i},t,i.options.tooltip,e.xAxis),n=n.dateFormatter&&n.dateFormatter(t)||n.dateFormat||e,i.time.dateFormat(n,t.x,void 0)}function d(t){var e=o(t),i=(t.series.xAxis||{}).categories&&r(t.category)&&(""+t.category).replace("<br/>"," "),n=t.id&&t.id.indexOf("highcharts-")<0,s="x, "+t.x;return t.name||e||i||(n?t.id:s)}function u(t){var n,s,o,e=t.series,i=e.chart.options.accessibility.point||{},a=e.tooltipOptions||{},r=i.valuePrefix||a.valuePrefix||"",i=i.valueSuffix||a.valueSuffix||"",a=l(t,t[void 0!==t.value?"value":"y"]);return t.isNull?e.chart.langFormat("accessibility.series.nullPointValue",{point:t}):e.pointArrayMap?(s=r||"",o=i||"",(n=t).series.pointArrayMap.reduce(function(t,e){t+=t.length?", ":"";var i=l(n,c(n[e],n.options[e]));return t+(e+": ")+s+i+o},"")):r+a+i}function p(t){var e=t.series,i=e.chart,n=t.options&&t.options.accessibility&&t.options.accessibility.description,s=c(e.xAxis&&e.xAxis.options.accessibility&&e.xAxis.options.accessibility.enabled,!i.angular),o=d(t),a=u(t);return(r(t.index)?t.index+1+". ":"")+(s?o+", ":"")+a+"."+(n?" "+n:"")+(1<i.series.length&&e.name?" "+e.name+".":"")}function f(t){i=t.options.accessibility||{};var e,o=!a(t)&&!i.exposeAsGroupOnly,i=(e=(i=t).chart.options.accessibility.keyboardNavigation.seriesNavigation,!(!i.points||!(i.points.length<e.pointNavigationEnabledThreshold||!1===e.pointNavigationEnabledThreshold)));(o||i)&&t.points.forEach(function(t){var e,i,n,s=t.isNull;(e=t.graphic&&t.graphic.element)||(s&&(e=t.series,n=(i=t).index,e=(s=(i=i.series&&i.series.data&&r(n)&&y(i.series.data,function(t){return!!(t&&void 0!==t.index&&t.index>n&&t.graphic&&t.graphic.element)})||null)&&i.graphic)?s.parentGroup:e.graph||e.group,i=i?{x:c(t.plotX,i.plotX,0),y:c(t.plotY,i.plotY,0)}:{x:c(t.plotX,0),y:c(t.plotY,0)},(i=t.series.chart.renderer.rect(i.x,i.y,1,1)).attr({class:"highcharts-a11y-dummy-point",fill:"none","fill-opacity":0,"stroke-opacity":0,opacity:0}),s=e&&e.element?((t.graphic=i).add(e),e.element.insertBefore(i.element,s?s.element:null),i.element):void 0),e=s),(s=e)&&(s.setAttribute("tabindex","-1"),o?(e=(i=t.series).chart.options.accessibility.point||{},i=i.options.accessibility||{},t=v(i.pointDescriptionFormatter&&i.pointDescriptionFormatter(t)||e.descriptionFormatter&&e.descriptionFormatter(t)||p(t)),s.setAttribute("role","img"),s.setAttribute("aria-label",t)):s.setAttribute("aria-hidden",!0))})}function m(e){function t(t){return i[t]&&1<i[t].length&&e[t]}var i=e.chart,n=i.types||[],s=(s=((o=e).options.accessibility||{}).description)&&o.chart.langFormat("accessibility.series.description",{description:s,series:o})||"",o=h(e,"xAxis"),a=h(e,"yAxis"),r={name:e.name||"",ix:e.index+1,numSeries:i.series&&i.series.length,numPoints:e.points&&e.points.length,series:e},n=1<n.length?"Combination":"";return(i.langFormat("accessibility.series.summary."+e.type+n,r)||i.langFormat("accessibility.series.summary.default"+n,r))+(s?" "+s:"")+(t("yAxis")?" "+a:"")+(t("xAxis")?" "+o:"")}var g=s.numberFormat,y=s.find,b=t.isNumber,c=t.pick,r=t.defined,v=e.stripHTMLTagsFromString,x=e.reverseChildNodes,n=i.getAxisDescription,w=i.getSeriesFirstPointElement,C=i.getSeriesA11yElement,S=i.unhideChartElementFromAT;return{describeSeries:function(t){var e,i,n=t.chart,s=w(t),o=C(t);o&&(o.lastChild===s&&x(o),f(t),S(n,o),n=(e=t.chart).options.chart||{},s=1<e.series.length,e=e.options.accessibility.series.describeSingleSeries,i=(t.options.accessibility||{}).exposeAsGroupOnly,n.options3d&&n.options3d.enabled&&s||!(s||e||i||a(t))?o.setAttribute("aria-label",""):(s=(n=t.chart.options.accessibility).landmarkVerbosity,(t.options.accessibility||{}).exposeAsGroupOnly?o.setAttribute("role","img"):"all"===s&&o.setAttribute("role","region"),o.setAttribute("tabindex","-1"),o.setAttribute("aria-label",v(n.series.descriptionFormatter&&n.series.descriptionFormatter(t)||m(t)))))},defaultPointDescriptionFormatter:p,defaultSeriesDescriptionFormatter:m,getPointA11yTimeDescription:o,getPointXDescription:d,getPointValueDescription:u}}),e(t,"modules/accessibility/components/SeriesComponent/NewDataAnnouncer.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["modules/accessibility/utils/htmlUtilities.js"],t["modules/accessibility/utils/chartUtilities.js"],t["modules/accessibility/components/SeriesComponent/SeriesDescriber.js"],t["modules/accessibility/utils/EventProvider.js"],t["modules/accessibility/utils/DOMElementProvider.js"]],function(o,t,e,i,n,s,a){var r=t.extend,l=t.defined,h=e.visuallyHideElement,c=i.getChartTitle,d=n.defaultPointDescriptionFormatter,u=n.defaultSeriesDescriptionFormatter;return r((t=function(t){this.chart=t}).prototype,{init:function(){this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new s,this.domElementProvider=new a,this.announceRegion=this.addAnnounceRegion(),this.addEventListeners()},destroy:function(){this.eventProvider.removeAddedEvents(),this.domElementProvider.destroyCreatedElements()},addAnnounceRegion:function(){var t=this.chart,e=this.domElementProvider.createElement("div"),i=t.options.accessibility.announceNewData;return e.setAttribute("aria-hidden",!1),e.setAttribute("aria-live",i.interruptUser?"assertive":"polite"),h(e),t.renderTo.insertBefore(e,t.renderTo.firstChild),e},addEventListeners:function(){var e=this,t=this.chart,i=this.eventProvider;i.addEvent(t,"afterDrilldown",function(){e.lastAnnouncementTime=0}),i.addEvent(o.Series,"updatedData",function(){e.onSeriesUpdatedData(this)}),i.addEvent(t,"afterAddSeries",function(t){e.onSeriesAdded(t.series)}),i.addEvent(o.Series,"addPoint",function(t){e.onPointAdded(t.point)}),i.addEvent(t,"redraw",function(){e.announceDirtyData()})},onSeriesUpdatedData:function(t){var e=this.chart;t.chart===e&&e.options.accessibility.announceNewData.enabled&&(this.dirty.hasDirty=!0,this.dirty.allSeries[t.name+t.index]=t)},onSeriesAdded:function(t){this.chart.options.accessibility.announceNewData.enabled&&(this.dirty.hasDirty=!0,this.dirty.allSeries[t.name+t.index]=t,this.dirty.newSeries=l(this.dirty.newSeries)?void 0:t)},onPointAdded:function(t){var e=t.series.chart;this.chart===e&&e.options.accessibility.announceNewData.enabled&&(this.dirty.newPoint=l(this.dirty.newPoint)?void 0:t)},announceDirtyData:function(){var t,e,i,n=this;this.chart.options.accessibility.announceNewData&&this.dirty.hasDirty&&((t=this.dirty.newPoint)&&(t=1===(i=(e=t).series.data.filter(function(t){return e.x===t.x&&e.y===t.y})).length?i[0]:e),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(function(t){return n.dirty.allSeries[t]}),this.dirty.newSeries,t),this.dirty={allSeries:{}})},queueAnnouncement:function(t,e,i){var n,s,o,a,r,l=this.chart.options.accessibility.announceNewData;l.enabled&&(n=this,s=+new Date,l=Math.max(0,l.minAnnounceInterval-(s-this.lastAnnouncementTime)),o=this.queuedAnnouncement&&this.queuedAnnouncement.series,a=t,r=(o||[]).concat(a||[]).reduce(function(t,e){return t[e.name+e.index]=e,t},{}),t=Object.keys(r).map(function(t){return r[t]}),(e=this.buildAnnouncementMessage(t,e,i))&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:s,message:e,series:t},n.queuedAnnouncementTimer=setTimeout(function(){n&&n.announceRegion&&(n.lastAnnouncementTime=+new Date,n.liveRegionSpeak(n.queuedAnnouncement.message),delete n.queuedAnnouncement,delete n.queuedAnnouncementTimer)},l)))},liveRegionSpeak:function(t){var e=this;this.announceRegion.innerHTML=t,this.clearAnnouncementContainerTimer&&clearTimeout(this.clearAnnouncementContainerTimer),this.clearAnnouncementContainerTimer=setTimeout(function(){e.announceRegion.innerHTML="",delete e.clearAnnouncementContainerTimer},1e3)},buildAnnouncementMessage:function(t,e,i){var n=this.chart,s=n.options.accessibility.announceNewData;return s.announcementFormatter&&!1!==(t=s.announcementFormatter(t,e,i))?t.length?t:null:(t=o.charts&&1<o.charts.length?"Multiple":"Single",t=e?"newSeriesAnnounce"+t:i?"newPointAnnounce"+t:"newDataAnnounce",s=c(n),n.langFormat("accessibility.announceNewData."+t,{chartTitle:s,seriesDesc:e?u(e):null,pointDesc:i?d(i):null,point:i,series:e}))}}),t}),e(t,"modules/accessibility/components/SeriesComponent/forcedMarkers.js",[t["parts/Globals.js"]],function(t){function o(t){a(!0,t,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}var a=t.merge;return function(){t.addEvent(t.Series,"render",function(){var t=this.options,e=this.chart.options.accessibility.enabled,i=!1!==(this.options.accessibility&&this.options.accessibility.enabled),n=this.chart.options.accessibility,n=this.points.length<n.series.pointDescriptionEnabledThreshold||!1===n.series.pointDescriptionEnabledThreshold,s=this.chart.options.accessibility.keyboardNavigation.seriesNavigation,s=this.points.length<s.pointNavigationEnabledThreshold||!1===s.pointNavigationEnabledThreshold;if(e&&i&&(n||s)){if(t.marker&&!1===t.marker.enabled&&(this.a11yMarkersForced=!0,o(this.options)),this._hasPointMarkers&&this.points&&this.points.length)for(e=(t=this.points).length;e--;)(i=t[e].options).marker&&(i.marker.enabled?a(!0,i.marker,{states:{normal:{opacity:i.marker.states&&i.marker.states.normal&&i.marker.states.normal.opacity||1}}}):o(i))}else this.a11yMarkersForced&&this.resetMarkerOptions&&(delete this.a11yMarkersForced,t=this.resetA11yMarkerOptions,a(!0,this.options,{marker:{enabled:t.enabled,states:{normal:{opacity:t.states&&t.states.normal&&t.states.normal.opacity}}}}))}),t.addEvent(t.Series,"afterSetOptions",function(t){this.resetA11yMarkerOptions=a(t.options.marker||{},this.userOptions.marker||{})})}}),e(t,"modules/accessibility/components/SeriesComponent/SeriesComponent.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["modules/accessibility/AccessibilityComponent.js"],t["modules/accessibility/components/SeriesComponent/SeriesKeyboardNavigation.js"],t["modules/accessibility/components/SeriesComponent/NewDataAnnouncer.js"],t["modules/accessibility/components/SeriesComponent/forcedMarkers.js"],t["modules/accessibility/utils/chartUtilities.js"],t["modules/accessibility/components/SeriesComponent/SeriesDescriber.js"]],function(e,t,i,n,s,o,a,r){t=t.extend;var l=a.hideSeriesFromAT,h=r.describeSeries;return e.SeriesAccessibilityDescriber=r,o(),(o=function(){}).prototype=new i,t(o.prototype,{init:function(){this.newDataAnnouncer=new s(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new n(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()},hideTooltipFromATWhenShown:function(){var t=this;this.addEvent(e.Tooltip,"refresh",function(){this.chart===t.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})},hideSeriesLabelsFromATWhenShown:function(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(t){t.labelBySeries&&t.labelBySeries.attr("aria-hidden",!0)})})},onChartRender:function(){this.chart.series.forEach(function(t){(!1!==(t.options.accessibility&&t.options.accessibility.enabled)&&t.visible?h:l)(t)})},getKeyboardNavigation:function(){return this.keyboardNavigation.getKeyboardNavigationHandler()},destroy:function(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()}}),o}),e(t,"modules/accessibility/components/ZoomComponent.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["modules/accessibility/AccessibilityComponent.js"],t["modules/accessibility/KeyboardNavigationHandler.js"],t["modules/accessibility/utils/chartUtilities.js"],t["modules/accessibility/utils/htmlUtilities.js"]],function(t,e,i,a,n,s){var o=e.extend,r=e.pick,l=n.unhideChartElementFromAT,c=s.setElAttrs,h=s.removeElement;return t.Axis.prototype.panStep=function(t,e){var i=e||3,n=((e=this.getExtremes()).max-e.min)/i*t,s=(i=e.max+n)-(n=e.min+n);t<0&&n<e.dataMin?i=(n=e.dataMin)+s:0<t&&i>e.dataMax&&(n=(i=e.dataMax)-s),this.setExtremes(n,i)},(t=function(){}).prototype=new i,o(t.prototype,{init:function(){var e=this,i=this.chart;["afterShowResetZoom","afterDrilldown","drillupall"].forEach(function(t){e.addEvent(i,t,function(){e.updateProxyOverlays()})})},onChartUpdate:function(){var i=this.chart,n=this;i.mapNavButtons&&i.mapNavButtons.forEach(function(t,e){l(i,t.element),n.setMapNavButtonAttrs(t.element,"accessibility.zoom.mapZoom"+(e?"Out":"In"))})},setMapNavButtonAttrs:function(t,e){var i=this.chart;e=i.langFormat(e,{chart:i}),c(t,{tabindex:-1,role:"button","aria-label":e})},onChartRender:function(){this.updateProxyOverlays()},updateProxyOverlays:function(){var t=this.chart;h(this.drillUpProxyGroup),h(this.resetZoomProxyGroup),t.resetZoomButton&&this.recreateProxyButtonAndGroup(t.resetZoomButton,"resetZoomProxyButton","resetZoomProxyGroup",t.langFormat("accessibility.zoom.resetZoomButton",{chart:t})),t.drillUpButton&&this.recreateProxyButtonAndGroup(t.drillUpButton,"drillUpProxyButton","drillUpProxyGroup",t.langFormat("accessibility.drillUpButton",{chart:t,buttonText:t.getDrilldownBackText()}))},recreateProxyButtonAndGroup:function(t,e,i,n){h(this[i]),this[i]=this.addProxyGroup(),this[e]=this.createProxyButton(t,this[i],{"aria-label":n,tabindex:-1})},getMapZoomNavigation:function(){var t=this.keyCodes,e=this.chart,i=this;return new a(e,{keyCodeMap:[[[t.up,t.down,t.left,t.right],function(t){return i.onMapKbdArrow(this,t)}],[[t.tab],function(t,e){return i.onMapKbdTab(this,e)}],[[t.space,t.enter],function(){return i.onMapKbdClick(this)}]],validate:function(){return!!(e.mapZoom&&e.mapNavButtons&&e.mapNavButtons.length)},init:function(t){return i.onMapNavInit(t)}})},onMapKbdArrow:function(t,e){var i=this.keyCodes;return this.chart[e===i.up||e===i.down?"yAxis":"xAxis"][0].panStep(e===i.left||e===i.up?-1:1),t.response.success},onMapKbdTab:function(t,e){var i=this.chart,n=(t=t.response,(e=e.shiftKey)&&!this.focusedMapNavButtonIx||!e&&this.focusedMapNavButtonIx);return i.mapNavButtons[this.focusedMapNavButtonIx].setState(0),n?(i.mapZoom(),t[e?"prev":"next"]):(this.focusedMapNavButtonIx+=e?-1:1,e=i.mapNavButtons[this.focusedMapNavButtonIx],i.setFocusToElement(e.box,e.element),e.setState(2),t.success)},onMapKbdClick:function(t){return this.fakeClickEvent(this.chart.mapNavButtons[this.focusedMapNavButtonIx].element),t.response.success},onMapNavInit:function(t){var e=this.chart,i=e.mapNavButtons[0],n=e.mapNavButtons[1],i=0<t?i:n;e.setFocusToElement(i.box,i.element),i.setState(2),this.focusedMapNavButtonIx=0<t?0:1},simpleButtonNavigation:function(t,e,i){var n=this.keyCodes,s=this,o=this.chart;return new a(o,{keyCodeMap:[[[n.tab,n.up,n.down,n.left,n.right],function(t,e){return this.response[t===n.tab&&e.shiftKey||t===n.left||t===n.up?"prev":"next"]}],[[n.space,n.enter],function(){var t=i(this,o);return r(t,this.response.success)}]],validate:function(){return o[t]&&o[t].box&&s[e]},init:function(){o.setFocusToElement(o[t].box,s[e])}})},getKeyboardNavigation:function(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(t,e){e.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(t,e){return e.drillUp(),t.response.prev}),this.getMapZoomNavigation()]}}),t}),e(t,"modules/accessibility/components/RangeSelectorComponent.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["modules/accessibility/AccessibilityComponent.js"],t["modules/accessibility/KeyboardNavigationHandler.js"],t["modules/accessibility/utils/chartUtilities.js"],t["modules/accessibility/utils/htmlUtilities.js"]],function(t,e,i,s,n,o){e=e.extend;var a=n.unhideChartElementFromAT,r=o.setElAttrs;return t.Chart.prototype.highlightRangeSelectorButton=function(t){var e=this.rangeSelector.buttons,i=this.highlightedRangeSelectorItemIx;return void 0!==i&&e[i]&&e[i].setState(this.oldRangeSelectorItemState||0),!!e[this.highlightedRangeSelectorItemIx=t]&&(this.setFocusToElement(e[t].box,e[t].element),this.oldRangeSelectorItemState=e[t].state,e[t].setState(2),!0)},(t=function(){}).prototype=new i,e(t.prototype,{onChartUpdate:function(){var i=this.chart,n=this,s=i.rangeSelector;s&&(s.buttons&&s.buttons.length&&s.buttons.forEach(function(t){a(i,t.element),n.setRangeButtonAttrs(t)}),s.maxInput&&s.minInput&&["minInput","maxInput"].forEach(function(t,e){(t=s[t])&&(a(i,t),n.setRangeInputAttrs(t,"accessibility.rangeSelector."+(e?"max":"min")+"InputLabel"))}))},setRangeButtonAttrs:function(t){var e=(e=this.chart).langFormat("accessibility.rangeSelector.buttonText",{chart:e,buttonText:t.text&&t.text.textStr});r(t.element,{tabindex:-1,role:"button","aria-label":e})},setRangeInputAttrs:function(t,e){var i=this.chart;r(t,{tabindex:-1,role:"textbox","aria-label":i.langFormat(e,{chart:i})})},getRangeSelectorButtonNavigation:function(){var i=this.chart,t=this.keyCodes,e=this;return new s(i,{keyCodeMap:[[[t.left,t.right,t.up,t.down],function(t){return e.onButtonNavKbdArrowKey(this,t)}],[[t.enter,t.space],function(){return e.onButtonNavKbdClick(this)}]],validate:function(){return i.rangeSelector&&i.rangeSelector.buttons&&i.rangeSelector.buttons.length},init:function(t){var e=i.rangeSelector.buttons.length-1;i.highlightRangeSelectorButton(0<t?0:e)}})},onButtonNavKbdArrowKey:function(t,e){var i=t.response,n=this.keyCodes,s=this.chart,o=s.options.accessibility.keyboardNavigation.wrapAround;return e=e===n.left||e===n.up?-1:1,s.highlightRangeSelectorButton(s.highlightedRangeSelectorItemIx+e)?i.success:o?(t.init(e),i.success):i[0<e?"next":"prev"]},onButtonNavKbdClick:function(t){t=t.response;var e=this.chart;return 3!==e.oldRangeSelectorItemState&&this.fakeClickEvent(e.rangeSelector.buttons[e.highlightedRangeSelectorItemIx].element),t.success},getRangeSelectorInputNavigation:function(){var t=this.chart,i=this.keyCodes,n=this;return new s(t,{keyCodeMap:[[[i.tab,i.up,i.down],function(t,e){return n.onInputKbdMove(this,t===i.tab&&e.shiftKey||t===i.up?-1:1)}]],validate:function(){return t.rangeSelector&&t.rangeSelector.inputGroup&&"hidden"!==t.rangeSelector.inputGroup.element.getAttribute("visibility")&&!1!==t.options.rangeSelector.inputEnabled&&t.rangeSelector.minInput&&t.rangeSelector.maxInput},init:function(t){n.onInputNavInit(t)},terminate:function(){n.onInputNavTerminate()}})},onInputKbdMove:function(t,e){var i=this.chart,n=(t=t.response,i.highlightedInputRangeIx+=e);return 1<n||n<0?t[0<e?"next":"prev"]:(i.rangeSelector[n?"maxInput":"minInput"].focus(),t.success)},onInputNavInit:function(t){var e=this.chart;e.highlightedInputRangeIx=t=0<t?0:1,e.rangeSelector[t?"maxInput":"minInput"].focus()},onInputNavTerminate:function(){var t=this.chart.rangeSelector||{};t.maxInput&&t.hideInput("max"),t.minInput&&t.hideInput("min")},getKeyboardNavigation:function(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]}}),t}),e(t,"modules/accessibility/components/InfoRegionsComponent.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["modules/accessibility/AccessibilityComponent.js"],t["modules/accessibility/utils/chartUtilities.js"],t["modules/accessibility/utils/htmlUtilities.js"]],function(s,t,c,e,i){function o(t){return t.replace(/&lt;(h[1-7]|p|div)&gt;/g,"<$1>").replace(/&lt;&#x2F;(h[1-7]|p|div|a|button)&gt;/g,"</$1>").replace(/&lt;(div|a|button) id=&quot;([a-zA-Z\-0-9#]*?)&quot;&gt;/g,'<$1 id="$2">')}var d=s.win.document,u=s.format,p=t.extend,f=t.pick,m=e.unhideChartElementFromAT,a=e.getChartTitle,g=e.getAxisDescription,y=i.addClass,r=i.setElAttrs,l=i.escapeStringForHTML,n=i.stripHTMLTagsFromString,h=i.getElement,b=i.visuallyHideElement;return s.Chart.prototype.getTypeDescription=function(t){var e=t[0],i=this.series&&this.series[0]||{},i={numSeries:this.series.length,numPoints:i.points&&i.points.length,chart:this,mapTitle:i.mapTitle};if(!e)return this.langFormat("accessibility.chartTypes.emptyChart",i);if("map"===e)return i.mapTitle?this.langFormat("accessibility.chartTypes.mapTypeDescription",i):this.langFormat("accessibility.chartTypes.unknownMap",i);if(1<this.types.length)return this.langFormat("accessibility.chartTypes.combinationChart",i);t=t[0];var e=this.langFormat("accessibility.seriesTypeDescriptions."+t,i),n=this.series&&this.series.length<2?"Single":"Multiple";return(this.langFormat("accessibility.chartTypes."+t+n,i)||this.langFormat("accessibility.chartTypes.default"+n,i))+(e?" "+e:"")},(t=function(){}).prototype=new c,p(t.prototype,{init:function(){var t=this.chart,e=this;this.initRegionsDefinitions(),this.addEvent(t,"afterGetTable",function(t){e.onDataTableCreated(t)}),this.addEvent(t,"afterViewData",function(t){e.dataTableDiv=t,setTimeout(function(){e.focusDataTable()},300)})},initRegionsDefinitions:function(){var i=this;this.screenReaderSections={before:{element:null,buildContent:function(t){var e=t.options.accessibility.screenReaderSection.beforeChartFormatter;return e?e(t):i.defaultBeforeChartFormatter(t)},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.renderTo.firstChild)},afterInserted:function(){void 0!==i.dataTableButtonId&&i.initDataTableButton(i.dataTableButtonId)}},after:{element:null,buildContent:function(t){var e=t.options.accessibility.screenReaderSection.afterChartFormatter;return e?e(t):i.defaultAfterChartFormatter()},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.container.nextSibling)}}}},onChartUpdate:function(){var e=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),Object.keys(this.screenReaderSections).forEach(function(t){e.updateScreenReaderSection(t)})},getLinkedDescriptionElement:function(){var t=this.chart.options.accessibility.linkedDescription;if(t)return"string"!=typeof t?t:(t=u(t,this.chart),1===(t=d.querySelectorAll(t)).length?t[0]:void 0)},setLinkedDescriptionAttrs:function(){var t=this.linkedDescriptionElement;t&&(t.setAttribute("aria-hidden","true"),y(t,"highcharts-linked-description"))},updateScreenReaderSection:function(t){var e=this.chart,i=this.screenReaderSections[t],n=i.buildContent(e),s=i.element=i.element||this.createElement("div"),o=s.firstChild||this.createElement("div");this.setScreenReaderSectionAttribs(s,t),o.innerHTML=n,s.appendChild(o),i.insertIntoDOM(s,e),b(o),m(e,o),i.afterInserted&&i.afterInserted()},setScreenReaderSectionAttribs:function(t,e){var i=this.chart,n=i.langFormat("accessibility.screenReaderSection."+e+"RegionLabel",{chart:i});r(t,{id:"highcharts-screen-reader-region-"+e+"-"+i.index,"aria-label":n}),t.style.position="relative","all"===i.options.accessibility.landmarkVerbosity&&n&&t.setAttribute("role","region")},defaultBeforeChartFormatter:function(){var t=(n=this.chart).options.accessibility.screenReaderSection.beforeChartFormat,e=this.getAxesDescription(),i="hc-linkto-highcharts-data-table-"+n.index,e={chartTitle:a(n),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:e.xAxis,yAxisDescription:e.yAxis,viewTableButton:n.getCSV?this.getDataTableButtonText(i):""},n=s.i18nFormat(t,e,n);return this.dataTableButtonId=i,o(l(n)).replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")},defaultAfterChartFormatter:function(){var t=(i=this.chart).options.accessibility.screenReaderSection.afterChartFormat,e={endOfChartMarker:this.getEndOfChartMarkerText()},i=s.i18nFormat(t,e,i);return o(l(i)).replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")},getLinkedDescription:function(){var t=this.linkedDescriptionElement;return n(t&&t.innerHTML||"")},getLongdescText:function(){var t=this.chart.options,e=(e=t.caption)&&e.text,i=this.getLinkedDescription();return t.accessibility.description||i||e||""},getTypeDescriptionText:function(){var t=this.chart;return t.types?t.options.accessibility.typeDescription||t.getTypeDescription(t.types):""},getDataTableButtonText:function(t){var e=this.chart;return'<a id="'+t+'">'+(e=e.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:e,chartTitle:a(e)}))+"</a>"},getSubtitleText:function(){var t=this.chart.options.subtitle;return n(t&&t.text||"")},getEndOfChartMarkerText:function(){var t=this.chart,e=t.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:t});return'<div id="highcharts-end-of-chart-marker-'+t.index+'">'+e+"</div>"},onDataTableCreated:function(t){var e=this.chart;e.options.accessibility.enabled&&(this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true"),t.html=t.html.replace("<table ",'<table tabindex="0" summary="'+e.langFormat("accessibility.table.tableSummary",{chart:e})+'"'))},focusDataTable:function(){var t=this.dataTableDiv;(t=t&&t.getElementsByTagName("table")[0])&&t.focus&&t.focus()},initDataTableButton:function(t){var e=this.viewDataTableButton=h(t),i=this.chart;t=t.replace("hc-linkto-",""),e&&(r(e,{role:"button",tabindex:"-1","aria-expanded":!!h(t),href:"#"+t}),e.onclick=i.options.accessibility.screenReaderSection.onViewDataTableClick||function(){i.viewData()})},getAxesDescription:function(){var i=this.chart,t=function(t,e){return 1<(t=i[t]).length||t[0]&&f(t[0].options.accessibility&&t[0].options.accessibility.enabled,e)},e=!!i.types&&i.types.indexOf("map")<0,n=!!i.hasCartesianSeries,s=t("xAxis",!i.angular&&n&&e),t=t("yAxis",n&&e),e={};return s&&(e.xAxis=this.getAxisDescriptionText("xAxis")),t&&(e.yAxis=this.getAxisDescriptionText("yAxis")),e},getAxisDescriptionText:function(t){var e=this,i=this.chart,n=i[t];return i.langFormat("accessibility.axis."+t+"Description"+(1<n.length?"Plural":"Singular"),{chart:i,names:n.map(function(t){return g(t)}),ranges:n.map(function(t){return e.getAxisRangeDescription(t)}),numAxes:n.length})},getAxisRangeDescription:function(t){var e=t.options||{};return e.accessibility&&void 0!==e.accessibility.rangeDescription?e.accessibility.rangeDescription:t.categories?this.getCategoryAxisRangeDesc(t):!t.isDatetimeAxis||0!==t.min&&0!==t.dataMin?this.getAxisFromToDescription(t):this.getAxisTimeLengthDesc(t)},getCategoryAxisRangeDesc:function(t){var e=this.chart;return t.dataMax&&t.dataMin?e.langFormat("accessibility.axis.rangeCategories",{chart:e,axis:t,numCategories:t.dataMax-t.dataMin+1}):""},getAxisTimeLengthDesc:function(t){var e=this.chart,i={},n="Seconds",s=(i.Seconds=((t.max||0)-(t.min||0))/1e3,i.Minutes=i.Seconds/60,i.Hours=i.Minutes/60,i.Days=i.Hours/24,["Minutes","Hours","Days"].forEach(function(t){2<i[t]&&(n=t)}),i[n].toFixed("Seconds"!==n&&"Minutes"!==n?1:0));return e.langFormat("accessibility.axis.timeRange"+n,{chart:e,axis:t,range:s.replace(".0","")})},getAxisFromToDescription:function(e){function t(t){return e.isDatetimeAxis?i.time.dateFormat(n,e[t]):e[t]}var i=this.chart,n=i.options.accessibility.screenReaderSection.axisRangeDateFormat;return i.langFormat("accessibility.axis.rangeFromTo",{chart:i,axis:e,rangeFrom:t("min"),rangeTo:t("max")})}}),t}),e(t,"modules/accessibility/components/ContainerComponent.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["modules/accessibility/utils/htmlUtilities.js"],t["modules/accessibility/utils/chartUtilities.js"],t["modules/accessibility/AccessibilityComponent.js"]],function(t,e,i,n,s){var o=t.win.document,a=(t=e.extend,i.stripHTMLTagsFromString),r=n.unhideChartElementFromAT,l=n.getChartTitle;return(i=function(){}).prototype=new s,t(i.prototype,{onChartUpdate:function(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()},handleSVGTitleElement:function(){var t,e=this.chart,i="highcharts-title-"+e.index,n=a(e.langFormat("accessibility.svgContainerTitle",{chartTitle:l(e)}));n.length&&((t=this.svgTitleElement=this.svgTitleElement||o.createElementNS("http://www.w3.org/2000/svg","title")).textContent=n,t.id=i,e.renderTo.insertBefore(t,e.renderTo.firstChild))},setSVGContainerLabel:function(){var t=this.chart,e=a(t.langFormat("accessibility.svgContainerLabel",{chartTitle:l(t)}));t.renderer.box&&e.length&&t.renderer.box.setAttribute("aria-label",e)},setGraphicContainerAttrs:function(){var t=this.chart,e=t.langFormat("accessibility.graphicContainerLabel",{chartTitle:l(t)});e.length&&t.container.setAttribute("aria-label",e)},setRenderToAttrs:function(){var t=this.chart;"disabled"!==t.options.accessibility.landmarkVerbosity?t.renderTo.setAttribute("role","region"):t.renderTo.removeAttribute("role"),t.renderTo.setAttribute("aria-label",t.langFormat("accessibility.chartContainerLabel",{title:l(t),chart:t}))},makeCreditsAccessible:function(){var t=this.chart,e=t.credits;e&&(e.textStr&&e.element.setAttribute("aria-label",a(t.langFormat("accessibility.credits",{creditsStr:e.textStr}))),r(t,e.element))},destroy:function(){this.chart.renderTo.setAttribute("aria-hidden",!0)}}),i}),e(t,"modules/accessibility/high-contrast-mode.js",[t["parts/Globals.js"]],function(t){var i=t.isMS,n=t.win,s=n.document;return{isHighContrastModeActive:function(){return n.matchMedia&&i&&/Edge\/\d./i.test(n.navigator.userAgent)?n.matchMedia("(-ms-high-contrast: active)").matches:!(!i||!n.getComputedStyle)&&((t=s.createElement("div")).style.backgroundImage="url(#)",s.body.appendChild(t),e=(t.currentStyle||n.getComputedStyle(t)).backgroundImage,s.body.removeChild(t),"none"===e);var t,e},setHighContrastTheme:function(t){t.highContrastModeActive=!0;var i=t.options.accessibility.highContrastTheme;t.update(i,!1),t.series.forEach(function(t){var e=i.plotOptions[t.type]||{};t.update({color:e.color||"windowText",colors:[e.color||"windowText"],borderColor:e.borderColor||"window"}),t.points.forEach(function(t){t.options&&t.options.color&&t.update({color:e.color||"windowText",borderColor:e.borderColor||"window"},!1)})}),t.redraw()}}}),e(t,"modules/accessibility/high-contrast-theme.js",[],function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},labels:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}}),e(t,"modules/accessibility/options/options.js",[],function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<h5>{chartTitle}</h5><div>{typeDescription}</div><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{xAxisDescription}</div><div>{yAxisDescription}</div><div>{viewTableButton}</div>",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#335cad",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}}}}),e(t,"modules/accessibility/options/langOptions.js",[],function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"Chart screen reader information.",afterRegionLabel:"",endOfChartMarker:"End of interactive chart."},legend:{legendLabel:"Toggle series visibility",legendItem:"Toggle visibility of {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{minInputLabel:"Select start date.",maxInputLabel:"Select end date.",buttonText:"Select range {buttonText}"},table:{viewAsDataTableButtonText:"View as data table. {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#plural(numPoints, points, point)}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#plural(numPoints, slices, slice)}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#plural(numPoints, points, point)}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#plural(numPoints, bubbles, bubble)}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each(names, -1) }and {names[-1]}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each(names, -1) }and {names[-1]}.",timeRangeDays:"Range: {range} days.",timeRangeHours:"Range: {range} hours.",timeRangeMinutes:"Range: {range} minutes.",timeRangeSeconds:"Range: {range} seconds.",rangeFromTo:"Range: {rangeFrom} to {rangeTo}.",rangeCategories:"Range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu",exportRegionLabel:"Chart menu"},series:{summary:{default:"{name}, series {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}.",defaultCombination:"{name}, series {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}.",line:"{name}, line {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}.",lineCombination:"{name}, series {ix} of {numSeries}. Line with {numPoints} data {#plural(numPoints, points, point)}.",spline:"{name}, line {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}.",splineCombination:"{name}, series {ix} of {numSeries}. Line with {numPoints} data {#plural(numPoints, points, point)}.",column:"{name}, bar series {ix} of {numSeries} with {numPoints} {#plural(numPoints, bars, bar)}.",columnCombination:"{name}, series {ix} of {numSeries}. Bar series with {numPoints} {#plural(numPoints, bars, bar)}.",bar:"{name}, bar series {ix} of {numSeries} with {numPoints} {#plural(numPoints, bars, bar)}.",barCombination:"{name}, series {ix} of {numSeries}. Bar series with {numPoints} {#plural(numPoints, bars, bar)}.",pie:"{name}, pie {ix} of {numSeries} with {numPoints} {#plural(numPoints, slices, slice)}.",pieCombination:"{name}, series {ix} of {numSeries}. Pie with {numPoints} {#plural(numPoints, slices, slice)}.",scatter:"{name}, scatter plot {ix} of {numSeries} with {numPoints} {#plural(numPoints, points, point)}.",scatterCombination:"{name}, series {ix} of {numSeries}, scatter plot with {numPoints} {#plural(numPoints, points, point)}.",boxplot:"{name}, boxplot {ix} of {numSeries} with {numPoints} {#plural(numPoints, boxes, box)}.",boxplotCombination:"{name}, series {ix} of {numSeries}. Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.",bubble:"{name}, bubble series {ix} of {numSeries} with {numPoints} {#plural(numPoints, bubbles, bubble)}.",bubbleCombination:"{name}, series {ix} of {numSeries}. Bubble series with {numPoints} {#plural(numPoints, bubbles, bubble)}.",map:"{name}, map {ix} of {numSeries} with {numPoints} {#plural(numPoints, areas, area)}.",mapCombination:"{name}, series {ix} of {numSeries}. Map with {numPoints} {#plural(numPoints, areas, area)}.",mapline:"{name}, line {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}.",maplineCombination:"{name}, series {ix} of {numSeries}. Line with {numPoints} data {#plural(numPoints, points, point)}.",mapbubble:"{name}, bubble series {ix} of {numSeries} with {numPoints} {#plural(numPoints, bubbles, bubble)}.",mapbubbleCombination:"{name}, series {ix} of {numSeries}. Bubble series with {numPoints} {#plural(numPoints, bubbles, bubble)}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value"}}}}),e(t,"modules/accessibility/options/deprecatedOptions.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(t,e){function l(t,e,i){n("Highcharts: Deprecated option "+e+" used. This will be removed from future versions of Highcharts. Use "+i+" instead.",!1,t)}function h(t,e,i){for(var n,s=0;s<e.length-1;++s)t=t[n=e[s]]=o(t[n],{});t[e[e.length-1]]=i}function r(i,n,s,o){function t(t,e){return e.reduce(function(t,e){return t[e]},t)}var a=t(i.options,n),r=t(i.options,s);Object.keys(o).forEach(function(t){var e=a[t];void 0!==e&&(h(r,o[t],e),l(i,n.join(".")+"."+t,s.join(".")+"."+o[t].join(".")))})}var n=t.error,o=e.pick;return function(t){var e,i,n,s,o,a;i=(e=t).options.chart||{},n=e.options.accessibility||{},["description","typeDescription"].forEach(function(t){i[t]&&(n[t]=i[t],l(e,"chart."+t,"accessibility."+t))}),(s=t).axes.forEach(function(t){(t=t.options)&&t.description&&(t.accessibility=t.accessibility||{},t.accessibility.description=t.description,l(s,"axis.description","axis.accessibility.description"))}),t.series&&(a={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","pointDescriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"]},(o=t).series.forEach(function(i){Object.keys(a).forEach(function(t){var e=i.options[t];void 0!==e&&(h(i.options,a[t],"skipKeyboardNavigation"===t?!e:e),l(o,"series."+t,"series."+a[t].join(".")))})})),r(t,["accessibility"],["accessibility"],{pointDateFormat:["point","dateFormat"],pointDateFormatter:["point","dateFormatter"],pointDescriptionFormatter:["point","descriptionFormatter"],pointDescriptionThreshold:["series","pointDescriptionEnabledThreshold"],pointNavigationThreshold:["keyboardNavigation","seriesNavigation","pointNavigationEnabledThreshold"],pointValueDecimals:["point","valueDecimals"],pointValuePrefix:["point","valuePrefix"],pointValueSuffix:["point","valueSuffix"],screenReaderSectionFormatter:["screenReaderSection","beforeChartFormatter"],describeSingleSeries:["series","describeSingleSeries"],seriesDescriptionFormatter:["series","descriptionFormatter"],onTableAnchorClick:["screenReaderSection","onViewDataTableClick"],axisRangeDateFormat:["screenReaderSection","axisRangeDateFormat"]}),r(t,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]}),r(t,["lang","accessibility"],["lang","accessibility"],{legendItem:["legend","legendItem"],legendLabel:["legend","legendLabel"],mapZoomIn:["zoom","mapZoomIn"],mapZoomOut:["zoom","mapZoomOut"],resetZoomButton:["zoom","resetZoomButton"],screenReaderRegionLabel:["screenReaderSection","beforeRegionLabel"],rangeSelectorButton:["rangeSelector","buttonText"],rangeSelectorMaxInput:["rangeSelector","maxInputLabel"],rangeSelectorMinInput:["rangeSelector","minInputLabel"],svgContainerEnd:["screenReaderSection","endOfChartMarker"],viewAsDataTable:["table","viewAsDataTableButtonText"],tableSummary:["table","tableSummary"]})}}),e(t,"modules/accessibility/a11y-i18n.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(r,t){var l=t.pick;r.i18nFormat=function(t,e,i){var n=[],s=0;do{var o=function(t,e){var i=(t=t.slice(e||0)).indexOf("{"),n=t.indexOf("}");if(-1<i&&i<n)return{statement:t.substring(i+1,n),begin:e+i+1,end:e+n}}(t,s),a=t.substring(s,o&&o.begin-1)}while(a.length&&n.push({value:a,type:"constant"}),o&&n.push({value:o.statement,type:"statement"}),s=o?o.end+1:s+1,o);return n.forEach(function(t){"statement"===t.type&&(t.value=function(t,e){var i=t.indexOf("#each("),n=t.indexOf("#plural("),s=t.indexOf("["),o=t.indexOf("]");if(-1<i){var s=t.slice(i).indexOf(")")+i,a=t.substring(0,i),n=t.substring(s+1);if(s=t.substring(i+6,s).split(","),i=Number(s[1]),t="",e=e[s[0]])for(i=(i=isNaN(i)?e.length:i)<0?e.length+i:Math.min(i,e.length),s=0;s<i;++s)t+=a+e[s]+n;return t.length?t:""}if(-1<n){switch(a=t.slice(n).indexOf(")")+n,t=t.substring(n+8,a).split(","),Number(e[t[0]])){case 0:t=l(t[4],t[1]);break;case 1:t=l(t[2],t[1]);break;case 2:t=l(t[3],t[1]);break;default:t=t[1]}return e=t?(e=t).trim&&e.trim()||e.replace(/^\s+|\s+$/g,""):""}return-1<s?(n=t.substring(0,s),t=Number(t.substring(s+1,o)),e=e[n],!isNaN(t)&&e&&(t<0?void 0===(a=e[e.length+t])&&(a=e[0]):void 0===(a=e[t])&&(a=e[e.length-1])),void 0!==a?a:""):"{"+t+"}"}(t.value,e))}),r.format(n.reduce(function(t,e){return t+e.value},""),e,i)},r.Chart.prototype.langFormat=function(t,e){t=t.split(".");for(var i=this.options.lang,n=0;n<t.length;++n)i=i&&i[t[n]];return"string"==typeof i?r.i18nFormat(i,e,this):""}}),e(t,"modules/accessibility/focusBorder.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(t,e){var n=t.addEvent,i=e.extend,s=e.pick;i(t.SVGElement.prototype,{addFocusBorder:function(t,e){this.focusBorder&&this.removeFocusBorder();var i=this.getBBox();t=s(t,3),i.x+=this.translateX||0,i.y+=this.translateY||0,this.focusBorder=this.renderer.rect(i.x-t,i.y-t,i.width+2*t,i.height+2*t,parseInt((e&&e.borderRadius||0).toString(),10)).addClass("highcharts-focus-border").attr({zIndex:99}).add(this.parentGroup),this.renderer.styledMode||this.focusBorder.attr({stroke:e&&e.stroke,"stroke-width":e&&e.strokeWidth})},removeFocusBorder:function(){this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}}),t.Chart.prototype.setFocusToElement=function(t,e){var i=this.options.accessibility.keyboardNavigation.focusBorder;(e=e||t.element)&&e.focus&&(e.hcEvents&&e.hcEvents.focusin||n(e,"focusin",function(){}),e.focus(),i.hideBrowserFocusOutline&&(e.style.outline="none")),i.enabled&&(this.focusElement&&this.focusElement.removeFocusBorder(),t.addFocusBorder(i.margin,{stroke:i.style.color,strokeWidth:i.style.lineWidth,borderRadius:i.style.borderRadius}),this.focusElement=t)}}),e(t,"modules/accessibility/accessibility.js",[t["modules/accessibility/utils/chartUtilities.js"],t["parts/Globals.js"],t["modules/accessibility/KeyboardNavigationHandler.js"],t["parts/Utilities.js"],t["modules/accessibility/AccessibilityComponent.js"],t["modules/accessibility/KeyboardNavigation.js"],t["modules/accessibility/components/LegendComponent.js"],t["modules/accessibility/components/MenuComponent.js"],t["modules/accessibility/components/SeriesComponent/SeriesComponent.js"],t["modules/accessibility/components/ZoomComponent.js"],t["modules/accessibility/components/RangeSelectorComponent.js"],t["modules/accessibility/components/InfoRegionsComponent.js"],t["modules/accessibility/components/ContainerComponent.js"],t["modules/accessibility/high-contrast-mode.js"],t["modules/accessibility/high-contrast-theme.js"],t["modules/accessibility/options/options.js"],t["modules/accessibility/options/langOptions.js"],t["modules/accessibility/options/deprecatedOptions.js"]],function(t,e,i,n,s,c,d,u,p,f,m,g,y,o,b,v,x,w){function a(t){this.init(t)}var C=n.extend,r=e.addEvent,S=e.win.document,l=e.merge,h=e.fireEvent;l(!0,e.defaultOptions,v,{accessibility:{highContrastTheme:b},lang:x}),e.A11yChartUtilities=t,e.KeyboardNavigationHandler=i,e.AccessibilityComponent=s,a.prototype={init:function(t){this.chart=t,S.addEventListener&&t.renderer.isSVG?(w(t),this.initComponents(),this.keyboardNavigation=new c(t,this.components),this.update()):t.renderTo.setAttribute("aria-hidden",!0)},initComponents:function(){var e=this.chart,t=e.options.accessibility,i=(this.components={container:new y,infoRegions:new g,legend:new d,chartMenu:new u,rangeSelector:new m,series:new p,zoom:new f},t.customComponents&&C(this.components,t.customComponents),this.components);Object.keys(i).forEach(function(t){i[t].initBase(e),i[t].init()})},update:function(){var e=this.components,i=this.chart,t=i.options.accessibility;h(i,"beforeA11yUpdate"),i.types=this.getChartTypes(),Object.keys(e).forEach(function(t){e[t].onChartUpdate(),h(i,"afterA11yComponentUpdate",{name:t,component:e[t]})}),this.keyboardNavigation.update(t.keyboardNavigation.order),!i.highContrastModeActive&&o.isHighContrastModeActive()&&o.setHighContrastTheme(i),h(i,"afterA11yUpdate")},destroy:function(){var t=this.chart||{},e=this.components;Object.keys(e).forEach(function(t){e[t].destroy(),e[t].destroyBase()}),this.keyboardNavigation&&this.keyboardNavigation.destroy(),t.renderTo&&t.renderTo.setAttribute("aria-hidden",!0),t.focusElement&&t.focusElement.removeFocusBorder()},getChartTypes:function(){var e={};return this.chart.series.forEach(function(t){e[t.type]=1}),Object.keys(e)}},e.Chart.prototype.updateA11yEnabled=function(){var t=this.accessibility,e=this.options.accessibility;e&&e.enabled?t?t.update():this.accessibility=new a(this):t?(t.destroy&&t.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)},r(e.Chart,"render",function(t){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());var e=this.accessibility;e&&Object.keys(e.components).forEach(function(t){e.components[t].onChartRender()})}),r(e.Chart,"update",function(t){(t=t.options.accessibility)&&(t.customComponents&&(this.options.accessibility.customComponents=t.customComponents,delete t.customComponents),l(!0,this.options.accessibility,t),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}),r(e.Point,"update",function(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}),["addSeries","init"].forEach(function(t){r(e.Chart,t,function(){this.a11yDirty=!0})}),["update","updatedData","remove"].forEach(function(t){r(e.Series,t,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}),["afterDrilldown","drillupall"].forEach(function(t){r(e.Chart,t,function(){this.accessibility&&this.accessibility.update()})}),r(e.Chart,"destroy",function(){this.accessibility&&this.accessibility.destroy()})}),e(t,"masters/modules/accessibility.src.js",[],function(){})}),function(n,s){"use strict";var i="AddCalEvent:invalid",o={title:"",desc:"",location:"",url:"",organizer:{name:"",email:""},time:{start:"",end:"",zone:"00:00",allday:!1}};s.addcalevent=function(t,e){this.el=s(e),this._create(t)||(this.failed=!0)},s.addcalevent.defaults={onclick:!1,apps:[],ics:"",preVal:!0,disabledClass:"dis",linkText:["Outlook Calendar","Google Calendar","Yahoo Calendar","Hotmail Calendar","iCal Calendar"]},s.addcalevent.prototype={_create:function(t){return this.options=s.extend(!0,{},s.addcalevent.defaults,t),this.options.preVal&&this._disable(!this._sanitizeData()),this._attach(),!0},_attach:function(){var e=this;this.el.on("click",".ace_opt",function(t){e._click(this,t)}),this.el.on("click",function(t){e._clickShow(t)}),s(document).on("click",function(){e._hide()}),this.options.onclick||(this.el.on("mouseover",function(){e._show()}),this.el.on("mouseout",function(){e._hide()}))},_clickShow:function(t){this.open?this._hide():(this._show(),this.open=!0),t.stopPropagation()},_show:function(){this.dd||this._createDropdown(),this.dd.stop(),this.dd.clearQueue(),this.opening?(this.dd.show(),this.dd.css(this.ddCss)):(this.dd.show("fast"),this.opening=!0,this._eventPublisher("AddCalEvent:show"))},_hide:function(){var t=this;this.dd&&(this.open=!1,this.dd.stop(),this.dd.clearQueue(),this.dd.hide("fast",function(){t.opening=!1,t.dd.css(t.ddCss)}))},_createDropdown:function(t){var e=this._sanitizeData();this._disable(!e),this.dd=s(this._createHtml(e)),this.el.append(this.dd),this.ddCss={height:this.dd.css("height"),opacity:1}},_disable:function(t){this.el.toggleClass(this.options.disabledClass,t)},_createHtml:function(t){for(var e=this._getStyle(),i="",n=0,s=this.options.linkText.length;n<s;n++)this._isLinkNeeded(n)&&(i+='<a class="ace_opt" data-ace-id="'+n+'" href="javascript:;">'+this.options.linkText[n]+"</a>");return'<div class="ace_dd" style="'+e+'">'+i+"</div>"},_isLinkNeeded:function(t){var e=!1;if(0===this.options.apps.length)e=this._runIcsTest(t);else for(var i=0,n=this.options.apps.length;i<n;i++)if(this.options.apps[i]===t){e=this._runIcsTest(t);break}return e},_runIcsTest:function(t){var e=!1;return e=0!==t&&4!==t||""!==this.options.ics?!0:e},_getStyle:function(){var t=this.el.position(),e=t.left+parseFloat(this.el.css("marginLeft")),t=t.top+this.el.outerHeight()+parseFloat(this.el.css("marginTop"))-1;return"min-width:"+(this.el.outerWidth()-parseFloat(this.el.css("borderLeftWidth")))+"px;top:"+t+"px;left:"+e+"px"},_sanitizeData:function(){var t=!0,e=(e=this._getDataFromEl())||this.options.data;return this.options.data=s.extend(!0,{},o,e),this.options.data.timeObj={},this.options.data.timeObj.start=new Date(this.options.data.time.start),isNaN(this.options.data.timeObj.start.getTime())&&(t=!1,this._eventPublisher(i,{invalidStartDate:this.options.data.time.start})),this.options.data.timeObj.end=new Date(this.options.data.time.end),isNaN(this.options.data.timeObj.end.getTime())&&(t=!1,this._eventPublisher(i,{invalidEndDate:this.options.data.time.end})),this._lookupTimeZone(),this.options.data.time.zone.length<6&&(this.options.data.time.zone="+"+this.options.data.time.zone),/^[\+\-]?[0-9]{2}:[0-9]{2}/.test(this.options.data.time.zone)||(t=!1,this._eventPublisher(i,{invalidTimeZone:this.options.data.time.zone}),this.options.data.time.zone="+00:00"),t},_lookupTimeZone:function(){AddCalEventZones&&AddCalEventZones[this.options.data.time.zone]&&(this.options.data.time.zone=AddCalEventZones[this.options.data.time.zone])},_getDataFromEl:function(){var t=this.el.data("ace");return"string"==typeof t&&(this._eventPublisher(i,{invalidDataString:t}),t=null),t},_update:function(t){return this.options=s.extend(!0,{},s.addcalevent.defaults,t),this.options.preVal&&this._disable(!this._sanitizeData()),!0},_click:function(t,e){t=s(t).data("ace-id");this._addEvent(t),e.stopPropagation(),this._hide()},_addEvent:function(t){var e,i;switch(t){case 0:case 4:e=this._getUrl_ics(),i=!0;break;case 1:e=this._getUrl_google();break;case 2:e=this._getUrl_yahoo();break;case 3:e=this._getUrl_hotmail()}e&&(i?location.href=e:n.open(e,"calendar")),this._eventPublisher("AddCalEvent:add",{calendarLinkType:t,url:e})},_getUTCTime:function(t){t=this._adjustToUTC(t,this.options.data.time.zone);return this._getDatePart(t.getFullYear(),4)+this._getDatePart(t.getMonth()+1,2)+this._getDatePart(t.getDate(),2)+"T"+this._getDatePart(t.getHours(),2)+this._getDatePart(t.getMinutes(),2)+this._getDatePart(t.getSeconds(),2)+"Z"},_adjustToUTC:function(t,e){var i,n,t=new Date(t);return isNaN(t.getTime())?new Date:(i=e.substring(1,3),n=e.substring(4,6),"-"===e.substring(0,1)?(t.setHours(t.getHours()+ +i),t.setMinutes(t.getMinutes()+ +n)):(t.setHours(t.getHours()-i),t.setMinutes(t.getMinutes()-n)),t)},_getDatePart:function(t,e){for(t=t.toString();t.length<e;)t="0"+t;return t},_getDateDiff:function(t,e){e=Math.floor((e-t)/6e4),t=Math.floor(e/60),e-=60*t;return this._getDatePart(t,2)+this._getDatePart(e,2)},_getUrl_ics:function(){var t=this.options.data,e=this.options.ics;return e=(e=(e=(e=(e=(e=(e=(e=(e+=-1===e.indexOf("?")?"?":"&")+("title="+encodeURIComponent(t.title)))+("&desc="+encodeURIComponent(t.desc)))+("&start="+this._getUTCTime(t.timeObj.start)))+("&end="+this._getUTCTime(t.timeObj.end)))+("&loc="+encodeURIComponent(t.location)))+("&org="+encodeURIComponent(t.organizer.name)))+("&url="+encodeURIComponent(t.url)))+("&offset="+(new Date).getTimezoneOffset())},_getUrl_google:function(){var t=this.options.data,e="http://www.google.com/calendar/event?action=TEMPLATE";return(e+="&text="+encodeURIComponent(t.title))+("&details="+encodeURIComponent(t.desc))+("&location="+encodeURIComponent(t.location))+("&dates="+encodeURIComponent(this._getUTCTime(t.timeObj.start)+"/"+this._getUTCTime(t.timeObj.end)))+("&sprop=website:"+encodeURIComponent(t.url))+("&sprop=name:"+encodeURIComponent(t.organizer.name))},_getUrl_yahoo:function(){var t=this.options.data,e="http://calendar.yahoo.com?v=60";return(e+="&TITLE="+encodeURIComponent(t.title))+("&DESC="+encodeURIComponent(t.desc))+("&URL="+encodeURIComponent(t.url))+("&in_loc="+encodeURIComponent(t.location))+("&ST="+this._getUTCTime(t.timeObj.start))+("&DUR="+this._getDateDiff(t.timeObj.start,t.timeObj.end))},_getUrl_hotmail:function(){var t=this.options.data,e="http://calendar.live.com/calendar/calendar.aspx?rru=addevent";return(e+="&summary="+encodeURIComponent(t.title))+("&location="+encodeURIComponent(t.location))+("&dtstart="+this._getUTCTime(t.timeObj.start))+("&dtend="+this._getUTCTime(t.timeObj.end))+("&description="+encodeURIComponent(t.desc))},_eventPublisher:function(t,e){(e=e||{}).buttonId=this.el.attr("id"),e.data=this.options.data,s(document).trigger(t,e),n.console&&(n.console.log(t),n.console.log(e))},getEventData:function(t){this._sanitizeData(),t.data=this.options.data},update:function(t){this._update(t)}},s.fn.addcalevent=function(e){switch(typeof e){case"string":var i=Array.prototype.slice.call(arguments,1);try{this.each(function(){var t=s.data(this,"addcalevent");if(!t)throw"Method "+e+" cannot be called until addcalevent is setup";if(!s.isFunction(t[e])||"_"===e.charAt(0))throw"No such public method "+e+" for addcalevent";t[e].apply(t,i)})}catch(t){return n.console&&n.console.log(t),!1}break;case"undefined":case"object":this.each(function(){var t=s.data(this,"addcalevent");t?t.update(e):(t=new s.addcalevent(e,this)).failed||s.data(this,"addcalevent",t)})}return this}}(window,jQuery);var AddCalEventZones={A:"+01:00",ACDT:"+10:30",ACST:"+09:30",ADT:"-03:00",AEDT:"+11:00",AEST:"+10:00",AFT:"+04:30",AKDT:"-08:00",AKST:"-09:00",ALMT:"+06:00",AMST:"-03:00",AMT:"-04:00",ANAST:"+12:00",ANAT:"+12:00",AQTT:"+05:00",ART:"-03:00",AST:"-04:00",AWDT:"+09:00",AWST:"+08:00",AZOST:"+00:00",AZOT:"-01:00",AZST:"+05:00",AZT:"+04:00",B:"+02:00",BNT:"+08:00",BOT:"-04:00",BRST:"-02:00",BRT:"-03:00",BST:"+01:00",BTT:"+06:00",C:"+03:00",CAST:"+08:00",CAT:"+02:00",CCT:"+06:30",CDT:"-05:00",CEST:"+02:00",CET:"+01:00",CHADT:"+13:45",CHAST:"+12:45",CKT:"-10:00",CLST:"-03:00",CLT:"-04:00",COT:"-05:00",CST:"-06:00",CVT:"-01:00",CXT:"+07:00",ChST:"+10:00",D:"+04:00",DAVT:"+07:00",E:"+05:00",EASST:"-05:00",EAST:"-06:00",EAT:"+03:00",ECT:"-05:00",EDT:"+11:00",EEST:"+03:00",EET:"+02:00",EGST:"+00:00",EGT:"-01:00",EST:"-05:00",ET:"-05:00",F:"+06:00",FJST:"+13:00",FJT:"+12:00",FKST:"-03:00",FKT:"-04:00",FNT:"-02:00",G:"+07:00",GALT:"-06:00",GAMT:"-09:00",GET:"+04:00",GFT:"-03:00",GILT:"+12:00",GMT:"+00:00",GST:"+04:00",GYT:"-04:00",H:"+08:00",HAA:"-03:00",HAC:"-05:00",HADT:"-09:00",HAE:"-04:00",HAP:"-07:00",HAR:"-06:00",HAST:"-10:00",HAT:"-02:30",HAY:"-08:00",HKT:"+08:00",HLV:"-04:30",HNA:"-04:00",HNC:"-06:00",HNE:"-05:00",HNP:"-08:00",HNR:"-07:00",HNT:"-03:30",HNY:"-09:00",HOVT:"+07:00",I:"+09:00",ICT:"+07:00",IDT:"+03:00",IOT:"+06:00",IRDT:"+04:30",IRKST:"+09:00",IRKT:"+09:00",IRST:"+03:30",IST:"+01:00",JST:"+09:00",K:"+10:00",KGT:"+06:00",KRAST:"+08:00",KRAT:"+08:00",KST:"+09:00",KUYT:"+04:00",L:"+11:00",LHDT:"+11:00",LHST:"+10:30",LINT:"+14:00",M:"+12:00",MAGST:"+12:00",MAGT:"+12:00",MART:"-09:30",MAWT:"+05:00",MDT:"-06:00",MESZ:"+02:00",MEZ:"+01:00",MHT:"+12:00",MMT:"+06:30",MSD:"+04:00",MSK:"+04:00",MST:"-07:00",MUT:"+04:00",MVT:"+05:00",MYT:"+08:00",N:"-01:00",NCT:"+11:00",NDT:"-02:30",NFT:"+11:30",NOVST:"+07:00",NOVT:"+06:00",NPT:"+05:45",NST:"-03:30",NUT:"-11:00",NZDT:"+13:00",NZST:"+12:00",O:"-02:00",OMSST:"+07:00",OMST:"+07:00",P:"-03:00",PDT:"-07:00",PET:"-05:00",PETST:"+12:00",PETT:"+12:00",PGT:"+10:00",PHOT:"+13:00",PHT:"+08:00",PKT:"+05:00",PMDT:"-02:00",PMST:"-03:00",PONT:"+11:00",PST:"-08:00",PT:"-08:00",PWT:"+09:00",PYST:"-03:00",PYT:"-04:00",Q:"-04:00",R:"-05:00",RET:"+04:00",S:"-06:00",SAMT:"+04:00",SAST:"+02:00",SBT:"+11:00",SCT:"+04:00",SGT:"+08:00",SRT:"-03:00",SST:"-11:00",T:"-07:00",TAHT:"-10:00",TFT:"+05:00",TJT:"+05:00",TKT:"+13:00",TLT:"+09:00",TMT:"+05:00",TVT:"+12:00",U:"-08:00",ULAT:"+08:00",UTC:"+00:00",UYST:"-02:00",UYT:"-03:00",UZT:"+05:00",V:"-09:00",VET:"-04:30",VLAST:"+11:00",VLAT:"+11:00",VUT:"+11:00",W:"-10:00",WAST:"+02:00",WAT:"+01:00",WEST:"+01:00",WESZ:"+01:00",WET:"+00:00",WEZ:"+00:00",WFT:"+12:00",WGST:"-02:00",WGT:"-03:00",WIB:"+07:00",WIT:"+09:00",WITA:"+08:00",WST:"+13:00",WT:"+00:00",X:"-11:00",Y:"-12:00",YAKST:"+10:00",YAKT:"+10:00",YAPT:"+10:00",YEKST:"+06:00",YEKT:"+06:00",Z:"+00:00"},SWIFT=(!function(t){"function"==typeof define&&define.amd?define(t):window.purl=t()}(function(){var s={a:"href",img:"src",form:"action",base:"href",script:"src",iframe:"src",link:"href",embed:"src",object:"data"},o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","fragment"],i={anchor:"fragment"},a={strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},r=/^[0-9]+$/;function l(t,e){if(0===t[e].length)return t[e]={};var i,n={};for(i in t[e])n[i]=t[e][i];return t[e]=n}function h(t,e,i,n){var s,o=t.shift();o?(s=e[i]=e[i]||[],"]"==o?d(s)?""!==n&&s.push(n):"object"==typeof s?s[function(t){var e,i=[];for(e in t)t.hasOwnProperty(e)&&i.push(e);return i}(s).length]=n:e[i]=[e[i],n]:(~o.indexOf("]")&&(o=o.substr(0,o.length-1)),h(t,s=!r.test(o)&&d(s)?l(e,i):s,o,n))):d(e[i])?e[i].push(n):"object"==typeof e[i]||void 0===e[i]?e[i]=n:e[i]=[e[i],n]}function p(t,e,i){if(~e.indexOf("]"))h(e.split("["),t,"base",i);else{if(!r.test(e)&&d(t.base)){var n,s={};for(n in t.base)s[n]=t.base[n];t.base=s}""!==e&&(o=t.base,i=i,void 0===(a=o[e=e])?o[e]=i:d(a)?a.push(i):o[e]=[a,i])}var o,a;return t}function c(t){return function(t,e){var i=0,n=t.length>>0,s=arguments[2];for(;i<n;)i in t&&(s=e.call(void 0,s,t[i],i,t)),++i;return s}(String(t).split(/&|;/),function(t,e){try{e=decodeURIComponent(e.replace(/\+/g," "))}catch(t){}var i=e.indexOf("="),n=function(t){for(var e,i,n=t.length,s=0;s<n;++s)if("]"==(i=t[s])&&(e=!1),"["==i&&(e=!0),"="==i&&!e)return s}(e),s=e.substr(0,n||i),n=(n=e.substr(n||i,e.length)).substr(n.indexOf("=")+1,n.length);return""===s&&(s=e,n=""),p(t,s,n)},{base:{}}).base}function d(t){return"[object Array]"===Object.prototype.toString.call(t)}function u(t,e){return 1===arguments.length&&!0===t&&(e=!0,t=void 0),e=e||!1,{data:function(t,e){for(var t=decodeURI(t),i=a[e?"strict":"loose"].exec(t),n={attr:{},param:{},seg:{}},s=14;s--;)n.attr[o[s]]=i[s]||"";return n.param.query=c(n.attr.query),n.param.fragment=c(n.attr.fragment),n.seg.path=n.attr.path.replace(/^\/+|\/+$/g,"").split("/"),n.seg.fragment=n.attr.fragment.replace(/^\/+|\/+$/g,"").split("/"),n.attr.base=n.attr.host?(n.attr.protocol?n.attr.protocol+"://"+n.attr.host:n.attr.host)+(n.attr.port?":"+n.attr.port:""):"",n}(t=t||window.location.toString(),e),attr:function(t){return void 0!==(t=i[t]||t)?this.data.attr[t]:this.data.attr},param:function(t){return void 0!==t?this.data.param.query[t]:this.data.param.query},fparam:function(t){return void 0!==t?this.data.param.fragment[t]:this.data.param.fragment},segment:function(t){return void 0===t?this.data.seg.path:(t=t<0?this.data.seg.path.length+t:t-1,this.data.seg.path[t])},fsegment:function(t){return void 0===t?this.data.seg.fragment:(t=t<0?this.data.seg.fragment.length+t:t-1,this.data.seg.fragment[t])}}}return(u.jQuery=function(n){null!=n&&(n.fn.url=function(t){var e,i="";return u(i=this.length?n(this).attr(void 0!==(e=(e=this[0]).tagName)?s[e.toLowerCase()]:e)||"":i,t)},n.url=u)})(window.jQuery),u}),function(i){i.fn.update=function(){for(var t=i(this.selector),e=0;e<t.length;e++)this[e]=t[e];for(;e<this.length;e++)this[e]=void 0;return this.length=t.length,this}}(jQuery),SWIFT||{});!function(){"use strict";SWIFT.page={init:function(){var t,e;SWIFT.page.browserCheck(),jQuery("body").hasClass("header-below-slider")&&0<jQuery(".home-slider-wrap").length&&SWIFT.page.headerSlider(),0<jQuery("#one-page-nav").length&&SWIFT.page.onePageNav(),0<jQuery("#back-to-top").length&&a.scroll(function(){SWIFT.page.backToTop()}),SWIFT.page.expandingAssets(),0<jQuery(".recent-posts").length&&SWIFT.recentPosts.init(),SWIFT.page.moveModals(),jQuery('a[data-toggle="modal"]').on("click",function(){return setTimeout(function(){SWIFT.map.init()},300),!0}),SWIFT.page.modalClose(),c.hasClass("single-post")&&(t=jQuery("#respond").find("h3"),e=jQuery("#respond").find("h3").html(),t.addClass("spb-heading"),t.html("<span>"+e+"</span>")),SWIFT.page.smoothScrollLinks(),!y&&0<jQuery(".sticky-details").length&&SWIFT.portfolio.stickyDetails(),jQuery(".activity-time-since,.bp-secondary-action").on("click",function(t){t.preventDefault(),jQuery(".viewer").css("display","none"),window.location=jQuery(this).attr("href")}),jQuery(".love-it").on("click",function(){return SWIFT.page.loveIt(jQuery(this)),!1}),SWIFT.page.articleShare(),c.hasClass("article-swipe")&&c.hasClass("single-post")&&0<jQuery(".post-pagination-wrap").length&&SWIFT.page.articleNavigation(),jQuery("article").hasClass("single-post-fw-media-title")&&SWIFT.page.postMediaTitle(),0<jQuery(".related-items").length&&SWIFT.relatedPosts.init(),SWIFT.page.lightbox(),c.hasClass("page-transitions")&&SWIFT.page.pageTransitions(),SWIFT.page.directorySubmit(),c.hasClass("single-event")&&SWIFT.page.exportEvent()},load:function(){767<a.width()&&SWIFT.page.fwRowContent(),a.smartresize(function(){767<a.width()&&SWIFT.page.fwRowContent()}),0<jQuery(".fancy-heading").length&&SWIFT.page.fancyHeading(),!y&&e.hasClass("stickysidebars")&&0<jQuery(".sidebar").length&&SWIFT.page.stickyWidget();var t=window.location.hash;a.width(),""!==t&&t.indexOf("__proto__")<0&&0<jQuery(SWIFT.page.sanitizeKey(t)).length&&setTimeout(function(){SWIFT.page.onePageNavGoTo(SWIFT.page.sanitizeKey(t))},300)},browserCheck:function(){jQuery.browser={},jQuery.browser.mozilla=/mozilla/.test(navigator.userAgent.toLowerCase())&&!/webkit/.test(navigator.userAgent.toLowerCase()),jQuery.browser.webkit=/webkit/.test(navigator.userAgent.toLowerCase()),jQuery.browser.opera=/opera/.test(navigator.userAgent.toLowerCase()),jQuery.browser.msie=/msie/.test(navigator.userAgent.toLowerCase()),jQuery.browser.msieMobile10=/iemobile\/10\.0/.test(navigator.userAgent.toLowerCase()),y?c.addClass("mobile-browser"):c.addClass("standard-browser"),N&&c.addClass("ie-mobile"),_&&c.addClass("apple-mobile-browser"),c.hasClass("woocommerce-page")&&!c.hasClass("woocommerce")&&c.addClass("woocommerce"),o&&o<9&&c.addClass("browser-ie");navigator.userAgent.match(/MSIE\s([\d]+)/)&&c.addClass("browser-ie10"),navigator.userAgent.match(/Trident.*rv\:11\./)&&c.addClass("browser-ie11"),jQuery.browser.mozilla&&c.addClass("browser-ff"),0<=navigator.userAgent.search("Safari")&&navigator.userAgent.search("Chrome")<0&&c.addClass("browser-safari")},sanitizeKey:function(t){return t&&["__proto__","constructor","prototype"].includes(t.toLowerCase())?t.toUpperCase():t},getURLParameters:function(t){t=SWIFT.page.sanitizeKey(t);var e=window.document.URL.toString();if(0<e.indexOf("?")){for(var i=e.split("?")[1].split("&"),n=new Array(i.length),s=new Array(i.length),o=0,o=0;o<i.length;o++){var a=i[o].split("=");n[o]=a[0],""!=a[1]?s[o]=unescape(a[1]):s[o]=""}for(o=0;o<i.length;o++)if(n[o]==t)return null==s[o]&&(s[o]=""),s[o];return""}return""},resizeVideos:function(){},resizeHeadings:function(){var t=jQuery("h1:not(.logo-h1)").css("font-size"),e=jQuery("h2:not(.caption-title)").css("font-size");SWIFT.page.resizeHeadingsResize(t,e),a.smartresize(function(){SWIFT.page.resizeHeadingsResize(t,e)})},resizeHeadingsResize:function(t,e){var i;a.width()<=768?(t&&(t=t.replace("px",""),i=Math.floor(.6*t),jQuery("h1:not(.logo-h1)").fitText(1,{minFontSize:i+"px",maxFontSize:t+"px"}).css("line-height","120%")),e&&(e=e.replace("px",""),i=Math.floor(.6*e),jQuery("h2:not(.caption-title)").fitText(1,{minFontSize:i+"px",maxFontSize:e+"px"}).css("line-height","120%"))):(jQuery("h1:not(.logo-h1)").css("font-size","").css("line-height",""),jQuery("h2:not(.caption-title)").css("font-size","").css("line-height",""))},injectsvgs:function(){var t=document.querySelectorAll("img.inject-me");SVGInjector(t,{},function(t){})},loveIt:function(n){var s=jQuery("#loveit-locale"),o=n.data("post-id"),t=n.data("user-id"),e="love_it",e=(n.hasClass("loved")&&(e="unlove_it"),{action:e="false"==s.data("loggedin")&&jQuery.cookie("loved-"+o)?"unlove_it":e,item_id:o,user_id:t,love_it_nonce:s.data("nonce")});jQuery.post(s.data("ajaxurl"),e,function(t){var e,i,t=jQuery.trim(t);"loved"==t?(n.addClass("loved"),i=(e=n.find("data.count")).text(),e.text(parseInt(i)+1),"false"==s.data("loggedin")&&jQuery.cookie("loved-"+o,"yes",{expires:1})):"unloved"==t?(n.removeClass("loved"),i=(e=n.find("data.count")).text(),e.text(parseInt(i)-1),"false"==s.data("loggedin")&&jQuery.cookie("loved-"+o,"no",{expires:1})):alert(s.data("error"))})},expandingAssets:function(){jQuery(".spb-row-expand-text").on("click","",function(t){t.preventDefault();var e=jQuery(this),i=e.next();i.hasClass("spb-row-expanding-open")&&!i.hasClass("spb-row-expanding-active")?(i.addClass("spb-row-expanding-open").addClass("spb-row-expanding-active").slideUp(800),setTimeout(function(){e.removeClass("row-open").find("span").text(e.data("closed-text")),i.css("display","block").removeClass("spb-row-expanding-open").removeClass("spb-row-expanding-active")},800)):i.hasClass("spb-row-expanding-active")||(e.addClass("row-open").find("span").text(e.data("open-text")),i.css("display","none").addClass("spb-row-expanding-open").addClass("spb-row-expanding-active").slideDown(800),setTimeout(function(){i.removeClass("spb-row-expanding-active")},800))})},fwRowContent:function(){},headerSlider:function(){jQuery("#site-loading").css("display","block");var t=0,t=(0<jQuery(".home-slider-wrap").find(".rev_slider_wrapper").length?jQuery(".home-slider-wrap").find(".rev_slider_wrapper"):jQuery(".home-slider-wrap")).height();jQuery(".home-slider-wrap").css("position","fixed").css("height",t),jQuery("#container").css("top",t),setTimeout(function(){jQuery("#site-loading").fadeOut(1e3)},250),a.smartresize(function(){jQuery("#container").css("top",jQuery(".home-slider-wrap").height())}),jQuery("a#slider-continue").on("click",function(t){t.preventDefault(),jQuery("html, body").stop().animate({scrollTop:jQuery("#container").css("top")},1500,"easeInOutExpo")})},fancyHeading:function(){var i=jQuery(".fancy-heading"),n=i.find(".heading-text"),t=n.height(),e=parseInt(i.data("height"),10),s=jQuery(".header-wrap"),o=0;(c.hasClass("header-naked-light")||c.hasClass("header-naked-dark"))&&(o=s.height()),(e=e||400)<t&&(e=t+80),e+=o,n.vCenterTop(),setTimeout(function(){i.css({height:e+"px",opacity:1})},400),setTimeout(function(){n.css("opacity",1)},800),setTimeout(function(){i.addClass("animated")},1400),W&&!y&&a.scroll(function(){var t=a.scrollTop(),e=0;0<jQuery(".sticky-header").length&&(e=jQuery("#header-section").height()),0<jQuery("#top-bar").length&&(e+=jQuery("#top-bar").height()),0<jQuery("#wpadminbar:visible").length&&jQuery("body.feedback-commenting-enabled, body.active_comment")<=0&&(e+=32),(t-=e)<jQuery(document).height()-a.height()&&(t<0&&(t=0),i.stop(!0,!0).transition({top:t/1.8},0),n.stop(!0,!0).transition({opacity:1-t/420},0))})},moveModals:function(){jQuery(".modal").each(function(){jQuery(this).appendTo("body")})},modalClose:function(){jQuery(".modal-backdrop, .modal .close, .modal .btn").on("click",function(){jQuery(".modal iframe").each(function(){var t=jQuery(this);t.attr("src",t.attr("src"))})})},smoothScrollLinks:function(){c.on("click",".smooth-scroll-link",function(t){var e=jQuery(this).attr("href");if(!e||0!==e.indexOf("#"))return t;SWIFT.page.onePageNavGoTo(e),t.preventDefault()})},onePageNav:function(){var t=jQuery("#one-page-nav"),e=t.hasClass("opn-arrows")?"arrows":"standard",i="",n=0;jQuery(".page-content").find("section.row").each(function(){var t=jQuery(this).attr("id"),e=jQuery(this).data("rowname");t&&0<e.length&&0<jQuery(this).height()&&(i+='<li><a href="#'+t+'" data-title="'+e+'"><i></i></a><div class="hover-caption">'+e+"</div></li>",n++)}),0<n&&(t.append("<ul>"+i+"</ul>"),"arrows"==e&&(t.find("ul").css("display","none"),t.append('<a href="#" class="opn-up"><i class="ss-up"></i></a>'),t.append('<div class="opn-status"><span class="current">1</span>/<span class="total">'+n+"</span></div>"),t.append('<a href="#" class="opn-down"><i class="ss-down"></i></a>')),t.vCenter(),setTimeout(function(){SWIFT.page.onePageNavScroll(t),t.css("display","block").stop().animate({right:"0",opacity:1},1e3,"easeOutQuart"),jQuery("#one-page-nav ul li a").bind("click",function(t){SWIFT.page.onePageNavGoTo(jQuery(this).attr("href")),t.preventDefault()}),jQuery("#one-page-nav a.opn-up").bind("click",function(t){var e=parseInt(jQuery(".opn-status .current").text(),10)-1,i=jQuery("#one-page-nav ul li:nth-child("+e+") > a").attr("href");0<e&&SWIFT.page.onePageNavGoTo(i),t.preventDefault()}),jQuery("#one-page-nav a.opn-down").bind("click",function(t){var e=parseInt(jQuery(".opn-status .current").text(),10)+1,i=jQuery("#one-page-nav ul li:nth-child("+e+") > a").attr("href");e<=n&&SWIFT.page.onePageNavGoTo(i),t.preventDefault()}),SWIFT.page.onePageNavScroll(t),a.on("scroll",function(){SWIFT.page.onePageNavScroll(t)})},1e3))},onePageNavGoTo:function(t){var e=0;0<jQuery("#wpadminbar:visible").length&&(e=jQuery("#wpadminbar").height()),c.hasClass("sticky-header-enabled")&&(e=0<jQuery(".sticky-header").outerHeight()?e+jQuery(".sticky-header").outerHeight():e+jQuery("#header-section").outerHeight()),SWIFT.isScrolling=!0,jQuery("html, body").stop().animate({scrollTop:jQuery(t).offset().top-e+1},1e3,"easeInOutExpo",function(){SWIFT.isScrolling=!1})},onePageNavScroll:function(t){var e=0,e=(c.hasClass("sticky-header-enabled")&&(e=0<jQuery(".sticky-header").height()?e+jQuery(".sticky-header").height():e+jQuery("#header-section").height()),0<jQuery("#wpadminbar:visible").length&&(e+=jQuery("#wpadminbar").height()),jQuery("section.row:in-viewport("+e+")").data("rowname")),i=0;e||t.find("li").removeClass("selected"),t.is(":visible")&&e&&(t.find("li").removeClass("selected"),t.find('li a[data-title="'+e+'"]').parent().addClass("selected"),i=t.find('li a[data-title="'+e+'"]').parent().index()+1),0<i&&jQuery(".opn-status .current").text(i),t.hasClass("opn-arrows")&&(e=t.find(".current").text(),i=t.find(".total").text(),"1"===e?t.find(".opn-up").addClass("disabled"):t.find(".opn-up").removeClass("disabled"),e===i?t.find(".opn-down").addClass("disabled"):t.find(".opn-down").removeClass("disabled"))},articleShare:function(){jQuery(".article-share").each(function(){var t=jQuery(this);t.share({button_text:t.data("buttontext"),image:t.data("image")})})},articleNavigation:function(){var t=jQuery(".post-pagination-wrap"),e=t.find(".next-article > h2 > a").attr("href"),i=t.find(".prev-article > h2 > a").attr("href");jQuery("article.type-post").hammer().on("swipeleft",function(t){i&&(window.location=i)}),jQuery("article.type-post").hammer().on("swiperight",function(t){e&&(window.location=e)})},postMediaTitle:function(){var t=jQuery(".details-overlay"),e=jQuery(".detail-feature"),i=t.height()+80;(c.hasClass("header-naked-light")||c.hasClass("header-naked-dark"))&&e.css("padding-top",2*jQuery(".header-wrap").height()),e.css("height",i),setTimeout(function(){jQuery(".details-overlay").vCenter().stop().animate({bottom:"50%",opacity:1},1500,"easeOutExpo")},500),a.smartresize(function(){e.css("height",t.height()+80),jQuery(".details-overlay").vCenter()})},lightbox:function(){var i={},e=(U&&(i={facebook:!0,twitter:!0,googleplus:!0,pinterest:{source:"https://pinterest.com/pin/create/bookmarklet/?url={URL}",text:"Share on Pinterest"}}),[]);jQuery('[data-rel^="ilightbox["]').each(function(){var t=this.getAttribute("data-rel");jQuery(this).hasClass("ilightbox-enabled")||-1==jQuery.inArray(t,e)&&e.push(t)}),jQuery.each(e,function(t,e){jQuery('[data-rel="'+e+'"]').iLightBox({skin:X,social:{buttons:i},path:"horizontal",thumbnails:{maxWidth:120,maxHeight:120},controls:{arrows:G,thumbnail:Y}}),jQuery('[data-rel="'+e+'"]').addClass("ilightbox-enabled")})},backToTop:function(){var t=a.scrollTop();300<t?jQuery("#back-to-top").stop().animate({bottom:"10px",opacity:1},300,"linear"):t<300&&jQuery("#back-to-top").stop().animate({bottom:"-80px",opacity:0},300,"linear")},stickyWidget:function(){var t=jQuery(".sidebar-widget-wrap"),e=t.parent(),i=(jQuery(".page-content"),50);c.hasClass("vertical-header")||(i+=jQuery("#header-section").height()),0<jQuery("#wpadminbar:visible").length&&jQuery("body.feedback-commenting-enabled, body.active_comment")<=0&&(i+=32),0<jQuery("#top-bar").length&&(i+=jQuery("#top-bar").height()),0<jQuery(".page-heading").length&&(i+=jQuery(".page-heading").height()),SWIFT.page.initStickyWidget(t,e,i),a.smartresize(function(){jQuery(".inner-page-wrap").stickem().destroy(),SWIFT.page.resizeStickyWidget(t,e),SWIFT.page.initStickyWidget(t,e,i)})},initStickyWidget:function(t,e,i){jQuery(".inner-page-wrap").stickem({item:".sidebar-widget-wrap",container:".inner-page-wrap",offset:i,onStick:function(){SWIFT.page.resizeStickyWidget(t,e)}})},resizeStickyWidget:function(t,e){var i=0,n=jQuery(".page-content"),s=e.height(),n=n.height();0<jQuery(".sticky-header").length&&(i=(0<jQuery(".sticky-header").height()?jQuery(".sticky-header"):jQuery("#header-section")).height()),0<jQuery("#wpadminbar:visible").length&&jQuery("body.feedback-commenting-enabled, body.active_comment")<=0&&(i+=32),t.css("width",e.width()).css("top",i+30),s<n?e.css("height",n):e.css("height",s)},getViewportHeight:function(){return"innerHeight"in window?window.innerHeight:document.documentElement.offsetHeight},checkIE:function(){for(var t=3,e=document.createElement("div"),i=e.getElementsByTagName("i");e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e",i[0];);return 4<t?t:void 0},pageTransitions:function(){jQuery("a").on("click",function(t){var e=jQuery(this),i=e.attr("href"),n=e.attr("target");e.parent().find("ul.sub-menu");if("tab"===e.data("toggle")||0<e.parent(".ui-accordion-header").length)return t;if(0===i.indexOf("#")&&1<i.length)SWIFT.isScrolling=!0,SWIFT.page.onePageNavGoTo(i),setTimeout(function(){SWIFT.isScrolling=!1},1e3),t.preventDefault();else if(0!==i.indexOf("#")||1!==i.length){if("_blank"===n||0<=i.indexOf("?")||0<=i.indexOf(".jpg")||0<=i.indexOf(".png")||0<=i.indexOf("mailto")||t.ctrlKey||t.metaKey||0===i.indexOf("javascript")||0===i.indexOf("tel:"))return t;c.hasClass("mobile-menu-open")||c.hasClass("mh-overlay-show")||(SWIFT.page.fadePageOut(i),t.preventDefault())}})},fadePageIn:function(){c.addClass("page-fading-in"),jQuery("#main-container").animate({opacity:1,paddingTop:"0"},0,"easeOutExpo",function(){c.removeClass("page-fading-in"),c.addClass("page-loaded")}),jQuery("#site-loading").animate({opacity:0},300,"easeInExpo",function(){jQuery(this).css("display","none")})},fadePageOut:function(t){c.hasClass("header-naked-light")||c.hasClass("header-naked-dark"),jQuery("#site-loading").css("display","block").animate({opacity:1},0,"easeInExpo",function(){window.location=t})},directorySubmit:function(){jQuery("#sf_directory_calculate_coordinates").on("click",function(t){t.preventDefault(),(new google.maps.Geocoder).geocode({address:jQuery("#sf_directory_address").val()},function(t,e){jQuery("#sf_directory_lat_coord").val(t[0].geometry.location.lat()),jQuery("#sf_directory_lng_coord").val(t[0].geometry.location.lng())})}),jQuery("#directory-submit").click(function(t){if(""===jQuery("#sf_directory_address").val()||""===jQuery("#sf_directory_lat_coord").val()||""===jQuery("sf_directory_lng_coord").val()||""===jQuery("#directory_title").val()||""===jQuery("#directory_description").val()||jQuery("#directory-cat").val()<=0||jQuery("#directory-loc").val()<=0)return t.preventDefault(),jQuery(".directory-error").show(),jQuery("html, body").animate({scrollTop:jQuery(".directory-error").offset().top-100},700),!1;jQuery("#add-directory-entry").submit()})},exportEvent:function(){0<jQuery(".event_export_btn").length&&jQuery(".event_export_btn").each(function(){var n=jQuery(this).data("filename"),s=jQuery(this).data("subject"),o=(jQuery(this).data("description"),jQuery(this).data("location")),a=jQuery(this).data("timezone"),t=jQuery.parseJSON(decodeURIComponent(jQuery(this).data("dates"))),r=K+"/includes/icstophp.php";jQuery.each(t,function(t,e){var i=e.begin,e=e.end;jQuery(".event_export_btn").addcalevent({onclick:!0,apps:[0,1,2,3,4],data:{title:n,desc:s,location:o,time:{start:i,end:e,zone:a}},ics:r})})})}},SWIFT.superSearch={init:function(){jQuery(".search-options .ss-dropdown").on("click",function(t){t.preventDefault();t=jQuery(this).find("ul");y?t.hasClass("show-dropdown")?t.removeClass("show-dropdown"):t.addClass("show-dropdown"):t.hasClass("show-dropdown")?(t.css("top",30),t.removeClass("show-dropdown")):(t.css("top",-10),t.addClass("show-dropdown"))}),jQuery(".ss-option").on("click",function(t){t.preventDefault();var t=jQuery(this).attr("data-attr_value"),e=jQuery(this).parent().parent().parent();e.find("li").removeClass("selected"),jQuery(this).parent().addClass("selected"),e.attr("data-attr_value",t),e.find("span").text(jQuery(this).text())}),jQuery(".super-search-go").on("click",function(t){t.preventDefault();var t=jQuery(this).parents(".sf-super-search"),t=SWIFT.superSearch.urlBuilder(t),e=jQuery(this).attr("data-home_url"),i=jQuery(this).attr("data-shop_url");0<=t.indexOf("product_cat")?location.href=e+t:location.href=i+t})},urlBuilder:function(t){var i="";return jQuery(t).find(".search-options .ss-dropdown").each(function(){var t=jQuery(this).attr("id"),e=jQuery(this).attr("data-attr_value");""!==e&&(i+="product_cat"===t?""===i?"?product_cat="+e:"&product_cat="+e:""===i?"?filter_"+t+"="+e:"&filter_"+t+"="+e)}),jQuery(".search-options input").each(function(){var t=jQuery(this).attr("name"),e=jQuery(this).attr("value");i+=""===i?"?"+t+"="+e:"&"+t+"="+e}),i}},SWIFT.header={init:function(){var t,e,i=!1;c.hasClass("sticky-header-enabled")&&!c.hasClass("vertical-header")&&SWIFT.header.stickyHeaderInit(),jQuery(".header-search-link-alt").on("click",function(t){t.preventDefault(),"open"==jQuery(this).attr("data-state")?jQuery(this).attr("data-state","closed"):jQuery(this).attr("data-state","open");t=jQuery(".ajax-search-wrap");t.is(":visible")?(t.fadeOut(300),setTimeout(function(){jQuery(".ajax-search-results").slideUp(100).empty(),jQuery(".ajax-search-form input[name=s]").val("")},300)):(t.fadeIn(300),setTimeout(function(){jQuery(".ajax-search-form input[name=s]").focus(),jQuery("#container").bind("click",function(t){var e=jQuery(".ajax-search-wrap");jQuery(t.target).closest(".ajax-search-wrap").length||(jQuery(".header-search-link-alt").attr("data-state","closed"),e.fadeOut(300),setTimeout(function(){jQuery(".ajax-search-results").slideUp(100).empty(),jQuery(".ajax-search-form input[name=s]").val("")},300),jQuery("#container").unbind("click"))})},300))}),jQuery(".ajax-search-form input[name=s]").on("keyup",function(t){var e=t.currentTarget.value;clearTimeout(i),""!=jQuery.trim(e)&&3<=e.length&&(i=setTimeout(function(){SWIFT.header.ajaxSearch(t)},400))}),jQuery("a.overlay-menu-link").on("click",function(t){t.preventDefault(),SWIFT.header.overlayMenuToggle()}),jQuery("#overlay-menu li.menu-item a").on("click",function(){SWIFT.header.overlayMenuToggle()}),jQuery("a.contact-menu-link").on("click",function(t){t.preventDefault();t=jQuery(".header-wrap").scrollTop();0!==t?(jQuery("body,html").animate({scrollTop:t},600,"easeOutCubic"),setTimeout(function(){jQuery("#contact-slideout").slideToggle(800,"easeInOutExpo"),jQuery(this).hasClass("slide-open")?jQuery(this).removeClass("slide-open"):(SWIFT.map.init(),jQuery(this).addClass("slide-open"))},800)):(jQuery("#contact-slideout").slideToggle(800,"easeInOutExpo"),jQuery(this).hasClass("slide-open")?jQuery(this).removeClass("slide-open"):(SWIFT.map.init(),jQuery(this).addClass("slide-open")))}),c.hasClass("mh-sticky")&&((t=jQuery("#mobile-header")).sticky_menu({topSpacing:0}),jQuery("#mobile-header-sticky-wrapper").css("height",t.outerHeight(!0)),a.smartresize(function(){t.sticky_menu("update"),jQuery("#mobile-header-sticky-wrapper").css("height",t.outerHeight(!0))})),c.hasClass("layout-boxed")&&c.hasClass("vertical-header-right")&&(e=(a.width()-jQuery("#container").width())/2,jQuery(".header-wrap").css("right",e),a.smartresize(function(){var t=(a.width()-jQuery("#container").width())/2;jQuery(".header-wrap").css("right",t)}))},stickyHeaderInit:function(){var t,i,e=0,n=jQuery(".sticky-header"),s=jQuery(".header-wrap");0<jQuery("#wpadminbar:visible").length&&(e=32),n.sticky_menu({topSpacing:e}),n&&a.smartresize(function(){n.sticky_menu("update")}),c.hasClass("layout-boxed")&&(jQuery(".sticky-header").css("max-width",s.width()),a.smartresize(function(){jQuery(".sticky-header").css("max-width",s.width())})),c.hasClass("sh-dynamic")&&(t=s.offset().top,a.scroll(function(){t=s.offset().top-a.scrollTop(),jQuery(".sticky-wrapper").hasClass("is-sticky")&&t<-100?s.addClass("resized-header"):s.hasClass("resized-header")&&s.removeClass("resized-header")})),c.hasClass("sh-show-hide")&&(i=0,a.scroll(function(t){var e=jQuery(this).scrollTop();i<e&&1e3<e?jQuery(".sticky-header").addClass("sticky-header-hide"):jQuery(".sticky-header").hasClass("sticky-header-hide")&&jQuery(".sticky-header").removeClass("sticky-header-hide"),i=e}))},ajaxSearch:function(t){var t=jQuery(t.currentTarget).parents("form").serialize()+"&action=sf_ajaxsearch",e=jQuery(".ajax-search-results"),i=jQuery(".ajax-search-wrap .ajax-loading"),n=jQuery(".ajax-search-wrap").data("ajaxurl");jQuery.ajax({url:n,type:"POST",data:t,beforeSend:function(){i.fadeIn(50)},success:function(t){0===t||e.html(t)},complete:function(){i.fadeOut(200),e.slideDown(400)}})},overlayMenuToggle:function(){var t=jQuery("#overlay-menu"),e=Math.floor(t.find("nav ul").height()/t.find("ul.menu > li").length)-5,i=Math.floor(.5*e);60<i&&(i=60),t.find("li").css("height",e+"px").css("font-size",i+"px").css("line-height",e-20+"px"),c.hasClass("overlay-menu-open")?(c.removeClass("overlay-menu-open"),c.addClass("overlay-menu-closing"),setTimeout(function(){jQuery("#main-nav,#main-navigation").fadeIn(400)},200)):setTimeout(function(){c.removeClass("overlay-menu-closing"),c.addClass("overlay-menu-open"),jQuery("#main-nav,#main-navigation").fadeOut(300)},30)}},SWIFT.nav={init:function(){(!D||768<a.width())&&SWIFT.nav.mainMenu(),SWIFT.nav.mobileMenuInit(),SWIFT.nav.mainMenuActions()},mainMenu:function(){var e=767,t=(c.hasClass("vertical-header")&&(e=724),jQuery("#main-navigation").find('.menu li.parent > a[href="#"], .menu li.menu-item-has-children > a[href="#/"]').attr("aria-expanded","false").attr("aria-haspopup","true").parent().addClass("sub-menu-click-reveal"),jQuery("#main-navigation").find(".menu li.menu-item.sub-menu-click-reveal").off(),jQuery("#main-navigation").find(".menu li.menu-item.sub-menu-click-reveal").find("ul.sub-menu,.mega-menu-sub").hide(),jQuery("#main-navigation").find('.menu li.menu-item.sub-menu-click-reveal > a[href="#"], .menu li.menu-item.sub-menu-click-reveal > a[href="#/"]').unbind("click").off().on("click",function(t){return t.preventDefault(),jQuery(this).parent().hasClass("show-submenu")?(jQuery("#container").width()>e||c.hasClass("responsive-fixed"))&&(jQuery(this).attr("aria-expanded","false").parent().removeClass("show-submenu"),jQuery(this).parent().find("ul.sub-menu,.mega-menu-sub").first().fadeOut(150)):(jQuery("#container").width()>e||c.hasClass("responsive-fixed"))&&(jQuery(this).attr("aria-expanded","true"),jQuery(this).parent().removeClass("accessibility-focus-menu"),jQuery(this).parent().addClass("show-submenu"),jQuery(this).parent().find("ul.sub-menu,.mega-menu-sub").first().fadeIn(200)),!1}),jQuery("#main-navigation").find(".menu li.menu-item:not(.sub-menu-click-reveal) > a").unbind("click").off().on("click",function(t){window.location.href=jQuery(this).prop("href")}),jQuery("#main-navigation").find(".menu li.menu-item:not(.sub-menu-click-reveal)").hoverIntent({over:function(){(jQuery("#container").width()>e||c.hasClass("responsive-fixed"))&&jQuery(this).find("ul.sub-menu,.mega-menu-sub").first().fadeIn(200)},out:function(){(jQuery("#container").width()>e||c.hasClass("responsive-fixed"))&&jQuery(this).find("ul.sub-menu,.mega-menu-sub").first().fadeOut(150)},timeout:0}),jQuery("#main-navigation").find(".menu li.menu-item.parent > a, .menu li.menu-item.menu-item-has-children > a").focus(function(){var t;(jQuery("#container").width()>e||c.hasClass("responsive-fixed"))&&((t=jQuery(this)).parents("ul.menu"),t.parent().find("ul.sub-menu,.mega-menu-sub").first().stop(!0,!0).fadeIn(200,function(){jQuery(this).parent().removeClass("accessibility-focus-menu"),jQuery(this).parent().addClass("show-submenu").find("> a").attr("aria-expanded","true")}))}),jQuery("#main-navigation")),i=t.height();t.find(".sub-menu").each(function(){jQuery(this).css("top",i)})},mainMenuActions:function(){var n=767,t=(c.hasClass("vertical-header")&&(n=724),jQuery("ul.sub-menu").parents("li").addClass("parent"),jQuery("#main-navigation").find('.menu li.parent > a[href="#"], .menu li.menu-item-has-children > a[href="#/"]').attr("aria-expanded","false").attr("aria-haspopup","true").parent().addClass("sub-menu-click-reveal"),jQuery("#main-navigation").find(".menu li.parent > a, .menu li.menu-item-has-children > a").on("click",function(t){return t.preventDefault(),jQuery("#container").width()<1024||c.hasClass("standard-browser")||"1"===(e=jQuery(this).parent().find("ul.sub-menu").first()).css("opacity")||1===e.css("opacity")?t:void t.preventDefault();var e}),jQuery("nav.std-menu").find(".menu li").each(function(){var t=jQuery(this).outerHeight();jQuery(this).find("ul.sub-menu").first().css("top",t)}),jQuery("nav.std-menu").find(".menu li.parent.sub-menu-click-reveal, .menu li.menu-item-has-children.sub-menu-click-reveal").off(),jQuery("nav.std-menu").find(".menu li.parent.sub-menu-click-reveal, .menu li.menu-item-has-children.sub-menu-click-reveal").find("ul.sub-menu").hide(),jQuery("nav.std-menu").find('.menu li.parent.sub-menu-click-reveal > a[href="#"], .menu li.menu-item-has-children.sub-menu-click-reveal > a[href="#/"]').unbind("click").off().on("click",function(t){return t.preventDefault(),jQuery(this).parent().hasClass("show-submenu")?(jQuery("#container").width()>n||c.hasClass("responsive-fixed"))&&(jQuery(this).attr("aria-expanded","false").parent().removeClass("show-submenu accessibility-focus-menu"),jQuery(".header-wrap").removeClass("sub-menu-open"),jQuery(this).parent().find(".sub-menu").first().stop(!0,!0).fadeOut(0)):(jQuery("#container").width()>n||c.hasClass("responsive-fixed"))&&(jQuery(this).attr("aria-expanded","true"),jQuery(this).parent().removeClass("accessibility-focus-menu"),jQuery(this).parent().addClass("show-submenu"),jQuery(this).parent().find("ul.sub-menu").first().stop(!0,!0).fadeIn(0,function(){jQuery(".header-wrap").addClass("sub-menu-open")})),!1}),jQuery("nav.std-menu").find(".menu li.parent:not(.sub-menu-click-reveal) > a, .menu li.menu-item-has-children:not(.sub-menu-click-reveal) a").unbind("click").off().on("click",function(t){window.location.href=jQuery(this).prop("href")}),jQuery("nav.std-menu").find(".menu li.parent:not(.sub-menu-click-reveal), .menu li.menu-item-has-children:not(.sub-menu-click-reveal)").hoverIntent({over:function(){(jQuery("#container").width()>n||c.hasClass("responsive-fixed"))&&jQuery(this).find("ul.sub-menu").first().stop(!0,!0).fadeIn(0,function(){jQuery(".header-wrap").addClass("sub-menu-open")})},out:function(){(jQuery("#container").width()>n||c.hasClass("responsive-fixed"))&&(jQuery(".header-wrap").removeClass("sub-menu-open"),jQuery(this).find(".sub-menu").first().stop(!0,!0).fadeOut(0))},timeout:0}),jQuery("nav.std-menu").find(".menu li.parent > a, .menu li.menu-item-has-children > a").focus(function(){var t,e,i;(jQuery("#container").width()>n||c.hasClass("responsive-fixed"))&&(e=(t=jQuery(this)).parents("ul.menu"),i=t.parent().find("ul.sub-menu,.mega-menu-sub").first(),e.find("> .menu-item").not(t.parents()).find("ul.sub-menu,.mega-menu-sub").each(function(){jQuery(this).parent().find("ul.sub-menu,.mega-menu-sub").first().stop(!0,!0).fadeOut(0,function(){jQuery(this).parent().removeClass("show-submenu accessibility-focus-menu").find("> a").attr("aria-expanded","false")})}),i.stop(!0,!0).fadeIn(200,function(){jQuery(this).parent().parent().children().removeClass("show-submenu accessibility-focus-menu").find("> a").attr("aria-expanded","false"),jQuery(this).parent().addClass("show-submenu accessibility-focus-menu").find("> a").attr("aria-expanded","true"),jQuery(this).parent().parent().children().each(function(){jQuery(this).hasClass("show-submenu")||jQuery(this).find("> .sub-menu").hide()})}))}),jQuery(document).on("mouseenter","li.shopping-bag-item",function(){(jQuery("#container").width()>n||c.hasClass("responsive-fixed"))&&jQuery(this).find("ul.sub-menu").first().stop(!0,!0).fadeIn(200)}).on("mouseleave","li.shopping-bag-item",function(){(jQuery("#container").width()>n||c.hasClass("responsive-fixed"))&&jQuery(this).find("ul.sub-menu").first().stop(!0,!0).fadeOut(150)}),jQuery(".menu-item").on("click","a",function(t){var e=jQuery(this).attr("href"),i=!1,n=e.match(/watch\?v=([a-zA-Z0-9\-_]+)/),s=e.match(/^http:\/\/(www\.)?vimeo\.com\/(clip\:)?(\d+).*$/);if("mobile-menu"===jQuery(this).parents("nav").attr("id")&&(i=!0),n||s){var o="";n?o="http://www.youtube.com/embed/"+n[1]+"?autoplay=1&amp;wmode=transparent":s&&(o="https://player.vimeo.com/video/"+s[3]+"?title=0&amp;byline=0&amp;portrait=0&amp;autoplay=1&amp;wmode=transparent"),""!==o&&(jQuery(this).data("video",o),SWIFT.widgets.openFullWidthVideo(jQuery(this))),t.preventDefault()}else if(0===e.indexOf("#")&&1<e.length){var a=0;i?(SWIFT.nav.mobileMenuHideTrigger(),setTimeout(function(){c.hasClass("mh-sticky")&&(a=jQuery("#mobile-header").height()),0<jQuery("#wpadminbar:visible").length&&(a+=jQuery("#wpadminbar").height()),0<jQuery(e).length&&jQuery("html, body").stop().animate({scrollTop:jQuery(e).offset().top-a+2},1e3,"easeInOutExpo")},400)):0<jQuery(e).length&&(SWIFT.isScrolling=!0,SWIFT.page.onePageNavGoTo(e),setTimeout(function(){SWIFT.isScrolling=!1},1e3)),t.preventDefault()}else if(!i)return t}),jQuery("li.aux-languages").find(".current-language").html());""!==t&&jQuery("li.aux-languages > a").html(t),a.smartresize(function(){(jQuery("#container").width()>n||c.hasClass("responsive-fixed"))&&jQuery("nav").find("ul.menu").each(function(){jQuery(this).css("display","")})}),SWIFT.nav.currentScrollIndication(),a.scroll(function(){SWIFT.nav.currentScrollIndication()})},currentScrollIndication:function(){var t=0,t=(c.hasClass("sticky-header-enabled")&&(t=jQuery(".header-wrap").height()),jQuery("section.row:in-viewport("+t+")").attr("id")),e=jQuery("#main-navigation .menu li a"),t=e.filter('[href="#'+t+'"]');e.parent().removeClass("current-scroll-item"),0<t.length&&!t.hasClass(".current-scroll-item")&&(e.parent().removeClass("current-scroll-item"),t.parent().addClass("current-scroll-item"))},mobileMenuInit:function(){var t;0<jQuery("#wpadminbar:visible").length&&(t=54,c.hasClass("mh-overlay")&&(jQuery(".mobile-overlay-close").css("top",t+"px"),t+=40),jQuery("#mobile-menu-wrap").css("padding-top",t+"px"),jQuery("#mobile-cart-wrap").css("padding-top",t+"px")),jQuery("#mobile-logo > a").on("click touchstart",function(t){return!(c.hasClass("mobile-menu-open")||c.hasClass("mobile-cart-open")||c.hasClass("mobile-menu-closing"))&&t}),jQuery(".mobile-menu-link").on("click",function(t){t.preventDefault(),c.hasClass("mh-overlay")?SWIFT.nav.mobileHeaderOverlay("menu"):c.hasClass("mobile-menu-open")?O||SWIFT.nav.mobileMenuHideTrigger():SWIFT.nav.showMobileMenu()}),jQuery(".mobile-cart-link").on("click",function(t){t.preventDefault(),c.hasClass("mh-overlay")?SWIFT.nav.mobileHeaderOverlay("cart"):c.hasClass("mobile-menu-open")?O||SWIFT.nav.mobileMenuHideTrigger():SWIFT.nav.showMobileCart()}),jQuery(".mobile-overlay-close").on("click",function(t){t.preventDefault(),c.hasClass("mh-cart-show")?(jQuery("#mobile-cart-wrap").animate({opacity:0},500,"easeOutQuart"),setTimeout(function(){c.removeClass("mh-overlay-show"),c.removeClass("mh-cart-show")},500)):c.hasClass("mh-menu-show")&&jQuery("#mobile-menu-wrap").animate({opacity:0},500,"easeOutQuart",function(){c.removeClass("mh-overlay-show"),c.removeClass("mh-menu-show")})}),jQuery("#mobile-menu li > a").on("click",function(t){var e,i=jQuery(this).parent(),n=jQuery(this).attr("href"),s=jQuery(this).attr("target"),o=i.find("ul.sub-menu");c.hasClass("mh-overlay")&&jQuery("#mobile-menu-wrap").animate({opacity:0},500,"easeOutQuart",function(){c.removeClass("mh-overlay-show"),c.removeClass("mh-menu-show")}),jQuery(this).parent().hasClass("sub-menu-click-reveal")?(jQuery(this).parent().hasClass("show-submenu")?(o.parent("li").removeClass("show-submenu").find("> a").attr("aria-expanded","false"),o.removeClass("sub-menu-open")):(o.parent("li").addClass("show-submenu").find("> a").attr("aria-expanded","true"),o.addClass("sub-menu-open")),t.preventDefault()):0===n.indexOf("#")&&1<n.length?(e=0,SWIFT.nav.mobileMenuHideTrigger(),setTimeout(function(){c.hasClass("mh-sticky")&&(e=jQuery("#mobile-header").height()),0<jQuery("#wpadminbar:visible").length&&(e+=jQuery("#wpadminbar").height()),0<jQuery(n).length&&jQuery("html, body").stop().animate({scrollTop:jQuery(n).offset().top-e+2},1e3,"easeInOutExpo")},400),t.preventDefault()):i.hasClass("parent")&&"none"==o.css("display")?(o.parent("li").addClass("show-submenu").find("> a").attr("aria-expanded","true"),o.addClass("sub-menu-open"),t.preventDefault()):(SWIFT.nav.mobileMenuHideTrigger(),c.hasClass("page-transitions")&&SWIFT.page.fadePageOut(n),c.hasClass("mh-sticky")&&jQuery("#mobile-header").css({position:"fixed",top:"0"}),setTimeout(function(){"_blank"!=s?window.location.href=n:window.open(n),c.hasClass("mh-sticky")&&jQuery("html, body").stop().animate({scrollTop:"-=50px"},1e3,"easeInOutExpo")},400))}),jQuery("#mobile-menu-wrap").swipe({swipeLeft:function(){c.hasClass("mobile-header-center-logo-alt")||c.hasClass("mobile-header-left-logo")||SWIFT.nav.mobileMenuHideTrigger()},swipeRight:function(){(c.hasClass("mobile-header-center-logo-alt")||c.hasClass("mobile-header-left-logo"))&&SWIFT.nav.mobileMenuHideTrigger()}}),jQuery("#mobile-cart-wrap").swipe({swipeLeft:function(){(c.hasClass("mobile-header-center-logo-alt")||c.hasClass("mobile-header-right-logo")||c.hasClass("mobile-header-center-logo"))&&SWIFT.nav.mobileMenuHideTrigger()},swipeRight:function(){c.hasClass("mobile-header-center-logo-alt")||c.hasClass("mobile-header-right-logo")||SWIFT.nav.mobileMenuHideTrigger()}}),a.smartresize(function(){var t=a.width();(1024<t&&c.hasClass("mhs-tablet-land")||991<t&&c.hasClass("mhs-tablet-port")||767<t&&c.hasClass("mhs-mobile"))&&SWIFT.nav.mobileMenuHideTrigger()})},showMobileMenu:function(){0<jQuery("body.mh-slideout").length?((t=0)<jQuery("#wpadminbar:visible").length&&(t+=e=(e=jQuery("#wpadminbar").height()-a.scrollTop())<0?0:e),jQuery("#mobile-menu-wrap.menu-type-slideout").css("top",t+"px")):0<jQuery("body.mh-dropdown").length&&(t=parseInt(jQuery("header#mobile-header").css("height")),0<jQuery("#wpadminbar:visible").length&&(t+=e=(e=jQuery("#wpadminbar").height()-a.scrollTop())<0?0:e,jQuery("body:not(.mh-sticky)").length),jQuery("#mobile-menu-wrap.menu-type-dropdown").css("top",t+"px")),jQuery("#mobile-menu-wrap").css("display","block"),c.addClass("mobile-menu-open");var t,e=jQuery(window).scrollTop()-parseInt(jQuery("#container").css("border-width"))+"px";0<jQuery("#mobile-header").length&&0<parseInt(e)&&c.hasClass("mh-sticky")&&(a.width()<=782&&0<jQuery("#wpadminbar:visible").length?jQuery("#mobile-header").css("position","absolute").css("top",parseInt(e)-jQuery("#wpadminbar").height()+"px"):jQuery("#mobile-header").css("position","absolute").css("top",e)),0<jQuery("#header-sticky-wrapper.is-sticky #header").length&&jQuery("#header-sticky-wrapper.is-sticky #header").css("top",e),0<jQuery("body.mh-dropdown").length&&0<jQuery("body:not(.mh-sticky) #mobile-menu-wrap.menu-type-dropdown").length&&(t=jQuery("#mobile-menu-wrap .mobile-menu").height(),jQuery("#mobile-header").css("margin-bottom",t+"px"),jQuery("#mobile-menu-wrap").css("min-height",t+"px")),setTimeout(function(){jQuery("#container").on("click touchstart",SWIFT.nav.mobileMenuHideTrigger)},400)},hideMobileMenu:function(){c.removeClass("mobile-menu-open"),0<jQuery("body.mh-dropdown").length&&0<jQuery("body:not(.mh-sticky) #mobile-menu-wrap.menu-type-dropdown").length&&(jQuery("#mobile-menu-wrap").hide(),jQuery("#mobile-header").css("margin-bottom","0px !important"),jQuery("#mobile-menu-wrap #mobile-menu .sub-menu-open").each(function(){jQuery(this).parent("li").removeClass("show-submenu").find("> a").attr("aria-expanded","false"),jQuery(this).removeClass("sub-menu-open")})),setTimeout(function(){jQuery("#mobile-menu-wrap").css("display","none"),0<jQuery("#mobile-header-sticky-wrapper.sticky-wrapper").length&&jQuery("#mobile-header-sticky-wrapper.sticky-wrapper").hasClass("is-sticky")?0<jQuery("#wpadminbar:visible").length?jQuery("#header").css("position","fixed").css("top",jQuery("#wpadminbar").height()):jQuery("#header").css("position","fixed").css("top","0"):jQuery("#header").css("position","relative").css("top","0px"),jQuery("#container").off("click touchstart",SWIFT.nav.mobileMenuHideTrigger),c.removeClass("mobile-menu-closing")},300)},showMobileCart:function(){var t=a.scrollTop();0<jQuery("#wpadminbar:visible").length&&(t-=jQuery("#wpadminbar").height()),0<t&&c.hasClass("mh-sticky")&&jQuery("#mobile-header").css("position","absolute").css("top",t),jQuery("#mobile-cart-wrap").css("display","block"),c.addClass("mobile-menu-open"),c.addClass("mobile-cart-open"),setTimeout(function(){jQuery("#container").on("click touchstart",SWIFT.nav.mobileMenuHideTrigger)},400)},mobileMenuHideTrigger:function(t){null!=t&&t.preventDefault(),c.addClass("mobile-menu-closing"),SWIFT.nav.hideMobileMenu()},mobileHeaderOverlay:function(t){"menu"===t?(jQuery("#mobile-menu-wrap").css("display","block"),c.addClass("mh-overlay-show"),c.addClass("mh-menu-show"),jQuery("#mobile-menu-wrap").animate({opacity:1},500,"easeOutQuart")):"cart"===t&&(jQuery("#mobile-cart-wrap").css("display","block"),c.addClass("mh-overlay-show"),c.addClass("mh-cart-show"),jQuery("#mobile-cart-wrap").animate({opacity:1},500,"easeOutQuart"))}},SWIFT.woocommerce={init:function(){var t;SWIFT.woocommerce.productQuantityAdjust(),jQuery(document).on("click",".add_to_wishlist",function(){jQuery(this).parent().parent().find(".yith-wcwl-wishlistaddedbrowse").show().removeClass("hide").addClass("show"),jQuery(this).hide().addClass("hide").removeClass("show");var t={action:"sf_add_to_wishlist",product_id:jQuery(this).attr("data-product-id")},e=jQuery(this).attr("data-ajaxurl");jQuery.post(e,t,function(t){t=jQuery.parseJSON(t);jQuery(".wishlist-item .bag-contents").prepend(t.wishlist_output),jQuery(".wishlist-link .count").text(parseInt(jQuery(".wishlist-link .count").text())+1)})}),jQuery(".add_to_cart_button").on("click",function(){var t=jQuery(this),e=t.attr("data-added_text");t.addClass("product-added"),t.find("span").text(e),t.find("i").attr("class","fa-check")}),jQuery(".show-products-link").on("click",function(t){t.preventDefault();var t=jQuery(this).attr("href").replace("?",""),e=document.location.href.replace(/\/page\/\d+/,""),i=document.location.search;0<=i.indexOf("?show")?window.location=jQuery(this).attr("href"):0<=i.indexOf("?")?window.location=e+"&"+t:window.location=e+"?"+t}),jQuery(".shipping-calculator-form input").keypress(function(t){10!=t.which&&13!=t.which||jQuery(".update-totals-button button").click()}),0<jQuery(".product-grid").length&&(jQuery(".inner-page-wrap").hasClass("full-width-shop")||((t=jQuery(".product-grid")).imagesLoaded(function(){t.equalHeights()}),a.smartresize(function(){jQuery(".product-grid").children().css("min-height","0"),jQuery(".product-grid").equalHeights()})))},load:function(){!jQuery(".woocommerce-shop-page").hasClass("full-width-shop")||o&&o<9||SWIFT.woocommerce.fullWidthShop()},cartWishlist:function(){jQuery(document).on("click",".shopping-bag .remove-product",function(t){t.preventDefault(),t.stopPropagation();var i=jQuery(this).attr("data-product-id"),n=jQuery(this).attr("data-variation-id"),s=jQuery(this).attr("data-product-qty"),o=jQuery(".shopping-bag").attr("data-empty-bag-txt"),a=jQuery(".shopping-bag").attr("data-singular-item-txt"),r=jQuery(".shopping-bag").attr("data-multiple-item-txt"),t={action:"sf_cart_product_remove",product_id:i,variation_id:n},e=jQuery(this).attr("data-ajaxurl");return jQuery(".shopping-bag .loading-overlay").fadeIn(200),jQuery.post(e,t,function(t){var e;c.hasClass("woocommerce-checkout")&&jQuery(".shopping-bag").find(".bag-button")[0].click(),c.hasClass("woocommerce-cart")&&location.reload(),jQuery(".shopping-bag .loading-overlay").fadeOut(100),e=parseInt(jQuery(".cart-contents .num-items").first().text())-s,jQuery(".cart-contents .amount").replaceWith(t),jQuery(".bag-total .amount").replaceWith(t),jQuery(".cart-contents .num-items").text(e),jQuery(".cart-contents .num-items").each(function(t){jQuery(this).text(e)}),(0<n?jQuery(".product-var-id-"+n):jQuery(".product-id-"+i)).remove(),e<=0?(jQuery(".sub-menu .shopping-bag").prepend('<div class="bag-empty">'+o+"</div>"),jQuery(".sub-menu .shopping-bag .bag-buttons").remove(),jQuery(".sub-menu .shopping-bag .bag-header").remove(),jQuery(".sub-menu .shopping-bag .bag-total").remove(),jQuery(".sub-menu .shopping-bag .bag-contents").remove()):1==e?jQuery(".sub-menu .shopping-bag .bag-header").text("1 "+a):jQuery(".sub-menu .shopping-bag .bag-header").text(e+" "+r)}),!1}),jQuery(document).on("click",".wishlist_table .remove",function(){jQuery(".prod-"+jQuery(this).attr("data-product-id")).remove();var t=parseInt(jQuery(".wishlist-link .count").text())-1;jQuery(".wishlist-link .count").text(t),0==t&&jQuery(".wishlist-item .bag-contents").prepend('<div class="wishlist-empty">Your wishlist is currently empty.</div>')})},variations:function(){jQuery(".variations_form select, .variations select").each(function(){jQuery(this).on("change",function(){jQuery("#sf-included").hasClass("has-productzoom")?(jQuery(".zoomContainer").remove(),setTimeout(function(){jQuery(".product-slider-image").each(function(){jQuery(this).data("zoom-image",jQuery(this).parent().find("a.zoom").attr("href"))});var t=jQuery("#product-img-slider li:first").find(".product-slider-image");SWIFT.woocommerce.productZoom(t),jQuery("#product-img-slider").flexslider(0)},500)):setTimeout(function(){jQuery("#product-img-slider").flexslider(0);var t=jQuery("#product-img-slider").find(".flex-viewport"),e=t.find("ul.slides").css("height");t.animate({height:e},300)},500)})})},productZoom:function(t){jQuery("#product-img-slider li a.zoom").css("display","none"),t.elevateZoom({zoomType:V,cursor:"crosshair",zoomParent:"#product-img-slider",responsive:!0,zoomWindowFadeIn:400,zoomWindowFadeOut:500,lensSize:250}),a.smartresize(function(){var t=jQuery("#product-img-slider li.flex-active-slide").find(".product-slider-image");t||jQuery("#product-img-slider li:first").find(".product-slider-image"),SWIFT.woocommerce.productZoom(t)})},fullWidthShop:function(){var t=jQuery(".full-width-shop").find(".products"),e=t.find("div.product").first().data("width"),i=t.find(".sidebar");0<i.length?(SWIFT.woocommerce.fullWidthShopSetSidebarHeight(),a.smartresize(function(){SWIFT.woocommerce.fullWidthShopSetSidebarHeight()}),t.isotope({itemSelector:".product",layoutMode:"masonry",masonry:{columnWidth:"."+e},isOriginLeft:!d}),SWIFT.woocommerce.animateItems(t),i.stop().animate({opacity:1},500),t.isotope("stamp",i),t.isotope("layout")):(t.isotope({itemSelector:".product",layoutMode:"fitRows",isOriginLeft:!d}),SWIFT.woocommerce.animateItems(t))},fullWidthShopSetSidebarHeight:function(){var t=jQuery(".full-width-shop").find(".products"),e=t.find("div.sidebar"),i=e.css("height","").outerHeight(),t=t.find("div.product").first().outerHeight(!0),i=Math.ceil(i/t);e.css("height",t*i)},animateItems:function(t){t.find(".product").each(function(t){jQuery(this).delay(200*t).animate({opacity:1},800,"easeOutExpo",function(){jQuery(this).addClass("item-animated")})})},productQuantityAdjust:function(){jQuery(document).on("click",".qty-plus",function(t){t.preventDefault();var t=jQuery(this).parents(".quantity").find("input.qty"),e=parseInt(t.val(),10)+1;e<=(parseInt(t.attr("max"),10)||9999999999)&&(t.val(e),t.change())}),jQuery(document).on("click",".qty-minus",function(t){t.preventDefault();var t=jQuery(this).parents(".quantity").find("input.qty"),e=parseInt(t.val(),10)-1;(parseInt(t.attr("min"),10)||1)<=e&&(t.val(e),t.change())})}},SWIFT.flexSlider={init:function(){0<jQuery("#product-img-slider").length&&SWIFT.flexSlider.productSlider(),jQuery(".item-slider").flexslider({useCSS:F,animation:"slide",slideDirection:"horizontal",slideshow:B,slideshowSpeed:R,animationDuration:H,rtl:d,smoothHeight:!0,directionNav:!0,controlNav:!0,keyboardNav:!1,mousewheel:!1,prevText:"Prev",nextText:"Next",pausePlay:!0,pauseText:"",playText:"",randomize:!1,slideToStart:0,animationLoop:!0,pauseOnAction:!0,pauseOnHover:!1,controlsContainer:"",manualControls:"",start:function(){},before:function(){},after:function(){},end:function(){}}),jQuery(".content-slider").each(function(){var t=jQuery(this),e="yes"===t.attr("data-autoplay");t.flexslider({useCSS:F,animation:"fade",slideshow:e,slideshowSpeed:R,animationDuration:H,smoothHeight:!0,directionNav:!0,rtl:d,controlNav:!1,prevText:"",nextText:"",pauseOnHover:!0,start:function(){SWIFT.flexSlider.slideEqualHeights(),a.smartresize(function(){SWIFT.flexSlider.slideEqualHeights()})}})})},productSlider:function(){1<jQuery("#product-img-nav ul.slides li").length?jQuery("#product-img-nav").flexslider({animation:"slide",rtl:d,useCSS:F,directionNav:!1,controlNav:!1,animationLoop:!1,slideshow:!1,itemWidth:100,itemMargin:0,asNavFor:"#product-img-slider"}):jQuery("#product-img-nav").css("display","none"),jQuery("#product-img-slider").flexslider({useCSS:F,animation:"slide",controlNav:!0,smoothHeight:!0,animationLoop:!1,slideshow:B,slideshowSpeed:R,animationDuration:H,rtl:d,sync:"#product-img-nav",start:function(t){q&&(t.slides?(t=t.slides.eq(t.currentSlide).find(".product-slider-image"),SWIFT.woocommerce.productZoom(t)):(t=jQuery("#product-img-slider").find(".product-slider-image"),SWIFT.woocommerce.productZoom(t)))},before:function(){q&&jQuery(".zoomContainer").remove()},after:function(t){q&&(t=t.slides.eq(t.currentSlide).find(".product-slider-image"),SWIFT.woocommerce.productZoom(t))}})},thumb:function(){jQuery(".thumb-slider").flexslider({animation:"fade",slideDirection:"horizontal",slideshow:B,slideshowSpeed:R,animationDuration:H,directionNav:!0,controlNav:!1,keyboardNav:!1,smoothHeight:!0,rtl:d})},slideEqualHeights:function(){setTimeout(function(){jQuery(".content-slider").find(".slide-content-wrap").css("position","relative"),jQuery(".content-slider > ul").equalHeights(),jQuery(".content-slider").find(".slide-content-wrap").vCenterTop(),jQuery(".content-slider").find(".slide-content-wrap").css("position","absolute")},200)}};var s=jQuery(".portfolio-wrap").find(".filterable-items"),t=(SWIFT.portfolio={init:function(){s.each(function(){var t=jQuery(this);!t.hasClass("masonry-items")||o&&o<9?!t.hasClass("multi-masonry-items")||o&&o<9?SWIFT.portfolio.standardSetup(t):SWIFT.portfolio.multiMasonrySetup(t):SWIFT.portfolio.masonrySetup(t)}),a.smartresize(function(){SWIFT.portfolio.windowResized()}),jQuery(".filtering li").each(function(){var t=jQuery(this),e=jQuery(this).find("a").attr("class");jQuery(this).parents(".portfolio-wrap").find(".filterable-items").find(".portfolio-item").each(function(){jQuery(this).hasClass(e)&&t.addClass("has-items")})}).parents(".filtering").animate({opacity:1},400),jQuery(".filtering li").on("click","a",function(t){t.preventDefault(),jQuery(this).parent().parent().find("li").removeClass("selected"),jQuery(this).parent().addClass("selected");t=jQuery(this).data("filter");jQuery(this).parents(".portfolio-wrap").find(".filterable-items").isotope({filter:t})}),jQuery(".filter-wrap > a").on("click",function(t){t.preventDefault(),jQuery(this).parent().find(".filter-slide-wrap").slideToggle()})},standardSetup:function(t){t.imagesLoaded(function(){SWIFT.portfolio.setItemHeight(),SWIFT.flexSlider.thumb(),t.animate({opacity:1},800),t.isotope({resizable:!0,layoutMode:"fitRows",isOriginLeft:!d})}),t.appear(function(){SWIFT.portfolio.animateItems(t)})},masonrySetup:function(t){t.imagesLoaded(function(){SWIFT.flexSlider.thumb(),t.isotope({resizable:!1,itemSelector:".portfolio-item",layoutMode:"masonry",isOriginLeft:!d})}),t.appear(function(){SWIFT.portfolio.animateItems(t)})},multiMasonrySetup:function(t){t.imagesLoaded(function(){SWIFT.flexSlider.thumb(),SWIFT.portfolio.multiMasonrySizeFix(),t.isotope({resizable:!1,itemSelector:".portfolio-item",layoutMode:"packery",masonry:{columnWidth:".grid-sizer"},isOriginLeft:!d})}),t.appear(function(){SWIFT.portfolio.animateItems(t)})},animateItems:function(t){t.find(".portfolio-item").each(function(t){jQuery(this).delay(200*t).animate({opacity:1},800,"easeOutExpo",function(){jQuery(this).addClass("item-animated")})})},setItemHeight:function(){s.hasClass("col-1")||s.hasClass("masonry-items")||s.hasClass("multi-masonry-items")||(s.children().css("min-height","0"),s.equalHeights())},multiMasonrySizeFix:function(){var t=s.find(".portfolio-item.size-standard").first(),e=t.height(),i=t.width(),n=2*e+parseInt(t.css("margin-bottom"),10),t=2*i+parseInt(t.css("margin-bottom"),10);0<e&&(s.find(".portfolio-item.size-wide .multi-masonry-img-wrap").css("height",e).css("width",t+8),s.find(".portfolio-item.size-wide-tall .multi-masonry-img-wrap").css("height",n).css("width",t+8),s.find(".portfolio-item.size-tall .multi-masonry-img-wrap").css("height",n).css("width",i+8)),s.data("isotope")&&s.isotope("layout")},windowResized:function(){s.hasClass("col-1")||s.hasClass("masonry-items")||s.hasClass("multi-masonry-items")||SWIFT.portfolio.setItemHeight(),s.hasClass("multi-masonry-items")&&SWIFT.portfolio.multiMasonrySizeFix()},portfolioShowcaseInit:function(){SWIFT.flexSlider.thumb(),SWIFT.portfolio.portfolioShowcaseWrap(),SWIFT.portfolio.portfolioShowcaseItems(),a.smartresize(function(){SWIFT.portfolio.portfolioShowcaseWrap(),SWIFT.portfolio.portfolioShowcaseItems()})},portfolioShowcaseWrap:function(){jQuery(".portfolio-showcase-wrap").animate({opacity:1},600)},portfolioShowcaseItems:function(){jQuery(".portfolio-showcase-wrap").each(function(){var t=jQuery("#main-container").width(),e=(jQuery("#container").hasClass("boxed-layout")&&(t=jQuery("#container").width()),jQuery(this)),i=e.find(".portfolio-showcase-items").data("columns"),n=t+2,s=Math.floor(n/i),o=Math.floor(40*n/100),a=Math.floor(n/5),c=(s/2-o/2)/.75,r=(a/2-o/2)/1.3,l=!1,h=300,t=e.find("li.portfolio-item");5===i?(o=Math.floor(25*n/100),a=Math.floor(n/5.33),c=(s/2-o/2)/.75,r=(a/2-o/2)/1.3,t.css("width",s),t.css("height",o/1.5),t.find(".main-image").css("width",o),t.find(".main-image").css("left",r),t.find(".main-image").css("top",-o/6),h=200):(t.css("width",s),t.css("height",o/2),t.find(".main-image").css("width",o),t.find(".main-image").css("left",r)),t.each(function(){768<n&&(jQuery(this).mouseenter(function(){l||(l=!0,jQuery(this).removeClass("deselected-item"),e.find(".deselected-item").stop().animate({width:a},h),e.find(".deselected-item").find(".main-image").stop().animate({left:c},h),jQuery(this).find(".main-image").stop().animate({left:0},h),jQuery(this).stop().animate({width:o},h+1,function(){jQuery(this).find(".item-info").stop().show(),jQuery(this).find(".item-info").stop().animate({bottom:0},h,"easeInOutQuart")}))}),jQuery(this).mouseleave(function(){l&&(l=!1,jQuery(this).addClass("deselected-item"),e.find(".portfolio-item").stop().animate({width:s},h),e.find(".portfolio-item .main-image").stop().animate({left:r},h),jQuery(this).find(".item-info").stop().animate({bottom:-85},h,function(){jQuery(this).find(".item-info").stop().hide()}))}))})})},stickyDetails:function(){var t=0,e=160;0<jQuery(".page-heading").length&&(t+=jQuery(".page-heading").outerHeight(!0)),jQuery(".inner-main-container").hasClass("portfolio-type-standard")&&(t+=130),0<jQuery(".related-projects").length&&(e=520),jQuery(".sticky-details").stickySidebar({headerSelector:".header-wrap",navSelector:".media-wrap",contentSelector:".article-body-wrap",footerSelector:"#footer-wrap",sidebarTopMargin:0,footerThreshold:e,offset:t}),jQuery(".sticky-details").css("max-width",jQuery(".sticky-details").outerWidth(!0)),SWIFT.portfolio.stickyDetailsScroll(),a.scroll(function(){SWIFT.portfolio.stickyDetailsScroll()})},stickyDetailsScroll:function(){var t=jQuery(".article-body-wrap");jQuery(".inner-main-container").hasClass("portfolio-type-fw-media")&&(t=jQuery(".portfolio-detail-description")),jQuery(".sticky-details").hasClass("sticky")?jQuery(".sticky-details").css("margin-left",t.outerWidth(!0)):jQuery(".sticky-details").css("margin-left",0)}},jQuery(".spb_partner_grid_element")),n=jQuery(".spb_partner_grid_element").find(".partner-grid-container"),r=(SWIFT.sponsor={init:function(){t.update(),n.update(),SWIFT.sponsor.sponsorEqualHeights(jQuery(".spb_partner_grid_element").find(".partner-grid-container.equal-heights"))},sponsorEqualHeights:function(t){t.find(".partner").each(function(){jQuery(this).height("auto")}),768<jQuery(window).width()&&(0<t.find("img").length?t.imagesLoaded(function(){t.equalHeights()}):t.equalHeights())}},jQuery(".blog-wrap")),g=jQuery(".blog-wrap").find(".blog-items"),l=(SWIFT.blog={init:function(){r.find(".blog-items-wrap").hasClass("blog-directory")||(r=jQuery(".blog-wrap"),g=jQuery(".blog-wrap").find(".blog-items"),1<jQuery(".blog-wrap.blog-has-filtering, .blog-wrap.blog-has-pagination").length&&jQuery(".blog-wrap.blog-has-filtering, .blog-wrap.blog-has-pagination").each(function(t){0<t&&jQuery(this).remove()}),g.each(function(){var t=jQuery(this);t.hasClass("blog-grid-items")?SWIFT.blog.blogGrid(t.find(".grid-items"),t):SWIFT.blog.blogLayout(t),t.find(".blog-item").length<t.data("found-posts")||(t.parent().find(".load-more-btn").hide(),t.addClass("all-posts-loaded")),SWIFT.blog.blogAlgoliaFacetCount(t)}),0<g.find(".blog-item .sf-blog-modal a").length&&g.find(".blog-item .sf-blog-modal a").each(function(){if(!jQuery(this).data("postid"))return!0;jQuery(this).prop("onclick","javascript: return false;"),jQuery(this).off().on("click",function(t){t.preventDefault();var t=jQuery(this).attr("href"),e=(jQuery(this).find(".sd-modal-content").each(function(){jQuery(this).hide()}),jQuery(this).parents(".sf-blog-modal").data("template")),i=(e&&""!=e||(e=K+"/api/modal_content.php"),jQuery(this).data("postid"));return""==jQuery("#modal-container .container").html()?window.location.href=t:SWIFT.blog.blogOpenModal(e,t,i,!0),!1})}),0<jQuery("#close-modal, .close-modal-link").length&&jQuery("#close-modal, .close-modal-link").off().on("click",function(t){return t.preventDefault(),SWIFT.blog.blogCloseModal(!0),!1})),SWIFT.blog.blogFiltersInit()},blogEqualHeights:function(t){t.find(".blog-item").each(function(){jQuery(this).height("auto"),jQuery(this).find(".details-wrap").height("auto")}),768<jQuery(window).width()&&(0<t.find("img").length?t.imagesLoaded(function(){t.equalHeights(),t.find(".blog-item").each(function(){jQuery(this).find(".details-wrap").height(jQuery(this).height()-jQuery(this).find("figure").height())}),t.isotope("layout")}):(t.equalHeights(),t.find(".blog-item").each(function(){jQuery(this).find(".details-wrap").height(jQuery(this).height()-jQuery(this).find("figure").height())}),t.isotope("layout")))},blogOpenModal:function(t,e,i,n){jQuery("body").removeClass("page-modal-done").addClass("page-modal-loading"),$=jQuery(document).scrollTop(),jQuery(window).scrollTop(0),0<jQuery("body").find(".sd-modal-content-"+i).length?(jQuery("body").find(".sd-modal-content-"+i).fadeIn("fast",function(){jQuery(window).scrollTop(0)}),jQuery("body").removeClass("page-modal-loading").addClass("page-modal-done")):jQuery.get(t+"?id="+i,function(t){jQuery("body").find("#modal-container > .container").append('<div class="sd-modal-content sd-modal-content-'+i+'" data-postid="'+i+'">'+t+"</div>"),SWIFT.page.injectsvgs(),jQuery("body").find("#modal-container #close-modal").off().on("click",function(t){return t.preventDefault(),jQuery("body").find(".sd-modal-content").hide(),jQuery("body").find(".sd-modal-content iframe").each(function(){jQuery(this).prop("src",jQuery(this).prop("src"))}),0<jQuery("body").find("#container.force-close").length?window.history.back():(jQuery("body").removeClass("page-modal-open"),jQuery(document).scrollTop($)),jQuery("body").removeClass("page-modal-done").removeClass("page-modal-loading"),!1}),jQuery("body").find(".sd-modal-content-"+i).fadeIn("fast",function(){jQuery(window).scrollTop(0)}),jQuery("body").removeClass("page-modal-loading").addClass("page-modal-done")},"html").fail(function(){window.location.href=e}),jQuery("body").removeClass("mobile-menu-open"),jQuery("body").addClass("page-modal-open")},blogCloseModal:function(t){jQuery("body").find(".sd-modal-content").hide(),jQuery("body").find(".sd-modal-content iframe").each(function(){jQuery(this).prop("src",jQuery(this).prop("src"))}),0<jQuery("body").find("#container.force-close").length?window.history.back():(jQuery("body").removeClass("page-modal-open"),jQuery(document).scrollTop($)),jQuery("body").removeClass("page-modal-done").removeClass("page-modal-loading")},blogFiltersInit:function(){var t=jQuery(".blog-wrap"),p=(t.find(".filtering").animate({opacity:1},400),[]),e=window.location.href,f=jQuery.url(e),m=f.param();0<t.find(".filtering").length&&(t.find(".filtering").each(function(){var t=jQuery(this).find("li a").data("taxonomyname"),e=jQuery(this).find("li a.selected").data("term");""!=t&&null!=t&&(e&&""!=e&&"All"!=e?(delete m[t],m[t]=e):"All"==e&&delete m[t])}),t.find(".results-summary:visible").length<=0&&(jQuery(this).hasClass("all")?jQuery(this).parents(".filter-dropdown").find(".chosen-single span").html(jQuery(this).parents(".filter-dropdown").data("taxonomy-label")):jQuery(this).parents(".filter-dropdown").find(".chosen-single span").html(jQuery(this).find("span").html())),t.find(".blog-items").hasClass("filter-scope-global")&&(p=[],jQuery.each(m,function(t,e){p.push(t+"="+encodeURIComponent(e))}),0<(p=jQuery.unique(p)).length&&(e=f.data.attr.base+f.data.attr.path+"?"+p.join("&"),""!=window.location.hash&&(e+=window.location.hash),window.history.replaceState("","",e))));t.find(".search-form.search-widget").off("submit","a").on("submit",function(t){t.preventDefault();var i,n=jQuery(this).closest(".blog-wrap"),t=n.data("blogid"),s=jQuery(this).closest(".blog-wrap").find(".blog-items"),o=jQuery.parseJSON(decodeURIComponent(s.data("atts"))),a=(s.data("paged"),o.q=jQuery(this).find('input[type="text"],input[type="search"]').val()),e=g.data("template"),r=!1,l=(null!=e&&""!=e||(e="content_feed"),"search"),h=(jQuery("body").hasClass("search")&&(l="s"),n.find(".results-summary:visible").length<=0&&(jQuery(this).hasClass("all")?jQuery(this).parents(".filter-dropdown").find(".chosen-single span").html(jQuery(this).parents(".filter-dropdown").data("taxonomy-label")):jQuery(this).parents(".filter-dropdown").find(".chosen-single span").html(jQuery(this).find("span").html())),{}),r=(0<n.find(".filtering li.selected").length&&(n.find(".filtering li.selected").each(function(t,e){var i=jQuery(this).find("> a");""!=i.data("term")&&(h[i.data("taxonomy")]?h[""+i.data("taxonomy")]=h[i.data("taxonomy")]+","+i.data("term"):h[""+i.data("taxonomy")]=i.data("term"))}),i="",h=jQuery.parseJSON(JSON.stringify(h)),jQuery.each(h,function(t,e){i=i+t+"="+e+"&"}),"&"==(i="&"+i.trim("&")).substring(i.length-1)&&(i=i.substring(0,i.length-1))),!1),a=(jQuery("body").hasClass("date")&&(r=jQuery("body").data("year"),jQuery("body").data("month")&&"false"!=jQuery("body").data("month")&&(r=r+"-"+jQuery("body").data("month")),jQuery("body").data("day")&&"false"!=jQuery("body").data("day")&&(r=r+"-"+jQuery("body").data("day"))),o.q=n.find(".search-form.search-widget").find("input").val()),l=(null!=(e=g.data("template"))&&""!=e||(e="content_feed"),"search");return jQuery("body").hasClass("search")&&(l="s"),null!=a&&"undefined"!=a||(a=""),e=n.data("template")&&"stylesheet"==n.data("template")?Z+"/api/"+e+".php?"+l+"="+encodeURIComponent(a)+"&atts="+encodeURIComponent(JSON.stringify(o))+"&pagenum=1"+i+"&permalinkURL="+J+"&blogID="+t+"&datearchive="+r:K+"/api/"+e+".php?"+l+"="+encodeURIComponent(a)+"&atts="+encodeURIComponent(JSON.stringify(o))+"&pagenum=1"+i+"&permalinkURL="+J+"&blogID="+t+"&datearchive="+r,n.find(".blog-items").hasClass("filter-scope-global")&&(p=[],jQuery.each(m,function(t,e){"search"!=t&&"s"!=t&&(p[t]="All"!=e?encodeURIComponent(e):"all")}),p=Object.keys(p).map(function(t,e){if(""!=p[t])return t+"="+p[t]}).join("&"),null!=a&&"undefined"!=a||(a=""),l=0<jQuery("body.search").length?0<p.length?f.data.attr.base+f.data.attr.path+"?s="+encodeURIComponent(a)+"&"+p:f.data.attr.base+f.data.attr.path+"?s="+encodeURIComponent(a):0<p.length?f.data.attr.base+f.data.attr.path+"?search="+encodeURIComponent(a)+"&"+p:f.data.attr.base+f.data.attr.path+"?search="+encodeURIComponent(a),""!=window.location.hash&&(l+=window.location.hash),window.history.pushState("","",l)),n.removeClass("done-loading"),console.log(e),jQuery.get(e,function(t){jQuery("body").append('<div id="filteringHTML" style="display:none;"></div>'),jQuery("#filteringHTML").html(t);var e=jQuery("#filteringHTML").find(".blog-item").length;t=jQuery("#filteringHTML").find(".items-row-wrap").html(),jQuery("#filteringHTML").remove(),g.data("found-posts",e),(g.hasClass("blog-inf-scroll")||g.hasClass("blog-load-more"))&&g.infinitescroll("destroy"),jQuery("body").hasClass("search")&&(t=t.replace("&amp;q=","&amp;s=").replace("?q=","?s=")),s.closest(".items-row-wrap").html(t),SWIFT.page.injectsvgs(),e<o.item_count&&n.addClass("done-loading"),SWIFT.blog.blogAlgoliaFacetCount(s),s.stop().animate({opacity:1},400,function(){s.update(),g=jQuery(".blog-wrap").find(".blog-items"),SWIFT.blog.init(),(g.hasClass("blog-inf-scroll")||g.hasClass("blog-load-more"))&&SWIFT.blog.infiniteScroll(),0<jQuery("#breadcrumbs > span:last-child span").length&&-1!==jQuery("#breadcrumbs > span:last-child span").html().indexOf("Search results for")&&jQuery("#breadcrumbs > span:last-child span").html("Search results for '"+a+"'"),0<jQuery("body.search .page-heading .results-count").length&&jQuery("body.search .page-heading .results-count").html(g.data("found-posts")),0<n.find(".results-count").length&&n.find(".results-count").html(g.data("found-posts")),0<jQuery("body.search .page-heading .keyword-text").length&&jQuery("body.search .page-heading .keyword-text").html(a),0<n.find(".keyword-text").length&&n.find(".keyword-text").html(a),s.closest(".items-row-wrap").find("iframe.iframe-resize")&&(s.closest(".items-row-wrap").find("iframe.iframe-resize").removeAttr("height"),s.closest(".items-row-wrap").find("iframe.iframe-resize").removeAttr("type"),s.closest(".items-row-wrap").find("iframe.iframe-resize").iFrameResize({heightCalculationMethod:"max"})),SWIFT.widgets.accordion()})}),!1}),t.find(".filtering li").off("click","a").on("click","a",function(c){c.preventDefault();jQuery(this);var i,n,s=jQuery(this).closest(".blog-wrap"),c=s.data("blogid"),o=jQuery(this).closest(".blog-wrap").find(".blog-items"),d=jQuery.parseJSON(decodeURIComponent(o.data("atts"))),t=(o.data("paged"),jQuery(this).data("taxonomy")),e=(jQuery(this).data("taxonomyname"),jQuery(this).hasClass("all")||jQuery(this).closest(".filter-az .filtering").find(".all").parents(".selected").removeClass("selected"),jQuery(this).data("term")),a=(jQuery(this).hasClass("all")||jQuery(this).closest(".filter-az .filtering").find(".all").parents(".selected").removeClass("selected"),jQuery(this).parents(".filter-wrap").hasClass("multiselect")&&!jQuery(this).parents(".filter-dropdown").hasClass("filter-sort")?(jQuery(this).hasClass("all")?(jQuery(this).closest(".filtering").find("li.selected").removeClass("selected"),jQuery(this).parent("li").addClass("selected")):(jQuery(this).parents(".filter-dropdown").find("li.all, li.All").removeClass("selected"),jQuery(this).parent("li").hasClass("selected")?(m[t]=jQuery.grep(m[t].split(","),function(t){return t!=e}),jQuery(this).parent("li").removeClass("selected")):jQuery(this).parent("li").addClass("selected"),e=[],jQuery(this).closest(".filtering").find("li.selected").each(function(){e.push(jQuery(this).find("> a").data("term"))}),e=e.join(",")),jQuery(this).parents(".filter-dropdown").find("li.selected").length<=0&&(jQuery(this).parents(".filter-dropdown").find("li.all, li.All").addClass("selected"),e="All")):(m[t]=e,jQuery(this).closest(".filtering").find("li > a").parent("li.selected").removeClass("selected"),jQuery(this).closest(".filtering").find("li > a."+e).parent("li").addClass("selected"),jQuery(this).parents(".spb_blog_widget, .spb_algolia_widget").hasClass("filter-display-sidebar")||jQuery(this).parents(".filter-dropdown").removeClass("open").addClass("closed")),s.find(".results-summary:visible").length<=0&&(jQuery(this).hasClass("all")?jQuery(this).parents(".filter-dropdown").find(".chosen-single span").html(jQuery(this).parents(".filter-dropdown").data("taxonomy-label")):(i="",jQuery(this).parents(".filter-dropdown").find(".selected span").each(function(t,e){i=""==i?jQuery(this).html():i+", "+jQuery(this).html()}),jQuery(this).parents(".filter-dropdown").find(".chosen-single span").html(i))),{}),r=(0<s.find(".filtering li.selected").length&&(s.find(".filtering li.selected").each(function(t,e){var i=jQuery(this).find("> a");""!=i.data("term")&&(a[i.data("taxonomy")]?a[""+i.data("taxonomy")]=a[i.data("taxonomy")]+","+i.data("term"):a[""+i.data("taxonomy")]=i.data("term"))}),n="",a=jQuery.parseJSON(JSON.stringify(a)),jQuery.each(a,function(t,e){n=n+t+"="+e+"&"}),"&"==(n="&"+n.trim("&")).substring(n.length-1)&&(n=n.substring(0,n.length-1))),!1),l=(jQuery("body").hasClass("date")&&(r=jQuery("body").data("year"),jQuery("body").data("month")&&"false"!=jQuery("body").data("month")&&(r=r+"-"+jQuery("body").data("month")),jQuery("body").data("day")&&"false"!=jQuery("body").data("day")&&(r=r+"-"+jQuery("body").data("day"))),d.q=s.find(".search-form.search-widget").find("input").val()),h=g.data("template"),u=(null!=h&&""!=h||(h="content_feed"),"search");return jQuery("body").hasClass("search")&&(u="s"),null!=l&&"undefined"!=l||(l=""),t=s.data("template")&&"stylesheet"==s.data("template")?("all"!=e&&"All"!=e&&""!=e||(e="all","post-type"==t&&"all"==e&&(e=s.data("post-type"))),Z+"/api/"+h+".php?"+u+"="+encodeURIComponent(l)+"&atts="+encodeURIComponent(JSON.stringify(d))+"&pagenum=1"+n+"&permalinkURL="+J+"&blogID="+c+"&datearchive="+r):("all"!=e&&"All"!=e&&""!=e||(e="all","post-type"==t&&"all"==e&&(e=s.data("post-type"))),K+"/api/"+h+".php?"+u+"="+encodeURIComponent(l)+"&atts="+encodeURIComponent(JSON.stringify(d))+"&pagenum=1"+n+"&permalinkURL="+J+"&blogID="+c+"&datearchive="+r),o.append('<div id="infscr-loading" class="first-page-loading" style="position:absolute;top:0px;left:0px;"><div class="spinner"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div></div>'),o.find(".blog-item").stop().animate({opacity:0},800,"easeOutExpo",function(){}),jQuery(this).closest(".filtering").find("li.selected > a").each(function(){var t,e=jQuery(this).data("taxonomyname");t=jQuery(this).hasClass("all")?"All":jQuery(this).data("term"),""!=e&&null!=e&&(""!=t&&"all"!=t&&"All"!=t?("All"!=m[e]&&"all"!=m[e]||(m[e]=""),m[e]?(m[e]=m[e]+","+t,m[e]=m[e].split(", ").join(","),m[e]=m[e].split(",").filter(function(t,e,i){return e==i.indexOf(t)}).join(",")):m[e]=t):""!=t&&"All"==t&&(m[e]="All")),m[e]&&m[e].length<=0&&delete m[e]}),s.find(".blog-items").hasClass("filter-scope-global")&&(p=[],jQuery.each(m,function(t,e){"search"!=t&&"s"!=t&&(p[t]="All"!=e?encodeURIComponent(e):"all")}),p=Object.keys(p).map(function(t,e){if(""!=p[t])return t+"="+p[t]}).join("&"),null!=l&&"undefined"!=l||(l=""),h=0<jQuery("body.search").length?0<p.length?f.data.attr.base+f.data.attr.path+"?s="+encodeURIComponent(l)+"&"+p:f.data.attr.base+f.data.attr.path+"?s="+encodeURIComponent(l):0<p.length?f.data.attr.base+f.data.attr.path+"?search="+encodeURIComponent(l)+"&"+p:f.data.attr.base+f.data.attr.path+"?search="+encodeURIComponent(l),""!=window.location.hash&&(h+=window.location.hash),window.history.pushState("","",h)),s.removeClass("done-loading"),console.log(t),jQuery.get(t,function(t){jQuery("body").append('<div id="filteringHTML" style="display:none;"></div>'),jQuery("#filteringHTML").html(t);var e=jQuery("#filteringHTML").find(".blog-item").length;t=jQuery("#filteringHTML").find(".items-row-wrap").html(),jQuery("#filteringHTML").remove(),g.data("found-posts",e),(g.hasClass("blog-inf-scroll")||g.hasClass("blog-load-more"))&&g.infinitescroll("destroy"),jQuery("body").hasClass("search")&&(t=t.replace("&amp;q=","&amp;s=").replace("?q=","?s=")),o.closest(".items-row-wrap").html(t),SWIFT.page.injectsvgs(),e<d.item_count&&s.addClass("done-loading"),SWIFT.blog.blogAlgoliaFacetCount(o),o.stop().animate({opacity:1},400,function(){o.update(),g=jQuery(".blog-wrap").find(".blog-items"),SWIFT.blog.init(),(g.hasClass("blog-inf-scroll")||g.hasClass("blog-load-more"))&&SWIFT.blog.infiniteScroll(),0<jQuery("#breadcrumbs > span:last-child span").length&&-1!==jQuery("#breadcrumbs > span:last-child span").html().indexOf("Search results for")&&jQuery("#breadcrumbs > span:last-child span").html("Search results for '"+l+"'"),0<jQuery("body.search .page-heading .results-count").length&&jQuery("body.search .page-heading .results-count").html(g.data("found-posts")),0<s.find(".results-count").length&&s.find(".results-count").html(g.data("found-posts")),0<jQuery("body.search .page-heading .keyword-text").length&&jQuery("body.search .page-heading .keyword-text").html(l),0<s.find(".keyword-text").length&&s.find(".keyword-text").html(l),o.closest(".items-row-wrap").find("iframe.iframe-resize")&&(o.closest(".items-row-wrap").find("iframe.iframe-resize").removeAttr("height"),o.closest(".items-row-wrap").find("iframe.iframe-resize").removeAttr("type"),o.closest(".items-row-wrap").find("iframe.iframe-resize").iFrameResize({heightCalculationMethod:"max"})),SWIFT.widgets.accordion()})}),!1})},blogAlgoliaFacetCount:function(e){var t,i,n,s,o;e.parents(".blog-wrap").hasClass("spb_algolia_widget")&&(s=jQuery("#sf-option-params"),t=jQuery.parseJSON(decodeURIComponent(e.data("atts"))),i=e.data("paged"),n=t.q=jQuery(this).find('input[type="text"],input[type="search"]').val(),s=algoliasearch(s.data("algolia-appid"),s.data("algolia-apikeysearch")).initIndex(s.data("algolia-defaultindex")),o='["public:true"',t.post_type&&(jQuery.isArray(t.post_type)||(t.post_type=t.post_type.split(",")),o+=",[",jQuery.each(t.post_type,function(t,e){o=o+',"type:'+e+'"'}),o=o.replace(",[,",",[")+"]"),o=(o+="]").split(",[]").join(""),s.search(n,{page:i-1,facets:"*",facetFilters:o}).then(function(t){jQuery.each(e.parents(".blog-wrap").find(".filter-wrap .post-filter-tabs a:not(.all):not(.chosen-single):not(.toggle-link)"),function(){e.parents(".blog-wrap").find(".filter-wrap .post-filter-tabs a:not(.all):not(.chosen-single):not(.toggle-link)").each(function(){var n=!1,s=jQuery(this);jQuery.each(t.facets,function(i,t){jQuery.each(t,function(t,e){s.data("taxonomy")==i&&s.prop("title")==t&&(s.find(".term-count").remove(),s.append('<span class="term-count">'+e+"</span>"),n=!0)})}),0==n&&(s.find(".term-count").remove(),s.append('<span class="term-count">0</span>'))})})}))},blogLayout:function(t){var e,i,n=t.data("blog-type"),s="masonry"===n?"masonry":"fitRows";"masonry"===n&&t.hasClass("social-blog")?(e=t.parent().find(".blog-tweets").html(),i=t.parent().find(".blog-instagrams"),t.imagesLoaded(function(){SWIFT.flexSlider.thumb(),t.data("isotope")&&t.isotope("destroy"),t.isotope({resizable:!0,itemSelector:".blog-item",layoutMode:"masonry",getSortData:{date:function(t){return jQuery(t).data("date")}},sortBy:"date",sortAscending:!1,stagger:0,hiddenStyle:{opacity:0},visibleStyle:{opacity:1},isOriginLeft:!d}),""!==e&&t.isotope("insert",jQuery(e)),0<i.length&&SWIFT.blog.masonryInstagram(i,t),t.isotope("updateSortData").isotope(),y&&setTimeout(function(){t.isotope("layout")},1e3),t.parents(".blog-wrap").hasClass("equal-heights")&&SWIFT.blog.blogEqualHeights(t)})):(t.imagesLoaded(function(){SWIFT.flexSlider.thumb(),t.data("isotope")&&t.isotope("destroy"),t.isotope({resizable:!0,layoutMode:s,stagger:0,hiddenStyle:{opacity:0},visibleStyle:{opacity:1},isOriginLeft:!d}),t.parents(".blog-wrap").hasClass("equal-heights")&&SWIFT.blog.blogEqualHeights(t)}),t.appear(function(){SWIFT.blog.animateItems(t)}))},masonryInstagram:function(n,s){var t=n.data("userid"),e=n.data("token"),o=n.data("count"),a=n.data("itemclass");jQuery.ajax({type:"GET",dataType:"jsonp",cache:!1,url:"https://api.instagram.com/v1/users/"+t+"/media/recent/?access_token="+e,success:function(t){for(var e,i=0;i<o;i++)t.data[i]&&(e="",t.data[i].caption&&(e=t.data[i].caption.text),n.append("<li class='blog-item instagram-item "+a+"' data-date='"+t.data[i].created_time+"'><a class='timestamp inst-icon' target='_blank' href='"+t.data[i].link+"'><i class='fa-instagram'></i></a><div class='inst-overlay'><a target='_blank' href='"+t.data[i].link+"'></a><h6>"+n.data("title")+"</h6><h2>"+e+"</h2><div class='name-divide'></div><data class='date timeago' title='"+t.data[i].created_time+"' value=''>"+t.data[i].created_time+"</data></div><img class='instagram-image' src='"+t.data[i].images.low_resolution.url+"' width='306px' height='306px' /></li>"));jQuery("data.timeago").timeago(),n.imagesLoaded(function(){s.isotope("insert",jQuery(n.html()))}),s.isotope("updateSortData").isotope()}})},animateItems:function(t){t.find(".blog-item").each(function(t){jQuery(this).delay(50*t).animate({opacity:1},400,"easeOutExpo",function(){jQuery(this).addClass("item-animated")})})},blogGrid:function(t,e){var i=t.parent().find(".blog-tweets").html(),n=t.parent().find(".blog-instagrams");t.imagesLoaded(function(){SWIFT.flexSlider.thumb(),t.isotope({resizable:!1,itemSelector:".blog-item",layoutMode:"fitRows",getSortData:{id:function(t){return jQuery(t).data("sortid")}},sortBy:"id",sortAscending:!0,isOriginLeft:!d}),""!==i&&t.isotope("insert",jQuery(i)),0<n.length&&SWIFT.blog.blogGridInstagram(n,t),t.isotope("updateSortData").isotope(),SWIFT.blog.blogGridResize(),e.parents(".blog-wrap").hasClass("equal-heights")&&SWIFT.blog.blogEqualHeights(e)}).animate({opacity:1},800,"easeOutExpo"),a.smartresize(function(){SWIFT.blog.blogGridResize()})},blogGridResize:function(){g.find(".grid-items").each(function(){var t=jQuery(this).find(".blog-item"),e=t.first().width();t.first().hasClass("col-sm-sf-25")&&(e/=2),t.css("height",e)}),setTimeout(function(){jQuery(".tweet-text,.quote-excerpt").dotdotdot(),g.find(".grid-items").isotope("layout")},500)},blogGridInstagram:function(n,s){var t=n.data("userid"),e=n.data("token"),o=n.data("count");jQuery.ajax({type:"GET",dataType:"jsonp",cache:!1,url:"https://api.instagram.com/v1/users/"+t+"/media/recent/?access_token="+e,success:function(t){for(var e,i=0;i<o;i++)t.data[i]&&(e="",t.data[i].caption&&(e=t.data[i].caption.text),n.append("<li class='blog-item col-sm-sf-5 instagram-item' data-date='"+t.data[i].created_time+"' data-sortid='"+2*i+"'><a class='timestamp inst-icon' target='_blank' href='"+t.data[i].link+"'><i class='fa-instagram'></i></a><div class='inst-img-wrap'><div class='inst-overlay'><a target='_blank' href='"+t.data[i].link+"'></a><h6>"+n.data("title")+"</h6><h2>"+e+"</h2><div class='name-divide'></div><data class='date timeago' title='"+t.data[i].created_time+"' value=''>"+t.data[i].created_time+"</data></div><img class='instagram-image' src='"+t.data[i].images.low_resolution.url+"' /></div></li>"));jQuery("data.timeago").timeago(),SWIFT.blog.blogGridResize(),n.imagesLoaded(function(){s.isotope("insert",jQuery(n.html())),SWIFT.blog.blogGridResize()}),s.isotope("updateSortData").isotope()}})},infiniteScroll:function(){var n,s;o&&o<9?jQuery(".pagination-wrap").removeClass("hidden"):(n=jQuery("#inf-scroll-params"),(g=jQuery(".blog-wrap").find(".blog-items")).each(function(t){var e,i=jQuery(this).data("id");(jQuery(this).hasClass("blog-load-more")||jQuery(this).hasClass("blog-inf-scroll"))&&(e=jQuery(this),i={loading:{img:n.data("loadingimage"),msgText:n.data("msgtext"),finished:function(){},finishedMsg:n.data("finishedmsg")},nextSelector:".pagenavi li.next a",navSelector:".pagenavi",itemSelector:".blog-item-"+i,contentSelector:"#blog-items-"+i+" .blog-items"},e.infinitescroll(i,function(t){var e=jQuery(this);SWIFT.flexSlider.thumb(),e.imagesLoaded(function(){e.isotope("appended",t).isotope("layout"),jQuery.each(t,function(t,e){jQuery(e).addClass("item-animated")})}),jQuery('[data-rel="ilightbox[posts]"]').removeClass("ilightbox-enabled").iLightBox().destroy(),SWIFT.page.lightbox(),e.parents(".blog-wrap").hasClass("equal-heights")&&SWIFT.blog.blogEqualHeights(e),SWIFT.page.injectsvgs(),e.find("#infscr-loading").remove(),e.parents(".blog-wrap").hasClass("equal-heights")&&SWIFT.blog.blogEqualHeights(e),e.parent().find(".pagination-wrap").hasClass("load-more")&&(e.find(".blog-item").length<e.data("found-posts")?e.parent().find(".load-more-btn").animate({opacity:1},400):(e.parent().find(".load-more-btn").hide(),e.addClass("all-posts-loaded"))),0<e.parents(".blog-wrap").find(".blog-item .sf-blog-modal a").length&&e.parents(".blog-wrap").find(".blog-item .sf-blog-modal a").each(function(){if(!jQuery(this).data("postid"))return!0;jQuery(this).prop("onclick","javascript: return false;"),jQuery(this).off().on("click",function(t){t.preventDefault();var t=jQuery(this).attr("href"),e=(jQuery(this).find(".sd-modal-content").each(function(){jQuery(this).hide()}),jQuery(this).parents(".sf-blog-modal").data("template")),i=(e&&""!=e||(e=K+"/api/modal_content.php"),jQuery(this).data("postid"));return""==jQuery("#modal-container .container").html()?window.location.href=t:SWIFT.blog.blogOpenModal(e,t,i,!0),!1})}),0<s.length&&setTimeout(function(){jQuery(window).scrollTop(s.offset().top)},100)}),e.parent().find(".pagination-wrap").hasClass("load-more")&&(a.unbind(".infscr"),e.parent().find(".load-more-btn").off().on("click",function(t){return t.preventDefault(),s=jQuery(this).parents(".blog-items-wrap").find(".blog-item:nth-last-child(1)"),jQuery(this).parent().find(".blog-items").infinitescroll("retrieve"),jQuery(this).animate({opacity:0},400),!1})))}))}},jQuery(".galleries-wrap").find(".filterable-items"));SWIFT.galleries={init:function(){l.each(function(){var t=jQuery(this);t.hasClass("masonry-items")?SWIFT.galleries.masonrySetup(t):SWIFT.galleries.standardSetup(t)}),a.smartresize(function(){SWIFT.galleries.windowResized()}),jQuery(".filtering li").each(function(){var t=jQuery(this),e=jQuery(this).find("a").attr("class");jQuery(this).parents(".galleries-wrap").find(".filterable-items").find(".gallery-item").each(function(){jQuery(this).hasClass(e)&&t.addClass("has-items")})}).parents(".filtering").animate({opacity:1},400),jQuery(".filtering li").on("click","a",function(t){t.preventDefault(),jQuery(this).parent().parent().find("li").removeClass("selected"),jQuery(this).parent().addClass("selected");t=jQuery(this).data("filter");jQuery(this).parents(".galleries-wrap").find(".filterable-items").isotope({filter:t})})},standardSetup:function(t){t.imagesLoaded(function(){SWIFT.galleries.setItemHeight(),t.animate({opacity:1},800),t.isotope({resizable:!0,layoutMode:"fitRows",isOriginLeft:!d})}),t.appear(function(){SWIFT.galleries.animateItems(t)})},masonrySetup:function(t){t.imagesLoaded(function(){t.isotope({resizable:!1,itemSelector:".gallery-item",layoutMode:"masonry",isOriginLeft:!d})}),t.appear(function(){SWIFT.galleries.animateItems(t)})},animateItems:function(t){t.find(".gallery-item").each(function(t){jQuery(this).delay(200*t).animate({opacity:1},800,"easeOutExpo",function(){jQuery(this).addClass("item-animated")})})},setItemHeight:function(){l.hasClass("col-1")||l.hasClass("masonry-items")||(l.children().css("min-height","0"),l.equalHeights())},windowResized:function(){l.hasClass("col-1")||l.hasClass("masonry-items")||SWIFT.galleries.setItemHeight()}},SWIFT.gallery={init:function(){jQuery(".spb_gallery_widget").each(function(){jQuery(this).hasClass("gallery-masonry")?SWIFT.gallery.galleryMasonry(jQuery(this).find(".filterable-items")):jQuery(this).hasClass("gallery-slider")&&SWIFT.gallery.gallerySlider(jQuery(this))})},galleryMasonry:function(t){t.imagesLoaded(function(){t.isotope({resizable:!1,itemSelector:".gallery-image",layoutMode:"masonry",isOriginLeft:!d})}),t.appear(function(){SWIFT.gallery.animateItems(t)})},animateItems:function(t){t.find(".gallery-image").each(function(t){jQuery(this).delay(200*t).animate({opacity:1},800,"easeOutExpo",function(){jQuery(this).addClass("item-animated")})})},gallerySlider:function(t){var e=t.find(".gallery-slider"),t=t.find(".gallery-nav"),i="yes"===(i=e.data("autoplay"));t.flexslider({animation:"slide",directionNav:!0,controlNav:!1,animationLoop:z,slideshow:!1,itemWidth:100,itemMargin:30,rtl:d,asNavFor:e}),e.flexslider({animation:e.data("transition"),slideshow:!1,slideshowSpeed:R,animationDuration:H,controlNav:!1,animationLoop:z,smoothHeight:!0,rtl:d,sync:t,start:function(){i&&e.appear(function(){e.flexslider("play")})}})}},SWIFT.recentPosts={init:function(){var t=jQuery(".recent-posts:not(.carousel-items,.posts-type-list)");t.imagesLoaded(function(){SWIFT.flexSlider.thumb(),t.equalHeights()}),a.smartresize(function(){jQuery(".recent-posts:not(.carousel-items,.posts-type-list)").children().css("min-height","0"),jQuery(".recent-posts:not(.carousel-items,.posts-type-list)").equalHeights()})}},SWIFT.carouselWidgets={init:function(){var t=jQuery(".carousel-items"),r=i.data("carousel-autoplay"),e=i.data("carousel-autoplay-diration"),l=i.data("carousel-pagespeed"),h=i.data("carousel-slidespeed");i.data("carousel-pagination");c.hasClass("vertical-header")&&jQuery("#header-section").width(),r=!!r&&1e3*e,t.each(function(){var i=jQuery("#"+jQuery(this).attr("id")),e=parseInt(i.attr("data-columns"),10),n=i.attr("data-transition"),s=e<4?e:4,o=e<3?e:3,a=1;i.hasClass("clients-items")&&(a=2),i.hasClass("testimonials")&&(a=o=s=1),i.imagesLoaded(function(){i.hasClass("no-gutters")||(t=i.width(),(d?i.css("margin-right","-15px"):i.css("margin-left","-15px")).css("width",t+30));var t={loop:!0,nav:!1,rewind:!1,lazyLoad:!0,autoplay:r,autoplayHoverPause:!0,navSpeed:h,dotsSpeed:l,autoHeight:!0,onTranslated:function(){var t=i.find(".owl-item.active"),e=i.find(".owl-item").eq(t).height();i.css("height",e),jQuery(".carousel-asset").css("height",e),i.find(".owl-wrapper").css("height",e),0<t.find(".sf-menu-item-modal a, a.sf-menu-item-modal").length&&t.find(".sf-menu-item-modal a, a.sf-menu-item-modal").each(function(){jQuery(this).prop("onclick","javascript: return false;"),jQuery(this).off().on("click",function(t){t.preventDefault();var t=jQuery(this).attr("href"),e=(jQuery(this).find(".sd-modal-content").each(function(){jQuery(this).hide()}),jQuery(this).data("postid"));return""==jQuery("#modal-container .container").html()?window.location.href=t:SWIFT.carouselWidgets.carouselOpenModal(t,e,!0),!1})})},onInitialize:function(){var t;i.parents(".carousel-asset").show(),i.hasClass("no-gutters")||(i.css("width",""),t=i.width(),i.css("width",t+30)),jQuery(window).trigger("resize")},onInitialized:function(){i.find(".flex-active-slide").resize();var t=i.find(".owl-item.active"),t=i.find(".owl-item").eq(t).height();i.css("height",t),jQuery(".carousel-asset").css("height",t),i.find(".owl-wrapper").css("height",t),i.find(".owl-carousel").css("height",t),i.find(".owl-item").attr("aria-selected","false"),i.find(".owl-item.active").attr("aria-selected","true"),i.find(".carousel-prev, .owl-prev").attr("role","button").attr("title","Previous"),i.find(".carousel-next, .owl-next").attr("role","button").attr("title","Next"),i.prop("tabindex","0"),i.attr("aria-label","Use left and right arrow keys to navigate"),jQuery(".carousel-prev, .carousel-next, .owl-next, .owl-prev").prop("tabindex","0"),i.find(".owl-item").each(function(){jQuery(this).find("a").not("[aria-hidden='true']").first().prop("tabindex","0")}),i.find(".owl-item.cloned a").prop("tabindex","-1"),jQuery(window).trigger("resize"),i.each(function(){jQuery(this).find(".owl-dot").each(function(t){jQuery(this).attr("aria-label",t+1)})})},onChange:function(){i.find(".owl-item").each(function(){jQuery(this).find("a").not("[aria-hidden='true']").first().prop("tabindex","0")}),i.find(".owl-item.cloned a").prop("tabindex","-1"),i.find(".owl-item").attr("aria-selected","false"),i.find(".owl-item.active").attr("aria-selected","true"),jQuery(window).trigger("resize")},afterMove:function(){var t;i.find(".owl-item").each(function(){jQuery(this).find("a").not("[aria-hidden='true']").first().prop("tabindex","0")}),i.find(".owl-item.cloned a").prop("tabindex","-1"),i.closest(".pagination")&&(t=i.currentItem,i.closest(".pagination").find("a.focus").removeClass("focus"),i.closest(".pagination").find('a[data-index="'+t+'"]').addClass("focus")),jQuery(window).trigger("resize")}};"inline"==i.attr("data-columns")?t.autoWidth=!0:(t.items=e,t.responsive={0:{items:a},480:{items:a},767:{items:o},991:{items:s},1200:{items:s}}),"fade"==n&&(t.animateIn="fadeIn",t.animateOut="fadeOut"),i.owlCarousel(t).animate({opacity:1},800,function(){jQuery(window).trigger("resize")})})}),jQuery(".carousel-next, .owl-next").click(function(t){t.preventDefault();t=jQuery(this).parents(".carousel-asset").find(".carousel-items").owlCarousel();return d?t.trigger("prev.owl.carousel"):t.trigger("next.owl.carousel"),!1}),jQuery(".carousel-prev, .owl-prev").click(function(t){t.preventDefault();t=jQuery(this).parents(".carousel-asset").find(".carousel-items").owlCarousel();return d?t.trigger("next.owl.carousel"):t.trigger("prev.owl.carousel"),!1}),jQuery(document).on("keydown",function(t){var e=jQuery(document.activeElement),i=39==t.which?"next":null,i=37==t.which?"prev":i,i=13==t.which?"enter":i;e&&(t=e,"enter"==i?e.hasClass("carousel-next")?t.trigger("next.owl.carousel"):e.hasClass("carousel-prev")&&t.trigger("prev.owl.carousel"):"next"==i?t.trigger("next.owl.carousel"):"prev"==i&&t.trigger("prev.owl.carousel"))})},carouselSwipeIndicator:function(t){t.appear(function(){var t=jQuery(this).parents(".carousel-wrap").find(".sf-swipe-indicator");setTimeout(function(){t.fadeIn(500)},400),setTimeout(function(){t.addClass("animate")},1e3),setTimeout(function(){t.fadeOut(400)},3e3)})},carouselMinHeight:function(t){var e=parseInt(t.find(".carousel-item:not(.no-thumb)").eq(0).css("height"));t.find(".owl-item").each(function(){jQuery(this).css("min-height",e+"px")})},carouselOpenModal:function(t,e,i){jQuery("body").removeClass("page-modal-done").addClass("page-modal-loading"),$=jQuery(document).scrollTop(),jQuery("html, body").scrollTop(0),0<jQuery("body").find(".sd-modal-content-"+e).length?(jQuery("body").find(".sd-modal-content-"+e).fadeIn("fast",function(){jQuery(window).scrollTop(0)}),jQuery("body").removeClass("page-modal-loading").addClass("page-modal-done")):jQuery.get(K+"/api/modal_content.php?id="+e,function(t){jQuery("body").find("#modal-container > .container").append('<div class="sd-modal-content sd-modal-content-'+e+'" data-postid="'+e+'">'+t+"</div>"),SWIFT.page.injectsvgs(),jQuery("body").find(".sd-modal-content-"+e).fadeIn("fast",function(){jQuery(window).scrollTop(0)}),jQuery("body").removeClass("page-modal-loading").addClass("page-modal-done")},"html").fail(function(){window.location.href=t}),jQuery("body").removeClass("mobile-menu-open"),jQuery("body").addClass("page-modal-open")}},SWIFT.widgets={init:function(){e.hasClass("has-chart")&&jQuery(".chart-shortcode").each(function(){jQuery(this).easyPieChart({animate:1e3,lineCap:"round",lineWidth:jQuery(this).attr("data-linewidth"),size:jQuery(this).attr("data-size"),barColor:jQuery(this).attr("data-barcolor"),trackColor:jQuery(this).attr("data-trackcolor"),scaleColor:"transparent"})}),SWIFT.widgets.accordion(),SWIFT.widgets.toggle(),SWIFT.widgets.fullWidthVideo(),SWIFT.widgets.introAnimations(),SWIFT.widgets.iconBoxes(),SWIFT.widgets.countAssets(),e.hasClass("has-countdown")&&SWIFT.widgets.countdownAssets(),e.hasClass("has-imagebanner")&&SWIFT.widgets.imageBanners(),0<jQuery("[rel=tooltip]").length&&jQuery("[rel=tooltip]").tooltip(),jQuery(".tabs-type-dynamic .menu-icon").hover(function(){jQuery(this).parents(".nav-tabs").addClass("show-tabs")}),jQuery(".tabs-type-dynamic").mouseleave(function(){jQuery(this).find(".nav-tabs").removeClass("show-tabs")}),jQuery("ul.nav-tabs li a, .spb_accordion_section > .ui-accordion-header a, ul.nav-tabs li button, .spb_accordion_section > .ui-accordion-header button").on("click","",function(t){t.preventDefault();var e=jQuery(this).parents(".spb_content_element").first();return setTimeout(function(){0<e.find(".map-canvas").length&&e.find(".map-canvas").each(function(){google.maps.event.trigger(jQuery(this),"resize")}),0<jQuery("iframe.iframe-resize").length&&(jQuery("iframe.iframe-resize").css("height",""),jQuery("iframe.iframe-resize").removeAttr("height"),jQuery("iframe.iframe-resize").removeAttr("type"),jQuery("iframe.iframe-resize").iFrameResize({heightCalculationMethod:"max"}))},300),!1})},accordion:function(){jQuery(".spb_accordion").each(function(){var t=!1,e=parseInt(jQuery(this).attr("data-active"),10),i=("number"===jQuery.type(e)&&(t=e),0<jQuery(this).find(".spb_accordion_section > h4 > a").length&&jQuery(this).find(".spb_accordion_wrapper").accordion({header:"> div > h4",autoHeight:!0,collapsible:!0,active:t,heightStyle:"content"}),0);jQuery(this).find(".spb_accordion_section").each(function(){e==i?(jQuery(this).find(".ui-accordion-header").addClass("ui-accordion-header-active"),jQuery(this).find(".ui-accordion-content").addClass("ui-accordion-content-active"),jQuery(this).attr("aria-expanded","true"),jQuery(this).find(".ui-accordion-content").attr("aria-hidden","false")):(jQuery(this).find(".ui-accordion-content").slideUp("fast",function(){jQuery(this).find(".ui-accordion-header").removeClass("ui-accordion-header-active"),jQuery(this).find(".ui-accordion-content").removeClass("ui-accordion-content-active")}),jQuery(this).attr("aria-expanded","false"),jQuery(this).find(".ui-accordion-content").attr("aria-hidden","true")),i++}),jQuery(this).find(".spb_accordion_wrapper .ui-accordion-header").hover(function(){jQuery(this).addClass("ui-state-hover")}),jQuery(this).find(".spb_accordion_wrapper .ui-accordion-header").blur(function(){jQuery(this).removeClass("ui-state-hover")}),jQuery(this).find(".spb_accordion_wrapper .ui-accordion-header a, .spb_accordion_wrapper .ui-accordion-header button").click(function(t){return t.preventDefault(),jQuery(this).parents(".ui-accordion-header").hasClass("ui-accordion-header-active")?(jQuery(this).parents(".spb_accordion_section").find(".ui-accordion-content").slideUp("fast",function(){jQuery(this).parents(".spb_accordion_section").find(".ui-accordion-header").removeClass("ui-accordion-header-active"),jQuery(this).parents(".spb_accordion_section").find(".ui-accordion-content").removeClass("ui-accordion-content-active"),jQuery(".blog-items").isotope("layout")}),jQuery(this).attr("aria-expanded","false"),jQuery(this).parents(".spb_accordion_section").find(".ui-accordion-content").attr("aria-hidden","true")):(jQuery(this).parents(".spb_accordion_section").find(".ui-accordion-content").slideDown("fast",function(){jQuery(this).parents(".spb_accordion_section").find(".ui-accordion-header").addClass("ui-accordion-header-active"),jQuery(this).parents(".spb_accordion_section").find(".ui-accordion-content").addClass("ui-accordion-content-active"),jQuery(".blog-items").isotope("layout")}),jQuery(this).attr("aria-expanded","true"),jQuery(this).parents(".spb_accordion_section").find(".ui-accordion-content").attr("aria-hidden","false")),!1})}).css("opacity",1),setTimeout(function(){jQuery(".blog-items").data("isotope")&&jQuery(".blog-items").isotope("layout")},201)},tabs:function(){991<=a.width()&&(jQuery(".spb_tabs").each(function(){var t="",e=(jQuery(this).find(".spb_accordion_section .ui-accordion-header").each(function(){t+=jQuery(this)[0].outerHTML.replace(' tabindex="-1"',"")}),parseInt(jQuery(this).attr("data-active"),10));(0<=e?jQuery(this).find(".spb_accordion_section:nth-child("+e+") .ui-accordion-header a, .spb_accordion_section:nth-child("+e+") .ui-accordion-header button"):jQuery(this).find(".spb_accordion_section:first-child .ui-accordion-header a, .spb_accordion_section:first-child .ui-accordion-header button")).trigger("click"),jQuery(this).find(".spb_accordion_wrapper").prepend('<div class="tab_menu hidden-xs hidden-sm">'+t+"</div>"),jQuery(this).find(".spb_accordion_wrapper .tab_menu a, .spb_accordion_wrapper .tab_menu button").each(function(){jQuery(this).attr("id",jQuery(this).prop("id")+"-tab")}),jQuery(this).css("min-height",jQuery(this).find(".tab_menu").height()+60),jQuery(this).find(".tab_menu .ui-accordion-header.ui-accordion-header-active").addClass("active-tab").removeClass("ui-accordion-header-active"),(0<=e?jQuery(this).find(".tab_menu .ui-accordion-header:nth-child("+e+") a, .tab_menu .ui-accordion-header:nth-child("+e+") button"):jQuery(this).find(".tab_menu .ui-accordion-header:first-child a, .tab_menu .ui-accordion-header:first-child button")).trigger("click")}),jQuery(".spb_tabs .tab_menu .ui-accordion-header a, .spb_tabs .tab_menu .ui-accordion-header button").off().on("click",function(t){return t.preventDefault(),jQuery(this).parents(".spb_tabs").find(".active-tab").removeClass("active-tab"),jQuery(this).parents(".spb_tabs").find(".ui-accordion-content").slideUp(0,function(){jQuery(this).parents(".spb_tabs").find(".ui-accordion-header").removeClass("ui-accordion-header-active"),jQuery(this).parents(".spb_tabs").find(".ui-accordion-content").removeClass("ui-accordion-content-active")}),jQuery(this).attr("aria-expanded","false"),jQuery(this).parents(".spb_accordion_section").find(".ui-accordion-content").attr("aria-hidden","true"),jQuery(this).parents(".ui-accordion-header").addClass("active-tab"),jQuery(this).parents(".spb_tabs").find('.spb_accordion_section .ui-accordion-header a[aria-controls="'+jQuery(this).prop("id").replace("-tab","-content")+'"], .spb_accordion_section .ui-accordion-header button[aria-controls="'+jQuery(this).prop("id").replace("-tab","-content")+'"]').trigger("click"),0<jQuery(this).parents(".spb_tabs").find("iframe.iframe-resize").length&&(jQuery(this).parents(".spb_tabs").find("iframe.iframe-resize").css("height",""),jQuery(this).parents(".spb_tabs").find("iframe.iframe-resize").removeAttr("height"),jQuery(this).parents(".spb_tabs").find("iframe.iframe-resize").removeAttr("type"),jQuery(this).parents(".spb_tabs").find("iframe.iframe-resize").iFrameResize({heightCalculationMethod:"max"})),!1}))},toggle:function(){jQuery(".spb_toggle button, .spb_toggle a").click(function(t){return t.preventDefault(),jQuery(this).parents(".spb_toggle").hasClass("spb_toggle_title_active")?(jQuery(this).parents(".spb_toggle").removeClass("spb_toggle_title_active").next().slideUp("fast"),jQuery(this).attr("aria-expanded","false"),jQuery(this).parents(".toggle-wrap").find(".spb_toggle_content").attr("aria-hidden","true")):(jQuery(this).parents(".spb_toggle").addClass("spb_toggle_title_active").next().slideDown("fast"),jQuery(this).attr("aria-expanded","true"),jQuery(this).parents(".toggle-wrap").find(".spb_toggle_content").attr("aria-hidden","false")),!1}),jQuery(".spb_toggle_content").each(function(){!1===jQuery(this).next().is("h4.spb_toggle")&&jQuery('<div class="last_toggle_el_margin"></div>').insertAfter(this)})},initSkillBars:function(){SWIFT.widgets.animateSkillBars(),jQuery("a.ui-tabs-anchor").click(function(){SWIFT.widgets.animateSkillBars()})},animateSkillBars:function(){jQuery(".progress:not(.animated)").each(function(){jQuery(this).appear(function(){var t=jQuery(this),e=t.find(".bar").data("value");t.addClass("animated"),t.find(".bar").animate({width:e+"%"},800,function(){t.parent().find(".bar-text").css("width",e+"%"),t.parent().find(".bar-text .progress-value").fadeIn(600)})})})},charts:function(){SWIFT.widgets.animateCharts()},animateCharts:function(){jQuery(".chart-shortcode").each(function(){jQuery(this).appear(function(){var t;jQuery(this).hasClass("animated")||(jQuery(this).addClass("animated"),t=parseInt(jQuery(this).attr("data-animatepercent"),10),jQuery(this).data("easyPieChart").update(t))})})},fullWidthVideo:function(){c.on("click",".fw-video-link",function(){return""!==jQuery(this).data("video")&&SWIFT.widgets.openFullWidthVideo(jQuery(this)),!1}),c.on("click",".fw-video-close",function(){SWIFT.widgets.closeFullWidthVideo()})},openFullWidthVideo:function(t){jQuery(".fw-video-close").addClass("is-open"),jQuery(".fw-video-spacer").animate({height:P},0,"easeInOutExpo"),jQuery(".fw-video-area").css("display","block").animate({top:0,height:"100%"},0,"easeInOutExpo",function(){jQuery(".fw-video-area > .fw-video-wrap").html('<div class="row"><div class="container"><div class="sf-video-wrap"><iframe class="fw-video" src="'+t.data("video")+'" width="100%" height="100%" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe></div></div></div>')})},closeFullWidthVideo:function(){return jQuery(".fw-video-close").removeClass("is-open"),jQuery(".fw-video-spacer").animate({height:0},0,"easeInOutExpo",function(){}),jQuery(".fw-video-area").animate({top:"-100%"},0,"easeInOutExpo",function(){jQuery(".fw-video-area").css("display","none"),jQuery(".fw-video-area .fw-video").remove()}),jQuery(".fw-video-area video").each(function(){this.pause()}),setTimeout(function(){jQuery(".fw-video-area").find("iframe").remove()},1500),!1},introAnimations:function(){y&&c.hasClass("disable-mobile-animations")||jQuery(".sf-animation").each(function(){var t=jQuery(this),e=t.data("animation"),i=t.data("delay");t.appear(function(){setTimeout(function(){t.addClass(e+" sf-animate")},i)},{accX:0,accY:-150},"easeInCubic")})},iconBoxes:function(){y?jQuery(".sf-icon-box").on("click",function(){jQuery(this).addClass("sf-mobile-hover")}):jQuery(".sf-icon-box").hover(function(){jQuery(this).addClass("sf-hover")},function(){jQuery(this).removeClass("sf-hover")})},countAssets:function(){jQuery(".sf-count-asset").each(function(){var t=jQuery(this),e=t.find(".count-number"),i=t.find(".count-divider").find("span"),n=t.find(".count-subject");e.fitText(.4,{minFontSize:"16px",maxFontSize:"62px"}),y?e.countTo({onComplete:function(){i.animate({width:50},400,"easeOutCubic"),n.delay(100).animate({opacity:1,bottom:"0px"},600,"easeOutCubic")}}):t.appear(function(){e.countTo({onComplete:function(){i.animate({width:50},400,"easeOutCubic"),n.delay(100).animate({opacity:1,bottom:"0px"},600,"easeOutCubic")}})},{accX:0,accY:-150},"easeInCubic")})},countdownAssets:function(){jQuery(".sf-countdown").each(function(){var t=jQuery(this),e=parseInt(t.data("year"),10),i=parseInt(t.data("month"),10),n=parseInt(t.data("day"),10),e=new Date(e,i-1,n),i=jQuery("#countdown-locale"),n=[i.data("label_years"),i.data("label_months"),i.data("label_weeks"),i.data("label_days"),i.data("label_hours"),i.data("label_mins"),i.data("label_secs")],i=[i.data("label_year"),i.data("label_month"),i.data("label_week"),i.data("label_day"),i.data("label_hour"),i.data("label_min"),i.data("label_sec")];t.countdown({until:e,since:null,format:"dHMS",labels:n,labels1:i,onExpiry:function(){setTimeout(function(){t.fadeOut(500)},1e3)}})})},imageBanners:function(){jQuery(".sf-image-banner").each(function(){jQuery(this).find(".image-banner-content").vCenter()})}},SWIFT.teamMembers={init:function(){var t=jQuery(".team-members:not(.carousel-items)");t.imagesLoaded(function(){767<a.width()&&t.equalHeights()}),a.smartresize(function(){jQuery(".team-members:not(.carousel-items)").children().css("min-height","0"),767<a.width()&&jQuery(".team-members:not(.carousel-items)").equalHeights()})}},SWIFT.relatedPosts={init:function(){var t=jQuery(".related-items");t.imagesLoaded(function(){767<a.width()&&t.equalHeights()}),a.smartresize(function(){jQuery(".related-items").children().css("min-height","0"),767<a.width()&&jQuery(".related-items").equalHeights()})}},SWIFT.parallax={init:function(t){jQuery(".spb_parallax_asset").each(function(t){var e,i=jQuery(this);i.hasClass("sf-parallax-video")?(y?(i.find("video").remove(),i.transition({opacity:1},300)):SWIFT.parallax.parallaxVideoInit(),jQuery(window).load(function(){SWIFT.parallax.parallaxVideoResize(i)}),a.smartresize(function(){SWIFT.parallax.parallaxVideoResize(i)})):i.hasClass("parallax-window-height")&&(i.css("height",""),e=a.height(),i.height()>e&&!t&&(e=i.height()),i.height(e-2*parseInt(i.css("padding-top"),10)),"true"===i.data("v-center")&&i.find("div:first").vCenterTop(),i.transition({opacity:1},300),a.smartresize(function(){SWIFT.parallax.windowImageResize(i)}))})},load:function(){jQuery.stellar({horizontalScrolling:!1,verticalOffset:200})},videoScroll:function(t){var e=t.offset().top,i=a.scrollTop(),n=parseInt(t.data("height-default"),10),s=i-e,o=t.find(".spb_content_wrapper").css("top");e<i?(t.css("height",n-1.5*s),t.find(".spb_content_wrapper").css("opacity",1-s/300),t.hasClass("parallax-window-height")&&"true"===t.data("v-center")?t.find(".spb_content_wrapper").css("top",o+s/4):"true"===t.data("v-center")&&t.find(".spb_content_wrapper").css("top",s/3)):(t.css("height",n),t.find(".spb_content_wrapper").css("opacity",1),t.hasClass("parallax-video-height")&&"true"===t.data("v-center")?t.find(".spb_content_wrapper").css("top","50%"):t.find(".spb_content_wrapper").css("top",0))},windowImageResize:function(t){var e;t.hasClass("spb-row-container")?(e=t.find("> .spb_content_element").height(),t.hasClass("parallax-window-height")&&e<a.height()&&(e=a.height()),t.height(e),t.data("v-center")&&t.find("> .spb_content_element").vCenterTop()):(e=t.height(),t.hasClass("parallax-window-height")&&e<a.height()&&(e=a.height()),t.height(e-t.css("padding-top")/2),t.find(".spb_content_wrapper").vCenterTop())},parallaxVideoInit:function(){jQuery(".spb_parallax_asset.sf-parallax-video").each(function(){var t=jQuery(this),e=t.find("video"),i=e.width(),n=t.find("div:first"),s=0;t.hasClass("parallax-window-height")?(s=(n.height()>a.height()?n:a).height(),t.animate({height:s},400),setTimeout(function(){SWIFT.parallax.parallaxVideoResize(t),t.transition({opacity:1},300)},500),setTimeout(function(){t.find(".video-overlay").animate({opacity:.8},200)},100),"true"===t.data("v-center")&&n.vCenterTop(),setTimeout(function(){n.animate({opacity:1,top:"50%"},600,"easeOutExpo")},600),t.attr("data-height-default",e.height()),setTimeout(function(){a.trigger("resize")},800)):SWIFT.parallax.scaleVideo(t),a.width()<i&&e.css("left",-(i-a.width())/2)})},parallaxVideoResize:function(t){var e=t.find("div:first"),i=0;t.hasClass("parallax-window-height")&&(i=(e.height()>a.height()?e:a).height(),t.animate({height:i},400),"true"===t.data("v-center")&&e.vCenterTop()),setTimeout(function(){SWIFT.parallax.scaleVideo(t)},400)},scaleVideo:function(t){var e=t.find("video"),i=t.outerHeight(),t=t.width(),n=e[0].videoWidth,s=e[0].videoHeight,o=t/n,a=i/s,o=a<o?o:a,a=n/s*(i+20);o*n<a&&(o=a/n),e.width(Math.ceil(o*n+2)),e.height(Math.ceil(o*s+50)),e.css("top",-(e.height()-i)/2),e.css("margin-left",-(e.width()-t)/2)}},SWIFT.mlparallax={init:function(){jQuery(".spb_multilayer_parallax").each(function(){var t=jQuery(this),e=t.data("xscalar"),i=t.data("xscalar"),n=parseInt(a.height(),10),s=t.data("fullscreen"),o=parseInt(t.data("max-height"),10);0<jQuery("#wpadminbar:visible").length&&(n-=jQuery("#wpadminbar").height()),o=a.width()<=768?(o/=2)<n||!s&&o?o:n:o<n||!s&&o?o:n,t.imagesLoaded(function(){SWIFT.mlparallax.setContentLayerPos(t),t.parallax({scalarX:e,scalarY:i}),t.animate({opacity:1,height:o},400)}),a.smartresize(function(){SWIFT.mlparallax.setAssetHeight(t)})})},setAssetHeight:function(t){var e=parseInt(a.height(),10),i=t.data("fullscreen"),n=parseInt(t.data("max-height"),10);0<jQuery("#wpadminbar:visible").length&&(e-=jQuery("#wpadminbar").height()),n=a.width()<=768?(n/=2)<e||!i&&n?n:e:n<e||!i&&n?n:e,t.css("height",n)},setContentLayerPos:function(t){t.find(".content-layer").each(function(){jQuery(this).vCenter()})}};var u,f,b,h,m,v,x,w,p,C,S,T,k,j,A,M,I="",E=!0,L=[],a=(SWIFT.map={init:function(){var i,t=jQuery(".map-canvas");"undefined"!=typeof google&&(f=new google.maps.LatLngBounds),t.each(function(t,e){e=(i=e).getAttribute("data-zoom");h=i.getAttribute("data-maptype"),m=i.getAttribute("data-mapcolor"),x=i.getAttribute("data-center-lat"),w=i.getAttribute("data-center-lng"),v=i.getAttribute("data-mapsaturation"),SWIFT.map.createMap(i,e,h,m,v,jQuery(this),x,w)})},getLatLong:function(t,i,n,s){(new google.maps.Geocoder).geocode({address:t},function(t,e){s(t[0].geometry.location,t[0].geometry.location.lat(),t[0].geometry.location.lng(),i,n)})},addWinContent:function(t,e,i){google.maps.event.addListener(t,"click",function(){u.setContent(e),u.open(i,t)})},addMarker:function(t,e,i,n,s,o,a){S=new google.maps.LatLng(p,C),e=e?(new google.maps.LatLng(p,C),new google.maps.Marker({position:S,map:t,icon:e,animation:google.maps.Animation.DROP})):(new google.maps.LatLng(p,C),new google.maps.Marker({position:S,map:t,animation:google.maps.Animation.DROP}));var r='<div class="pinmarker">';""!==i&&(r+="<h3>"+i+"</h3>"),""!==n&&(r+="<p>"+n+" </p>"),""!==s&&""!==a&&(r+='<div><a href="'+s+'">'+a+"</a></div>"),r+="</div>",u=new google.maps.InfoWindow,SWIFT.map.addWinContent(e,r,t),f.extend(S)},createMap:function(c,o,t,e,i,n,a,r){google&&(b=new google.maps.LatLngBounds);var l="",s=!1;"mono-light"==i?(""===e&&(e="#ffffff"),i=-100):"mono-dark"==i?(""===e&&(e="#222222"),i=-100,s=!0):i=-20;var s=new google.maps.StyledMapType([{stylers:[{hue:e},{invert_lightness:s},{saturation:i}]}],{name:"Styled Map"}),i=(y&&(E=!1),I="satellite"===t?google.maps.MapTypeId.SATELLITE:"terrain"===t?google.maps.MapTypeId.TERRAIN:"hybrid"===t?google.maps.MapTypeId.HYBRID:google.maps.MapTypeId.ROADMAP,{scrollwheel:!1,draggable:E,mapTypeControl:!0,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},navigationControl:!0,navigationControlOptions:{style:google.maps.NavigationControlStyle.SMALL},mapTypeId:I}),h=new google.maps.Map(c,i),d=n.parent().find(".pin_location").length,u=(google.maps.event.addDomListener(window,"resize",function(){h.setZoom(h.getZoom())}),f=new google.maps.LatLngBounds,n.parent().find(".pin_location").each(function(t,e){l=e.getAttribute("data-pinimage"),T=e.getAttribute("data-title"),k=e.getAttribute("data-content"),A=e.getAttribute("data-address"),j=e.getAttribute("data-pinlink"),p=e.getAttribute("data-lat"),C=e.getAttribute("data-lng"),M=e.getAttribute("data-button-text"),""===p&&""===C?SWIFT.map.getLatLong(A,T,l,function(t,e,i,n,s){p=e,C=i,T=n,l=s,SWIFT.map.addMarker(h,l,T,k,j,A,M),1<d?""!==a&&""!==r?(h.setZoom(parseInt(o,10)),h.setCenter(new google.maps.LatLng(a,r))):h.fitBounds(f):(h.setZoom(parseInt(o,10)),h.setCenter(new google.maps.LatLng(p,C)))}):(SWIFT.map.addMarker(h,l,T,k,j,A,M),1<d?""!==a&&""!==r?(h.setZoom(parseInt(o,10)),h.setCenter(new google.maps.LatLng(a,r))):h.fitBounds(f):(h.setZoom(parseInt(o,10)),h.setCenter(new google.maps.LatLng(p,C))))}),""!==e&&(h.mapTypes.set("map_style",s),h.setMapTypeId("map_style")),google.maps.event.addListener(h,"idle",function(){h.setZoom(parseInt(h.getZoom(),10)),google.maps.event.removeListener(u)}))}},SWIFT.mapDirectory={init:function(a,r,l){a=jQuery("#dir-search-value").val(),r=jQuery(".directory-location-option").val(),l=jQuery(".directory-category-option").val(),jQuery(".map-directory-canvas").each(function(t,e){var i=e.getAttribute("data-zoom"),n=e.getAttribute("data-maptype"),s=e.getAttribute("data-mapcolor"),o=e.getAttribute("data-mapsaturation");e.getAttribute("data-excerpt");null!=l&&"All"!=l||(l=e.getAttribute("data-directory-category")),SWIFT.mapDirectory.directoryMap(e,i,n,s,o,jQuery(this),a,r,l)})},searchDirectory:function(){SWIFT.mapDirectory.init(jQuery("#dir-search-value").val(),jQuery(".directory-location-option").val(),jQuery(".directory-category-option").val())},getLatLong:function(t,i){(new google.maps.Geocoder).geocode({address:t},function(t,e){i(t[0].geometry.location,t[0].geometry.location.lat(),t[0].geometry.location.lng())})},addWinContent:function(t,e,i){L.push(t),google.maps.event.addListener(t,"click",function(){u.setContent(e),u.open(i,t)})},addMarkerDir:function(t,e,i,n,s,h,o,a,r,l){S=new google.maps.LatLng(r,l),e=e?(new google.maps.LatLng(r,l),new google.maps.Marker({position:S,map:t,icon:e,optimized:!1,animation:google.maps.Animation.DROP})):(new google.maps.LatLng(r,l),new google.maps.Marker({position:S,map:t,animation:google.maps.Animation.DROP})),r=null===a?"":'<img class="info-window-img" alt="" src="'+a+'" height="140" width="140"/>';l="",l=""===s||""===o?'<div class="pinmarker">'+r+'<div class="pinmarker-container"><h3>'+i+'</h3><div class="excerpt">'+n+"</div></div></div>":'<div class="pinmarker">'+r+'<div class="pinmarker-container"><h3>'+i+'</h3><div class="excerpt">'+n+'</div><a class="pin-button" href="'+s+'" target="_blank">'+o+"</a></div></div>";u=new google.maps.InfoWindow,SWIFT.mapDirectory.addWinContent(e,l,t),b.extend(S)},directoryMap:function(n,f,t,s,e,r,l,h,i,m){var o,a=!1,g=(n.getAttribute("data-directory-map-filter"),n.getAttribute("data-directory-map-filter-pos"),n.getAttribute("data-directory-map-results")),m=n.getAttribute("data-excerpt"),e=("list"!==g?("mono-light"==e?(""===s&&(s="#ffffff"),e=-100):"mono-dark"==e?(""===s&&(s="#222222"),e=-100,a=!0):e=-20,a=[{stylers:[{hue:s},{invert_lightness:a},{saturation:e}]}],o=new google.maps.StyledMapType(a,{name:"Styled Map"}),y&&(E=!1),I="satellite"===t?google.maps.MapTypeId.SATELLITE:"terrain"===t?google.maps.MapTypeId.TERRAIN:"hybrid"===t?google.maps.MapTypeImapDirContainerd.HYBRID:google.maps.MapTypeId.ROADMAP):jQuery(n).hide(),r.parent().find(".pin_location").length,b=new google.maps.LatLngBounds,{action:"sf_directory",search_term:l,location_term:h,category_term:i=""===i?n.getAttribute("data-directory-category"):i,item_excerpt:m});jQuery.post(n.getAttribute("data-ajaxurl"),e,function(t){var t=jQuery.parseJSON(t),u=t.results,e=(jQuery(".directory-results").hide(),{scrollwheel:!1,draggable:E,mapTypeControl:!0,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},navigationControl:!0,navigationControlOptions:{style:google.maps.NavigationControlStyle.SMALL},mapTypeId:I});if(0<u){var p=new google.maps.Map(n,e),e=(L=[],""!==s&&"list"!=g&&(p.mapTypes.set("map_style",o),p.setMapTypeId("map_style")),google.maps.event.addDomListener(window,"resize",function(){p.fitBounds(b),p.setZoom(parseInt(f,10))}),""),e=1<u?t.results_text_1+" "+u+" "+t.results_text_2plural:t.results_text_1+" "+u+" "+t.results_text_2;jQuery(n).parent().parent().parent().find(".directory-results").prepend('<div class="results-title"><h2>'+e+"</h2>")}else{for(var i=0;i<L.length;i++)L[i].setMap(null);jQuery(n).parent().parent().parent().find(".directory-results").append('<div class="results-title"><h2>'+t.errormsg+"</h2>")}0<u&&"list"!=g?(jQuery(n).show(),jQuery(".directory-results").append(t.pagination),jQuery.each(t.items,function(c,t){var e=t.pin_title,i=t.pin_logo_url,n=t.pin_content,s=t.pin_short_content,o=t.pin_address,a=t.pin_link,r=t.pin_button_text,l=t.pin_lat,h=t.pin_lng,d=t.pin_thumbnail;t.categories,t.location;""!=m&&(n=s),"list"!=g&&(SWIFT.mapDirectory.addMarkerDir(p,i,e,n,a,o,r,d,l,h),1<u?p.fitBounds(b):(p.setZoom(parseInt(f,10)),p.setCenter(new google.maps.LatLng(l,h))))})):jQuery(n).hide(),jQuery(".directory-results").show()})}},SWIFT.crowdfunding={init:function(){jQuery("#back-this-project").find(".edd_price_options").length<=0&&jQuery("#back-this-project > h2").css("display","none"),jQuery("#back-this-project").hasClass("project-donate-only")&&(jQuery(".edd_price_options").find("li").first().addClass("atcf-selected"),jQuery(".edd_price_options").find("li").first().find('input[type="radio"]').prop("checked",!0)),jQuery(".atcf-price-option").on("click",function(){var t=jQuery(this),e=t.data("price").substr(0,t.data("price").indexOf("-"));if(t.hasClass("inactive"))return!1;e&&jQuery("#atcf_custom_price").val().length<=0&&jQuery("#atcf_custom_price").val(e),jQuery(".atcf-price-option").find('input[type="radio"]').prop("checked",!1),jQuery(".atcf-price-option").removeClass("atcf-selected"),t.find('input[type="radio"]').prop("checked",!0),t.addClass("atcf-selected")});var t=jQuery(".campaign-items:not(.carousel-items)");t.imagesLoaded(function(){t.equalHeights()})}},SWIFT.reloadFunctions={init:function(){jQuery("img[title]").each(function(){jQuery(this).removeAttr("title")}),_||jQuery("embed").show(),jQuery(".animate-top").on("click",function(t){t.preventDefault(),jQuery("body,html").animate({scrollTop:0},800,"linear")})},load:function(){D||(jQuery(".tooltip").each(function(){jQuery(this).css("marginLeft","-"+Math.round(jQuery(this).outerWidth(!0)/2)+"px")}),jQuery(".comment-avatar").hover(function(){jQuery(this).find(".tooltip").stop().animate({bottom:"44px",opacity:1},500,"easeInOutExpo")},function(){jQuery(this).find(".tooltip").stop().animate({bottom:"25px",opacity:0},400,"easeInOutExpo")}),jQuery(".grid-image").hover(function(){jQuery(this).find(".tooltip").stop().animate({bottom:"85px",opacity:1},500,"easeInOutExpo")},function(){jQuery(this).find(".tooltip").stop().animate({bottom:"65px",opacity:0},400,"easeInOutExpo")}))}},jQuery(window)),c=jQuery("body"),e=jQuery("#sf-included"),i=jQuery("#sf-option-params"),P=SWIFT.page.getViewportHeight(),Q=navigator.userAgent.toLowerCase(),D=Q.match(/(iphone|ipod|android|iemobile)/),y=Q.match(/(iphone|ipod|ipad|android|iemobile)/),_=Q.match(/(iphone|ipod|ipad)/),O=Q.match(/(android)/),N=Q.match(/(iemobile)/),W=-1!=navigator.userAgent.indexOf("Safari")||-1==navigator.userAgent.indexOf("Chrome"),o=SWIFT.page.checkIE(),d=!!c.hasClass("rtl"),F=!y,B=!!i.data("slider-autoplay"),z=!!i.data("slider-loop"),R=i.data("slider-slidespeed"),H=i.data("slider-animspeed"),G="arrows"===i.data("lightbox-nav"),Y=!!i.data("lightbox-thumbs"),X="dark"===i.data("lightbox-skin")?"metro-black":"metro-white",U=!!i.data("lightbox-sharing"),q=!(!jQuery("#sf-included").hasClass("has-productzoom")||c.hasClass("mobile-browser")),V="lens"===i.data("product-zoom-type")?"lens":"inner",K=i.data("template-directory"),Z=i.data("stylesheet-directory"),J=i.data("permalink"),$=jQuery(document).scrollTop();SWIFT.isScrolling=!1;var Q=function(){SWIFT.page.init(),0<jQuery(".sf-super-search").length&&SWIFT.superSearch.init(),0<jQuery("#header-section").length&&SWIFT.header.init(),SWIFT.nav.init(),(e.hasClass("has-products")||c.hasClass("woocommerce-cart")||c.hasClass("woocommerce-account")||c.hasClass("single-tribe_events"))&&SWIFT.woocommerce.init(),SWIFT.woocommerce.cartWishlist(),e.hasClass("has-portfolio")&&SWIFT.portfolio.init(),e.hasClass("has-portfolio-showcase")&&SWIFT.portfolio.portfolioShowcaseInit(),0<jQuery(".spb_partner_grid_element").length&&SWIFT.sponsor.init(),e.hasClass("has-blog")&&SWIFT.blog.init(),e.hasClass("has-infscroll")&&SWIFT.blog.infiniteScroll(),e.hasClass("has-gallery")&&SWIFT.gallery.init(),e.hasClass("has-galleries")&&SWIFT.galleries.init(),SWIFT.widgets.init(),e.hasClass("has-team")&&SWIFT.teamMembers.init(),e.hasClass("has-carousel")&&SWIFT.carouselWidgets.init(),e.hasClass("has-parallax")&&SWIFT.parallax.init(),e.hasClass("has-ml-parallax")&&SWIFT.mlparallax.init(),SWIFT.crowdfunding.init(),SWIFT.reloadFunctions.init()},tt=function(){SWIFT.flexSlider.init(),e.hasClass("has-parallax")&&SWIFT.parallax.load(),(e.hasClass("has-products")||c.hasClass("woocommerce-cart")||c.hasClass("woocommerce-account"))&&SWIFT.woocommerce.load(),SWIFT.page.load(),c.hasClass("page-transitions")&&SWIFT.page.fadePageIn(),e.hasClass("has-chart")&&SWIFT.widgets.charts(),SWIFT.widgets.tabs(),e.hasClass("has-progress-bar")&&SWIFT.widgets.initSkillBars(),e.hasClass("has-map")&&(SWIFT.map.init(),SWIFT.mapDirectory.init("","",""),jQuery("#directory-search-button").on("click",function(){jQuery(".directory-search-form").submit()}),jQuery("ul.nav-tabs li a, .spb_accordion_section > .ui-accordion-header a, ul.nav-tabs li button, .spb_accordion_section > .ui-accordion-header button").click(function(t){t.preventDefault();t=jQuery(this).attr("href");return 0<jQuery(t).find(".spb_gmaps_widget").length&&(SWIFT.map.init(),SWIFT.mapDirectory.init("","","")),!1})),SWIFT.reloadFunctions.load(),SWIFT.woocommerce.variations()};jQuery(document).ready(Q),jQuery(window).load(tt)}(jQuery),window.onpageshow=function(t){t.persisted&&window.location.reload()},function(g){function y(t){return isNaN(t)?0:t}g.extend(g.expr[":"],{focusable:function(t){var e=t.nodeName.toLowerCase(),i=g.attr(t,"tabindex");return(/input|select|textarea|button|object/.test(e)?!t.disabled:("a"==e||"area"==e)&&t.href||!isNaN(i))&&!g(t)["area"==e?"parents":"closest"](":hidden").length}}),g(document).ready(function(){navigator.userAgent.toLowerCase().match(/(iphone|ipod|android|iemobile)/);var c=g("#sf-option-params").data("template-directory");g("#sf-option-params").data("stylesheet-directory"),g("#sf-option-params").data("home"),document.title,document.URL;window.history&&window.history.pushState&&(window.onpopstate=function(t){return t.state&&null!=t.state&&t.state.postid?n(t.state.reference,t.state.postid):g("body").removeClass("page-modal-open"),!1}),0<g("#logo-modal").length&&0<g(".sd-modal-header").length&&0<g("#logo").length&&(t=g("#logo > a").html(),g("#logo-modal").html(t),g("#logo-modal").click(function(t){return t.preventDefault(),window.location.href=g("#logo > a").prop("href"),!1})),g("body.remove-styles .fadeIn").each(function(){g(this).data("delay",0)});var t,i=g(document).scrollTop();function n(t,e){g("body").removeClass("page-modal-done").addClass("page-modal-loading"),i=g(document).scrollTop(),g(window).scrollTop(0),0<g("body").find(".sd-modal-content-"+e).length?(g("body").find(".sd-modal-content-"+e).fadeIn("fast",function(){g(window).scrollTop(0)}),g("body").removeClass("page-modal-loading").addClass("page-modal-done")):g.get(c+"/api/modal_content.php?id="+e,function(t){g("body").find("#modal-container > .container").append('<div class="sd-modal-content sd-modal-content-'+e+'" data-postid="'+e+'">'+t+"</div>"),SWIFT.page.injectsvgs(),g("body").find(".sd-modal-content-"+e).fadeIn("fast",function(){g(window).scrollTop(0)}),g("body").removeClass("page-modal-loading").addClass("page-modal-done")},"html").fail(function(){window.location.href=t}),g("body").removeClass("mobile-menu-open"),g("body").addClass("page-modal-open")}function e(){g("body").addClass("page-fading-in"),jQuery("#main-container").animate({opacity:1,paddingTop:"0"},0,"easeOutExpo",function(){g("body").removeClass("page-fading-in"),g("body").addClass("page-loaded")}),jQuery("#site-loading").animate({opacity:0},300,"easeInExpo",function(){jQuery(this).css("display","none")}),d(),g(window).resize(function(){d()}),jQuery(".carousel-items").each(function(){SWIFT.carouselWidgets.carouselMinHeight(jQuery("#"+jQuery(this).attr("id")))})}function d(){0<g("#main-container").length&&g("body").find(".swift-slider-outer").length<=0?0<g(".header-wrap").length&&"absolute"==g(".header-wrap").css("position")&&"none"!=g(".header-wrap").css("display")?g("#main-container").css("padding-top",g(".header-wrap").height()+"px"):0<g("#mobile-header").length&&"absolute"==g("#mobile-header").css("position")&&"none"!=g("#mobile-header").css("display")?g("#main-container").css("padding-top",g("#mobile-header").height()+"px"):g("#main-container").css("padding-top","0px"):g("#main-container").css("padding-top","0px")}0<g(".sf-menu-item-modal a, a.sf-menu-item-modal").length&&g(".sf-menu-item-modal a, a.sf-menu-item-modal").each(function(){g(this).prop("onclick","javascript: return false;"),g(this).off().on("click",function(t){t.preventDefault();var t=g(this).attr("href"),e=(g(this).find(".sd-modal-content").each(function(){g(this).hide()}),g(this).data("postid"));return""==g("#modal-container .container").html()?window.location.href=t:n(t,e),!1})}),0<g("#close-modal, .close-modal-link").length&&g("#close-modal, .close-modal-link").off().on("click",function(t){return t.preventDefault(),g("body").find(".sd-modal-content").hide(),g("body").find(".sd-modal-content iframe").each(function(){g(this).prop("src",g(this).prop("src").replace("&autoplay=1","&autoplay=0"))}),0<g("body").find("#container.force-close").length?window.history.back():(g("body").removeClass("page-modal-open"),g(document).scrollTop(i)),g("body").removeClass("page-modal-done").removeClass("page-modal-loading"),!1}),0<g("img.inject-me").length?(t=document.querySelectorAll("img.inject-me"),SVGInjector(t,{},function(t){e()})):e(),g("table.tablepress").each(function(){var i=Array();g(this).find("th").each(function(){i.push(g(this).html())}),0<i.length&&g(this).find("tr").each(function(){g(this).find("td").each(function(t,e){g(this).prepend('<div class="cell-header hidden-lg hidden-md hidden-sm">'+i[t]+"</div>")})})}),0<g("body:not(.mh-sticky) #mobile-menu-wrap.menu-type-dropdown").length&&g("#mobile-menu-wrap a").each(function(){g(this).click(function(){var t;0<jQuery("body.mh-dropdown").length&&0<jQuery("body:not(.mh-sticky) #mobile-menu-wrap.menu-type-dropdown").length&&(t=jQuery("#mobile-menu-wrap").height(),jQuery("#mobile-header").css("margin-bottom",t+"px"),jQuery("#mobile-menu-wrap").css("min-height",t+"px"))})}),0<g("form a.search-icon-position").length&&g("form a.search-icon-position").each(function(){g(this).click(function(t){return t.preventDefault(),g(this).closest("form").submit(),!1})}),t=window.navigator.userAgent,(0<(r=t.indexOf("MSIE "))?parseInt(t.substring(r+5,t.indexOf(".",r)),10):0<t.indexOf("Trident/")?(r=t.indexOf("rv:"),parseInt(t.substring(r+3,t.indexOf(".",r)),10)):0<(r=t.indexOf("Edge/"))&&parseInt(t.substring(r+5,t.indexOf(".",r)),10))&&g("body").hasClass("has-parallax")&&(window.addEventListener&&window.addEventListener("DOMMouseScroll",u,!1),window.onmousewheel=document.onmousewheel=u);var s=1e3,o=300;function u(t){t.wheelDelta?delta=t.wheelDelta/120:t.detail&&(delta=-t.detail/3),g("html, body").stop().animate({scrollTop:g(window).scrollTop()-o*delta},s),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function p(){var t,e;(0<g(".swift-slider-outer").length||0<g(".page-heading").length)&&0<g("#header").length&&((t=0)<g(".swift-slider-outer").length&&(t+=g(".swift-slider-outer").outerHeight()),0<g(".page-heading").length&&(t+=g(".page-heading").outerHeight()),0<g("body").hasClass("admin-bar")&&(t+=g("#wpadminbar:visible").outerHeight()),e=g(window).scrollTop(),g("#header-section").hasClass("header-vert")?t<=e+40?g(".header-wrap").hasClass("below-header")||g(".header-wrap").addClass("below-header"):g(".header-wrap").hasClass("below-header")&&g(".header-wrap").removeClass("below-header"):t<=e+40?g("#header").hasClass("below-header")||g("#header").addClass("below-header"):g("#header").hasClass("below-header")&&g("#header").removeClass("below-header"))}g(document).keydown(function(t){switch(t.which){case 38:t.preventDefault(),g("html, body").stop().animate({scrollTop:g(window).scrollTop()-o},s);break;case 40:t.preventDefault(),g("html, body").stop().animate({scrollTop:g(window).scrollTop()+o},s)}}),jQuery.extend({isValidSelector:function(t){if("string"!=typeof t)return!1;try{g(t)}catch(t){return!1}return!0}}),0<jQuery('#container .sf-button a[href*="#"], #container .spb_text_column a[href*="#"], .swift-slider-outer a[href*="#"]').length&&jQuery('#container .sf-button a[href*="#"], #container .spb_text_column a[href*="#"], .swift-slider-outer a[href*="#"]').each(function(){g.isValidSelector(this.hash)&&"#"!=this.hash&&0<jQuery(this.hash).length?jQuery(this).on("click",function(t){return t.preventDefault(),jQuery("html, body").stop().animate({scrollTop:y(jQuery(this.hash).offset().top)-y(jQuery("#header-sticky-wrapper #header").height())-y(jQuery("#wpadminbar:visible").height())},500,"easeInOutExpo"),!1}):jQuery(this).on("click",function(t){return!0})}),(g("#header").hasClass("sticky-header")||g("#header-section").hasClass("header-vert"))&&(g(window).scroll(function(){p()}),p()),g(".blog-wrap a.load-more-btn, .search-form a, .blog-wrap .blog-item a, #breadcrumbs a, .spb_text_column .spb-asset-content a, .menu a, a.sf-button, button.sf-button, .mobile-menu-link").on("touchstart",function(t){g(this).addClass("tapped").addClass("hover")}),g(".blog-wrap a.load-more-btn, .search-form a, .blog-wrap .blog-item a, #breadcrumbs a, .spb_text_column .spb-asset-content a, .menu a, a.sf-button, button.sf-button, .mobile-menu-link").on("touchend",function(t){g(this).removeClass("tapped").removeClass("hover")}),0<g(".elementor-tab-content, .elementor-widget-text-editor .elementor-text-editor, .spb_text_column > .spb-asset-content, article .content-wrap, .image-edge-content").length&&($container=g(".elementor-tab-content, .elementor-widget-text-editor .elementor-text-editor, .spb_text_column > .spb-asset-content, article .content-wrap, .image-edge-content")).find("h1:not(:empty),h2:not(:empty),h3:not(:empty),h4:not(:empty),h5:not(:empty),h6:not(:empty),blockquote:not(:empty),p:not(:empty),ul:not(:empty),ol:not(:empty),li:not(:empty)").each(function(){0<g(this).prev().length?g(this).prev().is("h1:not(:empty)")?g(this).addClass("after-h1"):g(this).prev().is("h2:not(:empty)")?g(this).addClass("after-h2"):g(this).prev().is("h3:not(:empty)")?g(this).addClass("after-h3"):g(this).prev().is("h4:not(:empty)")?g(this).addClass("after-h4"):g(this).prev().is("h5:not(:empty)")?g(this).addClass("after-h5"):g(this).prev().is("h6:not(:empty)")?g(this).addClass("after-h6"):g(this).prev().is("blockquote:not(:empty)")?g(this).addClass("after-blockquote"):g(this).prev().is("p:not(:empty)")?g(this).addClass("after-p"):g(this).prev().is("ul:not(:empty)")?g(this).addClass("after-ul"):g(this).prev().is("ol:not(:empty)")?g(this).addClass("after-ol"):g(this).prev().is("li:not(:empty)")&&g(this).addClass("after-li"):g(this).addClass("first"),0<g(this).next().length?g(this).next().is("h1:not(:empty)")?g(this).addClass("before-h1"):g(this).next().is("h2:not(:empty)")?g(this).addClass("before-h2"):g(this).next().is("h3:not(:empty)")?g(this).addClass("before-h3"):g(this).next().is("h4:not(:empty)")?g(this).addClass("before-h4"):g(this).next().is("h5:not(:empty)")?g(this).addClass("before-h5"):g(this).next().is("h6:not(:empty)")?g(this).addClass("before-h6"):g(this).next().is("blockquote:not(:empty)")?g(this).addClass("before-blockquote"):g(this).next().is("p:not(:empty)")?g(this).addClass("before-p"):g(this).next().is("ul:not(:empty)")?g(this).addClass("before-ul"):g(this).next().is("ol:not(:empty)")?g(this).addClass("before-ol"):g(this).next().is("li:not(:empty)")&&g(this).addClass("before-li"):g(this).addClass("last")}),0<g(".spb-row-container.col-equal-height").length&&0<g(".spb-row-container.col-equal-height").find(".row").length&&767<g(window).width()&&($element=g(".spb-row-container.col-equal-height > .spb_content_element > .container > .row > .spb_box_content, .spb-row-container.col-equal-height > .spb_content_element > .container > .row > .spb_text_column, .spb-row-container.col-equal-height > .spb_content_element > .container > .row > .spb-column-container")).parent().imagesLoaded(function(){$element.parent().equalHeights()}),0<g("body.search .page-heading .results-count").length&&g("body.search .page-heading .results-count").html(g("body.search .blog-items").data("found-posts")),g(".blog-wrap .keyword-text").each(function(){g(this).html(g(this).parents(".blog-wrap").find(".search-form input").val())}),g(".blog-wrap .results-count").each(function(){g(this).html(g(this).parents(".blog-wrap").find(".blog-items").data("found-posts"))}),0<g("body.page-template-owners-manual").length&&($tableofcontents=g("#table-of-contents"),g("#main-container").imagesLoaded(function(){var e,i;g("#main-container > .container").find(".spb_text_column h2,.spb_text_column h3:not(.count-subject),.spb_text_column h4,.spb_text_column h5,.spb_text_column h6").each(function(){var t,e;"Table of Contents"!=g(this).text()&&((t="")==(e=g(this).prop("id"))&&(e=g(this).text().toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,""),g(this).prop("id",e)),0<=g(this)[0].outerHTML.indexOf("<h2")?t="h2":0<=g(this)[0].outerHTML.indexOf("<h3")&&(t="h3"),""!=t&&$tableofcontents.append("<p class='heading-"+t+"' data-offset='"+(Math.round(g(this).offset().top)-(g("#header").height()+70))+"'><a href='#"+e+"'>"+g(this).text()+"</a></p>"))}),$tableofcontents.append("<p class='back-to-top'><a class='sf-button small brand-fill' href='#main-container'><strong>Back to Top <i class='fa fa-chevron-up' aria-hidden='true'></i></strong></a></p>"),0<g("#table-of-contents-wrapper .sticky-wrapper").length&&(g("#table-of-contents-wrapper .sticky-wrapper").stick_in_parent({parent:"#main-container > .container > .row",spacer:!1,offset_top:g("#header").height()+50,inner_scrolling:0}),e=jQuery("body"),g("#table-of-contents-wrapper .sticky-wrapper a").click(function(t){t.preventDefault(),g(this),i="#"+g(this).prop("href").split("#")[1];t=0;return 0<jQuery("#wpadminbar:visible").length&&(t=jQuery("#wpadminbar").height()),e.hasClass("sticky-header-enabled")&&(t=0<jQuery(".sticky-header").outerHeight()?t+jQuery(".sticky-header").outerHeight():t+jQuery("#header-section").outerHeight()),SWIFT.isScrolling=!0,jQuery("html, body").stop().animate({scrollTop:y(jQuery(i).offset().top)-y(t)-25},1e3,"easeInOutExpo",function(){SWIFT.isScrolling=!1}),!1}),g(window).scroll(function(){g("#table-of-contents p, #in-elementor a").each(function(){var t=Math.round(g(this).data("offset"))+(g("#header").height()+70);g(window).scrollTop()>=t?g(this).hide():g(this).show()})}))})),_.mixin({isTrue:function(t){return void 0!==t&&(_.isString(t)?"true"===t.toLowerCase():_.isNumber(t)?0!==t:void 0)},isFalse:function(t){return!_.isTrue(t)}});var a,r=g(".spb_blog_widget .filter-wrap .filter-dropdown, .spb_algolia_widget .filter-wrap .filter-dropdown"),l=(r.each(function(){g(this).find('> .post-filter-tabs > li > a[data-term="uncategorized"]').parent().remove();var t=g(this).data("taxonomy-label"),e=g(this).find("> .post-filter-tabs li.selected a span.item-name").text();filter_name=t,g(this).parents(".blog-wrap").find(".results-summary").length<=0&&(filter_name="Show all"==e||""==e?t:e),g(this).parent().is("ul")?g(this).prepend('<li><a href="#" class="chosen-single" data-filtername="'+filter_name+'" title="Select '+t+'"><span>'+filter_name+"</span></a></li>"):g(this).prepend('<a href="#" class="chosen-single" data-filtername="'+filter_name+'" title="Select '+t+'"><span>'+filter_name+"</span></a>"),g(this).find("> .post-filter-tabs .selected").length<=0&&g(this).find("> .post-filter-tabs a.all").parent("li").addClass("selected").addClass("default")}),r.find("a.chosen-single").on("click",function(t){return t.preventDefault(),g(this).parent().hasClass("closed")?g(this).parent().removeClass("closed").addClass("open"):g(this).parent().hasClass("open")&&g(this).parent().removeClass("open").addClass("closed"),!1}),r.find(".post-filter-tabs > li > .toggle-accordion a, .post-filter-tabs > li > .toggle-accordion button").on("click",function(t){if(0<g(this).parent(".subfilter-dropdown").length)return t.preventDefault(),g(this).parent().hasClass("closed")?g(this).parent().removeClass("closed").addClass("open"):g(this).parent().hasClass("open")&&g(this).parent().removeClass("open").addClass("closed"),!1;g(this).parents(".blog-wrap").find(".results-summary").length<=0&&(g(this).hasClass("all")||g(this).hasClass("All")||""==g(this).data("term")?(g(this).parents(".filter-dropdown").find(".chosen-single").html(g(this).parents(".filter-dropdown").find(".chosen-single").data("filtername")),g(this).parents(".filter-dropdown").find(".chosen-single").removeClass("selected-dropdown")):(g(this).parents(".filter-dropdown").find(".chosen-single").html(g(this).prop("title")),g(this).parents(".filter-dropdown").find(".chosen-single").addClass("selected-dropdown"))),g(this).parents(".filter-wrap").hasClass("multiselect")||g(this).parent().removeClass("open").addClass("closed")}),g(document).click(function(t){g(t.target).parents(".filter-dropdown.open").length<=0&&g(".spb_blog_widget, .spb_algolia_widget").each(function(){g(this).hasClass("filter-display-sidebar")||g(this).find(".filter-dropdown").removeClass("open").addClass("closed")})}),g("#container a").focus(function(){(g(this).parents(".menu").length<=0||0==g(this).parent().hasClass("menu-item")&&0==g(this).parent().hasClass("parent"))&&g("#header-section .menu ul.sub-menu, #header-section .menu .mega-menu-sub").fadeOut(0),0==g(this).parent().hasClass("filter-dropdown")&&0==g(this).parent().parent().hasClass("post-filter-tabs")&&g(".spb_blog_widget, .spb_algolia_widget").each(function(){g(this).hasClass("filter-display-sidebar")||g(this).find(".filter-dropdown").removeClass("open").addClass("closed")})}),0<g('.spb_text_column iframe[src*="youtube.com"], .spb_text_column iframe[src*="vimeo.com"], .spb_video_widget iframe[src*="youtube.com"], .spb_video_widget iframe[src*="vimeo.com"]').length&&g('.spb_text_column iframe[src*="youtube.com"], .spb_text_column iframe[src*="vimeo.com"], .spb_video_widget iframe[src*="youtube.com"], .spb_video_widget iframe[src*="vimeo.com"]').each(function(){g(this).parents(".video-wrap").length<=0&&!g(this).parent().hasClass("video-sizing-wrap")&&g(this).wrap('<div class="video-sizing-wrap"></div>')}),new Bid(function(t){g(".meganavigation .sub-menu-meganav .menu-wrap").html(""),f(t)},0));0<g(".meganavigation .header-right").length&&0<g(".header-search-form .submit-search").length&&g(".header-search-form .submit-search").on("click",function(t){return t.preventDefault(),($form=g(this).closest("form.header-search-form")).submit(),!1});{function f(t){g(".meganav-wrap").css("top",g(".header-wrap").height()+"px");var e=t.parent("li.parent"),i=(e.addClass("show-submenu"),e.find("> .sub-menu").wrap("<p/>").parent().html());e.find("> p > .sub-menu").unwrap(),null==i||""==i?h():(g(".meganav-wrap .sub-menu-meganav > .menu-wrap").html('<div class="heading">'+t.text()+"</div>"+i+"<a href='#' class='close-meganav'>Close Meganavigation</a>"),g(".meganav-wrap .sub-menu-meganav > .menu-wrap").prop("id","post-id-"+t.data("postid")),g(".meganav-wrap .sub-menu-meganav > .menu-wrap").find("a,button,input,textarea,select").each(function(e){g(this).keyup(function(t){9===t.keyCode&&(e>=g(".meganav-wrap .sub-menu-meganav > .menu-wrap").find("a,button,input,textarea,select").length-1?0<g(".meganavigation .show-submenu").next("li").length?(g("a,button,input,textarea,select").removeClass("accessibility-focus"),g(".meganavigation .show-submenu").next("li").find("> a").addClass("accessibility-focus"),g(".meganavigation .show-submenu").next("li").find("> a").trigger("mouseenter")):g(".meganavigation .show-submenu > a").parents(".float-menu").next().find("a,button,input,textarea,select"):(g("a,button,input,textarea,select").removeClass("accessibility-focus"),g(this).addClass("accessibility-focus")))})}),g(".meganav-wrap .sub-menu-meganav > .menu-wrap").find("a.close-meganav").click(function(t){return t.preventDefault(),h(),!1}),g(".meganav-wrap").prop("id","meganav-postid-"+t.data("postid")),g(".meganav-wrap").removeClass("secondary-menu-items").removeClass("tertiary-menu-items"),0<g(".meganav-wrap .sub-menu .sub-menu").length?g(".meganav-wrap").addClass("tertiary-menu-items"):0<g(".meganav-wrap .sub-menu").length&&g(".meganav-wrap").addClass("secondary-menu-items"),g(".meganav-wrap .sub-menu-meganav > div:not(.menu-wrap)").hide(),g('.meganav-wrap .sub-menu-meganav > div:not(.menu-wrap)[data-menu="'+t.data("postid")+'"]').show(),g("body").addClass("show-meganav"),g(".accessibility-focus-menu").removeClass("accessibility-focus-menu"),g(".accessibility-focus").removeClass("accessibility-focus"),g(".meganav-wrap").fadeIn(0,function(){g(".sub-menu-meganav").height("auto"),g(".sub-menu-meganav").height(g(".sub-menu-meganav").height()),g(".meganav-wrap").addClass("show-meganav"),"none"!=g(".header-wrap").css("display")?g("#main-container").css("padding-top",g(".header-wrap").height()+"px"):g("#main-container").css("padding-top","0px")}))}function h(){l&&l.stop(),a&&clearTimeout(a),g(".show-submenu").each(function(){g(this).removeClass("show-submenu")}),g(".meganav-wrap").removeClass("show-meganav").css("display","none"),g(".show-submenu").removeClass("show-submenu"),g("body").removeClass("show-meganav"),g(".meganavigation .sub-menu-meganav .menu-wrap").html(""),"none"!=g(".header-wrap").css("display")?g("#main-container").css("padding-top",g(".header-wrap").height()+"px"):g("#main-container").css("padding-top","0px")}0<g(".meganavigation .menu > li.parent > .sub-menu").length&&(g(".meganavigation .menu > li.parent > a").on("blur",function(){g("a,button,input,textarea,select").removeClass("accessibility-focus"),g(".meganav-wrap.show-meganav .menu-wrap > .sub-menu > .menu-item:first-child > a").focus().addClass("accessibility-focus")}),g(".meganavigation .menu > li.parent > a").keyup(function(t){t.keyCode}),g("#header").mouseover(function(t){g(t.target).parents(".std-menu").length<=0&&g(t.target).parents(".meganav-wrap").length<=0&&g(t.target).is(".meganav-wrap").length<=0&&h()}),g(".swift-slider-outer a, #main-container, #logo a").each(function(){g(this).mouseover(function(t){h()}),g(this).mouseleave(function(t){l&&l.stop(),a&&clearTimeout(a)})}),g(".meganavigation .menu > li.parent > .sub-menu").each(function(){var t=g(this).parents(".menu");t.find(" > li > a").each(function(){g(this).parent().hasClass("sub-menu-click-reveal")?g(this).unbind("click").off().on("click",function(t){return t.preventDefault(),g(this).parent().hasClass("show-submenu")?(jQuery(this).parent().removeClass("show-submenu"),l&&l.stop(),a&&clearTimeout(a)):(jQuery(this).parent().addClass("show-submenu"),g(".show-submenu").each(function(){g(this).removeClass("show-submenu")})),!1}):(g(this).mouseover(function(){g(".show-submenu").each(function(){g(this).removeClass("show-submenu")})}),g(this).mouseleave(function(){l&&l.stop(),a&&clearTimeout(a)}))}),t.find("> li.parent > a").each(function(){g(this).parent().hasClass("sub-menu-click-reveal")?g(this).unbind("click").off().on("click",function(t){var e;return t.preventDefault(),g(this).parent().hasClass("show-submenu")?(jQuery(this).parent().removeClass("show-submenu"),l&&l.stop(),a&&clearTimeout(a)):(jQuery(this).parent().addClass("show-submenu"),e=g(this),l&&l.stop(),a&&clearTimeout(a),a=setTimeout(function(){l.bump(e)},0)),!1}):(g(this).mouseover(function(){var t=g(this);l&&l.stop(),a&&clearTimeout(a),a=setTimeout(function(){l.bump(t)},0)}),g(this).mouseleave(function(){l&&l.stop(),a&&clearTimeout(a)}))})}),g(".meganavigation .menu > li:not(.parent) > a").each(function(){g(this).parents(".menu").find("> li:not(.parent) > a").each(function(){g(this).mouseover(function(){var t=g(this);l&&l.stop(),a&&clearTimeout(a),a=setTimeout(function(){l.bump(t)},0)}),g(this).mouseleave(function(){l&&l.stop(),a&&clearTimeout(a)})})}))}function m(){var t=g("#main-container > .container").offset().top;g(".page-template-call-to-action .form-card").css("margin-top",-1*(t-100)+"px")}0<g("iframe.iframe-resize").length&&(g("iframe.iframe-resize").css("height",""),g("iframe.iframe-resize").removeAttr("height"),g("iframe.iframe-resize").removeAttr("type"),g("iframe.iframe-resize").iFrameResize({heightCalculationMethod:"max"})),0<g(".spb_gravityforms_widget").length&&g(".spb_gravityforms_widget").each(function(){0<g(this).find('.gform_body .gform_hidden input[value="download-url"]').length&&($url=g(this).data("download-url"),g(this).find('.gform_body .gform_hidden input[value="download-url"]').val($url))}),g("a,button,input,textarea,select").keyup(function(t){9===t.keyCode&&(g("a,button,input,textarea,select").removeClass("accessibility-focus"),g(this).addClass("accessibility-focus"))}),g("a,button,input,textarea,select").click(function(){g("a,button,input,textarea,select").removeClass("accessibility-focus")}),g("a,button,input,textarea,select").mousedown(function(){g("a,button,input,textarea,select").removeClass("accessibility-focus")}),g("a,button,input,textarea,select").removeClass("accessibility-focus"),0<g(".spb_highcharts .highcharts-container").length&&g(".spb_highcharts .highcharts-container").each(function(){try{var t,e=g(this).find(".data").html(),c=g.parseJSON(e.replace(/&amp;/g,"&")),i=g(this).data("charttype").replace(/&quot;/g,'"'),n=g(this).data("valuedisplay").replace(/&quot;/g,'"'),s=g(this).data("xcategories").slice(1,-1).replace(/&quot;/g,'"').replace(/', '/g,"','").split("','"),d=g(this).data("displayx").replace(/&quot;/g,'"'),o=g(this).data("displayy").replace(/&quot;/g,'"'),a=g(this).data("displaylegend").replace(/&quot;/g,'"'),r=g(this).data("displaytooltips").replace(/&quot;/g,'"'),l="",h="",u=("percentage"==n?l="%":"currency"==n&&(h="$"),(s=s||null).length);""!=i&&(t={chart:{plotBackgroundColor:null,plotBorderWidth:null,plotShadow:!1,height:85*u+130,type:i,style:!1},series:c,credits:{enabled:!1}},""!=g(this).data("title")?t.title={text:'<h4 class="highcharts-title">'+g(this).data("title")+"</h4>",useHTML:!0,styledMode:!0}:t.title=!1,""!=g(this).data("subtitle")?t.subtitle={text:'<h6 class="highcharts-subtitle">'+g(this).data("subtitle")+"</h6>",useHTML:!0,styledMode:!0}:t.subtitle=!1,t.tooltip="yes"==r?{enabled:!0,backgroundColor:"rgba(255,255,255,1)",borderColor:"rgba(255,255,255,1)",borderWidth:0,useHTML:!0,shared:!0,formatter:function(){var t=this.points,e="";if(t)for(var i,n=t.length,s=0;s<n;s+=1)i=t[s].y,e='<span class="chart-tooltip chart-color-'+s+'" style="color:'+t[s].series.color+';">'+t[s].series.name+": "+h+i+l+"</span><br/>"+e;return e}}:{enabled:!1},"yes"==d?(t.xAxis={categories:s,type:"category",useHTML:!0,tickLength:0,title:{text:g(this).data("xlabel")},labels:{useHTML:!0}},"yes"==o&&(t.xAxis.minorTickLength=0,t.xAxis.lineWidth=0,t.xAxis.minorGridLineWidth=0,t.xAxis.lineColor="transparent")):t.xAxis={enabled:!1,tickLength:0,minorTickLength:0,lineWidth:0,minorGridLineWidth:0,lineColor:"transparent",title:{enabled:!1},labels:{enabled:!1}},t.yAxis="yes"==o?{title:{text:g(this).data("ylabel")},useHTML:!0,labels:{useHTML:!0,formatter:function(){var t=this.value;return t=1e6<t?t/1e6+"M":1e3<t?t/1e3+"k":this.value+l}}}:{enabled:!1,title:{enabled:!1},labels:{enabled:!1},gridLineColor:"transparent",tickLength:0,minorTickLength:0,lineWidth:0,minorGridLineWidth:0,lineColor:"transparent"},t.legend="yes"==a?{reversed:!0,useHTML:!0}:{enabled:!1},"stacked"==i?(t.chart.type="bar",t.plotOptions={bar:{stacking:"normal",pointWidth:40,dataLabels:{enabled:!1}}},"yes"==o&&(t.yAxis.stackLabels={enabled:!1,useHTML:!0},"percentage"==n&&(t.yAxis.min=0,t.yAxis.max=100)),"no"==r&&(t.plotOptions.bar.dataLabels={enabled:!0,useHTML:!0,format:'<span class="data-label-item">'+h+"{point.y}"+l+"</span>"})):"bar"==i?(t.plotOptions={bar:{point:{events:{click:function(){return!1},legendItemClick:function(){return!1}}}},series:{events:{legendItemClick:function(){return!1}}}},t.legend.reversed=!1,t.tooltip.formatter=function(){var t=this.points,e="";if(t.length)for(var i,n=t.length,s=0;s<n;s+=1)i=t[s].y,e=e+'<span class="chart-tooltip chart-color-'+s+'" style="color:'+t[s].series.color+';">'+t[s].series.name+": "+h+i+l+"</span><br/>";return e},"no"==r&&(t.plotOptions={bar:{dataLabels:{enabled:!0,useHTML:!0,format:'<span class="data-label-item">'+h+"{point.y}"+l+"</span>"}}})):"column"==i?(t.plotOptions={column:{point:{events:{click:function(){return!1},legendItemClick:function(){return!1}}}},series:{events:{legendItemClick:function(){return!1}}}},t.legend.reversed=!1,t.tooltip.formatter=function(){var t=this.points,e="";if(t.length)for(var i,n=t.length,s=0;s<n;s+=1)i=t[s].y,e=e+'<span class="chart-tooltip chart-color-'+s+'" style="color:'+t[s].series.color+';">'+t[s].series.name+": "+h+i+l+"</span><br/>";return e},"no"==r&&(t.plotOptions={column:{dataLabels:{enabled:!0,useHTML:!0,format:'<span class="data-label-item">'+h+"{point.y}"+l+"</span>"}}})):"pie"==i?(t.plotOptions={pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!1},showInLegend:!0},series:{events:{legendItemClick:function(){return!1}}}},"yes"==a&&(t.legend.reversed=!1),"yes"==r?t.tooltip.formatter=function(){return'<span class="chart-tooltip" style="color:'+this.color+';">'+this.point.name+": <strong>"+h+this.point.y+l+"</strong></span>"}:"no"==r&&("yes"==a?t.plotOptions.pie={allowPointSelect:!0,cursor:"pointer",showInLegend:!0,dataLabels:{enabled:!0,format:'<span class="data-label-item">'+h+"{point.percentage:.1f}"+l+"</span>",useHTML:!0,filter:{property:"percentage",operator:">",value:4}}}:"no"==a&&(t.plotOptions.pie={allowPointSelect:!0,cursor:"pointer",showInLegend:!0,dataLabels:{enabled:!0,format:'<span class="data-label-item">{point.name}: '+h+"{point.percentage:.1f}"+l+"</span>",useHTML:!0,filter:{property:"percentage",operator:">",value:4}}}))):"solidgauge"==i&&(t.chart={type:"solidgauge",height:"100%"},t.title=!1,t.subtitle=!1,t.tooltip=!1,t.pane={startAngle:0,endAngle:360,background:[{outerRadius:"112%",innerRadius:"80%",backgroundColor:Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(.3).get(),borderWidth:0}]},t.yAxis={min:0,max:100,lineWidth:0,tickPositions:[]},t.plotOptions={solidgauge:{dataLabels:{enabled:!1},linecap:"square",stickyTracking:!1,rounded:!1}},t.series=[{data:[{color:Highcharts.getOptions().colors[0],radius:"112%",innerRadius:"80%",y:parseInt(e)}]}],t.xAxis=!1,t.legend=!1),Highcharts.chart(g(this).prop("id"),t),"solidgauge"==i&&g(this).append("<div class='inner-stat'>"+h+parseInt(e)+l+"</div>"))}catch(t){console.log(t)}}),0<g(".page-template-call-to-action .form-card").length&&(m(),g(window).resize(function(){m()})),g("aside.sidebar .mobile-sidebar-toggle button").click(function(t){return t.preventDefault(),($sidebar=g(this).parents("aside.sidebar")).hasClass("open")?($sidebar.find(".sidebar-content").slideUp("fast",function(){$sidebar.removeClass("open")}),g(this).attr("aria-expanded","false")):($sidebar.find(".sidebar-content").slideDown("fast",function(){$sidebar.addClass("open")}),g(this).attr("aria-expanded","true")),!1})})}(jQuery);