/*! For license information please see vendors.js.LICENSE.txt */ (self.webpackJsonp=self.webpackJsonp||[]).push([[0],{"+5fS":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=48)}({35:function(e,t){e.exports=n("Kkar")},36:function(e,t){e.exports=n("Jw0b")},48:function(e,t,n){"use strict";n.r(t),n.d(t,"convertPropsToString",(function(){return s})),n.d(t,"formatColor",(function(){return l}));var r=n(35),i=n.n(r),o=n(36),a=n.n(o),s=function(e){var t=e.vizProps,n=void 0===t?{}:t,r=e.propNames,o={};return(void 0===r?[]:r).forEach((function(e){var t=n[e];Array.isArray(t)||i()(t)?o[e]=JSON.stringify(t):t&&"string"==typeof t&&a.a.warn("The option type 'string' for '".concat(e,"' has been deprecated."))})),o},l=function(e){return e?e.replace("0x","#"):""}}})},"+63T":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}({12:function(e,t){e.exports=n("whQx")},13:function(e,t){e.exports=n("v5gZ")},3:function(e,t){e.exports=n("nsO7")},6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inferDataTypeFromData=t.drawSample=t.inferDataTypeFromSample=t.getDataTypeForMeta=t.canInferTypeFromMeta=t.getDataTypeForPoint=t.isString=t.isTime=t.isNumber=void 0;var r=n(13),i=n(3),o=n(12);function a(e){return null!==e&&!i.isBoolean(e)&&""!==e&&i.isFinite(+e)&&i.isNumber(+e)}function s(e){if(!e)return!1;var t=["YYYY-MM-DD",r.default.ISO_8601,"YYYY-MM-DDTHH:mm","YYYY-MM-DDTHH:mm:ss.SSS","YYYY-MM-DDTHH:mm:ss","YYYY-MM-DD HH:MM","YYYY-MM-DD HH:MM:SS","YYYY-MM-DD HH:MM:SS.SSS"];return"string"==typeof e?r.default(e,t,!0).isValid():r.default(e).isValid()}function l(e){return"string"==typeof e}t.isNumber=a,t.isTime=s,t.isString=l;t.getDataTypeForPoint=function(e,n){return t.canInferTypeFromMeta(n)?t.getDataTypeForMeta(n):c(e)};var c=i.memoize((function(e){return Array.isArray(e)?e.length>1&&"##__SPARKLINE__##"===e[0]?"sparkline":"array":i.isObject(e)?"unknown":a(e)?"number":o.isColor(e)?"color":s(e)?"time":l(e)?"string":null===e?"null":"unknown"}));t.canInferTypeFromMeta=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fieldName;return"_time"===t};t.getDataTypeForMeta=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fieldName;return"_time"===t?"time":"unknown"};t.inferDataTypeFromSample=function(e){var n={time:0,number:0,string:0,color:0,unknown:0,array:0,sparkline:0,null:0};e.forEach((function(e){n[t.getDataTypeForPoint(e)]+=1}));var r=-1,i="unknown";return Object.keys(n).forEach((function(e){n[e]>r&&(r=n[e],i=e)})),i};t.drawSample=function(e){return e.length>2?[e[0],e[Math.floor(e.length/2)],e[e.length-1]]:2===e.length?[e[0],e[1]]:e};t.inferDataTypeFromData=function(e){return t.inferDataTypeFromSample(t.drawSample(e))}}})},"+7q0":function(e,t,n){var r=n("eN33"),i=n("Pz+s"),o=n("zWgn"),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},"+8lf":function(e,t,n){"use strict";n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return d}));var r=new(function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}return e.prototype.emit=function(e){this.listeners.forEach((function(t){t(e)}))},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},e}());function i(e){l(e)||r.onUnexpectedError(e)}function o(e){l(e)||r.onUnexpectedExternalError(e)}function a(e){return e instanceof Error?{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack}:e}var s="Canceled";function l(e){return e instanceof Error&&e.name===s&&e.message===s}function c(){var e=new Error(s);return e.name=e.message,e}function u(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function d(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}},"+9sm":function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},i=n("yrnK"),o=n("5YWe"),a=n("vlYB"),s=n("5zEQ"),l=n("KtOV"),c=Object.prototype.toString;var u=function(e){function t(t,n,r,i){e.call(this),this.sourceObj=t,this.eventName=n,this.selector=r,this.options=i}return r(t,e),t.create=function(e,n,r,i){return a.isFunction(r)&&(i=r,r=void 0),new t(e,n,i,r)},t.setupSubscription=function(e,n,r,i,o){var a;if(function(e){return!!e&&"[object NodeList]"===c.call(e)}(e)||function(e){return!!e&&"[object HTMLCollection]"===c.call(e)}(e))for(var s=0,u=e.length;s\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+i.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+i.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:r.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},a={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}},"+Aie":function(e,t,n){var r;!function(i,o,a){if(i){for(var s,l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},c={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},h=1;h<20;++h)l[111+h]="f"+h;for(h=0;h<=9;++h)l[h+96]=h.toString();_.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},_.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},_.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},_.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},_.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(y(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},_.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},_.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},_.init=function(){var e=_(o);for(var t in e)"_"!==t.charAt(0)&&(_[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},_.init(),i.Mousetrap=_,e.exports&&(e.exports=_),void 0===(r=function(){return _}.call(t,n,t,e))||(e.exports=r)}function p(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function f(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return l[e.which]?l[e.which]:c[e.which]?c[e.which]:String.fromCharCode(e.which).toLowerCase()}function m(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function g(e,t,n){return n||(n=function(){if(!s)for(var e in s={},l)e>95&&e<112||l.hasOwnProperty(e)&&(s[l[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function b(e,t){var n,r,i,o=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),i=0;i1?h(e,s,n,r):(a=b(e,r),t._callbacks[a.key]=t._callbacks[a.key]||[],c(a.key,a.modifiers,{type:a.action},i,e,o),t._callbacks[a.key][i?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:i,level:o,combo:e}))}t._handleKey=function(e,t,n){var r,i=c(e,t,n),o={},d=0,h=!1;for(r=0;r2&&void 0!==arguments[2]?arguments[2]:{};return r.formatNumber(e,t,n)}}})},"+BFt":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"+Bjy":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=42)}({0:function(e,t){e.exports=n("ERkP")},14:function(e,t){e.exports=n("c1i6")},37:function(e,t){e.exports=n("4YJC")},42:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),c=n(44),u=s(n(45)),d=function(e,t){var n,i,o;switch(t.type){case"binding/remove":var a=t.payload;return c.omit(e,[a]);case"binding/reset":a=t.payload;return r(r({},e),((n={})[a]={error:null,data:null,meta:null,requestParams:null},n));case"binding/error":var s=t.payload,l=(a=s.binding,s.error);return r(r({},e),((i={})[a]={error:l,data:null,meta:null,requestParams:null},i));case"binding/update":var u=t.payload,d=(a=u.binding,u.data),h=u.meta,p=u.requestParams;return r(r({},e),((o={})[a]={error:null,data:d,meta:h,requestParams:p},o));default:return null!=e?e:{}}};t.default=function(e){var t=e.consumerId,n=e.bindings,s=e.dataSourceRegistry,h=e.onUpdate,p=u.default({consumerId:t,bindings:n,dataSourceRegistry:s}),f=l.useRef({}),m=l.useRef({}),g=a(l.useReducer(d,{}),2),b=g[0],y=g[1],_=l.useCallback((function(e){return function(t){y({type:"binding/error",payload:{binding:e,error:t}}),h&&h({binding:e,error:t})}}),[h]),v=l.useCallback((function(e){return function(t){var n=r({binding:e},t);y({type:"binding/update",payload:n}),h&&h(n)}}),[h]),M=l.useCallback((function(e){f.current[e]&&(f.current[e].cancel(),delete f.current[e],delete m.current[e],y({type:"binding/remove",payload:e}))}),[]),w=l.useCallback((function(e,t){f.current[e]&&f.current[e].updateRequestParams(t)}),[]),x=l.useCallback((function(){c.forEach(m.current,(function(e,t){y({type:"binding/reset",payload:t}),e.refresh()}))}),[]),A=l.useCallback((function(e){var n=e.bindingType,r=e.dataSourceId,a=e.initialRequestParams;return i(void 0,void 0,void 0,(function(){var e,i,l;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,(e=s.allocate({dataSourceId:r})).subscribe({consumerId:t,initialRequestParams:a})];case 1:return(i=o.sent()).subscribeToData({onData:v(n),onError:_(n)}),f.current[n]=i,m.current[n]=e,[3,3];case 2:return l=o.sent(),_(n)({level:"error",message:l.message}),[3,3];case 3:return[2]}}))}))}),[t,s,v,_]);return l.useEffect((function(){c.difference(Object.keys(f.current),n.map((function(e){return e.bindingType}))).forEach(M),c.forEach(n,(function(e){var n=e.bindingType,r=e.dataSource,i=e.dataSourceId,o=null==p?void 0:p.bindings.find((function(e){return e.bindingType===n}));o?c.isEqual(o.dataSource,r)&&o.dataSourceId===i&&t===(null==p?void 0:p.consumerId)||(y({type:"binding/reset",payload:n}),M(n),A(e)):A(e)}))}),[n,A,M,null==p?void 0:p.bindings,null==p?void 0:p.consumerId,t]),l.useEffect((function(){var e=f.current;return function(){c.forEach(e,(function(e){return e.cancel()}))}}),[]),{loading:!!b.primary&&(c.isNull(b.primary.error)&&c.isNull(b.primary.data)),dataSources:b,updateRequestParams:w,refresh:x,getSubscribers:function(){return f.current}}}},44:function(e,t){e.exports=n("nsO7")},45:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e){var t=r.useRef(null);return r.useEffect((function(){t.current=e})),t.current}}})},"+CUq":function(e,t,n){var r=n("7QzO");e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},"+GOF":function(e,t,n){"use strict";var r;function i(e){r=e}function o(){i("undefined"!=typeof window&&window.gettext||function(e){return e})}Object.defineProperty(t,"__esModule",{value:!0}),t.gettext=function(){return r.apply(void 0,arguments)},t._=function(){return r.apply(void 0,arguments)},t.setSharedTranslator=i,t.resetSharedTranslator=o,o()},"+GyV":function(e,t,n){"use strict";n.r(t),n.d(t,"SymbolEntry",(function(){return R})),n.d(t,"QuickOutlineAction",(function(){return B}));var r,i=n("vB0K"),o=n.n(i),a=n("RfYl"),s={insert:"head",singleton:!1},l=(o()(a.a,s),a.a.locals,n("Te3w"),n("4Zi8"),n("qDLJ")),c=n("yQJK"),u=n("wEWA"),d=n("+mCb"),h=n("1MHj"),p=n("uofm"),f=n("YNG1"),m=n("TPzw"),g=n("Rlkc"),b=n("y9gy"),y=n("n0FX"),_=n("PYg6"),v=n("36+3"),M=n("+8lf"),w=n("nPIm"),x=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),A=function(){function e(){}return e.prototype.remove=function(){this.parent&&delete this.parent.children[this.id]},e.findId=function(e,t){var n;"string"==typeof e?n=t.id+"/"+e:(n=t.id+"/"+e.name,void 0!==t.children[n]&&(n=t.id+"/"+e.name+"_"+e.range.startLineNumber+"_"+e.range.startColumn));for(var r=n,i=0;void 0!==t.children[r];i++)r=n+"_"+i;return r},e.empty=function(e){for(var t in e.children)return!1;return!0},e}(),k=function(e){function t(t,n,r){var i=e.call(this)||this;return i.id=t,i.parent=n,i.symbol=r,i.children=Object.create(null),i}return x(t,e),t}(A),L=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.id=t,o.parent=n,o.provider=r,o.providerIndex=i,o.children=Object.create(null),o}return x(t,e),t}(A),S=function(){function e(){this._n=1,this._val=0}return e.prototype.update=function(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this},e}(),T=function(e){function t(t){var n=e.call(this)||this;return n.textModel=t,n.id="root",n.parent=void 0,n._groups=Object.create(null),n.children=Object.create(null),n.id="root",n.parent=void 0,n}return x(t,e),t.create=function(e,n){var r=this,i=this._keys.for(e,!0),o=t._requests.get(i);if(!o){var a=new l.b;o={promiseCnt:0,source:a,promise:t._create(e,a.token),model:void 0},t._requests.set(i,o);var s=Date.now();o.promise.then((function(){var t=r._keys.for(e,!1),n=r._requestDurations.get(t);n||(n=new S,r._requestDurations.set(t,n)),n.update(Date.now()-s)}))}return o.model?Promise.resolve(o.model):(o.promiseCnt+=1,n.onCancellationRequested((function(){0==--o.promiseCnt&&(o.source.cancel(),t._requests.delete(i))})),new Promise((function(e,n){o.promise.then((function(t){o.model=t,e(t)}),(function(e){t._requests.delete(i),n(e)}))})))},t._create=function(e,n){var r=new l.b(n),i=new t(e),o=m.m.ordered(e),a=o.map((function(e,n){var o=A.findId("provider_"+n,i),a=new L(o,i,e,n);return Promise.resolve(e.provideDocumentSymbols(i.textModel,r.token)).then((function(e){for(var n=0,r=e||[];n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&0===n.indexOf(H)){for(var f=null,g=null,b=0,y=0;y0)):b++}g&&g.setGroupLabel(this.typeToLabel(f||"",b))}else i.length>0&&i[0].setGroupLabel(u.r(Y.e._symbols_,i.length));return i},t.prototype.typeToLabel=function(e,t){switch(e){case"module":return u.r(Y.e._modules_,t);case"class":return u.r(Y.e._class_,t);case"interface":return u.r(Y.e._interface_,t);case"method":return u.r(Y.e._method_,t);case"function":return u.r(Y.e._function_,t);case"property":return u.r(Y.e._property_,t);case"variable":return u.r(Y.e._variable_,t);case"var":return u.r(Y.e._variable2_,t);case"constructor":return u.r(Y.e._constructor_,t);case"call":return u.r(Y.e._call_,t)}return e},t.prototype.sortNormal=function(e,t,n){var r=t.getLabel().toLowerCase(),i=n.getLabel().toLowerCase(),o=r.localeCompare(i);if(0!==o)return o;var a=t.getRange(),s=n.getRange();return a.startLineNumber-s.startLineNumber},t.prototype.sortScoped=function(e,t,n){e=e.substr(H.length);var r=t.getType(),i=n.getType(),o=r.localeCompare(i);if(0!==o)return o;if(e){var a=t.getLabel().toLowerCase(),s=n.getLabel().toLowerCase(),l=a.localeCompare(s);if(0!==l)return l}var c=t.getRange(),u=n.getRange();return c.startLineNumber-u.startLineNumber},t}(N.a);Object(h.f)(B)},"+I+g":function(e,t,n){"use strict";var r=n("aMao"),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),l=r.define("RelativeDistinguishedName",(function(){this.setof(o)})),c=r.define("RDNSequence",(function(){this.seqof(l)})),u=r.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),d=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),h=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),p=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(u),this.key("validity").use(d),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())})),f=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));e.exports=f},"+IJY":function(e,t,n){"use strict";var r=n("j7v4"),i=n("rqOM"),o=n("KCcq"),a=n("KXMm"),s=n("4KLF"),l=n("yz1Q"),c=n("um5s"),u=n("Cu8J"),d=n("DkSr"),h=n("OfYF"),p=n("cF16"),f=h("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",b=p>=51||!i((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),y=d("concat"),_=function(e){if(!a(e))return!1;var t=e[f];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!b||!y},{concat:function(e){var t,n,r,i,o,a=s(this),d=u(a,0),h=0;for(t=-1,r=arguments.length;tm)throw TypeError(g);for(n=0;n=m)throw TypeError(g);c(d,h++,o)}return d.length=h,d}})},"+ILc":function(e,t,n){var r=n("xizS"),i=n("fWyh"),o=n("nvU9");e.exports=function(e,t,n){return t=i(t),void 0===n?(n=t,t=0):n=i(n),e=o(e),r(e,t,n)}},"+INv":function(e,t,n){"use strict";n.r(t),n.d(t,"provideSelectionRanges",(function(){return S}));var r,i=n("PYg6"),o=n("qDLJ"),a=n("1MHj"),s=n("CVC9"),l=n("uofm"),c=n("UKR2"),u=n("YNG1"),d=n("TPzw"),h=n("sjbp"),p=n("cCap"),f=n("wEWA"),m=function(){function e(){}return e.prototype.provideSelectionRanges=function(e,t){for(var n=[],r=0,i=t;r=0;s--){if(95===(d=i.charCodeAt(s))||45===d)break;if(Object(f.B)(d)&&Object(f.C)(u))break;u=d}for(s+=1;c0&&0===t.getLineFirstNonWhitespaceColumn(n.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(n.lineNumber)&&e.push({range:new l.a(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber))})},e}(),g=n("BnAk"),b=n("Od7+"),y=n("+8lf"),_=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},M=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=this.ranges.length)return this;var r=new e(n,this.ranges);return r.ranges[n].equalsRange(this.ranges[this.index])?r.mov(t):r},e}(),x=function(){function e(e){this._ignoreSelection=!1,this._editor=e}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){Object(p.f)(this._selectionListener)},e.prototype.run=function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getSelections(),r=this._editor.getModel();if(d.w.has(r)){var a=Promise.resolve(void 0);return this._state||(a=S(r,n.map((function(e){return e.getPosition()})),o.a.None).then((function(e){if(i.q(e)&&e.length===n.length&&t._editor.hasModel()&&i.g(t._editor.getSelections(),n,(function(e,t){return e.equalsSelection(t)}))){for(var r=function(t){e[t]=e[t].filter((function(e){return e.containsPosition(n[t].getStartPosition())&&e.containsPosition(n[t].getEndPosition())})),e[t].unshift(n[t])},o=0;of;f++)if((g=u?_(r(y=e[f])[0],y[1]):_(e[f]))&&g instanceof c)return g;return new c(!1)}h=p.call(e)}for(b=h.next;!(y=b.call(h)).done;)if("object"==typeof(g=l(h,_,y.value,u))&&g&&g instanceof c)return g;return new c(!1)}).stop=function(e){return new c(!0,e)}},"+R+l":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=78)}([function(e,t){e.exports=n("aWzz")},function(e,t){e.exports=n("ERkP")},function(e,t){e.exports=n("j/s1")},,,function(e,t){e.exports=n("pYJe")},function(e,t){e.exports=n("ksWZ")},function(e,t){e.exports=n("/cGw")},,,,,,,function(e,t){e.exports=n("frO/")},function(e,t){e.exports=n("mTxf")},,,,function(e,t){e.exports=n("//nZ")},function(e,t){e.exports=n("Rlp/")},function(e,t){e.exports=n("nsO7")},,function(e,t){e.exports=n("u6kW")},function(e,t){e.exports=n("jjGO")},function(e,t){e.exports=n("kDwu")},,function(e,t){e.exports=n("g1lY")},function(e,t){e.exports=n("5wzq")},function(e,t){e.exports=n("eq+T")},,,function(e,t){e.exports=n("y7gg")},,,function(e,t){e.exports=n("rov3")},function(e,t){e.exports=n("jLkM")},,,,function(e,t){e.exports=n("WTkA")},function(e,t){e.exports=n("6R5o")},,,function(e,t){e.exports=n("FllU")},function(e,t){e.exports=n("cdI6")},function(e,t){e.exports=n("4OXh")},function(e,t){e.exports=n("Cmkl")},,,,function(e,t){e.exports=n("icaJ")},function(e,t){e.exports=n("u6DZ")},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(15),i=n.n(r),o=n(14),a=n.n(o),s=n(23),l=n.n(s),c=n(24),u=n.n(c),d=n(29),h=n.n(d),p=n(25),f=n.n(p),m=n(35),g=n.n(m),b=n(1),y=n.n(b),_=n(2),v=n.n(_),M=n(0),w=n.n(M),x=n(19),A=n.n(x),k=n(36),L=n.n(k),S=n(28),T=n.n(S),O=n(7),C=n(20),D=n(51),E=n(5),P=n(32),j=n.n(P),z=n(40),N={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Y={GLOBAL:"global",ROW:"row"},I={RADIUS:"radius",AREA:"area"},H={SEQUENTIAL:"sequential",CATEGORICAL:"categorical"},R={ALL:"all",MAX:"max",NONE:"none"},B="punchcard-grayscale-filter-id-".concat(Math.floor(1e3*Math.random())),F=10,W=function(e){var t=e.values,n=e.start,r=e.end,i=Object(z.scaleBand)().domain(t).range([n,r]);return{scale:i,positionScale:function(e){return i(e)+i.bandwidth()/2}}},q=function(e){var t=[];return e.forEach((function(e){e&&t.push(Math.abs(e))})),Object(z.scaleLinear)().domain([Math.min.apply(Math,t),Math.max.apply(Math,t)]).range([0,1]).clamp(!0).unknown(0)},U=function(e){var t=e.bubbleRowScale,n=e.bubbleScale,r=e.category,i=e.colorCategoryMapping,o=e.colorMode,a=e.bubbleColor,s=e.minBubbleColorIntensity,l=e.size,c=e.x,u=e.y,d=e.isBubbleSizeDynamic,h=e.minBubbleSize,p=e.maxBubbleSize,f=e.minBand,m=e.maxBubbleRadius,g=e.minBubbleRadius,b={},y=d?f/2*h:g,_=d?f/2*p:m,v=Math.PI*Math.pow(y,2),M=Math.PI*Math.pow(_,2),w=q(l),x=function(e,t){return n===I.RADIUS?(_-y)*t(Math.abs(e))+y:Math.sqrt(((M-v)*t(Math.abs(e))+v)/Math.PI)},A=function(e,t){return o===H.CATEGORICAL?1:t(Math.abs(e))*(1-s)+s};return u.forEach((function(e,t){var n,s=c[t],u=l[t],d=r&&r[t]?r[t]:null;null!=s&&null!=e&&null!=u&&(b[e]||(b[e]={rowXValues:[],rowSizeValues:[],rowCategoryValues:[],rowColorValues:[],rowFillOpacityValues:[],rowSizeScale:w,rowRadiusValues:[]}),b[e].rowXValues.push(s),b[e].rowSizeValues.push(u),b[e].rowCategoryValues.push(d),b[e].rowColorValues.push((n=d,o===H.CATEGORICAL?i(n):a)),b[e].rowFillOpacityValues.push(A(l[t],b[e].rowSizeScale)),b[e].rowRadiusValues.push(x(l[t],b[e].rowSizeScale)))})),t===Y.ROW&&Object.entries(b).forEach((function(e){var t=j()(e,2),n=t[0],r=t[1],i=q(r.rowSizeValues);b[n].rowSizeScale=i,r.rowSizeValues.forEach((function(e,t){b[n].rowFillOpacityValues[t]=A(r.rowSizeValues[t],i),b[n].rowRadiusValues[t]=x(r.rowSizeValues[t],i)}))})),b},V=function(e){var t=e.selectedX,n=e.selectedY,r=e.selectedCategory;return null!==t||null!==n||null!==r},X=function(e){var t=e.label,n=e.widthInPX,r=void 0===n?77:n,i=e.axisLabelOverflowMode,o=void 0===i?"ellipsisEnd":i,a=Math.floor(r/6);if(t.length<=a)return t;if(a<"X...".length)return"";var s=Math.max(0,a-"...".length);return"ellipsisStart"===o?"...".concat(t.slice(-s)):"".concat(t.slice(0,s),"...")},G=n(44),K=n.n(G),$=n(41),Q=n.n($),J=n(52),Z=n.n(J),ee=n(45),te=n.n(ee),ne=n(21),re=[{january:!0,jan:!0,"jan.":!0},{february:!0,feb:!0,"feb.":!0},{march:!0,mar:!0,"mar.":!0},{april:!0,apr:!0,"apr.":!0},{may:!0},{june:!0,jun:!0,"jun.":!0},{july:!0,jul:!0,"jul.":!0},{august:!0,aug:!0,"aug.":!0},{september:!0,sep:!0,sept:!0,"sep.":!0,"sept.":!0},{october:!0,oct:!0,"oct.":!0},{november:!0,nov:!0,"nov.":!0},{december:!0,dec:!0,"dec.":!0}],ie=[{monday:!0,mon:!0,"mon.":!0},{tuesday:!0,tu:!0,"tu.":!0,tue:!0,"tue.":!0,tues:!0,"tues.":!0},{wednesday:!0,wed:!0,"wed.":!0},{thursday:!0,th:!0,"th.":!0,thur:!0,"thur.":!0,thurs:!0,"thurs.":!0},{friday:!0,fri:!0,"fri.":!0},{saturday:!0,sat:!0,"sat.":!0},{sunday:!0,sun:!0,"sun.":!0}],oe=function(e){var t=function(e){var t=[/^([0-1])?\d( )?(am|pm)$/i,/^([0-1])?\d:[0-5]\d( )?(am|pm)$/i,/^([0-2])?\d:([0-5]\d:)?[0-5]\d$/,/^([0-2])?\d:[0-5]\d:[0-5]\d( )?(am|pm)$/i],n=[];return Q()(e,(function(e){if(!Number.isNaN(Number(e)))return!0;var r=new Date(e);if(!Number.isNaN(Number(r)))return n.push({epoch:r,original:e}),!1;if(t.find((function(t){return t.test(e)}))){var i=/(am|pm)$/i,o=e;return e.match(i)&&((o=e.split(i).slice(0,-1))[0]="".concat(o[0].trim(),":00"),o=o.join(" ")),r=new Date("1970/01/01 ".concat(o)),n.push({epoch:r,original:e}),!1}return!0}))?[]:Z()(n,(function(e){return e.epoch})).map((function(e){return e.original}))}(e);if(t.length)return t;var n=function(e){var t=[];return Q()(e,(function(e){var n=e.toLowerCase(),r=K()(ie,n);return-1===r||(t[r]?t[r]=[t[r],e]:t[r]=e,!1)}))?[]:te()(t.filter(Boolean))}(e);if(n.length)return n;var r=function(e){var t=[];return Q()(e,(function(e){var n=e.toLowerCase(),r=K()(re,n);return-1===r||(t[r]?t[r]=[t[r],e]:t[r]=e,!1)}))?[]:te()(t.filter(Boolean))}(e);return r.length?r:function(e){return Object(ne.every)(e,(function(e){return Number.isFinite(Number(e))}))?e.sort((function(e,t){return Number(e)-Number(t)})):e.sort()}(e)},ae=Object(O.createThemeRegistry)("@splunk/react-visualizations","PunchcardAxis"),se=v.a.text.withConfig({displayName:"PunchcardAxis__AxisLabelText",componentId:"q5wc8x-0"})(["cursor:pointer;dominant-baseline:middle;fill:",";font-size:12px;text-anchor:",";opacity:",";transition:all 0.15s;"],(function(e){return ae.themeVariable("textColor")(e)}),(function(e){return e.orientation===N.HORIZONTAL?"middle":"start"}),(function(e){return e.muted?.15:1})),le=function(e){var t=e.labels,n=e.handleMouseEnter,r=e.handleMouseLeave,i=e.orientation,o=e.scale,a=e.selected,s=e.startPositionX,l=e.startPositionY;return y.a.createElement("g",null,t.map((function(e,t){var c=t*o.bandwidth()+o.bandwidth()/2,u=i===N.VERTICAL?s:s+c,d=i===N.VERTICAL?l+c:l,h=o.copy().paddingInner(.1).round(!0),p=X(i===N.VERTICAL?{label:e}:{label:e,widthInPX:h.bandwidth()});return y.a.createElement(se,{key:e,x:u,y:d,orientation:i,onMouseEnter:function(){return n(e)},onMouseLeave:r,muted:a&&e!==a},y.a.createElement("title",null,e),p)})))};le.propTypes={labels:w.a.arrayOf(w.a.oneOfType([w.a.string,w.a.number])).isRequired,handleMouseEnter:w.a.func,handleMouseLeave:w.a.func,orientation:w.a.oneOf(Object.values(N)),scale:w.a.func.isRequired,selected:w.a.oneOfType([w.a.string,w.a.number]),startPositionX:w.a.number,startPositionY:w.a.number},le.defaultProps={labelRotation:!1,handleMouseEnter:function(){},handleMouseLeave:function(){},orientation:N.VERTICAL,selected:null,startPositionX:0,startPositionY:0},ae.addDefaultTheme("enterprise",{textColor:"#505158;"}),ae.addTheme("enterpriseDark",{textColor:"#ACACAD"}),ae.addTheme("scp",{textColor:"#ACACAD"});var ce=ae.toThemes(),ue=le,de=n(6),he=n.n(de),pe=n(46),fe=n(27),me=Object(O.createThemeRegistry)("@splunk/react-visualizations","PunchcardBubble"),ge=v.a.circle.withConfig({displayName:"PunchcardBubble__BubbleCircle",componentId:"sc-1f1ql7d-0"})(["fill:",";fill-opacity:1;opacity:",";stroke:",";"],(function(e){return e.outline?me.themeVariable("bubbleTextColor")(e):e.color}),(function(e){return e.hover?0:e.fillOpacity}),(function(e){return e.outline?e.color:"none"})),be=v()(ge).withConfig({displayName:"PunchcardBubble__PulsateBubble",componentId:"sc-1f1ql7d-1"})(["animation:"," 2.4s linear 0.4s infinite;"],(function(e){return t=e.r,Object(_.keyframes)(["41%{opacity:0;r:",";}100%{opacity:0;r:",";}"],t+5,t+5);var t})),ye=v.a.g.withConfig({displayName:"PunchcardBubble__BubbleGroup",componentId:"sc-1f1ql7d-2"})(["cursor:pointer;opacity:",";filter:",";transition:opacity 0.15s;"],(function(e){return e.muted?.15:1}),(function(e){return e.muted?"url(#".concat(B,")"):""})),_e=v.a.text.withConfig({displayName:"PunchcardBubble__BubbleLabelText",componentId:"sc-1f1ql7d-3"})(["dominant-baseline:middle;opacity:",";fill:","};font-size:",";font-weight:",";text-anchor:middle;transition:all 0.15s;"],(function(e){return e.displayLabel?1:0}),(function(e){return e.hover||e.outline?me.themeVariable("bubbleAltTextColor")(e):me.themeVariable("bubbleTextColor")(e)}),(function(e){return e.hover?"12px":"10px"}),(function(e){return e.hover?500:"normal"})),ve=function(e){var t=e.showBubbleLabel,n=e.color,r=e.cx,i=e.cy,o=e.fillOpacity,a=e.handleMouseEnter,s=e.handleMouseLeave,l=e.hover,c=e.muted,u=e.pulsate,d=e.value,h=e.r,p=d<0,f=u&&!c&&!l,m=l||t&&h>=13,g=d<=99499999999999?Object(pe.formatNumber)(d,0,{useTrendUnits:!0}):"99T+";return l&&(g=Object(pe.formatNumber)(d,2)),y.a.createElement(ye,{muted:c,onMouseEnter:a,onMouseLeave:s},f&&y.a.createElement(be,{cx:r,cy:i,r:h,color:n,outline:!0}),y.a.createElement(ge,{cx:r,cy:i,r:h,color:n,hover:l,fillOpacity:o,outline:p}),y.a.createElement(_e,{x:r,y:i,hover:l,outline:p,displayLabel:m},g))};ve.propTypes={showBubbleLabel:w.a.bool,color:w.a.string,cx:w.a.number,cy:w.a.number,fillOpacity:w.a.number,handleMouseEnter:w.a.func,handleMouseLeave:w.a.func,hover:w.a.bool,muted:w.a.bool,pulsate:w.a.bool,value:w.a.number,r:w.a.number},ve.defaultProps={showBubbleLabel:!0,color:"#46D3BB",cx:0,cy:0,fillOpacity:1,handleMouseEnter:function(){},handleMouseLeave:function(){},hover:!1,muted:!1,pulsate:!1,r:1},me.addDefaultTheme("enterprise",{bubbleAltTextColor:fe.enterprise.textColor,bubbleTextColor:fe.enterprise.backgroundColor}),me.addTheme("enterpriseDark",{bubbleAltTextColor:fe.enterpriseDark.textColor,bubbleTextColor:fe.enterpriseDark.backgroundColor}),me.addTheme("scp",{bubbleAltTextColor:fe.scp.textColor,bubbleTextColor:fe.scp.backgroundColor});var Me=me.toThemes(),we=ve,xe=Object(O.createThemeRegistry)("@splunk/react-visualizations","PunchcardRow"),Ae=function(e){var t=e.showBubbleLabels,n=e.category,r=e.colors,i=e.handleMouseEnter,o=e.handleMouseLeave,a=e.maxSizeValue,s=e.opacities,l=e.radiusValues,c=e.selectedCategory,u=e.selectedX,d=e.selectedY,h=e.showMaxValuePulsation,p=e.size,f=e.x,m=e.xScale,g=e.yPosition,b=e.yValue;return y.a.createElement("g",null,f.map((function(e,f){var _=p[f],v=n[f],M=r[f],w=m(e),x=l[f],A=s[f],k=V({selectedX:u,selectedY:d,selectedCategory:c})&&function(e){var t=e.selectedX,n=e.selectedY,r=e.selectedCategory,i=e.xValue,o=e.yValue,a=e.categoryValue;return!(null!==t&&i!==t||null!==n&&o!==n||null!==r&&a!==r)}({selectedX:u,selectedY:d,selectedCategory:c,xValue:e,yValue:b,categoryValue:v}),L=V({selectedX:u,selectedY:d,selectedCategory:c})&&!k,S=t===R.ALL||t===R.MAX&&a===_;return y.a.createElement(we,{key:"".concat(e,"-").concat(b,"-").concat(_,"-").concat(v),showBubbleLabel:S,color:M,cx:w,cy:g,fillOpacity:A,handleMouseEnter:function(){i(e,b,v)},handleMouseLeave:o,hover:k,muted:L,pulsate:h&&_===a,value:_,r:x})})))};Ae.propTypes={showBubbleLabels:w.a.oneOf(Object.values(R)),category:w.a.arrayOf(w.a.string),colors:w.a.arrayOf(w.a.string),handleMouseEnter:w.a.func,handleMouseLeave:w.a.func,maxSizeValue:w.a.number,opacities:w.a.arrayOf(w.a.number),radiusValues:w.a.arrayOf(w.a.number),selectedCategory:w.a.oneOfType([w.a.string,w.a.number]),selectedX:w.a.oneOfType([w.a.string,w.a.number]),selectedY:w.a.oneOfType([w.a.string,w.a.number]),showMaxValuePulsation:w.a.bool,size:w.a.arrayOf(w.a.number),x:w.a.arrayOf(w.a.oneOfType([w.a.string,w.a.number])).isRequired,xScale:w.a.func,yPosition:w.a.number,yValue:w.a.oneOfType([w.a.string,w.a.number])},Ae.defaultProps={handleMouseEnter:function(){},handleMouseLeave:function(){},selectedCategory:null,selectedX:null,selectedY:null,showMaxValuePulsation:!0};var ke=Object(O.mergeThemes)(xe.toThemes(),Me),Le=Object(_.withTheme)(Ae),Se=Object(O.createThemeRegistry)("@splunk/react-visualizations","PunchcardChartArea"),Te=function(e){var t=e.showBubbleLabels,n=e.bubbleRowScale,r=e.bubbleScale,i=e.category,o=e.colorCategoryMapping,a=e.colorMode,s=e.bubbleColor,l=e.handleMouseEnter,c=e.handleMouseLeave,u=e.isBubbleSizeDynamic,d=e.minBubbleColorIntensity,h=e.minBand,p=e.minBubbleSize,f=e.maxBubbleSize,m=e.maxBubbleRadius,g=e.minBubbleRadius,b=e.showMaxValuePulsation,_=e.selectedCategory,v=e.selectedX,M=e.selectedY,w=e.size,x=e.x,A=e.xScale,k=e.y,L=e.yScale,S=U({bubbleRowScale:n,bubbleScale:r,category:i,colorCategoryMapping:o,colorMode:a,bubbleColor:s,minBubbleColorIntensity:d,size:w,x:x,y:k,isBubbleSizeDynamic:u,minBand:h,minBubbleSize:p,maxBubbleSize:f,maxBubbleRadius:m,minBubbleRadius:g});return y.a.createElement("g",null,Object.entries(S).map((function(e){var n=j()(e,2),r=n[0],i=n[1],o=i.rowXValues,a=i.rowSizeValues,s=i.rowCategoryValues,u=i.rowColorValues,d=i.rowFillOpacityValues,h=i.rowSizeScale,p=i.rowRadiusValues,f=L(r);return y.a.createElement(Le,{key:r,showBubbleLabels:t,category:s,colors:u,handleMouseEnter:l,handleMouseLeave:c,maxSizeValue:Math.max.apply(Math,he()(w)),opacities:d,radiusValues:p,selectedCategory:_,selectedX:v,selectedY:M,showMaxValuePulsation:b,sizeScale:h,size:a,x:o,xScale:A,yPosition:f,yValue:r})})))};Te.propTypes={showBubbleLabels:w.a.oneOf(Object.values(R)),bubbleRowScale:w.a.oneOf(Object.values(Y)),bubbleScale:w.a.oneOf(Object.values(I)),category:w.a.arrayOf(w.a.string),colorCategoryMapping:w.a.func,colorMode:w.a.oneOf(Object.values(H)),bubbleColor:w.a.string,handleMouseEnter:w.a.func,handleMouseLeave:w.a.func,isBubbleSizeDynamic:w.a.bool,minBubbleColorIntensity:w.a.number,minBand:w.a.number,minBubbleSize:w.a.number,maxBubbleSize:w.a.number,maxBubbleRadius:w.a.number,minBubbleRadius:w.a.number,showMaxValuePulsation:w.a.bool,selectedCategory:w.a.oneOfType([w.a.string,w.a.number]),selectedX:w.a.oneOfType([w.a.string,w.a.number]),selectedY:w.a.oneOfType([w.a.string,w.a.number]),size:w.a.arrayOf(w.a.number).isRequired,x:w.a.arrayOf(w.a.oneOfType([w.a.string,w.a.number])).isRequired,xScale:w.a.func,y:w.a.arrayOf(w.a.oneOfType([w.a.string,w.a.number])).isRequired,yScale:w.a.func},Te.defaultProps={showBubbleLabels:R.ALL,bubbleRowScale:Y.ROW,bubbleScale:I.AREA,colorMode:H.CATEGORICAL,bubbleColor:"#A870EF",handleMouseEnter:function(){},handleMouseLeave:function(){},isBubbleSizeDynamic:!0,minBubbleColorIntensity:.25,minBand:15,minBubbleSize:.01,maxBubbleSize:1,maxBubbleRadius:15,minBubbleRadius:1,showMaxValuePulsation:!0,selectedCategory:null,selectedX:null,selectedY:null};var Oe=Object(O.mergeThemes)(Se.toThemes(),ke),Ce=Object(_.withTheme)(Te),De=Object(O.createThemeRegistry)("@splunk/react-visualizations","PunchcardLegend"),Ee=v.a.g.withConfig({displayName:"PunchcardLegend__LegendGroup",componentId:"sc-20dwog-0"})(["cursor:pointer;opacity:",";transition:opacity 0.15s;"],(function(e){return e.muted?.15:1})),Pe=v.a.rect.withConfig({displayName:"PunchcardLegend__LegendIcon",componentId:"sc-20dwog-1"})(["width:","px;height:","px;rx:1px;ry:1px;"],5,10),je=v.a.text.withConfig({displayName:"PunchcardLegend__LegendText",componentId:"sc-20dwog-2"})(["dominant-baseline:middle;fill:",";font-size:12px;"],(function(e){return De.themeVariable("textColor")(e)})),ze=function(e){var t=e.category,n=e.colorCategoryMapping,r=e.handleMouseEnter,i=e.handleMouseLeave,o=e.selected,a=e.startPositionX,s=e.startPositionY,l=e.containerWidth-16-a,c=e.containerHeight-16;return y.a.createElement("svg",{x:a,y:s-7,width:l,height:c},y.a.createElement("g",null,t.map((function(e,t){var a=25*t;return y.a.createElement(Ee,{key:e,muted:o&&o!==e,onMouseEnter:function(){return r(e)},onMouseLeave:i},y.a.createElement(Pe,{x:0,y:a,fill:n(e)}),y.a.createElement(je,{x:10,y:a+5+2},y.a.createElement("title",null,e),e))}))))};ze.propTypes={category:w.a.arrayOf(w.a.string),colorCategoryMapping:w.a.func.isRequired,handleMouseEnter:w.a.func,handleMouseLeave:w.a.func,selected:w.a.string,startPositionX:w.a.number,startPositionY:w.a.number,containerWidth:w.a.number,containerHeight:w.a.number},ze.defaultProps={handleMouseEnter:function(){},handleMouseLeave:function(){},selected:null,startPositionX:0,startPositionY:0,containerWidth:100,containerHeight:100},De.addDefaultTheme("enterprise",{textColor:"#505158;"}),De.addTheme("enterpriseDark",{textColor:"#ACACAD"}),De.addTheme("scp",{textColor:"#ACACAD"});var Ne=De.toThemes(),Ye=ze,Ie=n(47),He=n.n(Ie),Re=Object(O.createThemeRegistry)("@splunk/react-visualizations","PunchcardGridLines"),Be=v.a.line.withConfig({displayName:"PunchcardGridLines__GridLine",componentId:"dtp780-0"})(["stroke:",";stroke-width:1px;"],(function(e){return Re.themeVariable("lineColor")(e)})),Fe=function(e){var t=e.xStartPosition,n=e.xEndPosition,r=e.yStartPosition,i=e.yEndPosition,o=e.xDelta,a=e.yDelta,s=He()(t,n+1,o),l=He()(r,i+1,a);return y.a.createElement("g",null,s.map((function(e){return y.a.createElement(Be,{key:"".concat(e,"x").concat(r),x1:e,y1:r,x2:e,y2:i})})),l.map((function(e){return y.a.createElement(Be,{key:"".concat(t,"x").concat(e),x1:t,y1:e,x2:n,y2:e})})))};Fe.propTypes={xStartPosition:w.a.number,xEndPosition:w.a.number,yStartPosition:w.a.number,yEndPosition:w.a.number,xDelta:w.a.number,yDelta:w.a.number},Fe.defaultProps={orientation:N.VERTICAL,xDelta:10,yDelta:10},Re.addDefaultTheme("enterprise",{lineColor:"#F5F5F5"}),Re.addTheme("enterpriseDark",{lineColor:"#32343d"}),Re.addTheme("scp",{lineColor:"#32343d"});var We=Re.toThemes(),qe=Fe;n.d(t,"themes",(function(){return Qe}));var Ue=Object(O.createThemeRegistry)("@splunk/react-visualizations","Punchcard"),Ve=v.a.div.withConfig({displayName:"Punchcard__Container",componentId:"sc-1vji7wk-0"})(["cursor:default;overflow:hidden;",";background-color:",";"],(function(e){return Object(C.toDimension)(A()(e,["width","height"]))}),(function(e){return e.backgroundColor})),Xe=v.a.div.withConfig({displayName:"Punchcard__PunchcardWrapper",componentId:"sc-1vji7wk-1"})(["display:flex;justify-content:center;flex-direction:row;width:100%;height:100%;background-color:",";"],(function(e){return e.backgroundColor})),Ge=v.a.div.withConfig({displayName:"Punchcard__PunchcardContainer",componentId:"sc-1vji7wk-2"})(["overflow:hidden;position:relative;",";"],(function(e){return Object(C.toDimension)(A()(e,["width","height"]))})),Ke=v.a.svg.withConfig({displayName:"Punchcard__PunchcardSVG",componentId:"sc-1vji7wk-3"})(["",";"],(function(e){return Object(C.toDimension)(A()(e,["width","height"]))})),$e=function(e){function t(e){var n;return i()(this,t),n=l()(this,u()(t).call(this,e)),g()(h()(n),"handleMouseLeave",(function(){n.setState({selectedX:null,selectedY:null,selectedCategory:null})})),g()(h()(n),"handleLegendHover",(function(e){n.setState({selectedX:null,selectedY:null,selectedCategory:e})})),g()(h()(n),"handleXAxisHover",(function(e){n.setState({selectedX:e,selectedY:null,selectedCategory:null})})),g()(h()(n),"handleYAxisHover",(function(e){n.setState({selectedX:null,selectedY:e,selectedCategory:null})})),g()(h()(n),"handleBubbleHover",(function(e,t,r){n.setState({selectedX:e,selectedY:t,selectedCategory:r})})),n.state={selectedX:null,selectedY:null,selectedCategory:null},n}return f()(t,e),a()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.backgroundColor,r=t.showBubbleLabels,i=t.bubbleRowScale,o=t.bubbleScale,a=t.category,s=t.colorMode,l=t.seriesColors,c=t.bubbleColor,u=t.minBubbleColorIntensity,d=t.height,h=t.showMaxValuePulsation,p=t.isBubbleSizeDynamic,f=t.minBubbleSize,m=t.maxBubbleSize,g=t.maxBubbleRadius,b=t.minBubbleRadius,_=t.useDefaultSort,v=t.showLegend,M=t.size,w=t.width,x=t.x,A=t.y,k=a?s:H.SEQUENTIAL,S=v&&k===H.CATEGORICAL,O=_?oe(L()(x)):L()(x),C=_?oe(L()(A)):L()(A),D=L()(a),E=function(e){var t=e.category,n=e.colorMode,r=e.seriesColors;return n===H.SEQUENTIAL?null:Object(z.scaleOrdinal)().domain(t).range(r).unknown(r[0])}({category:D,calculatedColorMode:k,seriesColors:l}),P=function(t){var s=t.width,l=t.height,d=function(e){var t=e.containerWidth,n=e.containerHeight,r=e.displayLegend,i=t-F,o=null;r&&(i=(o=t-135)-F);var a=n-15-F;return{xAxisStartY:a,yAxisStartX:10,chartAreaStartX:97,chartAreaStartY:10,chartAreaEndX:i,chartAreaEndY:a-F,legendStartX:o}}({containerWidth:s,containerHeight:l,displayLegend:S}),_=d.xAxisStartY,v=d.yAxisStartX,w=d.chartAreaStartX,L=d.chartAreaStartY,T=d.chartAreaEndX,P=d.chartAreaEndY,j=d.legendStartX,z=W({values:O,start:w,end:T}),Y=z.scale,I=z.positionScale,H=W({values:C,start:L,end:P}),R=H.scale,q=H.positionScale,U=Math.min(Y.bandwidth(),R.bandwidth());return y.a.createElement(Xe,{backgroundColor:n},y.a.createElement(Ge,{width:s,height:l},y.a.createElement(Ke,{width:s,height:l},y.a.createElement(qe,{xStartPosition:I(O[0]),xEndPosition:I(O[O.length-1]),yStartPosition:q(C[0]),yEndPosition:q(C[C.length-1]),xDelta:Y.bandwidth(),yDelta:R.bandwidth()}),y.a.createElement(ue,{labels:O,orientation:N.HORIZONTAL,handleMouseEnter:e.handleXAxisHover,handleMouseLeave:e.handleMouseLeave,startPositionX:w,startPositionY:_,scale:Y,selected:e.state.selectedX}),y.a.createElement(ue,{labels:C,orientation:N.VERTICAL,handleMouseEnter:e.handleYAxisHover,handleMouseLeave:e.handleMouseLeave,startPositionX:v,startPositionY:L,scale:R,selected:e.state.selectedY}),S&&y.a.createElement(Ye,{category:D,colorCategoryMapping:E,handleMouseEnter:e.handleLegendHover,handleMouseLeave:e.handleMouseLeave,selected:e.state.selectedCategory,startPositionX:j,startPositionY:q(C[0]),containerWidth:s,containerHeight:l}),y.a.createElement(Ce,{showBubbleLabels:r,bubbleRowScale:i,bubbleScale:o,category:a,colorCategoryMapping:E,colorMode:k,bubbleColor:c,minBubbleColorIntensity:u,handleMouseEnter:e.handleBubbleHover,handleMouseLeave:e.handleMouseLeave,isBubbleSizeDynamic:p,minBand:U,minBubbleSize:f,maxBubbleSize:m,minBubbleRadius:b,maxBubbleRadius:g,showMaxValuePulsation:h,selectedCategory:e.state.selectedCategory,selectedX:e.state.selectedX,selectedY:e.state.selectedY,size:M,x:x,xScale:I,y:A,yScale:q}),y.a.createElement("filter",{id:B},y.a.createElement("feColorMatrix",{type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"})))))};return y.a.createElement(Ve,{backgroundColor:n,height:d,width:w},y.a.createElement(T.a,null,(function(e){return P(e)})))}}]),t}(b.Component);$e.propTypes={backgroundColor:w.a.string,showBubbleLabels:w.a.oneOf(Object.values(R)),bubbleRowScale:w.a.oneOf(Object.values(Y)),bubbleScale:w.a.oneOf(Object.values(I)),category:w.a.arrayOf(w.a.string),colorMode:w.a.oneOf(Object.values(H)),seriesColors:w.a.arrayOf(w.a.string),bubbleColor:w.a.string,minBubbleColorIntensity:w.a.number,height:w.a.oneOfType([w.a.string,w.a.number]),isBubbleSizeDynamic:w.a.bool,minBubbleSize:w.a.number,maxBubbleSize:w.a.number,maxBubbleRadius:w.a.number,minBubbleRadius:w.a.number,useDefaultSort:w.a.bool,showMaxValuePulsation:w.a.bool,showLegend:w.a.bool,size:w.a.arrayOf(w.a.number).isRequired,width:w.a.oneOfType([w.a.string,w.a.number]),x:w.a.arrayOf(w.a.oneOfType([w.a.string,w.a.number])).isRequired,y:w.a.arrayOf(w.a.oneOfType([w.a.string,w.a.number])).isRequired},$e.defaultProps={backgroundColor:"transparent",showBubbleLabels:R.ALL,bubbleRowScale:Y.GLOBAL,bubbleScale:I.AREA,category:null,colorMode:H.CATEGORICAL,seriesColors:D.ENTERPRISE_CATEGORICAL,bubbleColor:"#C093F9",minBubbleColorIntensity:.25,showMaxValuePulsation:!0,height:500,isBubbleSizeDynamic:!0,minBubbleSize:.25,maxBubbleSize:1,maxBubbleRadius:15,minBubbleRadius:1,useDefaultSort:!1,showLegend:!0,width:"100%"};var Qe=Object(O.mergeThemes)(Ue.toThemes(),ce,We,Oe,Ne);t.default=Object(_.withTheme)(Object(E.withSanitizedProps)($e))}])},"+R7Q":function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},i=function(e){function t(t,n,r){e.call(this),this.start=t,this._count=n,this.scheduler=r}return r(t,e),t.create=function(e,n,r){return void 0===e&&(e=0),void 0===n&&(n=0),new t(e,n,r)},t.dispatch=function(e){var t=e.start,n=e.index,r=e.count,i=e.subscriber;n>=r?i.complete():(i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=0,r=this.start,i=this._count,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{index:n,count:i,start:r,subscriber:e});for(;;){if(n++>=i){e.complete();break}if(e.next(r++),e.closed)break}},t}(n("yrnK").Observable);t.RangeObservable=i},"+UBt":function(e,t,n){"use strict";t.isPromise=function(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}},"+WbH":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=21)}([function(e,t){e.exports=n("Xz8e")},,function(e,t){e.exports=n("halM")},function(e,t){e.exports=n("PGbr")},,function(e,t){e.exports=n("wcqL")},function(e,t){e.exports=n("Qp8R")},function(e,t){e.exports=n("WwZm")},function(e,t){e.exports=n("DCWr")},,,,,,,,function(e){e.exports={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-89.954994,47.29046],[-89.77498,47.540943],[-89.66697,47.74824],[-89.486946,48.016003],[-89.34293,47.972816],[-88.76688,48.206024],[-88.69487,48.24921],[-88.370834,48.309673],[-88.19082,48.231937],[-85.31053,47.08316],[-84.84248,46.893135],[-84.77048,46.634014],[-84.55446,46.461266],[-84.374435,46.51309],[-84.266426,46.495815],[-84.12241,46.530365],[-84.12241,46.24533],[-83.94239,46.055305],[-83.83438,46.10713],[-83.58236,46.10713],[-83.43835,45.994843],[-83.58236,45.822094],[-82.50225,45.338398],[-82.322235,44.509205],[-82.28623,44.25008],[-82.178215,43.913223],[-82.10621,43.59364],[-82.322235,43.170403],[-82.46625,42.937195],[-82.46625,42.721256],[-82.50225,42.60897],[-82.64626,42.557144],[-82.82629,42.37576],[-83.042305,42.332573],[-83.11431,42.289387],[-83.11431,41.961163],[-83.40234,41.73659],[-83.47435,41.727955],[-84.80648,41.6934],[-84.80648,41.762505],[-85.49055,41.762505],[-87.21872,41.762505],[-87.18272,41.926613],[-87.11071,42.09936],[-87.0027,42.496685],[-87.038704,42.496685],[-87.038704,42.74717],[-87.07471,42.764446],[-87.07471,42.997654],[-87.11071,43.023567],[-87.11071,43.248142],[-87.14671,43.299965],[-87.14671,43.610912],[-87.11071,43.62819],[-87.11071,43.81821],[-87.038704,43.99096],[-87.038704,44.103245],[-86.85869,44.440105],[-86.85869,44.51784],[-86.78668,44.62149],[-86.75067,44.776966],[-86.64266,44.949715],[-86.53465,45.053364],[-86.24663,45.23475],[-86.75067,45.442047],[-87.11071,45.442047],[-87.18272,45.32976],[-87.39874,45.2002],[-87.434746,45.079277],[-87.61476,45.09655],[-87.72277,45.157013],[-87.72277,45.2693],[-87.650764,45.312485],[-87.68677,45.381584],[-87.79478,45.347034],[-87.83078,45.355675],[-87.83078,45.347034],[-87.86679,45.347034],[-87.86679,45.36431],[-87.79478,45.46796],[-87.83078,45.562973],[-87.79478,45.70981],[-87.90279,45.752995],[-87.9388,45.752995],[-87.9388,45.761635],[-88.11881,45.787544],[-88.11881,45.917107],[-88.11881,45.925743],[-88.154816,45.93438],[-88.154816,45.94302],[-88.19082,45.94302],[-88.22682,45.94302],[-88.22682,45.951656],[-88.262825,45.951656],[-88.33483,45.960293],[-88.370834,45.986206],[-88.40684,45.986206],[-88.44284,45.986206],[-88.44284,45.994843],[-88.47885,45.994843],[-88.514854,46.020756],[-88.55086,46.020756],[-88.58686,46.01212],[-88.65887,45.986206],[-88.65887,45.994843],[-88.69487,46.01212],[-88.73087,46.020756],[-88.76688,46.020756],[-88.76688,46.029392],[-88.80288,46.029392],[-89.018906,46.11577],[-90.13502,46.34034],[-90.13502,46.348976],[-90.09901,46.357616],[-90.13502,46.357616],[-90.13502,46.366253],[-90.13502,46.392166],[-90.13502,46.400803],[-90.17102,46.400803],[-90.17102,46.435352],[-90.17102,46.44399],[-90.17102,46.452625],[-90.17102,46.461266],[-90.20702,46.461266],[-90.20702,46.469902],[-90.24303,46.50445],[-90.31503,46.521725],[-90.38704,46.539],[-90.42304,46.547638],[-90.09901,47.03997],[-89.954994,47.29046]]]},properties:{iso_3166_2:"US-MI",postal:"MI",name:"Michigan",label_en:"Michigan"},id:"Q1166"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-64.9685,17.681349],[-64.932495,17.802273],[-64.824486,17.828186],[-64.57246,17.836823],[-64.50045,17.741812],[-64.53645,17.698624],[-64.78848,17.620888],[-64.932495,17.629524],[-64.9685,17.681349]]],[[[-65.11251,18.432806],[-65.07651,18.458717],[-64.89649,18.458717],[-64.86049,18.398256],[-64.64446,18.363707],[-64.64446,18.268696],[-64.78848,18.260057],[-64.824486,18.18232],[-64.89649,18.190958],[-64.932495,18.260057],[-65.07651,18.225508],[-65.14851,18.225508],[-65.14851,18.355068],[-65.11251,18.432806]]]]},properties:{iso_3166_2:"US-VI",postal:"VI",name:"United States Virgin Islands",label_en:"United States Virgin Islands"},id:"Q11703"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-68.10081,18.173683],[-68.064804,18.277332],[-67.956795,18.311882],[-67.70477,18.190958],[-67.70477,18.000935],[-67.848785,17.905924],[-68.0288,17.940472],[-68.10081,18.01821],[-68.10081,18.173683]]],[[[-65.11251,18.432806],[-65.14851,18.355068],[-65.14851,18.225508],[-65.07651,18.225508],[-65.11251,18.21687],[-65.11251,18.061396],[-65.22052,17.98366],[-65.43655,17.931835],[-65.68857,17.931835],[-65.83258,17.836823],[-66.22862,17.759087],[-66.44464,17.767723],[-66.58866,17.733173],[-66.66067,17.802273],[-66.80468,17.810911],[-66.876686,17.776361],[-67.05671,17.793636],[-67.236725,17.785],[-67.38074,17.905924],[-67.38074,18.070034],[-67.344734,18.07867],[-67.344734,18.208233],[-67.38074,18.25142],[-67.48875,18.225508],[-67.63277,18.303244],[-67.63277,18.467356],[-67.48875,18.545092],[-67.38074,18.493267],[-67.30873,18.510544],[-67.27273,18.614191],[-67.128716,18.666016],[-66.94869,18.640104],[-66.80468,18.64874],[-66.30063,18.631468],[-65.83258,18.596916],[-65.68857,18.55373],[-65.544556,18.545092],[-65.43655,18.493267],[-65.22052,18.501905],[-65.11251,18.432806]]]]},properties:{iso_3166_2:"US-PR",postal:"PR",name:"Puerto Rico",label_en:"Puerto Rico"},id:"Q1183"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-91.431145,40.380512],[-91.35914,40.389153],[-91.35914,40.613724],[-91.10711,40.66555],[-91.10711,40.821022],[-90.9631,40.916035],[-90.9631,41.14061],[-91.10711,41.218346],[-91.0351,41.425644],[-90.63906,41.460194],[-90.60306,41.512016],[-90.459045,41.520657],[-90.351036,41.581116],[-90.31503,41.753864],[-90.17102,41.80569],[-90.17102,42.125275],[-90.38704,42.21165],[-90.42304,42.332573],[-90.63906,42.462135],[-90.63906,42.50532],[-89.486946,42.50532],[-89.41494,42.496685],[-88.11881,42.496685],[-87.0027,42.496685],[-87.11071,42.09936],[-87.18272,41.926613],[-87.21872,41.762505],[-87.50675,41.762505],[-87.542755,41.658855],[-87.542755,39.344025],[-87.61476,39.30947],[-87.57876,39.197186],[-87.650764,39.128086],[-87.57876,39.076263],[-87.57876,38.989887],[-87.50675,38.955338],[-87.542755,38.81714],[-87.50675,38.696217],[-87.61476,38.661667],[-87.650764,38.50619],[-87.75877,38.43709],[-87.75877,38.37663],[-87.86679,38.298893],[-87.90279,38.290257],[-87.9748,38.24707],[-87.9748,38.238434],[-87.9388,38.16933],[-87.9388,38.13478],[-88.0108,38.091595],[-87.9748,38.091595],[-88.0108,38.057045],[-88.04681,37.936123],[-88.0108,37.892933],[-88.08281,37.823833],[-88.04681,37.797924],[-88.04681,37.73746],[-88.154816,37.685635],[-88.154816,37.590626],[-88.04681,37.495613],[-88.08281,37.4697],[-88.29883,37.452423],[-88.40684,37.417877],[-88.47885,37.4006],[-88.514854,37.253765],[-88.44284,37.150116],[-88.44284,37.07238],[-88.55086,37.07238],[-88.91089,37.219215],[-89.018906,37.22785],[-89.16292,37.089653],[-89.126915,36.986004],[-89.126915,36.977367],[-89.19892,36.977367],[-89.234924,37.06374],[-89.30693,37.06374],[-89.27093,36.986004],[-89.37894,37.02919],[-89.37894,37.10693],[-89.45094,37.150116],[-89.45094,37.253765],[-89.52295,37.314228],[-89.41494,37.348778],[-89.41494,37.417877],[-89.52295,37.521526],[-89.52295,37.70291],[-89.66697,37.746098],[-89.66697,37.80656],[-89.77498,37.849747],[-89.81098,37.892933],[-89.954994,37.87566],[-89.954994,37.962032],[-90.24303,38.10023],[-90.38704,38.264343],[-90.351036,38.393906],[-90.27903,38.428455],[-90.27903,38.523468],[-90.17102,38.60984],[-90.20702,38.739403],[-90.09901,38.85169],[-90.38704,38.963978],[-90.49505,38.9467],[-90.53105,38.8776],[-90.67507,38.920788],[-90.71107,39.024437],[-90.71107,39.249012],[-91.071106,39.464947],[-91.071106,39.51677],[-91.35914,39.706795],[-91.35914,39.810444],[-91.431145,39.82772],[-91.431145,39.95728],[-91.50315,40.02638],[-91.50315,40.29414],[-91.431145,40.380512]]],[[[-88.04681,37.797924],[-88.04681,37.80656],[-88.0108,37.797924],[-88.04681,37.797924]]]]},properties:{iso_3166_2:"US-IL",postal:"IL",name:"Illinois",label_en:"Illinois"},id:"Q1204"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-104.0324,49.000668],[-102.44824,49.000668],[-101.54816,49.000668],[-100.180016,49.000668],[-98.847885,49.000668],[-97.22772,49.000668],[-97.19172,48.819283],[-97.19172,48.810646],[-97.155716,48.80201],[-97.155716,48.79337],[-97.08371,48.66381],[-97.11971,48.637897],[-97.11971,48.629257],[-97.11971,48.611984],[-97.155716,48.58607],[-97.155716,48.577435],[-97.155716,48.473785],[-97.11971,48.447872],[-97.11971,48.439236],[-97.11971,48.421963],[-97.155716,48.421963],[-97.155716,48.413322],[-97.11971,48.413322],[-97.155716,48.38741],[-97.155716,48.378773],[-97.11971,48.32695],[-97.11971,48.309673],[-97.11971,48.301037],[-97.11971,48.2924],[-97.11971,48.283764],[-97.155716,48.240574],[-97.11971,48.2233],[-97.155716,48.14556],[-97.0117,47.912354],[-97.0117,47.903713],[-96.9757,47.791428],[-96.90369,47.661865],[-96.86768,47.61868],[-96.86768,47.610043],[-96.86768,47.566856],[-96.86768,47.558216],[-96.86768,47.540943],[-96.86768,47.51503],[-96.86768,47.506393],[-96.86768,47.497757],[-96.86768,47.41138],[-96.83168,47.385468],[-96.86768,47.37683],[-96.86768,47.368195],[-96.83168,47.368195],[-96.83168,47.35956],[-96.83168,47.333645],[-96.83168,47.32501],[-96.83168,47.273182],[-96.83168,47.264545],[-96.83168,47.25591],[-96.83168,47.247272],[-96.83168,47.238632],[-96.83168,47.229996],[-96.83168,47.195446],[-96.83168,47.18681],[-96.83168,47.160896],[-96.83168,47.15226],[-96.83168,47.134983],[-96.83168,47.126347],[-96.83168,47.065884],[-96.83168,47.057247],[-96.83168,47.03997],[-96.79568,46.962234],[-96.759674,46.927685],[-96.759674,46.91905],[-96.759674,46.91041],[-96.759674,46.90177],[-96.759674,46.8845],[-96.759674,46.875862],[-96.79568,46.875862],[-96.79568,46.858585],[-96.759674,46.84995],[-96.79568,46.84995],[-96.79568,46.841312],[-96.79568,46.78085],[-96.79568,46.772213],[-96.79568,46.634014],[-96.79568,46.625378],[-96.79568,46.616737],[-96.759674,46.616737],[-96.759674,46.6081],[-96.759674,46.599464],[-96.759674,46.590824],[-96.759674,46.547638],[-96.72367,46.547638],[-96.72367,46.539],[-96.759674,46.539],[-96.759674,46.521725],[-96.72367,46.521725],[-96.72367,46.50445],[-96.72367,46.495815],[-96.72367,46.469902],[-96.72367,46.461266],[-96.72367,46.44399],[-96.72367,46.435352],[-96.68767,46.418076],[-96.68767,46.40944],[-96.68767,46.392166],[-96.651665,46.392166],[-96.61566,46.348976],[-96.61566,46.314426],[-96.61566,46.297153],[-96.61566,46.288517],[-96.57966,46.288517],[-96.57966,46.279877],[-96.57966,46.253967],[-96.57966,46.24533],[-96.57966,46.228054],[-96.543655,46.10713],[-96.57966,45.94302],[-96.57966,45.93438],[-97.47975,45.93438],[-98.739876,45.93438],[-98.81188,45.94302],[-99.60396,45.94302],[-100.75607,45.94302],[-101.44015,45.94302],[-102.88029,45.94302],[-104.0324,45.94302],[-104.0324,49.000668]]]},properties:{iso_3166_2:"US-ND",postal:"ND",name:"North Dakota",label_en:"North Dakota"},id:"Q1207"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-104.068405,45.001537],[-104.0324,45.001537],[-104.0324,45.94302],[-102.88029,45.94302],[-101.44015,45.94302],[-100.75607,45.94302],[-99.60396,45.94302],[-98.81188,45.94302],[-98.739876,45.93438],[-97.47975,45.93438],[-96.57966,45.93438],[-96.61566,45.778908],[-96.651665,45.778908],[-96.651665,45.77027],[-96.651665,45.73572],[-96.83168,45.657986],[-96.86768,45.60616],[-96.68767,45.407497],[-96.47165,45.355675],[-96.435646,45.29521],[-96.435646,43.498627],[-96.57966,43.498627],[-96.57966,43.48999],[-96.61566,43.45544],[-96.61566,43.4468],[-96.61566,43.438164],[-96.57966,43.438164],[-96.50765,43.369064],[-96.543655,43.369064],[-96.543655,43.35179],[-96.543655,43.34315],[-96.543655,43.31724],[-96.543655,43.3086],[-96.543655,43.299965],[-96.57966,43.299965],[-96.57966,43.29133],[-96.57966,43.239502],[-96.543655,43.22223],[-96.50765,43.22223],[-96.435646,43.101303],[-96.47165,43.092667],[-96.47165,43.066753],[-96.47165,43.058117],[-96.50765,42.937195],[-96.543655,42.928555],[-96.543655,42.919918],[-96.543655,42.894005],[-96.543655,42.868095],[-96.543655,42.859455],[-96.543655,42.842182],[-96.543655,42.833546],[-96.57966,42.824905],[-96.57966,42.798992],[-96.61566,42.74717],[-96.651665,42.738533],[-96.651665,42.729897],[-96.61566,42.721256],[-96.61566,42.703983],[-96.61566,42.695347],[-96.57966,42.695347],[-96.57966,42.686707],[-96.57966,42.67807],[-96.57966,42.669434],[-96.50765,42.617607],[-96.50765,42.60897],[-96.50765,42.57442],[-96.47165,42.496685],[-96.435646,42.48805],[-96.47165,42.48805],[-96.61566,42.50532],[-96.68767,42.57442],[-96.68767,42.660793],[-96.9397,42.721256],[-97.19172,42.798992],[-97.22772,42.85082],[-97.44374,42.85082],[-97.58776,42.842182],[-97.875786,42.868095],[-97.94779,42.764446],[-98.45184,42.928555],[-98.48785,42.997654],[-99.27993,42.997654],[-100.61206,42.997654],[-101.44015,42.997654],[-102.9883,42.997654],[-104.068405,42.997654],[-104.068405,45.001537]]]},properties:{iso_3166_2:"US-SD",postal:"SD",name:"South Dakota",label_en:"South Dakota"},id:"Q1211"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-116.05761,49.000668],[-114.72547,49.000668],[-113.681366,49.000668],[-112.52925,49.000668],[-110.981094,49.000668],[-109.57696,49.000668],[-108.676865,49.000668],[-107.344734,49.000668],[-106.372635,49.000668],[-104.9685,49.000668],[-104.0324,49.000668],[-104.0324,45.94302],[-104.0324,45.001537],[-104.068405,45.001537],[-105.040504,45.001537],[-105.90459,45.001537],[-106.264626,44.9929],[-108.60486,45.001537],[-110.009,45.001537],[-111.05311,45.001537],[-111.05311,44.474655],[-111.08911,44.48329],[-111.23312,44.578304],[-111.34113,44.72514],[-111.34113,44.73378],[-111.37714,44.742416],[-111.41314,44.742416],[-111.41314,44.716503],[-111.485146,44.647404],[-111.52115,44.63013],[-111.52115,44.569668],[-111.485146,44.56103],[-111.485146,44.552395],[-111.485146,44.543755],[-111.485146,44.53512],[-111.55716,44.552395],[-111.55716,44.56103],[-111.70117,44.56103],[-111.70117,44.552395],[-111.77318,44.53512],[-111.77318,44.52648],[-111.88119,44.56103],[-111.91719,44.56103],[-111.95319,44.56103],[-111.95319,44.552395],[-112.0252,44.53512],[-112.09721,44.52648],[-112.13321,44.53512],[-112.16922,44.53512],[-112.24123,44.569668],[-112.349236,44.53512],[-112.38524,44.457382],[-112.42124,44.457382],[-112.457245,44.474655],[-112.49325,44.46602],[-112.52925,44.46602],[-112.60126,44.48329],[-112.63726,44.48329],[-112.74528,44.50057],[-112.81728,44.457382],[-112.81728,44.448742],[-112.85329,44.36237],[-112.88929,44.39692],[-112.9973,44.43147],[-113.0333,44.509205],[-113.069305,44.69059],[-113.177315,44.80288],[-113.24933,44.811516],[-113.35734,44.785603],[-113.46535,44.86334],[-113.50135,44.949715],[-113.429344,45.018814],[-113.57336,45.122463],[-113.57336,45.174286],[-113.71737,45.29521],[-113.71737,45.390224],[-113.789375,45.43341],[-113.75337,45.519787],[-113.825386,45.519787],[-113.825386,45.60616],[-113.825386,45.614796],[-113.86139,45.614796],[-114.0054,45.70117],[-114.11341,45.588882],[-114.11341,45.580246],[-114.11341,45.57161],[-114.25742,45.545696],[-114.25742,45.485233],[-114.36544,45.459324],[-114.47345,45.554333],[-114.545456,45.57161],[-114.50945,45.72708],[-114.58146,45.778908],[-114.545456,45.778908],[-114.43745,45.856644],[-114.40144,45.856644],[-114.40144,45.97757],[-114.47345,45.994843],[-114.47345,46.16759],[-114.43745,46.16759],[-114.43745,46.331703],[-114.40144,46.331703],[-114.40144,46.50445],[-114.32943,46.51309],[-114.36544,46.659924],[-114.40144,46.659924],[-114.545456,46.64265],[-114.653465,46.668564],[-114.653465,46.6772],[-114.653465,46.737663],[-114.761475,46.703114],[-114.79748,46.772213],[-114.79748,46.78085],[-114.869484,46.806763],[-114.905495,46.806763],[-114.9775,46.94496],[-114.9775,46.953598],[-115.013504,46.970875],[-115.04951,46.996784],[-115.12151,47.08316],[-115.15752,47.08316],[-115.265526,47.17817],[-115.265526,47.18681],[-115.373535,47.264545],[-115.44554,47.28182],[-115.481544,47.29046],[-115.625565,47.37683],[-115.69757,47.41138],[-115.69757,47.420017],[-115.733574,47.420017],[-115.76958,47.437294],[-115.733574,47.437294],[-115.69757,47.48912],[-115.69757,47.635956],[-115.76958,47.71369],[-115.76958,47.72233],[-115.84158,47.756878],[-115.87759,47.843254],[-116.05761,47.972816],[-116.05761,49.000668]]]},properties:{iso_3166_2:"US-MT",postal:"MT",name:"Montana",label_en:"Montana"},id:"Q1212"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-104.068405,45.001537],[-104.068405,42.997654],[-104.068405,41.00241],[-105.29253,41.00241],[-105.47255,40.99377],[-106.19262,40.99377],[-106.33663,41.00241],[-107.92079,41.00241],[-109.0369,41.00241],[-109.72097,41.00241],[-109.82898,40.99377],[-111.05311,40.99377],[-111.05311,42.004353],[-111.05311,44.474655],[-111.05311,45.001537],[-110.009,45.001537],[-108.60486,45.001537],[-106.264626,44.9929],[-105.90459,45.001537],[-105.040504,45.001537],[-104.068405,45.001537]]]},properties:{iso_3166_2:"US-WY",postal:"WY",name:"Wyoming",label_en:"Wyoming"},id:"Q1214"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-116.849686,44.932438],[-116.849686,44.975628],[-116.849686,44.984264],[-116.70567,45.174286],[-116.66967,45.347034],[-116.56165,45.450684],[-116.56165,45.511147],[-116.45364,45.597523],[-116.52565,45.744358],[-116.88569,45.917107],[-116.92169,45.994843],[-116.957695,46.04667],[-116.957695,46.262604],[-117.065704,46.34034],[-117.0297,46.392166],[-117.0297,49.000668],[-116.05761,49.000668],[-116.05761,47.972816],[-115.87759,47.843254],[-115.84158,47.756878],[-115.76958,47.72233],[-115.76958,47.71369],[-115.69757,47.635956],[-115.69757,47.48912],[-115.733574,47.437294],[-115.76958,47.437294],[-115.733574,47.420017],[-115.69757,47.420017],[-115.69757,47.41138],[-115.625565,47.37683],[-115.481544,47.29046],[-115.44554,47.28182],[-115.373535,47.264545],[-115.265526,47.18681],[-115.265526,47.17817],[-115.15752,47.08316],[-115.12151,47.08316],[-115.04951,46.996784],[-115.013504,46.970875],[-114.9775,46.953598],[-114.9775,46.94496],[-114.905495,46.806763],[-114.869484,46.806763],[-114.79748,46.78085],[-114.79748,46.772213],[-114.761475,46.703114],[-114.653465,46.737663],[-114.653465,46.6772],[-114.653465,46.668564],[-114.545456,46.64265],[-114.40144,46.659924],[-114.36544,46.659924],[-114.32943,46.51309],[-114.40144,46.50445],[-114.40144,46.331703],[-114.43745,46.331703],[-114.43745,46.16759],[-114.47345,46.16759],[-114.47345,45.994843],[-114.40144,45.97757],[-114.40144,45.856644],[-114.43745,45.856644],[-114.545456,45.778908],[-114.58146,45.778908],[-114.50945,45.72708],[-114.545456,45.57161],[-114.47345,45.554333],[-114.36544,45.459324],[-114.25742,45.485233],[-114.25742,45.545696],[-114.11341,45.57161],[-114.11341,45.580246],[-114.11341,45.588882],[-114.0054,45.70117],[-113.86139,45.614796],[-113.825386,45.614796],[-113.825386,45.60616],[-113.825386,45.519787],[-113.75337,45.519787],[-113.789375,45.43341],[-113.71737,45.390224],[-113.71737,45.29521],[-113.57336,45.174286],[-113.57336,45.122463],[-113.429344,45.018814],[-113.50135,44.949715],[-113.46535,44.86334],[-113.35734,44.785603],[-113.24933,44.811516],[-113.177315,44.80288],[-113.069305,44.69059],[-113.0333,44.509205],[-112.9973,44.43147],[-112.88929,44.39692],[-112.85329,44.36237],[-112.81728,44.448742],[-112.81728,44.457382],[-112.74528,44.50057],[-112.63726,44.48329],[-112.60126,44.48329],[-112.52925,44.46602],[-112.49325,44.46602],[-112.457245,44.474655],[-112.42124,44.457382],[-112.38524,44.457382],[-112.349236,44.53512],[-112.24123,44.569668],[-112.16922,44.53512],[-112.13321,44.53512],[-112.09721,44.52648],[-112.0252,44.53512],[-111.95319,44.552395],[-111.95319,44.56103],[-111.91719,44.56103],[-111.88119,44.56103],[-111.77318,44.52648],[-111.77318,44.53512],[-111.70117,44.552395],[-111.70117,44.56103],[-111.55716,44.56103],[-111.55716,44.552395],[-111.485146,44.53512],[-111.485146,44.543755],[-111.485146,44.552395],[-111.485146,44.56103],[-111.52115,44.569668],[-111.52115,44.63013],[-111.485146,44.647404],[-111.41314,44.716503],[-111.41314,44.742416],[-111.37714,44.742416],[-111.34113,44.73378],[-111.34113,44.72514],[-111.23312,44.578304],[-111.08911,44.48329],[-111.05311,44.474655],[-111.05311,42.004353],[-111.485146,41.995712],[-112.16922,41.995712],[-112.16922,42.004353],[-112.78128,41.995712],[-114.041405,41.995712],[-115.58956,41.995712],[-117.0297,41.995712],[-117.0297,43.861397],[-116.957695,43.904587],[-116.957695,44.034145],[-116.88569,44.180984],[-117.0297,44.241444],[-117.10171,44.275993],[-117.209724,44.267357],[-117.24573,44.371006],[-117.209724,44.50057],[-117.13771,44.53512],[-117.0297,44.75969],[-116.92169,44.785603],[-116.849686,44.932438]]]},properties:{iso_3166_2:"US-ID",postal:"ID",name:"Idaho",label_en:"Idaho"},id:"Q1221"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-117.0297,49.000668],[-117.0297,46.392166],[-117.065704,46.34034],[-116.957695,46.262604],[-116.957695,46.04667],[-116.92169,45.994843],[-117.60576,45.994843],[-117.64176,46.003483],[-118.9739,46.003483],[-119.153915,45.925743],[-119.261925,45.94302],[-119.47795,45.90847],[-119.58596,45.925743],[-119.65797,45.856644],[-120.018005,45.813457],[-120.19802,45.72708],[-120.486046,45.69253],[-120.630066,45.744358],[-120.88209,45.64071],[-121.09811,45.649345],[-121.13411,45.614796],[-121.13411,45.60616],[-121.20612,45.67526],[-121.42214,45.69253],[-121.53015,45.72708],[-121.74618,45.69253],[-121.818184,45.70981],[-121.9622,45.623432],[-122.25022,45.545696],[-122.430244,45.562973],[-122.75427,45.64071],[-122.790276,45.93438],[-122.89829,46.08122],[-123.11431,46.176228],[-123.40234,46.15032],[-123.43835,46.253967],[-123.870384,46.23669],[-123.9784,46.27124],[-124.15842,46.262604],[-124.12241,46.323067],[-124.12241,46.720387],[-124.23042,46.97951],[-124.266426,47.195446],[-124.482445,47.420017],[-124.41044,47.497757],[-124.44644,47.627316],[-124.55446,47.635956],[-124.55446,47.756878],[-124.69847,47.843254],[-124.80648,47.964176],[-124.77048,48.11965],[-124.84248,48.180115],[-124.734474,48.318314],[-124.80648,48.370136],[-124.734474,48.49106],[-124.014404,48.2924],[-123.54636,48.2233],[-123.25832,48.283764],[-123.11431,48.421963],[-123.22232,48.55152],[-123.25832,48.68972],[-123.0063,48.76746],[-123.0063,48.82792],[-123.33033,49.000668],[-122.10621,49.000668],[-120.41404,49.000668],[-119.22592,49.000668],[-118.21782,49.000668],[-117.0297,49.000668]]]},properties:{iso_3166_2:"US-WA",postal:"WA",name:"Washington",label_en:"Washington"},id:"Q1223"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-119.981995,41.995712],[-119.261925,41.995712],[-118.10981,41.995712],[-117.0297,41.995712],[-115.58956,41.995712],[-114.041405,41.995712],[-114.041405,37.00328],[-114.041405,36.19136],[-114.149414,36.02725],[-114.22142,36.018612],[-114.40144,36.148174],[-114.653465,36.130898],[-114.761475,36.096348],[-114.72547,35.984062],[-114.68947,35.906326],[-114.68947,35.62993],[-114.653465,35.62993],[-114.653465,35.465816],[-114.58146,35.336254],[-114.58146,35.12032],[-114.61746,34.999397],[-114.68947,35.033943],[-114.83348,35.172146],[-115.12151,35.37944],[-115.33753,35.578102],[-115.58956,35.75085],[-115.80558,35.940876],[-115.94959,36.03589],[-116.45364,36.424572],[-116.63366,36.580044],[-116.9937,36.830532],[-117.31773,37.081017],[-118.10981,37.651085],[-118.289825,37.80656],[-118.433846,37.892933],[-118.75787,38.14342],[-118.9379,38.24707],[-119.0099,38.324806],[-119.261925,38.48028],[-119.44194,38.627117],[-119.62196,38.730766],[-120.018005,38.998524],[-120.018005,39.793167],[-119.981995,39.82772],[-119.981995,41.123333],[-120.018005,41.20107],[-119.981995,41.287445],[-119.981995,41.995712]]]},properties:{iso_3166_2:"US-NV",postal:"NV",name:"Nevada",label_en:"Nevada"},id:"Q1227"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-109.0369,41.00241],[-107.92079,41.00241],[-106.33663,41.00241],[-106.19262,40.99377],[-105.47255,40.99377],[-105.29253,41.00241],[-104.068405,41.00241],[-103.20432,41.00241],[-102.05221,41.00241],[-102.05221,40.000465],[-102.05221,36.99464],[-102.736275,36.99464],[-102.9883,37.00328],[-103.0603,36.99464],[-104.53645,36.99464],[-105.90459,36.99464],[-106.876686,36.99464],[-106.876686,37.00328],[-108.38884,37.00328],[-109.0369,37.00328],[-109.0369,38.16933],[-109.07291,38.24707],[-109.07291,38.85169],[-109.0369,38.868965],[-109.0369,41.00241]]]},properties:{iso_3166_2:"US-CO",postal:"CO",name:"Colorado",label_en:"Colorado"},id:"Q1261"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-83.69037,36.59732],[-83.54636,36.66642],[-83.150314,36.73552],[-83.11431,36.761433],[-83.07831,36.847805],[-83.07831,36.85644],[-83.042305,36.847805],[-82.86229,36.89099],[-82.86229,36.986004],[-82.790276,37.011917],[-82.75427,37.020554],[-82.75427,37.02919],[-82.71827,37.046467],[-82.71827,37.124203],[-82.53825,37.219215],[-82.35824,37.2624],[-81.9622,37.5388],[-81.9622,37.530163],[-81.9622,37.521526],[-81.92619,37.512886],[-81.9982,37.452423],[-81.92619,37.443787],[-81.92619,37.348778],[-81.818184,37.288315],[-81.78218,37.288315],[-81.78218,37.27968],[-81.74618,37.271038],[-81.710175,37.210575],[-81.53015,37.219215],[-81.38614,37.314228],[-81.38614,37.322865],[-81.350136,37.3315],[-81.24213,37.23649],[-80.9901,37.29695],[-80.52205,37.478336],[-80.486046,37.426514],[-80.30603,37.495613],[-80.30603,37.5388],[-80.234024,37.599262],[-80.30603,37.685635],[-80.234024,37.77201],[-80.234024,37.780647],[-80.126015,37.892933],[-80.126015,37.901573],[-79.981995,37.996586],[-79.94599,38.14342],[-79.80198,38.255707],[-79.80198,38.264343],[-79.80198,38.333443],[-79.69397,38.41118],[-79.65797,38.592567],[-79.54996,38.54074],[-79.47795,38.45437],[-79.29793,38.41118],[-79.22592,38.45437],[-79.11791,38.653027],[-79.08191,38.756676],[-78.9739,38.85169],[-78.86589,38.765316],[-78.72187,38.929424],[-78.72187,38.91215],[-78.61386,38.972614],[-78.433846,39.128086],[-78.433846,39.214462],[-78.36184,39.300835],[-78.36184,39.464947],[-77.821785,39.136723],[-77.78578,39.25765],[-77.71377,39.31811],[-77.677765,39.31811],[-77.569756,39.300835],[-77.46175,39.24037],[-77.53375,39.11945],[-77.46175,39.067623],[-77.28173,39.05035],[-77.24573,38.98125],[-77.17371,38.963978],[-77.13771,38.938065],[-77.10171,38.938065],[-77.065704,38.894875],[-77.065704,38.88624],[-77.0297,38.868965],[-77.0297,38.808502],[-77.0297,38.791225],[-77.0297,38.71349],[-77.13771,38.687576],[-77.13771,38.635754],[-77.24573,38.592567],[-77.31773,38.50619],[-77.31773,38.367992],[-77.209724,38.333443],[-77.0297,38.37663],[-77.0297,38.290257],[-76.957695,38.20388],[-76.849686,38.160694],[-76.59766,38.152058],[-76.52565,38.022495],[-76.237625,37.884296],[-76.05761,37.953396],[-75.94959,37.91021],[-75.80558,37.91021],[-75.66157,37.953396],[-75.625565,37.996586],[-75.15752,38.03113],[-75.265526,37.867023],[-75.40954,37.823833],[-75.517555,37.70291],[-75.517555,37.547436],[-75.58956,37.50425],[-75.625565,37.348778],[-75.733574,37.271038],[-75.733574,37.17603],[-75.84158,37.10693],[-75.91359,37.00328],[-75.91359,36.83917],[-75.80558,36.554134],[-76.92169,36.554134],[-76.92169,36.545494],[-77.89379,36.545494],[-79.44194,36.545494],[-80.37804,36.545494],[-80.630066,36.56277],[-81.0621,36.56277],[-81.674164,36.588684],[-81.63816,36.614594],[-81.92619,36.614594],[-81.92619,36.59732],[-82.61026,36.59732],[-83.69037,36.59732]]]},properties:{iso_3166_2:"US-VA",postal:"VA",name:"Virginia",label_en:"Virginia"},id:"Q1370"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-82.61026,38.41982],[-82.53825,38.402542],[-82.322235,38.44573],[-82.25022,38.592567],[-82.178215,38.592567],[-82.178215,38.72213],[-82.178215,38.739403],[-82.21422,38.808502],[-82.14221,38.825775],[-82.14221,38.903515],[-82.14221,38.91215],[-82.10621,38.929424],[-82.10621,38.938065],[-82.10621,38.972614],[-81.92619,38.989887],[-81.92619,38.8776],[-81.818184,38.938065],[-81.78218,39.0849],[-81.74618,39.0849],[-81.710175,39.25765],[-81.710175,39.266285],[-81.566154,39.266285],[-81.566154,39.35266],[-81.42214,39.41312],[-81.38614,39.344025],[-81.20612,39.38721],[-80.9901,39.55996],[-80.88209,39.62042],[-80.846085,39.775894],[-80.846085,39.78453],[-80.77408,39.92273],[-80.738075,40.095478],[-80.59406,40.302776],[-80.59406,40.440975],[-80.66607,40.5619],[-80.630066,40.62236],[-80.52205,40.639637],[-80.52205,39.724068],[-79.47795,39.724068],[-79.47795,39.214462],[-79.44194,39.214462],[-79.261925,39.35266],[-79.261925,39.361298],[-79.153915,39.404484],[-79.153915,39.42176],[-79.11791,39.42176],[-79.11791,39.464947],[-79.08191,39.473583],[-79.045906,39.473583],[-78.9739,39.45631],[-78.9379,39.48222],[-78.90189,39.508133],[-78.90189,39.51677],[-78.82988,39.55996],[-78.82988,39.568596],[-78.82988,39.585873],[-78.82988,39.59451],[-78.79388,39.603146],[-78.79388,39.611782],[-78.79388,39.62042],[-78.75787,39.62042],[-78.75787,39.611782],[-78.75787,39.603146],[-78.75787,39.585873],[-78.61386,39.534046],[-78.541855,39.52541],[-78.433846,39.542683],[-78.433846,39.55132],[-78.39784,39.62042],[-78.25382,39.62042],[-78.181816,39.69816],[-77.9658,39.603146],[-77.929794,39.603146],[-77.89379,39.603146],[-77.85779,39.568596],[-77.85779,39.55996],[-77.85779,39.52541],[-77.821785,39.52541],[-77.78578,39.49086],[-77.78578,39.464947],[-77.78578,39.45631],[-77.71377,39.31811],[-77.78578,39.25765],[-77.821785,39.136723],[-78.36184,39.464947],[-78.36184,39.300835],[-78.433846,39.214462],[-78.433846,39.128086],[-78.61386,38.972614],[-78.72187,38.91215],[-78.72187,38.929424],[-78.86589,38.765316],[-78.9739,38.85169],[-79.08191,38.756676],[-79.11791,38.653027],[-79.22592,38.45437],[-79.29793,38.41118],[-79.47795,38.45437],[-79.54996,38.54074],[-79.65797,38.592567],[-79.69397,38.41118],[-79.80198,38.333443],[-79.80198,38.264343],[-79.80198,38.255707],[-79.94599,38.14342],[-79.981995,37.996586],[-80.126015,37.901573],[-80.126015,37.892933],[-80.234024,37.780647],[-80.234024,37.77201],[-80.30603,37.685635],[-80.234024,37.599262],[-80.30603,37.5388],[-80.30603,37.495613],[-80.486046,37.426514],[-80.52205,37.478336],[-80.9901,37.29695],[-81.24213,37.23649],[-81.350136,37.3315],[-81.38614,37.322865],[-81.38614,37.314228],[-81.53015,37.219215],[-81.710175,37.210575],[-81.74618,37.271038],[-81.78218,37.27968],[-81.78218,37.288315],[-81.818184,37.288315],[-81.92619,37.348778],[-81.92619,37.443787],[-81.9982,37.452423],[-81.92619,37.512886],[-81.9622,37.521526],[-81.9622,37.530163],[-81.9622,37.5388],[-81.9982,37.5388],[-82.0342,37.5388],[-82.14221,37.590626],[-82.14221,37.599262],[-82.178215,37.616535],[-82.178215,37.625175],[-82.28623,37.66836],[-82.28623,37.677],[-82.322235,37.789284],[-82.39424,37.80656],[-82.39424,37.815197],[-82.430244,37.867023],[-82.46625,37.901573],[-82.46625,37.918846],[-82.50225,37.996586],[-82.50225,38.005222],[-82.53825,38.07432],[-82.64626,38.13478],[-82.57426,38.24707],[-82.61026,38.41982]]]},properties:{iso_3166_2:"US-WV",postal:"WV",name:"West Virginia",label_en:"West Virginia"},id:"Q1371"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-79.765976,42.513958],[-79.58596,42.591698],[-79.153915,42.738533],[-78.9379,42.824905],[-78.90189,42.94583],[-79.0099,42.98038],[-79.045906,43.101303],[-79.045906,43.25678],[-79.18992,43.4468],[-78.68587,43.62819],[-77.929794,43.62819],[-76.81368,43.62819],[-76.59766,43.870037],[-76.45364,44.09461],[-76.30963,44.198257],[-76.20162,44.215534],[-76.16562,44.284634],[-75.94959,44.345093],[-75.80558,44.43147],[-75.80558,44.474655],[-75.517555,44.69923],[-75.30153,44.82879],[-74.905495,45.001537],[-74.0054,44.9929],[-73.35734,45.010178],[-73.35734,44.66468],[-73.39334,44.578304],[-73.321335,44.543755],[-73.321335,44.241444],[-73.429344,44.137794],[-73.39334,44.02551],[-73.39334,43.800938],[-73.35734,43.723198],[-73.429344,43.6541],[-73.39334,43.576363],[-73.39334,43.59364],[-73.39334,43.602276],[-73.35734,43.610912],[-73.35734,43.61955],[-73.35734,43.62819],[-73.28533,43.576363],[-73.28533,43.567726],[-73.24933,43.567726],[-73.24933,43.075394],[-73.28533,43.058117],[-73.28533,42.74717],[-73.24933,42.74717],[-73.39334,42.44486],[-73.39334,42.34985],[-73.46535,42.254837],[-73.50135,42.04754],[-73.50135,41.650215],[-73.53735,41.650215],[-73.53735,41.26153],[-73.50135,41.20107],[-73.71737,41.071507],[-73.60936,40.950584],[-72.09721,41.26153],[-71.91719,41.304718],[-71.80918,41.183796],[-71.80918,41.019684],[-72.31323,40.8383],[-73.0333,40.613724],[-73.24933,40.570538],[-73.789375,40.535988],[-73.89739,40.4928],[-73.9694,40.518715],[-74.22142,40.48416],[-74.22142,40.553265],[-74.22142,40.5619],[-74.22142,40.605087],[-74.041405,40.648273],[-74.041405,40.7001],[-73.89739,40.93331],[-73.89739,41.00241],[-74.32943,41.17516],[-74.32943,41.192432],[-74.68947,41.356544],[-74.72547,41.43428],[-74.83348,41.442917],[-74.9415,41.477467],[-75.04951,41.563843],[-75.04951,41.77114],[-75.19352,41.866154],[-75.22952,41.866154],[-75.30153,41.94389],[-75.30153,41.952526],[-75.33753,41.995712],[-77.10171,41.995712],[-78.433846,41.995712],[-79.765976,41.995712],[-79.765976,42.513958]]]},properties:{iso_3166_2:"US-NY",postal:"NY",name:"New York",label_en:"New York"},id:"Q1384"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-71.66517,41.157883],[-71.629166,41.27881],[-71.485146,41.24426],[-71.485146,41.114697],[-71.66517,41.114697],[-71.66517,41.157883]]],[[[-71.91719,41.304718],[-71.845184,41.321995],[-71.77318,41.563843],[-71.77318,41.77114],[-71.80918,41.77114],[-71.80918,42.004353],[-71.37714,42.021626],[-71.34113,41.779778],[-71.125114,41.658855],[-71.125114,41.477467],[-71.08911,41.43428],[-71.44914,41.313354],[-71.66517,41.304718],[-71.80918,41.27017],[-71.80918,41.183796],[-71.91719,41.304718]]]]},properties:{iso_3166_2:"US-RI",postal:"RI",name:"Rhode Island",label_en:"Rhode Island"},id:"Q1387"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-79.47795,39.724068],[-78.25382,39.724068],[-77.065704,39.724068],[-75.80558,39.724068],[-75.76958,39.637695],[-75.76958,39.197186],[-75.733574,39.154],[-75.733574,38.74804],[-75.69757,38.739403],[-75.69757,38.463005],[-75.66157,38.45437],[-74.9775,38.45437],[-75.013504,38.298893],[-75.08551,38.229794],[-75.15752,38.03113],[-75.625565,37.996586],[-75.66157,37.953396],[-75.80558,37.91021],[-75.94959,37.91021],[-76.05761,37.953396],[-76.237625,37.884296],[-76.52565,38.022495],[-76.59766,38.152058],[-76.849686,38.160694],[-76.957695,38.20388],[-77.0297,38.290257],[-77.0297,38.37663],[-77.209724,38.333443],[-77.31773,38.367992],[-77.31773,38.50619],[-77.24573,38.592567],[-77.13771,38.635754],[-77.13771,38.687576],[-77.0297,38.71349],[-77.0297,38.791225],[-77.0297,38.808502],[-76.92169,38.868965],[-77.0297,38.989887],[-77.10171,38.938065],[-77.13771,38.938065],[-77.17371,38.963978],[-77.24573,38.98125],[-77.28173,39.05035],[-77.46175,39.067623],[-77.53375,39.11945],[-77.46175,39.24037],[-77.569756,39.300835],[-77.677765,39.31811],[-77.71377,39.31811],[-77.78578,39.45631],[-77.78578,39.464947],[-77.78578,39.49086],[-77.821785,39.52541],[-77.85779,39.52541],[-77.85779,39.55996],[-77.85779,39.568596],[-77.89379,39.603146],[-77.929794,39.603146],[-77.9658,39.603146],[-78.181816,39.69816],[-78.25382,39.62042],[-78.39784,39.62042],[-78.433846,39.55132],[-78.433846,39.542683],[-78.541855,39.52541],[-78.61386,39.534046],[-78.75787,39.585873],[-78.75787,39.603146],[-78.75787,39.611782],[-78.75787,39.62042],[-78.79388,39.62042],[-78.79388,39.611782],[-78.79388,39.603146],[-78.82988,39.59451],[-78.82988,39.585873],[-78.82988,39.568596],[-78.82988,39.55996],[-78.90189,39.51677],[-78.90189,39.508133],[-78.9379,39.48222],[-78.9739,39.45631],[-79.045906,39.473583],[-79.08191,39.473583],[-79.11791,39.464947],[-79.11791,39.42176],[-79.153915,39.42176],[-79.153915,39.404484],[-79.261925,39.361298],[-79.261925,39.35266],[-79.44194,39.214462],[-79.47795,39.214462],[-79.47795,39.724068]]]},properties:{iso_3166_2:"US-MD",postal:"MD",name:"Maryland",label_en:"Maryland"},id:"Q1391"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-75.80558,39.724068],[-75.625565,39.836357],[-75.40954,39.810444],[-75.40954,39.801807],[-75.55356,39.59451],[-75.55356,39.45631],[-75.33753,39.266285],[-75.19352,39.067623],[-75.15752,39.058987],[-75.013504,38.791225],[-75.013504,38.60984],[-74.9775,38.60984],[-74.9775,38.45437],[-75.66157,38.45437],[-75.69757,38.463005],[-75.69757,38.739403],[-75.733574,38.74804],[-75.733574,39.154],[-75.76958,39.197186],[-75.76958,39.637695],[-75.80558,39.724068]]]},properties:{iso_3166_2:"US-DE",postal:"DE",name:"Delaware",label_en:"Delaware"},id:"Q1393"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-84.80648,41.6934],[-83.47435,41.727955],[-83.40234,41.73659],[-83.11431,41.961163],[-83.07831,41.857513],[-82.68227,41.67613],[-82.39424,41.67613],[-82.28623,41.745228],[-81.78218,41.952526],[-81.49415,42.09936],[-81.24213,42.20301],[-80.88209,42.27211],[-80.52205,42.323936],[-80.52205,40.639637],[-80.630066,40.62236],[-80.66607,40.5619],[-80.59406,40.440975],[-80.59406,40.302776],[-80.738075,40.095478],[-80.77408,39.92273],[-80.846085,39.78453],[-80.846085,39.775894],[-80.88209,39.62042],[-80.9901,39.55996],[-81.20612,39.38721],[-81.38614,39.344025],[-81.42214,39.41312],[-81.566154,39.35266],[-81.566154,39.266285],[-81.710175,39.266285],[-81.710175,39.25765],[-81.74618,39.0849],[-81.78218,39.0849],[-81.818184,38.938065],[-81.92619,38.8776],[-81.92619,38.989887],[-82.10621,38.972614],[-82.10621,38.938065],[-82.10621,38.929424],[-82.14221,38.91215],[-82.14221,38.903515],[-82.14221,38.825775],[-82.21422,38.808502],[-82.178215,38.739403],[-82.178215,38.72213],[-82.178215,38.592567],[-82.25022,38.592567],[-82.322235,38.44573],[-82.53825,38.402542],[-82.61026,38.41982],[-82.61026,38.48028],[-82.71827,38.558018],[-82.86229,38.592567],[-82.86229,38.74804],[-82.9703,38.730766],[-83.11431,38.67894],[-83.150314,38.618477],[-83.29433,38.601204],[-83.33033,38.64439],[-83.54636,38.704853],[-83.654366,38.627117],[-83.762375,38.64439],[-83.90639,38.765316],[-83.90639,38.773952],[-84.08641,38.773952],[-84.23042,38.808502],[-84.23042,38.91215],[-84.30243,39.024437],[-84.41044,39.041714],[-84.41044,39.05035],[-84.44644,39.058987],[-84.44644,39.11945],[-84.55446,39.093536],[-84.66247,39.093536],[-84.66247,39.102177],[-84.77048,39.145363],[-84.80648,39.110813],[-84.80648,41.6934]]]},properties:{iso_3166_2:"US-OH",postal:"OH",name:"Ohio",label_en:"Ohio"},id:"Q1397"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-80.52205,42.323936],[-80.09001,42.393036],[-79.765976,42.513958],[-79.765976,41.995712],[-78.433846,41.995712],[-77.10171,41.995712],[-75.33753,41.995712],[-75.30153,41.952526],[-75.30153,41.94389],[-75.22952,41.866154],[-75.19352,41.866154],[-75.04951,41.77114],[-75.04951,41.563843],[-74.9415,41.477467],[-74.83348,41.442917],[-74.72547,41.43428],[-74.68947,41.356544],[-74.761475,41.347904],[-74.869484,41.17516],[-74.9775,41.09742],[-74.9775,41.088783],[-75.12151,41.00241],[-75.04951,40.846935],[-75.19352,40.7692],[-75.19352,40.5619],[-75.08551,40.570538],[-75.08551,40.46689],[-75.013504,40.406425],[-74.869484,40.311417],[-74.83348,40.233677],[-74.72547,40.181854],[-74.761475,40.130028],[-74.9775,40.05229],[-75.12151,39.974556],[-75.12151,39.88818],[-75.40954,39.810444],[-75.625565,39.836357],[-75.80558,39.724068],[-77.065704,39.724068],[-78.25382,39.724068],[-79.47795,39.724068],[-80.52205,39.724068],[-80.52205,40.639637],[-80.52205,42.323936]]]},properties:{iso_3166_2:"US-PA",postal:"PA",name:"Pennsylvania",label_en:"Pennsylvania"},id:"Q1400"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-75.40954,39.801807],[-75.40954,39.810444],[-75.12151,39.88818],[-75.12151,39.974556],[-74.9775,40.05229],[-74.761475,40.130028],[-74.72547,40.181854],[-74.83348,40.233677],[-74.869484,40.311417],[-75.013504,40.406425],[-75.08551,40.46689],[-75.08551,40.570538],[-75.19352,40.5619],[-75.19352,40.7692],[-75.04951,40.846935],[-75.12151,41.00241],[-74.9775,41.088783],[-74.9775,41.09742],[-74.869484,41.17516],[-74.761475,41.347904],[-74.68947,41.356544],[-74.32943,41.192432],[-74.32943,41.17516],[-73.89739,41.00241],[-73.89739,40.93331],[-74.041405,40.7001],[-74.041405,40.648273],[-74.22142,40.605087],[-74.22142,40.5619],[-74.22142,40.553265],[-74.22142,40.48416],[-73.9694,40.518715],[-73.89739,40.4928],[-73.89739,40.276863],[-73.9694,40.15594],[-74.0054,40.017742],[-74.0054,39.82772],[-74.041405,39.71543],[-74.25742,39.41312],[-74.36544,39.31811],[-74.50945,39.266285],[-74.72547,38.955338],[-74.905495,38.8776],[-75.013504,38.791225],[-75.15752,39.058987],[-75.19352,39.067623],[-75.33753,39.266285],[-75.55356,39.45631],[-75.55356,39.59451],[-75.40954,39.801807]]]},properties:{iso_3166_2:"US-NJ",postal:"NJ",name:"New Jersey",label_en:"New Jersey"},id:"Q1408"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-88.0108,37.892933],[-88.04681,37.936123],[-88.0108,38.057045],[-87.9748,38.091595],[-88.0108,38.091595],[-87.9388,38.13478],[-87.9388,38.16933],[-87.9748,38.238434],[-87.9748,38.24707],[-87.90279,38.290257],[-87.86679,38.298893],[-87.75877,38.37663],[-87.75877,38.43709],[-87.650764,38.50619],[-87.61476,38.661667],[-87.50675,38.696217],[-87.542755,38.81714],[-87.50675,38.955338],[-87.57876,38.989887],[-87.57876,39.076263],[-87.650764,39.128086],[-87.57876,39.197186],[-87.61476,39.30947],[-87.542755,39.344025],[-87.542755,41.658855],[-87.50675,41.762505],[-87.21872,41.762505],[-85.49055,41.762505],[-84.80648,41.762505],[-84.80648,41.6934],[-84.80648,39.110813],[-84.80648,39.102177],[-84.87849,39.076263],[-84.84248,38.938065],[-84.77048,38.88624],[-84.80648,38.78259],[-84.986496,38.78259],[-85.130516,38.696217],[-85.238525,38.739403],[-85.454544,38.71349],[-85.454544,38.704853],[-85.41854,38.523468],[-85.49055,38.463005],[-85.63456,38.428455],[-85.63456,38.324806],[-85.74258,38.27298],[-85.850586,38.27298],[-85.92259,38.16933],[-85.92259,38.005222],[-86.210625,38.01386],[-86.28263,38.057045],[-86.28263,38.160694],[-86.42664,38.057045],[-86.53465,38.039772],[-86.49865,37.927483],[-86.678665,37.91021],[-86.75067,37.892933],[-86.78668,37.996586],[-87.038704,37.91021],[-87.07471,37.789284],[-87.14671,37.789284],[-87.290726,37.901573],[-87.434746,37.94476],[-87.542755,37.918846],[-87.57876,37.970673],[-87.57876,37.849747],[-87.68677,37.832474],[-87.68677,37.901573],[-87.83078,37.87566],[-87.9388,37.91021],[-87.90279,37.797924],[-88.0108,37.797924],[-88.04681,37.80656],[-88.04681,37.797924],[-88.08281,37.823833],[-88.0108,37.892933]]]},properties:{iso_3166_2:"US-IN",postal:"IN",name:"Indiana",label_en:"Indiana"},id:"Q1415"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-85.59856,34.98212],[-84.33843,34.990757],[-83.47435,34.990757],[-83.11431,34.999397],[-83.11431,34.956207],[-83.11431,34.94757],[-83.11431,34.938934],[-83.11431,34.930298],[-83.150314,34.930298],[-83.150314,34.921658],[-83.18632,34.895744],[-83.22232,34.887108],[-83.18632,34.887108],[-83.22232,34.87847],[-83.25832,34.869835],[-83.25832,34.8612],[-83.25832,34.85256],[-83.25832,34.84392],[-83.29433,34.81801],[-83.29433,34.809372],[-83.36634,34.705723],[-83.25832,34.61935],[-83.18632,34.61071],[-83.18632,34.602074],[-83.0063,34.48115],[-82.934296,34.48115],[-82.89829,34.48115],[-82.75427,34.291126],[-82.71827,34.135654],[-82.61026,34.06655],[-82.53825,33.94563],[-82.39424,33.867893],[-82.28623,33.764244],[-82.21422,33.626045],[-82.10621,33.591496],[-81.92619,33.47057],[-81.92619,33.37556],[-81.92619,33.36692],[-81.92619,33.349648],[-81.92619,33.341007],[-81.92619,33.323734],[-81.89019,33.323734],[-81.89019,33.306458],[-81.85419,33.315098],[-81.85419,33.306458],[-81.818184,33.26327],[-81.85419,33.254635],[-81.78218,33.21145],[-81.78218,33.185535],[-81.78218,33.1769],[-81.63816,33.09916],[-81.60216,33.090523],[-81.60216,33.081886],[-81.566154,33.06461],[-81.566154,33.055973],[-81.566154,33.047337],[-81.49415,33.021423],[-81.49415,32.9696],[-81.49415,32.96096],[-81.458145,32.9005],[-81.458145,32.891865],[-81.458145,32.874588],[-81.458145,32.848675],[-81.458145,32.84004],[-81.42214,32.82276],[-81.42214,32.814125],[-81.42214,32.788216],[-81.42214,32.779575],[-81.42214,32.753662],[-81.42214,32.745026],[-81.42214,32.727753],[-81.42214,32.719112],[-81.38614,32.66729],[-81.38614,32.658653],[-81.38614,32.641376],[-81.42214,32.63274],[-81.38614,32.580914],[-81.27813,32.56364],[-81.27813,32.555004],[-81.20612,32.485905],[-81.20612,32.40817],[-81.13411,32.339066],[-81.13411,32.33043],[-81.13411,32.321793],[-81.13411,32.19223],[-81.13411,32.174957],[-81.13411,32.149044],[-81.09811,32.097218],[-80.91809,32.03676],[-80.738075,32.03676],[-80.81008,31.92447],[-81.0621,31.717173],[-81.0621,31.58761],[-81.09811,31.483961],[-81.17012,31.449411],[-81.17012,31.242113],[-81.350136,31.060728],[-81.31413,30.939804],[-81.38614,30.758417],[-81.350136,30.71523],[-81.53015,30.71523],[-81.60216,30.723867],[-81.63816,30.723867],[-81.63816,30.732506],[-81.674164,30.741142],[-81.674164,30.74978],[-81.710175,30.74978],[-81.78218,30.775692],[-81.818184,30.78433],[-81.89019,30.81888],[-81.9982,30.775692],[-82.0342,30.758417],[-82.0342,30.74978],[-82.0342,30.602943],[-81.9982,30.533844],[-82.0342,30.533844],[-82.0342,30.525208],[-82.0342,30.499294],[-81.9982,30.499294],[-82.0342,30.48202],[-82.0342,30.438833],[-82.0342,30.430195],[-82.0342,30.369734],[-82.0342,30.361095],[-82.070206,30.361095],[-82.10621,30.361095],[-82.10621,30.369734],[-82.178215,30.361095],[-82.21422,30.430195],[-82.21422,30.438833],[-82.21422,30.568394],[-83.150314,30.620218],[-83.58236,30.654768],[-83.762375,30.654768],[-84.84248,30.706593],[-84.91449,30.74978],[-84.95049,30.862066],[-84.986496,31.000265],[-85.0225,31.112553],[-85.094505,31.155739],[-85.094505,31.414862],[-85.0585,31.414862],[-85.0585,31.630798],[-85.130516,31.682623],[-85.130516,31.898558],[-85.0585,31.967657],[-85.0585,32.140408],[-84.91449,32.218143],[-84.91449,32.29588],[-85.0225,32.321793],[-84.986496,32.390892],[-84.986496,32.520454],[-85.094505,32.63274],[-85.094505,32.641376],[-85.16652,32.848675],[-85.16652,32.85731],[-85.20252,32.874588],[-85.238525,33.055973],[-85.238525,33.21145],[-85.27453,33.23736],[-85.27453,33.37556],[-85.31053,33.427383],[-85.31053,33.57422],[-85.346535,33.61741],[-85.346535,33.77288],[-85.38254,33.824703],[-85.38254,33.962906],[-85.41854,33.997456],[-85.41854,34.14429],[-85.454544,34.17884],[-85.454544,34.325676],[-85.49055,34.342953],[-85.49055,34.498425],[-85.52655,34.515697],[-85.52655,34.662537],[-85.59856,34.8612],[-85.59856,34.98212]]]},properties:{iso_3166_2:"US-GA",postal:"GA",name:"Georgia",label_en:"Georgia"},id:"Q1428"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-106.624664,31.950382],[-106.624664,31.95902],[-106.624664,31.967657],[-106.624664,31.976295],[-106.624664,32.00221],[-105.72457,32.00221],[-104.53645,32.00221],[-103.0603,32.00221],[-103.0603,35.24988],[-103.0243,35.62129],[-103.0243,36.502308],[-102.9883,36.502308],[-101.40414,36.502308],[-100,36.502308],[-100,34.558887],[-99.89199,34.558887],[-99.71197,34.377502],[-99.567955,34.41205],[-99.38794,34.377502],[-99.38794,34.45524],[-99.207924,34.342953],[-99.207924,34.230663],[-99.13592,34.21339],[-98.9919,34.21339],[-98.77588,34.127014],[-98.55985,34.152927],[-98.48785,34.06655],[-98.37984,34.152927],[-98.235825,34.127014],[-98.09181,34.152927],[-98.127815,34.06655],[-98.09181,34.006092],[-97.983795,33.997456],[-97.983795,33.902443],[-97.83978,33.850616],[-97.80378,33.91108],[-97.58776,33.962906],[-97.58776,33.902443],[-97.44374,33.902443],[-97.40774,33.816067],[-97.29973,33.867893],[-97.22772,33.91108],[-97.22772,33.919716],[-97.19172,33.91108],[-97.19172,33.746967],[-97.08371,33.729694],[-97.08371,33.84198],[-96.9757,33.87653],[-96.9757,33.928352],[-96.9757,33.936993],[-96.90369,33.954266],[-96.83168,33.867893],[-96.68767,33.84198],[-96.68767,33.91108],[-96.57966,33.885166],[-96.61566,33.84198],[-96.50765,33.77288],[-96.39964,33.77288],[-96.36363,33.686504],[-96.21962,33.755608],[-96.11161,33.833344],[-96.07561,33.84198],[-96.0036,33.850616],[-95.931595,33.87653],[-95.75157,33.850616],[-95.64356,33.91108],[-95.53555,33.893806],[-95.49955,33.893806],[-95.46355,33.87653],[-95.42754,33.867893],[-95.39154,33.867893],[-95.319534,33.87653],[-95.24753,33.902443],[-95.21152,33.954266],[-95.067505,33.91108],[-94.9955,33.859257],[-94.959496,33.850616],[-94.92349,33.816067],[-94.92349,33.80743],[-94.92349,33.798794],[-94.88749,33.77288],[-94.74348,33.729694],[-94.63547,33.686504],[-94.59946,33.677868],[-94.56345,33.660595],[-94.52745,33.64332],[-94.49145,33.64332],[-94.38344,33.565582],[-94.347435,33.548306],[-94.27543,33.582855],[-94.239426,33.582855],[-94.16742,33.582855],[-94.0594,33.582855],[-94.0594,33.021423],[-94.0594,31.99357],[-93.95139,31.915833],[-93.91539,31.898558],[-93.91539,31.889921],[-93.84338,31.743086],[-93.80738,31.734447],[-93.80738,31.535786],[-93.66337,31.397587],[-93.69937,31.302576],[-93.59136,31.224838],[-93.59136,31.173014],[-93.55536,31.181652],[-93.55536,31.008904],[-93.55536,30.974354],[-93.55536,30.965715],[-93.55536,30.92253],[-93.55536,30.801605],[-93.627365,30.732506],[-93.627365,30.723867],[-93.66337,30.672043],[-93.66337,30.663406],[-93.69937,30.594307],[-93.69937,30.585669],[-93.69937,30.44747],[-93.69937,30.438833],[-93.735374,30.421558],[-93.77138,30.361095],[-93.77138,30.34382],[-93.77138,30.335184],[-93.77138,30.326546],[-93.69937,30.291996],[-93.69937,30.28336],[-93.69937,30.240171],[-93.69937,30.231533],[-93.69937,30.222897],[-93.735374,30.21426],[-93.735374,30.196985],[-93.69937,30.196985],[-93.69937,30.17971],[-93.69937,30.171072],[-93.69937,30.153797],[-93.69937,30.14516],[-93.735374,30.093336],[-93.735374,30.084698],[-93.69937,30.058786],[-93.80738,29.989685],[-93.80738,29.903313],[-93.91539,29.834213],[-93.87939,29.756475],[-93.87939,29.747837],[-93.84338,29.67874],[-93.84338,29.64419],[-94.0594,29.635551],[-94.63547,29.402342],[-94.63547,29.290054],[-95.10351,29.065481],[-95.35554,28.858183],[-95.49955,28.806358],[-95.931595,28.590424],[-96.25562,28.460861],[-96.435646,28.305387],[-96.543655,28.253563],[-96.79568,28.089453],[-97.0117,27.882154],[-97.0117,27.83033],[-97.19172,27.605757],[-97.22772,27.467558],[-97.29973,27.329357],[-97.33573,27.147972],[-97.33573,27.001137],[-97.19172,26.465614],[-97.11971,26.318779],[-97.08371,26.14603],[-97.08371,25.964643],[-97.22772,25.964643],[-97.371735,25.921457],[-97.371735,25.835083],[-97.44374,25.84372],[-97.623764,25.964643],[-97.623764,26.025106],[-97.80378,26.033745],[-97.80378,26.059656],[-98.05581,26.033745],[-98.27183,26.076931],[-98.45184,26.223766],[-98.66787,26.241041],[-98.81188,26.361965],[-99.09991,26.396517],[-99.09991,26.51744],[-99.17192,26.534716],[-99.24393,26.811111],[-99.38794,26.932035],[-99.42394,27.070234],[-99.42394,27.251621],[-99.49595,27.26026],[-99.49595,27.502108],[-99.53195,27.614393],[-99.675964,27.631668],[-99.74798,27.72668],[-99.89199,27.795778],[-99.92799,27.985804],[-100,27.99444],[-100,28.06354],[-100.07201,28.149914],[-100.180016,28.167189],[-100.28803,28.253563],[-100.324036,28.3313],[-100.324036,28.50405],[-100.39604,28.512686],[-100.432045,28.642246],[-100.50405,28.659521],[-100.540054,28.832272],[-100.64806,28.90137],[-100.64806,29.082756],[-100.75607,29.151855],[-100.792076,29.255505],[-101.044106,29.393703],[-101.044106,29.462803],[-101.260124,29.523266],[-101.29613,29.661465],[-101.36813,29.661465],[-101.44015,29.791025],[-101.54816,29.756475],[-101.72817,29.765114],[-101.80018,29.8083],[-102.16022,29.799664],[-102.34023,29.8774],[-102.376236,29.765114],[-102.52025,29.782389],[-102.70027,29.730564],[-102.70027,29.652826],[-102.80828,29.54054],[-102.844284,29.350517],[-102.88029,29.350517],[-102.88029,29.212318],[-102.9883,29.186405],[-103.0243,29.10003],[-103.09631,29.082756],[-103.13232,28.979107],[-103.27633,28.987745],[-103.42034,29.030931],[-103.564354,29.143217],[-103.74438,29.195044],[-103.78038,29.255505],[-104.068405,29.324604],[-104.176414,29.393703],[-104.24843,29.514627],[-104.35644,29.523266],[-104.39244,29.57509],[-104.53645,29.652826],[-104.57246,29.8083],[-104.680466,29.903313],[-104.680466,30.196985],[-104.86049,30.37837],[-104.86049,30.51657],[-104.9685,30.602943],[-104.9685,30.663406],[-105.07651,30.689318],[-105.14851,30.775692],[-105.40054,30.85343],[-105.58056,31.000265],[-105.58056,31.078003],[-105.79658,31.181652],[-105.83258,31.268026],[-105.9406,31.311213],[-105.9766,31.38895],[-106.08461,31.397587],[-106.22862,31.466686],[-106.22862,31.544424],[-106.30063,31.570335],[-106.372635,31.734447],[-106.516655,31.786272],[-106.624664,31.829458],[-106.624664,31.950382]],[[-94.52745,33.64332],[-94.56345,33.64332],[-94.56345,33.63468],[-94.52745,33.64332]]]},properties:{iso_3166_2:"US-TX",postal:"TX",name:"Texas",label_en:"Texas"},id:"Q1439"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-84.33843,34.990757],[-84.30243,35.033943],[-84.30243,35.22397],[-84.15842,35.24988],[-84.12241,35.24988],[-84.014404,35.293068],[-84.014404,35.431267],[-83.94239,35.465816],[-83.72637,35.569466],[-83.58236,35.569466],[-83.54636,35.56083],[-83.29433,35.65584],[-83.25832,35.72494],[-83.07831,35.7854],[-82.9703,35.776764],[-82.89829,35.871777],[-82.89829,35.949512],[-82.790276,35.9236],[-82.790276,36.001335],[-82.61026,36.05316],[-82.61026,35.96679],[-82.46625,35.9927],[-82.39424,36.104984],[-82.28623,36.130898],[-82.178215,36.148174],[-82.070206,36.104984],[-81.92619,36.286373],[-81.74618,36.372746],[-81.674164,36.56277],[-81.674164,36.588684],[-81.0621,36.56277],[-80.630066,36.56277],[-80.37804,36.545494],[-79.44194,36.545494],[-77.89379,36.545494],[-76.92169,36.545494],[-76.92169,36.554134],[-75.80558,36.554134],[-75.76958,36.372746],[-75.69757,36.251823],[-75.66157,36.12226],[-75.55356,35.975426],[-75.517555,35.8545],[-75.40954,35.707664],[-75.40954,35.37944],[-75.44554,35.37944],[-75.44554,35.241245],[-75.517555,35.163506],[-75.625565,35.172146],[-75.87759,35.094406],[-75.94959,35.025307],[-76.05761,34.990757],[-76.20162,34.85256],[-76.45364,34.64526],[-76.48965,34.54161],[-76.59766,34.550247],[-76.59766,34.61935],[-76.70567,34.64526],[-76.92169,34.636623],[-77.17371,34.567524],[-77.24573,34.50706],[-77.53375,34.38614],[-77.64176,34.299763],[-77.78578,34.135654],[-77.89379,33.77288],[-78.0018,33.764244],[-78.07381,33.850616],[-78.325836,33.859257],[-78.46985,33.824703],[-78.541855,33.850616],[-78.79388,34.04928],[-78.86589,34.14429],[-78.9739,34.204754],[-79.69397,34.809372],[-80.27003,34.809372],[-80.81008,34.81801],[-80.77408,34.94757],[-80.91809,35.103046],[-81.0261,35.05122],[-81.0621,35.146233],[-81.89019,35.180782],[-82.322235,35.18942],[-82.35824,35.18942],[-82.39424,35.198055],[-82.46625,35.172146],[-82.53825,35.15487],[-82.57426,35.146233],[-82.57426,35.137592],[-82.64626,35.128956],[-82.68227,35.12032],[-82.68227,35.103046],[-82.71827,35.103046],[-82.75427,35.08577],[-82.75427,35.077133],[-82.790276,35.077133],[-83.11431,34.999397],[-83.47435,34.990757],[-84.33843,34.990757]]]},properties:{iso_3166_2:"US-NC",postal:"NC",name:"North Carolina",label_en:"North Carolina"},id:"Q1454"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-83.36634,34.705723],[-83.29433,34.809372],[-83.29433,34.81801],[-83.25832,34.84392],[-83.25832,34.85256],[-83.25832,34.8612],[-83.25832,34.869835],[-83.22232,34.87847],[-83.18632,34.887108],[-83.22232,34.887108],[-83.18632,34.895744],[-83.150314,34.921658],[-83.150314,34.930298],[-83.11431,34.930298],[-83.11431,34.938934],[-83.11431,34.94757],[-83.11431,34.956207],[-83.11431,34.999397],[-82.790276,35.077133],[-82.75427,35.077133],[-82.75427,35.08577],[-82.71827,35.103046],[-82.68227,35.103046],[-82.68227,35.12032],[-82.64626,35.128956],[-82.57426,35.137592],[-82.57426,35.146233],[-82.53825,35.15487],[-82.46625,35.172146],[-82.39424,35.198055],[-82.35824,35.18942],[-82.322235,35.18942],[-81.89019,35.180782],[-81.0621,35.146233],[-81.0261,35.05122],[-80.91809,35.103046],[-80.77408,34.94757],[-80.81008,34.81801],[-80.27003,34.809372],[-79.69397,34.809372],[-78.9739,34.204754],[-78.86589,34.14429],[-78.79388,34.04928],[-78.541855,33.850616],[-78.79388,33.746967],[-79.08191,33.47921],[-79.153915,33.358284],[-79.153915,33.159622],[-79.29793,33.055973],[-79.33393,32.986874],[-79.65797,32.82276],[-79.765976,32.73639],[-79.83798,32.745026],[-79.981995,32.589554],[-80.09001,32.580914],[-80.30603,32.468628],[-80.45004,32.278606],[-80.738075,32.079945],[-80.738075,32.03676],[-80.91809,32.03676],[-81.09811,32.097218],[-81.13411,32.149044],[-81.13411,32.174957],[-81.13411,32.19223],[-81.13411,32.321793],[-81.13411,32.33043],[-81.13411,32.339066],[-81.20612,32.40817],[-81.20612,32.485905],[-81.27813,32.555004],[-81.27813,32.56364],[-81.38614,32.580914],[-81.42214,32.63274],[-81.38614,32.641376],[-81.38614,32.658653],[-81.38614,32.66729],[-81.42214,32.719112],[-81.42214,32.727753],[-81.42214,32.745026],[-81.42214,32.753662],[-81.42214,32.779575],[-81.42214,32.788216],[-81.42214,32.814125],[-81.42214,32.82276],[-81.458145,32.84004],[-81.458145,32.848675],[-81.458145,32.874588],[-81.458145,32.891865],[-81.458145,32.9005],[-81.49415,32.96096],[-81.49415,32.9696],[-81.49415,33.021423],[-81.566154,33.047337],[-81.566154,33.055973],[-81.566154,33.06461],[-81.60216,33.081886],[-81.60216,33.090523],[-81.63816,33.09916],[-81.78218,33.1769],[-81.78218,33.185535],[-81.78218,33.21145],[-81.85419,33.254635],[-81.818184,33.26327],[-81.85419,33.306458],[-81.85419,33.315098],[-81.89019,33.306458],[-81.89019,33.323734],[-81.92619,33.323734],[-81.92619,33.341007],[-81.92619,33.349648],[-81.92619,33.36692],[-81.92619,33.37556],[-81.92619,33.47057],[-82.10621,33.591496],[-82.21422,33.626045],[-82.28623,33.764244],[-82.39424,33.867893],[-82.53825,33.94563],[-82.61026,34.06655],[-82.71827,34.135654],[-82.75427,34.291126],[-82.89829,34.48115],[-82.934296,34.48115],[-83.0063,34.48115],[-83.18632,34.602074],[-83.18632,34.61071],[-83.25832,34.61935],[-83.36634,34.705723]]]},properties:{iso_3166_2:"US-SC",postal:"SC",name:"South Carolina",label_en:"South Carolina"},id:"Q1456"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-91.539154,31.371675],[-91.46715,31.535786],[-91.39514,31.596249],[-91.50315,31.58761],[-91.50315,31.639435],[-91.39514,31.622162],[-91.39514,31.734447],[-91.28713,31.751722],[-91.35914,31.760359],[-91.35914,31.846733],[-91.28713,31.855371],[-91.179115,31.907196],[-91.179115,31.984934],[-91.071106,32.00221],[-91.10711,32.045395],[-91.0351,32.12313],[-91.179115,32.131767],[-91.179115,32.200867],[-91.071106,32.22678],[-91.0351,32.235416],[-90.9991,32.22678],[-90.9631,32.287243],[-90.89109,32.339066],[-90.9991,32.347706],[-90.9631,32.451355],[-91.10711,32.45999],[-91.071106,32.537727],[-90.9991,32.59819],[-91.0351,32.641376],[-91.14311,32.589554],[-91.14311,32.85731],[-91.071106,32.874588],[-91.071106,32.978237],[-91.14311,32.986874],[-91.14311,32.9005],[-91.21512,32.909138],[-91.179115,33.00415],[-91.10711,33.047337],[-91.21512,33.125072],[-91.071106,33.14235],[-91.10711,33.26327],[-91.14311,33.349648],[-91.071106,33.40147],[-91.10711,33.444656],[-91.179115,33.496483],[-91.21512,33.57422],[-91.14311,33.582855],[-91.21512,33.70378],[-91.10711,33.660595],[-91.0351,33.70378],[-91.14311,33.712418],[-91.14311,33.781517],[-90.9991,33.764244],[-91.071106,33.824703],[-90.9991,33.928352],[-91.071106,33.988815],[-90.89109,34.023365],[-90.89109,34.092464],[-90.9631,34.10974],[-90.89109,34.187477],[-90.85509,34.21339],[-90.74708,34.291126],[-90.78308,34.360226],[-90.67507,34.368862],[-90.567055,34.41205],[-90.60306,34.498425],[-90.53105,34.54161],[-90.567055,34.64526],[-90.53105,34.697086],[-90.53105,34.740273],[-90.459045,34.723],[-90.459045,34.887108],[-90.42304,34.835285],[-90.31503,34.85256],[-90.24303,34.904385],[-90.31503,34.999397],[-89.991,34.990757],[-88.91089,34.990757],[-88.874886,34.999397],[-88.19082,34.999397],[-88.154816,34.91302],[-88.08281,34.895744],[-88.11881,34.82665],[-88.11881,34.61935],[-88.154816,34.593437],[-88.154816,34.377502],[-88.19082,34.31704],[-88.19082,34.057915],[-88.22682,34.032],[-88.22682,33.781517],[-88.262825,33.764244],[-88.262825,33.496483],[-88.29883,33.410107],[-88.29883,33.20281],[-88.33483,33.185535],[-88.33483,32.93505],[-88.370834,32.874588],[-88.370834,32.59819],[-88.40684,32.580914],[-88.40684,32.287243],[-88.44284,32.252693],[-88.44284,32.03676],[-88.47885,31.933107],[-88.47885,31.699898],[-88.44284,31.622162],[-88.44284,31.000265],[-88.40684,30.974354],[-88.40684,30.291996],[-88.40684,30.257446],[-88.370834,30.162436],[-88.44284,30.14516],[-88.80288,30.205622],[-88.982895,30.153797],[-89.05491,30.162436],[-89.09091,30.153797],[-89.19892,30.21426],[-89.234924,30.188347],[-89.52295,30.162436],[-89.594955,30.188347],[-89.63097,30.28336],[-89.63097,30.291996],[-89.70297,30.473383],[-89.70297,30.48202],[-89.81098,30.542482],[-89.81098,30.602943],[-89.81098,30.611582],[-89.846985,30.71523],[-89.846985,30.723867],[-89.81098,30.732506],[-89.81098,30.741142],[-89.81098,30.74978],[-89.846985,30.758417],[-89.846985,30.767056],[-89.81098,30.775692],[-89.846985,30.775692],[-89.81098,30.78433],[-89.81098,30.792967],[-89.77498,30.827517],[-89.77498,30.836155],[-89.77498,30.844791],[-89.77498,30.85343],[-89.738976,31.000265],[-90.819084,31.000265],[-91.64716,31.000265],[-91.57516,31.017542],[-91.61116,31.095278],[-91.57516,31.173014],[-91.64716,31.268026],[-91.50315,31.276663],[-91.539154,31.371675]],[[-89.05491,30.300634],[-89.018906,30.257446],[-88.83888,30.300634],[-88.874886,30.335184],[-89.018906,30.335184],[-89.05491,30.300634]]],[[[-91.10711,33.444656],[-91.179115,33.37556],[-91.21512,33.418747],[-91.10711,33.444656]]]]},properties:{iso_3166_2:"US-MS",postal:"MS",name:"Mississippi",label_en:"Mississippi"},id:"Q1494"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-90.20702,35.033943],[-90.13502,35.128956],[-90.13502,35.25852],[-90.09901,35.413994],[-90.17102,35.370804],[-90.13502,35.465816],[-90.063,35.474453],[-90.063,35.405354],[-89.991,35.431267],[-90.063,35.500366],[-89.91899,35.61265],[-89.954994,35.742214],[-89.846985,35.75085],[-89.70297,35.811314],[-89.77498,35.89769],[-89.66697,35.880413],[-89.63097,35.88905],[-89.738976,36.001335],[-89.594955,36.113625],[-89.594955,36.174088],[-89.70297,36.251823],[-89.594955,36.243183],[-89.55895,36.243183],[-89.55895,36.251823],[-89.594955,36.338196],[-89.52295,36.338196],[-89.52295,36.49367],[-89.486946,36.49367],[-89.41494,36.502308],[-88.19082,36.502308],[-88.04681,36.49367],[-88.04681,36.649143],[-88.08281,36.675056],[-87.86679,36.66642],[-87.86679,36.63187],[-87.68677,36.640507],[-87.0027,36.640507],[-86.930695,36.649143],[-86.28263,36.649143],[-86.13861,36.63187],[-85.70657,36.614594],[-85.0225,36.623234],[-84.626465,36.59732],[-83.69037,36.580044],[-83.69037,36.59732],[-82.61026,36.59732],[-81.92619,36.59732],[-81.92619,36.614594],[-81.63816,36.614594],[-81.674164,36.588684],[-81.674164,36.56277],[-81.74618,36.372746],[-81.92619,36.286373],[-82.070206,36.104984],[-82.178215,36.148174],[-82.28623,36.130898],[-82.39424,36.104984],[-82.46625,35.9927],[-82.61026,35.96679],[-82.61026,36.05316],[-82.790276,36.001335],[-82.790276,35.9236],[-82.89829,35.949512],[-82.89829,35.871777],[-82.9703,35.776764],[-83.07831,35.7854],[-83.25832,35.72494],[-83.29433,35.65584],[-83.54636,35.56083],[-83.58236,35.569466],[-83.72637,35.569466],[-83.94239,35.465816],[-84.014404,35.431267],[-84.014404,35.293068],[-84.12241,35.24988],[-84.15842,35.24988],[-84.30243,35.22397],[-84.30243,35.033943],[-84.33843,34.990757],[-85.59856,34.98212],[-85.70657,34.990757],[-87.0027,34.990757],[-87.0027,34.999397],[-88.19082,34.999397],[-88.874886,34.999397],[-88.91089,34.990757],[-89.991,34.990757],[-90.31503,34.999397],[-90.20702,35.033943]]]},properties:{iso_3166_2:"US-TN",postal:"TN",name:"Tennessee",label_en:"Tennessee"},id:"Q1509"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-109.0369,37.00328],[-108.38884,37.00328],[-106.876686,37.00328],[-106.876686,36.99464],[-105.90459,36.99464],[-104.53645,36.99464],[-103.0603,36.99464],[-102.9883,37.00328],[-102.9883,36.502308],[-103.0243,36.502308],[-103.0243,35.62129],[-103.0603,35.24988],[-103.0603,32.00221],[-104.53645,32.00221],[-105.72457,32.00221],[-106.624664,32.00221],[-106.624664,31.976295],[-106.624664,31.967657],[-106.624664,31.95902],[-106.624664,31.950382],[-106.624664,31.829458],[-106.516655,31.786272],[-107.48875,31.786272],[-108.208824,31.786272],[-108.208824,31.337126],[-109.0369,31.328487],[-109.0369,37.00328]]]},properties:{iso_3166_2:"US-NM",postal:"NM",name:"New Mexico",label_en:"New Mexico"},id:"Q1522"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.22772,49.000668],[-96.39964,49.000668],[-95.13951,49.000668],[-95.13951,49.372078],[-94.959496,49.372078],[-94.81548,49.320255],[-94.81548,49.19933],[-94.74348,49.09568],[-94.67147,48.888382],[-94.70747,48.776096],[-94.52745,48.69836],[-94.27543,48.706997],[-94.239426,48.646534],[-93.9874,48.646534],[-93.80738,48.611984],[-93.80738,48.51697],[-93.627365,48.51697],[-93.44734,48.55152],[-93.483345,48.58607],[-93.19532,48.646534],[-92.94329,48.603348],[-92.61926,48.4997],[-92.72727,48.46515],[-92.51125,48.439236],[-92.40324,48.240574],[-92.33123,48.231937],[-92.29523,48.344223],[-92.043205,48.3615],[-91.9712,48.231937],[-91.71917,48.206024],[-91.71917,48.11101],[-91.50315,48.067825],[-91.25112,48.076466],[-91.10711,48.171474],[-90.85509,48.240574],[-90.74708,48.09374],[-90.027,48.09374],[-89.91899,47.99009],[-89.738976,48.02464],[-89.486946,48.016003],[-89.66697,47.74824],[-89.77498,47.540943],[-89.954994,47.29046],[-90.67507,47.299095],[-91.935196,46.7463],[-92.0072,46.703114],[-92.151215,46.720387],[-92.259224,46.651287],[-92.259224,46.659924],[-92.29523,46.659924],[-92.29523,46.07258],[-92.36723,46.020756],[-92.47525,45.97757],[-92.72727,45.891193],[-92.763275,45.77027],[-92.871284,45.72708],[-92.871284,45.57161],[-92.871284,45.562973],[-92.72727,45.554333],[-92.655266,45.459324],[-92.69127,45.321125],[-92.763275,45.29521],[-92.763275,44.811516],[-92.79928,44.73378],[-92.69127,44.69923],[-92.58326,44.604218],[-92.51125,44.569668],[-92.43925,44.56103],[-92.33123,44.56103],[-92.29523,44.474655],[-91.935196,44.353733],[-91.89919,44.215534],[-91.61116,44.034145],[-91.431145,43.999596],[-91.28713,43.809574],[-91.25112,43.809574],[-91.25112,43.533176],[-91.21512,43.498627],[-92.43925,43.498627],[-93.627365,43.498627],[-94.455444,43.498627],[-95.71557,43.498627],[-96.435646,43.498627],[-96.435646,45.29521],[-96.47165,45.355675],[-96.68767,45.407497],[-96.86768,45.60616],[-96.83168,45.657986],[-96.651665,45.73572],[-96.651665,45.77027],[-96.651665,45.778908],[-96.61566,45.778908],[-96.57966,45.93438],[-96.57966,45.94302],[-96.543655,46.10713],[-96.57966,46.228054],[-96.57966,46.24533],[-96.57966,46.253967],[-96.57966,46.279877],[-96.57966,46.288517],[-96.61566,46.288517],[-96.61566,46.297153],[-96.61566,46.314426],[-96.61566,46.348976],[-96.651665,46.392166],[-96.68767,46.392166],[-96.68767,46.40944],[-96.68767,46.418076],[-96.72367,46.435352],[-96.72367,46.44399],[-96.72367,46.461266],[-96.72367,46.469902],[-96.72367,46.495815],[-96.72367,46.50445],[-96.72367,46.521725],[-96.759674,46.521725],[-96.759674,46.539],[-96.72367,46.539],[-96.72367,46.547638],[-96.759674,46.547638],[-96.759674,46.590824],[-96.759674,46.599464],[-96.759674,46.6081],[-96.759674,46.616737],[-96.79568,46.616737],[-96.79568,46.625378],[-96.79568,46.634014],[-96.79568,46.772213],[-96.79568,46.78085],[-96.79568,46.841312],[-96.79568,46.84995],[-96.759674,46.84995],[-96.79568,46.858585],[-96.79568,46.875862],[-96.759674,46.875862],[-96.759674,46.8845],[-96.759674,46.90177],[-96.759674,46.91041],[-96.759674,46.91905],[-96.759674,46.927685],[-96.79568,46.962234],[-96.83168,47.03997],[-96.83168,47.057247],[-96.83168,47.065884],[-96.83168,47.126347],[-96.83168,47.134983],[-96.83168,47.15226],[-96.83168,47.160896],[-96.83168,47.18681],[-96.83168,47.195446],[-96.83168,47.229996],[-96.83168,47.238632],[-96.83168,47.247272],[-96.83168,47.25591],[-96.83168,47.264545],[-96.83168,47.273182],[-96.83168,47.32501],[-96.83168,47.333645],[-96.83168,47.35956],[-96.83168,47.368195],[-96.86768,47.368195],[-96.86768,47.37683],[-96.83168,47.385468],[-96.86768,47.41138],[-96.86768,47.497757],[-96.86768,47.506393],[-96.86768,47.51503],[-96.86768,47.540943],[-96.86768,47.558216],[-96.86768,47.566856],[-96.86768,47.610043],[-96.86768,47.61868],[-96.90369,47.661865],[-96.9757,47.791428],[-97.0117,47.903713],[-97.0117,47.912354],[-97.155716,48.14556],[-97.11971,48.2233],[-97.155716,48.240574],[-97.11971,48.283764],[-97.11971,48.2924],[-97.11971,48.301037],[-97.11971,48.309673],[-97.11971,48.32695],[-97.155716,48.378773],[-97.155716,48.38741],[-97.11971,48.413322],[-97.155716,48.413322],[-97.155716,48.421963],[-97.11971,48.421963],[-97.11971,48.439236],[-97.11971,48.447872],[-97.155716,48.473785],[-97.155716,48.577435],[-97.155716,48.58607],[-97.11971,48.611984],[-97.11971,48.629257],[-97.11971,48.637897],[-97.08371,48.66381],[-97.155716,48.79337],[-97.155716,48.80201],[-97.19172,48.810646],[-97.19172,48.819283],[-97.22772,49.000668]]]},properties:{iso_3166_2:"US-MN",postal:"MN",name:"Minnesota",label_en:"Minnesota"},id:"Q1527"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-92.47525,45.97757],[-92.36723,46.020756],[-92.29523,46.07258],[-92.29523,46.659924],[-92.259224,46.659924],[-92.259224,46.651287],[-92.151215,46.720387],[-92.0072,46.703114],[-91.935196,46.7463],[-90.67507,47.299095],[-89.954994,47.29046],[-90.09901,47.03997],[-90.42304,46.547638],[-90.38704,46.539],[-90.31503,46.521725],[-90.24303,46.50445],[-90.20702,46.469902],[-90.20702,46.461266],[-90.17102,46.461266],[-90.17102,46.452625],[-90.17102,46.44399],[-90.17102,46.435352],[-90.17102,46.400803],[-90.13502,46.400803],[-90.13502,46.392166],[-90.13502,46.366253],[-90.13502,46.357616],[-90.09901,46.357616],[-90.13502,46.348976],[-90.13502,46.34034],[-89.018906,46.11577],[-88.80288,46.029392],[-88.76688,46.029392],[-88.76688,46.020756],[-88.73087,46.020756],[-88.69487,46.01212],[-88.65887,45.994843],[-88.65887,45.986206],[-88.58686,46.01212],[-88.55086,46.020756],[-88.514854,46.020756],[-88.47885,45.994843],[-88.44284,45.994843],[-88.44284,45.986206],[-88.40684,45.986206],[-88.370834,45.986206],[-88.33483,45.960293],[-88.262825,45.951656],[-88.22682,45.951656],[-88.22682,45.94302],[-88.19082,45.94302],[-88.154816,45.94302],[-88.154816,45.93438],[-88.11881,45.925743],[-88.11881,45.917107],[-88.11881,45.787544],[-87.9388,45.761635],[-87.9388,45.752995],[-87.90279,45.752995],[-87.79478,45.70981],[-87.83078,45.562973],[-87.79478,45.46796],[-87.86679,45.36431],[-87.86679,45.347034],[-87.83078,45.347034],[-87.83078,45.355675],[-87.79478,45.347034],[-87.68677,45.381584],[-87.650764,45.312485],[-87.72277,45.2693],[-87.72277,45.157013],[-87.61476,45.09655],[-87.434746,45.079277],[-87.39874,45.2002],[-87.18272,45.32976],[-87.11071,45.442047],[-86.75067,45.442047],[-86.24663,45.23475],[-86.53465,45.053364],[-86.64266,44.949715],[-86.75067,44.776966],[-86.78668,44.62149],[-86.85869,44.51784],[-86.85869,44.440105],[-87.038704,44.103245],[-87.038704,43.99096],[-87.11071,43.81821],[-87.11071,43.62819],[-87.14671,43.610912],[-87.14671,43.299965],[-87.11071,43.248142],[-87.11071,43.023567],[-87.07471,42.997654],[-87.07471,42.764446],[-87.038704,42.74717],[-87.038704,42.496685],[-88.11881,42.496685],[-89.41494,42.496685],[-89.486946,42.50532],[-90.63906,42.50532],[-90.71107,42.64352],[-90.9631,42.686707],[-91.071106,42.738533],[-91.071106,42.833546],[-91.14311,42.90264],[-91.179115,43.135853],[-91.071106,43.22223],[-91.071106,43.29133],[-91.21512,43.35179],[-91.21512,43.498627],[-91.25112,43.533176],[-91.25112,43.809574],[-91.28713,43.809574],[-91.431145,43.999596],[-91.61116,44.034145],[-91.89919,44.215534],[-91.935196,44.353733],[-92.29523,44.474655],[-92.33123,44.56103],[-92.43925,44.56103],[-92.51125,44.569668],[-92.58326,44.604218],[-92.69127,44.69923],[-92.79928,44.73378],[-92.763275,44.811516],[-92.763275,45.29521],[-92.69127,45.321125],[-92.655266,45.459324],[-92.72727,45.554333],[-92.871284,45.562973],[-92.871284,45.57161],[-92.871284,45.72708],[-92.763275,45.77027],[-92.72727,45.891193],[-92.47525,45.97757]]]},properties:{iso_3166_2:"US-WI",postal:"WI",name:"Wisconsin",label_en:"Wisconsin"},id:"Q1537"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-96.651665,42.738533],[-96.61566,42.74717],[-96.57966,42.798992],[-96.57966,42.824905],[-96.543655,42.833546],[-96.543655,42.842182],[-96.543655,42.859455],[-96.543655,42.868095],[-96.543655,42.894005],[-96.543655,42.919918],[-96.543655,42.928555],[-96.50765,42.937195],[-96.47165,43.058117],[-96.47165,43.066753],[-96.47165,43.092667],[-96.435646,43.101303],[-96.50765,43.22223],[-96.543655,43.22223],[-96.57966,43.239502],[-96.57966,43.29133],[-96.57966,43.299965],[-96.543655,43.299965],[-96.543655,43.3086],[-96.543655,43.31724],[-96.543655,43.34315],[-96.543655,43.35179],[-96.543655,43.369064],[-96.50765,43.369064],[-96.57966,43.438164],[-96.61566,43.438164],[-96.61566,43.4468],[-96.61566,43.45544],[-96.57966,43.48999],[-96.57966,43.498627],[-96.435646,43.498627],[-95.71557,43.498627],[-94.455444,43.498627],[-93.627365,43.498627],[-92.43925,43.498627],[-91.21512,43.498627],[-91.21512,43.35179],[-91.071106,43.29133],[-91.071106,43.22223],[-91.179115,43.135853],[-91.14311,42.90264],[-91.071106,42.833546],[-91.071106,42.738533],[-90.9631,42.686707],[-90.71107,42.64352],[-90.63906,42.50532],[-90.63906,42.462135],[-90.42304,42.332573],[-90.38704,42.21165],[-90.17102,42.125275],[-90.17102,41.80569],[-90.31503,41.753864],[-90.351036,41.581116],[-90.459045,41.520657],[-90.60306,41.512016],[-90.63906,41.460194],[-91.0351,41.425644],[-91.10711,41.218346],[-90.9631,41.14061],[-90.9631,40.916035],[-91.10711,40.821022],[-91.10711,40.66555],[-91.35914,40.613724],[-91.35914,40.389153],[-91.431145,40.380512],[-91.46715,40.380512],[-91.50315,40.39779],[-91.50315,40.406425],[-91.68317,40.553265],[-91.71917,40.613724],[-92.18722,40.59645],[-93.123314,40.579174],[-93.95139,40.579174],[-93.95139,40.570538],[-94.88749,40.570538],[-94.88749,40.579174],[-95.571556,40.579174],[-95.75157,40.58781],[-95.78758,40.66555],[-95.85959,40.674187],[-95.89559,40.751923],[-95.823586,40.777836],[-95.823586,40.985134],[-95.85959,40.99377],[-95.85959,41.183796],[-95.931595,41.183796],[-95.89559,41.287445],[-95.931595,41.46883],[-96.039604,41.512016],[-96.11161,41.53793],[-96.11161,41.727955],[-96.07561,41.814327],[-96.14761,41.857513],[-96.18362,42.004353],[-96.291626,42.056175],[-96.25562,42.11664],[-96.36363,42.16846],[-96.32764,42.27211],[-96.39964,42.323936],[-96.39964,42.48805],[-96.435646,42.48805],[-96.47165,42.496685],[-96.50765,42.57442],[-96.50765,42.60897],[-96.50765,42.617607],[-96.57966,42.669434],[-96.57966,42.67807],[-96.57966,42.686707],[-96.57966,42.695347],[-96.61566,42.695347],[-96.61566,42.703983],[-96.61566,42.721256],[-96.651665,42.729897],[-96.651665,42.738533]]]},properties:{iso_3166_2:"US-IA",postal:"IA",name:"Iowa",label_en:"Iowa"},id:"Q1546"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-104.068405,42.997654],[-102.9883,42.997654],[-101.44015,42.997654],[-100.61206,42.997654],[-99.27993,42.997654],[-98.48785,42.997654],[-98.45184,42.928555],[-97.94779,42.764446],[-97.875786,42.868095],[-97.58776,42.842182],[-97.44374,42.85082],[-97.22772,42.85082],[-97.19172,42.798992],[-96.9397,42.721256],[-96.68767,42.660793],[-96.68767,42.57442],[-96.61566,42.50532],[-96.47165,42.48805],[-96.435646,42.48805],[-96.39964,42.48805],[-96.39964,42.323936],[-96.32764,42.27211],[-96.36363,42.16846],[-96.25562,42.11664],[-96.291626,42.056175],[-96.18362,42.004353],[-96.14761,41.857513],[-96.07561,41.814327],[-96.11161,41.727955],[-96.11161,41.53793],[-96.039604,41.512016],[-95.931595,41.46883],[-95.89559,41.287445],[-95.931595,41.183796],[-95.85959,41.183796],[-95.85959,40.99377],[-95.823586,40.985134],[-95.823586,40.777836],[-95.89559,40.751923],[-95.85959,40.674187],[-95.78758,40.66555],[-95.75157,40.58781],[-95.679565,40.553265],[-95.64356,40.311417],[-95.46355,40.242313],[-95.46355,40.164577],[-95.39154,40.130028],[-95.42754,40.035015],[-95.35554,40.02638],[-95.319534,40.000465],[-96.47165,40.000465],[-97.47975,40.000465],[-99.0639,40.000465],[-100,40.000465],[-100.82808,40.000465],[-102.05221,40.000465],[-102.05221,41.00241],[-103.20432,41.00241],[-104.068405,41.00241],[-104.068405,42.997654]]]},properties:{iso_3166_2:"US-NE",postal:"NE",name:"Nebraska",label_en:"Nebraska"},id:"Q1553"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-102.05221,40.000465],[-100.82808,40.000465],[-100,40.000465],[-99.0639,40.000465],[-97.47975,40.000465],[-96.47165,40.000465],[-95.319534,40.000465],[-95.21152,39.905457],[-95.0315,39.862267],[-94.959496,39.896816],[-94.85149,39.732708],[-94.959496,39.741344],[-95.10351,39.577232],[-95.10351,39.51677],[-94.88749,39.395847],[-94.92349,39.31811],[-94.81548,39.25765],[-94.77948,39.179913],[-94.67147,39.179913],[-94.59946,39.162636],[-94.59946,37.815197],[-94.63547,37.77201],[-94.63547,37.633812],[-94.59946,37.6079],[-94.59946,37.426514],[-94.63547,37.409237],[-94.63547,36.99464],[-94.88749,37.00328],[-96.39964,37.00328],[-97.76778,36.99464],[-98.55985,36.99464],[-100.64806,37.00328],[-100.9361,36.99464],[-102.05221,36.99464],[-102.05221,40.000465]]]},properties:{iso_3166_2:"US-KS",postal:"KS",name:"Kansas",label_en:"Kansas"},id:"Q1558"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-95.75157,40.58781],[-95.571556,40.579174],[-94.88749,40.579174],[-94.88749,40.570538],[-93.95139,40.570538],[-93.95139,40.579174],[-93.123314,40.579174],[-92.18722,40.59645],[-91.71917,40.613724],[-91.68317,40.553265],[-91.50315,40.406425],[-91.50315,40.39779],[-91.46715,40.380512],[-91.431145,40.380512],[-91.50315,40.29414],[-91.50315,40.02638],[-91.431145,39.95728],[-91.431145,39.82772],[-91.35914,39.810444],[-91.35914,39.706795],[-91.071106,39.51677],[-91.071106,39.464947],[-90.71107,39.249012],[-90.71107,39.024437],[-90.67507,38.920788],[-90.53105,38.8776],[-90.49505,38.9467],[-90.38704,38.963978],[-90.09901,38.85169],[-90.20702,38.739403],[-90.17102,38.60984],[-90.27903,38.523468],[-90.27903,38.428455],[-90.351036,38.393906],[-90.38704,38.264343],[-90.24303,38.10023],[-89.954994,37.962032],[-89.954994,37.87566],[-89.81098,37.892933],[-89.77498,37.849747],[-89.66697,37.80656],[-89.66697,37.746098],[-89.52295,37.70291],[-89.52295,37.521526],[-89.41494,37.417877],[-89.41494,37.348778],[-89.52295,37.314228],[-89.45094,37.253765],[-89.45094,37.150116],[-89.37894,37.10693],[-89.37894,37.02919],[-89.27093,36.986004],[-89.30693,37.06374],[-89.234924,37.06374],[-89.19892,36.977367],[-89.126915,36.977367],[-89.16292,36.752792],[-89.19892,36.580044],[-89.27093,36.56277],[-89.30693,36.63187],[-89.37894,36.623234],[-89.41494,36.502308],[-89.486946,36.49367],[-89.486946,36.580044],[-89.55895,36.580044],[-89.52295,36.502308],[-89.52295,36.49367],[-89.52295,36.338196],[-89.594955,36.338196],[-89.55895,36.251823],[-89.55895,36.243183],[-89.594955,36.243183],[-89.70297,36.251823],[-89.594955,36.174088],[-89.594955,36.113625],[-89.738976,36.001335],[-90.38704,35.9927],[-90.24303,36.174088],[-90.063,36.277737],[-90.063,36.39866],[-90.13502,36.45912],[-90.13502,36.46776],[-90.17102,36.49367],[-90.31503,36.502308],[-91.46715,36.502308],[-92.655266,36.502308],[-94.0594,36.502308],[-94.63547,36.502308],[-94.59946,36.605957],[-94.63547,36.66642],[-94.63547,36.99464],[-94.63547,37.409237],[-94.59946,37.426514],[-94.59946,37.6079],[-94.63547,37.633812],[-94.63547,37.77201],[-94.59946,37.815197],[-94.59946,39.162636],[-94.67147,39.179913],[-94.77948,39.179913],[-94.81548,39.25765],[-94.92349,39.31811],[-94.88749,39.395847],[-95.10351,39.51677],[-95.10351,39.577232],[-94.959496,39.741344],[-94.85149,39.732708],[-94.959496,39.896816],[-95.0315,39.862267],[-95.21152,39.905457],[-95.319534,40.000465],[-95.35554,40.02638],[-95.42754,40.035015],[-95.39154,40.130028],[-95.46355,40.164577],[-95.46355,40.242313],[-95.64356,40.311417],[-95.679565,40.553265],[-95.75157,40.58781]]]},properties:{iso_3166_2:"US-MO",postal:"MO",name:"Missouri",label_en:"Missouri"},id:"Q1581"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.0594,33.021423],[-92.9793,33.021423],[-92.94329,33.012787],[-92.07921,33.012787],[-92.0072,33.00415],[-91.179115,33.00415],[-91.21512,32.909138],[-91.14311,32.9005],[-91.14311,32.986874],[-91.071106,32.978237],[-91.071106,32.874588],[-91.14311,32.85731],[-91.14311,32.589554],[-91.0351,32.641376],[-90.9991,32.59819],[-91.071106,32.537727],[-91.10711,32.45999],[-90.9631,32.451355],[-90.9991,32.347706],[-90.89109,32.339066],[-90.9631,32.287243],[-90.9991,32.22678],[-91.0351,32.235416],[-91.071106,32.22678],[-91.179115,32.200867],[-91.179115,32.131767],[-91.0351,32.12313],[-91.10711,32.045395],[-91.071106,32.00221],[-91.179115,31.984934],[-91.179115,31.907196],[-91.28713,31.855371],[-91.35914,31.846733],[-91.35914,31.760359],[-91.28713,31.751722],[-91.39514,31.734447],[-91.39514,31.622162],[-91.50315,31.639435],[-91.50315,31.58761],[-91.39514,31.596249],[-91.46715,31.535786],[-91.539154,31.371675],[-91.50315,31.276663],[-91.64716,31.268026],[-91.57516,31.173014],[-91.61116,31.095278],[-91.57516,31.017542],[-91.64716,31.000265],[-90.819084,31.000265],[-89.738976,31.000265],[-89.77498,30.85343],[-89.77498,30.844791],[-89.77498,30.836155],[-89.77498,30.827517],[-89.81098,30.792967],[-89.81098,30.78433],[-89.846985,30.775692],[-89.81098,30.775692],[-89.846985,30.767056],[-89.846985,30.758417],[-89.81098,30.74978],[-89.81098,30.741142],[-89.81098,30.732506],[-89.846985,30.723867],[-89.846985,30.71523],[-89.81098,30.611582],[-89.81098,30.602943],[-89.81098,30.542482],[-89.70297,30.48202],[-89.70297,30.473383],[-89.63097,30.291996],[-89.63097,30.28336],[-89.594955,30.188347],[-89.52295,30.162436],[-89.234924,30.188347],[-89.19892,30.21426],[-89.09091,30.153797],[-89.05491,30.162436],[-88.982895,30.153797],[-88.83888,30.136522],[-88.76688,30.024237],[-88.76688,29.799664],[-88.91089,29.601002],[-89.05491,29.471441],[-89.126915,29.454166],[-89.09091,29.298693],[-88.91089,29.246866],[-88.91089,29.117306],[-89.018906,29.065481],[-89.018906,29.013657],[-89.126915,28.918646],[-89.234924,28.987745],[-89.37894,28.866821],[-89.486946,28.866821],[-89.45094,28.97047],[-89.45094,29.10867],[-89.486946,29.160494],[-89.63097,29.195044],[-90.063,29.125942],[-90.13502,29.056845],[-90.38704,28.996382],[-90.567055,29.03957],[-90.67507,28.996382],[-90.89109,28.987745],[-91.0351,29.03957],[-90.9631,29.10867],[-91.28713,29.186405],[-91.46715,29.324604],[-91.791176,29.393703],[-91.89919,29.36779],[-91.89919,29.419617],[-92.151215,29.531902],[-92.33123,29.480078],[-92.79928,29.57509],[-93.015305,29.67874],[-93.26733,29.730564],[-93.30333,29.696014],[-93.483345,29.721926],[-93.77138,29.67874],[-93.80738,29.601002],[-93.84338,29.67874],[-93.87939,29.747837],[-93.87939,29.756475],[-93.91539,29.834213],[-93.80738,29.903313],[-93.80738,29.989685],[-93.69937,30.058786],[-93.735374,30.084698],[-93.735374,30.093336],[-93.69937,30.14516],[-93.69937,30.153797],[-93.69937,30.171072],[-93.69937,30.17971],[-93.69937,30.196985],[-93.735374,30.196985],[-93.735374,30.21426],[-93.69937,30.222897],[-93.69937,30.231533],[-93.69937,30.240171],[-93.69937,30.28336],[-93.69937,30.291996],[-93.77138,30.326546],[-93.77138,30.335184],[-93.77138,30.34382],[-93.77138,30.361095],[-93.735374,30.421558],[-93.69937,30.438833],[-93.69937,30.44747],[-93.69937,30.585669],[-93.69937,30.594307],[-93.66337,30.663406],[-93.66337,30.672043],[-93.627365,30.723867],[-93.627365,30.732506],[-93.55536,30.801605],[-93.55536,30.92253],[-93.55536,30.965715],[-93.55536,30.974354],[-93.55536,31.008904],[-93.55536,31.181652],[-93.59136,31.173014],[-93.59136,31.224838],[-93.69937,31.302576],[-93.66337,31.397587],[-93.80738,31.535786],[-93.80738,31.734447],[-93.84338,31.743086],[-93.91539,31.889921],[-93.91539,31.898558],[-93.95139,31.915833],[-94.0594,31.99357],[-94.0594,33.021423]]]},properties:{iso_3166_2:"US-LA",postal:"LA",name:"Louisiana",label_en:"Louisiana"},id:"Q1588"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-89.486946,36.49367],[-89.52295,36.49367],[-89.52295,36.502308],[-89.55895,36.580044],[-89.486946,36.580044],[-89.486946,36.49367]]],[[[-89.41494,36.502308],[-89.37894,36.623234],[-89.30693,36.63187],[-89.27093,36.56277],[-89.19892,36.580044],[-89.16292,36.752792],[-89.126915,36.977367],[-89.126915,36.986004],[-89.16292,37.089653],[-89.018906,37.22785],[-88.91089,37.219215],[-88.55086,37.07238],[-88.44284,37.07238],[-88.44284,37.150116],[-88.514854,37.253765],[-88.47885,37.4006],[-88.40684,37.417877],[-88.29883,37.452423],[-88.08281,37.4697],[-88.04681,37.495613],[-88.154816,37.590626],[-88.154816,37.685635],[-88.04681,37.73746],[-88.04681,37.797924],[-88.0108,37.797924],[-87.90279,37.797924],[-87.9388,37.91021],[-87.83078,37.87566],[-87.68677,37.901573],[-87.68677,37.832474],[-87.57876,37.849747],[-87.57876,37.970673],[-87.542755,37.918846],[-87.434746,37.94476],[-87.290726,37.901573],[-87.14671,37.789284],[-87.07471,37.789284],[-87.038704,37.91021],[-86.78668,37.996586],[-86.75067,37.892933],[-86.678665,37.91021],[-86.49865,37.927483],[-86.53465,38.039772],[-86.42664,38.057045],[-86.28263,38.160694],[-86.28263,38.057045],[-86.210625,38.01386],[-85.92259,38.005222],[-85.92259,38.16933],[-85.850586,38.27298],[-85.74258,38.27298],[-85.63456,38.324806],[-85.63456,38.428455],[-85.49055,38.463005],[-85.41854,38.523468],[-85.454544,38.704853],[-85.454544,38.71349],[-85.238525,38.739403],[-85.130516,38.696217],[-84.986496,38.78259],[-84.80648,38.78259],[-84.77048,38.88624],[-84.84248,38.938065],[-84.87849,39.076263],[-84.80648,39.102177],[-84.80648,39.110813],[-84.77048,39.145363],[-84.66247,39.102177],[-84.66247,39.093536],[-84.55446,39.093536],[-84.44644,39.11945],[-84.44644,39.058987],[-84.41044,39.05035],[-84.41044,39.041714],[-84.30243,39.024437],[-84.23042,38.91215],[-84.23042,38.808502],[-84.08641,38.773952],[-83.90639,38.773952],[-83.90639,38.765316],[-83.762375,38.64439],[-83.654366,38.627117],[-83.54636,38.704853],[-83.33033,38.64439],[-83.29433,38.601204],[-83.150314,38.618477],[-83.11431,38.67894],[-82.9703,38.730766],[-82.86229,38.74804],[-82.86229,38.592567],[-82.71827,38.558018],[-82.61026,38.48028],[-82.61026,38.41982],[-82.57426,38.24707],[-82.64626,38.13478],[-82.53825,38.07432],[-82.50225,38.005222],[-82.50225,37.996586],[-82.46625,37.918846],[-82.46625,37.901573],[-82.430244,37.867023],[-82.39424,37.815197],[-82.39424,37.80656],[-82.322235,37.789284],[-82.28623,37.677],[-82.28623,37.66836],[-82.178215,37.625175],[-82.178215,37.616535],[-82.14221,37.599262],[-82.14221,37.590626],[-82.0342,37.5388],[-81.9982,37.5388],[-81.9622,37.5388],[-82.35824,37.2624],[-82.53825,37.219215],[-82.71827,37.124203],[-82.71827,37.046467],[-82.75427,37.02919],[-82.75427,37.020554],[-82.790276,37.011917],[-82.86229,36.986004],[-82.86229,36.89099],[-83.042305,36.847805],[-83.07831,36.85644],[-83.07831,36.847805],[-83.11431,36.761433],[-83.150314,36.73552],[-83.54636,36.66642],[-83.69037,36.59732],[-83.69037,36.580044],[-84.626465,36.59732],[-85.0225,36.623234],[-85.70657,36.614594],[-86.13861,36.63187],[-86.28263,36.649143],[-86.930695,36.649143],[-87.0027,36.640507],[-87.68677,36.640507],[-87.86679,36.63187],[-87.86679,36.66642],[-88.08281,36.675056],[-88.04681,36.649143],[-88.04681,36.49367],[-88.19082,36.502308],[-89.41494,36.502308]]]]},properties:{iso_3166_2:"US-KY",postal:"KY",name:"Kentucky",label_en:"Kentucky"},id:"Q1603"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-94.63547,36.502308],[-94.0594,36.502308],[-92.655266,36.502308],[-91.46715,36.502308],[-90.31503,36.502308],[-90.17102,36.49367],[-90.13502,36.46776],[-90.13502,36.45912],[-90.063,36.39866],[-90.063,36.277737],[-90.24303,36.174088],[-90.38704,35.9927],[-89.738976,36.001335],[-89.63097,35.88905],[-89.66697,35.880413],[-89.77498,35.89769],[-89.70297,35.811314],[-89.846985,35.75085],[-89.954994,35.742214],[-89.91899,35.61265],[-90.063,35.500366],[-89.991,35.431267],[-90.063,35.405354],[-90.063,35.474453],[-90.13502,35.465816],[-90.17102,35.370804],[-90.09901,35.413994],[-90.13502,35.25852],[-90.13502,35.128956],[-90.20702,35.033943],[-90.31503,34.999397],[-90.24303,34.904385],[-90.31503,34.85256],[-90.42304,34.835285],[-90.459045,34.887108],[-90.459045,34.723],[-90.53105,34.740273],[-90.53105,34.697086],[-90.567055,34.64526],[-90.53105,34.54161],[-90.60306,34.498425],[-90.567055,34.41205],[-90.67507,34.368862],[-90.78308,34.360226],[-90.74708,34.291126],[-90.85509,34.21339],[-90.89109,34.187477],[-90.9631,34.10974],[-90.89109,34.092464],[-90.89109,34.023365],[-91.071106,33.988815],[-90.9991,33.928352],[-91.071106,33.824703],[-90.9991,33.764244],[-91.14311,33.781517],[-91.14311,33.712418],[-91.0351,33.70378],[-91.10711,33.660595],[-91.21512,33.70378],[-91.14311,33.582855],[-91.21512,33.57422],[-91.179115,33.496483],[-91.10711,33.444656],[-91.071106,33.40147],[-91.14311,33.349648],[-91.10711,33.26327],[-91.071106,33.14235],[-91.21512,33.125072],[-91.10711,33.047337],[-91.179115,33.00415],[-92.0072,33.00415],[-92.07921,33.012787],[-92.94329,33.012787],[-92.9793,33.021423],[-94.0594,33.021423],[-94.0594,33.582855],[-94.16742,33.582855],[-94.239426,33.582855],[-94.27543,33.582855],[-94.347435,33.548306],[-94.38344,33.565582],[-94.49145,33.64332],[-94.49145,34.023365],[-94.455444,34.101105],[-94.455444,35.241245],[-94.41944,35.24988],[-94.41944,35.42263],[-94.455444,35.431267],[-94.455444,35.638565],[-94.49145,35.699028],[-94.49145,35.845863],[-94.52745,35.89769],[-94.52745,36.0618],[-94.56345,36.07044],[-94.56345,36.26046],[-94.59946,36.277737],[-94.59946,36.48503],[-94.63547,36.502308]],[[-91.10711,33.444656],[-91.21512,33.418747],[-91.179115,33.37556],[-91.10711,33.444656]]]},properties:{iso_3166_2:"US-AR",postal:"AR",name:"Arkansas",label_en:"Arkansas"},id:"Q1612"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-102.9883,36.502308],[-102.9883,37.00328],[-102.736275,36.99464],[-102.05221,36.99464],[-100.9361,36.99464],[-100.64806,37.00328],[-98.55985,36.99464],[-97.76778,36.99464],[-96.39964,37.00328],[-94.88749,37.00328],[-94.63547,36.99464],[-94.63547,36.66642],[-94.59946,36.605957],[-94.63547,36.502308],[-94.59946,36.48503],[-94.59946,36.277737],[-94.56345,36.26046],[-94.56345,36.07044],[-94.52745,36.0618],[-94.52745,35.89769],[-94.49145,35.845863],[-94.49145,35.699028],[-94.455444,35.638565],[-94.455444,35.431267],[-94.41944,35.42263],[-94.41944,35.24988],[-94.455444,35.241245],[-94.455444,34.101105],[-94.49145,34.023365],[-94.49145,33.64332],[-94.52745,33.64332],[-94.56345,33.660595],[-94.59946,33.677868],[-94.63547,33.686504],[-94.74348,33.729694],[-94.88749,33.77288],[-94.92349,33.798794],[-94.92349,33.80743],[-94.92349,33.816067],[-94.959496,33.850616],[-94.9955,33.859257],[-95.067505,33.91108],[-95.21152,33.954266],[-95.24753,33.902443],[-95.319534,33.87653],[-95.39154,33.867893],[-95.42754,33.867893],[-95.46355,33.87653],[-95.49955,33.893806],[-95.53555,33.893806],[-95.64356,33.91108],[-95.75157,33.850616],[-95.931595,33.87653],[-96.0036,33.850616],[-96.07561,33.84198],[-96.11161,33.833344],[-96.21962,33.755608],[-96.36363,33.686504],[-96.39964,33.77288],[-96.50765,33.77288],[-96.61566,33.84198],[-96.57966,33.885166],[-96.68767,33.91108],[-96.68767,33.84198],[-96.83168,33.867893],[-96.90369,33.954266],[-96.9757,33.936993],[-96.9757,33.928352],[-96.9757,33.87653],[-97.08371,33.84198],[-97.08371,33.729694],[-97.19172,33.746967],[-97.19172,33.91108],[-97.22772,33.919716],[-97.22772,33.91108],[-97.29973,33.867893],[-97.40774,33.816067],[-97.44374,33.902443],[-97.58776,33.902443],[-97.58776,33.962906],[-97.80378,33.91108],[-97.83978,33.850616],[-97.983795,33.902443],[-97.983795,33.997456],[-98.09181,34.006092],[-98.127815,34.06655],[-98.09181,34.152927],[-98.235825,34.127014],[-98.37984,34.152927],[-98.48785,34.06655],[-98.55985,34.152927],[-98.77588,34.127014],[-98.9919,34.21339],[-99.13592,34.21339],[-99.207924,34.230663],[-99.207924,34.342953],[-99.38794,34.45524],[-99.38794,34.377502],[-99.567955,34.41205],[-99.71197,34.377502],[-99.89199,34.558887],[-100,34.558887],[-100,36.502308],[-101.40414,36.502308],[-102.9883,36.502308]]],[[[-94.52745,33.64332],[-94.56345,33.63468],[-94.56345,33.64332],[-94.52745,33.64332]]]]},properties:{iso_3166_2:"US-OK",postal:"OK",name:"Oklahoma",label_en:"Oklahoma"},id:"Q1649"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-73.35734,45.010178],[-72.63726,45.018814],[-72.63726,45.010178],[-71.52115,45.010178],[-71.52115,44.984264],[-71.485146,44.915165],[-71.485146,44.90653],[-71.52115,44.88925],[-71.52115,44.880615],[-71.55716,44.82879],[-71.55716,44.820152],[-71.629166,44.716503],[-71.59316,44.65604],[-71.55716,44.647404],[-71.55716,44.604218],[-71.55716,44.59558],[-71.52115,44.58694],[-71.55716,44.578304],[-71.59316,44.56103],[-71.59316,44.509205],[-71.59316,44.50057],[-71.629166,44.48329],[-71.629166,44.474655],[-71.66517,44.43147],[-71.737175,44.405556],[-71.845184,44.336456],[-71.9892,44.336456],[-72.0612,44.29327],[-72.0252,44.129158],[-72.0252,44.12052],[-72.0252,44.09461],[-72.0252,44.08597],[-72.0612,44.042786],[-72.09721,44.02551],[-72.09721,44.016872],[-72.09721,44.008232],[-72.09721,43.973686],[-72.09721,43.965046],[-72.16922,43.904587],[-72.16922,43.800938],[-72.31323,43.68001],[-72.31323,43.671375],[-72.38524,43.585],[-72.38524,43.394978],[-72.42124,43.394978],[-72.42124,43.204952],[-72.457245,43.196316],[-72.457245,42.971745],[-72.52925,42.963104],[-72.52925,42.78172],[-72.49325,42.773083],[-72.49325,42.764446],[-72.457245,42.729897],[-73.24933,42.74717],[-73.28533,42.74717],[-73.28533,43.058117],[-73.24933,43.075394],[-73.24933,43.567726],[-73.28533,43.567726],[-73.28533,43.576363],[-73.35734,43.62819],[-73.35734,43.61955],[-73.35734,43.610912],[-73.39334,43.602276],[-73.39334,43.59364],[-73.39334,43.576363],[-73.429344,43.6541],[-73.35734,43.723198],[-73.39334,43.800938],[-73.39334,44.02551],[-73.429344,44.137794],[-73.321335,44.241444],[-73.321335,44.543755],[-73.39334,44.578304],[-73.35734,44.66468],[-73.35734,45.010178]]]},properties:{iso_3166_2:"US-VT",postal:"VT",name:"Vermont",label_en:"Vermont"},id:"Q16551"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[144.57246,13.449009],[144.60846,13.518108],[144.75247,13.544021],[144.82448,13.699494],[145.0045,13.639032],[144.96849,13.474921],[144.82448,13.388547],[144.82448,13.258985],[144.75247,13.189886],[144.60846,13.181249],[144.60846,13.302173],[144.57246,13.31081],[144.57246,13.449009]]]},properties:{iso_3166_2:"US-GU",postal:"GU",name:"Guam",label_en:"Guam"},id:"Q16635"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-168.37083,-14.536263],[-168.37083,-14.441251],[-168.26283,-14.346239],[-168.0468,-14.346239],[-167.9388,-14.449888],[-167.9388,-14.639912],[-167.9748,-14.691736],[-168.1188,-14.760836],[-168.19083,-14.760836],[-168.33484,-14.691736],[-168.37083,-14.536263]]],[[[-171.28712,-11.055379],[-171.25113,-10.908542],[-171.14311,-10.84808],[-170.96309,-10.865355],[-170.85509,-10.986279],[-170.85509,-11.124478],[-170.89108,-11.124478],[-170.9991,-11.262677],[-171.10712,-11.271314],[-171.25113,-11.202215],[-171.28712,-11.055379]]],[[[-171.03511,-14.320327],[-171.03511,-14.20804],[-170.89108,-14.104391],[-170.71107,-14.026654],[-170.45905,-14.061204],[-170.35103,-14.173491],[-170.35103,-14.389426],[-170.42303,-14.458526],[-170.60306,-14.501713],[-170.63907,-14.553537],[-170.81908,-14.570812],[-170.9991,-14.475801],[-171.03511,-14.320327]]],[[[-169.883,-14.164853],[-169.883,-14.061204],[-169.81097,-13.992105],[-169.70297,-13.957555],[-169.55896,-13.957555],[-169.48695,-14.009379],[-169.37894,-14.009379],[-169.27092,-14.061204],[-169.19891,-14.182128],[-169.23492,-14.372151],[-169.34294,-14.449888],[-169.45094,-14.475801],[-169.59496,-14.458526],[-169.66696,-14.389426],[-169.77498,-14.372151],[-169.883,-14.164853]]]]},properties:{iso_3166_2:"US-AS",postal:"AS",name:"American Samoa",label_en:"American Samoa"},id:"Q16641"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[145.0405,14.114091],[145.0765,14.191828],[145.22052,14.269565],[145.36453,14.243652],[145.36453,14.122728],[145.25653,14.053629],[145.14851,14.036354],[145.0405,14.114091]]],[[[145.47255,14.839635],[145.47255,14.900097],[145.54456,14.917372],[145.50854,15.055571],[145.68857,15.176495],[145.68857,15.254232],[145.79659,15.357881],[145.90459,15.314694],[145.90459,15.219682],[145.83258,15.081483],[145.76057,15.072846],[145.72458,14.89146],[145.58055,14.779173],[145.47255,14.796448],[145.47255,14.839635]]],[[[146.0126,16.0316],[146.08461,16.1007],[146.15662,16.074787],[146.15662,15.997051],[146.0486,15.945226],[146.0126,16.0316]]],[[[145.54456,16.377098],[145.61656,16.446198],[145.76057,16.43756],[145.79659,16.359823],[145.68857,16.273449],[145.61656,16.282085],[145.54456,16.377098]]],[[[145.68857,16.713957],[145.76057,16.791695],[145.86859,16.748507],[145.86859,16.662132],[145.72458,16.644857],[145.68857,16.713957]]],[[[145.76057,17.335852],[145.83258,17.404951],[145.9406,17.361765],[145.9406,17.292665],[145.86859,17.223566],[145.76057,17.27539],[145.76057,17.335852]]],[[[145.76057,17.603613],[145.79659,17.681349],[145.90459,17.681349],[145.9406,17.594975],[145.90459,17.534513],[145.79659,17.517239],[145.76057,17.603613]]],[[[145.65256,18.061396],[145.72458,18.234144],[145.86859,18.225508],[145.86859,18.061396],[145.76057,17.98366],[145.65256,18.009571],[145.65256,18.061396]]],[[[145.58055,18.778303],[145.58055,18.85604],[145.68857,18.881952],[145.76057,18.830128],[145.76057,18.709204],[145.68857,18.65738],[145.58055,18.700565],[145.58055,18.778303]]],[[[145.29253,19.685232],[145.36453,19.76297],[145.43654,19.76297],[145.50854,19.667957],[145.47255,19.607496],[145.32854,19.607496],[145.29253,19.685232]]],[[[145.14851,20.039368],[145.14851,20.082556],[145.25653,20.09983],[145.32854,20.022093],[145.25653,19.944357],[145.14851,19.970268],[145.14851,20.039368]]],[[[144.82448,20.548977],[144.86049,20.618074],[144.96849,20.592163],[144.96849,20.488514],[144.86049,20.462603],[144.82448,20.548977]]]]},properties:{iso_3166_2:"US-MP",postal:"MP",name:"Northern Mariana Islands",label_en:"Northern Mariana Islands"},id:"Q16644"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-160.19801,-.379516],[-160.19801,-.267229],[-160.126,-.189492],[-159.946,-.16358],[-159.80199,-.258592],[-159.80199,-.491802],[-159.946,-.578177],[-160.054,-.578177],[-160.19801,-.491802],[-160.19801,-.379516]]],[[[-176.68767,.190555],[-176.68767,.268292],[-176.57965,.389216],[-176.36363,.380578],[-176.29163,.311479],[-176.25563,.156005],[-176.29163,.069631],[-176.36363,.009169],[-176.54366,-.008106],[-176.65167,.052356],[-176.68767,.190555]]],[[[-176.83168,.821087],[-176.79568,.942011],[-176.65167,1.019748],[-176.54366,1.01111],[-176.43564,.933374],[-176.39964,.751988],[-176.50764,.613789],[-176.65167,.596514],[-176.79568,.674251],[-176.83168,.821087]]],[[[-162.32224,5.891258],[-162.28622,6.029457],[-162.14221,6.098556],[-161.9982,6.098556],[-161.81818,5.925808],[-161.81818,5.804884],[-161.85419,5.735784],[-161.96219,5.666685],[-162.21422,5.68396],[-162.32224,5.796246],[-162.32224,5.891258]]],[[[-162.68227,6.374954],[-162.68227,6.461328],[-162.53825,6.608165],[-162.43024,6.651352],[-162.32224,6.642714],[-162.25023,6.599527],[-162.14221,6.478603],[-162.14221,6.305855],[-162.25023,6.202206],[-162.46625,6.176293],[-162.61026,6.21948],[-162.68227,6.374954]]],[[[-169.77498,16.696682],[-169.77498,16.765781],[-169.66696,16.90398],[-169.55896,16.97308],[-169.45094,16.990355],[-169.30693,16.93853],[-169.27092,16.80897],[-169.27092,16.644857],[-169.30693,16.584396],[-169.52295,16.506659],[-169.70297,16.549847],[-169.77498,16.696682]]],[[[-75.22952,18.398256],[-75.19352,18.55373],[-75.04951,18.614191],[-74.905495,18.596916],[-74.79748,18.48463],[-74.79748,18.320518],[-74.83348,18.25142],[-74.9775,18.190958],[-75.15752,18.234144],[-75.22952,18.329157],[-75.22952,18.398256]]],[[[166.39064,19.305185],[166.42664,19.408834],[166.53465,19.521122],[166.67867,19.521122],[166.85869,19.39156],[166.85869,19.166986],[166.71468,19.071976],[166.49866,19.106525],[166.39064,19.210175],[166.39064,19.305185]]],[[[-177.62376,28.210377],[-177.58775,28.348576],[-177.47975,28.426311],[-177.33574,28.4695],[-177.26373,28.443586],[-177.1197,28.314026],[-177.1197,28.149914],[-177.33574,27.99444],[-177.51575,28.02899],[-177.62376,28.141275],[-177.62376,28.210377]]]]},properties:{iso_3166_2:"US-UM",postal:"UM",name:"United States Minor Outlying Islands",label_en:"United States Minor Outlying Islands"},id:"Q16645"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-88.19082,34.999397],[-87.0027,34.999397],[-87.0027,34.990757],[-85.70657,34.990757],[-85.59856,34.98212],[-85.59856,34.8612],[-85.52655,34.662537],[-85.52655,34.515697],[-85.49055,34.498425],[-85.49055,34.342953],[-85.454544,34.325676],[-85.454544,34.17884],[-85.41854,34.14429],[-85.41854,33.997456],[-85.38254,33.962906],[-85.38254,33.824703],[-85.346535,33.77288],[-85.346535,33.61741],[-85.31053,33.57422],[-85.31053,33.427383],[-85.27453,33.37556],[-85.27453,33.23736],[-85.238525,33.21145],[-85.238525,33.055973],[-85.20252,32.874588],[-85.16652,32.85731],[-85.16652,32.848675],[-85.094505,32.641376],[-85.094505,32.63274],[-84.986496,32.520454],[-84.986496,32.390892],[-85.0225,32.321793],[-84.91449,32.29588],[-84.91449,32.218143],[-85.0585,32.140408],[-85.0585,31.967657],[-85.130516,31.898558],[-85.130516,31.682623],[-85.0585,31.630798],[-85.0585,31.414862],[-85.094505,31.414862],[-85.094505,31.155739],[-85.0225,31.112553],[-84.986496,31.000265],[-85.63456,31.000265],[-85.63456,30.991629],[-86.71467,30.991629],[-86.71467,31.000265],[-87.61476,31.000265],[-87.61476,30.991629],[-87.57876,30.991629],[-87.61476,30.81888],[-87.57876,30.81888],[-87.57876,30.810242],[-87.50675,30.723867],[-87.50675,30.71523],[-87.39874,30.680681],[-87.39874,30.577032],[-87.39874,30.568394],[-87.434746,30.568394],[-87.434746,30.41292],[-87.47075,30.300634],[-87.47075,30.30927],[-87.50675,30.222897],[-87.79478,30.17971],[-88.0108,30.17971],[-88.08281,30.136522],[-88.154816,30.196985],[-88.370834,30.162436],[-88.40684,30.257446],[-88.40684,30.291996],[-88.40684,30.974354],[-88.44284,31.000265],[-88.44284,31.622162],[-88.47885,31.699898],[-88.47885,31.933107],[-88.44284,32.03676],[-88.44284,32.252693],[-88.40684,32.287243],[-88.40684,32.580914],[-88.370834,32.59819],[-88.370834,32.874588],[-88.33483,32.93505],[-88.33483,33.185535],[-88.29883,33.20281],[-88.29883,33.410107],[-88.262825,33.496483],[-88.262825,33.764244],[-88.22682,33.781517],[-88.22682,34.032],[-88.19082,34.057915],[-88.19082,34.31704],[-88.154816,34.377502],[-88.154816,34.593437],[-88.11881,34.61935],[-88.11881,34.82665],[-88.08281,34.895744],[-88.154816,34.91302],[-88.19082,34.999397]]]},properties:{iso_3166_2:"US-AL",postal:"AL",name:"Alabama",label_en:"Alabama"},id:"Q173"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-77.10171,38.938065],[-77.0297,38.989887],[-76.92169,38.868965],[-77.0297,38.808502],[-77.0297,38.868965],[-77.065704,38.88624],[-77.065704,38.894875],[-77.10171,38.938065]]]},properties:{iso_3166_2:"US-DC",postal:"DC",name:"District of Columbia",label_en:"District of Columbia"},id:"Q61"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-67.16472,44.50057],[-67.128716,44.58694],[-67.05671,44.56103],[-67.05671,44.457382],[-67.16472,44.50057]]],[[[-68.208824,43.965046],[-68.17281,44.016872],[-68.064804,44.008232],[-68.064804,43.930496],[-68.208824,43.965046]]],[[[-71.08911,45.30385],[-71.017105,45.338398],[-70.90909,45.312485],[-70.90909,45.23475],[-70.80108,45.29521],[-70.80108,45.424774],[-70.62106,45.381584],[-70.69307,45.450684],[-70.69307,45.57161],[-70.58506,45.649345],[-70.405045,45.70981],[-70.405045,45.822094],[-70.261024,45.87392],[-70.29703,45.960293],[-70.261024,46.09849],[-70.261024,46.27124],[-70.18902,46.357616],[-70.045006,46.418076],[-70.009,46.694473],[-69.937,46.737663],[-69.25292,47.420017],[-69.0369,47.428658],[-69.0369,47.238632],[-68.85689,47.18681],[-68.74888,47.238632],[-68.60486,47.247272],[-68.53285,47.299095],[-68.38884,47.29046],[-68.38884,47.35092],[-68.13681,47.32501],[-67.9928,47.229996],[-67.88479,47.100433],[-67.77678,47.065884],[-67.77678,45.813457],[-67.81278,45.67526],[-67.52475,45.588882],[-67.41674,45.588882],[-67.41674,45.50251],[-67.48875,45.424774],[-67.41674,45.338398],[-67.48875,45.252026],[-67.41674,45.157013],[-67.30873,45.174286],[-67.128716,45.148376],[-66.984695,44.83743],[-66.876686,44.794243],[-67.05671,44.69923],[-67.20072,44.56103],[-67.45274,44.50057],[-67.45274,44.448742],[-67.63277,44.379642],[-67.77678,44.388283],[-67.81278,44.319183],[-67.956795,44.32782],[-67.9928,44.275993],[-68.13681,44.267357],[-68.17281,44.111885],[-68.28083,44.06006],[-68.49685,44.034145],[-68.60486,43.947773],[-68.9649,43.965046],[-68.9649,43.930496],[-68.676865,43.939137],[-68.676865,43.844124],[-68.78488,43.81821],[-68.78488,43.74911],[-68.89289,43.73184],[-69.0009,43.78366],[-69.0009,43.844124],[-69.21692,43.800938],[-69.25292,43.71456],[-69.39694,43.723198],[-69.39694,43.809574],[-69.50495,43.775024],[-69.540955,43.705925],[-69.68497,43.69729],[-69.72097,43.6541],[-69.90099,43.636826],[-70.153015,43.524536],[-70.36903,43.3086],[-70.47705,43.29133],[-70.513054,43.170403],[-70.405045,43.15313],[-70.405045,43.08403],[-70.54906,43.04948],[-70.54906,42.919918],[-70.69307,43.04948],[-70.83708,43.11858],[-70.83708,43.196316],[-70.90909,43.31724],[-70.90909,43.32588],[-70.981094,43.34315],[-70.981094,43.472713],[-70.981094,43.48135],[-70.94509,43.533176],[-70.94509,43.541813],[-70.981094,43.567726],[-70.981094,44.042786],[-71.017105,44.06006],[-71.017105,44.707867],[-71.05311,44.73378],[-71.05311,45.16565],[-71.08911,45.27794],[-71.08911,45.286575],[-71.08911,45.30385]]]]},properties:{iso_3166_2:"US-ME",postal:"ME",name:"Maine",label_en:"Maine"},id:"Q724"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-72.42124,43.394978],[-72.38524,43.394978],[-72.38524,43.585],[-72.31323,43.671375],[-72.31323,43.68001],[-72.16922,43.800938],[-72.16922,43.904587],[-72.09721,43.965046],[-72.09721,43.973686],[-72.09721,44.008232],[-72.09721,44.016872],[-72.09721,44.02551],[-72.0612,44.042786],[-72.0252,44.08597],[-72.0252,44.09461],[-72.0252,44.12052],[-72.0252,44.129158],[-72.0612,44.29327],[-71.9892,44.336456],[-71.845184,44.336456],[-71.737175,44.405556],[-71.66517,44.43147],[-71.629166,44.474655],[-71.629166,44.48329],[-71.59316,44.50057],[-71.59316,44.509205],[-71.59316,44.56103],[-71.55716,44.578304],[-71.52115,44.58694],[-71.55716,44.59558],[-71.55716,44.604218],[-71.55716,44.647404],[-71.59316,44.65604],[-71.629166,44.716503],[-71.55716,44.820152],[-71.55716,44.82879],[-71.52115,44.880615],[-71.52115,44.88925],[-71.485146,44.90653],[-71.485146,44.915165],[-71.52115,44.984264],[-71.52115,45.010178],[-71.485146,45.010178],[-71.485146,45.087914],[-71.41314,45.148376],[-71.41314,45.226112],[-71.30513,45.27794],[-71.19712,45.243385],[-71.08911,45.27794],[-71.05311,45.16565],[-71.05311,44.73378],[-71.017105,44.707867],[-71.017105,44.06006],[-70.981094,44.042786],[-70.981094,43.567726],[-70.94509,43.541813],[-70.94509,43.533176],[-70.981094,43.48135],[-70.981094,43.472713],[-70.981094,43.34315],[-70.90909,43.32588],[-70.90909,43.31724],[-70.83708,43.196316],[-70.83708,43.11858],[-70.69307,43.04948],[-70.54906,42.919918],[-70.72907,42.928555],[-70.72907,42.87673],[-70.83708,42.868095],[-71.05311,42.85082],[-71.16112,42.81627],[-71.26913,42.703983],[-71.77318,42.703983],[-72.457245,42.729897],[-72.49325,42.764446],[-72.49325,42.773083],[-72.52925,42.78172],[-72.52925,42.963104],[-72.457245,42.971745],[-72.457245,43.196316],[-72.42124,43.204952],[-72.42124,43.394978]]]},properties:{iso_3166_2:"US-NH",postal:"NH",name:"New Hampshire",label_en:"New Hampshire"},id:"Q759"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-73.24933,42.74717],[-72.457245,42.729897],[-71.77318,42.703983],[-71.26913,42.703983],[-71.16112,42.81627],[-71.05311,42.85082],[-70.83708,42.868095],[-70.72907,42.87673],[-70.72907,42.738533],[-70.513054,42.71262],[-70.513054,42.600334],[-70.58506,42.548508],[-70.69307,42.28075],[-70.62106,42.14255],[-70.261024,42.11664],[-70.153015,42.13391],[-70.009,42.090725],[-69.90099,41.866154],[-69.86498,41.866154],[-69.86498,41.632942],[-69.937,41.50338],[-70.11701,41.46883],[-70.11701,41.529293],[-70.29703,41.520657],[-70.405045,41.555202],[-70.47705,41.477467],[-70.405045,41.46883],[-70.36903,41.382458],[-70.22502,41.391094],[-70.11701,41.347904],[-70.11701,41.425644],[-70.009,41.442917],[-69.90099,41.321995],[-69.90099,41.218346],[-70.153015,41.192432],[-70.33303,41.27017],[-70.47705,41.26153],[-70.513054,41.29608],[-70.69307,41.29608],[-70.765076,41.20107],[-70.90909,41.23562],[-70.873085,41.287445],[-71.017105,41.356544],[-71.08911,41.43428],[-71.125114,41.477467],[-71.125114,41.658855],[-71.34113,41.779778],[-71.37714,42.021626],[-71.80918,42.004353],[-71.95319,42.030262],[-72.74528,42.021626],[-72.74528,42.01299],[-72.81728,42.038902],[-73.50135,42.04754],[-73.46535,42.254837],[-73.39334,42.34985],[-73.39334,42.44486],[-73.24933,42.74717]]]},properties:{iso_3166_2:"US-MA",postal:"MA",name:"Massachusetts",label_en:"Massachusetts"},id:"Q771"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-73.50135,42.04754],[-72.81728,42.038902],[-72.74528,42.01299],[-72.74528,42.021626],[-71.95319,42.030262],[-71.80918,42.004353],[-71.80918,41.77114],[-71.77318,41.77114],[-71.77318,41.563843],[-71.845184,41.321995],[-71.91719,41.304718],[-72.09721,41.26153],[-73.60936,40.950584],[-73.71737,41.071507],[-73.50135,41.20107],[-73.53735,41.26153],[-73.53735,41.650215],[-73.50135,41.650215],[-73.50135,42.04754]]]},properties:{iso_3166_2:"US-CT",postal:"CT",name:"Connecticut",label_en:"Connecticut"},id:"Q779"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-156.09361,19.745695],[-156.0576,19.875256],[-155.9496,19.909805],[-155.8776,20.022093],[-155.9496,20.09983],[-155.9496,20.281216],[-155.80559,20.315765],[-155.73357,20.289852],[-155.58955,20.177567],[-155.40955,20.143017],[-155.15752,20.004818],[-155.0495,19.909805],[-155.0495,19.788881],[-154.9415,19.771606],[-154.9415,19.676596],[-154.76147,19.564308],[-154.76147,19.452023],[-154.9415,19.305185],[-155.08551,19.244724],[-155.26553,19.218813],[-155.48155,19.071976],[-155.55356,18.942413],[-155.66156,18.864677],[-155.9496,19.020151],[-155.9856,19.097889],[-155.9496,19.365648],[-156.0216,19.49521],[-156.0216,19.59886],[-156.09361,19.642046],[-156.09361,19.745695]]],[[[-157.10172,20.885836],[-157.02971,20.946299],[-156.8857,20.93766],[-156.77768,20.790825],[-156.8857,20.713087],[-156.9937,20.713087],[-156.9937,20.825375],[-157.10172,20.885836]]],[[[-156.74167,20.523064],[-156.74167,20.583527],[-156.48965,20.687176],[-156.52565,20.738998],[-156.66966,20.773548],[-156.74167,20.851286],[-156.74167,21.015396],[-156.66966,21.084497],[-156.59766,21.093134],[-156.48965,21.04131],[-156.45364,20.97221],[-156.30963,21.00676],[-156.16562,20.963573],[-156.09361,20.877197],[-155.9856,20.851286],[-155.91359,20.773548],[-155.9496,20.661263],[-156.12961,20.566252],[-156.38164,20.5317],[-156.48965,20.557613],[-156.52565,20.462603],[-156.66966,20.453964],[-156.74167,20.523064]]],[[[-157.35373,21.10177],[-157.31773,21.257244],[-157.02971,21.248608],[-156.66966,21.214058],[-156.66966,21.093134],[-156.8857,20.989485],[-157.0657,21.058584],[-157.28172,21.04131],[-157.35373,21.10177]]],[[[-158.36183,21.602741],[-158.14581,21.654568],[-157.96579,21.775492],[-157.85779,21.663204],[-157.78578,21.533644],[-157.67776,21.499092],[-157.67776,21.429995],[-157.60576,21.30907],[-157.67776,21.231333],[-157.78578,21.214058],[-157.9298,21.265882],[-158.10982,21.257244],[-158.36183,21.602741]]],[[[-160.59406,21.663204],[-160.48605,21.697754],[-160.48605,21.620016],[-160.55806,21.602741],[-160.59406,21.663204]]],[[[-159.83798,22.043251],[-159.83798,22.095076],[-159.72998,22.216],[-159.54996,22.285099],[-159.40594,22.293737],[-159.26193,22.216],[-159.26193,21.94824],[-159.44194,21.818678],[-159.65796,21.853228],[-159.69397,21.905052],[-159.83798,21.974152],[-159.83798,22.043251]]],[[[-161.9982,23.071104],[-161.96219,23.114292],[-161.85419,23.097017],[-161.85419,23.019281],[-161.96219,23.010643],[-161.9982,23.071104]]],[[[-164.77048,23.572077],[-164.73447,23.623901],[-164.62646,23.572077],[-164.66246,23.520252],[-164.77048,23.572077]]],[[[-160.30603,21.835953],[-160.30603,21.887777],[-160.16202,21.991426],[-160.16202,22.060526],[-160.054,22.0778],[-160.018,22.008701],[-160.018,21.87914],[-160.126,21.827316],[-160.16202,21.74094],[-160.27002,21.74094],[-160.30603,21.835953]]],[[[-166.39064,23.848475],[-166.39064,23.883024],[-166.24663,23.92621],[-166.17462,23.9003],[-166.17462,23.8312],[-166.10262,23.770737],[-166.10262,23.606627],[-166.21062,23.589352],[-166.21062,23.675726],[-166.31863,23.72755],[-166.31863,23.79665],[-166.39064,23.848475]]],[[[-168.0468,24.988615],[-168.0468,25.04044],[-167.9388,25.023165],[-167.9748,24.945429],[-168.0468,24.988615]]],[[[-170.67506,25.50686],[-170.67506,25.550049],[-170.56706,25.532772],[-170.56706,25.472311],[-170.67506,25.463673],[-170.67506,25.50686]]],[[[-171.82718,25.783258],[-171.79118,25.826445],[-171.68317,25.826445],[-171.68317,25.714159],[-171.75517,25.70552],[-171.82718,25.783258]]],[[[-174.0594,26.05102],[-174.0594,26.120117],[-173.91539,26.120117],[-173.91539,26.016468],[-174.0234,25.990557],[-174.0594,26.05102]]],[[[-176.0396,27.795778],[-175.96759,27.83033],[-176.0036,27.899427],[-175.78758,28.011715],[-175.67957,27.95989],[-175.71558,27.752592],[-175.96759,27.69213],[-176.0396,27.795778]]],[[[-178.45184,28.417673],[-178.34384,28.521322],[-178.23582,28.4695],[-178.23582,28.348576],[-178.34384,28.3313],[-178.45184,28.417673]]]]},properties:{iso_3166_2:"US-HI",postal:"HI",name:"Hawaii",label_en:"Hawaii"},id:"Q782"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-180,51.790558],[-180,52.12742],[-179.89198,52.05832],[-179.89198,51.902843],[-180,51.790558]]],[[[176.90369,51.894207],[176.90369,51.997856],[177.0477,52.075596],[177.0477,52.18788],[177.15572,52.29153],[177.29973,52.334717],[177.65976,52.35199],[177.9478,52.25698],[178.23582,52.265617],[178.37984,52.205154],[178.59586,52.205154],[178.77588,52.15333],[178.91989,52.049683],[178.88388,51.85102],[179.24393,51.764645],[179.31593,51.669636],[179.63997,51.58326],[179.81998,51.453697],[179.81998,51.30686],[179.71198,51.22049],[179.45995,51.168663],[179.20792,51.160027],[179.02791,51.203213],[178.81187,51.35869],[178.66786,51.37596],[178.41585,51.488247],[178.34384,51.574623],[178.1278,51.609173],[178.0198,51.695545],[177.80379,51.74737],[177.44374,51.626446],[177.26373,51.626446],[177.08371,51.68691],[176.90369,51.807835],[176.90369,51.894207]]],[[[179.17192,51.95467],[179.17192,52.066956],[179.24393,52.136055],[179.53195,52.239704],[179.74797,52.239704],[180,52.14469],[180,51.78192],[179.71198,51.68691],[179.56796,51.68691],[179.35193,51.738735],[179.17192,51.876934],[179.17192,51.95467]]],[[[175.53555,52.39518],[175.53555,52.472916],[175.67957,52.56793],[175.9316,52.602478],[176.21962,52.53338],[176.32764,52.42973],[176.32764,52.317444],[176.21962,52.21379],[176.0396,52.15333],[175.89558,52.14469],[175.64357,52.22243],[175.53555,52.32608],[175.53555,52.39518]]],[[[172.11522,52.93934],[172.25923,53.112083],[172.54726,53.215733],[172.87129,53.224373],[173.19531,53.207096],[173.48335,53.12936],[173.69937,53.017075],[174.27542,52.947975],[174.45544,52.844326],[174.77948,52.80114],[174.85149,52.740677],[174.85149,52.55929],[174.74347,52.481552],[174.49146,52.447002],[174.31143,52.5161],[174.13141,52.5161],[174.0594,52.42109],[174.0594,52.29153],[173.91539,52.196518],[173.73537,52.16197],[173.19531,52.239704],[173.0513,52.334717],[173.0513,52.49883],[173.15932,52.593838],[172.83528,52.55929],[172.54726,52.637028],[172.47525,52.706127],[172.18723,52.80114],[172.11522,52.93934]]],[[[-168.55086,64.97991],[-168.40685,65.13538],[-168.15482,65.19585],[-167.72278,65.152664],[-167.57875,65.07493],[-167.57875,64.902176],[-167.68677,64.83308],[-167.90279,64.78125],[-168.19083,64.78125],[-168.44284,64.84171],[-168.55086,64.97991]]],[[[-172.29523,63.563374],[-172.22322,63.6843],[-172.22322,63.83977],[-172.0432,63.969334],[-171.86319,64.00388],[-171.57516,64.00388],[-171.32314,63.95206],[-171.21512,63.83977],[-170.96309,63.81386],[-170.74707,63.88296],[-170.17102,63.90887],[-169.70297,63.81386],[-169.59496,63.744762],[-169.59496,63.632473],[-169.27092,63.563374],[-168.91089,63.563374],[-168.44284,63.485638],[-168.22682,63.364716],[-168.22682,63.261066],[-168.33484,63.148777],[-168.33484,63.05377],[-168.47885,62.94148],[-168.73087,62.88102],[-169.09091,62.91557],[-169.19891,62.83783],[-169.55896,62.751457],[-169.84698,62.760094],[-170.063,62.811916],[-170.17102,62.889656],[-170.17102,62.97603],[-170.56706,63.05377],[-170.71107,63.200603],[-170.89108,63.235153],[-171.17912,63.14014],[-171.53915,63.122868],[-172.0072,63.217876],[-172.11522,63.269703],[-172.29523,63.451088],[-172.29523,63.563374]]],[[[-170.13501,56.627518],[-170.063,56.75708],[-169.77498,56.834816],[-169.37894,56.817543],[-169.1269,56.72253],[-169.09091,56.541145],[-169.19891,56.446133],[-169.45094,56.35112],[-169.81097,56.377033],[-170.09901,56.52387],[-170.13501,56.627518]]],[[[-170.78308,57.180313],[-170.74707,57.292603],[-170.45905,57.42216],[-170.02701,57.46535],[-169.55896,57.275326],[-169.55896,57.12849],[-169.66696,57.042114],[-169.81097,56.998928],[-169.991,56.998928],[-170.27902,56.86073],[-170.60306,56.886642],[-170.74707,56.981655],[-170.78308,57.180313]]],[[[-146.76868,59.40877],[-146.69667,59.633343],[-146.58865,59.702442],[-146.37263,59.75427],[-146.08461,59.71972],[-145.83258,59.503784],[-145.83258,59.391495],[-146.08461,59.236023],[-146.44464,59.201473],[-146.62466,59.236023],[-146.76868,59.331036],[-146.76868,59.40877]]],[[[-173.51935,60.65256],[-173.33934,60.85986],[-173.15932,60.911682],[-172.9433,60.911682],[-172.76328,60.868496],[-172.54726,60.713024],[-172.47525,60.61801],[-172.33124,60.61801],[-172.07921,60.55755],[-171.89919,60.471176],[-171.79118,60.298428],[-171.97119,60.15159],[-172.22322,60.108402],[-172.40324,60.11704],[-172.51125,60.039303],[-172.83528,60.01339],[-173.0153,60.04794],[-173.15932,60.134315],[-173.15932,60.298428],[-173.44734,60.445263],[-173.44734,60.574825],[-173.51935,60.65256]]],[[[-179.45995,51.28959],[-179.42393,51.401875],[-179.31593,51.462337],[-179.38794,51.540073],[-179.35193,51.704185],[-179.17192,51.790558],[-179.17192,51.88557],[-179.02791,52.015133],[-178.70387,52.049683],[-178.52385,51.971943],[-178.45184,52.049683],[-178.23582,52.12742],[-177.8758,52.136055],[-177.69577,52.075596],[-177.47975,52.14469],[-177.1197,52.16197],[-176.9757,52.136055],[-176.65167,52.21379],[-176.43564,52.21379],[-176.25563,52.32608],[-176.0756,52.334717],[-175.78758,52.28289],[-175.60756,52.39518],[-175.39154,52.38654],[-175.21152,52.438366],[-174.9235,52.412453],[-174.85149,52.35199],[-174.74347,52.377903],[-174.63547,52.507465],[-174.38344,52.61975],[-174.09541,52.637028],[-173.9514,52.602478],[-173.69937,52.49019],[-173.66336,52.369267],[-173.41135,52.369267],[-173.30333,52.32608],[-172.9433,52.317444],[-172.87129,52.46428],[-172.72728,52.55065],[-172.47525,52.611115],[-172.36723,52.611115],[-172.11522,52.55065],[-171.97119,52.447002],[-171.97119,52.25698],[-172.18723,52.12742],[-172.58325,52.02377],[-172.79929,51.894207],[-173.0513,51.825108],[-173.91539,51.859657],[-174.16742,51.911484],[-174.23943,51.85102],[-174.38344,51.825108],[-174.9595,51.81647],[-175.24753,51.825108],[-175.57156,51.773285],[-175.82358,51.635086],[-176.21962,51.54871],[-176.39964,51.531437],[-176.68767,51.427788],[-177.0117,51.41051],[-177.22772,51.496887],[-177.47975,51.496887],[-177.65976,51.470974],[-177.76778,51.419147],[-177.9838,51.401875],[-178.16382,51.28959],[-178.34384,51.28959],[-178.55986,51.35005],[-178.59586,51.25504],[-178.88388,51.07365],[-179.17192,51.021828],[-179.31593,51.056377],[-179.42393,51.134113],[-179.45995,51.28959]]],[[[-157.74977,55.78969],[-157.60576,55.962437],[-157.49776,55.98835],[-157.17372,55.962437],[-157.0657,55.85015],[-157.02971,55.737865],[-157.17372,55.625576],[-157.31773,55.591026],[-157.60576,55.625576],[-157.71378,55.694675],[-157.74977,55.78969]]],[[[-156.12961,55.841515],[-156.09361,55.9538],[-155.66156,56.12655],[-155.48155,56.12655],[-155.22952,56.0229],[-155.19351,55.979713],[-155.19351,55.746502],[-155.26553,55.660126],[-155.48155,55.573753],[-155.66156,55.565117],[-155.91359,55.61694],[-156.09361,55.729225],[-156.12961,55.841515]]],[[[-171.61116,52.49883],[-171.61116,52.593838],[-171.46715,52.706127],[-171.21512,52.80114],[-171.03511,52.80114],[-170.74707,52.913425],[-170.42303,52.89615],[-170.42303,52.999798],[-170.17102,53.137997],[-170.09901,53.137997],[-169.955,53.26756],[-169.84698,53.293472],[-169.59496,53.284836],[-169.41495,53.19846],[-169.34294,53.103447],[-169.16292,53.12936],[-169.0549,53.310745],[-168.69487,53.49213],[-168.58685,53.613056],[-168.44284,53.69943],[-168.22682,53.75989],[-168.37083,53.889454],[-168.33484,54.062202],[-168.1188,54.157215],[-167.9388,54.157215],[-167.68677,54.027653],[-167.68677,53.854904],[-167.83078,53.77717],[-167.57875,53.70807],[-167.43474,53.716705],[-167.47075,53.949917],[-167.21872,54.13994],[-166.82268,54.226315],[-166.39064,54.226315],[-166.24663,54.37315],[-166.0666,54.433613],[-165.88658,54.44225],[-165.70657,54.51135],[-165.27452,54.502712],[-165.27452,54.66682],[-165.09451,54.796383],[-164.9505,54.830933],[-164.84248,55.020958],[-164.51845,55.15052],[-164.33844,55.15052],[-163.9784,55.25417],[-163.61836,55.262806],[-163.47435,55.297356],[-163.54636,55.435555],[-163.47435,55.608303],[-163.25833,55.677402],[-163.07831,55.677402],[-162.89828,55.599667],[-162.75427,55.642853],[-162.43024,55.8847],[-161.85419,56.117912],[-161.02611,56.24747],[-160.73807,56.264748],[-160.63007,56.437496],[-160.126,56.65343],[-160.018,56.731167],[-159.72998,56.800266],[-159.62196,56.869366],[-159.22592,56.981655],[-158.97389,57.102577],[-158.75787,57.292603],[-158.64987,57.42216],[-158.36183,57.517174],[-158.14581,57.646736],[-158.0018,57.845398],[-157.96579,58.009506],[-157.96579,58.23408],[-158.18182,58.398193],[-158.39784,58.355003],[-158.54185,58.259995],[-158.79388,58.208168],[-159.1179,58.208168],[-159.29793,58.251354],[-159.40594,58.329094],[-159.54996,58.536392],[-159.72998,58.44138],[-159.874,58.40683],[-160.16202,58.424103],[-160.37804,58.40683],[-160.55806,58.450016],[-160.91809,58.363644],[-161.13411,58.363644],[-161.35013,58.432743],[-161.56616,58.37228],[-161.81818,58.363644],[-162.35823,58.484566],[-162.53825,58.60549],[-162.50224,58.7696],[-162.21422,58.88189],[-162.14221,58.94235],[-162.35823,59.10646],[-162.43024,59.218746],[-162.43024,59.34831],[-162.32224,59.426044],[-162.28622,59.538334],[-162.46625,59.564243],[-162.61026,59.676533],[-163.29433,59.590157],[-163.43834,59.590157],[-163.69037,59.47787],[-164.0504,59.486507],[-164.26643,59.54697],[-164.48245,59.676533],[-164.69847,59.866554],[-164.69847,59.95293],[-164.84248,60.004753],[-165.0585,60.004753],[-165.20251,59.81473],[-165.31053,59.75427],[-165.70657,59.68517],[-165.92259,59.572884],[-166.21062,59.555607],[-166.39064,59.590157],[-166.49866,59.659256],[-166.71468,59.667892],[-167.25473,59.80609],[-167.65077,59.95293],[-167.72278,60.082493],[-167.83078,60.16023],[-167.83078,60.272514],[-167.68677,60.3848],[-167.39874,60.4539],[-167.03871,60.46254],[-166.96669,60.514362],[-166.21062,60.669834],[-166.03061,60.661198],[-165.85059,60.5921],[-165.59856,60.75621],[-165.45454,60.782124],[-165.52655,60.877132],[-165.81458,60.92896],[-165.9946,61.032608],[-166.03061,61.12762],[-166.31863,61.25718],[-166.57066,61.499027],[-166.57066,61.76679],[-166.42664,61.9309],[-166.42664,62.095013],[-166.24663,62.241848],[-165.9946,62.285034],[-165.77858,62.414597],[-165.77858,62.518246],[-165.59856,62.73418],[-165.34654,62.77737],[-165.31053,62.84647],[-165.52655,62.94148],[-165.52655,63.10559],[-165.34654,63.200603],[-164.9505,63.235153],[-164.8785,63.304253],[-164.48245,63.425175],[-164.23042,63.477],[-163.90639,63.477],[-163.18633,63.321526],[-162.97029,63.41654],[-163.15031,63.5461],[-163.15031,63.641113],[-162.97029,63.77067],[-162.68227,63.84841],[-162.28622,63.84841],[-161.9982,63.779312],[-161.85419,63.8225],[-161.53015,63.81386],[-161.38614,63.7534],[-161.24213,63.80522],[-161.24213,63.900234],[-161.60216,63.97797],[-161.74617,64.06435],[-161.74617,64.228455],[-162.14221,64.34938],[-162.46625,64.18527],[-162.68227,64.14208],[-162.9343,64.15072],[-163.47435,64.26301],[-163.65436,64.37529],[-164.19441,64.383934],[-164.59045,64.28028],[-165.09451,64.25437],[-165.85059,64.35802],[-166.10262,64.28892],[-166.49866,64.33211],[-166.64267,64.47031],[-166.82268,64.57395],[-166.9307,64.703514],[-166.9307,64.84171],[-167.0027,64.85035],[-167.39874,65.109474],[-167.39874,65.22176],[-167.57875,65.2304],[-167.9388,65.34268],[-168.47885,65.472244],[-168.65886,65.4377],[-169.0189,65.48088],[-168.9829,65.98186],[-168.73087,65.98186],[-168.40685,65.852295],[-167.57875,66.05959],[-167.11072,66.23234],[-165.67056,66.60375],[-164.9505,66.733315],[-164.23042,66.81105],[-163.72638,66.81105],[-163.47435,66.78513],[-163.1143,66.690125],[-162.97029,66.5692],[-163.0063,66.45692],[-163.15031,66.37917],[-162.86229,66.31872],[-162.39424,66.45692],[-162.57426,66.54329],[-162.9343,66.621025],[-163.1143,66.733315],[-163.1143,66.83696],[-163.87039,66.914696],[-164.26643,67.026985],[-164.41045,67.11336],[-164.33844,67.26883],[-164.55446,67.49341],[-164.84248,67.55386],[-165.16652,67.69206],[-165.92259,67.933914],[-166.31863,67.99438],[-166.49866,68.1153],[-166.71468,68.158485],[-166.96669,68.158485],[-167.21872,68.21031],[-167.36273,68.296684],[-167.36273,68.40897],[-167.18272,68.51262],[-166.75067,68.62491],[-166.75067,68.95313],[-166.60666,69.039505],[-166.24663,69.09997],[-165.59856,69.065414],[-164.41045,69.134514],[-164.0504,69.23817],[-163.69037,69.43683],[-163.69037,69.71323],[-163.54636,69.90325],[-163.15031,70.101906],[-162.79028,70.33512],[-162.10622,70.53378],[-161.71017,70.54242],[-161.38614,70.507866],[-161.09811,70.55969],[-160.70207,70.68062],[-160.45004,70.81018],[-159.90999,70.99156],[-158.97389,71.121124],[-158.54185,71.121124],[-158.14581,71.052025],[-157.78578,71.14704],[-157.53375,71.31115],[-156.9577,71.53572],[-156.59766,71.60482],[-156.34564,71.60482],[-155.69757,71.501175],[-155.40955,71.432076],[-154.72548,71.33706],[-153.78938,71.10385],[-152.96129,71.1384],[-152.27722,71.08658],[-151.62917,70.93974],[-151.44914,70.801544],[-151.0171,70.689255],[-150.58505,70.715164],[-150.36903,70.76699],[-149.50494,70.78426],[-148.60486,70.68062],[-147.77678,70.70653],[-146.9487,70.5165],[-146.51665,70.4474],[-145.9406,70.41286],[-145.0765,70.24875],[-144.71648,70.22283],[-144.17642,70.31785],[-143.70837,70.36103],[-143.13231,70.36967],[-142.26823,70.188286],[-141.8722,70.05872],[-140.75607,69.84279],[-141.0081,69.64413],[-141.0081,60.307064],[-140.50404,60.22069],[-140.46805,60.307064],[-139.96399,60.18614],[-139.67596,60.332977],[-139.0639,60.35025],[-139.20792,60.09113],[-139.0639,59.996117],[-138.70387,59.90974],[-138.63187,59.77154],[-138.0558,59.486507],[-137.62376,59.24466],[-137.55176,59.10646],[-137.51575,58.9078],[-137.29973,59.00281],[-136.86769,59.132374],[-136.57965,59.166924],[-136.47165,59.287846],[-136.47165,59.469234],[-136.29163,59.460594],[-136.25563,59.564243],[-136.36363,59.598797],[-135.96759,59.659256],[-135.46355,59.797455],[-135.24753,59.702442],[-135.03151,59.564243],[-135.10352,59.426044],[-134.9955,59.38286],[-134.9595,59.27921],[-134.70747,59.2533],[-134.67146,59.192837],[-134.49146,59.132374],[-134.38344,59.03736],[-134.41945,58.9769],[-134.27542,58.864613],[-133.84338,58.726414],[-133.66336,58.57958],[-133.37534,58.432743],[-133.44734,58.389557],[-133.15932,58.156345],[-133.08731,58.00087],[-132.87129,57.836758],[-132.76328,57.69856],[-132.36723,57.35306],[-132.25923,57.214863],[-132.36723,57.09394],[-132.0432,57.042114],[-132.11522,56.869366],[-131.86319,56.808907],[-131.89919,56.75708],[-131.82718,56.60161],[-131.57516,56.610245],[-131.46715,56.54978],[-131.0711,56.402946],[-130.78308,56.368397],[-130.63907,56.264748],[-130.45905,56.238834],[-130.42303,56.14382],[-130.24303,56.100636],[-130.09901,56.12655],[-129.991,55.98835],[-130.02701,55.876064],[-130.13501,55.806965],[-130.09901,55.68604],[-130.13501,55.58239],[-130.02701,55.452827],[-129.991,55.28008],[-130.09901,55.193707],[-130.17102,55.064144],[-130.45905,54.84821],[-130.67506,54.761833],[-130.60306,54.71001],[-132.69127,54.658184],[-133.77138,54.632275],[-133.8794,54.74456],[-133.8794,54.96913],[-133.80739,55.090057],[-133.9874,55.202343],[-134.0234,55.305992],[-134.16742,55.401005],[-134.16742,55.504654],[-134.09541,55.634216],[-134.38344,55.634216],[-134.81548,55.72059],[-134.9595,55.85015],[-134.9595,55.9538],[-134.88748,56.005623],[-135.13951,56.1611],[-135.28352,56.377033],[-135.42754,56.515232],[-135.71558,56.627518],[-135.89558,56.765717],[-136.0396,56.834816],[-136.21962,56.973015],[-136.21962,57.327152],[-136.29163,57.39625],[-136.43564,57.4308],[-136.57965,57.52581],[-136.61566,57.646736],[-136.68767,57.66401],[-136.9397,57.888584],[-136.9397,58.087246],[-137.08371,58.17362],[-137.29973,58.225445],[-137.40775,58.294544],[-137.8758,58.458652],[-138.23582,58.683228],[-138.30783,58.830063],[-138.84789,58.9769],[-139.09991,59.089188],[-139.49596,59.184196],[-140.03601,59.365585],[-140.43204,59.521057],[-140.68407,59.521057],[-140.97209,59.555607],[-141.65616,59.728355],[-141.72818,59.762905],[-142.30423,59.866554],[-142.62827,59.90974],[-143.0243,59.857918],[-143.52835,59.84928],[-143.78038,59.80609],[-144.0684,59.797455],[-144.24843,59.65062],[-144.46445,59.58152],[-144.82448,59.61607],[-144.96849,59.711082],[-145.0045,59.832005],[-144.82448,60.02203],[-145.32854,60.04794],[-145.9406,60.18614],[-146.19261,60.15159],[-146.69667,59.978844],[-146.91269,59.978844],[-146.91269,59.857918],[-147.0567,59.736996],[-147.34473,59.659256],[-147.74077,59.58152],[-147.9568,59.58152],[-148.17282,59.633343],[-148.28082,59.75427],[-148.53285,59.728355],[-148.96489,59.736996],[-149.14491,59.641983],[-149.14491,59.564243],[-149.25293,59.426044],[-149.54095,59.331036],[-149.86499,59.37422],[-150.009,59.2533],[-150.18903,59.158287],[-150.51305,59.132374],[-150.72908,59.03736],[-151.1251,59.00281],[-151.30513,58.925076],[-151.55716,58.91644],[-151.59315,58.821426],[-151.91719,58.683228],[-151.77318,58.5623],[-151.62917,58.553665],[-151.41315,58.44138],[-151.37714,58.208168],[-151.44914,58.095882],[-151.59315,58.018147],[-151.91719,57.974957],[-151.73717,57.7072],[-151.77318,57.52581],[-151.8812,57.46535],[-151.8812,57.309875],[-152.0612,57.206226],[-152.38524,57.180313],[-152.52925,57.050755],[-152.67326,56.973015],[-152.88928,56.938465],[-153.03331,56.834816],[-153.24933,56.800266],[-153.46535,56.662067],[-153.46535,56.53251],[-153.64537,56.377033],[-153.89738,56.31657],[-154.40144,56.307934],[-154.61746,56.22156],[-154.79749,56.21292],[-155.0495,56.29066],[-155.15752,56.42022],[-155.0495,56.610245],[-154.9415,56.68798],[-154.65346,56.800266],[-154.86949,56.938465],[-154.86949,57.102577],[-155.0135,57.137127],[-155.19351,57.26669],[-155.15752,57.439438],[-155.37354,57.482624],[-155.55356,57.37034],[-155.91359,57.258053],[-155.8776,57.145763],[-155.9856,57.02484],[-156.09361,56.973015],[-156.20161,56.808907],[-156.34564,56.72253],[-156.59766,56.627518],[-156.63367,56.42886],[-156.45364,56.368397],[-156.38164,56.230198],[-156.27362,56.1611],[-156.27362,55.971073],[-156.45364,55.841515],[-156.63367,55.798325],[-156.92169,55.824238],[-157.0657,55.91061],[-157.13771,56.083363],[-157.13771,56.299297],[-157.35373,56.333847],[-157.35373,56.21292],[-157.49776,56.117912],[-157.71378,56.083363],[-157.89378,55.979713],[-158.0738,55.9538],[-158.10982,55.8847],[-158.32584,55.8156],[-158.46985,55.677402],[-158.75787,55.599667],[-159.08191,55.608303],[-159.22592,55.556477],[-159.26193,55.47874],[-159.1179,55.25417],[-158.9379,55.159157],[-158.9379,55.07278],[-158.82988,54.98641],[-158.82988,54.874123],[-158.90189,54.787746],[-159.08191,54.692734],[-159.18993,54.684097],[-159.33394,54.589085],[-159.65796,54.57181],[-159.982,54.64091],[-160.054,54.692734],[-160.30603,54.684097],[-160.41405,54.71001],[-160.55806,54.81366],[-160.59406,54.900032],[-161.09811,54.96913],[-161.27812,54.856846],[-161.27812,54.735924],[-161.38614,54.632275],[-161.71017,54.554535],[-161.85419,54.459522],[-161.9982,54.433613],[-161.9982,54.312687],[-162.14221,54.217674],[-162.46625,54.114025],[-162.79028,54.114025],[-163.18633,54.243587],[-163.25833,54.329964],[-163.25833,54.468163],[-163.47435,54.416336],[-163.76237,54.450886],[-164.0144,54.424973],[-164.0504,54.355873],[-164.30243,54.243587],[-164.41045,54.23495],[-164.41045,54.157215],[-164.66246,53.958553],[-164.77048,53.90673],[-165.20251,53.854904],[-165.70657,53.846268],[-165.74257,53.690792],[-165.9946,53.552593],[-166.21062,53.50077],[-166.35463,53.379845],[-166.57066,53.276196],[-166.75067,53.241646],[-167.0027,53.241646],[-167.25473,53.112083],[-167.54276,53.042988],[-167.68677,53.034348],[-167.86679,53.086174],[-168.0468,53.042988],[-168.0468,52.95661],[-168.15482,52.852962],[-168.33484,52.7925],[-168.8749,52.680214],[-169.16292,52.576565],[-169.37894,52.5852],[-169.45094,52.628387],[-169.59496,52.593838],[-169.81097,52.593838],[-169.991,52.53338],[-170.27902,52.542015],[-170.42303,52.438366],[-170.67506,52.36063],[-170.9271,52.377903],[-170.96309,52.32608],[-171.14311,52.265617],[-171.35913,52.265617],[-171.50314,52.300167],[-171.61116,52.39518],[-171.61116,52.49883]]]]},properties:{iso_3166_2:"US-AK",postal:"AK",name:"Alaska",label_en:"Alaska"},id:"Q797"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-83.11431,24.608568],[-83.11431,24.66903],[-83.0063,24.772678],[-82.790276,24.798592],[-82.68227,24.764042],[-82.64626,24.712217],[-82.64626,24.582657],[-82.934296,24.56538],[-83.0063,24.582657],[-83.0063,24.479006],[-83.07831,24.513556],[-83.11431,24.608568]]],[[[-87.57876,30.991629],[-87.61476,30.991629],[-87.61476,31.000265],[-86.71467,31.000265],[-86.71467,30.991629],[-85.63456,30.991629],[-85.63456,31.000265],[-84.986496,31.000265],[-84.95049,30.862066],[-84.91449,30.74978],[-84.84248,30.706593],[-83.762375,30.654768],[-83.58236,30.654768],[-83.150314,30.620218],[-82.21422,30.568394],[-82.21422,30.438833],[-82.21422,30.430195],[-82.178215,30.361095],[-82.10621,30.369734],[-82.10621,30.361095],[-82.070206,30.361095],[-82.0342,30.361095],[-82.0342,30.369734],[-82.0342,30.430195],[-82.0342,30.438833],[-82.0342,30.48202],[-81.9982,30.499294],[-82.0342,30.499294],[-82.0342,30.525208],[-82.0342,30.533844],[-81.9982,30.533844],[-82.0342,30.602943],[-82.0342,30.74978],[-82.0342,30.758417],[-81.9982,30.775692],[-81.89019,30.81888],[-81.818184,30.78433],[-81.78218,30.775692],[-81.710175,30.74978],[-81.674164,30.74978],[-81.674164,30.741142],[-81.63816,30.732506],[-81.63816,30.723867],[-81.60216,30.723867],[-81.53015,30.71523],[-81.350136,30.71523],[-81.38614,30.663406],[-81.38614,30.525208],[-81.31413,30.369734],[-81.31413,30.17971],[-81.24213,29.929224],[-81.20612,29.920588],[-81.20612,29.765114],[-81.09811,29.514627],[-81.0261,29.436892],[-81.0261,29.359154],[-80.91809,29.143217],[-80.846085,29.082756],[-80.738075,28.875458],[-80.52205,28.624973],[-80.486046,28.538597],[-80.486046,28.409037],[-80.52205,28.400398],[-80.52205,28.115364],[-80.34203,27.752592],[-80.27003,27.528019],[-80.16202,27.35527],[-80.09001,27.104786],[-80.018005,27.009773],[-79.981995,26.88885],[-79.981995,26.474253],[-80.018005,26.431065],[-80.018005,26.18058],[-80.05401,26.11148],[-80.05401,25.748709],[-80.09001,25.636421],[-80.05401,25.550049],[-80.126015,25.54141],[-80.126015,25.325474],[-80.234024,25.299562],[-80.234024,25.178638],[-80.45004,24.954065],[-80.59406,24.893602],[-80.630066,24.841778],[-81.0621,24.63448],[-81.17012,24.63448],[-81.42214,24.556744],[-81.53015,24.56538],[-81.53015,24.487644],[-81.710175,24.427181],[-81.9622,24.40127],[-81.9622,24.461733],[-82.0342,24.49628],[-82.178215,24.49628],[-82.21422,24.582657],[-82.322235,24.582657],[-82.28623,24.694942],[-82.178215,24.746767],[-82.0342,24.729492],[-81.89019,24.764042],[-81.674164,24.859053],[-81.49415,24.97134],[-81.17012,24.97134],[-81.27813,25.049076],[-81.350136,25.187277],[-81.31413,25.394573],[-81.38614,25.446398],[-81.38614,25.515497],[-81.49415,25.584597],[-81.53015,25.670973],[-81.710175,25.670973],[-81.78218,25.696884],[-81.92619,25.895544],[-81.9622,26.007832],[-81.9622,26.14603],[-81.9982,26.154669],[-81.9982,26.28423],[-82.10621,26.266954],[-82.322235,26.370604],[-82.35824,26.51744],[-82.430244,26.603813],[-82.430244,26.767925],[-82.50225,26.81975],[-82.61026,26.983862],[-82.64626,27.139336],[-82.71827,27.182522],[-82.86229,27.372545],[-82.934296,27.510744],[-82.934296,27.718042],[-83.0063,27.769867],[-83.0063,28.29675],[-82.89829,28.348576],[-82.86229,28.409037],[-82.86229,28.650885],[-82.934296,28.745897],[-82.934296,28.961832],[-83.11431,28.944557],[-83.25832,29.048206],[-83.25832,29.160494],[-83.33033,29.186405],[-83.36634,29.30733],[-83.54636,29.402342],[-83.58236,29.57509],[-83.72637,29.64419],[-83.762375,29.782389],[-83.94239,29.84285],[-84.05041,29.937862],[-84.15842,29.920588],[-84.23042,29.77375],[-84.44644,29.730564],[-84.482445,29.670101],[-84.626465,29.618277],[-84.69847,29.549177],[-84.80648,29.523266],[-84.986496,29.436892],[-85.094505,29.436892],[-85.238525,29.514627],[-85.38254,29.50599],[-85.49055,29.549177],[-85.56255,29.652826],[-85.59856,29.851488],[-85.77858,29.955137],[-85.92259,30.067423],[-86.13861,30.162436],[-86.42664,30.231533],[-86.75067,30.240171],[-87.038704,30.188347],[-87.50675,30.127886],[-87.50675,30.222897],[-87.47075,30.30927],[-87.47075,30.300634],[-87.434746,30.41292],[-87.434746,30.568394],[-87.39874,30.568394],[-87.39874,30.577032],[-87.39874,30.680681],[-87.50675,30.71523],[-87.50675,30.723867],[-87.57876,30.810242],[-87.57876,30.81888],[-87.61476,30.81888],[-87.57876,30.991629]]]]},properties:{iso_3166_2:"US-FL",postal:"FL",name:"Florida",label_en:"Florida"},id:"Q812"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-114.72547,32.719112],[-114.68947,32.73639],[-114.545456,32.762302],[-114.47345,32.848675],[-114.47345,32.9696],[-114.50945,33.030064],[-114.653465,33.0387],[-114.68947,33.0387],[-114.68947,33.37556],[-114.653465,33.418747],[-114.545456,33.51376],[-114.545456,33.686504],[-114.50945,33.816067],[-114.50945,33.893806],[-114.50945,33.902443],[-114.545456,33.919716],[-114.43745,34.01473],[-114.43745,34.101105],[-114.29343,34.14429],[-114.149414,34.265213],[-114.149414,34.334312],[-114.32943,34.4466],[-114.43745,34.57616],[-114.43745,34.67981],[-114.58146,34.78346],[-114.61746,34.84392],[-114.61746,34.999397],[-114.58146,35.12032],[-114.58146,35.336254],[-114.653465,35.465816],[-114.653465,35.62993],[-114.68947,35.62993],[-114.68947,35.906326],[-114.72547,35.984062],[-114.761475,36.096348],[-114.653465,36.130898],[-114.40144,36.148174],[-114.22142,36.018612],[-114.149414,36.02725],[-114.041405,36.19136],[-114.041405,37.00328],[-113.10531,37.00328],[-111.55716,37.00328],[-110.47705,37.00328],[-110.47705,36.99464],[-109.61296,36.99464],[-109.0369,37.00328],[-109.0369,31.328487],[-109.28893,31.337126],[-110.94509,31.337126],[-111.08911,31.328487],[-111.34113,31.4235],[-111.66517,31.51851],[-112.60126,31.812183],[-113.0333,31.950382],[-113.681366,32.140408],[-114.47345,32.39953],[-114.83348,32.49454],[-114.79748,32.503178],[-114.79748,32.63274],[-114.72547,32.719112]]]},properties:{iso_3166_2:"US-AZ",postal:"AZ",name:"Arizona",label_en:"Arizona"},id:"Q816"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-124.15842,46.262604],[-123.9784,46.27124],[-123.870384,46.23669],[-123.43835,46.253967],[-123.40234,46.15032],[-123.11431,46.176228],[-122.89829,46.08122],[-122.790276,45.93438],[-122.75427,45.64071],[-122.430244,45.562973],[-122.25022,45.545696],[-121.9622,45.623432],[-121.818184,45.70981],[-121.74618,45.69253],[-121.53015,45.72708],[-121.42214,45.69253],[-121.20612,45.67526],[-121.13411,45.60616],[-121.13411,45.614796],[-121.09811,45.649345],[-120.88209,45.64071],[-120.630066,45.744358],[-120.486046,45.69253],[-120.19802,45.72708],[-120.018005,45.813457],[-119.65797,45.856644],[-119.58596,45.925743],[-119.47795,45.90847],[-119.261925,45.94302],[-119.153915,45.925743],[-118.9739,46.003483],[-117.64176,46.003483],[-117.60576,45.994843],[-116.92169,45.994843],[-116.88569,45.917107],[-116.52565,45.744358],[-116.45364,45.597523],[-116.56165,45.511147],[-116.56165,45.450684],[-116.66967,45.347034],[-116.70567,45.174286],[-116.849686,44.984264],[-116.849686,44.975628],[-116.849686,44.932438],[-116.92169,44.785603],[-117.0297,44.75969],[-117.13771,44.53512],[-117.209724,44.50057],[-117.24573,44.371006],[-117.209724,44.267357],[-117.10171,44.275993],[-117.0297,44.241444],[-116.88569,44.180984],[-116.957695,44.034145],[-116.957695,43.904587],[-117.0297,43.861397],[-117.0297,41.995712],[-118.10981,41.995712],[-119.261925,41.995712],[-119.981995,41.995712],[-121.63816,41.995712],[-121.674164,42.004353],[-122.39424,42.004353],[-123.61836,42.004353],[-123.61836,41.995712],[-124.33843,41.995712],[-124.41044,42.04754],[-124.41044,42.125275],[-124.482445,42.194374],[-124.482445,42.401672],[-124.55446,42.41031],[-124.55446,42.496685],[-124.482445,42.53987],[-124.482445,42.617607],[-124.55446,42.703983],[-124.69847,42.729897],[-124.66247,42.859455],[-124.55446,42.919918],[-124.482445,43.15313],[-124.482445,43.34315],[-124.374435,43.394978],[-124.23042,43.775024],[-124.23042,43.95641],[-124.19442,43.982323],[-124.19442,44.32782],[-124.15842,44.336456],[-124.15842,44.83743],[-124.08641,44.932438],[-124.08641,45.09655],[-124.05041,45.105186],[-124.05041,45.562973],[-124.014404,45.588882],[-124.05041,45.72708],[-124.05041,45.899834],[-124.08641,45.97757],[-124.014404,45.994843],[-124.014404,46.13304],[-124.15842,46.262604]]]},properties:{iso_3166_2:"US-OR",postal:"OR",name:"Oregon",label_en:"Oregon"},id:"Q824"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-114.041405,41.995712],[-112.78128,41.995712],[-112.16922,42.004353],[-112.16922,41.995712],[-111.485146,41.995712],[-111.05311,42.004353],[-111.05311,40.99377],[-109.82898,40.99377],[-109.72097,41.00241],[-109.0369,41.00241],[-109.0369,38.868965],[-109.07291,38.85169],[-109.07291,38.24707],[-109.0369,38.16933],[-109.0369,37.00328],[-109.61296,36.99464],[-110.47705,36.99464],[-110.47705,37.00328],[-111.55716,37.00328],[-113.10531,37.00328],[-114.041405,37.00328],[-114.041405,41.995712]]]},properties:{iso_3166_2:"US-UT",postal:"UT",name:"Utah",label_en:"Utah"},id:"Q829"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-123.18632,37.77201],[-123.07831,37.823833],[-122.934296,37.728825],[-122.934296,37.659725],[-123.042305,37.64245],[-123.07831,37.711548],[-123.18632,37.77201]]],[[[-118.61386,33.021423],[-118.541855,33.012787],[-118.50585,32.92641],[-118.36184,32.82276],[-118.50585,32.84004],[-118.61386,33.021423]]],[[[-119.65797,33.27191],[-119.65797,33.306458],[-119.513954,33.33237],[-119.369934,33.27191],[-119.369934,33.185535],[-119.47795,33.159622],[-119.58596,33.185535],[-119.65797,33.27191]]],[[[-118.68587,33.47921],[-118.649864,33.522396],[-118.50585,33.531033],[-118.325836,33.453297],[-118.25382,33.37556],[-118.25382,33.27191],[-118.325836,33.246],[-118.50585,33.28055],[-118.541855,33.384197],[-118.61386,33.392834],[-118.68587,33.47921]]],[[[-120.234024,33.997456],[-120.05401,34.023365],[-119.981995,33.94563],[-120.09001,33.902443],[-120.19802,33.928352],[-120.234024,33.997456]]],[[[-119.765976,33.36692],[-119.72997,33.410107],[-119.62196,33.384197],[-119.69397,33.306458],[-119.765976,33.36692]]],[[[-119.11791,33.487846],[-119.08191,33.53967],[-118.9739,33.531033],[-118.9739,33.427383],[-119.08191,33.410107],[-119.11791,33.487846]]],[[[-119.94599,34.057915],[-119.765976,34.057915],[-119.69397,34.023365],[-119.513954,34.04064],[-119.54996,33.997456],[-119.69397,33.962906],[-119.873985,33.971542],[-119.873985,34.04064],[-119.94599,34.057915]]],[[[-124.33843,41.995712],[-123.61836,41.995712],[-123.61836,42.004353],[-122.39424,42.004353],[-121.674164,42.004353],[-121.63816,41.995712],[-119.981995,41.995712],[-119.981995,41.287445],[-120.018005,41.20107],[-119.981995,41.123333],[-119.981995,39.82772],[-120.018005,39.793167],[-120.018005,38.998524],[-119.62196,38.730766],[-119.44194,38.627117],[-119.261925,38.48028],[-119.0099,38.324806],[-118.9379,38.24707],[-118.75787,38.14342],[-118.433846,37.892933],[-118.289825,37.80656],[-118.10981,37.651085],[-117.31773,37.081017],[-116.9937,36.830532],[-116.63366,36.580044],[-116.45364,36.424572],[-115.94959,36.03589],[-115.80558,35.940876],[-115.58956,35.75085],[-115.33753,35.578102],[-115.12151,35.37944],[-114.83348,35.172146],[-114.68947,35.033943],[-114.61746,34.999397],[-114.61746,34.84392],[-114.58146,34.78346],[-114.43745,34.67981],[-114.43745,34.57616],[-114.32943,34.4466],[-114.149414,34.334312],[-114.149414,34.265213],[-114.29343,34.14429],[-114.43745,34.101105],[-114.43745,34.01473],[-114.545456,33.919716],[-114.50945,33.902443],[-114.50945,33.893806],[-114.50945,33.816067],[-114.545456,33.686504],[-114.545456,33.51376],[-114.653465,33.418747],[-114.68947,33.37556],[-114.68947,33.0387],[-114.653465,33.0387],[-114.50945,33.030064],[-114.47345,32.9696],[-114.47345,32.848675],[-114.545456,32.762302],[-114.68947,32.73639],[-114.72547,32.719112],[-115.40954,32.66729],[-116.345634,32.59819],[-116.92169,32.546368],[-117.209724,32.52909],[-117.209724,32.624104],[-117.31773,32.658653],[-117.31773,32.883224],[-117.42574,33.1769],[-117.78578,33.43602],[-117.85779,33.522396],[-118.10981,33.65196],[-118.10981,33.695145],[-118.289825,33.660595],[-118.46985,33.729694],[-118.46985,33.859257],[-118.541855,33.988815],[-118.75787,33.98018],[-118.79388,33.94563],[-119.22592,34.06655],[-119.33393,34.239304],[-119.58596,34.360226],[-119.69397,34.334312],[-119.90999,34.360226],[-120.126015,34.42069],[-120.486046,34.394775],[-120.55806,34.489788],[-120.70207,34.524338],[-120.70207,34.723],[-120.66607,34.81801],[-120.738075,34.869835],[-120.70207,34.956207],[-120.70207,35.111683],[-120.88209,35.146233],[-120.954094,35.206696],[-120.91809,35.396717],[-121.0261,35.413994],[-121.17012,35.52628],[-121.17012,35.569466],[-121.350136,35.638565],[-121.38614,35.768127],[-121.53015,35.863136],[-121.566154,35.949512],[-121.63816,35.96679],[-121.674164,36.08771],[-121.74618,36.15681],[-121.85419,36.182724],[-121.9622,36.269096],[-121.9622,36.407295],[-122.0342,36.502308],[-122.0342,36.82189],[-122.070206,36.908268],[-122.21422,36.96009],[-122.28623,37.03783],[-122.39424,37.07238],[-122.46625,37.158752],[-122.46625,37.348778],[-122.50225,37.443787],[-122.57426,37.4697],[-122.57426,37.789284],[-122.790276,37.867023],[-122.86229,37.927483],[-123.07831,37.962032],[-123.07831,38.039772],[-123.0063,38.126144],[-123.042305,38.221157],[-123.150314,38.298893],[-123.150314,38.393906],[-123.40234,38.54074],[-123.51035,38.687576],[-123.58236,38.704853],[-123.79838,38.894875],[-123.762375,39.007164],[-123.90639,39.335384],[-123.90639,39.447674],[-123.83438,39.52541],[-123.94239,39.810444],[-124.05041,39.95728],[-124.15842,40.009106],[-124.15842,40.06957],[-124.41044,40.207764],[-124.41044,40.36324],[-124.482445,40.415066],[-124.41044,40.631],[-124.30243,40.73465],[-124.19442,40.950584],[-124.266426,41.149246],[-124.19442,41.183796],[-124.15842,41.287445],[-124.23042,41.29608],[-124.23042,41.382458],[-124.12241,41.382458],[-124.12241,41.46883],[-124.19442,41.555202],[-124.19442,41.684765],[-124.266426,41.6934],[-124.44644,41.80569],[-124.44644,41.866154],[-124.266426,41.87479],[-124.33843,41.995712]]]]},properties:{iso_3166_2:"US-CA",postal:"CA",name:"California",label_en:"California"},id:"Q99"}]}},function(e){e.exports={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.68667,17.02444],[-61.887222,17.105274],[-61.79445,17.16333],[-61.68667,17.02444]]]},properties:{name:"Antigua and Barbuda",iso2:"AG",iso3:"ATG"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[8.62203,36.94137],[8.183611,36.524162],[8.251665,34.64444],[7.492499,33.887497],[8.34861,32.533333],[9.055277,32.1],[9.537113,30.23439],[9.766388,29.427776],[9.948332,27.824444],[9.871666,26.514164],[9.398333,26.153332],[10.252222,24.605831],[11.558887,24.302498],[11.986475,23.522305],[7.450807,20.852863],[5.812499,19.44611],[4.245277,19.146664],[3.331944,18.976387],[3.233055,19.820274],[1.795833,20.30833],[1.1675,20.741108],[1.169662,21.102543],[-4.806111,25.000275],[-6.662778,26.129166],[-8.66679,27.290459],[-8.666668,27.666664],[-8.667223,28.709442],[-7.123889,29.636944],[-5.538334,29.902496],[-4.920556,30.508053],[-3.626667,30.970554],[-3.818334,31.695553],[-2.853889,32.088333],[-1.180556,32.11055],[-1.010278,32.50833],[-1.668056,33.26111],[-1.747222,34.747215],[-2.209445,35.08583],[.95,36.45027],[2.96361,36.802216],[4.785832,36.894722],[5.328055,36.640274],[6.398333,37.086388],[8.62203,36.94137]]]},properties:{name:"Algeria",iso2:"DZ",iso3:"DZA"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[46.178246,38.84115],[44.81304,39.630814],[44.778862,39.706383],[45.819984,39.549725],[46.178246,38.84115]]],[[[48.583958,41.835773],[49.52805,40.662766],[49.48805,40.150536],[48.888283,38.442406],[48.02082,38.83554],[48.359787,39.385216],[47.97666,39.71923],[46.540375,38.875587],[46.541386,39.56444],[45.595818,39.978046],[46.00194,40.22555],[45.02294,41.29705],[45.336655,41.462494],[46.52082,41.049988],[46.45175,41.897057],[47.766933,41.196095],[48.583958,41.835773]]]]},properties:{name:"Azerbaijan",iso2:"AZ",iso3:"AZE"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[19.367771,41.849],[19.645832,42.61805],[20.071423,42.560913],[20.589642,41.882187],[20.492775,41.33111],[20.98349,40.85589],[20.671944,40.098053],[20.010029,39.6912],[19.478611,40.350273],[19.367771,41.849]]]},properties:{name:"Albania",iso2:"AL",iso3:"ALB"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[46.540375,38.875587],[46.178246,38.84115],[45.819984,39.549725],[44.778862,39.706383],[44.347214,40.023888],[43.657494,40.108597],[43.751938,40.739998],[43.46077,41.11296],[45.02294,41.29705],[46.00194,40.22555],[45.595818,39.978046],[46.541386,39.56444],[46.540375,38.875587]]]},properties:{name:"Armenia",iso2:"AM",iso3:"ARM"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[23.986206,-10.870461],[24.020554,-13.00639],[21.998333,-13.004168],[22.000149,-16.171661],[23.476109,-17.625835],[20.854164,-18.016392],[18.915833,-17.815556],[18.451538,-17.389835],[13.993219,-17.423946],[13.160555,-16.952778],[11.752783,-17.254833],[11.73139,-15.846668],[12.509722,-13.42528],[13.792501,-11.791668],[13.773611,-10.684723],[12.984446,-9.087502],[13.39139,-8.387222],[12.245001,-6.098055],[13.178881,-5.856329],[16.579721,-5.900833],[16.941668,-7.19861],[17.624166,-8.098057],[19.373056,-7.996111],[19.53895,-6.996614],[20.629747,-6.913881],[20.548716,-7.283615],[21.78296,-7.280842],[21.790556,-9.405556],[22.312223,-10.364445],[22.25389,-11.209723],[23.986206,-10.870461]]],[[[12.214552,-5.768555],[12.026131,-5.014997],[12.779047,-4.388991],[13.091389,-4.633056],[12.565554,-5.025555],[12.526667,-5.724167],[12.214552,-5.768555]]]]},properties:{name:"Angola",iso2:"AO",iso3:"AGO"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-170.63727,-14.289446],[-170.82611,-14.325003],[-170.56003,-14.265837],[-170.63727,-14.289446]]]},properties:{name:"American Samoa",iso2:"AS",iso3:"ASM"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-68.63583,-54.788338],[-68.617584,-52.64151],[-68.543625,-53.229446],[-67.35918,-54.028893],[-65.13806,-54.651672],[-65.3539,-54.92917],[-66.44612,-55.051674],[-68.63583,-54.788338]]],[[[-62.64377,-22.238903],[-61.007782,-23.813335],[-57.75611,-25.176945],[-57.576668,-25.549446],[-58.60462,-27.316921],[-55.736115,-27.439445],[-54.698334,-26.438335],[-54.598915,-25.573223],[-53.863335,-25.681114],[-53.807785,-27.12917],[-55.76528,-28.226112],[-57.608,-30.184925],[-58.19924,-32.45031],[-58.147224,-33.051674],[-58.53195,-33.516945],[-58.469727,-34.539726],[-57.18834,-35.320557],[-57.37667,-35.962784],[-56.74167,-36.318336],[-56.663063,-36.90056],[-57.57167,-38.133057],[-58.301117,-38.485],[-61.09445,-38.995834],[-62.381393,-38.798615],[-62.020004,-39.37806],[-62.48945,-40.299446],[-62.390007,-40.901947],[-63.76584,-41.16584],[-65.134445,-40.84778],[-65.013626,-42.092224],[-64.45195,-42.44584],[-63.74695,-42.09056],[-63.58056,-42.623894],[-65.32251,-43.65306],[-65.24945,-44.313057],[-65.60474,-45.016396],[-66.94945,-45.25556],[-67.58435,-46.000298],[-67.50612,-46.458893],[-66.816956,-46.99167],[-65.77945,-47.189445],[-65.78723,-47.9625],[-67.57945,-49.034172],[-67.89723,-49.98584],[-68.94112,-50.38806],[-69.183624,-50.97056],[-68.98807,-51.624725],[-68.44176,-52.377777],[-69.99834,-51.99639],[-71.91057,-51.995834],[-72.40056,-51.51362],[-72.294174,-50.649727],[-73.16612,-50.753334],[-73.58362,-49.538063],[-72.56418,-48.80445],[-72.28723,-48.34195],[-72.53639,-47.921394],[-71.86862,-47.221672],[-71.66945,-46.67917],[-71.78056,-45.648895],[-71.29779,-45.293335],[-71.10806,-44.539726],[-71.85501,-44.371674],[-71.73279,-43.188057],[-72.13695,-43.00917],[-72.13196,-42.288895],[-71.72612,-42.096672],[-71.95056,-40.73278],[-71.69556,-39.58445],[-71.4014,-38.92028],[-70.82417,-38.56806],[-71.18529,-36.842224],[-70.42432,-36.13604],[-70.567505,-35.24778],[-69.8125,-34.235558],[-69.774445,-33.38111],[-70.09889,-33.1725],[-70.533066,-31.188057],[-69.83168,-30.190556],[-70.0314,-29.306393],[-69.65538,-28.400932],[-68.81084,-27.120556],[-68.28723,-26.91528],[-68.58362,-26.50528],[-68.35196,-25.117226],[-68.565,-24.774445],[-67.335846,-24.021666],[-67.00084,-23.00278],[-67.183624,-22.821667],[-66.22301,-21.780521],[-65.74806,-22.111668],[-64.59056,-22.214725],[-64.32472,-22.873611],[-63.941116,-22.000835],[-62.81195,-21.996948],[-62.64377,-22.238903]]]]},properties:{name:"Argentina",iso2:"AR",iso3:"ARG"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[145.10773,-40.82167],[146.58609,-41.18666],[148.2233,-40.850838],[148.18387,-41.943054],[147.84302,-42.869446],[147.31747,-42.846664],[146.9167,-43.617844],[145.49692,-42.95778],[145.55191,-42.344162],[144.68246,-41.223328],[145.10773,-40.82167]]],[[[130.5733,-11.349443],[131.275,-11.189167],[131.53915,-11.461666],[130.95886,-11.938889],[130.5733,-11.349443]]],[[[142.51276,-10.866943],[143.42914,-12.614445],[143.7822,-14.413334],[144.51053,-14.168333],[145.3158,-14.945555],[145.4036,-16.46222],[145.96051,-16.895279],[146.10663,-17.683609],[146.00943,-18.238052],[146.27527,-18.883888],[148.77747,-20.232498],[148.69165,-20.624443],[149.21469,-21.080002],[149.6611,-22.496666],[150.03415,-22.149723],[150.59302,-22.586113],[150.86719,-23.505001],[151.53857,-24.089169],[151.9372,-24.221664],[153.18192,-25.949444],[153.03387,-27.179443],[153.62552,-28.666664],[153.05246,-31.035],[152.5297,-32.40361],[151.45276,-33.319168],[150.84052,-35.08278],[150.16248,-35.94055],[149.97385,-37.520554],[147.76443,-37.979996],[146.87357,-38.651665],[145.41608,-38.545837],[144.92914,-37.869164],[143.54385,-38.86],[142.38889,-38.364723],[141.57135,-38.41722],[140.52997,-38.000282],[139.81442,-37.29973],[139.82053,-36.545837],[139.07735,-35.682636],[138.09302,-35.620834],[138.51416,-35.028053],[138.09802,-34.137222],[137.74469,-35.13861],[137.43774,-34.934723],[137.44998,-34.15139],[137.20996,-33.666107],[135.93274,-34.541946],[135.50693,-34.618057],[134.70914,-33.17917],[134.26913,-33.15972],[134.18414,-32.486664],[132.76443,-31.950832],[132.20386,-32.03167],[131.15219,-31.474167],[128.98746,-31.694164],[127.26776,-32.278336],[125.96832,-32.266113],[124.28194,-32.985558],[123.54082,-33.90583],[120.00499,-33.928886],[117.93442,-35.12583],[116.46332,-35.00084],[115.00804,-34.26306],[115.71111,-33.269997],[115.73943,-31.865276],[115.04553,-30.506947],[114.88554,-29.20111],[113.22443,-26.239166],[113.71193,-26.195278],[114.25916,-25.846668],[113.38971,-24.429443],[114.01805,-21.850834],[114.65109,-21.84],[116.70749,-20.649166],[117.68803,-20.67583],[119.08249,-19.967499],[121.02748,-19.592224],[122.35332,-18.105555],[122.17499,-17.243332],[122.91776,-16.415554],[123.42442,-16.502502],[123.72943,-16.13889],[124.40054,-16.329445],[124.44775,-15.486387],[125.13554,-14.741388],[125.71887,-14.400278],[126.0372,-14.516666],[126.86276,-13.749165],[127.42082,-13.949722],[128.16943,-14.702778],[129.73245,-15.197222],[129.37024,-14.333332],[130.14081,-12.924168],[130.89636,-12.640278],[131.02719,-12.145554],[132.3836,-12.379999],[132.69107,-11.655001],[133.18304,-11.716665],[135.23135,-12.294445],[136.5622,-11.934444],[136.9819,-12.356943],[136.35052,-13.0525],[135.92386,-13.281389],[136.02026,-13.762501],[135.45663,-14.941111],[136.76581,-15.904446],[137.7308,-16.246109],[138.19025,-16.704998],[139.01749,-16.903053],[139.26053,-17.342499],[140.49496,-17.640835],[141.42691,-16.079166],[141.58386,-12.989166],[142.02887,-12.062222],[142.14194,-10.956667],[142.51276,-10.866943]]]]},properties:{name:"Australia",iso2:"AU",iso3:"AUS"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[50.53222,26.234444],[50.57333,25.809723],[50.461662,25.965275],[50.53222,26.234444]]]},properties:{name:"Bahrain",iso2:"BH",iso3:"BHR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-59.53306,13.050554],[-59.641113,13.331388],[-59.42917,13.164999],[-59.53306,13.050554]]]},properties:{name:"Barbados",iso2:"BB",iso3:"BRB"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-64.78334,32.270554],[-64.85827,32.266796],[-64.67168,32.379997],[-64.78334,32.270554]]]},properties:{name:"Bermuda",iso2:"BM",iso3:"BMU"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-77.735,26.914446],[-77.04224,26.50889],[-77.20473,25.880835],[-77.398056,26.026388],[-77.148895,26.548887],[-77.735,26.914446]]]},properties:{name:"Bahamas",iso2:"BS",iso3:"BHS"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[92.600815,21.982218],[92.66934,21.296982],[92.26193,21.054312],[91.7,22.488329],[91.455826,22.789999],[90.8336,22.685553],[90.27249,21.849165],[89.932205,21.997774],[89.249146,21.642496],[89.063,22.115477],[88.9861,23.20833],[88.56387,23.65222],[88.750534,24.220984],[88.04332,24.684164],[88.45082,25.187777],[88.110535,25.835554],[88.433044,26.55139],[89.34277,26.01703],[89.73915,26.156385],[89.84526,25.28861],[92.40637,25.030554],[92.12137,24.393332],[91.37329,24.101942],[91.159424,23.640554],[91.6136,22.943052],[91.95,23.732218],[92.283325,23.705275],[92.600815,21.982218]]]},properties:{name:"Bangladesh",iso2:"BD",iso3:"BGD"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-88.91057,15.89361],[-89.21617,15.889851],[-89.14195,17.818888],[-88.2995,18.48293],[-88.07779,18.215553],[-88.2814,17.636108],[-88.20862,16.968609],[-88.91057,15.89361]]]},properties:{name:"Belize",iso2:"BZ",iso3:"BLZ"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[19.039719,44.86138],[19.51083,43.679718],[19.22881,43.513214],[18.699997,43.255554],[18.455555,42.565826],[17.649841,42.889076],[17.578526,42.943825],[16.143055,44.19944],[15.786665,45.171944],[18.251942,45.138885],[19.039719,44.86138]]]},properties:{name:"Bosnia and Herzegovina",iso2:"BA",iso3:"BIH"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-67.183624,-22.821667],[-67.8764,-22.828056],[-68.188614,-21.296947],[-68.75696,-20.406948],[-68.4375,-19.430279],[-68.90779,-19.055279],[-69.07167,-18.03889],[-69.499725,-17.50528],[-69.6189,-17.214725],[-68.82251,-16.339725],[-69.42195,-15.618057],[-69.13695,-15.245834],[-69.366394,-14.802502],[-68.85306,-14.199167],[-68.97446,-12.869722],[-68.673904,-12.50115],[-69.568436,-10.951092],[-68.58345,-11.106138],[-66.634445,-9.906946],[-65.38196,-9.697779],[-65.39279,-11.26639],[-64.99167,-12.008057],[-64.39418,-12.461668],[-63.075005,-12.650002],[-61.833893,-13.544724],[-61.03898,-13.493118],[-60.47084,-13.807222],[-60.258896,-15.093613],[-60.571396,-15.097502],[-60.16028,-16.263058],[-58.327507,-16.279167],[-58.397507,-17.249168],[-57.743057,-17.593056],[-57.52112,-18.203892],[-58.121117,-19.74139],[-58.15889,-20.168056],[-58.15139,-19.828056],[-59.09584,-19.348892],[-61.7425,-19.645],[-62.64377,-22.238903],[-62.81195,-21.996948],[-63.941116,-22.000835],[-64.32472,-22.873611],[-64.59056,-22.214725],[-65.74806,-22.111668],[-66.22301,-21.780521],[-67.183624,-22.821667]]]},properties:{name:"Bolivia",iso2:"BO",iso3:"BOL"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[101.14824,21.572636],[100.09137,20.348606],[99.522766,20.352776],[98.99553,19.780552],[98.04999,19.807499],[97.774704,18.569996],[97.346375,18.562496],[98.6897,16.284996],[98.201096,15.074999],[99.173965,13.727781],[99.1122,13.055832],[99.66165,11.826942],[98.74275,10.348608],[98.74359,11.666943],[98.58333,13.172775],[97.79726,14.881962],[97.73749,16.563885],[96.77777,16.703884],[95.42859,15.729719],[95.36081,16.144718],[94.63109,16.342773],[94.6147,17.546387],[93.99193,19.457218],[93.72859,19.931664],[92.86081,20.121109],[92.26193,21.054312],[92.66934,21.296982],[92.600815,21.982218],[93.19664,22.256388],[93.33873,24.077917],[94.15109,23.855274],[94.73442,25.024721],[94.625534,25.397776],[95.17804,26.058887],[95.14137,26.612495],[96.19414,27.270834],[97.13666,27.085833],[96.88666,27.606108],[97.34888,28.222773],[97.80664,28.344162],[98.316376,27.541945],[98.69971,27.539165],[98.710815,25.855553],[97.552475,24.74305],[97.759995,24.257496],[98.6772,23.968054],[98.927475,23.189165],[99.566376,22.938051],[99.162766,22.15916],[99.96443,22.048885],[100.21275,21.432552],[101.14824,21.572636]]]},properties:{name:"Burma",iso2:"MM",iso3:"MMR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[1.635404,6.218721],[1.355,9.995277],[.776667,10.376665],[.91797,10.996399],[1.435278,11.458887],[2.014722,11.422499],[2.397925,11.896152],[2.83862,12.396658],[3.604459,11.693274],[3.855,10.584999],[3.095,9.090555],[2.789444,9.043888],[2.719606,6.365505],[1.635404,6.218721]]]},properties:{name:"Benin",iso2:"BJ",iso3:"BEN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[159.85245,-8.333889],[159.88693,-8.566389],[158.48746,-7.554167],[159.85245,-8.333889]]]},properties:{name:"Solomon Islands",iso2:"SB",iso3:"SLB"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-49.71334,-.227777],[-48.373062,-.289167],[-48.627228,-1.064444],[-49.16639,-1.613888],[-50.578056,-1.800833],[-50.80361,-1.440556],[-50.657784,-.279167],[-49.71334,-.227777]]],[[[-69.956924,-4.236874],[-69.37807,-1.338055],[-69.60751,-.5175],[-70.05806,-.157499],[-70.044174,.590834],[-69.124725,.645002],[-69.270004,1.038336],[-69.842224,1.072222],[-69.8461,1.710455],[-67.914734,1.745279],[-67.42418,2.143888],[-67.076675,1.173334],[-66.87189,1.221643],[-66.31195,.750559],[-65.58974,.989168],[-65.51889,.649721],[-63.39306,2.151388],[-64.04501,2.4825],[-64.19112,3.594446],[-64.01779,3.88611],[-62.745834,4.032499],[-60.985,4.520555],[-60.73037,5.204799],[-60.098335,5.217222],[-60.147507,4.5175],[-59.675835,4.388888],[-59.56861,3.899446],[-59.98945,2.693613],[-59.642784,1.731112],[-58.806946,1.185556],[-57.324722,1.975279],[-56.470634,1.944498],[-55.904167,1.893055],[-55.965836,2.532777],[-54.603783,2.329195],[-52.90973,2.195833],[-51.684067,4.034163],[-51.088615,3.911669],[-50.679726,2.164724],[-50.445282,1.825834],[-49.93,1.708055],[-49.903893,1.170279],[-51.258614,-.142778],[-51.700005,-.752499],[-51.257225,-1.218332],[-50.858337,-.91361],[-50.677956,-1.810444],[-49.289726,-1.708332],[-48.697227,-1.469166],[-48.060562,-.710833],[-47.431396,-.5825],[-46.82167,-.712778],[-46.60417,-1.029444],[-45.696114,-1.370277],[-44.860283,-1.425278],[-44.490562,-1.980833],[-44.656395,-2.33111],[-44.33973,-2.830278],[-43.347504,-2.365833],[-41.24807,-3.023554],[-39.99695,-2.846388],[-37.174446,-4.918612],[-35.417503,-5.214722],[-34.800835,-7.631111],[-35.292778,-9.18],[-36.393333,-10.4925],[-37.153336,-10.748611],[-38.04139,-12.633057],[-38.72528,-12.874445],[-39.080284,-13.538334],[-38.920563,-13.915556],[-39.066948,-14.64389],[-38.87195,-15.874168],[-39.206673,-17.147503],[-39.130836,-17.683891],[-39.643616,-18.223335],[-39.80139,-19.632504],[-40.960556,-21.235836],[-40.971672,-21.988056],[-41.76306,-22.346111],[-42.034447,-22.91917],[-44.662506,-23.048058],[-44.577225,-23.356113],[-45.418335,-23.830833],[-46.382782,-23.868336],[-48.026115,-25.015003],[-48.802505,-26.067223],[-48.485283,-27.211391],[-48.774727,-28.522224],[-49.752502,-29.369724],[-50.74945,-31.081112],[-52.072502,-32.17417],[-52.086395,-31.823612],[-51.251396,-31.471668],[-50.567223,-30.457226],[-50.928337,-30.419445],[-51.96528,-31.339447],[-52.636673,-33.129448],[-53.3743,-33.74067],[-53.52278,-33.14778],[-53.093056,-32.72973],[-53.879723,-31.967781],[-55.581947,-30.845837],[-56.008923,-31.079794],[-56.811394,-30.105278],[-57.608,-30.184925],[-55.76528,-28.226112],[-53.807785,-27.12917],[-53.863335,-25.681114],[-54.598915,-25.573223],[-54.33056,-24.67945],[-54.407227,-23.916668],[-55.411667,-23.95639],[-55.849724,-22.28889],[-57.985107,-22.091827],[-57.814445,-20.971947],[-58.15889,-20.168056],[-58.121117,-19.74139],[-57.52112,-18.203892],[-57.743057,-17.593056],[-58.397507,-17.249168],[-58.327507,-16.279167],[-60.16028,-16.263058],[-60.571396,-15.097502],[-60.258896,-15.093613],[-60.47084,-13.807222],[-61.03898,-13.493118],[-61.833893,-13.544724],[-63.075005,-12.650002],[-64.39418,-12.461668],[-64.99167,-12.008057],[-65.39279,-11.26639],[-65.38196,-9.697779],[-66.634445,-9.906946],[-68.58345,-11.106138],[-69.568436,-10.951092],[-70.63139,-11.009167],[-70.51466,-9.428001],[-71.29889,-9.996389],[-72.14389,-10.004723],[-72.366394,-9.494446],[-73.20529,-9.407223],[-72.96417,-8.983334],[-74.01056,-7.541389],[-73.74417,-6.876944],[-73.1239,-6.447223],[-72.85196,-5.124722],[-70.76584,-4.146389],[-69.956924,-4.236874]]]]},properties:{name:"Brazil",iso2:"BR",iso3:"BRA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[28.013054,41.982216],[27.394997,42.00804],[26.361095,41.711052],[26.139996,41.354713],[25.285,41.24305],[24.263885,41.57055],[22.935604,41.342125],[23.01472,41.762215],[22.365276,42.323883],[22.442219,42.821663],[23.004997,43.192772],[22.367222,43.826942],[22.681435,44.2247],[22.875275,43.8425],[25.43023,43.626778],[27.036427,44.14734],[28.583244,43.747765],[27.44833,42.469994],[28.013054,41.982216]]]},properties:{name:"Bulgaria",iso2:"BG",iso3:"BGR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[115.01843,4.895796],[114.6411,4.018888],[114.09508,4.59054],[115.01843,4.895796]]]},properties:{name:"Brunei Darussalam",iso2:"BN",iso3:"BRN"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-53.756367,48.50326],[-53.850555,47.76055],[-52.83139,48.101665],[-52.61445,47.516666],[-53.1025,46.63666],[-53.591385,47.156097],[-54.418335,47.603607],[-55.587776,47.398605],[-55.917503,47.657494],[-56.840836,47.521378],[-59.13556,47.55638],[-59.406944,47.889717],[-58.709442,48.57083],[-58.223328,49.390278],[-57.148056,50.621937],[-56.085556,51.368324],[-56.153885,50.150543],[-55.4917,50.007313],[-56.129166,49.425552],[-54.486946,49.259724],[-53.756367,48.50326]]],[[[-134.49554,68.75221],[-134.26059,68.733536],[-134.56223,69.08276],[-130.54306,70.16832],[-130.36609,69.68637],[-128.92502,69.68082],[-127.51501,70.22165],[-125.42639,69.31218],[-123.46611,69.38388],[-122.95917,69.8336],[-121.68388,69.793594],[-117.15388,68.885544],[-115.59306,68.97165],[-114.07056,68.47748],[-115.10361,67.796646],[-112.39584,67.67915],[-110.08389,68.00694],[-108.65527,67.62831],[-107.89056,68.081665],[-108.31416,68.611374],[-106.22917,68.94081],[-105.54111,68.412766],[-103.42166,68.16666],[-102.25111,67.725266],[-98.35445,67.7961],[-98.71445,68.37221],[-95.980286,68.254715],[-96.46472,67.47804],[-95.9025,66.94664],[-95.16333,67.2872],[-95.70917,67.72777],[-93.55333,68.58638],[-94.30333,69.30498],[-95.96083,69.778046],[-96.50389,71.27721],[-94.60666,71.86331],[-92.97389,71.34082],[-93.0275,70.85277],[-91.513626,70.167206],[-92.92027,69.66971],[-91.44722,69.35277],[-90.436386,68.87442],[-89.306656,69.25139],[-88.052216,68.823044],[-87.79222,68.33443],[-88.370834,67.95915],[-87.35777,67.26221],[-86.52362,67.3522],[-85.66362,68.72693],[-85.331955,69.77916],[-84.375824,69.85748],[-81.332504,69.18248],[-82.6389,68.49721],[-81.24306,67.47499],[-81.50307,66.99971],[-83.693054,66.19081],[-85.89723,66.16832],[-87.39584,65.32138],[-86.93332,65.13805],[-88.11333,64.13611],[-89.813614,63.937214],[-90.74194,63.360825],[-90.62749,63.059437],[-92.42084,62.831387],[-93.23778,61.777218],[-93.984726,61.4561],[-94.673325,60.52249],[-94.78972,59.092216],[-94.14389,58.763615],[-93.15222,58.737774],[-92.418884,57.337498],[-90.81528,57.255833],[-85.71445,55.63166],[-85.00195,55.29666],[-82.30777,55.148884],[-82.29666,53.0186],[-80.436386,51.464157],[-79.75223,51.184437],[-78.50696,52.46055],[-79.110275,53.5025],[-79.04889,54.18333],[-79.76445,54.652218],[-77.74861,55.30083],[-76.53833,56.297775],[-76.529724,57.105827],[-76.86194,57.719154],[-78.57472,58.63527],[-78.57056,58.961384],[-77.42749,59.914715],[-78.192764,60.790833],[-77.47472,61.541664],[-78.15584,62.27833],[-77.50835,62.561665],[-74.759735,62.206387],[-73.67888,62.47999],[-72.010056,61.675274],[-71.39,61.137775],[-70.14612,61.08472],[-69.62471,60.067497],[-69.75835,59.320274],[-69.279175,58.888046],[-67.72389,58.458885],[-64.98332,59.376385],[-65.52779,59.716934],[-64.85445,60.36111],[-64.16695,60.024998],[-64.06221,59.382496],[-63.35639,59.204994],[-61.358337,57.087498],[-61.906387,56.795277],[-61.104446,55.845547],[-60.328888,55.781666],[-60.683327,54.994995],[-59.023613,55.156654],[-58.904167,54.84471],[-57.347496,54.579437],[-60.13389,53.52833],[-57.38417,54.150543],[-57.076393,53.82305],[-55.808052,53.34055],[-56.496872,52.59415],[-55.701668,52.082214],[-56.949722,51.424713],[-58.62805,51.275555],[-60.005005,50.24888],[-66.46973,50.261944],[-67.375,49.327217],[-69.06082,48.767494],[-71.299164,46.74222],[-68.21112,48.63666],[-66.30611,49.186935],[-64.99695,49.22027],[-64.24638,48.48805],[-65.30583,48.005554],[-64.797226,47.80638],[-64.798615,47.079994],[-64.50418,46.240273],[-62.461945,45.612495],[-61.917503,45.88555],[-60.96472,45.31305],[-64.200836,44.576385],[-65.481384,43.46444],[-66.16695,43.858604],[-65.84445,44.578335],[-64.93721,45.326942],[-66.42778,45.08499],[-67.20654,45.18304],[-67.799164,45.701103],[-67.795,47.069996],[-69.2325,47.471375],[-70.8786,45.238605],[-74.99083,44.986656],[-76.80194,43.63361],[-78.72472,43.629436],[-79.18472,43.46555],[-78.98694,42.819996],[-82.696655,41.68388],[-83.16861,42.046104],[-82.52139,42.61888],[-82.13028,43.585266],[-82.54306,45.355827],[-84.565,46.46639],[-84.85695,46.902218],[-88.36806,48.312214],[-89.35666,47.979713],[-90.86861,48.237495],[-91.418335,48.041107],[-92.953064,48.62332],[-94.605835,48.724438],[-95.154175,48.999435],[-122.7603,48.999435],[-123.03432,48.999435],[-123.09375,48.999435],[-123.24889,49.273605],[-124.41362,49.763615],[-124.71501,50.327496],[-126.131004,50.678658],[-126.17778,50.951385],[-127.53833,51.005554],[-127.87805,51.67388],[-127.17166,52.312492],[-128.22192,52.465275],[-128.97278,53.553047],[-130.0503,53.886944],[-130.37415,54.65499],[-129.47165,55.467213],[-130.01508,55.909184],[-131.82416,56.596943],[-133.43,58.459164],[-135.4736,59.801933],[-137.47806,58.90721],[-137.59082,59.238605],[-139.1889,60.088882],[-140.99554,60.307217],[-141.00299,69.642365],[-139.14307,69.51082],[-138.60498,69.24748],[-135.40695,68.67998],[-134.49554,68.75221]]],[[[-60.445274,46.861668],[-60.34778,46.31055],[-59.840553,45.938328],[-61.336945,45.573326],[-61.447777,46.14944],[-60.445274,46.861668]]],[[[-70.11194,83.10942],[-64.936935,82.87137],[-61.076393,82.32083],[-64.436386,81.47943],[-71.460556,79.90138],[-73.125824,79.55832],[-78.05139,79.354706],[-74.71973,78.70749],[-75.922775,77.95665],[-79.255005,77.2186],[-77.77945,76.79137],[-78.37749,76.45804],[-84.92833,76.28638],[-86.342224,76.51221],[-89.67944,76.571655],[-86.422226,77.830826],[-86.85695,78.734985],[-84.32695,79.18858],[-86.48639,79.76361],[-86.514725,80.29915],[-89.46611,80.914154],[-91.956665,81.6586],[-85.04695,82.48193],[-80.578064,82.5461],[-79.793335,82.95749],[-70.11194,83.10942]]],[[[-73.354675,68.329216],[-74.91777,68.80138],[-77.31055,69.835815],[-81.763336,70.12303],[-83.066666,70.01082],[-87.92305,70.24275],[-89.54973,71.08859],[-90.048615,71.95387],[-89.22833,73.12581],[-88.409164,73.523605],[-84.83778,73.74165],[-85.1886,73.22887],[-81.55388,73.71721],[-80.2475,72.730545],[-79.01279,72.27388],[-77.61389,72.75166],[-75.19249,72.49193],[-75.39,71.68109],[-72.538055,71.66081],[-70.60167,71.05386],[-68.31389,70.563034],[-66.79555,69.341095],[-69.398056,68.8622],[-66.18416,68.018875],[-64.72362,67.99054],[-63.240837,66.961655],[-62.101395,67.0547],[-61.262505,66.629425],[-62.317223,65.80803],[-63.72361,65.68027],[-63.54695,64.88721],[-65.149994,65.43414],[-67.04889,66.644714],[-67.19444,65.90971],[-68.02583,65.481094],[-66.726105,65.18027],[-65.65834,64.302765],[-64.52251,63.67277],[-64.62721,62.90416],[-67.59999,63.084435],[-65.99306,62.24416],[-66.0661,61.868603],[-71.15666,62.989162],[-72.14555,63.4461],[-73.30278,64.658875],[-76.67055,64.18414],[-78.18332,64.572495],[-77.31583,65.19054],[-73.500565,65.47443],[-74.46611,66.15193],[-72.25835,67.24803],[-73.354675,68.329216]]],[[[-75.58278,68.30026],[-75.00307,68.1322],[-75.19861,67.44331],[-76.66362,67.219986],[-77.24695,67.451935],[-76.726105,68.23888],[-75.58278,68.30026]]],[[[-80.14223,73.69664],[-77.42444,73.5547],[-76.05943,72.90082],[-79.42917,72.73581],[-80.8761,73.327774],[-80.14223,73.69664]]],[[[-95.65973,77.05887],[-91.41055,76.68915],[-89.292496,76.2961],[-88.73889,75.67943],[-86.54472,75.359146],[-83.87815,75.81896],[-81.53694,75.80942],[-79.57472,75.45],[-80.231674,74.57805],[-81.81082,74.45694],[-88.49695,74.49776],[-91.02472,74.702774],[-92.49083,75.21361],[-92.10861,75.85887],[-93.08362,76.35803],[-94.80083,76.321655],[-96.96445,76.73332],[-95.65973,77.05887]]],[[[-85.48056,65.79193],[-81.76306,64.5011],[-80.17166,63.771107],[-81.0764,63.451385],[-82.47223,63.68028],[-83.072784,64.186646],[-85.2664,63.117496],[-86.40167,64.436646],[-86.09778,65.52916],[-85.48056,65.79193]]],[[[-81.87111,62.92833],[-83.08778,62.178883],[-83.94527,62.427216],[-83.31082,62.92444],[-81.87111,62.92833]]],[[[-92.72778,81.30554],[-90.7664,80.56554],[-87.68388,80.41026],[-84.904175,79.26776],[-86.98332,79.05664],[-88.81778,78.154434],[-92.058334,78.20888],[-95.087555,79.27075],[-96.80278,80.09082],[-95.534164,80.81888],[-92.72778,81.30554]]],[[[-92.63806,74.10304],[-90.19444,73.89972],[-92.09584,72.74304],[-93.46333,72.462204],[-94.06305,71.97832],[-95.21333,71.99443],[-95.673615,72.81387],[-95.67305,73.72331],[-94.73222,74.09526],[-92.63806,74.10304]]],[[[-94.36389,75.59082],[-93.46777,74.70305],[-96.61694,74.99109],[-95.749725,75.51332],[-94.36389,75.59082]]],[[[-97.39778,69.68553],[-95.206955,68.850266],[-96.53056,68.44498],[-99.59639,69.02054],[-97.39778,69.68553]]],[[[-99.80456,73.8891],[-96.96222,73.73859],[-97.846954,73.0486],[-96.5175,72.71471],[-96.49306,71.914154],[-98.72972,71.27054],[-100.63445,72.18553],[-100.43056,73.40694],[-99.80456,73.8891]]],[[[-103.59389,79.32582],[-99.529724,78.57805],[-98.94583,78.05582],[-102.61861,78.24136],[-105.6286,79.16138],[-103.59389,79.32582]]],[[[-113.9975,72.79942],[-113.02806,73.00943],[-111.22,72.71832],[-108.62138,72.54999],[-108.29195,73.153595],[-106.7614,73.293045],[-105.32611,72.74637],[-104.35527,71.57443],[-104.58583,71.066666],[-103.55638,70.600815],[-100.99973,70.17276],[-100.87,69.788315],[-102.31305,69.49832],[-101.75473,69.17581],[-102.89473,68.79999],[-105.14473,68.899155],[-106.40611,69.18054],[-109.10472,68.71054],[-113.03389,68.49498],[-113.52112,69.17859],[-116.52583,69.407486],[-117.43611,69.99304],[-115.1675,70.27777],[-113.93832,70.71527],[-117.55943,70.59721],[-118.41945,70.99193],[-117.69638,71.66609],[-118.53694,72.493866],[-117.35361,72.91638],[-114.56166,73.375534],[-113.9975,72.79942]]],[[[-105.08945,73.73526],[-104.48306,73.534424],[-105.27556,72.845535],[-107.03555,73.48082],[-105.08945,73.73526]]],[[[-108.65111,76.8136],[-108.02028,75.78082],[-105.39195,75.638885],[-106.01112,75.05081],[-108.8325,75.06999],[-112.75307,74.40138],[-115.05083,74.961105],[-117.68388,75.25305],[-114.99973,75.69081],[-116.73416,75.922485],[-114.89973,76.51694],[-110.05556,75.89055],[-110.39307,76.39194],[-108.65111,76.8136]]],[[[-109.58806,78.0647],[-110.20334,77.51138],[-112.03111,77.32471],[-113.31973,77.79553],[-109.58806,78.0647]]],[[[-120.14999,74.27249],[-117.42223,74.22693],[-115.315,73.479706],[-120.25111,72.258606],[-120.54333,71.51666],[-122.78111,71.086105],[-125.25362,71.95026],[-125.99777,71.9736],[-123.77472,73.764435],[-124.77084,74.34027],[-121.56416,74.55109],[-120.14999,74.27249]]],[[[-116.3511,77.539154],[-115.89667,76.69165],[-118.5675,76.336655],[-119.87,75.85748],[-123.03778,76.08472],[-121.53307,76.437195],[-119.15334,77.32582],[-116.3511,77.539154]]],[[[-127.22694,50.63611],[-125.44972,50.32361],[-124.78944,49.464157],[-123.85056,49.14555],[-123.28972,48.413322],[-125.11389,48.731106],[-126.08751,49.66221],[-127.89584,50.10889],[-128.41666,50.769157],[-127.22694,50.63611]]],[[[-132.80804,54.120274],[-132.1503,53.992767],[-131.98221,53.251663],[-132.9725,53.555824],[-132.80804,54.120274]]]]},properties:{name:"Canada",iso2:"CA",iso3:"CAN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[104.44533,10.422739],[103.62331,10.495554],[103.1297,10.883055],[102.91609,11.635851],[102.3772,13.573889],[103.18054,14.329721],[105.2106,14.349649],[106.05664,13.929998],[106.00471,14.373053],[106.54074,14.598724],[106.85359,14.303053],[107.5466,14.708618],[107.48915,14.44861],[107.54749,12.353609],[106.42024,11.973608],[105.85107,11.659998],[106.20331,10.770554],[105.10191,10.955553],[104.44533,10.422739]]]},properties:{name:"Cambodia",iso2:"KH",iso3:"KHM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[80.274704,9.775],[80.82443,9.261944],[81.361374,8.487219],[81.39194,8.149443],[81.88165,7.288054],[81.6611,6.439999],[80.587204,5.917777],[80.0461,6.239721],[79.702484,8.079443],[80.051926,9.594442],[80.274704,9.775]]]},properties:{name:"Sri Lanka",iso2:"LK",iso3:"LKA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[13.293888,2.163611],[14.564999,2.169444],[16.07222,1.654166],[16.207222,2.220833],[16.659721,3.533333],[17.475277,3.713055],[18.624958,3.479444],[18.091942,2.224166],[17.714996,-.537222],[16.195831,-2.175834],[16.226944,-3.328333],[15.890505,-3.943008],[14.661388,-4.909445],[14.400833,-4.2775],[13.729443,-4.445834],[13.413887,-4.882501],[13.091389,-4.633056],[12.779047,-4.388991],[12.026131,-5.014997],[11.140661,-3.925276],[11.496944,-3.506945],[11.925833,-3.636945],[11.574165,-2.333333],[14.110832,-2.493056],[14.429722,-1.891667],[14.51861,-.609167],[13.848331,-.198611],[14.487221,.913611],[14.188889,1.391389],[13.186785,1.222476],[13.293888,2.163611]]]},properties:{name:"Congo",iso2:"CG",iso3:"COG"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[23.986206,-10.870461],[22.25389,-11.209723],[22.312223,-10.364445],[21.790556,-9.405556],[21.78296,-7.280842],[20.548716,-7.283615],[20.629747,-6.913881],[19.53895,-6.996614],[19.373056,-7.996111],[17.624166,-8.098057],[16.941668,-7.19861],[16.579721,-5.900833],[13.178881,-5.856329],[12.435835,-6.016666],[12.214552,-5.768555],[12.526667,-5.724167],[12.565554,-5.025555],[13.091389,-4.633056],[13.413887,-4.882501],[13.729443,-4.445834],[14.400833,-4.2775],[14.661388,-4.909445],[15.890505,-3.943008],[16.226944,-3.328333],[16.195831,-2.175834],[17.714996,-.537222],[18.091942,2.224166],[18.624958,3.479444],[18.541943,4.335555],[19.421387,5.134166],[20.585552,4.41],[22.379166,4.1275],[22.895832,4.821111],[23.420277,4.59111],[24.394165,5.115555],[24.734444,4.910832],[25.542221,5.381389],[25.891666,5.192499],[27.455276,5.016388],[28.363052,4.29],[29.64333,4.643611],[30.858818,3.493394],[30.729721,2.448055],[31.302776,2.121388],[29.960552,.825555],[29.596943,-1.385834],[28.868332,-2.394444],[29.02444,-2.744722],[29.423885,-4.448056],[29.550278,-6.295279],[30.77124,-8.192247],[28.901665,-8.478613],[28.37222,-9.260834],[28.699718,-10.653334],[28.36333,-11.550835],[29.031387,-12.383057],[29.49361,-12.458057],[29.589443,-13.221945],[29.015831,-13.397779],[28.441944,-12.519724],[27.66,-12.296667],[27.19925,-11.567905],[26.86861,-11.973612],[26.004719,-11.9025],[25.359722,-11.641668],[25.332222,-11.193335],[24.44833,-11.463612],[23.986206,-10.870461]]]},properties:{name:"Democratic Republic of the Congo",iso2:"CD",iso3:"COD"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[29.02444,-2.744722],[29.85083,-2.759722],[29.95222,-2.309445],[30.57333,-2.399167],[30.4175,-2.861945],[30.835,-3.256945],[30.026108,-4.269444],[29.423885,-4.448056],[29.02444,-2.744722]]]},properties:{name:"Burundi",iso2:"BI",iso3:"BDI"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[110.72054,20.063334],[111.0311,19.639997],[110.04776,18.380552],[109.56667,18.168886],[108.68553,18.505278],[108.62831,19.28028],[109.25943,19.901663],[110.72054,20.063334]]],[[[130.60437,42.421864],[129.90753,43.00582],[129.71191,42.444153],[128.92581,42.02444],[128.05887,42.003326],[128.15582,41.382492],[126.91304,41.796104],[126.01694,40.899998],[124.3736,40.09362],[121.14694,38.722767],[121.7511,39.351665],[121.22887,39.538334],[122.29971,40.511665],[121.17747,40.92194],[120.45526,40.200546],[119.51971,39.868053],[118.92442,39.128044],[117.74387,39.105],[117.67221,38.38666],[118.84193,38.150543],[118.95665,37.30055],[119.76721,37.151382],[120.74054,37.835266],[121.57054,37.424713],[121.94914,37.000004],[120.78333,36.621937],[120.68082,36.12748],[120.23776,35.959435],[119.17609,34.884995],[120.25388,34.309994],[120.83582,32.640835],[121.89554,31.746943],[120.60193,32.09361],[121.88472,30.974997],[120.1461,30.19472],[121.28442,30.304445],[122.12665,29.888887],[121.93359,29.195276],[121.41193,29.163332],[121.5786,28.269167],[120.84305,27.876944],[120.47748,27.177496],[119.54915,26.75361],[119.65804,26.33861],[119.4511,25.680277],[118.87192,25.243887],[118.12331,24.25611],[116.52138,23.420832],[116.48082,22.938051],[114.222595,22.55055],[114.03333,22.509138],[113.55443,22.212732],[113.53166,22.194738],[112.93915,21.868608],[111.89249,21.920275],[111.63721,21.521112],[110.39825,21.38067],[110.15804,20.845552],[110.52916,20.47333],[109.92442,20.233606],[109.66193,20.918886],[109.94109,21.446943],[109.57332,21.72333],[109.14276,21.396666],[107.99002,21.542414],[106.69331,22.03083],[106.70721,22.864998],[105.57748,23.059162],[105.35387,23.33472],[103.96443,22.499111],[103.33638,22.796387],[103.03055,22.435553],[102.47971,22.77389],[102.14075,22.396286],[101.57443,22.209162],[101.7872,21.144163],[101.28194,21.180275],[101.14824,21.572636],[100.21275,21.432552],[99.96443,22.048885],[99.162766,22.15916],[99.566376,22.938051],[98.927475,23.189165],[98.6772,23.968054],[97.759995,24.257496],[97.552475,24.74305],[98.710815,25.855553],[98.69971,27.539165],[98.316376,27.541945],[97.80664,28.344162],[97.34888,28.222773],[96.40193,28.35111],[96.615814,28.790277],[96.077484,29.468607],[95.38777,29.035276],[94.64751,29.33346],[92.54498,27.86194],[91.65776,27.76472],[91.30138,28.081108],[90.466385,28.071663],[90.01749,28.325277],[89.59027,28.14333],[88.917725,27.320326],[88.831665,28.013334],[88.14279,27.866056],[87.19275,27.823053],[86.68637,28.112219],[86.014435,27.882776],[85.18997,28.60333],[84.481094,28.736662],[84.11914,29.259998],[83.552765,29.18583],[82.10054,30.34222],[81.02536,30.204355],[79.09248,31.437498],[78.76721,31.31],[78.397766,32.54861],[78.9711,32.350834],[79.53027,32.75417],[78.811646,33.525826],[78.98535,34.350018],[78.30914,34.642494],[77.82393,35.501328],[76.16638,35.819717],[75.864426,36.65968],[74.56543,37.027817],[74.91574,37.237328],[74.85664,38.470486],[73.817764,38.607716],[73.655685,39.454826],[73.99443,40.046043],[74.86026,40.519386],[75.57805,40.648],[76.345825,40.35022],[76.87387,41.014107],[78.080826,41.040787],[80.234024,42.19622],[80.17192,42.660507],[80.817215,43.15607],[80.36276,44.125244],[80.52083,44.732475],[79.87109,44.90498],[82.317764,45.570534],[83.04054,47.212215],[84.75943,46.826385],[85.52931,47.060165],[85.759155,48.387775],[86.5961,48.53611],[86.874695,49.110825],[87.348206,49.09262],[87.8407,49.17295],[87.97331,48.576942],[88.65332,48.182774],[90.07443,47.886383],[91.02025,46.60011],[90.68193,45.57972],[90.89694,45.25305],[93.5547,44.957214],[95.41666,44.293884],[95.336105,44.02083],[96.38304,42.731106],[100.83554,42.678047],[105.01221,41.581383],[107.47192,42.466106],[109.3136,42.429993],[110.44054,42.77777],[111.95833,43.692215],[111.42137,44.382492],[111.98082,45.09166],[113.63805,44.74527],[114.54526,45.389435],[115.70193,45.458607],[116.58554,46.29583],[117.4211,46.578335],[119.89749,46.675552],[119.72998,47.164158],[118.53934,47.994755],[117.80109,48.01055],[117.37219,47.6536],[115.59219,47.91944],[116.71138,49.830467],[117.87471,49.520576],[119.21416,50.015278],[119.1386,50.394714],[120.77666,52.115],[120.71361,52.54472],[120.02916,52.76805],[120.86388,53.279716],[123.3822,53.526657],[126.09554,52.764442],[127.58607,50.20857],[127.52943,49.789165],[130.67163,48.865],[130.52164,48.607777],[130.98856,47.688602],[132.52109,47.710278],[133.08856,48.101665],[134.74075,48.26713],[134.76721,47.7075],[134.18246,47.323326],[133.90018,46.250317],[133.1222,45.128605],[131.86469,45.345547],[130.94998,44.841106],[131.31137,43.39222],[130.60437,42.421864]]]]},properties:{name:"China",iso2:"CN",iso3:"CHN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[74.91574,37.237328],[74.56543,37.027817],[72.55664,36.821266],[71.243576,36.129715],[71.64943,35.424995],[70.98749,34.5511],[71.08194,34.055824],[69.90637,34.03527],[70.326935,33.33194],[69.505264,33.034164],[69.32825,31.940365],[68.83305,31.603886],[68.16609,31.833054],[66.72304,31.212215],[66.39554,30.94083],[66.25665,29.85194],[62.484436,29.406105],[60.8686,29.863884],[61.851105,31.02111],[61.713608,31.383331],[60.84388,31.49833],[60.582497,33.0661],[60.50833,34.140274],[61.276558,35.607246],[62.30916,35.141666],[63.10527,35.45083],[63.11944,35.86194],[64.5036,36.28055],[64.798035,37.124992],[65.70888,37.538605],[66.537735,37.366383],[67.77988,37.18582],[68.058014,36.932526],[69.51582,37.580826],[70.96721,38.472115],[71.591934,37.90262],[71.42943,37.07583],[71.6772,36.67601],[73.307205,37.462753],[74.91574,37.237328]]]},properties:{name:"Afghanistan",iso2:"AF",iso3:"AFG"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[91.65776,27.76472],[92.1136,27.297499],[92.06999,26.861942],[89.64305,26.715273],[88.893875,26.975554],[88.917725,27.320326],[89.59027,28.14333],[90.01749,28.325277],[90.466385,28.071663],[91.30138,28.081108],[91.65776,27.76472]]]},properties:{name:"Bhutan",iso2:"BT",iso3:"BTN"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-67.183624,-22.821667],[-67.00084,-23.00278],[-67.335846,-24.021666],[-68.565,-24.774445],[-68.35196,-25.117226],[-68.58362,-26.50528],[-68.28723,-26.91528],[-68.81084,-27.120556],[-69.65538,-28.400932],[-70.0314,-29.306393],[-69.83168,-30.190556],[-70.533066,-31.188057],[-70.09889,-33.1725],[-69.774445,-33.38111],[-69.8125,-34.235558],[-70.567505,-35.24778],[-70.42432,-36.13604],[-71.18529,-36.842224],[-70.82417,-38.56806],[-71.4014,-38.92028],[-71.69556,-39.58445],[-71.95056,-40.73278],[-71.72612,-42.096672],[-72.13196,-42.288895],[-72.13695,-43.00917],[-71.73279,-43.188057],[-71.85501,-44.371674],[-71.10806,-44.539726],[-71.29779,-45.293335],[-71.78056,-45.648895],[-71.66945,-46.67917],[-71.86862,-47.221672],[-72.53639,-47.921394],[-72.28723,-48.34195],[-72.56418,-48.80445],[-73.58362,-49.538063],[-73.16612,-50.753334],[-72.294174,-50.649727],[-72.40056,-51.51362],[-71.91057,-51.995834],[-69.99834,-51.99639],[-68.44176,-52.377777],[-69.26112,-52.20639],[-70.811676,-52.732506],[-70.97362,-53.75556],[-71.28473,-53.88639],[-73.69,-52.725006],[-73.54529,-52.056396],[-73.71167,-51.15973],[-74.29306,-50.482224],[-73.88501,-50.06945],[-74.32529,-49.627228],[-74.44972,-48.812225],[-73.22084,-48.001114],[-73.93445,-47.036118],[-74.94223,-46.440002],[-74.361115,-45.791115],[-73.663345,-45.973335],[-73.39168,-44.98056],[-72.61389,-44.47278],[-73.28946,-44.143616],[-72.84584,-43.776672],[-73.116394,-43.439728],[-72.4214,-42.453056],[-72.571396,-41.70778],[-73.75029,-41.754723],[-73.99501,-40.97],[-73.2225,-39.414726],[-73.64334,-37.20862],[-73.19,-37.13806],[-71.442505,-32.640007],[-71.70334,-30.76167],[-71.287796,-29.896946],[-71.52167,-28.970001],[-70.91084,-27.621948],[-70.44917,-25.364723],[-70.39111,-23.561947],[-70.62251,-23.492779],[-70.053345,-21.425652],[-70.40549,-18.348545],[-69.951126,-18.242779],[-69.499725,-17.50528],[-69.07167,-18.03889],[-68.90779,-19.055279],[-68.4375,-19.430279],[-68.75696,-20.406948],[-68.188614,-21.296947],[-67.8764,-22.828056],[-67.183624,-22.821667]]],[[[-70.91724,-54.70862],[-70.130844,-54.54889],[-70.44446,-53.01278],[-69.42056,-52.45806],[-68.617584,-52.64151],[-68.63583,-54.788338],[-68.63612,-54.80477],[-68.64311,-54.88861],[-70.91724,-54.70862]]],[[[-73.885284,-41.81556],[-73.36862,-42.250557],[-73.80029,-42.617783],[-73.489456,-43.114723],[-74.40779,-43.243614],[-73.885284,-41.81556]]]]},properties:{name:"Chile",iso2:"CL",iso3:"CHL"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-81.09723,19.308887],[-81.40112,19.28833],[-81.254456,19.353886],[-81.09723,19.308887]]]},properties:{name:"Cayman Islands",iso2:"KY",iso3:"CYM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[15.499008,7.526609],[14.419167,6.035277],[14.732777,4.623055],[16.103054,2.898333],[16.207222,2.220833],[16.07222,1.654166],[14.564999,2.169444],[13.293888,2.163611],[12.523611,2.283333],[11.339764,2.168611],[10.02611,2.168056],[9.811764,2.343698],[9.7225,3.865278],[8.975832,4.096666],[8.591738,4.810932],[8.865276,5.841944],[9.795555,6.801666],[10.615,7.06861],[11.340277,6.440833],[11.864166,7.084722],[12.253887,8.408054],[12.796944,8.769722],[13.80722,11.055832],[14.646387,11.575832],[14.645277,12.188332],[14.174444,12.396666],[14.07472,13.081665],[14.500875,13.001314],[15.042597,12.078888],[15.061666,10.789999],[15.68185,9.989649],[14.194769,9.98175],[13.957499,9.638611],[15.201944,8.485832],[15.499008,7.526609]]]},properties:{name:"Cameroon",iso2:"CM",iso3:"CMR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[14.07472,13.081665],[13.62512,13.718338],[13.468887,14.461111],[15.489166,16.914165],[15.996666,20.353054],[15.202499,21.49583],[14.997889,23.000591],[16.000832,23.450554],[24.002747,19.499065],[23.999603,15.698709],[22.937222,15.561943],[22.935833,15.11611],[22.384163,14.554165],[22.554996,14.125555],[22.084442,13.779165],[22.294167,13.35861],[21.827774,12.797499],[22.466942,12.621666],[22.866505,10.922447],[21.719444,10.639444],[21.715553,10.290554],[20.371666,9.108332],[18.988888,8.964167],[19.058792,8.578382],[18.588886,8.040277],[15.499008,7.526609],[15.201944,8.485832],[13.957499,9.638611],[14.194769,9.98175],[15.68185,9.989649],[15.061666,10.789999],[15.042597,12.078888],[14.500875,13.001314],[14.07472,13.081665]]]},properties:{name:"Chad",iso2:"TD",iso3:"TCD"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[43.459717,-11.935556],[43.219162,-11.761112],[43.281387,-11.379723],[43.459717,-11.935556]]]},properties:{name:"Comoros",iso2:"KM",iso3:"COM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-71.32472,11.853056],[-71.977234,11.664999],[-72.49306,11.121111],[-73.37807,9.171389],[-72.779724,9.080278],[-72.32529,8.095556],[-72.47168,7.491945],[-72,7.018888],[-70.11917,6.975836],[-69.245285,6.081388],[-67.45445,6.193056],[-67.859726,4.558611],[-67.29056,3.397501],[-67.82834,2.825003],[-67.192505,2.3925],[-66.87189,1.221643],[-67.076675,1.173334],[-67.42418,2.143888],[-67.914734,1.745279],[-69.8461,1.710455],[-69.842224,1.072222],[-69.270004,1.038336],[-69.124725,.645002],[-70.044174,.590834],[-70.05806,-.157499],[-69.60751,-.5175],[-69.37807,-1.338055],[-69.956924,-4.236874],[-70.72417,-3.779723],[-70.067505,-2.755556],[-70.288345,-2.505],[-71.69806,-2.146945],[-72.88196,-2.506388],[-73.5564,-1.370833],[-74.227234,-1.027777],[-74.77695,-.204166],[-75.28584,-.119722],[-76.24306,.395555],[-77.379456,.384722],[-78.80972,1.43778],[-78.58417,1.768888],[-78.56529,2.429167],[-77.740845,2.604723],[-77.028625,3.91778],[-77.43417,4.028334],[-77.240845,5.75139],[-77.49028,6.190832],[-77.34001,6.567778],[-77.889725,7.228891],[-77.21556,7.937223],[-77.36667,8.675001],[-76.928345,8.568335],[-75.629456,9.453611],[-75.26973,10.798334],[-74.86081,11.125486],[-74.28862,11.002501],[-74.155014,11.331388],[-73.284454,11.295557],[-71.563614,12.453611],[-71.32472,11.853056]]]},properties:{name:"Colombia",iso2:"CO",iso3:"COL"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-83.6458,10.924847],[-82.56357,9.562876],[-82.89885,8.025669],[-83.730835,8.583055],[-83.624176,9.035276],[-84.61528,9.575832],[-85.14223,9.589443],[-85.66446,9.908609],[-85.86168,10.368332],[-85.69238,11.076061],[-83.91556,10.708611],[-83.6458,10.924847]]]},properties:{name:"Costa Rica",iso2:"CR",iso3:"CRI"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[22.866505,10.922447],[23.669167,9.866943],[23.517776,8.714167],[24.20111,8.686943],[24.192497,8.30361],[25.25333,7.850555],[25.206944,7.497499],[26.404999,6.646388],[26.437496,6.077777],[27.142776,5.771944],[27.455276,5.016388],[25.891666,5.192499],[25.542221,5.381389],[24.734444,4.910832],[24.394165,5.115555],[23.420277,4.59111],[22.895832,4.821111],[22.379166,4.1275],[20.585552,4.41],[19.421387,5.134166],[18.541943,4.335555],[18.624958,3.479444],[17.475277,3.713055],[16.659721,3.533333],[16.207222,2.220833],[16.103054,2.898333],[14.732777,4.623055],[14.419167,6.035277],[15.499008,7.526609],[18.588886,8.040277],[19.058792,8.578382],[18.988888,8.964167],[20.371666,9.108332],[21.715553,10.290554],[21.719444,10.639444],[22.866505,10.922447]]]},properties:{name:"Central African Republic",iso2:"CF",iso3:"CAF"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-75.08528,19.893042],[-75.13974,19.962873],[-75.15918,19.960695],[-75.223724,19.901556],[-77.7225,19.832777],[-77.115845,20.365],[-77.23639,20.663057],[-78.05029,20.69972],[-78.75029,21.639166],[-79.98779,21.723612],[-80.49196,22.177221],[-81.82306,22.18361],[-82.7639,22.700556],[-84.02612,21.914999],[-84.07695,22.660555],[-82.00389,23.186388],[-80.63306,23.098333],[-80.03334,22.951113],[-77.341125,21.63611],[-76.89612,21.30639],[-75.70723,21.121946],[-75.73668,20.696943],[-74.1414,20.252222],[-75.08528,19.893042]]]},properties:{name:"Cuba",iso2:"CU",iso3:"CUB"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-23.446667,14.982777],[-23.681393,14.935555],[-23.76667,15.253054],[-23.446667,14.982777]]]},properties:{name:"Cape Verde",iso2:"CV",iso3:"CPV"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-159.74112,-21.25417],[-159.8339,-21.195831],[-159.7525,-21.193054],[-159.74112,-21.25417]]]},properties:{name:"Cook Islands",iso2:"CK",iso3:"COK"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[33.65262,35.354103],[34.08333,34.959442],[33.030838,34.56255],[32.274162,35.043884],[33.65262,35.354103]]]},properties:{name:"Cyprus",iso2:"CY",iso3:"CYP"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[12.567221,55.992218],[12.071943,54.968605],[11.246666,55.199715],[10.87361,55.7325],[12.567221,55.992218]]],[[[9.445358,54.8254],[8.664545,54.913094],[8.087221,55.54888],[8.165277,56.653328],[8.728333,56.482216],[9.309444,57.001938],[9.974274,57.07173],[10.963055,56.439438],[10.24679,56.17855],[9.588333,55.42166],[9.445358,54.8254]]]]},properties:{name:"Denmark",iso2:"DK",iso3:"DNK"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[43.24922,11.469534],[42.94409,11.002438],[41.78972,11.008055],[41.828606,11.74],[42.39972,12.469721],[43.121384,12.708332],[43.413887,12.056944],[43.24922,11.469534]]]},properties:{name:"Djibouti",iso2:"DJ",iso3:"DJI"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.363617,15.198055],[-61.452225,15.631943],[-61.253334,15.461388],[-61.363617,15.198055]]]},properties:{name:"Dominica",iso2:"DM",iso3:"DMA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-71.76787,18.038502],[-71.75418,19.70583],[-70.783615,19.846664],[-69.9364,19.671108],[-69.63167,19.101665],[-68.72917,18.952774],[-68.44972,18.355831],[-69.88167,18.469444],[-70.51083,18.194721],[-71.07973,18.30111],[-71.4225,17.601944],[-71.76787,18.038502]]]},properties:{name:"Dominican Republic",iso2:"DO",iso3:"DOM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-75.28584,-.119722],[-75.21608,-.965336],[-75.55917,-1.534166],[-76.66063,-2.572135],[-78.33751,-3.422777],[-78.70903,-4.584787],[-79.054825,-5.009132],[-79.649734,-4.432778],[-80.46779,-4.43889],[-80.34042,-3.380517],[-79.94806,-3.198334],[-80.25639,-2.736389],[-80.890015,-2.320555],[-80.91112,-1.031111],[-80.264725,-.627222],[-80.50195,-.3675],[-80.068344,.06278],[-80.05972,.828611],[-78.80972,1.43778],[-77.379456,.384722],[-76.24306,.395555],[-75.28584,-.119722]]]},properties:{name:"Ecuador",iso2:"EC",iso3:"ECU"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[34.21666,31.32333],[34.26758,31.216541],[34.9038,29.486706],[34.25444,27.728613],[33.24278,28.554445],[32.575,30.005278],[32.34083,29.596945],[33.558887,27.883055],[35.138615,24.5175],[35.483055,23.938334],[35.670555,22.965834],[36.888466,22.00011],[31.27111,21.998333],[25.001423,21.999695],[24.997776,29.248886],[24.706665,30.16861],[25.151665,31.646942],[25.316668,31.501112],[27.33111,31.374998],[29.069445,30.821665],[31.027777,31.600557],[31.9,31.53111],[32.717216,31.0325],[33.743893,31.133333],[34.21666,31.32333]]]},properties:{name:"Egypt",iso2:"EG",iso3:"EGY"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-6.266975,54.099834],[-6.013056,52.945004],[-6.361111,52.1775],[-6.994722,52.28278],[-9.234167,51.480556],[-9.757778,52.148605],[-10.460835,52.18222],[-8.941113,53.26416],[-10.175835,53.40778],[-9.56139,53.85972],[-10.006111,54.218887],[-8.668335,54.34944],[-8.317501,55.10889],[-7.252506,55.0706],[-8.159445,54.44194],[-7.559444,54.12694],[-7.030834,54.41777],[-6.266975,54.099834]]]},properties:{name:"Ireland",iso2:"IE",iso3:"IRL"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[11.339764,2.168611],[11.353888,1.001944],[9.803976,1.002608],[9.356943,1.167222],[9.811764,2.343698],[10.02611,2.168056],[11.339764,2.168611]]]},properties:{name:"Equatorial Guinea",iso2:"GQ",iso3:"GNQ"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[27.372059,57.535637],[26.511387,57.5261],[25.294998,58.084435],[24.31498,57.871826],[23.728607,58.370827],[23.46416,59.206383],[25.780277,59.628876],[28.015831,59.4786],[27.426105,58.813606],[27.823051,57.87388],[27.372059,57.535637]]]},properties:{name:"Estonia",iso2:"EE",iso3:"EST"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[43.121384,12.708332],[42.39972,12.469721],[40.228058,14.443506],[39.02402,14.655162],[38.44944,14.4175],[37.911385,14.88361],[37.572212,14.102253],[37.291664,14.451944],[36.542816,14.262053],[36.443283,15.149952],[36.973053,16.269444],[36.995827,17.073887],[37.423286,17.034214],[38.600693,17.99488],[38.797775,17.653332],[39.721107,15.084166],[41.170555,14.6325],[43.121384,12.708332]]]},properties:{name:"Eritrea",iso2:"ER",iso3:"ERI"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-87.81558,13.405386],[-88.53862,13.194166],[-90.09639,13.745832],[-89.34831,14.431982],[-88.47084,13.855276],[-87.75029,13.864166],[-87.81558,13.405386]]]},properties:{name:"El Salvador",iso2:"SV",iso3:"SLV"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[36.542816,14.262053],[37.291664,14.451944],[37.572212,14.102253],[37.911385,14.88361],[38.44944,14.4175],[39.02402,14.655162],[40.228058,14.443506],[42.39972,12.469721],[41.828606,11.74],[41.78972,11.008055],[42.94409,11.002438],[42.663055,10.6325],[42.848053,10.22361],[44.01055,9.007221],[47.01194,8.00111],[47.988243,8.004107],[44.95083,4.902499],[43.686386,4.891944],[41.905167,3.980322],[41.171387,3.9425],[40.783768,4.287975],[39.524437,3.406389],[38.12111,3.611666],[37.03972,4.375555],[35.94055,4.622499],[35.821663,5.32861],[35.30194,5.378055],[34.70472,6.677777],[33.711388,7.660277],[32.991104,7.924999],[33.252777,8.458611],[34.120552,8.577221],[34.28611,10.554165],[34.86444,10.734999],[35.09694,11.826944],[35.70108,12.666115],[36.142693,12.706923],[36.542816,14.262053]]]},properties:{name:"Ethiopia",iso2:"ET",iso3:"ETH"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[13.833611,48.773605],[14.70028,48.58138],[15.025833,49.018883],[16.946182,48.619064],[17.166386,48.012497],[16.510555,47.00666],[16.111805,46.86972],[14.544998,46.407494],[13.718655,46.52661],[12.440554,46.690826],[12.127777,47.001663],[10.471235,46.871353],[9.598635,47.063835],[9.533569,47.274544],[9.566724,47.54045],[10.478054,47.59194],[11.095554,47.39611],[12.735554,47.684166],[12.758333,48.123886],[13.833611,48.773605]]]},properties:{name:"Austria",iso2:"AT",iso3:"AUT"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[13.833611,48.773605],[12.674444,49.424995],[12.093704,50.322533],[14.309721,51.053604],[14.828333,50.86583],[16.341942,50.66111],[17.657776,50.108055],[18.57722,49.914444],[18.851246,49.517357],[16.946182,48.619064],[15.025833,49.018883],[14.70028,48.58138],[13.833611,48.773605]]]},properties:{name:"Czech Republic",iso2:"CZ",iso3:"CZE"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-54.603783,2.329195],[-54.001114,3.448333],[-54.4775,4.747777],[-54.166946,5.346944],[-53.939728,5.744721],[-52.28528,4.937499],[-52.04,4.331388],[-51.684067,4.034163],[-52.90973,2.195833],[-54.603783,2.329195]]]},properties:{name:"French Guiana",iso2:"GF",iso3:"GUF"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[28.957342,69.05162],[28.693335,68.197495],[30.028612,67.69472],[29.074999,66.89583],[30.134165,65.71916],[29.636667,64.928055],[30.578054,64.221375],[29.993334,63.743607],[31.58893,62.914413],[27.807833,60.546406],[25.92,60.241665],[23.338335,60.02],[22.632223,60.391937],[21.35861,60.65361],[21.668055,61.546947],[21.064722,62.612225],[22.337221,63.273605],[24.542223,64.80249],[25.447222,64.95471],[25.310835,65.51111],[24.167007,65.814026],[23.661942,66.31221],[24.007774,66.80055],[23.43111,67.465546],[23.666111,67.941666],[20.580929,69.0603],[21.320833,69.32611],[22.398333,68.711105],[23.976389,68.83249],[24.93492,68.58081],[25.76111,68.98917],[26.449999,69.927216],[28.165834,69.91222],[29.176111,69.63527],[28.957342,69.05162]]]},properties:{name:"Finland",iso2:"FI",iso3:"FIN"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[178.28082,-17.403053],[178.67804,-18.078335],[177.29913,-18.078613],[177.51025,-17.509445],[178.28082,-17.403053]]],[[[179.95801,-16.197498],[179.90219,-16.769447],[179.26581,-16.690556],[178.7472,-17.011948],[178.47885,-16.78167],[179.95801,-16.197498]]]]},properties:{name:"Fiji",iso2:"FJ",iso3:"FJI"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-58.69667,-51.33667],[-57.91195,-51.376396],[-57.73139,-51.692223],[-58.94056,-51.80195],[-58.69667,-51.33667]]]},properties:{name:"Falkland Islands (Malvinas)",iso2:"FK",iso3:"FLK"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[158.29776,6.78611],[158.12079,6.929721],[158.31885,6.930277],[158.29776,6.78611]]]},properties:{name:"Micronesia, Federated States of",iso2:"FM",iso3:"FSM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-149.21143,-17.73389],[-149.1792,-17.870834],[-149.6325,-17.55],[-149.21143,-17.73389]]]},properties:{name:"French Polynesia",iso2:"PF",iso3:"PYF"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[9.446665,42.678886],[9.553333,42.115555],[9.180832,41.364716],[8.789165,41.558052],[8.575832,42.383606],[9.446665,42.678886]]],[[[2.541667,51.09111],[4.873055,49.79722],[5.80788,49.545044],[6.362169,49.459393],[8.226078,48.964417],[7.578888,48.11972],[7.588268,47.58448],[6.990555,47.497215],[5.966666,46.209442],[6.791389,46.434166],[7.038054,45.93194],[7.127777,45.257774],[6.976388,44.284164],[7.528055,43.788605],[7.439293,43.757523],[7.387777,43.748604],[7.391609,43.727547],[6.165277,43.050552],[5.031388,43.556664],[3.964722,43.540833],[3.081388,43.069443],[3.177655,42.436806],[1.723611,42.509438],[1.78172,42.56996],[1.445833,42.601944],[-.562222,42.781387],[-1.780877,43.359924],[-1.036111,44.675278],[-1.114635,46.31658],[-2.130834,46.838333],[-2.361111,47.504166],[-3.106389,47.47222],[-4.366389,47.80416],[-4.777779,48.509438],[-3.220834,48.870552],[-2.685278,48.501663],[-1.368889,48.64361],[-1.113889,49.365273],[.074167,49.526665],[1.461111,50.12416],[1.625,50.877777],[2.541667,51.09111]]]]},properties:{name:"France",iso2:"FR",iso3:"FRA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-16.56567,13.589998],[-15.070278,13.826387],[-15.809723,13.159721],[-16.750874,13.059977],[-16.56567,13.589998]]]},properties:{name:"Gambia",iso2:"GM",iso3:"GMB"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[13.293888,2.163611],[13.186785,1.222476],[14.188889,1.391389],[14.487221,.913611],[13.848331,-.198611],[14.51861,-.609167],[14.429722,-1.891667],[14.110832,-2.493056],[11.574165,-2.333333],[11.925833,-3.636945],[11.496944,-3.506945],[11.140661,-3.925276],[9.615278,-2.376667],[8.983057,-1.234167],[9.298334,-.371666],[9.347502,.363058],[9.803976,1.002608],[11.353888,1.001944],[11.339764,2.168611],[12.523611,2.283333],[13.293888,2.163611]]]},properties:{name:"Gabon",iso2:"GA",iso3:"GAB"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[43.46077,41.11296],[42.82749,41.58499],[41.53156,41.523876],[41.776093,41.841927],[41.428596,42.738045],[40.002968,43.379265],[40.253387,43.58252],[42.84999,43.179153],[43.911934,42.58332],[44.934708,42.760277],[46.45175,41.897057],[46.52082,41.049988],[45.336655,41.462494],[45.02294,41.29705],[43.46077,41.11296]]]},properties:{name:"Georgia",iso2:"GE",iso3:"GEO"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-3.103041,5.085022],[-3.102272,5.109545],[-2.928128,5.100222],[-2.764445,5.579166],[-3.249167,6.611388],[-2.487778,8.197777],[-2.685561,9.481817],[-2.834048,11.002007],[-.618333,10.911665],[-.149762,11.13854],[.368333,10.259443],[.2175,9.457222],[.382735,8.760756],[.727222,8.321388],[.525,6.947778],[1.198891,6.100546],[.692222,5.748055],[.255833,5.757777],[-.795556,5.208055],[-1.613333,5.020833],[-2.058889,4.730833],[-3.103041,5.085022]]]},properties:{name:"Ghana",iso2:"GH",iso3:"GHA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.74695,11.997499],[-61.611946,12.23111],[-61.628616,12.048054],[-61.74695,11.997499]]]},properties:{name:"Grenada",iso2:"GD",iso3:"GRD"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-52.693054,69.91748],[-51.83333,69.62608],[-53.574722,69.22943],[-54.93611,69.845535],[-54.42917,70.30971],[-52.693054,69.91748]]],[[[-32.300278,83.57027],[-25.650555,83.29166],[-21.314167,82.60803],[-25.06889,82.15248],[-22.016945,81.933044],[-22.23111,81.46582],[-18.017223,81.46805],[-16.700554,81.93193],[-12.155001,81.60332],[-16.005001,80.72859],[-17.449165,80.05582],[-19.63139,79.66138],[-20.86639,78.015274],[-18.956665,77.62886],[-18.305279,76.80609],[-20.723053,76.98831],[-21.814444,76.59027],[-21.98222,75.99193],[-19.825,75.90915],[-19.335556,75.40498],[-20.515003,75.14082],[-22.492495,74.07443],[-20.283058,73.879974],[-20.501114,73.452774],[-22.379166,73.25055],[-24.032223,73.702484],[-25.315002,73.461655],[-24.588333,72.4211],[-22.494442,71.89276],[-22.473331,71.26305],[-21.47472,70.53998],[-23.345833,70.43915],[-24.739998,71.332214],[-26.478886,70.960266],[-27.914164,70.8672],[-29.206944,70.39415],[-25.229164,70.41443],[-22.079166,70.1297],[-23.930553,69.755264],[-24.072777,69.47804],[-26.363335,68.66748],[-30.030281,68.11165],[-31.571667,68.06694],[-33.19861,67.688034],[-34.719994,66.33832],[-37.193054,65.76915],[-40.09639,65.567215],[-39.75556,65.24275],[-41.155556,64.96443],[-40.358894,64.34833],[-40.748337,63.509167],[-41.75556,62.839436],[-42.869446,61.77305],[-42.434723,61.557217],[-42.749443,60.6836],[-43.16861,60.39749],[-45.189995,60.12916],[-45.099167,60.64583],[-46.857224,60.797497],[-48.218887,61.184994],[-48.76306,61.98472],[-50.31778,62.495274],[-50.059845,63.228752],[-51.10778,63.339436],[-51.601944,64.03471],[-50.352226,64.38275],[-51.224167,64.76221],[-52.00695,64.2036],[-52.68889,65.80554],[-53.46222,66.03415],[-53.88111,67.263885],[-52.49611,67.769714],[-52.46167,68.54498],[-50.13861,69.177475],[-50.214165,70.02165],[-52.312775,70.046646],[-54.62639,70.65193],[-54.06333,70.82971],[-51.345,70.566666],[-52.249443,71.12331],[-51.640556,71.711105],[-55.90583,71.67859],[-54.682777,72.36638],[-55.08583,73.36276],[-56.40972,74.066086],[-56.192497,74.55165],[-58.697777,75.346375],[-58.40805,75.71527],[-63.440834,76.37331],[-68.500565,76.08693],[-67.98222,76.67943],[-66.44861,77.13388],[-66.72583,77.68082],[-69.25029,77.45305],[-73.053604,78.15721],[-72.552216,78.5211],[-65.97667,79.101654],[-65.06889,80.009155],[-67.480835,80.32555],[-63.680557,81.143875],[-61.056664,81.119705],[-60.806664,81.879974],[-54.50528,82.36554],[-53.559723,82.11609],[-44.64,81.754166],[-44.19055,82.312485],[-45.52472,83.12221],[-32.300278,83.57027]]]]},properties:{name:"Greenland",iso2:"GL",iso3:"GRL"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[10.979445,54.380554],[10.818537,53.890057],[12.526945,54.47416],[13.02389,54.39972],[14.275627,53.699066],[14.149166,52.862778],[14.640276,52.572495],[14.599443,51.818604],[15.036388,51.285553],[14.828333,50.86583],[14.309721,51.053604],[12.093704,50.322533],[12.674444,49.424995],[13.833611,48.773605],[12.758333,48.123886],[12.735554,47.684166],[11.095554,47.39611],[10.478054,47.59194],[9.566724,47.54045],[7.588268,47.58448],[7.578888,48.11972],[8.226078,48.964417],[6.362169,49.459393],[6.134414,50.127846],[6.011798,50.75727],[6.222223,51.46583],[6.82889,51.965553],[7.208364,53.242805],[7.295835,53.685272],[8.008333,53.710003],[8.503054,53.354164],[9.016943,54.49833],[8.664545,54.913094],[9.445358,54.8254],[9.870279,54.454437],[10.979445,54.380554]]]},properties:{name:"Germany",iso2:"DE",iso3:"DEU"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[144.70941,13.234997],[144.65524,13.427776],[144.87524,13.65361],[144.70941,13.234997]]]},properties:{name:"Guam",iso2:"GU",iso3:"GUM"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[23.858608,35.52166],[26.290554,35.131104],[24.752777,34.942215],[23.52111,35.288055],[23.858608,35.52166]]],[[[26.361095,41.711052],[26.633884,41.35444],[26.04472,40.735825],[25.138054,41.011375],[23.735275,40.754997],[23.353611,40.245277],[22.594997,40.012215],[23.344997,39.178055],[22.52333,38.857216],[24.073887,38.196938],[22.991386,37.880554],[22.72583,37.56833],[23.19833,36.43194],[22.152775,37.02166],[21.106388,37.85444],[20.98944,38.67],[20.010029,39.6912],[20.671944,40.098053],[20.98349,40.85589],[22.935604,41.342125],[24.263885,41.57055],[25.285,41.24305],[26.139996,41.354713],[26.361095,41.711052]]]]},properties:{name:"Greece",iso2:"GR",iso3:"GRC"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-89.14195,17.818888],[-89.21617,15.889851],[-88.91057,15.89361],[-88.21474,15.724443],[-89.150375,15.073481],[-89.34831,14.431982],[-90.09639,13.745832],[-91.384735,13.978888],[-92.24678,14.550547],[-91.72917,16.074997],[-90.441956,16.088335],[-90.4064,16.416388],[-90.9839,17.25611],[-90.98242,17.820654],[-89.14195,17.818888]]]},properties:{name:"Guatemala",iso2:"GT",iso3:"GTM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-15.016848,10.956451],[-14.686945,11.509722],[-13.709167,11.715277],[-13.971035,12.154758],[-13.713139,12.677221],[-12.345404,12.301748],[-11.373058,12.407774],[-10.652748,11.892609],[-10.323893,12.224997],[-9.701946,12.029163],[-9.155556,12.486111],[-8.357779,11.305555],[-7.973984,10.165611],[-8.143612,9.533888],[-7.732779,9.088055],[-8.198057,8.496666],[-7.946838,8.018505],[-8.469749,7.561325],[-9.106945,7.198889],[-9.485161,7.361989],[-9.48365,8.346931],[-10.266651,8.488377],[-11.214445,9.997499],[-12.456112,9.888332],[-13.29561,9.032143],[-13.602783,9.734441],[-14.664446,10.476665],[-15.016848,10.956451]]]},properties:{name:"Guinea",iso2:"GN",iso3:"GIN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-57.248505,5.486111],[-57.327225,5.026111],[-57.92334,4.821944],[-58.047226,4.008333],[-57.642227,3.356389],[-57.30139,3.3775],[-56.470634,1.944498],[-57.324722,1.975279],[-58.806946,1.185556],[-59.642784,1.731112],[-59.98945,2.693613],[-59.56861,3.899446],[-59.675835,4.388888],[-60.147507,4.5175],[-60.098335,5.217222],[-60.73037,5.204799],[-61.389725,5.940001],[-61.134026,6.711042],[-60.288612,7.057221],[-60.71917,7.535555],[-59.82556,8.236111],[-59.99028,8.535276],[-58.47278,7.349999],[-58.314728,6.894722],[-57.199722,6.147499],[-57.248505,5.486111]]]},properties:{name:"Guyana",iso2:"GY",iso3:"GUY"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-71.75418,19.70583],[-71.76787,18.038502],[-73.3864,18.261946],[-73.88167,18.02278],[-74.44667,18.34194],[-74.26807,18.665834],[-72.350006,18.53028],[-72.80029,19.033056],[-72.673615,19.916666],[-71.75418,19.70583]]]},properties:{name:"Haiti",iso2:"HT",iso3:"HTI"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-83.13185,14.992979],[-84.48279,14.617777],[-84.90668,14.808611],[-85.732315,13.829235],[-86.01584,14.065832],[-86.763016,13.751621],[-86.69501,13.296944],[-87.30139,12.986599],[-87.81558,13.405386],[-87.75029,13.864166],[-88.47084,13.855276],[-89.34831,14.431982],[-89.150375,15.073481],[-88.21474,15.724443],[-85.84195,16.010555],[-84.264725,15.828609],[-84.077515,15.351387],[-83.13185,14.992979]]]},properties:{name:"Honduras",iso2:"HN",iso3:"HND"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[17.649841,42.889076],[18.455555,42.565826],[18.503197,42.44944],[17.649841,42.889076]]],[[[16.607872,46.476234],[17.669441,45.835],[18.81702,45.912964],[19.039719,44.86138],[18.251942,45.138885],[15.786665,45.171944],[16.143055,44.19944],[17.578526,42.943825],[16.884443,43.403053],[15.988333,43.50444],[14.482779,45.311108],[13.899168,44.77444],[13.59174,45.481697],[14.601387,45.675278],[15.174458,45.42582],[15.697777,45.844162],[15.654722,46.219444],[16.607872,46.476234]]]]},properties:{name:"Croatia",iso2:"HR",iso3:"HRV"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[18.81702,45.912964],[17.669441,45.835],[16.607872,46.476234],[16.111805,46.86972],[16.510555,47.00666],[17.166386,48.012497],[18.655277,47.758606],[20.660553,48.56333],[22.151442,48.41192],[22.894804,47.95454],[22.032497,47.530273],[21.176666,46.295555],[20.261024,46.114853],[18.81702,45.912964]]]},properties:{name:"Hungary",iso2:"HU",iso3:"HUN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-15.070835,66.1436],[-13.611389,65.509995],[-13.499445,65.06915],[-15.383335,64.37193],[-18.710003,63.391106],[-21.053612,63.945],[-22.1025,64.31444],[-22.56139,65.1711],[-24.105835,65.806656],[-22.9375,66.466385],[-21.399445,66.02722],[-18.784168,66.1911],[-16.594723,66.09111],[-15.070835,66.1436]]]},properties:{name:"Iceland",iso2:"IS",iso3:"ISL"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[81.02536,30.204355],[80.37692,29.748604],[80.05582,28.83611],[83.29137,27.337776],[84.14722,27.511387],[85.855545,26.570274],[88.01471,26.36472],[88.14279,27.866056],[88.831665,28.013334],[88.917725,27.320326],[88.893875,26.975554],[89.64305,26.715273],[92.06999,26.861942],[92.1136,27.297499],[91.65776,27.76472],[92.54498,27.86194],[94.64751,29.33346],[95.38777,29.035276],[96.077484,29.468607],[96.615814,28.790277],[96.40193,28.35111],[97.34888,28.222773],[96.88666,27.606108],[97.13666,27.085833],[96.19414,27.270834],[95.14137,26.612495],[95.17804,26.058887],[94.625534,25.397776],[94.73442,25.024721],[94.15109,23.855274],[93.33873,24.077917],[93.19664,22.256388],[92.600815,21.982218],[92.283325,23.705275],[91.95,23.732218],[91.6136,22.943052],[91.159424,23.640554],[91.37329,24.101942],[92.12137,24.393332],[92.40637,25.030554],[89.84526,25.28861],[89.73915,26.156385],[89.34277,26.01703],[88.433044,26.55139],[88.110535,25.835554],[88.45082,25.187777],[88.04332,24.684164],[88.750534,24.220984],[88.56387,23.65222],[88.9861,23.20833],[89.063,22.115477],[89.08888,21.628054],[88.254166,21.548609],[87.79637,21.698885],[86.96332,21.38194],[87.02556,20.67483],[86.42026,19.982775],[85.451385,19.660276],[84.10637,18.292223],[82.364426,17.100832],[82.3017,16.583055],[81.31337,16.363333],[81.01727,15.775557],[80.279434,15.699167],[80.048874,15.048887],[80.34972,13.334166],[79.76305,11.64889],[79.85971,10.288889],[79.325,10.280832],[78.908035,9.479719],[78.39665,9.08972],[78.06053,8.364164],[77.5361,8.071943],[76.57582,8.876944],[75.68887,11.435278],[74.81026,12.864721],[74.41193,14.483332],[73.447754,16.055834],[72.85387,18.660555],[72.664154,19.870832],[72.93442,20.774721],[72.54166,21.663885],[72.91914,22.267778],[72.15193,22.283888],[72.110535,21.20194],[70.81888,20.697496],[68.94443,22.294165],[70.16554,22.548334],[70.50694,23.10222],[69.21582,22.840277],[68.1978,23.766687],[68.74721,23.969994],[68.78305,24.332777],[70.01471,24.169718],[71.10582,24.416386],[70.66638,25.69833],[70.08804,25.982775],[70.18359,26.53611],[69.5061,26.754444],[69.58028,27.173328],[70.36832,28.020832],[70.82944,27.706383],[71.89694,27.961943],[73.39749,29.942772],[74.69459,31.05396],[74.60532,31.87712],[75.38129,32.214245],[74.01639,33.1886],[73.94165,34.646385],[76.86998,34.658882],[77.04248,35.09916],[77.82393,35.501328],[78.30914,34.642494],[78.98535,34.350018],[78.811646,33.525826],[79.53027,32.75417],[78.9711,32.350834],[78.397766,32.54861],[78.76721,31.31],[79.09248,31.437498],[81.02536,30.204355]]]},properties:{name:"India",iso2:"IN",iso3:"IND"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[61.276558,35.607246],[60.50833,34.140274],[60.582497,33.0661],[60.84388,31.49833],[61.713608,31.383331],[61.851105,31.02111],[60.8686,29.863884],[61.90555,28.554996],[62.78138,28.266941],[62.782494,27.260555],[63.341934,27.122498],[63.176384,26.631107],[61.858047,26.234718],[61.61103,25.197647],[57.318054,25.770832],[56.690544,27.14833],[56.132767,27.160275],[54.794716,26.489994],[53.747772,26.70916],[52.44027,27.640831],[51.430275,27.937775],[50.048607,30.207222],[49.551384,30.0075],[48.545555,29.96303],[47.69388,31.00111],[47.86444,31.798607],[47.43416,32.397774],[46.107216,32.96749],[46.18194,33.260277],[45.401054,33.97957],[45.97999,35.584717],[45.405823,35.99083],[44.78734,37.14971],[44.484154,38.345543],[44.034157,39.384995],[44.81304,39.630814],[46.178246,38.84115],[46.540375,38.875587],[47.97666,39.71923],[48.359787,39.385216],[48.02082,38.83554],[48.888283,38.442406],[49.102486,37.643044],[50.191376,37.38916],[51.101105,36.728874],[53.94332,36.799995],[53.90564,37.350853],[54.681107,37.443604],[55.442764,38.086105],[57.21221,38.281937],[57.45027,37.939156],[59.338882,37.53916],[60.333054,36.656097],[61.15721,36.649994],[61.276558,35.607246]]]},properties:{name:"Iran (Islamic Republic of)",iso2:"IR",iso3:"IRN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[35.623634,33.245728],[35.648888,32.685272],[35.552567,32.394196],[35.282494,32.516937],[34.884995,31.391388],[35.478195,31.497322],[34.97998,29.545753],[34.9038,29.486706],[34.26758,31.216541],[34.490547,31.596096],[35.10083,33.093605],[35.623634,33.245728]]]},properties:{name:"Israel",iso2:"IL",iso3:"ISR"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[13.718655,46.52661],[13.383055,46.29722],[13.716944,45.596107],[13.193333,45.778053],[12.281387,45.46805],[12.539165,44.961105],[12.368332,44.246666],[13.621666,43.553886],[14.016666,42.67],[14.739721,42.08555],[16.141941,41.91416],[15.932499,41.47805],[18.011665,40.64444],[18.512218,40.136665],[16.913609,40.44555],[16.486664,39.767494],[17.151108,39.39],[17.169167,38.963333],[16.594997,38.800827],[16.062496,37.924164],[15.631666,38.011665],[16.2225,38.910828],[15.666666,40.03083],[11.098888,42.39305],[10.107498,44.0075],[8.748888,44.42916],[7.528055,43.788605],[6.976388,44.284164],[7.127777,45.257774],[7.038054,45.93194],[7.855742,45.919052],[8.436388,46.463333],[9.281944,46.495827],[10.129999,46.22722],[10.471235,46.871353],[12.127777,47.001663],[12.440554,46.690826],[13.718655,46.52661]],[[12.459166,43.89611],[12.509998,43.98694],[12.415798,43.957954],[12.459166,43.89611]],[[12.44509,41.90312],[12.45666,41.901424],[12.451653,41.90799],[12.44509,41.90312]]],[[[9.513332,41.14666],[9.825832,40.526108],[9.569166,39.15055],[9.018332,39.266388],[8.406944,38.95861],[8.556665,39.866104],[8.192499,40.913605],[9.513332,41.14666]]],[[[15.528889,38.13694],[15.086666,37.47944],[15.316666,37.00889],[15.081388,36.649162],[12.422222,37.796104],[13.316666,38.21833],[13.768888,37.97055],[15.528889,38.13694]]]]},properties:{name:"Italy",iso2:"IT",iso3:"ITA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-4.787278,5.168312],[-7.525402,4.352806],[-7.423334,5.839444],[-8.606384,6.507815],[-8.308334,6.860833],[-8.469749,7.561325],[-7.946838,8.018505],[-8.198057,8.496666],[-7.732779,9.088055],[-8.143612,9.533888],[-7.973984,10.165611],[-7.635556,10.448332],[-6.988056,10.147499],[-6.243402,10.735256],[-6.111389,10.197777],[-5.51985,10.436272],[-4.704445,9.698055],[-3.633611,9.954443],[-2.685561,9.481817],[-2.487778,8.197777],[-3.249167,6.611388],[-2.764445,5.579166],[-2.928128,5.100222],[-4.004168,5.253611],[-4.787278,5.168312]]]},properties:{name:"Cote d'Ivoire",iso2:"CI",iso3:"CIV"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[48.545555,29.96303],[47.943474,30.017555],[47.16999,30.01527],[46.546944,29.104198],[44.72166,29.19833],[42.085,31.11166],[40.41333,31.94833],[39.196743,32.15494],[38.7947,33.377594],[41.003876,34.419434],[41.290276,36.355553],[42.355614,37.106926],[42.790825,37.38472],[44.11638,37.316376],[44.78734,37.14971],[45.405823,35.99083],[45.97999,35.584717],[45.401054,33.97957],[46.18194,33.260277],[46.107216,32.96749],[47.43416,32.397774],[47.86444,31.798607],[47.69388,31.00111],[48.545555,29.96303]]]},properties:{name:"Iraq",iso2:"IQ",iso3:"IRQ"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[131.21414,33.595547],[131.90277,33.256947],[131.98941,32.83055],[131.34302,31.373888],[130.66638,30.996664],[130.22803,31.248884],[130.16248,32.006947],[130.5697,32.442493],[129.74606,32.561108],[129.57886,33.353607],[130.6908,33.93582],[131.21414,33.595547]]],[[[134.22357,34.34444],[134.75305,33.826103],[134.18774,33.23833],[133.59885,33.50139],[132.80304,32.735554],[132.37247,33.46639],[132.89914,34.107777],[133.52414,33.961384],[134.22357,34.34444]]],[[[141.27081,41.34249],[142.0697,39.54666],[141.52582,38.26639],[140.95358,38.14805],[140.97552,36.987774],[140.56552,36.247494],[140.83719,35.743324],[140.33469,35.13138],[139.77026,34.953323],[139.17108,35.23611],[138.74496,35.122765],[138.21414,34.59916],[137.0361,34.564713],[136.34384,34.189713],[135.77222,33.454994],[135.0633,33.87777],[135.33359,34.718327],[132.36774,34.358604],[131.74579,34.053604],[131.40555,34.41944],[133.08801,35.58167],[136.07275,35.648605],[135.95941,35.973324],[136.71246,36.75139],[137.30246,36.746387],[138.58054,37.398605],[139.42441,38.151657],[140.02277,39.378605],[140.02054,40.230824],[140.26886,40.80666],[141.14941,40.862213],[141.27081,41.34249]]],[[[142.04831,45.404713],[143.77222,44.094154],[145.06998,43.774715],[145.2561,43.315],[143.98969,42.906654],[143.23996,41.924168],[141.79053,42.606384],[140.98608,42.295],[141.19913,41.798332],[140.0697,41.419163],[139.83636,42.615273],[140.52887,43.00055],[140.46774,43.36721],[141.4072,43.291386],[141.79721,44.624992],[141.57803,45.23249],[142.04831,45.404713]]]]},properties:{name:"Japan",iso2:"JP",iso3:"JPN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-77.13196,17.878887],[-77.73334,17.84861],[-78.33974,18.3625],[-76.94528,18.394444],[-77.13196,17.878887]]]},properties:{name:"Jamaica",iso2:"JM",iso3:"JAM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[34.97998,29.545753],[35.478195,31.497322],[35.552567,32.394196],[35.648888,32.685272],[36.837776,32.313606],[38.7947,33.377594],[39.196743,32.15494],[37.005272,31.505554],[38.00139,30.504168],[37.502777,30.00222],[36.743607,29.864721],[36.07,29.188889],[34.961388,29.360832],[34.97998,29.545753]]]},properties:{name:"Jordan",iso2:"JO",iso3:"JOR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[35.94055,4.622499],[37.03972,4.375555],[38.12111,3.611666],[39.524437,3.406389],[40.783768,4.287975],[41.171387,3.9425],[41.905167,3.980322],[40.986595,2.829956],[40.99833,-.866111],[41.55816,-1.674868],[40.891663,-2.019167],[40.638054,-2.55],[40.236664,-2.663333],[39.203026,-4.669618],[37.61361,-3.504167],[37.602776,-2.995833],[33.920273,-1.001111],[33.90722,.103056],[35.00972,1.895278],[34.463333,3.671389],[33.996666,4.222777],[34.38819,4.609682],[35.94055,4.622499]]]},properties:{name:"Kenya",iso2:"KE",iso3:"KEN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[80.234024,42.19622],[78.080826,41.040787],[76.87387,41.014107],[76.345825,40.35022],[75.57805,40.648],[74.86026,40.519386],[73.99443,40.046043],[73.655685,39.454826],[72.2486,39.191856],[71.47304,39.6213],[70.99776,39.40094],[69.30609,39.539436],[69.54082,40.13138],[70.49803,39.90683],[70.98204,40.244843],[71.71054,40.145767],[73.173035,40.822998],[71.418045,41.118553],[70.187195,41.52829],[70.97081,42.25467],[71.1711,42.691353],[71.74721,42.823586],[73.519714,42.408005],[73.58388,43.038574],[74.293594,43.216904],[75.66443,42.807457],[79.1947,42.79579],[80.234024,42.19622]]]},properties:{name:"Kyrgyzstan",iso2:"KG",iso3:"KGZ"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[128.36356,38.625244],[128.07996,38.311935],[127.10609,38.2875],[126.68849,37.833908],[124.6647,38.1211],[125.13998,38.796387],[125.12303,39.557213],[124.3736,40.09362],[126.01694,40.899998],[126.91304,41.796104],[128.15582,41.382492],[128.05887,42.003326],[128.92581,42.02444],[129.71191,42.444153],[129.90753,43.00582],[130.60437,42.421864],[130.69742,42.29221],[129.6994,41.648605],[129.70941,40.829994],[127.50694,39.72471],[127.39305,39.20083],[128.36356,38.625244]]]},properties:{name:"Korea, Democratic People's Republic of",iso2:"KP",iso3:"PRK"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-157.43167,2.021388],[-157.17944,1.714444],[-157.57138,1.858888],[-157.43167,2.021388]]]},properties:{name:"Kiribati",iso2:"KI",iso3:"KIR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[126.68849,37.833908],[127.10609,38.2875],[128.07996,38.311935],[128.36356,38.625244],[129.4336,37.058884],[129.43942,35.475822],[129.13693,35.112213],[127.59332,34.941658],[126.55637,34.300545],[126.26694,34.683327],[126.87299,36.054718],[126.54442,36.136406],[126.50249,37.052773],[126.86581,37.266937],[126.68849,37.833908]]]},properties:{name:"Korea, Republic of",iso2:"KR",iso3:"KOR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[47.943474,30.017555],[48.028603,29.344994],[48.416588,28.545277],[47.68888,28.538883],[47.45999,28.99944],[46.546944,29.104198],[47.16999,30.01527],[47.943474,30.017555]]]},properties:{name:"Kuwait",iso2:"KW",iso3:"KWT"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[80.234024,42.19622],[79.1947,42.79579],[75.66443,42.807457],[74.293594,43.216904],[73.58388,43.038574],[73.519714,42.408005],[71.74721,42.823586],[71.1711,42.691353],[70.97081,42.25467],[69.056366,41.379433],[68.45526,40.59777],[67.93553,41.183327],[66.719986,41.174995],[66.52638,42.00305],[66.02916,42.00305],[65.82193,42.877213],[64.931366,43.73777],[62.02511,43.484787],[58.569717,45.571106],[55.99749,45.001106],[56.00096,41.328453],[55.45694,41.28666],[54.17305,42.33721],[53.015,42.138885],[52.44007,41.740936],[52.738327,42.710274],[51.26555,43.153046],[50.83999,44.193047],[50.239433,44.576385],[50.95305,44.86194],[51.405266,45.370544],[52.733047,45.54944],[53.085823,46.007217],[53.194153,46.714996],[51.189987,47.114716],[49.222527,46.346306],[48.20443,47.704987],[47.383324,47.68888],[47.122765,48.27166],[46.49916,48.417496],[47.062767,49.14277],[46.929436,49.86361],[47.52083,50.43638],[48.251663,49.869713],[48.796944,49.941933],[48.697487,50.591934],[50.7733,51.76918],[51.303047,51.479713],[52.338326,51.78221],[52.603325,51.45694],[53.428604,51.49166],[55.69249,50.532494],[56.510826,51.08333],[57.481934,50.864716],[58.33777,51.156097],[59.542496,50.478325],[60.04361,50.863327],[61.38138,50.783607],[61.68582,51.26583],[60.00222,51.95833],[61.061935,52.34249],[60.694153,52.680824],[61.184715,53.306656],[61.01416,53.947487],[62.547493,53.879433],[63.17222,54.18638],[65.216385,54.318886],[65.48332,54.638046],[69.18553,55.343884],[70.84332,55.301933],[71.27887,54.69027],[71.18553,54.103325],[73.763885,54.065544],[73.437195,53.436104],[74.42915,53.4786],[76.52165,53.99388],[77.908035,53.271107],[80.07796,50.758087],[80.687836,51.31472],[81.46805,50.742218],[83.456375,51.0025],[84.36304,50.21221],[85.014435,50.07583],[85.258606,49.591377],[86.61665,49.58721],[87.348206,49.09262],[86.874695,49.110825],[86.5961,48.53611],[85.759155,48.387775],[85.52931,47.060165],[84.75943,46.826385],[83.04054,47.212215],[82.317764,45.570534],[79.87109,44.90498],[80.52083,44.732475],[80.36276,44.125244],[80.817215,43.15607],[80.17192,42.660507],[80.234024,42.19622]]]},properties:{name:"Kazakhstan",iso2:"KZ",iso3:"KAZ"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[107.5466,14.708618],[106.85359,14.303053],[106.54074,14.598724],[106.00471,14.373053],[106.05664,13.929998],[105.2106,14.349649],[105.5361,14.563332],[105.63777,15.659721],[104.74721,16.528332],[104.71832,17.50333],[103.98553,18.321663],[103.39722,18.434994],[102.68359,17.819996],[102.08939,18.214983],[101.16277,17.459995],[100.92137,17.567219],[101.2811,19.562218],[100.5036,19.526665],[100.58046,20.157768],[100.09137,20.348606],[101.14824,21.572636],[101.28194,21.180275],[101.7872,21.144163],[101.57443,22.209162],[102.14075,22.396286],[102.67665,21.65583],[102.97609,21.739437],[103.17053,20.846664],[103.69359,20.657219],[104.10915,20.977219],[104.38193,20.444717],[104.97916,20.004997],[104.64027,19.611942],[104.03725,19.692944],[103.87943,19.29361],[105.19386,18.642494],[105.18332,18.334442],[106.5611,16.99694],[106.68553,16.45805],[107.46471,16.07861],[107.17554,15.784164],[107.69525,15.270832],[107.5466,14.708618]]]},properties:{name:"Lao People's Democratic Republic",iso2:"LA",iso3:"LAO"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[35.623634,33.245728],[35.10083,33.093605],[35.97277,34.6475],[36.46,34.635277],[36.62374,34.204994],[35.623634,33.245728]]]},properties:{name:"Lebanon",iso2:"LB",iso3:"LBN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[24.31498,57.871826],[25.294998,58.084435],[26.511387,57.5261],[27.372059,57.535637],[28.16801,56.150154],[26.613209,55.674835],[25,56.295547],[22.139439,56.423607],[21.051685,56.07731],[21.053608,56.83638],[21.73333,57.576942],[22.610275,57.756386],[23.785831,56.97027],[24.407497,57.25666],[24.31498,57.871826]]]},properties:{name:"Latvia",iso2:"LV",iso3:"LVA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[26.613209,55.674835],[28.16801,56.150154],[30.926247,55.60257],[30.781387,54.79361],[32.741104,53.46305],[31.266941,53.02471],[31.783886,52.108047],[30.943096,52.07379],[30.551414,51.251846],[25.77583,51.939156],[24.396664,51.886658],[23.604633,51.527695],[23.94083,52.73221],[23.50404,53.947044],[25.785275,54.160545],[25.788887,54.87027],[26.613209,55.674835]]]},properties:{name:"Belarus",iso2:"BY",iso3:"BLR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[26.613209,55.674835],[25.788887,54.87027],[25.785275,54.160545],[23.50404,53.947044],[22.785885,54.36384],[22.842495,54.896942],[21.263935,55.248985],[21.051685,56.07731],[22.139439,56.423607],[25,56.295547],[26.613209,55.674835]]]},properties:{name:"Lithuania",iso2:"LT",iso3:"LTU"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-11.492331,6.927091],[-10.266651,8.488377],[-9.48365,8.346931],[-9.485161,7.361989],[-9.106945,7.198889],[-8.469749,7.561325],[-8.308334,6.860833],[-8.606384,6.507815],[-7.423334,5.839444],[-7.525402,4.352806],[-9.142778,5.055555],[-11.492331,6.927091]]]},properties:{name:"Liberia",iso2:"LR",iso3:"LBR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[17.166386,48.012497],[16.946182,48.619064],[18.851246,49.517357],[19.475555,49.6],[20.074444,49.175278],[21.618889,49.436386],[22.558052,49.079437],[22.151442,48.41192],[20.660553,48.56333],[18.655277,47.758606],[17.166386,48.012497]]]},properties:{name:"Slovakia",iso2:"SK",iso3:"SVK"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[9.533569,47.274544],[9.598635,47.063835],[9.474637,47.057457],[9.533569,47.274544]]]},properties:{name:"Liechtenstein",iso2:"LI",iso3:"LIE"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[9.537113,30.23439],[10.21361,30.730831],[10.287222,31.694164],[11.567499,32.442215],[11.526081,33.171135],[15.165833,32.398605],[15.761665,31.385555],[17.37083,31.081665],[19.001389,30.266941],[20.060555,30.855274],[20.084442,32.184715],[21.621387,32.93361],[23.1125,32.6325],[23.247196,32.216225],[24.973888,31.969997],[25.151665,31.646942],[24.706665,30.16861],[24.997776,29.248886],[25.001423,21.999695],[25.000832,19.999119],[24.000832,20.001942],[24.002747,19.499065],[16.000832,23.450554],[14.997889,23.000591],[14.234999,22.614166],[13.543888,23.16861],[11.986475,23.522305],[11.558887,24.302498],[10.252222,24.605831],[9.398333,26.153332],[9.871666,26.514164],[9.948332,27.824444],[9.766388,29.427776],[9.537113,30.23439]]]},properties:{name:"Libyan Arab Jamahiriya",iso2:"LY",iso3:"LBY"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[49.35694,-12.090834],[49.943333,-13.039446],[50.433613,-15.580002],[50.172775,-15.979723],[49.63361,-15.557501],[49.78861,-16.83028],[47.133053,-24.928059],[45.214725,-25.588337],[44.01722,-24.98528],[43.238888,-22.282501],[43.50055,-21.333889],[44.48222,-19.97028],[43.93722,-17.479446],[44.459164,-16.184448],[46.151382,-15.703611],[47.05833,-15.185001],[47.454994,-14.665279],[48.739716,-13.427223],[48.959442,-12.822224],[48.730827,-12.434168],[49.35694,-12.090834]]]},properties:{name:"Madagascar",iso2:"MG",iso3:"MDG"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-60.86084,14.402777],[-61.17473,14.876944],[-60.940834,14.740833],[-60.86084,14.402777]]]},properties:{name:"Martinique",iso2:"MQ",iso3:"MTQ"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[87.8407,49.17295],[92.32277,50.815],[94.274994,50.569443],[94.63527,50.02444],[97.34082,49.73444],[98.2897,50.293884],[97.827774,51.001106],[98.93027,52.14361],[102.21887,51.333607],[102.32777,50.569717],[102.91859,50.31527],[106.66304,50.3386],[107.97713,49.943626],[108.57222,49.333603],[110.78859,49.14944],[113.09082,49.598602],[114.31303,50.284164],[116.71138,49.830467],[115.59219,47.91944],[117.37219,47.6536],[117.80109,48.01055],[118.53934,47.994755],[119.72998,47.164158],[119.89749,46.675552],[117.4211,46.578335],[116.58554,46.29583],[115.70193,45.458607],[114.54526,45.389435],[113.63805,44.74527],[111.98082,45.09166],[111.42137,44.382492],[111.95833,43.692215],[110.44054,42.77777],[109.3136,42.429993],[107.47192,42.466106],[105.01221,41.581383],[100.83554,42.678047],[96.38304,42.731106],[95.336105,44.02083],[95.41666,44.293884],[93.5547,44.957214],[90.89694,45.25305],[90.68193,45.57972],[91.02025,46.60011],[90.07443,47.886383],[88.65332,48.182774],[87.97331,48.576942],[87.8407,49.17295]]]},properties:{name:"Mongolia",iso2:"MN",iso3:"MNG"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-62.171394,16.671387],[-62.23667,16.71194],[-62.20195,16.81361],[-62.171394,16.671387]]]},properties:{name:"Montserrat",iso2:"MS",iso3:"MSR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[20.589642,41.882187],[21.630444,42.14109],[22.365276,42.323883],[23.01472,41.762215],[22.935604,41.342125],[20.98349,40.85589],[20.492775,41.33111],[20.589642,41.882187]]]},properties:{name:"The former Yugoslav Republic of Macedonia",iso2:"MK",iso3:"MKD"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-11.373058,12.407774],[-11.378056,12.988054],[-12.057222,13.664721],[-12.244833,14.764385],[-11.841391,14.863054],[-11.494167,15.646387],[-10.899637,15.106874],[-10.716387,15.438902],[-9.333612,15.499722],[-5.49505,15.498371],[-5.335,16.328053],[-5.601389,16.507774],[-6.577223,24.999165],[-4.806111,25.000275],[1.169662,21.102543],[1.1675,20.741108],[1.795833,20.30833],[3.233055,19.820274],[3.331944,18.976387],[4.245277,19.146664],[4.200833,16.393887],[3.523981,15.358152],[1.3125,15.286665],[.235048,14.915068],[-.725278,15.082777],[-2.474722,14.287498],[-2.879167,13.655554],[-3.2575,13.696665],[-3.437675,13.166498],[-3.964253,13.50383],[-4.337223,13.121666],[-4.4175,12.300831],[-5.273056,11.843887],[-5.51985,10.436272],[-6.111389,10.197777],[-6.243402,10.735256],[-6.988056,10.147499],[-7.635556,10.448332],[-7.973984,10.165611],[-8.357779,11.305555],[-9.155556,12.486111],[-9.701946,12.029163],[-10.323893,12.224997],[-10.652748,11.892609],[-11.373058,12.407774]]]},properties:{name:"Mali",iso2:"ML",iso3:"MLI"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-2.209445,35.08583],[-1.747222,34.747215],[-1.668056,33.26111],[-1.010278,32.50833],[-1.180556,32.11055],[-2.853889,32.088333],[-3.818334,31.695553],[-3.626667,30.970554],[-4.920556,30.508053],[-5.538334,29.902496],[-7.123889,29.636944],[-8.667223,28.709442],[-8.666668,27.666664],[-13.174961,27.666958],[-11.458057,28.334442],[-10.138056,29.428055],[-9.640278,30.168053],[-9.809168,31.446663],[-9.053169,32.734802],[-6.843056,34.01861],[-5.918744,35.79065],[-5.395557,35.91634],[-5.345834,35.84166],[-4.695834,35.208885],[-2.946945,35.329163],[-2.914722,35.273605],[-2.209445,35.08583]]]},properties:{name:"Morocco",iso2:"MA",iso3:"MAR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[57.572495,-20.514168],[57.304718,-20.44917],[57.624443,-19.98639],[57.572495,-20.514168]]]},properties:{name:"Mauritius",iso2:"MU",iso3:"MUS"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-4.806111,25.000275],[-6.577223,24.999165],[-5.601389,16.507774],[-5.335,16.328053],[-5.49505,15.498371],[-9.333612,15.499722],[-10.716387,15.438902],[-10.899637,15.106874],[-11.494167,15.646387],[-11.841391,14.863054],[-12.244833,14.764385],[-14.345278,16.63861],[-16.280834,16.519722],[-16.52768,16.06025],[-16.039448,17.728054],[-16.51167,19.352219],[-16.196392,20.223053],[-16.919724,21.161663],[-17.05233,20.764095],[-16.953056,21.338333],[-12.999723,21.338055],[-13.105278,22.893055],[-12.000278,23.454441],[-12.000557,26],[-8.666945,26.000275],[-8.66679,27.290459],[-6.662778,26.129166],[-4.806111,25.000275]]]},properties:{name:"Mauritania",iso2:"MR",iso3:"MRT"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[14.562222,35.820274],[14.374998,35.847496],[14.326387,35.97888],[14.562222,35.820274]]]},properties:{name:"Malta",iso2:"MT",iso3:"MLT"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[56.373528,24.979382],[57.164993,23.937775],[58.609444,23.633053],[59.811386,22.226665],[58.51583,20.411663],[57.829437,20.218887],[57.803886,18.969444],[56.814484,18.747684],[56.353333,17.934166],[55.436943,17.828888],[55.039993,17.018608],[53.11444,16.642778],[51.99929,18.999344],[55,20],[55.666107,21.999723],[55.199165,22.69972],[55.510277,23.972775],[56.02472,24.07611],[55.77944,24.563889],[56.373528,24.979382]]]},properties:{name:"Oman",iso2:"OM",iso3:"OMN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[73.13693,6.726388],[73.12915,6.733888],[73.16193,6.784165],[73.13693,6.726388]]]},properties:{name:"Maldives",iso2:"MV",iso3:"MDV"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-97.14074,25.966429],[-97.889725,22.600832],[-97.17612,20.685],[-95.91139,18.825277],[-94.80223,18.522501],[-94.4789,18.146666],[-91.99501,18.727777],[-91.475006,18.439444],[-90.45473,19.975279],[-90.327515,21.03139],[-88.4514,21.568888],[-87.02779,21.590277],[-86.77278,21.151388],[-87.73889,19.674723],[-87.41167,19.57889],[-87.8475,18.190832],[-88.2995,18.48293],[-89.14195,17.818888],[-90.98242,17.820654],[-90.9839,17.25611],[-90.4064,16.416388],[-90.441956,16.088335],[-91.72917,16.074997],[-92.24678,14.550547],[-92.77278,15.174444],[-94.057785,16.040834],[-94.86195,16.4275],[-96.47612,15.64361],[-97.785,15.968611],[-101.01112,17.265276],[-101.95001,17.977499],[-103.45001,18.313612],[-104.98361,19.339445],[-105.68001,20.386389],[-105.18945,21.437498],[-105.81696,22.660276],[-107.99918,24.652498],[-109.1039,26.28361],[-110.52972,27.37111],[-110.50974,27.866388],[-111.10556,27.938334],[-112.16473,28.972502],[-113.08667,31.22722],[-115.03168,31.968054],[-114.54529,30.001112],[-112.86279,28.433332],[-111.85861,26.661943],[-111.56084,26.723612],[-110.66057,24.337778],[-110.21362,24.351946],[-109.41084,23.468332],[-110.005,22.88611],[-110.31668,23.5675],[-112.08751,24.75611],[-112.10612,25.518332],[-112.39667,26.27278],[-113.5975,26.736944],[-114.98889,27.72111],[-114.31056,27.865557],[-114.06361,28.527224],[-115.69389,29.768332],[-117.122375,32.535336],[-114.71909,32.718456],[-114.80983,32.50699],[-111.04584,31.333055],[-108.20834,31.333055],[-108.20862,31.783335],[-106.40085,31.750277],[-104.90056,30.572779],[-104.54001,29.67111],[-103.375,29.023611],[-102.30585,29.889444],[-101.405014,29.77278],[-99.505005,27.570276],[-99.10474,26.435],[-97.14074,25.966429]]]},properties:{name:"Mexico",iso2:"MX",iso3:"MEX"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[102.09523,6.236138],[103.40997,4.858053],[103.43579,2.933889],[103.95941,1.646944],[103.51214,1.269529],[101.28497,2.841112],[101.29442,3.268888],[100.69719,3.903891],[100.12711,6.424948],[100.21498,6.71111],[101.11552,6.248888],[101.13969,5.631943],[102.09523,6.236138]]],[[[117.59206,4.169821],[116.04942,4.279444],[115.68526,4.171946],[115.49553,3.040003],[115.2372,2.522501],[114.8047,2.248888],[114.56276,1.433611],[113.65833,1.224722],[112.47276,1.568056],[111.82721,.998613],[110.55525,.853891],[109.66998,1.613054],[109.64857,2.073408],[109.92831,1.689165],[110.33333,1.802221],[111,1.575556],[111.37276,2.150835],[111.4447,2.691668],[113.01054,3.160555],[114.09508,4.59054],[114.6411,4.018888],[115.01843,4.895796],[115.02913,4.820211],[115.14578,4.903242],[115.37886,5.39889],[115.84888,5.56389],[116.7625,7.023611],[118.00888,6.061666],[119.27582,5.344999],[118.14055,4.888334],[118.5522,4.351667],[117.59206,4.169821]]]]},properties:{name:"Malaysia",iso2:"MY",iso3:"MYS"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[32.890427,-26.847145],[32.1334,-26.839626],[31.96851,-25.95784],[32.016106,-24.459446],[31.297504,-22.414764],[32.488876,-21.344448],[32.50222,-20.598614],[33.018883,-19.943336],[32.699165,-18.944447],[33.07305,-18.348892],[32.98114,-16.709053],[31.276665,-16.018612],[30.422775,-16.009167],[30.415756,-15.631872],[30.213017,-14.981716],[33.22223,-14.012566],[33.63333,-14.539722],[34.522217,-14.571667],[34.58972,-15.282778],[34.255554,-15.899168],[35.1353,-16.553375],[35.814438,-16.019447],[35.924164,-14.885557],[34.566383,-13.342224],[34.375275,-12.155834],[34.626106,-11.575834],[34.96673,-11.572111],[35.838333,-11.414722],[36.18972,-11.706667],[37.462044,-11.727329],[37.941383,-11.285002],[39.26805,-11.168056],[40.436813,-10.478174],[40.646942,-12.760834],[40.409996,-12.961945],[40.846107,-14.697779],[40.587776,-15.479723],[39.094444,-16.98639],[36.841385,-17.877224],[36.943886,-18.108612],[36.252777,-18.891392],[34.899162,-19.857224],[34.619164,-19.617779],[35.312492,-22.418056],[35.545273,-22.232502],[35.497215,-24.105278],[35.012215,-24.654167],[32.81389,-25.60778],[32.57611,-25.97556],[32.890427,-26.847145]]]},properties:{name:"Mozambique",iso2:"MZ",iso3:"MOZ"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[34.96673,-11.572111],[34.626106,-11.575834],[34.375275,-12.155834],[34.566383,-13.342224],[35.924164,-14.885557],[35.814438,-16.019447],[35.1353,-16.553375],[34.255554,-15.899168],[34.58972,-15.282778],[34.522217,-14.571667],[33.63333,-14.539722],[33.22223,-14.012566],[32.678886,-13.60639],[33.27333,-12.144445],[33.25055,-10.886667],[33.70228,-10.561857],[32.9404,-9.405077],[34.32527,-9.732779],[34.96673,-11.572111]]]},properties:{name:"Malawi",iso2:"MW",iso3:"MWI"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[164.31665,-20.327225],[167.01471,-22.321388],[166.4519,-22.316666],[166.11636,-21.946388],[165.25998,-21.558056],[164.31665,-20.327225]]]},properties:{name:"New Caledonia",iso2:"NC",iso3:"NCL"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-169.89389,-19.145557],[-169.93167,-19.016666],[-169.8175,-18.96833],[-169.89389,-19.145557]]]},properties:{name:"Niue",iso2:"NU",iso3:"NIU"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[4.245277,19.146664],[5.812499,19.44611],[7.450807,20.852863],[11.986475,23.522305],[13.543888,23.16861],[14.234999,22.614166],[14.997889,23.000591],[15.202499,21.49583],[15.996666,20.353054],[15.489166,16.914165],[13.468887,14.461111],[13.62512,13.718338],[12.459166,13.066111],[10.724165,13.386389],[9.634932,12.802435],[7.815,13.352777],[6.933332,12.997221],[6.423055,13.605276],[5.874722,13.749443],[4.1425,13.476944],[3.604459,11.693274],[2.83862,12.396658],[2.397925,11.896152],[2.1425,12.694443],[1.578333,12.629999],[.989167,13.047222],[.602222,13.703888],[.235048,14.915068],[1.3125,15.286665],[3.523981,15.358152],[4.200833,16.393887],[4.245277,19.146664]]]},properties:{name:"Niger",iso2:"NE",iso3:"NER"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-69.88223,12.41111],[-70.05945,12.538055],[-70.063065,12.628611],[-69.88223,12.41111]]]},properties:{name:"Aruba",iso2:"AW",iso3:"ABW"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-63.167778,18.164444],[-62.97,18.27222],[-62.993057,18.227219],[-63.167778,18.164444]]]},properties:{name:"Anguilla",iso2:"AI",iso3:"AIA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[6.134414,50.127846],[5.80788,49.545044],[4.873055,49.79722],[2.541667,51.09111],[3.370866,51.373856],[4.238897,51.35043],[4.252368,51.375145],[5.041389,51.486664],[5.849171,51.15638],[6.011798,50.75727],[6.134414,50.127846]]]},properties:{name:"Belgium",iso2:"BE",iso3:"BEL"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[114.03333,22.509138],[114.222595,22.55055],[114.296104,22.260561],[114.03333,22.509138]]]},properties:{name:"Hong Kong",iso2:"HK",iso3:"HKG"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[145.73608,15.13361],[145.67914,15.105276],[145.81802,15.265833],[145.73608,15.13361]]]},properties:{name:"Northern Mariana Islands",iso2:"MP",iso3:"MNP"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-6.706944,61.937492],[-7.232222,62.172497],[-7.210833,62.28472],[-6.706944,61.937492]]]},properties:{name:"Faroe Islands",iso2:"FO",iso3:"FRO"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[1.723611,42.509438],[1.445833,42.601944],[1.78172,42.56996],[1.723611,42.509438]]]},properties:{name:"Andorra",iso2:"AD",iso3:"AND"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-5.334508,36.16256],[-5.33823,36.112175],[-5.355799,36.163307],[-5.334508,36.16256]]]},properties:{name:"Gibraltar",iso2:"GI",iso3:"GIB"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-4.777779,54.05555],[-4.354167,54.410828],[-4.394444,54.186386],[-4.777779,54.05555]]]},properties:{name:"Isle of Man",iso2:"IM",iso3:"IMN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[6.134414,50.127846],[6.362169,49.459393],[5.80788,49.545044],[6.134414,50.127846]]]},properties:{name:"Luxembourg",iso2:"LU",iso3:"LUX"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[113.53166,22.194738],[113.55443,22.212732],[113.55247,22.183052],[113.53166,22.194738]]]},properties:{name:"Macau",iso2:"MO",iso3:"MAC"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[7.439293,43.757523],[7.391609,43.727547],[7.387777,43.748604],[7.439293,43.757523]]]},properties:{name:"Monaco",iso2:"MC",iso3:"MCO"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[34.26758,31.216541],[34.21666,31.32333],[34.490547,31.596096],[34.26758,31.216541]]],[[[35.552567,32.394196],[35.478195,31.497322],[34.884995,31.391388],[35.282494,32.516937],[35.552567,32.394196]]]]},properties:{name:"Palestine",iso2:"PS",iso3:"PSE"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[18.455555,42.565826],[18.699997,43.255554],[19.22881,43.513214],[20.295954,42.82429],[20.071423,42.560913],[19.645832,42.61805],[19.367771,41.849],[18.503197,42.44944],[18.455555,42.565826]]]},properties:{name:"Montenegro",iso2:"ME",iso3:"MNE"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[45.204994,-12.849724],[45.097496,-12.985834],[45.078888,-12.6625],[45.204994,-12.849724]]]},properties:{name:"Mayotte",iso2:"YT",iso3:"MYT"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[20.08472,60.350273],[20.277496,60.274162],[19.943886,60.04277],[19.64833,60.25666],[20.08472,60.350273]]]},properties:{name:"Åland Islands",iso2:"AX",iso3:"ALA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[167.96497,-29.081112],[167.91248,-29.00528],[167.99774,-29.025002],[167.96497,-29.081112]]]},properties:{name:"Norfolk Island",iso2:"NF",iso3:"NFK"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[96.86276,-12.196112],[96.81944,-12.178057],[96.826385,-12.128332],[96.86276,-12.196112]]]},properties:{name:"Cocos (Keeling) Islands",iso2:"CC",iso3:"CCK"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-60.22,-80.28584],[-61.843895,-80.836395],[-67.03195,-80.1664],[-60.22,-80.28584]]],[[[-162.13336,-78.74112],[-158.5325,-79.7139],[-161.08585,-79.83528],[-163.8164,-79.207504],[-162.13336,-78.74112]]],[[[-44.11445,-78.6989],[-44.583336,-79.33389],[-43.354446,-79.779724],[-44.286392,-80.33974],[-52.055557,-80.90279],[-54.90889,-80.71861],[-50.666115,-79.58862],[-50.183617,-78.65056],[-48.27278,-78.0564],[-44.84195,-78.101395],[-44.11445,-78.6989]]],[[[-122.14973,-73.614456],[-118.54945,-73.928894],[-122.13223,-74.36806],[-122.14973,-73.614456]]],[[[-98.80307,-71.88667],[-97.6864,-72.181946],[-98.61612,-72.56889],[-102.56279,-72.124725],[-100.41446,-71.88139],[-98.80307,-71.88667]]],[[[-70.15695,-68.84862],[-70.08417,-69.263626],[-68.37723,-70.649445],[-68.071396,-71.638336],[-69.26001,-72.56418],[-72.2675,-71.64612],[-74.043335,-72.20889],[-75.14195,-71.57779],[-72.92639,-71.115845],[-70.61389,-71.1664],[-71.64584,-69.5175],[-72.25334,-69.20723],[-70.15695,-68.84862]]],[[[-56.946396,-63.45056],[-58.600838,-63.94889],[-58.77864,-64.53581],[-59.91889,-64.41223],[-61.95945,-65.18028],[-61.68306,-65.53862],[-63.67556,-66.21834],[-65.61389,-67.55917],[-65.31334,-68.711395],[-63.85778,-68.84279],[-62.475838,-69.453064],[-62.635002,-69.85335],[-61.48445,-70.52028],[-60.942505,-71.15834],[-60.617226,-73.028625],[-61.60917,-73.54611],[-61.887505,-74.83223],[-63.42917,-75.45056],[-69.385284,-76.29611],[-70.476395,-76.70778],[-75.44446,-76.5464],[-76.38057,-76.065],[-78.47667,-76.40723],[-75.63278,-77.50862],[-72.83974,-77.640015],[-74.85335,-78.14111],[-81.49695,-77.65779],[-81.47,-77.89723],[-77.4875,-78.52667],[-80.20279,-79.2289],[-77.02945,-79.27945],[-77.321945,-80.0114],[-74.69389,-80.697235],[-59.648056,-82.4339],[-58.21084,-83.03334],[-53.725838,-82.15028],[-43.08445,-81.851395],[-41.48889,-81.38335],[-28.319447,-80.27695],[-30.210556,-79.66667],[-33.001114,-79.4539],[-36.30278,-78.779175],[-33.886116,-77.66057],[-28.305279,-76.56529],[-17.758057,-75.72974],[-18.25639,-75.495834],[-16.326115,-74.0639],[-16.023613,-73.32028],[-13.731112,-73.02084],[-11.657778,-72.32695],[-10.048613,-71.11139],[-7.723333,-71.42917],[-2.261667,-71.17084],[-.297499,-71.65889],[2.80316,-70.846954],[6.699522,-70.586395],[7.55731,-70.16835],[12.046747,-70.717514],[12.740351,-70.28113],[15.705927,-70.278625],[18.03649,-69.96918],[23.246756,-70.54642],[31.083422,-69.773895],[32.902325,-69.27695],[34.14036,-68.48279],[38.23924,-69.9928],[39.70176,-69.648636],[39.760357,-68.95447],[41.103127,-68.523895],[46.30893,-67.64169],[47.39561,-67.72252],[49.16727,-67.38336],[49.151707,-67.08862],[50.413116,-66.44197],[53.77896,-65.84003],[55.619232,-66.00696],[57.311974,-66.56334],[56.729527,-66.90112],[59.11062,-67.41223],[69.64479,-67.75391],[70.102005,-68.523895],[69.29201,-69.10278],[69.20534,-69.86391],[68.09474,-69.87947],[67.64613,-70.3864],[68.59395,-70.770584],[67.337555,-72.06334],[68.93642,-72.425],[70.864944,-71.930145],[71.50447,-70.9539],[72.86311,-70.432785],[72.90114,-70.02196],[77.74727,-69.116974],[78.11641,-68.45973],[82.05727,-67.67224],[83.4034,-67.15668],[85.79169,-67.17778],[87.50252,-66.894745],[92.00531,-66.533905],[97.56445,-66.74057],[98.26196,-66.51611],[99.28308,-66.880844],[100.95392,-66.08084],[102.62616,-65.90112],[107.80478,-66.39836],[108.82422,-66.83113],[110.62976,-66.48668],[110.89172,-66.06363],[113.31534,-65.71335],[114.51836,-66.47278],[116.18004,-66.366684],[117.767,-66.989746],[122.18336,-66.547806],[125.19002,-66.73419],[126.35616,-66.279724],[126.92865,-66.83446],[128.83478,-67.14252],[130.35199,-66.225845],[134.2453,-66.201126],[134.10062,-65.12306],[135.27225,-65.4364],[134.94778,-66.09306],[142.5664,-66.99417],[143.40002,-66.851135],[145.315,-67.61334],[148.02945,-67.84447],[148.81335,-68.33528],[150.99252,-68.390854],[151.18503,-68.98003],[153.76862,-68.92224],[156.33612,-69.24057],[157.23639,-68.94252],[160.9689,-70.25557],[166.77167,-70.61168],[167.76752,-70.78084],[170.99445,-71.8642],[169.26642,-73.08391],[167.56168,-73.40335],[164.78085,-74.13696],[165.33331,-74.672806],[162.53973,-75.10892],[163.13696,-75.936676],[163.23834,-77.0414],[165.54001,-78.00336],[165.6836,-78.39169],[160.49417,-79.02086],[160.73807,-79.45308],[158.05725,-80.28056],[160.8439,-80.89307],[160.39111,-81.52141],[162.27585,-81.66223],[163.44614,-82.26503],[172.3186,-83.59723],[171.90503,-83.8017],[180,-84.302246],[180,-90],[-180,-90],[-180,-84.30534],[-157.48334,-85.44862],[-150.23947,-85.46362],[-148.13834,-85.090836],[-139.6614,-85.24501],[-138.58945,-84.984726],[-149.29474,-84.56195],[-153.05307,-84.01279],[-153.0075,-83.08751],[-151.79419,-82.57779],[-154.89142,-81.905014],[-154.92169,-81.00195],[-148.41336,-81.35751],[-145.52417,-80.460556],[-146.81195,-79.88751],[-155.9064,-78.71973],[-153.7503,-78.308334],[-157.91028,-78.00195],[-157.75308,-77.10806],[-155.86139,-77.08446],[-152.06113,-77.32529],[-149.66223,-77.76112],[-145.29889,-77.029175],[-146.29529,-76.039734],[-134.3039,-74.53279],[-133.26251,-74.84723],[-121.47835,-74.74251],[-117.39696,-74.53084],[-114.69778,-74.46918],[-112.65417,-74.85861],[-111.34306,-74.759445],[-110.38306,-75.30612],[-99.510284,-75.092514],[-100.85167,-74.81473],[-101.65834,-73.9989],[-102.9014,-73.87584],[-103.03612,-73.3264],[-102.09917,-73.08473],[-90.861115,-73.326675],[-89.32112,-73.05417],[-86.840836,-73.336395],[-82.13417,-73.943344],[-80.51918,-73.446396],[-76.96278,-73.87306],[-69.428345,-73.197235],[-66.797226,-72.40779],[-67.53723,-71.45473],[-67.7039,-70.59306],[-68.83806,-69.41724],[-66.65779,-69.01779],[-67.6239,-67.55362],[-67.48584,-67.077225],[-65.68973,-66.125],[-64.45334,-65.981674],[-63.879448,-65.01834],[-61.93528,-64.69057],[-60.99167,-64.03584],[-59.44584,-63.89306],[-58.910835,-63.53306],[-57.205,-63.20556],[-56.946396,-63.45056]]]]},properties:{name:"Antarctica",iso2:"AQ",iso3:"ATA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[3.361389,-54.462784],[3.366944,-54.399727],[3.483611,-54.40223],[3.361389,-54.462784]]]},properties:{name:"Bouvet Island",iso2:"BV",iso3:"BVT"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[69.0011,-48.7975],[69.77472,-49.394173],[68.797775,-49.721947],[69.0011,-48.7975]]]},properties:{name:"French Southern and Antarctic Lands",iso2:"TF",iso3:"ATF"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[73.77388,-53.12503],[73.47444,-53.194168],[73.234436,-52.987785],[73.77388,-53.12503]]]},properties:{name:"Heard Island and McDonald Islands",iso2:"HM",iso3:"HMD"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[72.4872,-7.381944],[72.359146,-7.265278],[72.44887,-7.234445],[72.4872,-7.381944]]]},properties:{name:"British Indian Ocean Territory",iso2:"IO",iso3:"IOT"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[105.7014,-10.51097],[105.629,-10.43731],[105.7366,-10.38408],[105.7014,-10.51097]]]},properties:{name:"Christmas Island",iso2:"CX",iso3:"CXR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[166.64636,19.279442],[166.60745,19.304996],[166.6276,19.324577],[166.64636,19.279442]]]},properties:{name:"United States Minor Outlying Islands",iso2:"UM",iso3:"UMI"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[166.80276,-15.157501],[167.23772,-15.524258],[166.76193,-15.642778],[166.80276,-15.157501]]]},properties:{name:"Vanuatu",iso2:"VU",iso3:"VUT"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[13.62512,13.718338],[14.07472,13.081665],[14.174444,12.396666],[14.645277,12.188332],[14.646387,11.575832],[13.80722,11.055832],[12.796944,8.769722],[12.253887,8.408054],[11.864166,7.084722],[11.340277,6.440833],[10.615,7.06861],[9.795555,6.801666],[8.865276,5.841944],[8.591738,4.810932],[7.676944,4.496388],[6.768055,4.774722],[6.694166,4.33],[6.104166,4.272778],[5.451944,4.923055],[5.345277,5.33],[4.525833,6.304999],[3.388611,6.443333],[2.719606,6.365505],[2.789444,9.043888],[3.095,9.090555],[3.855,10.584999],[3.604459,11.693274],[4.1425,13.476944],[5.874722,13.749443],[6.423055,13.605276],[6.933332,12.997221],[7.815,13.352777],[9.634932,12.802435],[10.724165,13.386389],[12.459166,13.066111],[13.62512,13.718338]]]},properties:{name:"Nigeria",iso2:"NG",iso3:"NGA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[7.208364,53.242805],[6.82889,51.965553],[6.222223,51.46583],[6.011798,50.75727],[5.849171,51.15638],[5.041389,51.486664],[4.252368,51.375145],[3.687502,51.70972],[4.584433,52.461506],[5.424444,52.248608],[5.718351,52.83802],[6.871668,53.416107],[7.208364,53.242805]]]},properties:{name:"Netherlands",iso2:"NL",iso3:"NLD"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[5.336946,61.592773],[5.150278,62.21194],[6.781389,62.478333],[7.03639,62.967503],[8.159166,63.120277],[9.647501,63.623886],[10.495291,64.42381],[12.224443,64.93721],[12.939722,65.30832],[12.673887,66.06694],[13.53639,66.303604],[13.546946,66.92667],[15.035833,67.57054],[14.758055,67.80527],[17.354723,68.173874],[18.256945,69.486374],[20.304167,69.96832],[23.311945,69.94083],[24.591944,70.96304],[26.570276,70.93889],[28.335554,70.505554],[29.036112,70.87416],[31.078054,70.289154],[30.854841,69.79231],[28.957342,69.05162],[29.176111,69.63527],[28.165834,69.91222],[26.449999,69.927216],[25.76111,68.98917],[24.93492,68.58081],[23.976389,68.83249],[22.398333,68.711105],[21.320833,69.32611],[20.580929,69.0603],[19.937775,68.337494],[18.090832,68.50777],[17.884163,67.94554],[16.726944,67.899155],[16.08583,67.41165],[16.353886,67.01778],[14.504999,66.13249],[14.493055,65.3136],[11.936388,63.27222],[12.295832,62.261665],[12.124443,61.728607],[12.85611,61.362495],[12.209999,61.002495],[12.494165,60.111107],[11.81596,59.8461],[11.429192,58.98764],[10.51639,59.31083],[8.211111,58.11556],[6.767221,58.23833],[5.457777,58.74444],[5.702501,60.454437],[5.336946,61.592773]]]},properties:{name:"Norway",iso2:"NO",iso3:"NOR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[81.02536,30.204355],[82.10054,30.34222],[83.552765,29.18583],[84.11914,29.259998],[84.481094,28.736662],[85.18997,28.60333],[86.014435,27.882776],[86.68637,28.112219],[87.19275,27.823053],[88.14279,27.866056],[88.01471,26.36472],[85.855545,26.570274],[84.14722,27.511387],[83.29137,27.337776],[80.05582,28.83611],[80.37692,29.748604],[81.02536,30.204355]]]},properties:{name:"Nepal",iso2:"NP",iso3:"NPL"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[166.92914,-.552222],[166.93054,-.493333],[166.95859,-.506389],[166.92914,-.552222]]]},properties:{name:"Nauru",iso2:"NR",iso3:"NRU"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-54.166946,5.346944],[-54.4775,4.747777],[-54.001114,3.448333],[-54.603783,2.329195],[-55.965836,2.532777],[-55.904167,1.893055],[-56.470634,1.944498],[-57.30139,3.3775],[-57.642227,3.356389],[-58.047226,4.008333],[-57.92334,4.821944],[-57.327225,5.026111],[-57.248505,5.486111],[-56.972504,5.996944],[-55.89956,5.671908],[-55.836395,5.956666],[-55.127968,5.822173],[-54.030006,5.821111],[-54.166946,5.346944]]]},properties:{name:"Suriname",iso2:"SR",iso3:"SUR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-83.13185,14.992979],[-83.18695,14.323889],[-83.55112,13.450554],[-83.83168,11.874722],[-83.6458,10.924847],[-83.91556,10.708611],[-85.69238,11.076061],[-87.692505,12.912222],[-87.30139,12.986599],[-86.69501,13.296944],[-86.763016,13.751621],[-86.01584,14.065832],[-85.732315,13.829235],[-84.90668,14.808611],[-84.48279,14.617777],[-83.13185,14.992979]]]},properties:{name:"Nicaragua",iso2:"NI",iso3:"NIC"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[172.86136,-40.507782],[173.10553,-41.31333],[174.02664,-41.236115],[174.28915,-41.748337],[172.7608,-43.239166],[172.42499,-43.733612],[171.29358,-44.343613],[170.55441,-45.888054],[169.00803,-46.680832],[166.4844,-46.01445],[166.99692,-45.145836],[167.5072,-45.001396],[168.37497,-44.03778],[170.79413,-42.90139],[172.06497,-41.40361],[172.10886,-40.88556],[172.86136,-40.507782]]],[[[173.03888,-34.436943],[174.31998,-35.232773],[174.8544,-36.84778],[175.99442,-37.638893],[177.15942,-38.013336],[178.018,-37.55083],[178.56552,-37.713333],[177.90997,-39.25695],[177.05496,-39.204445],[176.83414,-40.18167],[175.32303,-41.61445],[174.59192,-41.27861],[175.12775,-40.713615],[175.15555,-40.095833],[173.75192,-39.288612],[174.59442,-38.815834],[174.97498,-37.75],[174.18774,-36.49695],[173.08746,-35.211388],[173.03888,-34.436943]]]]},properties:{name:"New Zealand",iso2:"NZ",iso3:"NZL"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-54.598915,-25.573223],[-54.698334,-26.438335],[-55.736115,-27.439445],[-58.60462,-27.316921],[-57.576668,-25.549446],[-57.75611,-25.176945],[-61.007782,-23.813335],[-62.64377,-22.238903],[-61.7425,-19.645],[-59.09584,-19.348892],[-58.15139,-19.828056],[-58.15889,-20.168056],[-57.814445,-20.971947],[-57.985107,-22.091827],[-55.849724,-22.28889],[-55.411667,-23.95639],[-54.407227,-23.916668],[-54.33056,-24.67945],[-54.598915,-25.573223]]]},properties:{name:"Paraguay",iso2:"PY",iso3:"PRY"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-69.568436,-10.951092],[-68.673904,-12.50115],[-68.97446,-12.869722],[-68.85306,-14.199167],[-69.366394,-14.802502],[-69.13695,-15.245834],[-69.42195,-15.618057],[-68.82251,-16.339725],[-69.6189,-17.214725],[-69.499725,-17.50528],[-69.951126,-18.242779],[-70.40549,-18.348545],[-71.49751,-17.296947],[-75.0475,-15.469168],[-75.933334,-14.658056],[-76.39389,-13.898056],[-76.196945,-13.418335],[-77.65251,-11.292223],[-78.98973,-8.226946],[-79.98279,-6.764445],[-81.17473,-6.086667],[-80.8714,-5.652223],[-81.289734,-4.31],[-80.34042,-3.380517],[-80.46779,-4.43889],[-79.649734,-4.432778],[-79.054825,-5.009132],[-78.70903,-4.584787],[-78.33751,-3.422777],[-76.66063,-2.572135],[-75.55917,-1.534166],[-75.21608,-.965336],[-75.28584,-.119722],[-74.77695,-.204166],[-74.227234,-1.027777],[-73.5564,-1.370833],[-72.88196,-2.506388],[-71.69806,-2.146945],[-70.288345,-2.505],[-70.067505,-2.755556],[-70.72417,-3.779723],[-69.956924,-4.236874],[-70.76584,-4.146389],[-72.85196,-5.124722],[-73.1239,-6.447223],[-73.74417,-6.876944],[-74.01056,-7.541389],[-72.96417,-8.983334],[-73.20529,-9.407223],[-72.366394,-9.494446],[-72.14389,-10.004723],[-71.29889,-9.996389],[-70.51466,-9.428001],[-70.63139,-11.009167],[-69.568436,-10.951092]]]},properties:{name:"Peru",iso2:"PE",iso3:"PER"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[61.61103,25.197647],[61.858047,26.234718],[63.176384,26.631107],[63.341934,27.122498],[62.782494,27.260555],[62.78138,28.266941],[61.90555,28.554996],[60.8686,29.863884],[62.484436,29.406105],[66.25665,29.85194],[66.39554,30.94083],[66.72304,31.212215],[68.16609,31.833054],[68.83305,31.603886],[69.32825,31.940365],[69.505264,33.034164],[70.326935,33.33194],[69.90637,34.03527],[71.08194,34.055824],[70.98749,34.5511],[71.64943,35.424995],[71.243576,36.129715],[72.55664,36.821266],[74.56543,37.027817],[75.864426,36.65968],[76.16638,35.819717],[77.82393,35.501328],[77.04248,35.09916],[76.86998,34.658882],[73.94165,34.646385],[74.01639,33.1886],[75.38129,32.214245],[74.60532,31.87712],[74.69459,31.05396],[73.39749,29.942772],[71.89694,27.961943],[70.82944,27.706383],[70.36832,28.020832],[69.58028,27.173328],[69.5061,26.754444],[70.18359,26.53611],[70.08804,25.982775],[70.66638,25.69833],[71.10582,24.416386],[70.01471,24.169718],[68.78305,24.332777],[68.74721,23.969994],[68.1978,23.766687],[67.49359,23.890831],[67.254166,24.746105],[66.64554,24.829163],[66.50638,25.402496],[64.65193,25.162773],[64.11388,25.453327],[61.61103,25.197647]]]},properties:{name:"Pakistan",iso2:"PK",iso3:"PAK"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[18.851246,49.517357],[18.57722,49.914444],[17.657776,50.108055],[16.341942,50.66111],[14.828333,50.86583],[15.036388,51.285553],[14.599443,51.818604],[14.640276,52.572495],[14.149166,52.862778],[14.275627,53.699066],[14.218887,53.86902],[14.225555,53.928604],[17.918888,54.82666],[18.836388,54.353333],[19.627258,54.463272],[19.651108,54.455826],[19.797007,54.43755],[22.785885,54.36384],[23.50404,53.947044],[23.94083,52.73221],[23.604633,51.527695],[24.111385,50.56694],[22.680828,49.572495],[22.558052,49.079437],[21.618889,49.436386],[20.074444,49.175278],[19.475555,49.6],[18.851246,49.517357]]]},properties:{name:"Poland",iso2:"PL",iso3:"POL"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-77.36667,8.675001],[-77.21556,7.937223],[-77.889725,7.228891],[-78.25723,8.101946],[-78.97862,9.142778],[-80.47362,8.212778],[-79.98973,7.516111],[-80.433334,7.244444],[-80.92529,7.250002],[-81.49695,7.69861],[-81.73862,8.1625],[-82.72168,8.317221],[-82.89885,8.025669],[-82.56357,9.562876],[-82.23695,8.997778],[-81.19612,8.780279],[-79.46306,9.568056],[-78.03557,9.230001],[-77.36667,8.675001]]]},properties:{name:"Panama",iso2:"PA",iso3:"PAN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-7.431854,37.253193],[-8.990278,37.02305],[-8.673334,38.41389],[-9.484446,38.710003],[-8.660833,40.68722],[-8.745008,41.9525],[-8.204723,41.87472],[-6.594166,41.95361],[-6.187222,41.57972],[-6.931667,41.01805],[-6.954792,39.026382],[-7.321112,38.449444],[-6.939167,38.17806],[-7.446945,37.699444],[-7.431854,37.253193]]]},properties:{name:"Portugal",iso2:"PT",iso3:"PRT"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[154.88245,-5.543333],[155.91858,-6.807777],[155.23996,-6.622499],[154.74438,-5.939779],[154.88245,-5.543333]]],[[[152.23523,-4.207222],[152.40582,-4.688889],[151.9708,-4.993332],[152.09607,-5.457222],[151.45941,-5.535833],[150.46857,-6.276112],[149.05692,-6.164165],[148.32309,-5.675377],[148.42859,-5.451111],[150.16443,-5.551388],[150.92441,-5.487221],[151.67609,-4.908054],[151.51166,-4.204445],[152.23523,-4.207222]]],[[[150.90652,-2.635944],[152.05582,-3.247778],[152.98969,-4.075832],[152.69165,-4.180555],[152.28247,-3.572777],[150.90652,-2.635944]]],[[[141.00702,-9.128468],[141.00247,-2.607084],[141.88998,-2.969999],[144.51166,-3.820833],[145.7355,-4.802776],[145.76639,-5.485277],[147.47687,-5.974192],[147.86942,-6.660833],[146.96136,-6.747221],[147.17859,-7.463888],[148.13525,-8.066111],[148.60413,-9.0825],[149.3147,-9.01889],[149.21997,-9.474722],[150.00888,-9.631388],[149.74774,-10.342777],[147.95245,-10.145834],[146.58664,-8.999165],[146.08969,-8.09111],[144.52054,-7.501944],[143.61191,-8.243889],[143.11023,-8.470278],[143.33163,-9.028334],[142.63889,-9.334723],[141.00702,-9.128468]]]]},properties:{name:"Papua New Guinea",iso2:"PG",iso3:"PNG"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-13.713139,12.677221],[-13.971035,12.154758],[-13.709167,11.715277],[-14.686945,11.509722],[-15.016848,10.956451],[-15.407223,11.184999],[-15.003889,11.974165],[-15.963335,11.734165],[-16.71777,12.322426],[-14.516945,12.679722],[-13.713139,12.677221]]]},properties:{name:"Guinea-Bissau",iso2:"GW",iso3:"GNB"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[51.215164,24.62089],[50.830956,24.749966],[51.042496,26.049442],[51.568054,25.908333],[51.611664,25.010277],[51.215164,24.62089]]]},properties:{name:"Qatar",iso2:"QA",iso3:"QAT"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[55.71,-20.998058],[55.674164,-21.37389],[55.21972,-21.027779],[55.71,-20.998058]]]},properties:{name:"Reunion",iso2:"RE",iso3:"REU"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[22.894804,47.95454],[24.919441,47.711662],[26.634995,48.257164],[28.119717,46.854404],[28.21484,45.448647],[29.664331,45.211803],[28.868324,44.943047],[28.583244,43.747765],[27.036427,44.14734],[25.43023,43.626778],[22.875275,43.8425],[22.681435,44.2247],[21.400398,44.780823],[21.51361,45.151108],[20.261024,46.114853],[21.176666,46.295555],[22.032497,47.530273],[22.894804,47.95454]]]},properties:{name:"Romania",iso2:"RO",iso3:"ROU"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[26.634995,48.257164],[27.755554,48.451385],[29.141937,47.98609],[29.18444,47.443047],[29.949997,46.814156],[30.11694,46.3861],[28.994434,46.478325],[28.971935,46.006653],[28.21484,45.448647],[28.119717,46.854404],[26.634995,48.257164]]]},properties:{name:"Republic of Moldova",iso2:"MD",iso3:"MDA"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[126.0486,9.231943],[126.58582,7.285002],[126.16527,6.881666],[125.85555,7.349722],[125.3772,6.719721],[125.26361,6.091665],[124.95694,5.851389],[124.18581,6.210554],[123.94859,6.823336],[124.2686,7.374445],[123.67665,7.812498],[122.62387,7.773054],[122.14999,6.905279],[121.9211,6.994165],[122.22331,7.962221],[122.92303,8.150831],[123.37915,8.727221],[123.81805,8.476942],[124.43221,8.615274],[124.80386,9.001665],[125.51471,9.006666],[126.0486,9.231943]]],[[[123.56387,10.794165],[123.13638,9.836111],[123.29637,9.229719],[123.01471,9.033888],[122.45277,9.973333],[122.85832,10.097498],[122.95248,10.894445],[123.56387,10.794165]]],[[[119.508575,11.335608],[119.71249,10.497499],[117.18581,8.325556],[119.4561,10.723608],[119.508575,11.335608]]],[[[122.22943,11.797777],[123.12859,11.174444],[121.94331,10.416388],[122.09888,11.699999],[122.22943,11.797777]]],[[[124.46388,12.520834],[125.29694,12.457499],[125.76027,11.011667],[125.26944,11.128054],[125.04248,11.747221],[124.38693,12.190275],[124.46388,12.520834]]],[[[120.72165,13.477777],[121.50221,13.14889],[121.55832,12.60111],[121.22054,12.230555],[120.30331,13.443609],[120.72165,13.477777]]],[[[121.25665,18.56611],[121.93665,18.269445],[122.53333,17.099443],[121.37886,15.33222],[121.73387,14.170832],[122.71332,14.338331],[123.34305,14.086943],[123.76277,13.061666],[123.32222,13.008612],[122.561,13.936567],[122.60748,13.163889],[121.75471,13.964445],[121.27943,13.593889],[120.6611,13.768332],[120.59221,14.231112],[120.95665,14.636946],[120.08611,14.785276],[119.78693,16.323053],[120.42192,16.155832],[120.57054,18.490831],[121.25665,18.56611]]]]},properties:{name:"Philippines",iso2:"PH",iso3:"PHL"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-66.99667,18.504997],[-65.60306,18.232498],[-67.187225,17.932499],[-66.99667,18.504997]]]},properties:{name:"Puerto Rico",iso2:"PR",iso3:"PRI"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[130.60437,42.421864],[131.31137,43.39222],[130.94998,44.841106],[131.86469,45.345547],[133.1222,45.128605],[133.90018,46.250317],[134.18246,47.323326],[134.76721,47.7075],[134.74075,48.26713],[133.08856,48.101665],[132.52109,47.710278],[130.98856,47.688602],[130.52164,48.607777],[130.67163,48.865],[127.52943,49.789165],[127.58607,50.20857],[126.09554,52.764442],[123.3822,53.526657],[120.86388,53.279716],[120.02916,52.76805],[120.71361,52.54472],[120.77666,52.115],[119.1386,50.394714],[119.21416,50.015278],[117.87471,49.520576],[116.71138,49.830467],[114.31303,50.284164],[113.09082,49.598602],[110.78859,49.14944],[108.57222,49.333603],[107.97713,49.943626],[106.66304,50.3386],[102.91859,50.31527],[102.32777,50.569717],[102.21887,51.333607],[98.93027,52.14361],[97.827774,51.001106],[98.2897,50.293884],[97.34082,49.73444],[94.63527,50.02444],[94.274994,50.569443],[92.32277,50.815],[87.8407,49.17295],[87.348206,49.09262],[86.61665,49.58721],[85.258606,49.591377],[85.014435,50.07583],[84.36304,50.21221],[83.456375,51.0025],[81.46805,50.742218],[80.687836,51.31472],[80.07796,50.758087],[77.908035,53.271107],[76.52165,53.99388],[74.42915,53.4786],[73.437195,53.436104],[73.763885,54.065544],[71.18553,54.103325],[71.27887,54.69027],[70.84332,55.301933],[69.18553,55.343884],[65.48332,54.638046],[65.216385,54.318886],[63.17222,54.18638],[62.547493,53.879433],[61.01416,53.947487],[61.184715,53.306656],[60.694153,52.680824],[61.061935,52.34249],[60.00222,51.95833],[61.68582,51.26583],[61.38138,50.783607],[60.04361,50.863327],[59.542496,50.478325],[58.33777,51.156097],[57.481934,50.864716],[56.510826,51.08333],[55.69249,50.532494],[53.428604,51.49166],[52.603325,51.45694],[52.338326,51.78221],[51.303047,51.479713],[50.7733,51.76918],[48.697487,50.591934],[48.796944,49.941933],[48.251663,49.869713],[47.52083,50.43638],[46.929436,49.86361],[47.062767,49.14277],[46.49916,48.417496],[47.122765,48.27166],[47.383324,47.68888],[48.20443,47.704987],[49.222527,46.346306],[47.569157,45.557487],[46.67971,44.523045],[47.350266,44.02665],[47.462215,43.019154],[48.583958,41.835773],[47.766933,41.196095],[46.45175,41.897057],[44.934708,42.760277],[43.911934,42.58332],[42.84999,43.179153],[40.253387,43.58252],[40.002968,43.379265],[38.76028,44.270267],[36.575275,45.18471],[37.591373,45.62748],[37.940266,46.025826],[37.734997,46.669163],[38.235825,47.10943],[38.30332,47.558594],[38.8536,47.860825],[39.796387,47.857216],[39.99888,48.29722],[40.139763,49.60105],[38.30777,50.073883],[37.458603,50.439713],[35.60665,50.36944],[35.371887,51.041435],[34.38221,51.26361],[34.419716,51.808884],[33.838882,52.360554],[31.783886,52.108047],[31.266941,53.02471],[32.741104,53.46305],[30.781387,54.79361],[30.926247,55.60257],[28.16801,56.150154],[27.372059,57.535637],[27.823051,57.87388],[27.426105,58.813606],[28.015831,59.4786],[28.080278,59.79639],[30.245829,59.975266],[27.807833,60.546406],[31.58893,62.914413],[29.993334,63.743607],[30.578054,64.221375],[29.636667,64.928055],[30.134165,65.71916],[29.074999,66.89583],[30.028612,67.69472],[28.693335,68.197495],[28.957342,69.05162],[30.854841,69.79231],[33.719154,69.331375],[35.974995,69.173035],[40.99222,67.716095],[41.21971,66.83777],[40.073326,66.27777],[38.607777,66.0522],[31.854998,67.15387],[34.84749,65.90109],[34.37777,65.37831],[34.787773,64.54776],[37.414993,63.803883],[36.439713,64.94275],[37.03221,65.20833],[38.408604,64.85887],[40.505833,64.53526],[39.75139,65.55081],[42.168327,66.522766],[43.299725,66.42221],[44.496387,66.907486],[43.75194,67.31888],[44.24583,68.27026],[45.90332,68.48221],[46.706944,67.813034],[45.382496,67.735535],[44.911938,67.37276],[46.600834,66.85332],[47.69972,66.986374],[48.591106,67.93498],[52.07472,68.54443],[53.59888,68.908035],[53.945827,68.399994],[57.2761,68.55582],[58.898335,68.99971],[59.811665,68.68193],[60.914436,68.90471],[60.140553,69.57416],[60.874435,69.8636],[64.15054,69.54193],[64.787766,69.14276],[67.11609,68.84276],[68.45972,68.97804],[68.101654,69.546646],[67.00055,69.69971],[67.33971,70.750275],[66.62303,71.05165],[68.465546,71.81889],[69.33388,72.94887],[72.83333,72.7086],[72.88193,72.28137],[71.802475,71.47249],[72.840546,70.865265],[72.4247,70.27026],[72.55386,68.976654],[73.64804,68.45776],[73.04082,67.72415],[71.41026,66.966934],[69.38611,66.50749],[72,66.21944],[73.84721,66.981094],[74.739975,67.69165],[74.33276,68.380264],[74.64055,68.76915],[73.74942,69.168045],[73.51639,69.755554],[74.31499,70.6736],[73.015274,71.421646],[74.95804,72.10942],[76.09749,71.92859],[78.53804,72.403595],[81.653046,71.70804],[82.95166,70.32054],[83.74553,70.45999],[83.14833,71.2361],[83.628586,71.62387],[82.192474,72.28305],[80.721375,72.52609],[80.509995,73.571655],[87.08693,73.85942],[86.99498,75.15138],[94.16193,75.94275],[95.743866,75.85054],[99.27693,76.21416],[103.10555,77.63193],[106.29193,77.36276],[107.5036,76.92221],[111.10387,76.755264],[113.24275,76.26221],[113.71748,75.4086],[108.1897,73.67026],[110.91432,73.696686],[113.47527,73.504166],[118.63443,73.571655],[119.81776,72.93581],[121.86581,72.96805],[124.72971,72.62637],[126.11775,72.26694],[127.6586,72.34749],[128.84744,71.60138],[131.13025,70.731094],[132.72803,71.941925],[133.67914,71.43332],[135.86496,71.63971],[139.93246,71.484985],[139.08524,72.23332],[141.02414,72.585815],[140.74884,72.889435],[147.13971,72.317215],[149.18524,72.22249],[152.5383,70.83777],[155.9372,71.09444],[159.05386,70.86914],[160.03802,70.40555],[159.72968,69.83472],[161.44608,69.385544],[164.01443,69.76749],[166.8605,69.49054],[170.61194,68.75633],[171.03192,69.042206],[170.4719,70.134155],[173.19193,69.77971],[176.11191,69.89055],[180,68.9801],[180,65.06891],[178.75555,64.682205],[178.36746,64.27388],[179.5611,62.62138],[179.06137,62.28472],[177.26553,62.57472],[172.71078,61.429996],[172.95609,61.302773],[170.64194,60.4175],[170.24884,59.90943],[169.21024,60.622765],[167.05026,60.323887],[166.34857,60.48638],[164.9972,60.129436],[163.63553,60.045547],[163.04477,59.01032],[161.93887,58.074444],[163.2136,57.836105],[162.73691,57.357777],[162.79135,56.791107],[163.35468,56.198605],[162.03693,56.061665],[161.71246,55.496944],[162.11218,54.761944],[160.00583,54.13916],[159.79166,53.514717],[160.05524,53.09361],[158.64471,52.894714],[158.27582,51.936653],[156.6683,50.88166],[155.54413,55.303604],[155.94885,56.6661],[156.97775,57.414436],[156.74884,57.72833],[158.2333,58.019444],[161.91443,60.42277],[163.65833,60.871937],[164.3594,62.712215],[163.26361,62.545],[162.95026,61.80638],[160.39136,61.025826],[159.24747,61.92222],[157.48663,61.803326],[154.23273,59.881935],[154.11414,59.45972],[152.87717,58.9175],[152.28775,59.226936],[149.59857,59.771378],[148.89804,59.239162],[143.92636,59.413322],[142.1597,59.06916],[140.68857,58.233883],[140.49634,57.823326],[135.15442,54.85944],[135.73663,54.570553],[136.81607,54.651382],[137.30798,54.114445],[138.55386,53.989433],[138.64194,54.295277],[139.74634,54.308887],[141.41913,53.290276],[141.19998,52.98638],[141.51416,52.213326],[140.46051,50.706657],[140.17581,48.448605],[135.12967,43.49888],[133.15137,42.682217],[132.31052,42.84444],[131.81052,43.325558],[131.22134,42.555824],[130.69742,42.29221],[130.60437,42.421864]]],[[[147.01831,75.33472],[150.95303,75.139435],[148.7044,74.759995],[147.01831,75.33472]]],[[[148.82526,45.33499],[146.84052,44.415546],[147.93274,45.421383],[148.82526,45.33499]]],[[[139.1908,76.07222],[141.35663,76.18054],[145.39471,75.51749],[143.70691,74.93858],[139.64694,74.97916],[136.86136,75.34915],[137.44998,75.95471],[139.1908,76.07222]]],[[[143.66193,49.312214],[143.01776,49.139717],[142.5347,48.002777],[143.08829,46.801662],[142.70969,46.74416],[142.07745,45.89138],[141.81274,46.586105],[142.18887,47.975266],[141.85245,48.75028],[142.26721,51.120274],[141.63803,52.315826],[141.76694,53.37138],[142.79831,53.69749],[143.2908,53.130276],[143.2208,51.521378],[144.75165,48.641937],[143.66193,49.312214]]],[[[142.15497,73.889984],[143.50583,73.23027],[139.6536,73.40221],[142.15497,73.889984]]],[[[127.29637,73.51721],[129.11829,73.09471],[126.58943,72.53581],[126.65942,73.41693],[127.29637,73.51721]]],[[[124.60443,73.72859],[126.715,73.08443],[126.12553,72.30054],[123.65887,73.168045],[124.60443,73.72859]]],[[[102.97276,79.331375],[105.41443,78.5647],[99.34137,78.01999],[101.55081,79.34833],[102.97276,79.331375]]],[[[97.61499,80.16554],[100.01527,79.82416],[99.93887,78.95332],[97.3047,78.84526],[94.77721,79.08443],[93.87804,79.60138],[94.936646,80.09943],[97.61499,80.16554]]],[[[95.9586,81.21721],[97.96944,80.715546],[97.158875,80.2336],[93.75305,79.99582],[91.889435,80.45776],[93.0686,80.99443],[95.9586,81.21721]]],[[[68.2661,76.9586],[68.8611,76.54193],[61.287773,75.326096],[59.16944,74.71971],[59.14722,74.43858],[56.75889,73.24693],[54.97166,73.4422],[56.29055,74.49136],[55.571667,74.65971],[57.737213,75.323044],[58.00139,75.67415],[60.750004,76.0061],[61.066383,76.27388],[64.10971,76.31137],[68.2661,76.9586]]],[[[55.33167,73.32999],[55.22102,71.92561],[56.228046,71.19414],[57.639996,70.72638],[55.186317,70.55206],[53.46361,70.81387],[53.355827,71.567215],[51.79722,71.47499],[53.21944,72.64722],[53.15332,73.15582],[55.33167,73.32999]]],[[[50.305267,69.16193],[48.912766,68.7361],[48.216106,68.89499],[48.94332,69.50694],[50.305267,69.16193]]],[[[22.785885,54.36384],[19.797007,54.43755],[19.969442,54.9575],[20.942833,55.2872],[20.984814,55.27655],[21.263935,55.248985],[22.842495,54.896942],[22.785885,54.36384]]],[[[-179.62613,68.90636],[-175.46362,67.70747],[-174.83029,67.38274],[-174.46194,66.30107],[-173.35251,66.83887],[-171.7261,66.955246],[-170.64447,66.2372],[-171.11557,65.476364],[-173.20087,64.78609],[-173.1914,64.254425],[-175.44888,64.784424],[-176.07806,65.47026],[-179.315,65.53609],[-180,65.06891],[-180,68.9801],[-179.62613,68.90636]]],[[[-178.5686,71.56415],[-177.43945,71.22693],[-180,70.99721],[-180,71.53584],[-178.5686,71.56415]]]]},properties:{name:"Russia",iso2:"RU",iso3:"RUS"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[29.02444,-2.744722],[28.868332,-2.394444],[29.596943,-1.385834],[29.974998,-1.464445],[30.48222,-1.063334],[30.894165,-2.076111],[30.57333,-2.399167],[29.95222,-2.309445],[29.85083,-2.759722],[29.02444,-2.744722]]]},properties:{name:"Rwanda",iso2:"RW",iso3:"RWA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[46.546944,29.104198],[47.45999,28.99944],[47.68888,28.538883],[48.416588,28.545277],[48.83888,27.619719],[50.159164,26.656668],[49.993893,26.019999],[50.830956,24.749966],[51.215164,24.62089],[51.58361,24.25972],[52.58333,22.93889],[55.199165,22.69972],[55.666107,21.999723],[55,20],[51.99929,18.999344],[48.766388,18.266388],[46.333054,15.616945],[46.33333,16.666666],[44.4675,17.411942],[43.30944,17.457222],[43.20611,16.672222],[42.78968,16.377504],[40.759995,19.760279],[39.176945,21.099165],[39.06278,22.583334],[38.452778,23.7825],[37.44167,24.37139],[37.235554,25.1825],[35.160557,28.056665],[34.571667,28.088888],[34.961388,29.360832],[36.07,29.188889],[36.743607,29.864721],[37.502777,30.00222],[38.00139,30.504168],[37.005272,31.505554],[39.196743,32.15494],[40.41333,31.94833],[42.085,31.11166],[44.72166,29.19833],[46.546944,29.104198]]]},properties:{name:"Saudi Arabia",iso2:"SA",iso3:"SAU"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-62.701668,17.33694],[-62.625282,17.220833],[-62.86389,17.37083],[-62.701668,17.33694]]]},properties:{name:"Saint Kitts and Nevis",iso2:"KN",iso3:"KNA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[55.53527,-4.763056],[55.376106,-4.627223],[55.45916,-4.55139],[55.53527,-4.763056]]]},properties:{name:"Seychelles",iso2:"SC",iso3:"SYC"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[31.297504,-22.414764],[32.016106,-24.459446],[31.96851,-25.95784],[31.33083,-25.751392],[30.902048,-26.305254],[30.818886,-26.810558],[31.161663,-27.203056],[31.9875,-27.316113],[32.1334,-26.839626],[32.890427,-26.847145],[32.390274,-28.53778],[31.325832,-29.390835],[30.023888,-31.281113],[27.899998,-33.040558],[26.530552,-33.753334],[25.701942,-34.03195],[22.544998,-34.005005],[20,-34.822002],[18.40472,-34.30278],[18.441109,-33.706673],[17.8475,-32.830833],[18.292221,-32.62445],[18.27861,-31.89278],[16.48959,-28.578178],[17.06361,-28.028614],[17.40472,-28.713612],[19.123055,-28.962223],[19.99612,-28.421448],[20.000942,-24.765408],[20.811386,-25.883335],[20.642498,-26.828056],[21.667221,-26.864445],[22.62481,-26.111565],[23.014832,-25.299725],[24.6772,-25.827824],[25.50972,-25.67778],[25.871387,-24.744446],[26.845276,-24.264446],[26.95919,-23.752075],[28.298332,-22.609447],[29.373623,-22.19241],[31.297504,-22.414764]],[[28.565552,-28.61],[27.011108,-29.625278],[27.564617,-30.404911],[28.079937,-30.650528],[28.377777,-30.16028],[29.168888,-29.91389],[29.430832,-29.278614],[28.565552,-28.61]]]},properties:{name:"South Africa",iso2:"ZA",iso3:"ZAF"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[20.000942,-24.765408],[19.996666,-22.005001],[20.991943,-21.996948],[20.993286,-18.318417],[23.297108,-17.995949],[23.615578,-18.48507],[24.3625,-17.948612],[25.264431,-17.80225],[26.166111,-19.527779],[27.219997,-20.091667],[27.713165,-20.506432],[28.015831,-21.566113],[29.060555,-21.798058],[29.373623,-22.19241],[28.298332,-22.609447],[26.95919,-23.752075],[26.845276,-24.264446],[25.871387,-24.744446],[25.50972,-25.67778],[24.6772,-25.827824],[23.014832,-25.299725],[22.62481,-26.111565],[21.667221,-26.864445],[20.642498,-26.828056],[20.811386,-25.883335],[20.000942,-24.765408]]]},properties:{name:"Botswana",iso2:"BW",iso3:"BWA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-16.52768,16.06025],[-16.280834,16.519722],[-14.345278,16.63861],[-12.244833,14.764385],[-12.057222,13.664721],[-11.378056,12.988054],[-11.373058,12.407774],[-12.345404,12.301748],[-13.713139,12.677221],[-14.516945,12.679722],[-16.71777,12.322426],[-16.750874,13.059977],[-15.809723,13.159721],[-15.070278,13.826387],[-16.56567,13.589998],[-17.148308,14.61392],[-16.52768,16.06025]]]},properties:{name:"Senegal",iso2:"SN",iso3:"SEN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[13.718655,46.52661],[14.544998,46.407494],[16.111805,46.86972],[16.607872,46.476234],[15.654722,46.219444],[15.697777,45.844162],[15.174458,45.42582],[14.601387,45.675278],[13.59174,45.481697],[13.716944,45.596107],[13.383055,46.29722],[13.718655,46.52661]]]},properties:{name:"Slovenia",iso2:"SI",iso3:"SVN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-10.266651,8.488377],[-11.492331,6.927091],[-12.958612,7.9],[-13.29561,9.032143],[-12.456112,9.888332],[-11.214445,9.997499],[-10.266651,8.488377]]]},properties:{name:"Sierra Leone",iso2:"SL",iso3:"SLE"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[103.99054,1.383291],[103.64081,1.315555],[103.71359,1.429444],[103.99054,1.383291]]]},properties:{name:"Singapore",iso2:"SG",iso3:"SGP"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[42.94409,11.002438],[43.24922,11.469534],[44.278328,10.447777],[44.89833,10.420555],[45.759995,10.875277],[46.44805,10.688889],[47.398888,11.179998],[50.08555,11.511944],[50.76944,11.979166],[51.27722,11.836666],[50.83625,9.432688],[47.954437,4.463888],[46.014717,2.427778],[43.48861,.649999],[41.55816,-1.674868],[40.99833,-.866111],[40.986595,2.829956],[41.905167,3.980322],[43.686386,4.891944],[44.95083,4.902499],[47.988243,8.004107],[47.01194,8.00111],[44.01055,9.007221],[42.848053,10.22361],[42.663055,10.6325],[42.94409,11.002438]]]},properties:{name:"Somalia",iso2:"SO",iso3:"SOM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-7.431854,37.253193],[-7.446945,37.699444],[-6.939167,38.17806],[-7.321112,38.449444],[-6.954792,39.026382],[-6.931667,41.01805],[-6.187222,41.57972],[-6.594166,41.95361],[-8.204723,41.87472],[-8.745008,41.9525],[-9.209446,43.152775],[-7.855555,43.759995],[-7.044819,43.490402],[-1.780877,43.359924],[-.562222,42.781387],[1.445833,42.601944],[1.723611,42.509438],[3.177655,42.436806],[3.17528,41.867496],[.964445,41.03278],[-.338055,39.435555],[.207224,38.73221],[-.511667,38.325],[-.715555,37.60694],[-1.64361,37.372772],[-2.129166,36.731384],[-4.398333,36.72222],[-5.334508,36.16256],[-5.355799,36.163307],[-6.0375,36.18028],[-6.355555,36.860832],[-7.431854,37.253193]]]},properties:{name:"Spain",iso2:"ES",iso3:"ESP"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-60.954727,13.709444],[-61.079445,13.879999],[-60.930283,14.109444],[-60.954727,13.709444]]]},properties:{name:"Saint Lucia",iso2:"LC",iso3:"LCA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[24.047173,8.693076],[24.537415,8.917538],[25.069605,10.27376],[25.790632,10.411099],[26.1522,9.826436],[26.752007,9.466893],[27.11252,9.638567],[27.97089,9.398224],[28.966597,9.398224],[29.99664,10.290927],[30.837841,9.707237],[31.352861,9.810241],[32.40007,11.080626],[32.314236,11.681484],[32.74342,12.248008],[33.20694,12.179338],[33.086765,11.441141],[33.20694,10.720112],[33.72196,10.325262],[33.824963,9.484061],[34.19552,9.47239],[34.120552,8.577221],[33.252777,8.458611],[32.991104,7.924999],[33.711388,7.660277],[34.70472,6.677777],[35.30194,5.378055],[35.821663,5.32861],[35.94055,4.622499],[34.38819,4.609682],[33.996666,4.222777],[33.516937,3.752222],[33.016663,3.888611],[32.19333,3.511389],[31.176666,3.795278],[30.858818,3.493394],[29.64333,4.643611],[28.363052,4.29],[27.455276,5.016388],[27.142776,5.771944],[26.437496,6.077777],[26.404999,6.646388],[25.206944,7.497499],[25.25333,7.850555],[24.192497,8.30361],[24.20111,8.686943],[24.047173,8.693076]]]},properties:{name:"South Sudan",iso2:"SS",iso3:"SSD"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[24.167007,65.814026],[22.644722,65.90555],[21.03611,64.82443],[21.585,64.43971],[20.777775,63.869164],[19.428055,63.54944],[18.048054,62.601387],[17.140274,61.71972],[17.150555,60.945],[19.081944,59.75972],[17.941109,59.33555],[17.894722,58.858887],[16.193607,58.627495],[16.824718,58.19944],[16.693333,57.469162],[15.865555,56.092216],[14.696665,56.16111],[14.193546,55.386147],[13.059721,55.693054],[12.451666,56.297775],[12.887499,56.63833],[11.698889,57.69722],[11.88611,58.211937],[11.201387,58.399437],[11.429192,58.98764],[11.81596,59.8461],[12.494165,60.111107],[12.209999,61.002495],[12.85611,61.362495],[12.124443,61.728607],[12.295832,62.261665],[11.936388,63.27222],[14.493055,65.3136],[14.504999,66.13249],[16.353886,67.01778],[16.08583,67.41165],[16.726944,67.899155],[17.884163,67.94554],[18.090832,68.50777],[19.937775,68.337494],[20.580929,69.0603],[23.666111,67.941666],[23.43111,67.465546],[24.007774,66.80055],[23.661942,66.31221],[24.167007,65.814026]]]},properties:{name:"Sweden",iso2:"SE",iso3:"SWE"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[42.355614,37.106926],[41.290276,36.355553],[41.003876,34.419434],[38.7947,33.377594],[36.837776,32.313606],[35.648888,32.685272],[35.623634,33.245728],[36.62374,34.204994],[36.46,34.635277],[35.97277,34.6475],[35.733887,35.581665],[35.92244,35.926994],[36.69027,36.236107],[36.659943,36.83371],[39.229996,36.665276],[40.77082,37.11805],[42.355614,37.106926]]]},properties:{name:"Syrian Arab Republic",iso2:"SY",iso3:"SYR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[9.566724,47.54045],[9.533569,47.274544],[9.474637,47.057457],[9.598635,47.063835],[10.471235,46.871353],[10.129999,46.22722],[9.281944,46.495827],[8.436388,46.463333],[7.855742,45.919052],[7.038054,45.93194],[6.791389,46.434166],[5.966666,46.209442],[6.990555,47.497215],[7.588268,47.58448],[9.566724,47.54045]]]},properties:{name:"Switzerland",iso2:"CH",iso3:"CHE"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-60.923058,10.797222],[-61.008057,10.140554],[-61.458336,10.278332],[-61.662224,10.709166],[-60.923058,10.797222]]]},properties:{name:"Trinidad and Tobago",iso2:"TT",iso3:"TTO"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[100.09137,20.348606],[100.58046,20.157768],[100.5036,19.526665],[101.2811,19.562218],[100.92137,17.567219],[101.16277,17.459995],[102.08939,18.214983],[102.68359,17.819996],[103.39722,18.434994],[103.98553,18.321663],[104.71832,17.50333],[104.74721,16.528332],[105.63777,15.659721],[105.5361,14.563332],[105.2106,14.349649],[103.18054,14.329721],[102.3772,13.573889],[102.91609,11.635851],[102.06026,12.567497],[100.85387,12.682775],[100.97635,13.462809],[100.06667,13.419998],[100.02138,12.194164],[99.149155,10.365553],[99.23749,9.254166],[99.84776,9.300831],[100.42108,7.159444],[101.54137,6.851388],[102.09523,6.236138],[101.13969,5.631943],[101.11552,6.248888],[100.21498,6.71111],[100.12711,6.424948],[98.65637,8.38361],[98.274155,8.274443],[98.74275,10.348608],[99.66165,11.826942],[99.1122,13.055832],[99.173965,13.727781],[98.201096,15.074999],[98.6897,16.284996],[97.346375,18.562496],[97.774704,18.569996],[98.04999,19.807499],[98.99553,19.780552],[99.522766,20.352776],[100.09137,20.348606]]]},properties:{name:"Thailand",iso2:"TH",iso3:"THA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[74.91574,37.237328],[73.307205,37.462753],[71.6772,36.67601],[71.42943,37.07583],[71.591934,37.90262],[70.96721,38.472115],[69.51582,37.580826],[68.058014,36.932526],[67.77988,37.18582],[68.384155,38.19554],[68.12387,38.98555],[67.441956,39.48358],[68.54027,39.55471],[69.009995,40.089714],[70.423874,41.049118],[70.98204,40.244843],[70.49803,39.90683],[69.54082,40.13138],[69.30609,39.539436],[70.99776,39.40094],[71.47304,39.6213],[72.2486,39.191856],[73.655685,39.454826],[73.817764,38.607716],[74.85664,38.470486],[74.91574,37.237328]]]},properties:{name:"Tajikistan",iso2:"TJ",iso3:"TJK"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-171.84308,-9.207502],[-171.86053,-9.206667],[-171.85388,-9.168058],[-171.84308,-9.207502]]]},properties:{name:"Tokelau",iso2:"TK",iso3:"TKL"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-175.14584,-21.178059],[-175.35947,-21.09917],[-175.04724,-21.139442],[-175.14584,-21.178059]]]},properties:{name:"Tonga",iso2:"TO",iso3:"TON"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[1.635404,6.218721],[1.198891,6.100546],[.525,6.947778],[.727222,8.321388],[.382735,8.760756],[.2175,9.457222],[.368333,10.259443],[-.149762,11.13854],[.91797,10.996399],[.776667,10.376665],[1.355,9.995277],[1.635404,6.218721]]]},properties:{name:"Togo",iso2:"TG",iso3:"TGO"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[6.523889,.018333],[6.467222,.259722],[6.687778,.402222],[6.523889,.018333]]]},properties:{name:"Sao Tome and Principe",iso2:"ST",iso3:"STP"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[11.526081,33.171135],[11.567499,32.442215],[10.287222,31.694164],[10.21361,30.730831],[9.537113,30.23439],[9.055277,32.1],[8.34861,32.533333],[7.492499,33.887497],[8.251665,34.64444],[8.183611,36.524162],[8.62203,36.94137],[9.672499,37.33805],[10.252499,37.186386],[10.455276,36.12333],[11.128887,35.235832],[10.005833,34.16694],[10.331944,33.70027],[11.048611,33.616943],[11.526081,33.171135]]]},properties:{name:"Tunisia",iso2:"TN",iso3:"TUN"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[41.53156,41.523876],[42.82749,41.58499],[43.46077,41.11296],[43.751938,40.739998],[43.657494,40.108597],[44.347214,40.023888],[44.778862,39.706383],[44.81304,39.630814],[44.034157,39.384995],[44.484154,38.345543],[44.78734,37.14971],[44.11638,37.316376],[42.790825,37.38472],[42.355614,37.106926],[40.77082,37.11805],[39.229996,36.665276],[36.659943,36.83371],[36.69027,36.236107],[35.92244,35.926994],[35.783875,36.312485],[34.65943,36.805275],[33.9886,36.27777],[32.808884,36.02555],[31.046661,36.84915],[30.623333,36.850822],[30.40694,36.203606],[29.677216,36.118332],[28.328606,37.03972],[27.252499,36.9675],[27.267773,37.955544],[26.27583,38.264435],[27.064442,38.874435],[26.067219,39.483047],[26.707222,40.384995],[28.795277,40.551384],[29.166111,41.22666],[31.23111,41.088875],[33.333878,42.020264],[35.09693,41.961655],[35.506386,41.638054],[36.0511,41.691933],[36.429153,41.242775],[38.36138,40.90943],[40.149994,40.920273],[41.53156,41.523876]]],[[[28.013054,41.982216],[28.09055,41.631386],[29.039162,41.057213],[27.50972,40.983597],[26.826939,40.594437],[26.04472,40.735825],[26.633884,41.35444],[26.361095,41.711052],[27.394997,42.00804],[28.013054,41.982216]]]]},properties:{name:"Turkey",iso2:"TR",iso3:"TUR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[179.22237,-8.554146],[179.2037,-8.462443],[179.2311,-8.50492],[179.22237,-8.554146]]]},properties:{name:"Tuvalu",iso2:"TV",iso3:"TUV"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[66.537735,37.366383],[65.70888,37.538605],[64.798035,37.124992],[64.5036,36.28055],[63.11944,35.86194],[63.10527,35.45083],[62.30916,35.141666],[61.276558,35.607246],[61.15721,36.649994],[60.333054,36.656097],[59.338882,37.53916],[57.45027,37.939156],[57.21221,38.281937],[55.442764,38.086105],[54.681107,37.443604],[53.90564,37.350853],[53.983883,38.91583],[52.934715,39.990547],[52.72193,40.4461],[52.918606,41.08167],[53.746387,40.615273],[54.733883,41.102222],[54.07277,41.47555],[53.803883,42.12388],[52.44007,41.740936],[53.015,42.138885],[54.17305,42.33721],[55.45694,41.28666],[56.00096,41.328453],[57.044716,41.260277],[56.98694,41.89305],[58.164436,42.651936],[58.78055,42.658043],[60.014442,42.21749],[60.140274,41.381104],[61.87416,41.12555],[62.5511,39.93416],[64.383026,38.953125],[66.643875,38.003056],[66.537735,37.366383]]]},properties:{name:"Turkmenistan",iso2:"TM",iso3:"TKM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[33.920273,-1.001111],[37.602776,-2.995833],[37.61361,-3.504167],[39.203026,-4.669618],[38.776382,-6.045556],[39.547882,-6.994313],[39.274437,-7.579167],[39.38777,-8.9025],[39.826385,-9.993057],[40.436813,-10.478174],[39.26805,-11.168056],[37.941383,-11.285002],[37.462044,-11.727329],[36.18972,-11.706667],[35.838333,-11.414722],[34.96673,-11.572111],[34.32527,-9.732779],[32.9404,-9.405077],[31.041111,-8.590279],[30.77124,-8.192247],[29.550278,-6.295279],[29.423885,-4.448056],[30.026108,-4.269444],[30.835,-3.256945],[30.4175,-2.861945],[30.57333,-2.399167],[30.894165,-2.076111],[30.48222,-1.063334],[31.67722,-.999722],[33.920273,-1.001111]]]},properties:{name:"United Republic of Tanzania",iso2:"TZ",iso3:"TZA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[33.996666,4.222777],[34.463333,3.671389],[35.00972,1.895278],[33.90722,.103056],[33.920273,-1.001111],[31.67722,-.999722],[30.48222,-1.063334],[29.974998,-1.464445],[29.596943,-1.385834],[29.960552,.825555],[31.302776,2.121388],[30.729721,2.448055],[30.858818,3.493394],[31.176666,3.795278],[32.19333,3.511389],[33.016663,3.888611],[33.516937,3.752222],[33.996666,4.222777]]]},properties:{name:"Uganda",iso2:"UG",iso3:"UGA"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-6.266975,54.099834],[-7.030834,54.41777],[-7.559444,54.12694],[-8.159445,54.44194],[-7.252506,55.0706],[-6.353333,55.23778],[-5.429722,54.483604],[-6.266975,54.099834]]],[[[-4.153334,53.225555],[-3.1075,53.551666],[-3.634167,54.511944],[-3.023056,54.97055],[-5.174166,55.00055],[-4.613333,55.494995],[-5.303333,55.850555],[-6.235001,56.719166],[-5.399723,57.105827],[-5.816668,57.821667],[-5.004723,58.62333],[-3.025555,58.647503],[-3.208611,58.304443],[-4.392221,57.905273],[-4.435833,57.575],[-2.075556,57.699444],[-1.773333,57.458054],[-2.527222,56.57861],[-2.631111,56.05472],[-1.633888,55.58083],[-1.297499,54.763615],[-.074999,54.11194],[.341669,53.095837],[1.282225,52.9275],[1.749445,52.45583],[.950556,51.606384],[.975,50.93194],[.242224,50.738052],[-1.154722,50.844166],[-2.43445,50.541794],[-2.924723,50.73194],[-3.716667,50.20667],[-4.379999,50.363888],[-5.193056,49.955276],[-5.7125,50.053604],[-4.226389,51.189163],[-5.246944,51.73027],[-4.130833,52.33472],[-4.153334,53.225555]]]]},properties:{name:"United Kingdom",iso2:"GB",iso3:"GBR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[29.664331,45.211803],[28.21484,45.448647],[28.971935,46.006653],[28.994434,46.478325],[30.11694,46.3861],[29.949997,46.814156],[29.18444,47.443047],[29.141937,47.98609],[27.755554,48.451385],[26.634995,48.257164],[24.919441,47.711662],[22.894804,47.95454],[22.151442,48.41192],[22.558052,49.079437],[22.680828,49.572495],[24.111385,50.56694],[23.604633,51.527695],[24.396664,51.886658],[25.77583,51.939156],[30.551414,51.251846],[30.943096,52.07379],[31.783886,52.108047],[33.838882,52.360554],[34.419716,51.808884],[34.38221,51.26361],[35.371887,51.041435],[35.60665,50.36944],[37.458603,50.439713],[38.30777,50.073883],[40.139763,49.60105],[39.99888,48.29722],[39.796387,47.857216],[38.8536,47.860825],[38.30332,47.558594],[38.235825,47.10943],[35.907204,46.651093],[34.46054,45.767212],[35.126656,45.326096],[36.637215,45.3761],[36.439713,45.065536],[35.515266,45.116096],[33.955544,44.381104],[33.366936,44.579163],[33.54194,45.11193],[32.480537,45.39582],[33.771935,45.92054],[33.61138,46.147217],[31.791943,46.28305],[30.832771,46.548325],[29.664331,45.211803]]]},properties:{name:"Ukraine",iso2:"UA",iso3:"UKR"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-155.00558,19.328882],[-155.85947,19.032778],[-155.86444,20.269163],[-155.15863,19.962496],[-155.00558,19.328882]]],[[[-67.20654,45.18304],[-66.96889,44.83111],[-68.10861,44.460278],[-68.79527,44.57972],[-69.067505,44.063328],[-70.1725,43.78055],[-70.72917,43.122765],[-70.58057,42.651936],[-71.04445,42.311108],[-70.32472,41.711384],[-71.50528,41.36694],[-72.90639,41.286114],[-73.99749,40.713463],[-74.0764,39.77694],[-74.89278,39.16777],[-75.043884,38.42166],[-75.64404,37.961178],[-75.956665,38.648605],[-76.3811,37.273884],[-75.98999,36.91388],[-75.720276,35.81444],[-76.14917,35.33694],[-77.42888,34.74194],[-77.93083,33.927773],[-78.8275,33.73027],[-79.38194,33.009724],[-80.67166,32.521664],[-80.67,32.214157],[-81.49695,31.125555],[-81.25528,29.796667],[-80.60222,28.6075],[-80.75557,28.41583],[-80.033325,26.786665],[-80.39862,25.184721],[-80.91528,25.25139],[-81.33667,25.804998],[-81.73659,25.959444],[-82.65527,27.461664],[-82.6311,28.884996],[-83.66945,29.906107],[-84.207504,30.105555],[-85.35417,29.676664],[-85.63394,30.10444],[-86.263336,30.496664],[-87.75639,30.285276],[-89.66722,30.167776],[-89.67639,29.52389],[-90.206665,29.091944],[-91.24695,29.240831],[-91.841675,29.830278],[-92.308334,29.53972],[-93.84029,29.704165],[-94.88806,29.375555],[-95.14084,29.0575],[-95.985825,28.649164],[-96.64168,28.719717],[-97.18472,27.827497],[-97.55943,26.836111],[-97.14074,25.966429],[-99.10474,26.435],[-99.505005,27.570276],[-101.405014,29.77278],[-102.30585,29.889444],[-103.375,29.023611],[-104.54001,29.67111],[-104.90056,30.572779],[-106.40085,31.750277],[-108.20862,31.783335],[-108.20834,31.333055],[-111.04584,31.333055],[-114.80983,32.50699],[-114.71909,32.718456],[-117.122375,32.535336],[-117.48083,33.327496],[-118.53473,34.05083],[-120.62027,34.57083],[-120.61417,35.135826],[-121.86749,36.312492],[-121.79639,36.879436],[-122.99707,38.00511],[-123.10472,38.461105],[-123.70361,38.932495],[-123.77583,39.717213],[-124.33223,40.26611],[-124.03999,41.431107],[-124.52444,42.866104],[-124.13834,43.3711],[-123.95195,46.181107],[-123.75256,46.69307],[-124.16194,46.941105],[-124.71584,48.39527],[-122.75111,48.161102],[-122.4375,48.598045],[-122.7603,48.999435],[-95.154175,48.999435],[-94.605835,48.724438],[-92.953064,48.62332],[-91.418335,48.041107],[-90.86861,48.237495],[-89.35666,47.979713],[-88.36806,48.312214],[-84.85695,46.902218],[-84.565,46.46639],[-82.54306,45.355827],[-82.13028,43.585266],[-82.52139,42.61888],[-83.16861,42.046104],[-82.696655,41.68388],[-78.98694,42.819996],[-79.18472,43.46555],[-78.72472,43.629436],[-76.80194,43.63361],[-74.99083,44.986656],[-70.8786,45.238605],[-69.2325,47.471375],[-67.795,47.069996],[-67.799164,45.701103],[-67.20654,45.18304]]],[[[-133.48859,56.33694],[-132.14417,55.48055],[-132.64139,55.25028],[-133.37222,55.620544],[-133.48859,56.33694]]],[[[-153.11694,57.95],[-153.0228,57.473602],[-153.54999,56.983047],[-154.80112,57.286114],[-154.20721,57.666664],[-153.11694,57.95]]],[[[-135.74277,58.256104],[-134.92166,57.756947],[-135.83084,57.385826],[-136.41223,57.815826],[-135.74277,58.256104]]],[[[-166.10971,60.39916],[-166.19305,59.754436],[-167.41806,60.189426],[-166.10971,60.39916]]],[[[-171.46558,63.606663],[-170.30002,63.694157],[-168.70087,63.290546],[-169.66614,62.943317],[-171.46558,63.606663]]],[[[-141.00299,69.642365],[-140.99554,60.307217],[-139.1889,60.088882],[-137.59082,59.238605],[-137.47806,58.90721],[-135.4736,59.801933],[-133.43,58.459164],[-131.82416,56.596943],[-130.01508,55.909184],[-129.99054,55.281666],[-130.68613,54.761944],[-131.01028,56.106384],[-131.76974,56.196938],[-134.15417,58.19777],[-136.0275,58.38722],[-136.65417,58.215275],[-139.28555,59.571384],[-140.40335,59.698048],[-141.39084,60.138603],[-143.92334,59.99416],[-146.26114,60.64805],[-147.54666,61.154434],[-148.69974,60.789722],[-147.93695,60.462215],[-148.43582,59.948875],[-150.54169,59.59166],[-150.9075,59.243324],[-151.98056,59.28055],[-151.3039,60.38555],[-152.57721,60.064713],[-154.26083,59.14222],[-153.26779,58.848602],[-154.23361,58.131104],[-156.48999,57.33111],[-156.54861,56.97749],[-158.42307,56.44388],[-158.6011,56.188046],[-162.5625,54.955273],[-163.18445,55.139717],[-161.79999,55.88666],[-160.5747,55.986656],[-160.34695,56.285557],[-158.64056,56.76111],[-158.6489,57.053326],[-157.70667,57.64333],[-157.55362,58.382496],[-156.77917,59.151382],[-158.89752,58.39555],[-160.32666,59.059715],[-161.56583,59.103607],[-162.52167,59.992767],[-164.06528,59.824165],[-165.4253,60.555267],[-165.1503,60.928047],[-166.19778,61.59471],[-165.24722,62.4461],[-164.47916,62.74583],[-164.41055,63.21194],[-163.11166,63.051933],[-162.31195,63.541107],[-161.15167,63.5125],[-160.7775,63.868603],[-161.52917,64.41887],[-162.79028,64.336105],[-166.12137,64.57471],[-168.1311,65.66554],[-164.3536,66.59471],[-163.6564,66.07054],[-161.91,66.27443],[-161.50113,66.97916],[-163.73248,67.1136],[-164.12415,67.609985],[-166.82779,68.350815],[-166.21582,68.88304],[-163.6453,69.10693],[-162.11887,70.15166],[-160.19861,70.47165],[-159.66806,70.798035],[-157.97943,70.837494],[-156.44696,71.26361],[-154.24387,70.779434],[-152.2525,70.835266],[-151.9661,70.44359],[-149.17471,70.490814],[-144.95221,69.96832],[-143.28058,70.11832],[-141.00299,69.642365]]]]},properties:{name:"United States",iso2:"US",iso3:"USA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-2.685561,9.481817],[-3.633611,9.954443],[-4.704445,9.698055],[-5.51985,10.436272],[-5.273056,11.843887],[-4.4175,12.300831],[-4.337223,13.121666],[-3.964253,13.50383],[-3.437675,13.166498],[-3.2575,13.696665],[-2.879167,13.655554],[-2.474722,14.287498],[-.725278,15.082777],[.235048,14.915068],[.602222,13.703888],[.989167,13.047222],[1.578333,12.629999],[2.1425,12.694443],[2.397925,11.896152],[2.014722,11.422499],[1.435278,11.458887],[.91797,10.996399],[-.149762,11.13854],[-.618333,10.911665],[-2.834048,11.002007],[-2.685561,9.481817]]]},properties:{name:"Burkina Faso",iso2:"BF",iso3:"BFA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-57.608,-30.184925],[-56.811394,-30.105278],[-56.008923,-31.079794],[-55.581947,-30.845837],[-53.879723,-31.967781],[-53.093056,-32.72973],[-53.52278,-33.14778],[-53.3743,-33.74067],[-54.145004,-34.671394],[-56.320282,-34.91056],[-57.117783,-34.462227],[-57.84028,-34.494728],[-58.40278,-33.929726],[-58.19924,-32.45031],[-57.608,-30.184925]]]},properties:{name:"Uruguay",iso2:"UY",iso3:"URY"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[56.00096,41.328453],[55.99749,45.001106],[58.569717,45.571106],[62.02511,43.484787],[64.931366,43.73777],[65.82193,42.877213],[66.02916,42.00305],[66.52638,42.00305],[66.719986,41.174995],[67.93553,41.183327],[68.45526,40.59777],[69.056366,41.379433],[70.97081,42.25467],[70.187195,41.52829],[71.418045,41.118553],[73.173035,40.822998],[71.71054,40.145767],[70.98204,40.244843],[70.423874,41.049118],[69.009995,40.089714],[68.54027,39.55471],[67.441956,39.48358],[68.12387,38.98555],[68.384155,38.19554],[67.77988,37.18582],[66.537735,37.366383],[66.643875,38.003056],[64.383026,38.953125],[62.5511,39.93416],[61.87416,41.12555],[60.140274,41.381104],[60.014442,42.21749],[58.78055,42.658043],[58.164436,42.651936],[56.98694,41.89305],[57.044716,41.260277],[56.00096,41.328453]]]},properties:{name:"Uzbekistan",iso2:"UZ",iso3:"UZB"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.173058,13.1325],[-61.281395,13.207777],[-61.177223,13.384165],[-61.173058,13.1325]]]},properties:{name:"Saint Vincent and the Grenadines",iso2:"VC",iso3:"VCT"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-60.73037,5.204799],[-60.985,4.520555],[-62.745834,4.032499],[-64.01779,3.88611],[-64.19112,3.594446],[-64.04501,2.4825],[-63.39306,2.151388],[-65.51889,.649721],[-65.58974,.989168],[-66.31195,.750559],[-66.87189,1.221643],[-67.192505,2.3925],[-67.82834,2.825003],[-67.29056,3.397501],[-67.859726,4.558611],[-67.45445,6.193056],[-69.245285,6.081388],[-70.11917,6.975836],[-72,7.018888],[-72.47168,7.491945],[-72.32529,8.095556],[-72.779724,9.080278],[-73.37807,9.171389],[-72.49306,11.121111],[-71.977234,11.664999],[-71.32472,11.853056],[-71.96834,11.555834],[-71.57695,10.714445],[-72.1275,9.813055],[-71.61806,9.041945],[-71.05528,9.341391],[-71.49751,10.960001],[-69.798615,11.427778],[-69.77084,11.696112],[-68.418335,11.179998],[-68.16,10.496946],[-66.23529,10.642221],[-65.08139,10.060556],[-63.697502,10.485556],[-62.91667,10.528055],[-61.738617,9.595556],[-61.622505,9.906111],[-60.85028,9.440832],[-61.208893,8.595556],[-59.99028,8.535276],[-59.82556,8.236111],[-60.71917,7.535555],[-60.288612,7.057221],[-61.134026,6.711042],[-61.389725,5.940001],[-60.73037,5.204799]]]},properties:{name:"Venezuela",iso2:"VE",iso3:"VEN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-64.66084,18.383888],[-64.65251,18.441109],[-64.558334,18.451942],[-64.66084,18.383888]]]},properties:{name:"British Virgin Islands",iso2:"VG",iso3:"VGB"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[107.5466,14.708618],[107.69525,15.270832],[107.17554,15.784164],[107.46471,16.07861],[106.68553,16.45805],[106.5611,16.99694],[105.18332,18.334442],[105.19386,18.642494],[103.87943,19.29361],[104.03725,19.692944],[104.64027,19.611942],[104.97916,20.004997],[104.38193,20.444717],[104.10915,20.977219],[103.69359,20.657219],[103.17053,20.846664],[102.97609,21.739437],[102.67665,21.65583],[102.14075,22.396286],[102.47971,22.77389],[103.03055,22.435553],[103.33638,22.796387],[103.96443,22.499111],[105.35387,23.33472],[105.57748,23.059162],[106.70721,22.864998],[106.69331,22.03083],[107.99002,21.542414],[107.4147,21.326107],[105.95416,19.92083],[105.61388,18.977219],[106.69887,17.39972],[108.83028,15.420832],[109.46638,12.893332],[109.14554,12.435555],[109.0211,11.353331],[107.99774,10.699165],[107.26619,10.376129],[106.11719,10.238331],[105.82053,10.002499],[106.19412,9.366941],[105.0211,8.592775],[104.74275,8.604998],[105.10747,9.945276],[104.44533,10.422739],[105.10191,10.955553],[106.20331,10.770554],[105.85107,11.659998],[106.42024,11.973608],[107.54749,12.353609],[107.48915,14.44861],[107.5466,14.708618]]]},properties:{name:"Vietnam",iso2:"VN",iso3:"VNM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-64.76195,17.774166],[-64.56029,17.748333],[-64.89612,17.676666],[-64.76195,17.774166]]]},properties:{name:"United States Virgin Islands",iso2:"VI",iso3:"VIR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[23.476109,-17.625835],[24.969997,-17.559723],[25.264431,-17.80225],[24.3625,-17.948612],[23.615578,-18.48507],[23.297108,-17.995949],[20.993286,-18.318417],[20.991943,-21.996948],[19.996666,-22.005001],[20.000942,-24.765408],[19.99612,-28.421448],[19.123055,-28.962223],[17.40472,-28.713612],[17.06361,-28.028614],[16.48959,-28.578178],[15.294167,-27.322502],[14.463333,-24.109169],[14.511389,-22.55278],[11.804722,-18.081947],[11.752783,-17.254833],[13.160555,-16.952778],[13.993219,-17.423946],[18.451538,-17.389835],[18.915833,-17.815556],[20.854164,-18.016392],[23.476109,-17.625835]]]},properties:{name:"Namibia",iso2:"NA",iso3:"NAM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-178.04251,-14.319447],[-178.14056,-14.316389],[-178.18945,-14.236113],[-178.04251,-14.319447]]]},properties:{name:"Wallis and Futuna Islands",iso2:"WF",iso3:"WLF"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-172.28586,-13.486387],[-172.21417,-13.807777],[-172.78061,-13.533335],[-172.28586,-13.486387]]]},properties:{name:"Samoa",iso2:"WS",iso3:"WSM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[31.96851,-25.95784],[32.1334,-26.839626],[31.9875,-27.316113],[31.161663,-27.203056],[30.818886,-26.810558],[30.902048,-26.305254],[31.33083,-25.751392],[31.96851,-25.95784]]]},properties:{name:"Swaziland",iso2:"SZ",iso3:"SWZ"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[51.99929,18.999344],[53.11444,16.642778],[52.29888,16.27222],[52.23194,15.674166],[49.098885,14.519165],[48.69805,14.039999],[45.666664,13.341665],[45.055443,12.751296],[43.957222,12.592777],[43.467216,12.677776],[43.247498,13.210278],[42.681107,15.208332],[42.78968,16.377504],[43.20611,16.672222],[43.30944,17.457222],[44.4675,17.411942],[46.33333,16.666666],[46.333054,15.616945],[48.766388,18.266388],[51.99929,18.999344]]]},properties:{name:"Yemen",iso2:"YE",iso3:"YEM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[23.476109,-17.625835],[22.000149,-16.171661],[21.998333,-13.004168],[24.020554,-13.00639],[23.986206,-10.870461],[24.44833,-11.463612],[25.332222,-11.193335],[25.359722,-11.641668],[26.004719,-11.9025],[26.86861,-11.973612],[27.19925,-11.567905],[27.66,-12.296667],[28.441944,-12.519724],[29.015831,-13.397779],[29.589443,-13.221945],[29.49361,-12.458057],[29.031387,-12.383057],[28.36333,-11.550835],[28.699718,-10.653334],[28.37222,-9.260834],[28.901665,-8.478613],[30.77124,-8.192247],[31.041111,-8.590279],[32.9404,-9.405077],[33.70228,-10.561857],[33.25055,-10.886667],[33.27333,-12.144445],[32.678886,-13.60639],[33.22223,-14.012566],[30.213017,-14.981716],[30.415756,-15.631872],[28.92722,-15.972223],[28.759441,-16.552223],[27.825275,-16.959167],[27.038055,-17.959446],[25.264431,-17.80225],[24.969997,-17.559723],[23.476109,-17.625835]]]},properties:{name:"Zambia",iso2:"ZM",iso3:"ZMB"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[31.297504,-22.414764],[29.373623,-22.19241],[29.060555,-21.798058],[28.015831,-21.566113],[27.713165,-20.506432],[27.219997,-20.091667],[26.166111,-19.527779],[25.264431,-17.80225],[27.038055,-17.959446],[27.825275,-16.959167],[28.759441,-16.552223],[28.92722,-15.972223],[30.415756,-15.631872],[30.422775,-16.009167],[31.276665,-16.018612],[32.98114,-16.709053],[33.07305,-18.348892],[32.699165,-18.944447],[33.018883,-19.943336],[32.50222,-20.598614],[32.488876,-21.344448],[31.297504,-22.414764]]]},properties:{name:"Zimbabwe",iso2:"ZW",iso3:"ZWE"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[120.02916,-9.383333],[120.81026,-9.979166],[120.1647,-10.231388],[118.93109,-9.561111],[120.02916,-9.383333]]],[[[125.12799,-9.435955],[124.43526,-10.162779],[123.48831,-10.316389],[124.04616,-9.339979],[124.445724,-9.184801],[124.94545,-8.954039],[125.12799,-9.435955]]],[[[118.31192,-8.374722],[118.99693,-8.313612],[119.17804,-8.720278],[118.45721,-8.871944],[116.75139,-9.009445],[117.12276,-8.378611],[117.96638,-8.74861],[118.31192,-8.374722]]],[[[122.98109,-8.149445],[122.83249,-8.601664],[121.76555,-8.892223],[119.796234,-8.720343],[120.52249,-8.257223],[122.28831,-8.644445],[122.98109,-8.149445]]],[[[115.50221,-8.178612],[115.70776,-8.409166],[115.12608,-8.854166],[114.44553,-8.104721],[115.50221,-8.178612]]],[[[138.96829,-7.55611],[138.4447,-8.383333],[137.63525,-8.43],[138.1547,-7.513889],[138.96829,-7.55611]]],[[[106.16331,-6.014166],[108.3111,-6.260279],[108.73442,-6.814999],[110.39082,-6.979721],[110.91998,-6.41],[111.15277,-6.699999],[112.56026,-6.912222],[112.84554,-7.599722],[114.44832,-7.800554],[114.37164,-8.521112],[113.23276,-8.281113],[111.65109,-8.362499],[109.2897,-7.699444],[108.16304,-7.783054],[106.42331,-7.371387],[106.50943,-6.979166],[105.24332,-6.810278],[106.16331,-6.014166]]],[[[123.21277,-4.697498],[123.21555,-5.297499],[122.65138,-5.686388],[122.90359,-4.484999],[123.21277,-4.697498]]],[[[126.99387,-3.145],[127.23665,-3.6175],[126.70082,-3.834444],[126.01749,-3.354445],[126.10304,-3.100555],[126.99387,-3.145]]],[[[129.81247,-2.919722],[130.58414,-3.133333],[130.82996,-3.872776],[129.89749,-3.335833],[128.8783,-3.207777],[128.46246,-3.458332],[128.17386,-2.855555],[129.81247,-2.919722]]],[[[107.83276,-2.535],[108.26582,-2.755556],[108.07332,-3.235277],[107.60942,-3.211388],[107.83276,-2.535]]],[[[106.09082,-1.771666],[106.60193,-2.913055],[105.97832,-2.822777],[105.74471,-2.129166],[105.1322,-2.067499],[105.57361,-1.529167],[106.09082,-1.771666]]],[[[141.00247,-2.607084],[141.00702,-9.128468],[139.98523,-8.193611],[138.9086,-8.296667],[139.09552,-7.564165],[138.6611,-7.203333],[138.68192,-6.720554],[138.06442,-5.406111],[134.21579,-3.963055],[133.63748,-3.491667],[133.4497,-3.871389],[132.90164,-4.091389],[132.72275,-2.817223],[133.23886,-2.416111],[133.68414,-2.716389],[133.93637,-2.103054],[132.30136,-2.269444],[131.88245,-1.642221],[130.9636,-1.403055],[131.25555,-.822777],[132.26971,-.384167],[134.11108,-.835278],[134.1597,-2.319445],[134.63611,-2.513889],[135.00415,-3.341389],[135.49191,-3.358334],[136.35663,-2.253889],[137.19052,-2.103054],[137.13107,-1.792778],[137.85663,-1.471666],[141.00247,-2.607084]]],[[[97.52637,1.417223],[97.936356,.978056],[97.81079,.549723],[97.114685,1.393335],[97.52637,1.417223]]],[[[125.14166,1.421389],[124.24609,.375002],[120.2422,.344999],[120.06609,-.613054],[120.66638,-1.395554],[121.08305,-1.423611],[121.62221,-.805],[121.92776,-.963333],[122.81999,-.913332],[121.67165,-1.922222],[122.47748,-3.158054],[122.19498,-3.57111],[122.89554,-4.396389],[121.55304,-4.746666],[121.6147,-4.064722],[120.88136,-3.536945],[121.0761,-2.758888],[120.77193,-2.612499],[120.20027,-2.965],[120.46277,-5.624165],[119.465,-5.56361],[119.5061,-3.527222],[118.92221,-3.569721],[118.75916,-2.774166],[119.35332,-1.938889],[119.51721,-.876389],[119.7186,-.65361],[120.03249,.712778],[120.57304,.775278],[120.95055,1.342501],[123.83916,.829447],[124.9711,1.694723],[125.14166,1.421389]]],[[[127.89499,1.796667],[128.1883,1.378057],[128.21024,.784723],[128.90524,.200277],[127.87665,.310556],[127.39499,1.054724],[127.89499,1.796667]]],[[[117.59206,4.169821],[117.82805,3.702223],[117.27304,3.222776],[118.09665,2.305555],[117.87192,1.876669],[119.00861,.980833],[118.03499,.810278],[117.46748,.103613],[117.62248,-.779722],[116.22249,-1.779167],[116.60416,-2.229721],[115.98387,-3.588888],[114.70665,-4.176945],[114.48109,-3.498611],[113.6711,-3.47611],[113.0647,-2.993889],[111.88943,-3.573889],[111.55026,-3.024445],[110.23749,-2.979443],[109.90359,-1.828333],[110.05775,-1.333889],[109.12025,-.502222],[108.84549,.810564],[109.06694,1.532225],[109.64857,2.073408],[109.66998,1.613054],[110.55525,.853891],[111.82721,.998613],[112.47276,1.568056],[113.65833,1.224722],[114.56276,1.433611],[114.8047,2.248888],[115.2372,2.522501],[115.49553,3.040003],[115.68526,4.171946],[116.04942,4.279444],[117.59206,4.169821]]],[[[95.73857,5.585279],[96.34775,5.222776],[97.51886,5.246668],[98.27052,4.1425],[99.97775,2.9475],[100.7972,2.214445],[101.05553,2.28639],[102.42191,.800554],[103.35109,.536112],[103.81419,-.001028],[103.34236,-.364096],[103.36081,-.702221],[104.37915,-1.041389],[104.48943,-1.924999],[104.8622,-2.289444],[105.61249,-2.394167],[106.05525,-3.031389],[105.73248,-5.897779],[105.13971,-5.79611],[104.560776,-5.929747],[101.62692,-3.246111],[100.29359,-.806389],[99.63582,.076944],[99.13612,.261389],[98.77086,1.748613],[97.75192,2.269167],[96.88025,3.6775],[95.53108,4.682775],[95.230804,5.570833],[95.73857,5.585279]]]]},properties:{name:"Indonesia",iso2:"ID",iso3:"IDN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-62.811394,17.888332],[-62.86917,17.929722],[-62.79084,17.912498],[-62.811394,17.888332]]]},properties:{name:"Saint Barthelemy",iso2:"BL",iso3:"BLM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-68.19528,12.221109],[-68.251114,12.020555],[-68.41612,12.256945],[-68.19528,12.221109]]]},properties:{name:"Bonaire, Sint Eustatius and Saba",iso2:"BQ",iso3:"BES"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[56.269722,25.636015],[56.373528,24.979382],[55.77944,24.563889],[56.02472,24.07611],[55.510277,23.972775],[55.199165,22.69972],[52.58333,22.93889],[51.58361,24.25972],[52.08055,23.955555],[54.118607,24.139442],[54.650276,24.746944],[55.86361,25.723331],[56.07994,26.06556],[56.269722,25.636015]]]},properties:{name:"United Arab Emirates",iso2:"AE",iso3:"ARE"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[125.12799,-9.435955],[124.94545,-8.954039],[125.84415,-8.481667],[127.25305,-8.477499],[125.12799,-9.435955]]]},properties:{name:"Timor-Leste",iso2:"TL",iso3:"TLS"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-128.28918,-24.409721],[-128.33694,-24.329166],[-128.3039,-24.33028],[-128.28918,-24.409721]]]},properties:{name:"Pitcairn Islands",iso2:"PN",iso3:"PCN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[134.56137,7.371943],[134.48523,7.438054],[134.63416,7.729444],[134.56137,7.371943]]]},properties:{name:"Palau",iso2:"PW",iso3:"PLW"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[168.76804,7.298332],[168.78638,7.288888],[168.67026,7.328888],[168.76804,7.298332]]]},properties:{name:"Marshall Islands",iso2:"MH",iso3:"MHL"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-56.27111,46.994156],[-56.368332,46.78472],[-56.39028,47.11888],[-56.27111,46.994156]]]},properties:{name:"Saint Pierre and Miquelon",iso2:"PM",iso3:"SPM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-5.662223,-15.987501],[-5.793056,-15.994167],[-5.704167,-15.903057],[-5.662223,-15.987501]]]},properties:{name:"Saint Helena",iso2:"SH",iso3:"SHN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-71.65779,21.82333],[-71.65889,21.73972],[-71.85057,21.845833],[-71.65779,21.82333]]]},properties:{name:"Turks and Caicos Islands",iso2:"TC",iso3:"TCA"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-17.05233,20.764095],[-16.917225,21.943054],[-16.491112,22.334164],[-15.838058,23.896938],[-14.901112,24.688053],[-14.480278,26.171108],[-13.574167,26.731667],[-13.174961,27.666958],[-8.666668,27.666664],[-8.66679,27.290459],[-8.666945,26.000275],[-12.000557,26],[-12.000278,23.454441],[-13.105278,22.893055],[-12.999723,21.338055],[-16.953056,21.338333],[-17.05233,20.764095]]]},properties:{name:"Western Sahara",iso2:"EH",iso3:"ESH"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[20.295954,42.82429],[20.81448,43.27205],[21.63302,42.67717],[21.630444,42.14109],[20.589642,41.882187],[20.071423,42.560913],[20.295954,42.82429]]]},properties:{name:"Kosovo",iso2:"XK",iso3:"XKX"}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[23.336111,78.19748],[24.910276,77.74971],[22.4075,77.42082],[21.644999,77.91249],[23.336111,78.19748]]],[[[16.819166,79.87221],[18.920553,79.164154],[21.549166,78.76776],[18.965551,78.4561],[16.612776,76.57054],[14.467222,77.171646],[13.19861,78.54082],[11.333334,78.96054],[10.676943,79.54498],[13.886946,79.54137],[16.819166,79.87221]]],[[[19.933332,80.47748],[24.836386,80.350815],[27.244997,79.90498],[23.511667,79.17886],[18.154165,79.90999],[19.933332,80.47748]]]]},properties:{name:"Svalbard",iso2:"SJ",iso3:"SJM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-63.01146,18.067276],[-63.13984,18.058601],[-63.006668,18.080555],[-63.01146,18.067276]]]},properties:{name:"Saint Martin",iso2:"MF",iso3:"MAF"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-63.13984,18.058601],[-63.01146,18.067276],[-63.028336,18.015553],[-63.13984,18.058601]]]},properties:{name:"Sint Maarten",iso2:"SX",iso3:"SXM"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-2.590834,49.422493],[-2.670278,49.434166],[-2.501667,49.507774],[-2.590834,49.422493]]]},properties:{name:"Guernsey",iso2:"GG",iso3:"GGY"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-2.015,49.214165],[-2.205278,49.180832],[-2.247222,49.25305],[-2.015,49.214165]]]},properties:{name:"Jersey",iso2:"JE",iso3:"JEY"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-37.495003,-54.01056],[-36.288063,-54.266396],[-36.115837,-54.887222],[-37.411392,-54.268333],[-37.495003,-54.01056]]]},properties:{name:"South Georgia South Sandwich Islands",iso2:"GS",iso3:"SGS"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[121.73471,25.138885],[121.83971,24.476383],[120.71638,21.928051],[120.05276,23.044998],[120.11137,23.620274],[121.00916,25.008888],[121.73471,25.138885]]]},properties:{name:"Taiwan",iso2:"TW",iso3:"TWN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-68.96556,12.198889],[-69.16362,12.366388],[-68.74695,12.040277],[-68.96556,12.198889]]]},properties:{name:"Curaçao",iso2:"CW",iso3:"CUW"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[34.19552,9.47239],[33.824963,9.484061],[33.72196,10.325262],[33.20694,10.720112],[33.086765,11.441141],[33.20694,12.179338],[32.74342,12.248008],[32.314236,11.681484],[32.40007,11.080626],[31.352861,9.810241],[30.837841,9.707237],[29.99664,10.290927],[28.966597,9.398224],[27.97089,9.398224],[27.11252,9.638567],[26.752007,9.466893],[26.1522,9.826436],[25.790632,10.411099],[25.069605,10.27376],[24.537415,8.917538],[24.047173,8.693076],[23.517776,8.714167],[23.669167,9.866943],[22.866505,10.922447],[22.466942,12.621666],[21.827774,12.797499],[22.294167,13.35861],[22.084442,13.779165],[22.554996,14.125555],[22.384163,14.554165],[22.935833,15.11611],[22.937222,15.561943],[23.999603,15.698709],[24.002747,19.499065],[24.000832,20.001942],[25.000832,19.999119],[25.001423,21.999695],[31.27111,21.998333],[36.888466,22.00011],[37.10527,21.21222],[37.433327,18.858055],[38.600693,17.99488],[37.423286,17.034214],[36.995827,17.073887],[36.973053,16.269444],[36.443283,15.149952],[36.542816,14.262053],[36.142693,12.706923],[35.70108,12.666115],[35.09694,11.826944],[34.86444,10.734999],[34.28611,10.554165],[34.19552,9.47239]]]},properties:{name:"Sudan",iso2:"SD",iso3:"SDN"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[21.630444,42.14109],[21.63302,42.67717],[20.81448,43.27205],[20.295954,42.82429],[19.22881,43.513214],[19.51083,43.679718],[19.039719,44.86138],[18.81702,45.912964],[20.261024,46.114853],[21.51361,45.151108],[21.400398,44.780823],[22.681435,44.2247],[22.367222,43.826942],[23.004997,43.192772],[22.442219,42.821663],[22.365276,42.323883],[21.630444,42.14109]]]},properties:{name:"Serbia",iso2:"RS",iso3:"SRB"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-61.346115,16.334164],[-61.695007,15.949165],[-61.783615,16.333054],[-61.346115,16.334164]]]},properties:{name:"Guadeloupe",iso2:"GP",iso3:"GLP"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[28.565552,-28.61],[29.430832,-29.278614],[29.168888,-29.91389],[28.377777,-30.16028],[28.079937,-30.650528],[27.564617,-30.404911],[27.011108,-29.625278],[28.565552,-28.61]]]},properties:{name:"Lesotho",iso2:"LS",iso3:"LSO"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[12.459166,43.89611],[12.415798,43.957954],[12.509998,43.98694],[12.459166,43.89611]]]},properties:{name:"San Marino",iso2:"SM",iso3:"SMR"}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[12.44509,41.90312],[12.451653,41.90799],[12.45666,41.901424],[12.44509,41.90312]]]},properties:{name:"Holy See (Vatican City)",iso2:"VA",iso3:"VAT"}}]}},,,,function(e,t,n){"use strict";n.r(t);var r=n(2),i=n.n(r),o=n(3),a=n.n(o),s=n(7),l=n.n(s),c=n(6),u=n.n(c),d=n(8),h=n.n(d),p=n(0),f=n(5),m=n.n(f),g=n(16),b=n(17),y=function(e){function t(){return i()(this,t),l()(this,u()(t).call(this))}return h()(t,e),a()(t,[{key:"getType",value:function(){return"geo"}},{key:"getById",value:function(e){var t=e.mapId;if(!t)throw new Error(Object(p._)("Invalid mapId."));if("us"===t.toLowerCase())return g;if("world"===t.toLowerCase())return b;throw new Error(Object(p._)("The geoJson is not found."))}},{key:"listIds",value:function(e){var t=e.offset,n=void 0===t?0:t,r=e.count;return[{id:"world",url:"geo://default/world"},{id:"us",url:"geo://default/us"}].slice(n,n+(void 0===r?100:r))}},{key:"upload",value:function(){}},{key:"deleteById",value:function(){}}]),t}(m.a);t.default=y}])},"+ZFd":function(e,t){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},"+ZX+":function(e,t,n){"use strict";(function(e){var r=n("4xiM"),i=n("4hLU"),o=n("Rl48");function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function L(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":return M(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function z(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function N(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Y(e,t,n,r,o){return o||N(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,o){return o||N(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||E(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||E(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||E(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||E(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||E(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||E(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||E(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||E(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||E(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):z(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):z(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return Y(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return Y(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n("fRV1"))},"+Zfm":function(e,t,n){"use strict";var r=n("UsN5"),i=n("LqCZ"),o=n("EEm6");e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);c>s;)t[s++]=e;return t}},"+a2B":function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},"+a8/":function(e,t,n){var r=n("S4te");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"+b0h":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLeadingSearchCommand=h,t.stripLeadingSearchCommand=function(e){var t=e.trim();if((0,i.startsWith)(t,"search "))return t.substring(7);return e},t.createJava5HashForString=p,t.getCachedSearch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.cacheLimit,r=void 0===n?0:n,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.defaultFetchInit,u=p(e.search),h=o.default.encode({output_mode:"json",search:"request.webframework.cache.hash=".concat(u)});return fetch("".concat((0,s.createRESTURL)("search/jobs",{},l),"?").concat(h),c).then((function(e){return e.json()})).then((function(t){var n=(0,i.omit)(e,d),o=t.entry.filter((function(e){return(0,i.isEqual)(n,(0,i.omit)(e.content.request,d))}));if(o.length>0){var a=(0,i.maxBy)(o,(function(e){return new Date(e.published).valueOf()})),s=r<=0?0:(new Date).valueOf()-1e3*r;if(new Date(a.published).valueOf()>s)return a}return null})).catch((0,a.handleError)("Failed to get cached jobs."))},t.createSearchJob=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.defaultFetchInit;return fetch((0,s.createRESTURL)("search/jobs",t,n),c(c({},r),{},{method:"POST",body:o.default.encode(c({output_mode:"json"},e))})).then((0,a.handleResponse)(201)).catch((0,a.handleError)("Failed to create search job."))},t.oneShot=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.defaultFetchInit;return fetch((0,s.createRESTURL)("search/jobs",t,n),c(c({},r),{},{method:"POST",body:o.default.encode(c(c({output_mode:"json"},e),{},{exec_mode:"oneshot"}))})).then((0,a.handleResponse)(200)).catch((0,a.handleError)("Failed to create one shot search job"))},t.postAction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.defaultFetchInit;return fetch((0,s.createRESTURL)("search/jobs/".concat(e,"/control"),{},n),c(c({},r),{},{method:"POST",body:o.default.encode(c(c({},t),{},{output_mode:"json"}))})).then((0,a.handleResponse)(200)).catch((0,a.handleError)("Action ".concat(t.action," failed on search job ").concat(e)))},t.getData=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:a.defaultFetchInit,l=o.default.encode(c({output_mode:"json"},n)),u=(0,s.createRESTURL)("search/jobs/".concat(e).concat(t&&"/".concat(t)),{},r);return fetch("".concat(u,"?").concat(l),i).then((0,a.handleResponse)([200,204])).catch((0,a.handleError)("Failed to get ".concat(t||"status"," for job ").concat(e)))},t.batchGetSearches=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.defaultFetchInit,i=o.default.encode(c({output_mode:"json",id:e,count:e.length},t));return fetch("".concat((0,s.createRESTURL)("search/jobs",{},n),"?").concat(i),r).then((0,a.handleResponse)(200)).catch((0,a.handleError)("Failed to get batch status of jobs."))},t.validateSearch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.defaultFetchInit,i=o.default.encode(c({output_mode:"json",parse_only:!0,q:h(e)},t));return fetch("".concat((0,s.createRESTURL)("search/parser",{},n),"?").concat(i),r).then((0,a.handleResponse)(200)).then((function(e){return{valid:!0,data:e}})).catch((function(e){return e.json().then((function(t){var n=(0,a.findErrorMessage)(t),r=n?n.text:"Failed to validate search string.";return 400===e.status?Promise.resolve({valid:!1,error:r}):Promise.reject(new Error(r))}))}))};var r,i=n("nsO7"),o=(r=n("prCu"))&&r.__esModule?r:{default:r},a=n("mnwc"),s=n("/ox5");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t7?e:"search ".concat(t)}function p(e){for(var t=0,n=0,r=e.length;n0&&void 0!==arguments[0]?arguments[0]:"id";if(e.match(/^[a-zA-Z][\w-]*$/))return"".concat(e,"-").concat(r());throw new Error("createDOMID: Prefix must start with a letter and may only contain letters, digits, hyphens and underscores")}},"+fJ0":function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10,i=e%100-r,o=e>=100?100:null;return e+(t[r]||t[i]||t[o])}},week:{dow:1,doy:7}})}(n("ROmd"))},"+fUG":function(e,t,n){var r=n("5pfJ"),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},"+fWf":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return(0,o.default)(this.refs[e],(function(e){return e.node.sortableInfo.index}))}}]),e}();t.default=s},"+faS":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}({0:function(e,t){e.exports=n("ERkP")},1:function(e,t){e.exports=n("P+pW")},15:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wgY5"))},"+is+":function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}},e.exports.default=e.exports,e.exports.__esModule=!0},"+lgg":function(e,t,n){"use strict";var r=n("yrnK"),i=n("RVVN");r.Observable.prototype.takeWhile=i.takeWhile},"+mCb":function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return x})),n.d(t,"c",(function(){return S}));var r,i=n("sjbp"),o=n("OTNC"),a=n("1ZDE"),s=n("RqU8"),l=n("icmZ"),c=n("IQ2W"),u=n("vB0K"),d=n.n(u),h=n("cPkT"),p={insert:"head",singleton:!1},f=(d()(h.a,p),h.a.locals,n("pmNi")),m=n("OBPo"),g=c.a,b=function(){function e(e,t,n){this.os=t,this.options=n,this.domNode=c.q(e,g(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}return e.prototype.set=function(t,n){this.didEverRender&&this.keybinding===t&&e.areSame(this.matches,n)||(this.keybinding=t,this.matches=n,this.render())},e.prototype.render=function(){if(c.t(this.domNode),this.keybinding){var e=this.keybinding.getParts(),t=e[0],n=e[1];t&&this.renderPart(this.domNode,t,this.matches?this.matches.firstPart:null),n&&(c.q(this.domNode,g("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,n,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0},e.prototype.renderPart=function(e,t,n){var r=m.b.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,r.ctrlKey,Boolean(null==n?void 0:n.ctrlKey),r.separator),t.shiftKey&&this.renderKey(e,r.shiftKey,Boolean(null==n?void 0:n.shiftKey),r.separator),t.altKey&&this.renderKey(e,r.altKey,Boolean(null==n?void 0:n.altKey),r.separator),t.metaKey&&this.renderKey(e,r.metaKey,Boolean(null==n?void 0:n.metaKey),r.separator);var i=t.keyLabel;i&&this.renderKey(e,i,Boolean(null==n?void 0:n.keyCode),"")},e.prototype.renderKey=function(e,t,n,r){c.q(e,g("span.monaco-keybinding-key"+(n?".highlight":""),void 0,t)),r&&c.q(e,g("span.monaco-keybinding-key-separator",void 0,r))},e.prototype.renderUnbound=function(e){c.q(e,g("span.monaco-keybinding-key",void 0,Object(i.a)("unbound","Unbound")))},e.areSame=function(e,t){return e===t||!e&&!t||!!e&&!!t&&Object(f.e)(e.firstPart,t.firstPart)&&Object(f.e)(e.chordPart,t.chordPart)},e}(),y=n("SMqw"),_=n("PYg6"),v=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),M=0,w=function(){function e(e){void 0===e&&(e=[]),this.id=(M++).toString(),this.labelHighlights=e,this.descriptionHighlights=[]}return e.prototype.getId=function(){return this.id},e.prototype.getLabel=function(){},e.prototype.getLabelOptions=function(){},e.prototype.getAriaLabel=function(){return Object(_.d)([this.getLabel(),this.getDescription(),this.getDetail()]).join(", ")},e.prototype.getDetail=function(){},e.prototype.getIcon=function(){},e.prototype.getDescription=function(){},e.prototype.getTooltip=function(){},e.prototype.getDescriptionTooltip=function(){},e.prototype.getKeybinding=function(){},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setHighlights=function(e,t,n){this.labelHighlights=e,this.descriptionHighlights=t,this.detailHighlights=n},e.prototype.getHighlights=function(){return[this.labelHighlights,this.descriptionHighlights,this.detailHighlights]},e.prototype.run=function(e,t){return!1},e}(),x=function(e){function t(t,n,r){var i=e.call(this)||this;return i.entry=t,i.groupLabel=n,i.withBorder=r,i}return v(t,e),t.prototype.getGroupLabel=function(){return this.groupLabel},t.prototype.setGroupLabel=function(e){this.groupLabel=e},t.prototype.showBorder=function(){return!!this.withBorder},t.prototype.setShowBorder=function(e){this.withBorder=e},t.prototype.getLabel=function(){return this.entry?this.entry.getLabel():e.prototype.getLabel.call(this)},t.prototype.getLabelOptions=function(){return this.entry?this.entry.getLabelOptions():e.prototype.getLabelOptions.call(this)},t.prototype.getAriaLabel=function(){return this.entry?this.entry.getAriaLabel():e.prototype.getAriaLabel.call(this)},t.prototype.getDetail=function(){return this.entry?this.entry.getDetail():e.prototype.getDetail.call(this)},t.prototype.getIcon=function(){return this.entry?this.entry.getIcon():e.prototype.getIcon.call(this)},t.prototype.getDescription=function(){return this.entry?this.entry.getDescription():e.prototype.getDescription.call(this)},t.prototype.getHighlights=function(){return this.entry?this.entry.getHighlights():e.prototype.getHighlights.call(this)},t.prototype.isHidden=function(){return this.entry?this.entry.isHidden():e.prototype.isHidden.call(this)},t.prototype.setHighlights=function(t,n,r){this.entry?this.entry.setHighlights(t,n,r):e.prototype.setHighlights.call(this,t,n,r)},t.prototype.run=function(t,n){return this.entry?this.entry.run(t,n):e.prototype.run.call(this,t,n)},t}(w),A=function(){function e(){}return e.prototype.hasActions=function(e,t){return!1},e.prototype.getActions=function(e,t){return null},e}(),k="quickOpenEntryGroup",L=function(){function e(e,t){void 0===e&&(e=new A),this.actionProvider=e,this.actionRunner=t}return e.prototype.getHeight=function(e){return e.getDetail()?44:22},e.prototype.getTemplateId=function(e){return e instanceof x?k:"quickOpenEntry"},e.prototype.renderTemplate=function(e,t,n){var r=document.createElement("div");c.f(r,"sub-content"),t.appendChild(r);var i=c.a(".quick-open-row"),o=c.a(".quick-open-row"),u=c.a(".quick-open-entry",void 0,i,o);r.appendChild(u);var d=document.createElement("span");i.appendChild(d);var h=new a.a(i,{supportHighlights:!0,supportDescriptionHighlights:!0,supportCodicons:!0}),p=document.createElement("span");i.appendChild(p),c.f(p,"quick-open-entry-keybinding");var f=new b(p,y.a),m=document.createElement("div");o.appendChild(m),c.f(m,"quick-open-entry-meta");var g,_=new l.a(m,!0);e===k&&(g=document.createElement("div"),c.f(g,"results-group"),t.appendChild(g)),c.f(t,"actions");var v=document.createElement("div");return c.f(v,"primary-action-bar"),t.appendChild(v),{container:t,entry:u,icon:d,label:h,detail:_,keybinding:f,group:g,actionBar:new s.a(v,{actionRunner:this.actionRunner})}},e.prototype.renderElement=function(e,t,n,r){this.actionProvider.hasActions(null,e)?c.f(n.container,"has-actions"):c.P(n.container,"has-actions"),n.actionBar.context=e;var i=this.actionProvider.getActions(null,e);if(n.actionBar.isEmpty()&&i&&i.length>0?n.actionBar.push(i,{icon:!0,label:!1}):n.actionBar.isEmpty()||i&&0!==i.length||n.actionBar.clear(),e instanceof x&&e.getGroupLabel()?c.f(n.container,"has-group-label"):c.P(n.container,"has-group-label"),e instanceof x){var o=e,a=n;o.showBorder()?(c.f(a.container,"results-group-separator"),r.pickerGroupBorder&&(a.container.style.borderTopColor=r.pickerGroupBorder.toString())):(c.P(a.container,"results-group-separator"),a.container.style.borderTopColor="");var s=o.getGroupLabel()||"";a.group&&(a.group.textContent=s,r.pickerGroupForeground&&(a.group.style.color=r.pickerGroupForeground.toString()))}if(e instanceof w){var l=e.getHighlights(),u=l[0],d=l[1],h=l[2],p=e.getIcon()?"quick-open-entry-icon "+e.getIcon():"";n.icon.className=p;var f=e.getLabelOptions()||Object.create(null);f.matches=u||[],f.title=e.getTooltip(),f.descriptionTitle=e.getDescriptionTooltip()||e.getDescription(),f.descriptionMatches=d||[],n.label.setLabel(e.getLabel()||"",e.getDescription(),f),n.detail.set(e.getDetail(),h),n.keybinding.set(e.getKeybinding())}},e.prototype.disposeTemplate=function(e,t){t.actionBar.dispose(),t.actionBar=null,t.container=null,t.entry=null,t.keybinding=null,t.detail=null,t.group=null,t.icon=null,t.label.dispose(),t.label=null},e}(),S=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=new A),this._entries=e,this._dataSource=this,this._renderer=new L(t),this._filter=this,this._runner=this,this._accessibilityProvider=this}return Object.defineProperty(e.prototype,"entries",{get:function(){return this._entries},set:function(e){this._entries=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),e.prototype.getId=function(e){return e.getId()},e.prototype.getLabel=function(e){return o.o(e.getLabel())},e.prototype.getAriaLabel=function(e){return e.getAriaLabel()?i.a("quickOpenAriaLabelEntry","{0}, picker",e.getAriaLabel()):i.a("quickOpenAriaLabel","picker")},e.prototype.isVisible=function(e){return!e.isHidden()},e.prototype.run=function(e,t,n){return e.run(t,n)},e}()},"+n+S":function(e,t,n){var r=n("0Ocv"),i=n("R5u7"),o=n("m2YG");e.exports=function(e,t,n){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&i(e,t,n)?(t=0,n=a):(t=null==t?0:o(t),n=void 0===n?a:o(n)),r(e,t,n)):[]}},"+n5R":function(e,t,n){var r=n("0zIy"),i=n("VIL/");e.exports=Object.keys||function(e){return r(e,i)}},"+n5x":function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("wgY5"))},"+nBZ":function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}({20:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSimpleInputSchema=t.createSimpleDSSchema=t.createSimpleVizSchema=t.createTestSchema=void 0;t.createTestSchema=function(e){return{$schema:"http://json-schema.org/draft-07/schema#",$id:"http://www.splunk.com/dashboard.schema.json",title:"Dashboard Definition",description:"Dashboard Definition",type:"object",properties:e}};t.createSimpleVizSchema=function(e){return{$id:"http://www.splunk.com/dashboard.vizSchema.json",additionalProperties:!1,title:"Visualization Definition",description:"Visualization Definition",type:"object",properties:{context:{type:"object"},dataSources:{patternProperties:{"^[a-zA-Z0-9_-]*$":{type:"string"}}},description:{type:"string"},encoding:{type:"object"},eventHandlers:{type:"array",items:{$ref:"#/definitions/EventHandler"}},options:{type:"object",properties:e},showLastUpdated:{type:"boolean"},showProgressBar:{type:"boolean"},title:{type:"string"},type:{type:"string"}},required:["type"],definitions:{EventHandler:{type:"object",properties:{name:{type:"string"},options:{type:"object"},type:{type:"string"}},required:["type"],additionalProperties:!1}}}};t.createSimpleDSSchema=function(e){return{$id:"http://www.splunk.com/dashboard.dsSchema.json",additionalProperties:!1,title:"DataSource Definition",description:"DataSource Definition",type:"object",properties:{type:{type:"string"},options:{type:"object",properties:e},name:{type:"string"},meta:{type:"object"}},required:["type"]}};t.createSimpleInputSchema=function(e){return{$id:"http://www.splunk.com/dashboard.inputSchema.json",additionalProperties:!1,title:"Input Definition",description:"Input Definition",type:"object",properties:{dataSources:{patternProperties:{"^[a-zA-Z0-9_-]*$":{type:"string"}}},encoding:{type:"object"},options:{type:"object",properties:e},context:{type:"object"},title:{type:"string"},type:{type:"string"}},required:["type"]}}}})},"+nRK":function(e,t,n){"use strict";var r=n("yrnK"),i=n("tegb");r.Observable.fromEvent=i.fromEvent},"+omn":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.get=function(e){var t=e.name,n=e.app,r=e.owner,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.defaultFetchInit,d=(0,a.createRESTURL)("saved/searches/".concat(t),{app:n,owner:r},c),h=i.default.encode(l({output_mode:"json"},s));return fetch("".concat(d,"?").concat(h),u).then((0,o.handleResponse)(200)).catch((0,o.handleError)("Failed to get saved search: ".concat(t)))},t.dispatch=function(e){var t=e.name,n=e.app,r=e.owner,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.defaultFetchInit,d=(0,a.createRESTURL)("saved/searches/".concat(t,"/dispatch"),{app:n,owner:r},c);return fetch(d,l(l({},u),{},{method:"POST",body:i.default.encode(l(l({},s),{},{output_mode:"json"}))})).then((0,o.handleResponse)(201)).catch((0,o.handleError)("Failed to dispatch saved search: ".concat(t)))},t.getHistory=u,t.getLatest=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.defaultFetchInit;return u(e,l(l({},t),{},{sort_key:"start",sort_dir:"desc",count:1}),n,r).then((function(e){return e.entry[0]}))};var r,i=(r=n("prCu"))&&r.__esModule?r:{default:r},o=n("mnwc"),a=n("/ox5");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.defaultFetchInit,d=(0,a.createRESTURL)("saved/searches/".concat(t,"/history"),{app:n,owner:r},c),h=i.default.encode(l({output_mode:"json"},s));return fetch("".concat(d,"?").concat(h),u).then((0,o.handleResponse)(200)).catch((0,o.handleError)("Failed to get history for saved search: ".concat(t)))}},"+ooz":function(e,t,n){var r=n("8Zrg"),i=n("kwr2"),o=n("5VYK"),a=n("Coc+"),s=n("LzM7");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t":"<";i+="if ( ",h&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),!1===e.opts.unicode?i+=" "+d+".length ":i+=" ucs2length("+d+") ",i+=" "+p+" "+r+") { ";var f=t,m=m||[];m.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(f||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=h?"' + "+r+" + '":""+s,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+l:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}},"+xQ1":function(e,t,n){"use strict";var r=n("PBB4"),i=n.n(r)()((function(e){return e[1]}));i.push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-count-badge {\r\n\tpadding: 3px 5px;\r\n\tborder-radius: 11px;\r\n\tfont-size: 11px;\r\n\tmin-width: 18px;\r\n\tmin-height: 18px;\r\n\tline-height: 11px;\r\n\tfont-weight: normal;\r\n\ttext-align: center;\r\n\tdisplay: inline-block;\r\n\tbox-sizing: border-box;\r\n}",""]),t.a=i},"/+/D":function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},i=n("lLRD"),o=n("Y2nw"),a=n("QQLa");t.throttleTime=function(e,t,n){return void 0===t&&(t=o.async),void 0===n&&(n=a.defaultThrottleConfig),function(r){return r.lift(new s(e,t,n.leading,n.trailing))}};var s=function(){function e(e,t,n,r){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=r}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),l=function(e){function t(t,n,r,i,o){e.call(this,t),this.duration=n,this.scheduler=r,this.leading=i,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}return r(t,e),t.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(c,this.duration,{subscriber:this})),this.leading&&this.destination.next(e))},t.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},t}(i.Subscriber);function c(e){e.subscriber.clearThrottle()}},"/+Eh":function(e,t,n){"use strict";var r=n("yrnK"),i=n("Hckm");r.Observable.prototype.window=i.window},"//Gm":function(e,t,n){"use strict";var r=n("+ZX+").Buffer,i=n("qW1w"),o=n("i8+T"),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function p(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function f(e,t){return e<>>32-t}function m(e,t,n,r,i,o,a,s){return f(e+(t^n^r)+o+a|0,s)+i|0}function g(e,t,n,r,i,o,a,s){return f(e+(t&n|~t&r)+o+a|0,s)+i|0}function b(e,t,n,r,i,o,a,s){return f(e+((t|~n)^r)+o+a|0,s)+i|0}function y(e,t,n,r,i,o,a,s){return f(e+(t&r|n&~r)+o+a|0,s)+i|0}function _(e,t,n,r,i,o,a,s){return f(e+(t^(n|~r))+o+a|0,s)+i|0}i(p,o),p.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,p=0|this._e,v=0|this._a,M=0|this._b,w=0|this._c,x=0|this._d,A=0|this._e,k=0;k<80;k+=1){var L,S;k<16?(L=m(n,r,i,o,p,e[s[k]],d[0],c[k]),S=_(v,M,w,x,A,e[l[k]],h[0],u[k])):k<32?(L=g(n,r,i,o,p,e[s[k]],d[1],c[k]),S=y(v,M,w,x,A,e[l[k]],h[1],u[k])):k<48?(L=b(n,r,i,o,p,e[s[k]],d[2],c[k]),S=b(v,M,w,x,A,e[l[k]],h[2],u[k])):k<64?(L=y(n,r,i,o,p,e[s[k]],d[3],c[k]),S=g(v,M,w,x,A,e[l[k]],h[3],u[k])):(L=_(n,r,i,o,p,e[s[k]],d[4],c[k]),S=m(v,M,w,x,A,e[l[k]],h[4],u[k])),n=p,p=o,o=f(i,10),i=r,r=L,v=A,A=x,x=f(w,10),w=M,M=S}var T=this._b+i+x|0;this._b=this._c+o+A|0,this._c=this._d+p+v|0,this._d=this._e+n+M|0,this._e=this._a+r+w|0,this._a=T},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=p},"//nZ":function(e,t,n){var r=n("QwI6"),i=n("cH1A")((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},"/1bw":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=29)}([function(e,t){e.exports=n("aWzz")},function(e,t){e.exports=n("ERkP")},,function(e,t){e.exports=n("j/s1")},function(e,t){e.exports=n("nsO7")},function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_FONT",(function(){return h})),n.d(t,"DEFAULT_FONT_FAMILY",(function(){return p})),n.d(t,"isLoadingOrNoColumns",(function(){return f})),n.d(t,"getFormattedColor",(function(){return m})),n.d(t,"hasBackground",(function(){return g})),n.d(t,"isIdenticalColor",(function(){return b})),n.d(t,"getDefaultColorWithBg",(function(){return y})),n.d(t,"getMajorColor",(function(){return _})),n.d(t,"getTrendColor",(function(){return v})),n.d(t,"computeColors",(function(){return M})),n.d(t,"computeText",(function(){return w})),n.d(t,"getMajorText",(function(){return x})),n.d(t,"getTrendText",(function(){return A})),n.d(t,"computeFontSize",(function(){return k})),n.d(t,"getMajorFontSize",(function(){return L})),n.d(t,"getTrendFontSize",(function(){return S})),n.d(t,"getUnderLabelHeight",(function(){return T})),n.d(t,"getUnderLabel",(function(){return O})),n.d(t,"getMajorAndTrend",(function(){return C})),n.d(t,"updateVizInSmallSpace",(function(){return D})),n.d(t,"computeSingleValueContent",(function(){return E})),n.d(t,"getGraphColors",(function(){return P})),n.d(t,"adjustRGB",(function(){return j})),n.d(t,"lighten",(function(){return N})),n.d(t,"darken",(function(){return Y})),n.d(t,"shouldShowTrend",(function(){return I}));var r=n(12),i=n.n(r),o=n(9),a=n.n(o),s=n(4),l=n(10),c=n(24),u=n(7),d=n(8),h=12,p='"Splunk Platform Sans", "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif',f=function(e,t){var n=Object(s.get)(e,"primary.data.columns[0]",void 0);return t||void 0===n},m=function(e,t){return Object(u.formatColor)(e)||Object(u.formatColor)(t)},g=function(e){return!!e&&"transparent"!==e},b=function(e,t){return!!e&&!!t&&Object(u.formatColor)(e.toLowerCase())===Object(u.formatColor)(t.toLowerCase())},y=function(e){var t=e.backgroundColor,n=e.defaultFontColor,r=e.defaultBlockFontColor;return b(t,r)?n:r},_=function(e){var t=e.majorColor,n=e.backgroundColor,r=e.defaultFontColor,i=e.defaultBlockFontColor;return g(n)&&!t?y({backgroundColor:n,defaultFontColor:r,defaultBlockFontColor:i}):m(t,r)},v=function(e){var t=e.trendColor,n=e.trendValue,r=e.majorValue,i=e.customizedBgColor,o=e.trendDisplayMode,a=e.defaultColors;if(t)return t;if(!Number.isNaN(Number(n))){var s=a.defaultFontColor,l=a.defaultBlockFontColor,c=a.defaultBackgroundColor;if(g(i)&&!b(i,c)&&!b(i,l))return l;var u="percent"===o&&n===parseFloat(r);return 0===n||u?s:n>0?d.DELTA_GREEN:d.DELTA_RED}},M=function(e,t){var n=m(e.backgroundColor,t.defaultBackgroundColor),r=g(n),i=_({majorColor:e.majorColor,backgroundColor:n,defaultFontColor:t.defaultFontColor,defaultBlockFontColor:t.defaultBlockFontColor});return{backgroundColor:n,backgroundEnabled:r,majorColor:i,trendColor:v({trendColor:e.trendColor,trendValue:e.trendValue,majorValue:e.majorValue,customizedBgColor:e.backgroundColor,trendDisplayMode:e.trendDisplay||e.trendDisplayMode,defaultColors:t}),underLabelColor:r?i:t.defaultFontColor}},w=function(e){var t=e.value,n=e.numberPrecision,r=e.shouldUseThousandSeparators,i=e.shouldAbbreviateTrendValue,o=Object(l.isNumerial)(t)?Object(l.formatNumber)(t,n,{useThousandSeparators:r,useTrendUnits:i}):t;return o=o||""},x=function(e){var t=e.majorValue,n=e.numberPrecision,r=e.shouldUseThousandSeparators;return w({value:null===t?"N/A":t,numberPrecision:n,shouldUseThousandSeparators:r,shouldAbbreviateTrendValue:!1})},A=function(e){var t=e.majorValue,n=e.trendValue,r=e.trendDisplayMode,i=e.numberPrecision,o=e.shouldUseThousandSeparators,a=e.shouldAbbreviateTrendValue;if(""===n||!Object(l.isNumerial)(n))return"";var s=n,c="percent"===r;c&&(s=Number(t)!==Number(n)?n/(t-n)*100:0);var u=w({value:s,numberPrecision:i,shouldUseThousandSeparators:o,shouldAbbreviateTrendValue:a});return c?"".concat(u,"%"):u},k=function(e,t){var n=t.width,r=t.height,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"normal",a=Object(c.computeTextSize)(e,"".concat(o," ").concat(h,"px ").concat(i)),s=Math.min(n/a*h,r/h*h);return parseInt(s,10)},L=function(e){var t=e.width,n=e.height,r=e.unit,i=e.majorText,o=e.spaceRatio,a=void 0===o?1:o,s=r?"".concat(r).concat(i):i;return k(s,{width:t*a,height:n})},S=function(e){var t=e.width,n=e.height,r=e.trendText,i=e.spaceRatio,o=void 0===i?1:i,a=12;return o>0&&(a=k(r,{width:t*o,height:n}),a=parseInt(a,10)*o),a},T=function(e){return e>h?h:e},O=function(e){var t=e.underLabel,n=e.width,r=e.height;return k(t,{width:n,height:r})},C=function(e){var t=e.width,n=e.height,r=e.majorValue,i=e.trendValue,o=e.majorFontSize,a=e.trendFontSize,s=e.trendDisplayMode,c=e.showTrendIndicator,u=e.unit,d=e.numberPrecision,h=e.shouldUseThousandSeparators,p=e.shouldAbbreviateTrendValue,f=Object(l.isNumerial)(i)&&c?.6:1,m=.9*t,g=.9*n,b=x({majorValue:r,numberPrecision:d,shouldUseThousandSeparators:h}),y=o||L({width:m,height:g,unit:u,majorText:b,spaceRatio:f}),_=A({majorValue:r,trendValue:i,trendDisplayMode:s,numberPrecision:d,shouldUseThousandSeparators:h,shouldAbbreviateTrendValue:p});return{majorText:b,majorTextFontSize:y,trendText:_,trendTextFontSize:a||S({width:m,height:g,trendText:_,spaceRatio:1-f})}},D=function(e){for(var t=e.width,n=e.height,r=e.toRemoveList,o=e.majorValue,s=e.trendValue,l=e.majorFontSize,c=e.trendFontSize,u=e.majorTextFontSize,d=e.showTrendIndicator,h=e.unit,p=e.numberPrecision,f=e.shouldUseThousandSeparators,m=e.shouldAbbreviateTrendValue,g=0,b={},y={},_=u;_<12&&g1?(a=j(a,80),s=j(s,80),l=j(l,80)):(a=j(a,40),s=j(s,40),l=j(l,40)):255===a&&255===s&&255===l?t>1?(a=j(a,20),s=j(s,20),l=j(l,20)):(a=j(a,80),s=j(s,80),l=j(l,80)):(a=j(a,20),s=j(s,20),l=j(l,20))),"#".concat(a.toString(16).padStart(2,0))+"".concat(s.toString(16).padStart(2,0))+"".concat(l.toString(16).padStart(2,0))},N=function(e){return z(e,1.3)},Y=function(e){return z(e,.5)},I=function(e){return"absolute"===e||"percent"===e}},,function(e,t){e.exports=n("+5fS")},function(e,t){e.exports=n("3Jn1")},function(e,t){e.exports=n("Y02R")},function(e,t){e.exports=n("4OXh")},,function(e,t){e.exports=n("2Fwt")},,function(e,t){e.exports=n("HzAi")},,,,,,,,,,function(e,t){e.exports=n("wjBy")},,,,,function(e,t,n){"use strict";n.r(t);var r=n(14),i=n.n(r),o=n(1),a=n.n(o),s=n(0),l=n.n(s),c=n(3),u=n.n(c),d=n(5),h=n(43),p=n.n(h),f=n(44),m=n.n(f),g=u.a.div.withConfig({displayName:"TrendValue__Column",componentId:"yd2lvy-0"})(["display:flex;flex-direction:row;justify-content:",";height:","px;",";"],(function(e){return e.justify||"flex-end"}),(function(e){return e.size||12}),(function(e){return e.size?"margin: 0 ".concat(.2*parseInt(e.size,10)||5,"px;"):""})),b=u.a.div.withConfig({displayName:"TrendValue__Text",componentId:"yd2lvy-1"})(["white-space:nowrap;font-size:","px;color:",";font-family:",";height:","px;line-height:","px;display:flex;align-self:baseline;",";"],(function(e){return e.size||12}),(function(e){return e.color||"#000"}),d.DEFAULT_FONT_FAMILY,(function(e){return e.size||12}),(function(e){return e.size||12}),(function(e){return e.size?"margin-left: ".concat(.2*parseInt(e.size,10)||5,"px;"):""})),y=function(e){var t=e.fontSize,n=e.color,r=e.value,i=e.text,o=!1;return parseFloat(r,10)>0?o=p.a:parseFloat(r,10)<0&&(o=m.a),a.a.createElement(g,{justify:"flex-end",size:t},a.a.createElement(b,{"data-test":"trendValueIndicator",size:t,color:n},o&&a.a.createElement(o,null)),a.a.createElement(b,{"data-test":"trendValue",size:t,color:n},"".concat(i)))};y.propTypes={fontSize:l.a.number,color:l.a.string,value:l.a.oneOfType([l.a.string,l.a.number]),text:l.a.string};var _=y,v=n(45),M=n.n(v),w=u.a.div.withConfig({displayName:"MajorValue__Row",componentId:"shlzpv-0"})(["display:flex;flex-direction:row;align:flex-start;align-items:flex-end;justify:left;justify-content:left;line-height:","px;height:","px;"],(function(e){return e.size}),(function(e){return e.size})),x=u.a.div.withConfig({displayName:"MajorValue__Text",componentId:"shlzpv-1"})(["white-space:nowrap;font-size:","px;color:",";font-family:",";font-weight:bold;&:hover{text-decoration:",";cursor:",";}",""],(function(e){return e.size||12}),(function(e){return e.color}),d.DEFAULT_FONT_FAMILY,(function(e){return e.showUnderline?"underline":"inherit"}),(function(e){return e.showUnderline?"pointer":"inherit"}),(function(e){return e.pseudoContent&&e.pseudoContentPosition?"&:".concat(e.pseudoContentPosition," {\n // by default this pseudo element would inherit text-decoration from main element\n // and text-decoration could not be overwritten.\n // adding display: inline-block makes text decoration independent from main element.\n // => the unit will not be underlined if a user hovers over the main value\n display: inline-block;\n font-size: ").concat(e.pseudoContentFontSize,"px;\n vertical-align: text-top;\n position: relative;\n top: 5px; // magic number to tweak vertical alignment of unit\n font-weight: normal;\n content: ").concat(e.pseudoContent,";\n }"):""})),A=["before","after"],k=function(e){var t,n,r=e.color,i=e.fontSize,o=e.unitPosition,s=e.title,l=e.value,c=e.onValueClick,u=e.unit;return"string"==typeof u&&(t=M()(u,{wrap:!0,quotes:"double"}),n="string"==typeof o&&A.includes(o)?o:"after"),a.a.createElement(w,{size:i},a.a.createElement(x,{"data-test":"majorValue",color:r,onClick:function(e){return"function"==typeof c&&c(e)},showUnderline:!!c,size:i,title:s,pseudoContent:t,pseudoContentPosition:n,pseudoContentFontSize:.6*i},l))};k.propTypes={color:l.a.string,fontSize:l.a.number,unit:l.a.string,unitPosition:l.a.oneOf(A),value:l.a.oneOfType([l.a.string,l.a.number]),title:l.a.oneOfType([l.a.string,l.a.number]),onValueClick:l.a.func};var L=k;n.d(t,"SingleValueTrendValue",(function(){return D}));var S=u.a.div.withConfig({displayName:"SingleValueBasic__Column",componentId:"k0nwrx-0"})(["display:flex;flex-direction:column;align-self:center;justify-content:center;"]),T=u.a.div.withConfig({displayName:"SingleValueBasic__Row",componentId:"k0nwrx-1"})(["display:flex;flex-direction:row;align-items:",";justify-content:center;"],(function(e){return e.align||"center"})),O=u.a.div.withConfig({displayName:"SingleValueBasic__Text",componentId:"k0nwrx-2"})(["font-weight:normal;white-space:nowrap;font-size:","px;color:",";font-family:",";height:","px;line-height:1.2;"],(function(e){return e.size||12}),(function(e){return e.color||"#000"}),d.DEFAULT_FONT_FAMILY,(function(e){return e.size||12})),C=function(e){var t=i()({},e),n=t.majorColor,r=t.majorTextFontSize,o=t.majorText,s=t.majorValueTitle,l=t.trendColor,c=t.trendTextFontSize,u=t.trendText,d=t.showTrendIndicator,h=t.unit,p=t.unitPosition,f=t.underLabel,m=t.underLabelFontSize,g=t.underLabelColor,b=t.onValueClick,y=""!==u&&d;return a.a.createElement(S,null,a.a.createElement(T,{align:"baseline"},a.a.createElement(L,{"data-test":"MajorValue",color:n,fontSize:r,unit:h,unitPosition:p,value:o,title:s,onValueClick:b}),y&&a.a.createElement(_,{"data-test":"TrendIndicator",fontSize:c,color:l,value:u,text:u})),f&&a.a.createElement(T,{justify:"center"},a.a.createElement(O,{"data-test":"underLabel",size:m,color:g},f)))};C.propTypes={majorText:l.a.string,majorColor:l.a.string,majorTextFontSize:l.a.number,majorValueTitle:l.a.string,trendText:l.a.string,trendTextFontSize:l.a.number,trendColor:l.a.string,showTrendIndicator:l.a.bool,unit:l.a.string,unitPosition:l.a.oneOf(["before","after"]),underLabel:l.a.string,underLabelFontSize:l.a.number,underLabelColor:l.a.string,onValueClick:l.a.func};var D=_;t.default=C},,,,,,,,,,,,,,function(e,t){e.exports=n("Lws+")},function(e,t){e.exports=n("DF/2")},function(e,t){e.exports=n("BSe0")}])},"/1mr":function(e,t,n){var r=n("YFJ4"),i=n("1XW7");e.exports=n("GeHj")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"/30y":function(e,t,n){var r=n("Dhk8"),i=n("tLQN");e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},"/8T/":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=41)}([function(e,t){e.exports=n("ERkP")},function(e,t){e.exports=n("aWzz")},function(e,t){e.exports=n("vE3P")},function(e,t){e.exports=n("JRMG")},function(e,t){e.exports=n("j/s1")},function(e,t){e.exports=n("2srY")},function(e,t){e.exports=n("c1i6")},function(e,t){e.exports=n("CC+s")},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorConsumer=t.EditorProvider=void 0;var i=r(n(0)).default.createContext({drilldownEditors:{},visualizationEditors:{},inputEditors:{},layoutItemEditors:{},layoutEditors:{},vizConfigPanelEditors:{},inputPanelConfigEditors:{},dataSourceEditors:{},dataSourcesPanel:null,fetchDataSources:function(){}});t.EditorProvider=i.Provider,t.EditorConsumer=i.Consumer,t.default=i},function(e,t){e.exports=n("tS6y")},function(e,t){e.exports=n("//nZ")},function(e,t){e.exports=n("ET4p")},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PresetConsumer=t.PresetProvider=void 0;var i=r(n(0)).default.createContext();t.PresetProvider=i.Provider,t.PresetConsumer=i.Consumer,t.default=i},function(e,t){e.exports=n("7nmT")},function(e,t){e.exports=n("8SuZ")},function(e,t){e.exports=n("6/hY")},function(e,t){e.exports=n("fjlT")},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(1)),o=function(){return null};o.propTypes={definition:i.default.object.isRequired,onDefinitionChange:i.default.func.isRequired,selectedItems:i.default.arrayOf(i.default.shape({id:i.default.string,type:i.default.oneOf(["block","line","input"])}))},o.defaultProps={selectedItems:[]},t.default=o},function(e,t){e.exports=n("hPiZ")},function(e,t){e.exports=n("3jxN")},function(e,t){e.exports=n("l6+Y")},function(e,t){e.exports=n("nnm9")},function(e,t){e.exports=n("GjAW")},function(e,t){e.exports=n("/VMP")},function(e,t){e.exports=n("hgg3")},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]3&&"dataSources"===r[3]?(s=i.dataSources,t="add"===n?"connect":"disconnect"):s=i.visualizations);return r.some((function(e){return-1!==a.indexOf(e)}))?t="config":r.some((function(e){return-1!==["x","y"].indexOf(e)}))?t="move":r.some((function(e){return-1!==["w","h"].indexOf(e)}))&&(t="resize"),t||(t=n),""+s+t}))))}},function(e,t){e.exports=n("jLkM")},function(e,t){e.exports=n("YZWH")},function(e,t){e.exports=n("+nBZ")},function(e,t){e.exports=n("lSUb")},function(e,t){e.exports=n("c2re")},function(e,t){e.exports=n("nnRT")},function(e,t){e.exports=n("2q8g")},function(e,t){e.exports=n("FkkX")},function(e,t){e.exports=n("0iyY")},function(e,t,n){"use strict";var r,i=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return s(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.themes=void 0;var u,d=c(n(67)),h=c(n(68)),p=c(n(5)),f=l(n(0)),m=c(n(4)),g=c(n(1)),b=n(7),y=l(n(37)),_=c(n(38)),v=c(n(19)),M=l(n(20)),w=n(3),x=c(n(14)),A=m.default.div(u||(u=i(["\n padding: 10px 15px 10px 15px;\n width: 314px;\n"],["\n padding: 10px 15px 10px 15px;\n width: 314px;\n"]))),k={height:"30px",lineHeight:"30px",padding:"0px 5px 0px 10px"},L=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRemoveClick=function(e,n){return function(){t.props.onRemoveDataSource(e,n)}},t.handleEditClick=function(e){return function(){t.props.onEditDataSource(e)}},t.handleLinkOnClick=function(e){return function(){t.props.onNewDataSource(e)}},t.getDataSourceName=function(e,n){var r,i=t.props.dataSources;return"ds.savedSearch"===e&&(r=p.default(i,[n,"options","ref"])),r||(r=p.default(i,[n,"name"])),r||b._("Unnamed")},t.renderDataSource=function(e){var n=d.default(e)?e:e.name,r=t.props,i=r.dataSourceBinding,o=r.dataSources,a=i[n],s=p.default(o,[a,"type"]),l=t.getDataSourceName(s,a),c=t.context.featureFlags,u="ds.test"!==s||(void 0===c?{}:c).enableTestDataSourceEditor;return a&&s?f.default.createElement(y.default,{key:n,"data-test":"datasourceitem","data-test-id":a,name:l,onEditClick:u?t.handleEditClick(a):null,onRemoveClick:t.handleRemoveClick(a,n)}):f.default.createElement(_.default,{key:n,style:k,onClick:t.handleLinkOnClick(n),"data-test":"setup-datasource-link"},"+ "+b._("Set up "+h.default(n)+" Data Source"))},t}return o(t,e),t.prototype.render=function(){var e=this.props.dataContract,t=e.requiredDataSources||[],n=e.optionalDataSources||[];return f.default.createElement(f.default.Fragment,null,f.default.createElement(v.default,{open:!0,label:b._(""+b._("Data Configurations"))},f.default.createElement(A,null,t.map(this.renderDataSource),n.map(this.renderDataSource))),f.default.createElement(M.default,null))},t.contextType=x.default,t.propTypes={dataContract:g.default.object,dataSourceBinding:g.default.object,onRemoveDataSource:g.default.func,dataSources:g.default.object,onEditDataSource:g.default.func,onNewDataSource:g.default.func},t.defaultProps={dataContract:{},onEditDataSource:function(){},onNewDataSource:function(){}},t}(f.Component);t.themes=w.mergeThemes(M.themes,y.themes),t.default=L},function(e,t){e.exports=n("I7No")},function(e,t){e.exports=n("Tk8r")},function(e,t){e.exports=n("NMjM")},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.themes=void 0;var u,d,h,p,f,m,g,b,y,_,v,M,w,x,A,k=s(n(0)),L=c(n(1)),S=c(n(4)),T=c(n(32)),O=c(n(84)),C=c(n(39)),D=c(n(18)),E=c(n(28)),P=n(7),j=c(n(85)),z=c(n(14)),N=c(n(6)),Y=c(n(86)),I=c(n(87)),H=n(3),R=n(9),B=n(29),F=c(n(88)),W=c(n(89)),q=n(90),U=n(11),V=c(n(12)),X=c(n(8)),G=H.createThemeRegistry("@splunk/dashboard","components","editors","DataSourceEditor"),K={margin:"10px 10px 10px 15px"},$={margin:"10px 15px 10px 10px"},Q=S.default.div(u||(u=r(["\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n display: flex;\n flex-direction: column;\n color: ",";\n"],["\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n display: flex;\n flex-direction: column;\n color: ",";\n"])),G.themeVariable("textColor")),J=S.default.div(d||(d=r(["\n flex-grow: 1;\n overflow: auto;\n"],["\n flex-grow: 1;\n overflow: auto;\n"]))),Z=S.default.div(h||(h=r(["\n flex-basis: auto;\n display: flex;\n justify-content: space-around;\n"],["\n flex-basis: auto;\n display: flex;\n justify-content: space-around;\n"]))),ee=S.default(F.default)(p||(p=r(["\n &[data-fill='warning'] {\n background-color: ",";\n color: ",";\n }\n padding: 13px 25px;\n margin: 0;\n"],["\n &[data-fill='warning'] {\n background-color: ",";\n color: ",";\n }\n padding: 13px 25px;\n margin: 0;\n"])),G.themeVariable("infoBackgroundColor"),G.themeVariable("textColor")),te=S.default(j.default)(f||(f=r(["\n position: absolute;\n left: 18px;\n top: 12px;\n"],["\n position: absolute;\n left: 18px;\n top: 12px;\n"]))),ne=S.default.div(m||(m=r(["\n margin-left: 30px;\n"],["\n margin-left: 30px;\n"]))),re=S.default.div(g||(g=r(["\n display: flex;\n padding: 10px 15px;\n flex-wrap: wrap;\n flex-grow: 1;\n"],["\n display: flex;\n padding: 10px 15px;\n flex-wrap: wrap;\n flex-grow: 1;\n"]))),ie=S.default.div(b||(b=r(["\n display: flex;\n width: 100%;\n"],["\n display: flex;\n width: 100%;\n"]))),oe=S.default.div(y||(y=r(["\n width: 40%;\n font-weight: 500;\n"],["\n width: 40%;\n font-weight: 500;\n"]))),ae=S.default(Y.default)(_||(_=r(["\n margin: 0;\n padding-left: 20px;\n"],["\n margin: 0;\n padding-left: 20px;\n"]))),se=S.default(Y.default.Item)(v||(v=r(["\n font-size: 12px;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n list-style-position: inside;\n"],["\n font-size: 12px;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n list-style-position: inside;\n"]))),le=S.default(I.default)(M||(M=r(["\n font-size: 12px;\n text-decoration: underline;\n"],["\n font-size: 12px;\n text-decoration: underline;\n"]))),ce={display:"flex"},ue=S.default.div.attrs((function(e){var t=e.title;return{tabIndex:"0","aria-label":t,title:t}}))(w||(w=r(["\n box-sizing: border-box;\n display: flex;\n justify-content: end;\n max-width: 359px;\n height: 35px;\n padding: 5px 10px;\n cursor: not-allowed;\n border: 1px solid;\n border-radius: 3px;\n border-color: ",";\n background-color: ",";\n color: ",";\n"],["\n box-sizing: border-box;\n display: flex;\n justify-content: end;\n max-width: 359px;\n height: 35px;\n padding: 5px 10px;\n cursor: not-allowed;\n border: 1px solid;\n border-radius: 3px;\n border-color: ",";\n background-color: ",";\n color: ",";\n"])),G.themeVariable("borderDisabledColor"),G.themeVariable("backgroundDisabledColor"),G.themeVariable("disabledTextColor")),de=S.default.div(x||(x=r(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n flex-grow: 1;\n line-height: 25px;\n"],["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n flex-grow: 1;\n line-height: 25px;\n"]))),he=S.default.div(A||(A=r(["\n flex-basis: auto;\n padding-left: 5px;\n text-align: center;\n"],["\n flex-basis: auto;\n padding-left: 5px;\n text-align: center;\n"]))),pe=function(e){var t=e.dataSourceId,n=e.dataSource,r=e.dataSourceMetaData,o=e.onRequestClose,a=e.onDataSourceChange,s=e.numOfVisualizationsInUse,c=e.numOfInputsInUse,u=e.chainSearchesUsingDs,d=e.defaultOptions,h=e.hasDuplicateId,p=e.definition,f=e.allowSavingUneditedDS,m=l(k.useState(n),2),g=m[0],b=m[1],y=l(k.useState(t),2),_=y[0],v=y[1],M=l(k.useState(!1),2),w=M[0],x=M[1],A=l(k.useState(!1),2),L=A[0],S=A[1],j=k.useContext(z.default).featureFlags,Y=void 0===j?{}:j,I=k.useContext(N.default),H=k.useContext(V.default),R=k.useContext(X.default).dataSourceEditors,F=u.length;k.useEffect((function(){b(n)}),[n]),k.useEffect((function(){v(t)}),[t]),k.useEffect((function(){T.default(g,n)&&_===t?x(!1):x(!0)}),[g,n,_,t]);var G=k.useCallback((function(e,t){var n=t.value;b(i(i({},g),{name:n}))}),[g]),pe=k.useCallback((function(e){b(i(i({},g),{options:e}))}),[g]),fe=k.useCallback((function(e){b(e)}),[]),me=k.useCallback((function(e){v(e)}),[]),ge=k.useCallback((function(){a(_,g),o()}),[g,_,a,o]),be=k.useCallback((function(){S(!L)}),[L]),ye=k.useMemo((function(){var e,t,n=(null==R?void 0:R[g.type])||null,o=i({isNameEditable:!0,getDataSourceName:function(e){var t=e.dataSource;return null==t?void 0:t.name}},null===(t=null===(e=null==H?void 0:H.dataSources)||void 0===e?void 0:e[g.type])||void 0===t?void 0:t.config),a=o.isNameEditable,s=(0,o.getDataSourceName)({dataSource:g});return k.default.createElement(k.default.Fragment,null,k.default.createElement(E.default,{label:P._("Data Source Name")},a?k.default.createElement(C.default,{"data-test":"datasource-name-input",value:s||"",onChange:G}):k.default.createElement(ue,{title:s},k.default.createElement(de,null,s),k.default.createElement(he,null,k.default.createElement(O.default,{size:"13px"})))),n&&k.default.createElement(n,{dataSource:g,dataSourceId:_,meta:g.meta,defaultOptions:d,dataSourceMetaData:r,options:g.options,onOptionsChange:pe,definition:p,dashboardApi:I}))}),[R,g,G,_,d,r,pe,p,I,H]),_e=k.useMemo((function(){var e=q.getWarningTextForDataSource(s,F,c),t=e.vizText,n=e.chainSearchText,r=e.inputText;return w&&(t||n||r)?k.default.createElement(k.default.Fragment,null,k.default.createElement(ee,{"data-test":"warning-message",appearance:"banner",type:"warning"},k.default.createElement(te,{size:1.5}),k.default.createElement(ne,{"data-test":"warning-message-text"},k.default.createElement("strong",null,t),!(!t||!n)&&P._(" and "),k.default.createElement("strong",null,n),!(!t&&!n)&&!!r&&P._(" and "),k.default.createElement("strong",null,r),P._(" will be updated")))):null}),[s,F,c,w]),ve=k.useMemo((function(){var e=s+c+F>0?P._("Run & Save"):P._("Save");return k.default.createElement(Z,null,k.default.createElement(D.default,{style:K,inline:!1,label:P._("Cancel"),onClick:o,"data-test":"cancel-button","data-clickable":!0}),k.default.createElement(D.default,{disabled:!w&&!f,style:$,inline:!1,label:e,appearance:"primary",onClick:ge,"data-test":"save-button","data-clickable":!0}))}),[f,o,ge,w,s,F,c]),Me=k.useMemo((function(){var e,t,n;if(!g||!H)return null;var r=(null===(n=null===(t=null===(e=null==H?void 0:H.dataSources)||void 0===e?void 0:e[g.type])||void 0===t?void 0:t.config)||void 0===n?void 0:n.optionsSchema)||{};return B.createSimpleDSSchema(r)}),[g,H]),we=k.useMemo((function(){return Y.enableDSSourceEditor||Y.enableDSIdEditor?k.default.createElement(U.CombinedCodeIdEditor,{schema:Me,source:g,onSourceChange:fe,idLabel:P._("Data Source ID"),pattern:"^ds_[a-zA-Z0-9_-]+$",componentId:_,onIdChange:me,helpMessage:P._('Data Source IDs must start with "ds_" and contain only letters, numbers, dash, and underscore'),enableCodeEditor:Y.enableDSSourceEditor,enableIdEditor:Y.enableDSIdEditor,hasDuplicateId:h}):null}),[_,g,Me,Y.enableDSIdEditor,Y.enableDSSourceEditor,fe,h,me]),xe=k.useMemo((function(){var e,t,n,r=!!(null===(n=null===(t=null===(e=null==H?void 0:H.dataSources)||void 0===e?void 0:e[g.type])||void 0===t?void 0:t.config)||void 0===n?void 0:n.isChainEnabled),i=q.getInflection(s,P._("visualization"),P._("visualizations"),P._("0 visualizations")),o=q.getInflection(F,P._("chain search "),P._("chain searches "),P._("0 chain searches")),a=q.getInflection(c,P._("input"),P._("inputs"),P._("0 inputs"));return k.default.createElement(re,{"data-test":"metadata"},k.default.createElement(ie,null,k.default.createElement(oe,null,"Usage")),k.default.createElement(ie,null,k.default.createElement("div",{"data-test":"metadata-visualization"},i)),k.default.createElement(ie,null,k.default.createElement("div",{"data-test":"metadata-input"},a)),r&&k.default.createElement(ie,null,k.default.createElement("div",{"data-test":"metadata-chain-search"},o,!!F&&k.default.createElement(k.default.Fragment,null,k.default.createElement(le,{onClick:be},L?"("+P._("Hide list")+")":"("+P._("Show list")+")"),k.default.createElement(W.default,{innerStyle:ce,open:L,animation:"none"},k.default.createElement(ae,null,u.map((function(e){var t;return k.default.createElement(se,{key:e.id},(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.name)||P._("Unnamed"))}))))))))}),[g,u,be,F,c,s,L,H]);return k.default.createElement(Q,null,k.default.createElement(J,null,ye,xe,we),_e,ve)};pe.propTypes={dataSourceId:L.default.string,dataSource:L.default.object,dataSourceMetaData:L.default.object,defaultOptions:L.default.object,onDataSourceChange:L.default.func,onRequestClose:L.default.func,numOfVisualizationsInUse:L.default.number,numOfInputsInUse:L.default.number,chainSearchesUsingDs:L.default.array,hasDuplicateId:L.default.func,definition:L.default.object,allowSavingUneditedDS:L.default.bool},pe.defaultProps={dataSource:{},dataSourceMetaData:{},defaultOptions:{},onDataSourceChange:function(){},onRequestClose:function(){},numOfVisualizationsInUse:0,numOfInputsInUse:0,chainSearchesUsingDs:[],hasDuplicateId:function(){return!1},definition:{},allowSavingUneditedDS:!1},G.addDefaultTheme("enterprise",{textColor:R.enterprise.textColor,infoBackgroundColor:R.enterprise.infoColorL50}),G.addTheme("enterpriseDark",{textColor:R.enterpriseDark.textColor,infoBackgroundColor:R.enterpriseDark.infoColor}),G.addTheme("scp",{textColor:R.scp.textColor,infoBackgroundColor:R.enterpriseDark.infoColor}),t.default=pe,t.themes=G.toThemes()},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},h=this&&this.__spread||function(){for(var e=[],t=0;t0||u?te(e,{mode:n,preset:d,definition:r,fullscreen:o,dashboardApi:i.dashboardApi,onDefinitionChange:i.handleDefinitionChange,toolbarItems:c,showTitle:u,showGrid:a,activePanel:s}):null},i.renderCollapsibleToolbar=function(){return i.renderToolbar(D.CollapsibleToolbar)},i.renderSidebarPanel=f.default((function(e,t,n,r,i,a){return w.default.createElement(e,o({},t,{preset:n,definition:r,onDefinitionChange:i,selectedItems:a}))})),i.renderSidebar=function(){var e=i.props.preset,n=i.state,r=n.definition,o=n.selectedItems,a=n.activePanel,s=n.panelProps,l=i.sidebars[a];return l&&l.requiredSelectedViz&&0===o.length&&(l=i.sidebars.config),w.default.createElement(X.default,{title:t.getMemoizedSidebarTitle({sidebar:l,activePanel:a,definition:r,panelProps:s,preset:e,selectedItems:o}),name:l?l.key:"closed-sidebar",open:!!l,onRequestClose:i.handleCloseSidebar,enableCloseButton:l&&l.enableCloseButton},l&&i.renderSidebarPanel(l.panel,s,e,r,i.handleDefinitionChange,o))},i.renderDashboardCore=function(e,t){var n=i.props,r=n.preset,a=n.dashboardPlugin,s=n.actionMenus,l=n.handleValidationError,c=i.state,u=c.mode,d=c.definition,h=c.tokenBinding,p=c.fullscreen,f=c.selectedItems,m=c.showGrid,g=d;return p&&((g=b.default(d)).layout.options=o(o({},g.layout.options),{display:"auto-scale"})),w.default.createElement(C.default,{mode:u,preset:r,width:p?"100%":e,height:p?"100%":t,showGrid:m,tokenBinding:h,onTokenBindingChange:i.handleTokenBindingChange,dashboardCorePlugin:F.default(a,i.searchMetricsCollector),definition:g,onDefinitionChange:i.handleDefinitionChange,selectedItems:f,onItemsSelect:i.handleItemsSelect,actionMenus:i.cloneActionMenus(s),dashboardCoreApiRef:i.registerDashboardCoreApi,onValidationError:l})},i.historyManager=new B.default(n.initialDefinition),i.historyManager.subscribe((function(e){var t=Object.keys(e.visualizations||{}),n=Object.keys(e.inputs||{});i.setState((function(r){return{definition:e,selectedItems:r.selectedItems.filter((function(e){var r=e.id;return t.includes(r)||n.includes(r)}))}}),(function(){i.props.onDefinitionChange(e)}))})),i.dashboardApi=new R.default(i),i.clipboard=[],i.offsetMultiplier=1,i.state={fullscreen:!1,mode:n.initialMode,showGrid:"grid"!==y.default(n.initialDefinition,"layout.type"),tokenBinding:b.default(n.initialTokenBinding),definition:n.initialDefinition,selectedItems:[],activePanel:"config",panelProps:{}},i.sidebars=o({config:{key:"config-sidebar",title:k._("Configuration"),panel:K.default,requiredSelectedViz:!1},dataOverview:{title:k._("Data Overview"),key:"data-overview-sidebar",panel:$.default,requiredSelectedViz:!1},connectData:{title:k._("Select Data"),key:"connect-data-sidebar",panel:Q.default,requiredSelectedViz:!0},editData:{title:k._("Edit Data Source"),key:"edit-data-sidebar",panel:J.default,requiredSelectedViz:!1,enableCloseButton:!1},newData:{title:k._("New Data Source"),key:"new-data-sidebar",panel:Z.default,requiredSelectedViz:!1,enableCloseButton:!1},newDataForViz:{title:k._("New Data Source"),key:"new-data-for-viz-sidebar",panel:Z.default,requiredSelectedViz:!0,enableCloseButton:!1},drilldown:{key:"drilldown-sidebar",title:k._("Configuration"),panel:G.default,requiredSelectedViz:!0}},n.sidebars),i}return i(n,e),n.prototype.componentDidMount=function(){this.searchMetricsCollector=new W.default({dataSourceCount:Object.keys(this.state.definition.dataSources||{}).length,timeout:6e4,onAllMetricsCollected:this.sendDashboardLoadedMetrics}),this.props.dashboardApiRef(this.dashboardApi),this.setupKeyboardSubscriptions(),this.setupKeyboardTelemetry(),this.logDashboardMountedMetrics(),this.setupFullscreenSubscription()},n.prototype.shouldComponentUpdate=function(e,t){return!T.default(this.state,t)||!T.default(this.props,e,{omitKeys:["initialDefinition","initialMode","initialTokenBinding"]})},n.prototype.componentWillUnmount=function(){if(this.historyManager.teardown(),this.props.keyboardListener&&this.props.keyboardListener.unsubscribeAll&&this.props.keyboardListener.unsubscribeAll(),y.default(this.props,"telemetry.flush")){var e={metadata:o({},this.props.metadata),definition:this.state.definition,pageAction:"dashboard.unmount"};this.props.telemetry.flush(e)}this.searchMetricsCollector.forceComplete({isUnmounting:!0}),this.cleanUpFullscreenSubscription()},n.prototype.setupKeyboardSubscriptions=function(){var e=this.props.keyboardListener;y.default(e,"subscribe")&&(e.subscribe("copy",this.handleCopy),e.subscribe("paste",this.handlePaste),e.subscribe("duplicate",this.handleDuplicate),e.subscribe("selectAll",this.handleSelectAll),e.subscribe("selectNone",this.handleSelectNone),e.subscribe("cancel",this.handleSelectNone),e.subscribe("removeItems",this.handleRemoveItems),e.subscribe("undo",this.handleUndo),e.subscribe("redo",this.handleRedo))},n.prototype.setupKeyboardTelemetry=function(){var e=this.props,t=e.keyboardListener,n=e.telemetry;if(y.default(n,"collect")&&y.default(t,"subscribe")){["copy","paste","duplicate","selectAll","selectNone","cancel","removeItems","undo","redo"].forEach((function(e){t.subscribe(e,(function(){return n.collect({source:"keyboard",event:e})}))}))}},n.prototype.setupFullscreenSubscription=function(){A.default.addEventListener("fullscreenchange",this.handleFullscreenChange)},n.prototype.cleanUpFullscreenSubscription=function(){A.default.removeEventListener("fullscreenchange",this.handleFullscreenChange)},n.prototype.emitTelemetry=function(e){if(y.default(this.props,"telemetry.emit")){var t=o({metadata:o({},this.props.metadata)},e);this.props.telemetry.emit(t)}},n.prototype.notifyDashboardCoreApiReady=function(){this.onDashboardCoreApiReady&&M.default(this.onDashboardCoreApiReady)&&this.onDashboardCoreApiReady()},n.prototype.logDashboardMountedMetrics=function(){this.emitTelemetry({definition:this.props.initialDefinition,pageAction:"dashboard.initialize"})},n.prototype.isEditMode=function(){return"edit"===this.state.mode},n.prototype.canUseCollapsibleToolbar=function(){var e=this.props.featureFlags;return(null==e?void 0:e.enableCollapsibleToolbar)&&!this.isEditMode()&&!this.state.fullscreen},n.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.preset,i=this.getEditors(this.props),o=this.state,a=o.mode,s=o.fullscreen;return w.default.createElement(I.DashboardApiProvider,{value:this.dashboardApi},w.default.createElement(U.PresetProvider,{value:r},w.default.createElement(q.EditorProvider,{value:i},w.default.createElement(V.default,{mode:a,width:t,height:n,fullscreen:s,onDefinitionChange:this.handleDefinitionChange,renderToolbar:this.canUseCollapsibleToolbar()?this.renderCollapsibleToolbar:this.renderToolbar,renderDashboardHeader:this.renderDashboardHeader,renderDashboardCore:this.renderDashboardCore,renderSidebar:this.renderSidebar}))))},n}(w.Component);t.Dashboard=ne;var re=x.default.shape({key:x.default.string.isRequired,title:x.default.oneOfType([x.default.string,x.default.func]).isRequired,panel:x.default.elementType.isRequired,requiredSelectedViz:x.default.bool});ne.propTypes={width:x.default.oneOfType([x.default.string,x.default.number]).isRequired,height:x.default.oneOfType([x.default.string,x.default.number]).isRequired,preset:x.default.object,initialMode:x.default.string,onModeChange:x.default.func,initialDefinition:x.default.object.isRequired,onDefinitionChange:x.default.func,onFullscreenChange:x.default.func,initialTokenBinding:x.default.object,onTokenBindingChange:x.default.func,sidebars:x.default.shape({config:re,dataOverview:re,connectData:re,editData:re,newData:re,newDataForViz:re,drilldown:re}),dashboardPlugin:x.default.shape({onInitialize:x.default.func,onEventTrigger:x.default.func,onLinkToUrl:x.default.func}),dashboardApiRef:x.default.func,toolbarItems:x.default.arrayOf(x.default.element),showToolbarTitle:x.default.bool,actionMenus:x.default.arrayOf(x.default.element),layoutEditors:x.default.objectOf(x.default.elementType),layoutItemEditors:x.default.objectOf(x.default.elementType),visualizationEditors:x.default.objectOf(x.default.elementType),dataSourceEditors:x.default.objectOf(x.default.elementType),vizConfigPanelEditors:x.default.shape({dataSourceConfig:x.default.elementType,drilldownList:x.default.elementType}),dataSourcesPanel:x.default.elementType,fetchDataSources:x.default.func,drilldownEditors:x.default.objectOf(x.default.elementType),metadata:x.default.object,handleValidationError:x.default.func,keyboardListener:x.default.object,telemetry:x.default.object,featureFlags:x.default.object},ne.defaultProps={dashboardPlugin:{},initialTokenBinding:{},initialMode:"view",onFullscreenChange:g.default,onDefinitionChange:g.default,onTokenBindingChange:g.default,onModeChange:g.default,toolbarItems:[],showToolbarTitle:!1,actionMenus:[],sidebars:{},layoutEditors:j.LayoutEditors,layoutItemEditors:j.LayoutItemEditors,visualizationEditors:j.VisualizationEditors,dataSourceEditors:j.CloudDataSourceEditors,vizConfigPanelEditors:{},dataSourcesPanel:E.default,drilldownEditors:j.DrilldownEditors,preset:P.default,fetchDataSources:g.default,dashboardApiRef:g.default,metadata:{},handleValidationError:g.default},t.themes=O.mergeThemes(Y.themes,X.themes,D.themes,D.CollapsibleToolbarThemes,K.themes,Q.themes,C.themes,V.themes,$.themes,E.themes,j.DrilldownEditorsThemes,G.themes,j.CloudDataSourceEditorsThemes,J.themes,j.LayoutEditorsThemes,j.LayoutItemEditorsThemes,Z.themes,P.themes,j.VisualizationEditorsThemes);var ie;t.default=H.withUpdatedPreset((ie=ne,function(e){var t=w.useContext(z.default),n=t.keyboardListener,r=t.featureFlags,i=w.useContext(N.TelemetryContext);return w.default.createElement(ie,o({keyboardListener:n,telemetry:i,featureFlags:r},e))}))},function(e,t){e.exports=n("yrHR")},function(e,t){e.exports=n("sygR")},function(e,t){e.exports=n("RTFW")},function(e,t){e.exports=n("jliR")},function(e,t){e.exports=n("yhou")},function(e,t){e.exports=n("FzPt")},function(e,t){e.exports=n("pUm+")},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spread||function(){for(var e=[],t=0;tthis.maxDepth&&(t=t.slice(1)),this.definitionIndex=t.length-1,this.definitions=t,this.notify()}},e.prototype.getCurrentDefinition=function(){return this.definitions[this.definitionIndex]},e.prototype.canUndo=function(){return this.definitionIndex>0},e.prototype.canRedo=function(){return this.definitionIndex0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},d=this&&this.__spread||function(){for(var e=[],t=0;t1;return y.default.createElement(L,null,y.default.createElement(T,null,y.default.createElement(x.default,{label:A._("On Click")},y.default.createElement(M.default,{defaultValue:o,onChange:this.handleEditorChange},c)),u&&y.default.createElement(x.default,{label:A._("Event")},y.default.createElement(M.default,{defaultValue:a[0],onChange:this.handleEventChange},d([y.default.createElement(M.default.Option,{label:A._("All Events"),value:"any",key:"anyEvent"})],k.default(n,(function(e,t){return y.default.createElement(M.default.Option,{value:t,key:t,label:e})}))))),l&&y.default.createElement(x.default,null,y.default.createElement(l,{options:s,onChange:this.handleOptionsChange,error:i}))),y.default.createElement(S,null,y.default.createElement(w.default,{style:O,inline:!1,label:A._("Cancel"),onClick:this.handleCancel}),y.default.createElement(w.default,{style:C,inline:!1,label:A._("Save"),appearance:"primary",onClick:this.handleSave})))},t}(y.PureComponent);D.propTypes={drilldownEditors:_.default.object,eventHandler:_.default.object,vizEvents:_.default.array,onDrilldownChange:_.default.func,onRequestClose:_.default.func},D.defaultProps={drilldownEditors:{},eventHandler:{type:"none",options:{events:["any"]}},vizEvents:["any"],onDrilldownChange:function(){},onRequestClose:function(){}},t.default=D,t.themes={}},function(e,t){e.exports=n("mbB6")},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},c=this&&this.__spread||function(){for(var e=[],t=0;t0||W.optionalDataSources&&W.optionalDataSources.length>0),Q=u.default(t.dataSources||{},d.default(G)),J=!["viz.fillergauge","viz.markergauge","viz.punchcard","abslayout.line"].includes(F.type),Z=c.default(L,[F.type],_.DynamicEditorWrapper);return s.default.createElement("div",{"data-test":"viz-config-panel","data-id":r},s.default.createElement(A.default,{key:"viz-type-switcher",visualization:F,onVisualizationChange:D,preset:o}),$&&s.default.createElement(O,{key:"datasource-config",dataContract:W,dataSourceBinding:G,dataSources:Q,onEditDataSource:j,onNewDataSource:z,onRemoveDataSource:N}),K&&s.default.createElement(K,{selectedVisualizations:n,layoutStructure:B.getLayoutStructure(),onLayoutStructureChange:Y}),s.default.createElement(Z,{visualization:F,onVisualizationChange:D,optionSchema:q,dataContract:W,editorLayout:U}),J&&s.default.createElement(C,{key:"dropdown-config",drilldownEditors:k,visualization:F,onDrilldownCreate:I,onEditDrilldown:H,onRemoveDrilldown:R}),X)};k.propTypes={definition:l.default.object.isRequired,selectedVisualizations:l.default.arrayOf(l.default.string).isRequired},t.themes=f.mergeThemes(A.themes,w.themes,x.themes),t.default=k},function(e,t){e.exports=n("nDih")},function(e,t){e.exports=n("h++M")},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.themes=void 0;var l=a(n(0)),c=s(n(1)),u=s(n(5)),d=s(n(4)),h=n(7),p=s(n(38)),f=a(n(37)),m=s(n(19)),g=s(n(20)),b=s(n(8)),y={height:"30px",lineHeight:"30px",padding:"0px 5px 0px 10px"},_=d.default.div(M||(M=r(["\n padding: 10px 13px 10px 15px;\n width: 314px;\n"],["\n padding: 10px 13px 10px 15px;\n width: 314px;\n"]))),v=function(e){var t=e.type,n=e.id,r=e.onEdit,i=e.onDelete,o=l.useContext(b.default).drilldownEditors,a=l.useCallback((function(){r(n)}),[r,n]),s=l.useCallback((function(){i(n)}),[i,n]),c=u.default(o,[t],null);return c?l.default.createElement(f.default,{key:t+"-"+n,"data-test":"drilldown-pill","data-test-id":t+"-"+n,name:c.label,onEditClick:a,onRemoveClick:s}):null};v.propTypes={type:c.default.string,id:c.default.number,onEdit:c.default.func,onDelete:c.default.func};var M,w=function(e){var t=e.visualization,n=e.onDrilldownCreate,r=e.onEditDrilldown,i=e.onRemoveDrilldown,o=t.eventHandlers||[],a=o.length>0;return l.default.createElement(l.default.Fragment,null,l.default.createElement(m.default,{open:!0,label:h._("Drilldown Settings")},l.default.createElement(_,{"data-test":"drilldown-settings"},o.map((function(e,t){return l.default.createElement(v,{key:e.type+"-"+t,type:e.type,id:t,onEdit:r,onDelete:i})})),!a&&l.default.createElement(p.default,{style:y,onClick:n,"data-test":"add-drilldown"},"+ "+h._("Add Drilldown")))),l.default.createElement(g.default,null))};w.propTypes={visualization:c.default.object,onDrilldownCreate:c.default.func,onEditDrilldown:c.default.func,onRemoveDrilldown:c.default.func},t.themes=f.themes,t.default=w},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0||V.optionalDataSources&&V.optionalDataSources.length>0),$=d.default(t.dataSources||{},h.default(W)),Q=u.default(s,U,M.DynamicEditorWrapper),J=u.default(y,"dataSourceConfig",S.default),Z=l.useMemo((function(){return A.createSimpleInputSchema(X)}),[X]),ee=l.useMemo((function(){return D||E?l.default.createElement(M.CombinedCodeIdEditor,{schema:Z,source:z,onSourceChange:N,idLabel:_._("Input ID"),pattern:"^input_[a-zA-Z0-9_-]+$",componentId:j,onIdChange:F,helpMessage:_._('Input IDs must start with "input_" and contain only letters, numbers, dash, and underscore'),enableCodeEditor:D,enableIdEditor:E,hasDuplicateId:B}):null}),[D,E,Z,z,N,j,F,B]);return null==z?null:l.default.createElement(l.default.Fragment,null,l.default.createElement(m.default,{open:!0,label:_._("INPUT OPTIONS")},l.default.createElement(g.default,{label:_._("Title")},l.default.createElement(b.default,{value:q,onValueChange:Y,uniqKey:z,"data-test":"input-title-config"})),O&&l.default.createElement(Q,{visualization:z,onVisualizationChange:N,optionSchema:X,dataContract:V,editorLayout:G})),l.default.createElement(f.default,null),C&&K&&l.default.createElement(J,{key:"input-datasource-config",dataContract:V,dataSourceBinding:W,dataSources:$,onEditDataSource:I,onNewDataSource:H,onRemoveDataSource:R}),ee)};T.propTypes={definition:c.default.object.isRequired,selectedInputs:c.default.arrayOf(c.default.string).isRequired},t.themes=y.mergeThemes(S.themes,f.themes),t.default=T},function(e,t){e.exports=n("uZih")},function(e,t){e.exports=n("ZZuX")},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0,x=Object(j.isColor)(b)&&b||Object(j.isColor)(n.backgroundColor)&&n.backgroundColor||null,A=u&&"view"===c?Object(L.getClickHandler)(l,{value:p,deltaValue:f}):null;return d(x?{backgroundColor:x}:{}),v.a.createElement(T.a,a()({width:i,height:o,style:s},n,{majorColor:_,value:p,deltaValue:f,deltaColor:m,graphData:g,backgroundColor:x,showTrendIndicator:M,showSparkline:w,onValueClick:A}))}}]),t}(_.Component);y()(q,"propTypes",i()({},w.a.propTypes)),y()(q,"defaultProps",i()({},w.a.defaultProps,{height:W})),y()(q,"dataContract",O.dataContract),y()(q,"vizContract",{initialDimension:{width:F,height:W}}),y()(q,"schema",N),y()(q,"editor",R),B.addDefaultTheme("enterprise",{defaultBackgroundColor:k.enterprise.defaultBackgroundColor,descriptionOpacity:k.enterprise.descriptionOpacity}),B.addTheme("enterpriseDark",{defaultBackgroundColor:k.enterpriseDark.defaultBackgroundColor,descriptionOpacity:k.enterpriseDark.descriptionOpacity}),B.addTheme("scp",{defaultBackgroundColor:k.scp.defaultBackgroundColor,descriptionOpacity:k.enterpriseDark.descriptionOpacity});var U=Object(A.mergeThemes)(B.toThemes(),S.themes);t.default=Object(x.withVisualizationHOCs)({enableBackgroundColorOption:!0,defaultBackgroundColor:B.themeVariable("defaultBackgroundColor"),descriptionOpacity:B.themeVariable("descriptionOpacity"),placeholder:v.a.createElement(P.a,{icon:v.a.createElement(D.a,null)})})(q)},66:function(e,t){e.exports=n("pvAL")},7:function(e,t){e.exports=n("cXQ6")},8:function(e,t){e.exports=n("Q8Lf")},9:function(e,t){e.exports=n("M0mc")},95:function(e,t){e.exports=n("PFqK")},96:function(e,t){e.exports=n("P/js")}})},"/B7a":function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},i=n("yrnK"),o=n("5YWe"),a=n("5zEQ"),s=n("OqdO"),l=function(e){function t(t,n,r,i,o){e.call(this),this.callbackFunc=t,this.selector=n,this.args=r,this.context=i,this.scheduler=o}return r(t,e),t.create=function(e,n,r){return void 0===n&&(n=void 0),function(){for(var i=[],o=0;o=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(i||(i={}));var d=function(e){function t(){var t=e.call(this)||this;return t.dispatched=!1,t.activeTouches={},t.handle=null,t.targets=[],t.ignoreTargets=[],t._lastSetTapCountTime=0,t._register(s.j(document,"touchstart",(function(e){return t.onTouchStart(e)}))),t._register(s.j(document,"touchend",(function(e){return t.onTouchEnd(e)}))),t._register(s.j(document,"touchmove",(function(e){return t.onTouchMove(e)}))),t}return c(t,e),t.addTarget=function(e){return t.isTouchDevice()?(t.INSTANCE||(t.INSTANCE=new t),t.INSTANCE.targets.push(e),{dispose:function(){t.INSTANCE.targets=t.INSTANCE.targets.filter((function(t){return t!==e}))}}):a.a.None},t.ignoreTarget=function(e){return t.isTouchDevice()?(t.INSTANCE||(t.INSTANCE=new t),t.INSTANCE.ignoreTargets.push(e),{dispose:function(){t.INSTANCE.ignoreTargets=t.INSTANCE.ignoreTargets.filter((function(t){return t!==e}))}}):a.a.None},t.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},t.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),e.prototype.dispose.call(this)},t.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,r=e.targetTouches.length;n=t.HOLD_DELAY&&Math.abs(u.initialPageX-o.v(u.rollingPageX))<30&&Math.abs(u.initialPageY-o.v(u.rollingPageY))<30){var h;(h=s.newGestureEvent(i.Contextmenu,u.initialTarget)).pageX=o.v(u.rollingPageX),h.pageY=o.v(u.rollingPageY),s.dispatchEvent(h)}else if(1===r){var p=o.v(u.rollingPageX),f=o.v(u.rollingPageY),m=o.v(u.rollingTimestamps)-u.rollingTimestamps[0],g=p-u.rollingPageX[0],b=f-u.rollingPageY[0],y=s.targets.filter((function(e){return u.initialTarget instanceof Node&&e.contains(u.initialTarget)}));s.inertia(y,n,Math.abs(g)/m,g>0?1:-1,p,Math.abs(b)/m,b>0?1:-1,f)}s.dispatchEvent(s.newGestureEvent(i.End,u.initialTarget)),delete s.activeTouches[c.identifier]},s=this,l=0,c=e.changedTouches.length;lt.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=r,e.tapCount=o}else e.type!==i.Change&&e.type!==i.Contextmenu||(this._lastSetTapCountTime=0);for(var a=0;a0&&(m=!1,p=o*r*h),l>0&&(m=!1,f=c*l*h);var g=d.newGestureEvent(i.Change);g.translationX=p,g.translationY=f,e.forEach((function(e){return e.dispatchEvent(g)})),m||d.inertia(e,s,r,o,a+p,l,c,u+f)}))},t.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,r=e.changedTouches.length;n3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(a.pageX),s.rollingPageY.push(a.pageY),s.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",a)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.SCROLL_FRICTION=-.005,t.HOLD_DELAY=700,t.CLEAR_TAP_COUNT_TIME=400,u([l.a],t,"isTouchDevice",null),t}(a.a)},"/FME":function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n("ROmd"))},"/GOC":function(e,t,n){"use strict";var r=n("PBB4"),i=n.n(r)()((function(e){return e[1]}));i.push([e.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n\r\n/* Default standalone editor font */\r\n.monaco-editor {\r\n\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", "Ubuntu", "Droid Sans", sans-serif;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label {\r\n\tstroke-width: 1.2px;\r\n}\r\n\r\n.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\r\n.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label {\r\n\tstroke-width: 1.2px;\r\n}\r\n\r\n.monaco-editor-hover p {\r\n\tmargin: 0;\r\n}\r\n\r\n/* The hc-black theme is already high contrast optimized */\r\n.monaco-editor.hc-black {\r\n\t-ms-high-contrast-adjust: none;\r\n}\r\n/* In case the browser goes into high contrast mode and the editor is not configured with the hc-black theme */\r\n@media screen and (-ms-high-contrast:active) {\r\n\r\n\t/* current line highlight */\r\n\t.monaco-editor.vs .view-overlays .current-line,\r\n\t.monaco-editor.vs-dark .view-overlays .current-line {\r\n\t\tborder-color: windowtext !important;\r\n\t\tborder-left: 0;\r\n\t\tborder-right: 0;\r\n\t}\r\n\r\n\t/* view cursors */\r\n\t.monaco-editor.vs .cursor,\r\n\t.monaco-editor.vs-dark .cursor {\r\n\t\tbackground-color: windowtext !important;\r\n\t}\r\n\t/* dnd target */\r\n\t.monaco-editor.vs .dnd-target,\r\n\t.monaco-editor.vs-dark .dnd-target {\r\n\t\tborder-color: windowtext !important;\r\n\t}\r\n\r\n\t/* selected text background */\r\n\t.monaco-editor.vs .selected-text,\r\n\t.monaco-editor.vs-dark .selected-text {\r\n\t\tbackground-color: highlight !important;\r\n\t}\r\n\r\n\t/* allow the text to have a transparent background. */\r\n\t.monaco-editor.vs .view-line,\r\n\t.monaco-editor.vs-dark .view-line {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t}\r\n\r\n\t/* text color */\r\n\t.monaco-editor.vs .view-line span,\r\n\t.monaco-editor.vs-dark .view-line span {\r\n\t\tcolor: windowtext !important;\r\n\t}\r\n\t/* selected text color */\r\n\t.monaco-editor.vs .view-line span.inline-selected-text,\r\n\t.monaco-editor.vs-dark .view-line span.inline-selected-text {\r\n\t\tcolor: highlighttext !important;\r\n\t}\r\n\r\n\t/* allow decorations */\r\n\t.monaco-editor.vs .view-overlays,\r\n\t.monaco-editor.vs-dark .view-overlays {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t}\r\n\r\n\t/* various decorations */\r\n\t.monaco-editor.vs .selectionHighlight,\r\n\t.monaco-editor.vs-dark .selectionHighlight,\r\n\t.monaco-editor.vs .wordHighlight,\r\n\t.monaco-editor.vs-dark .wordHighlight,\r\n\t.monaco-editor.vs .wordHighlightStrong,\r\n\t.monaco-editor.vs-dark .wordHighlightStrong,\r\n\t.monaco-editor.vs .reference-decoration,\r\n\t.monaco-editor.vs-dark .reference-decoration {\r\n\t\tborder: 2px dotted highlight !important;\r\n\t\tbackground: transparent !important;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .rangeHighlight,\r\n\t.monaco-editor.vs-dark .rangeHighlight {\r\n\t\tbackground: transparent !important;\r\n\t\tborder: 1px dotted activeborder !important;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .bracket-match,\r\n\t.monaco-editor.vs-dark .bracket-match {\r\n\t\tborder-color: windowtext !important;\r\n\t\tbackground: transparent !important;\r\n\t}\r\n\r\n\t/* find widget */\r\n\t.monaco-editor.vs .findMatch,\r\n\t.monaco-editor.vs-dark .findMatch,\r\n\t.monaco-editor.vs .currentFindMatch,\r\n\t.monaco-editor.vs-dark .currentFindMatch {\r\n\t\tborder: 2px dotted activeborder !important;\r\n\t\tbackground: transparent !important;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .find-widget,\r\n\t.monaco-editor.vs-dark .find-widget {\r\n\t\tborder: 1px solid windowtext;\r\n\t}\r\n\r\n\t/* list - used by suggest widget */\r\n\t.monaco-editor.vs .monaco-list .monaco-list-row,\r\n\t.monaco-editor.vs-dark .monaco-list .monaco-list-row {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t\tcolor: windowtext !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-list .monaco-list-row.focused,\r\n\t.monaco-editor.vs-dark .monaco-list .monaco-list-row.focused {\r\n\t\tcolor: highlighttext !important;\r\n\t\tbackground-color: highlight !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-list .monaco-list-row:hover,\r\n\t.monaco-editor.vs-dark .monaco-list .monaco-list-row:hover {\r\n\t\tbackground: transparent !important;\r\n\t\tborder: 1px solid highlight;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\t/* tree */\r\n\t.monaco-editor.vs .monaco-tree .monaco-tree-row,\r\n\t.monaco-editor.vs-dark .monaco-tree .monaco-tree-row {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t\tcolor: windowtext !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-tree .monaco-tree-row.selected,\r\n\t.monaco-editor.vs-dark .monaco-tree .monaco-tree-row.selected,\r\n\t.monaco-editor.vs .monaco-tree .monaco-tree-row.focused,\r\n\t.monaco-editor.vs-dark .monaco-tree .monaco-tree-row.focused {\r\n\t\tcolor: highlighttext !important;\r\n\t\tbackground-color: highlight !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-tree .monaco-tree-row:hover,\r\n\t.monaco-editor.vs-dark .monaco-tree .monaco-tree-row:hover {\r\n\t\tbackground: transparent !important;\r\n\t\tborder: 1px solid highlight;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\t/* scrollbars */\r\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar,\r\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t\tbackground: background !important;\r\n\t\tborder: 1px solid windowtext;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider,\r\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider {\r\n\t\tbackground: windowtext !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider:hover,\r\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider:hover {\r\n\t\tbackground: highlight !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider.active,\r\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active {\r\n\t\tbackground: highlight !important;\r\n\t}\r\n\r\n\t/* overview ruler */\r\n\t.monaco-editor.vs .decorationsOverviewRuler,\r\n\t.monaco-editor.vs-dark .decorationsOverviewRuler {\r\n\t\topacity: 0;\r\n\t}\r\n\r\n\t/* minimap */\r\n\t.monaco-editor.vs .minimap,\r\n\t.monaco-editor.vs-dark .minimap {\r\n\t\tdisplay: none;\r\n\t}\r\n\r\n\t/* squiggles */\r\n\t.monaco-editor.vs .squiggly-d-error,\r\n\t.monaco-editor.vs-dark .squiggly-d-error {\r\n\t\tbackground: transparent !important;\r\n\t\tborder-bottom: 4px double #E47777;\r\n\t}\r\n\t.monaco-editor.vs .squiggly-c-warning,\r\n\t.monaco-editor.vs-dark .squiggly-c-warning {\r\n\t\tborder-bottom: 4px double #71B771;\r\n\t}\r\n\t.monaco-editor.vs .squiggly-b-info,\r\n\t.monaco-editor.vs-dark .squiggly-b-info {\r\n\t\tborder-bottom: 4px double #71B771;\r\n\t}\r\n\t.monaco-editor.vs .squiggly-a-hint,\r\n\t.monaco-editor.vs-dark .squiggly-a-hint {\r\n\t\tborder-bottom: 4px double #6c6c6c;\r\n\t}\r\n\r\n\t/* contextmenu */\r\n\t.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\r\n\t.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t\tcolor: highlighttext !important;\r\n\t\tbackground-color: highlight !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label,\r\n\t.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t\tbackground: transparent !important;\r\n\t\tborder: 1px solid highlight;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\t/* diff editor */\r\n\t.monaco-diff-editor.vs .diffOverviewRuler,\r\n\t.monaco-diff-editor.vs-dark .diffOverviewRuler {\r\n\t\tdisplay: none;\r\n\t}\r\n\t.monaco-editor.vs .line-insert,\r\n\t.monaco-editor.vs-dark .line-insert,\r\n\t.monaco-editor.vs .line-delete,\r\n\t.monaco-editor.vs-dark .line-delete {\r\n\t\tbackground: transparent !important;\r\n\t\tborder: 1px solid highlight !important;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .char-insert,\r\n\t.monaco-editor.vs-dark .char-insert,\r\n\t.monaco-editor.vs .char-delete,\r\n\t.monaco-editor.vs-dark .char-delete {\r\n\t\tbackground: transparent !important;\r\n\t}\r\n}\r\n\r\n/*.monaco-editor.vs [tabindex="0"]:focus {\r\n\toutline: 1px solid rgba(0, 122, 204, 0.4);\r\n\toutline-offset: -1px;\r\n\topacity: 1 !important;\r\n}\r\n\r\n.monaco-editor.vs-dark [tabindex="0"]:focus {\r\n\toutline: 1px solid rgba(14, 99, 156, 0.6);\r\n\toutline-offset: -1px;\r\n\topacity: 1 !important;\r\n}*/\r\n',""]),t.a=i},"/KUT":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=126)}({0:function(e,t){e.exports=n("mwAw")},1:function(e,t){e.exports=n("Cbaw")},126:function(e,t,n){"use strict";n.r(t);var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(3),l=n.n(s),c=n(9),u=n.n(c),d=n(0),h=l()(u.a).withConfig({displayName:"ButtonGroupStyles__StyledBox",componentId:"sc-14fs2xs-0"})(["position:relative;[data-inline] + &{margin-left:",";}"],Object(d.variable)("spacingHalf"));function p(){return(p=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var m={children:a.a.node,elementRef:a.a.func,inline:a.a.bool};function g(e){var t=e.children,n=f(e,["children"]),o=r.Children.toArray(t).filter(r.isValidElement).map((function(e,t,n){var i=n.length;return Object(r.cloneElement)(e,{prepend:t>0,append:t=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("gIIS"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("fRV1"))},"/Tfb":function(e,t,n){"use strict";n.r(t),n.d(t,"EditorActionCommandEntry",(function(){return m})),n.d(t,"QuickCommandAction",(function(){return g}));var r,i=n("wEWA"),o=n("tdC6"),a=n("+8lf"),s=n("yQJK"),l=n("+mCb"),c=n("1MHj"),u=n("YNG1"),d=n("LM6f"),h=n("BMxg"),p=n("C89N"),f=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a.key=t,a.keyAriaLabel=n,a.setHighlights(r),a.action=i,a.editor=o,a}return f(t,e),t.prototype.getLabel=function(){return this.action.label},t.prototype.getAriaLabel=function(){return this.keyAriaLabel?i.r(p.d.ariaLabelEntryWithKey,this.getLabel(),this.keyAriaLabel):i.r(p.d.ariaLabelEntry,this.getLabel())},t.prototype.getGroupLabel=function(){return this.key},t.prototype.run=function(e,t){var n=this;return 1===e&&(setTimeout((function(){n.editor.focus();try{(n.action.run()||Promise.resolve()).then(void 0,a.e)}catch(e){Object(a.e)(e)}}),50),!0)},t}(l.b),g=function(e){function t(){return e.call(this,p.d.quickCommandActionInput,{id:"editor.action.quickCommand",label:p.d.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:u.a.focus,primary:o.i?571:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})||this}return f(t,e),t.prototype.run=function(e,t){var n=this,r=e.get(h.a);this._show(this.getController(t),{getModel:function(e){return new l.c(n._editorActionsToEntries(r,t,e))},getAutoFocus:function(e){return{autoFocusFirstEntry:!0,autoFocusPrefixMatch:e}}})},t.prototype._sort=function(e,t){var n=(e.getLabel()||"").toLowerCase(),r=(t.getLabel()||"").toLowerCase();return n.localeCompare(r)},t.prototype._editorActionsToEntries=function(e,t,n){for(var r=[],i=0,o=t.getSupportedActions();ii;)X(e,n=r[i++],t[n]);return e},K=function(e){var t=N.call(this,e=M(e,!0));return!(this===R&&i(I,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(I,e)||i(this,j)&&this[j][e])||t)},$=function(e,t){if(e=v(e),t=M(t,!0),e!==R||!i(I,t)||i(H,t)){var n=T(e,t);return!n||!i(I,t)||i(e,j)&&e[j][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=C(v(e)),r=[],o=0;n.length>o;)i(I,t=n[o++])||t==j||t==l||r.push(t);return r},J=function(e){for(var t,n=e===R,r=C(n?H:v(e)),o=[],a=0;r.length>a;)!i(I,t=r[a++])||n&&!i(R,t)||o.push(I[t]);return o};B||(s((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===R&&t.call(H,n),i(this,j)&&i(this[j],e)&&(this[j][e]=!1),q(this,e,w(1,n))};return o&&W&&q(R,e,{configurable:!0,set:t}),U(e)}).prototype,"toString",(function(){return this._k})),k.f=$,L.f=X,n("DJFw").f=A.f=Q,n("yhzQ").f=K,n("5Sgs").f=J,o&&!n("Tp4D")&&s(R,"propertyIsEnumerable",K,!0),f.f=function(e){return U(p(e))}),a(a.G+a.W+a.F*!B,{Symbol:D});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)p(Z[ee++]);for(var te=S(p.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!B,"Symbol",{for:function(e){return i(Y,e+="")?Y[e]:Y[e]=D(e)},keyFor:function(e){if(!V(e))throw TypeError(e+" is not a symbol!");for(var t in Y)if(Y[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!B,"Object",{create:function(e,t){return void 0===t?x(e):G(x(e),t)},defineProperty:X,defineProperties:G,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:J}),E&&a(a.S+a.F*(!B||c((function(){var e=D();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(_(t)||void 0!==e)&&!V(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!V(t))return t}),r[1]=t,P.apply(E,r)}}),D.prototype[z]||n("rGON")(D.prototype,z,D.prototype.valueOf),d(D,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},"/UTG":function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},"/VMP":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t){e.exports=n("j/s1")},function(e,t){e.exports=n("JRMG")},function(e,t){e.exports=n("tS6y")},function(e,t){e.exports=n("ERkP")},function(e,t){e.exports=n("aWzz")},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.themes=void 0;var c,u,d,h,p,f=a(n(3)),m=a(n(0)),g=l(n(9)),b=l(n(14)),y=n(1),_=n(2),v=l(n(15)),M=n(6),w=n(7),x=n(5),A=n(8),k=y.createThemeRegistry("@splunk/dashboard-toolbar","CollapsibleToolbar"),L=m.default.div(c||(c=r(["\n display: flex;\n align-items: center;\n position: absolute;\n right: 0;\n z-index: 6;\n height: ","px;\n background-color: ",";\n color: ",";\n box-shadow: ",";\n border-radius: 0 0 0 20px;\n"],["\n display: flex;\n align-items: center;\n position: absolute;\n right: 0;\n z-index: 6;\n height: ","px;\n background-color: ",";\n color: ",";\n box-shadow: ",";\n border-radius: 0 0 0 20px;\n"])),48,k.themeVariable("backgroundColor"),k.themeVariable("textColor"),k.themeVariable("boxShadow")),S=m.default.div(u||(u=r(["\n display: flex;\n padding: 4px 4px 4px 8px;\n"],["\n display: flex;\n padding: 4px 4px 4px 8px;\n"]))),T=m.css(d||(d=r(["\n transition-duration: 0.2s;\n transition-timing-function: ease-in-out;\n"],["\n transition-duration: 0.2s;\n transition-timing-function: ease-in-out;\n"]))),O=m.default(g.default)(h||(h=r(["\n // To get specific enough to override the default Button styling\n && {\n // We shrink the button a bit when the toolbar is expanded since it\n // switches to a circle button and needs a bit more space to breath\n height: ",";\n width: ",";\n margin-right: ",";\n padding: 0;\n border: none;\n border-radius: ",";\n transition-property: border-radius, height, width, margin-right;\n ","\n }\n"],["\n // To get specific enough to override the default Button styling\n && {\n // We shrink the button a bit when the toolbar is expanded since it\n // switches to a circle button and needs a bit more space to breath\n height: ",";\n width: ",";\n margin-right: ",";\n padding: 0;\n border: none;\n border-radius: ",";\n transition-property: border-radius, height, width, margin-right;\n ","\n }\n"])),(function(e){return e.expanded?"44px":"48px"}),(function(e){return e.expanded?"44px":"48px"}),(function(e){return e.expanded?"4px":"0"}),(function(e){return e.expanded?"40px":"0 0 0 20px"}),T),C=m.default(v.default)(p||(p=r(["\n transform: ",";\n transition-property: transform;\n ","\n"],["\n transform: ",";\n transition-property: transform;\n ","\n"])),(function(e){return e.expanded?"rotate(0)":"rotate(180deg)"}),T),D=function(e){var t=e.preset,n=void 0===t?{}:t,r=e.dashboardApi,i=e.definition,o=void 0===i?{}:i,a=e.fullscreen,l=void 0!==a&&a,c=e.initialExpanded,u=void 0===c||c,d=e.mode,h=void 0===d?"view":d,p=e.toolbarItems,m=void 0===p?[]:p,g=e.showGrid,y=s(f.useState(u),2),_=y[0],v=y[1],w=f.useCallback((function(){return v((function(e){return!e}))}),[]),x=f.useMemo((function(){return m.map((function(e){return f.cloneElement(e,{mode:h,preset:n,fullscreen:l,dashboardApi:r,definition:o,showGrid:g,borders:!1})}))}),[m,h,n,l,r,o,g]),A=f.useMemo((function(){return f.default.createElement(C,{expanded:_,screenReaderText:_?M._("Expanded"):M._("Collapsed")})}),[_]);return f.default.createElement(L,{"data-test":"dashboard-toolbar"},f.default.createElement(b.default,{animation:"slideFromRight",open:_},f.default.createElement(S,{"data-test":"toolbar-items"},x)),f.default.createElement(O,{"data-test":"expand-button",expanded:_,onClick:w,icon:A,"data-clickable":!0}))};D.displayName="CollapsibleToolbar",k.addDefaultTheme("enterprise",{backgroundColor:_.enterprise.backgroundColor}),k.addDefaultTheme("enterpriseDark",{backgroundColor:_.enterpriseDark.backgroundColor}),k.addDefaultTheme("scp",{backgroundColor:"#1e2024",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.25)"}),t.themes=y.mergeThemes(k.toThemes(),w.themes,x.themes,A.themes),t.default=D},function(e,t){e.exports=n("Ol9m")},function(e,t){e.exports=n("QD5z")},function(e,t,n){"use strict";var r,i=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n")})),u="$0"==="a".replace(/./,"$0"),d=o("replace"),h=!!/./[d]&&""===/./[d]("a","$0"),p=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var f=o(e),m=!i((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),g=m&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!m||!g||"replace"===e&&(!c||!u||h)||"split"===e&&!p){var b=/./[f],y=n(f,""[e],(function(e,t,n,r,i){return t.exec===a?m&&!i?{done:!0,value:b.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),_=y[0],v=y[1];r(String.prototype,e,_),r(RegExp.prototype,f,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}d&&s(RegExp.prototype[f],"sham",!0)}},"/cGw":function(e,t,n){"use strict";var r=n("6zhx");Object.defineProperty(t,"__esModule",{value:!0}),t.mergeThemes=t.createThemeRegistry=void 0;var i=r(n("paiB")),o=r(n("/oVP")),a=r(n("aW3A")),s=r(n("2FhQ")),l=r(n("2srY")),c=r(n("ySZr")),u=n("g1lY"),d={enterprise:u.enterprise.mixins,enterpriseDark:u.enterpriseDark.mixins},h=function(){function e(){(0,a.default)(this,e);for(var t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{},o=s({appBuild:t,buildPushNumber:r,buildNumber:n},i),a=e.match(/(^|\w\w-\w\w\/)static\//);if(!a)return e;var l=a.index+a[0].length-1,c=e.match(/(^|\w\w-\w\w|)static\/app/),u=c?":".concat(o.appBuild||0):"",d=o.buildPushNumber?".".concat(o.buildPushNumber):"",h="/@".concat(o.buildNumber).concat(d).concat(u),p=e.substr(0,l),f=e.substr(l);return"".concat(p).concat(h).concat(f)}function u(e,l){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=s({appBuild:t,buildPushNumber:r,buildNumber:n,rootPath:a,locale:o},u),h=e||"/",p=l?"?".concat((0,i.stringify)(l)):"";return"/"!==h.charAt(0)&&(h="/".concat(h)),c(h="".concat(d.rootPath||"","/").concat(d.locale).concat(h).concat(p),d)}function d(e,t){return u("/help",e,t)}return{createAppDocsURL:function(e,t,n){var r=t.appName,i=t.appVersion;return d({location:"[".concat(r,":").concat(i,"]").concat(e)},n)},createDocsURL:function(e,t){return d({location:e},t)},createRESTURL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(/^http[s]?:\/\//.test(e))return e;var r,i,o=n.splunkdPath||l||"";return/^\/.*/.test(e)?/^\/services/.test(e)?"".concat(o).concat(e):e:t.app||t.owner?(r=t.sharing?"nobody":t.owner?encodeURIComponent(t.owner):"-",i="system"===t.sharing?"system":t.app?encodeURIComponent(t.app):"-","".concat(o,"/servicesNS/").concat(r,"/").concat(i,"/").concat(e)):"".concat(o,"/services/").concat(e)},createStaticURL:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}},"/rJK":function(e,t,n){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);throw new Error("Cannot find module '"+a+"'")}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return i(t[a][1][e]||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var o=!1,a=0;a>16),u((65280&i)>>8),u(255&i);return 2==o?u(255&(i=c(e.charAt(n))<<2|c(e.charAt(n+1))>>4)):1==o&&(u((i=c(e.charAt(n))<<10|c(e.charAt(n+1))<<4|c(e.charAt(n+2))>>2)>>8&255),u(255&i)),a},e.fromByteArray=function(e){var t,n,r,i,o=e.length%3,a="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-o;t>18&63)+s(i>>12&63)+s(i>>6&63)+s(63&i);switch(o){case 1:a+=s((n=e[e.length-1])>>2),a+=s(n<<4&63),a+="==";break;case 2:a+=s((n=(e[e.length-2]<<8)+e[e.length-1])>>10),a+=s(n>>4&63),a+=s(n<<2&63),a+="="}return a}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(e,t,n){(function(t,r,i,o,a,s,l,c,u){var d=e("base64-js"),h=e("ieee754");function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);var r,o,a,s=typeof e;if("base64"===t&&"string"==s)for(e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e);e.length%4!=0;)e+="=";if("number"==s)r=O(e);else if("string"==s)r=i.byteLength(e,t);else{if("object"!=s)throw new Error("First argument needs to be a number, array or string.");r=O(e.length)}if(i._useTypedArrays?o=i._augment(new Uint8Array(r)):((o=this).length=r,o._isBuffer=!0),i._useTypedArrays&&"number"==typeof e.byteLength)o._set(e);else if(function(e){return C(e)||i.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}(e))for(a=0;a>>0)):(t+1>>0),i}function b(e,t,n,r){if(r||(H("boolean"==typeof n,"missing or invalid endian"),H(null!=t,"missing offset"),H(t+1>>8*(r?a:1-a)}function w(e,t,n,r,i){i||(H(null!=t,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(null!=n,"missing offset"),H(n+3>>8*(r?a:3-a)&255}function x(e,t,n,r,i){i||(H(null!=t,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(null!=n,"missing offset"),H(n+1>8,r=t%256,i.push(r),i.push(n);return i}(t),e,n,r)}(this,e,t,n);break;default:throw new Error("Unknown encoding")}return a},i.prototype.toString=function(e,t,n){var r,i=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):n=i.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||rthis.length&&(r=this.length),e.length-t=this.length))return this[e]},i.prototype.readUInt16LE=function(e,t){return m(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return m(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return g(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return g(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||(H(null!=e,"missing offset"),H(e=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){return b(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return b(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return y(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return y(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return _(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return _(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return v(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return v(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,n){n||(H(null!=e,"missing value"),H(null!=t,"missing offset"),H(t=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,n){M(this,e,t,!0,n)},i.prototype.writeUInt16BE=function(e,t,n){M(this,e,t,!1,n)},i.prototype.writeUInt32LE=function(e,t,n){w(this,e,t,!0,n)},i.prototype.writeUInt32BE=function(e,t,n){w(this,e,t,!1,n)},i.prototype.writeInt8=function(e,t,n){n||(H(null!=e,"missing value"),H(null!=t,"missing offset"),H(t=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},i.prototype.writeInt16LE=function(e,t,n){x(this,e,t,!0,n)},i.prototype.writeInt16BE=function(e,t,n){x(this,e,t,!1,n)},i.prototype.writeInt32LE=function(e,t,n){A(this,e,t,!0,n)},i.prototype.writeInt32BE=function(e,t,n){A(this,e,t,!1,n)},i.prototype.writeFloatLE=function(e,t,n){k(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){k(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){L(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){L(this,e,t,!1,n)},i.prototype.fill=function(e,t,n){if(e=e||0,t=t||0,n=n||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),H("number"==typeof e&&!isNaN(e),"value is not a number"),H(t<=n,"end < start"),n!==t&&0!==this.length){H(0<=t&&t"},i.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function z(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function N(e,t){H("number"==typeof e,"cannot write a non-number as a number"),H(0<=e,"specified a negative value for writing an unsigned value"),H(e<=t,"value is larger than maximum value for type"),H(Math.floor(e)===e,"value has a fractional component")}function Y(e,t,n){H("number"==typeof e,"cannot write a non-number as a number"),H(e<=t,"value larger than maximum allowed value"),H(n<=e,"value smaller than minimum allowed value"),H(Math.floor(e)===e,"value has a fractional component")}function I(e,t,n){H("number"==typeof e,"cannot write a non-number as a number"),H(e<=t,"value larger than maximum allowed value"),H(n<=e,"value smaller than minimum allowed value")}function H(e,t){if(!e)throw new Error(t||"Failed assertion")}i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=S.get,e.set=S.set,e.write=S.write,e.toString=S.toString,e.toLocaleString=S.toString,e.toJSON=S.toJSON,e.copy=S.copy,e.slice=S.slice,e.readUInt8=S.readUInt8,e.readUInt16LE=S.readUInt16LE,e.readUInt16BE=S.readUInt16BE,e.readUInt32LE=S.readUInt32LE,e.readUInt32BE=S.readUInt32BE,e.readInt8=S.readInt8,e.readInt16LE=S.readInt16LE,e.readInt16BE=S.readInt16BE,e.readInt32LE=S.readInt32LE,e.readInt32BE=S.readInt32BE,e.readFloatLE=S.readFloatLE,e.readFloatBE=S.readFloatBE,e.readDoubleLE=S.readDoubleLE,e.readDoubleBE=S.readDoubleBE,e.writeUInt8=S.writeUInt8,e.writeUInt16LE=S.writeUInt16LE,e.writeUInt16BE=S.writeUInt16BE,e.writeUInt32LE=S.writeUInt32LE,e.writeUInt32BE=S.writeUInt32BE,e.writeInt8=S.writeInt8,e.writeInt16LE=S.writeInt16LE,e.writeInt16BE=S.writeInt16BE,e.writeInt32LE=S.writeInt32LE,e.writeInt32BE=S.writeInt32BE,e.writeFloatLE=S.writeFloatLE,e.writeFloatBE=S.writeFloatBE,e.writeDoubleLE=S.writeDoubleLE,e.writeDoubleBE=S.writeDoubleBE,e.fill=S.fill,e.inspect=S.inspect,e.toArrayBuffer=S.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(e,t,n){(function(n,r,i,o,a,s,l,c,u){i=e("buffer").Buffer;var d=4,h=new i(d);h.fill(0),t.exports={hash:function(e,t,n,r){return i.isBuffer(e)||(e=new i(e)),function(e,t,n){for(var r=new i(t),o=n?r.writeInt32BE:r.writeInt32LE,a=0;am?t=e(t):t.length>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a>>32-t}(y(y(t,e),y(r,o)),i),n)}function f(e,t,n,r,i,o,a){return p(t&n|~t&r,e,t,i,o,a)}function m(e,t,n,r,i,o,a){return p(t&r|n&~r,e,t,i,o,a)}function g(e,t,n,r,i,o,a){return p(t^n^r,e,t,i,o,a)}function b(e,t,n,r,i,o,a){return p(n^(t|~r),e,t,i,o,a)}function y(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return d.hash(e,h,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,t,n){(function(e,n,r,i,o,a,s,l,c){!function(){var e,n;e=function(e){for(var t,n=new Array(e),r=0;r>>((3&r)<<3)&255;return n},this.crypto&&crypto.getRandomValues&&(n=function(e){var t=new Uint8Array(e);return crypto.getRandomValues(t),t}),t.exports=n||e}()}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(e,t,n){(function(n,r,i,o,a,s,l,c,u){var d=e("./helpers");function h(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r=Array(80),i=1732584193,o=-271733879,a=-1732584194,s=271733878,l=-1009589776,c=0;c>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t){return e<>>32-t}t.exports=function(e){return d.hash(e,h,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(e,t,n){(function(n,r,i,o,a,s,l,c,u){function d(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t){return e>>>t|e<<32-t}function p(e,t){return e>>>t}function f(e,t){var n,r,i,o,a,s,l,c,u,f,m,g,b,y,_,v,M,w,x=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),A=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),k=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var L=0;L>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;0>=-u,u+=r;0>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+d?h/l:h*Math.pow(2,1-d))*l&&(a++,l/=2),u<=a+d?(s=0,a=u):1<=a+d?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));8<=i;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0?d.DELTA_GREEN:d.DELTA_RED}},M=function(e,t){var n=m(e.backgroundColor,t.defaultBackgroundColor),r=g(n),i=_({majorColor:e.majorColor,backgroundColor:n,defaultFontColor:t.defaultFontColor,defaultBlockFontColor:t.defaultBlockFontColor});return{backgroundColor:n,backgroundEnabled:r,majorColor:i,trendColor:v({trendColor:e.trendColor,trendValue:e.trendValue,majorValue:e.majorValue,customizedBgColor:e.backgroundColor,trendDisplayMode:e.trendDisplay||e.trendDisplayMode,defaultColors:t}),underLabelColor:r?i:t.defaultFontColor}},w=function(e){var t=e.value,n=e.numberPrecision,r=e.shouldUseThousandSeparators,i=e.shouldAbbreviateTrendValue,o=Object(l.isNumerial)(t)?Object(l.formatNumber)(t,n,{useThousandSeparators:r,useTrendUnits:i}):t;return o=o||""},x=function(e){var t=e.majorValue,n=e.numberPrecision,r=e.shouldUseThousandSeparators;return w({value:null===t?"N/A":t,numberPrecision:n,shouldUseThousandSeparators:r,shouldAbbreviateTrendValue:!1})},A=function(e){var t=e.majorValue,n=e.trendValue,r=e.trendDisplayMode,i=e.numberPrecision,o=e.shouldUseThousandSeparators,a=e.shouldAbbreviateTrendValue;if(""===n||!Object(l.isNumerial)(n))return"";var s=n,c="percent"===r;c&&(s=Number(t)!==Number(n)?n/(t-n)*100:0);var u=w({value:s,numberPrecision:i,shouldUseThousandSeparators:o,shouldAbbreviateTrendValue:a});return c?"".concat(u,"%"):u},k=function(e,t){var n=t.width,r=t.height,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"normal",a=Object(c.computeTextSize)(e,"".concat(o," ").concat(h,"px ").concat(i)),s=Math.min(n/a*h,r/h*h);return parseInt(s,10)},L=function(e){var t=e.width,n=e.height,r=e.unit,i=e.majorText,o=e.spaceRatio,a=void 0===o?1:o,s=r?"".concat(r).concat(i):i;return k(s,{width:t*a,height:n})},S=function(e){var t=e.width,n=e.height,r=e.trendText,i=e.spaceRatio,o=void 0===i?1:i,a=12;return o>0&&(a=k(r,{width:t*o,height:n}),a=parseInt(a,10)*o),a},T=function(e){return e>h?h:e},O=function(e){var t=e.underLabel,n=e.width,r=e.height;return k(t,{width:n,height:r})},C=function(e){var t=e.width,n=e.height,r=e.majorValue,i=e.trendValue,o=e.majorFontSize,a=e.trendFontSize,s=e.trendDisplayMode,c=e.showTrendIndicator,u=e.unit,d=e.numberPrecision,h=e.shouldUseThousandSeparators,p=e.shouldAbbreviateTrendValue,f=Object(l.isNumerial)(i)&&c?.6:1,m=.9*t,g=.9*n,b=x({majorValue:r,numberPrecision:d,shouldUseThousandSeparators:h}),y=o||L({width:m,height:g,unit:u,majorText:b,spaceRatio:f}),_=A({majorValue:r,trendValue:i,trendDisplayMode:s,numberPrecision:d,shouldUseThousandSeparators:h,shouldAbbreviateTrendValue:p});return{majorText:b,majorTextFontSize:y,trendText:_,trendTextFontSize:a||S({width:m,height:g,trendText:_,spaceRatio:1-f})}},D=function(e){for(var t=e.width,n=e.height,r=e.toRemoveList,o=e.majorValue,s=e.trendValue,l=e.majorFontSize,c=e.trendFontSize,u=e.majorTextFontSize,d=e.showTrendIndicator,h=e.unit,p=e.numberPrecision,f=e.shouldUseThousandSeparators,m=e.shouldAbbreviateTrendValue,g=0,b={},y={},_=u;_<12&&g1?(a=j(a,80),s=j(s,80),l=j(l,80)):(a=j(a,40),s=j(s,40),l=j(l,40)):255===a&&255===s&&255===l?t>1?(a=j(a,20),s=j(s,20),l=j(l,20)):(a=j(a,80),s=j(s,80),l=j(l,80)):(a=j(a,20),s=j(s,20),l=j(l,20))),"#".concat(a.toString(16).padStart(2,0))+"".concat(s.toString(16).padStart(2,0))+"".concat(l.toString(16).padStart(2,0))},N=function(e){return z(e,1.3)},Y=function(e){return z(e,.5)},I=function(e){return"absolute"===e||"percent"===e}},function(e,t,n){"use strict";var r=n(12),i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i")||!1}t.enhanceOptionsSchemaWithDynamicOptions=c,t.enhanceConfig=function(e){var t=e;return-1!==e.supports.indexOf(s.VizBehavior.DYNAMIC_OPTIONS)&&(t.optionsSchema=c(e.optionsSchema)),t},t.isDynamicOption=u,t.getInitialPreset=function(e,t,n){return n.find((function(n){var r=o.get(n,["value","context"],{}),i=o.get(n,["value","options"],{}),a=Object.keys(r),s=Object.keys(i);return 0!==a.length&&0!==s.length&&(function(e,t){return Object.keys(t).every((function(n){return void 0===t[n]&&void 0===e[n]||void 0!==t[n]&&void 0!==e[n]}))}(e,r)&&function(e,t){return Object.keys(t).every((function(n){return u(t[n])===u(e[n])}))}(t,i))}))},t.generatePrecisionValues=function(e){return o.range(0,e+1).map((function(e){return{label:"".concat(e," (0").concat(e>0?".":"").concat("0".repeat(e),")"),value:e}}))}},function(e,t){e.exports=n("+5fS")},function(e,t){e.exports=n("3Jn1")},function(e,t){e.exports=n("Y02R")},function(e,t){e.exports=n("4OXh")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VizBehavior=void 0,function(e){e.DYNAMIC_OPTIONS="dynamic-options",e.EVENTS="events",e.PLACEHOLDER="placeholder",e.PAGE_AND_SORT="page-and-sort"}(t.VizBehavior||(t.VizBehavior={}))},function(e,t){e.exports=n("2Fwt")},function(e,t){e.exports=n("gPT4")},function(e,t){e.exports=n("HzAi")},function(e,t){e.exports=n("Rlp/")},function(e,t){e.exports=n("UqJ5")},function(e,t){e.exports=n("5wzq")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(3),o=n(17),a=n(15),s=n(4),l=i.default.div.withConfig({displayName:"FixedSizeContainer__Item",componentId:"sc-1yhgpod-0"})(["width:",";position:relative;background-color:",";"],(function(e){return a.toPx(e.width)}),(function(e){return e.backgroundColor})),c=i.default.div.withConfig({displayName:"FixedSizeContainer__FixSizeItem",componentId:"sc-1yhgpod-1"})(["position:relative;flex-direction:column;flex:1;display:flex;",";background-color:",";"],(function(e){return a.toDimension(s.pick(e,["width","height"]))}),(function(e){return e.backgroundColor})),u=i.default.div.withConfig({displayName:"FixedSizeContainer__ItemContent",componentId:"sc-1yhgpod-2"})(["position:relative;min-height:100px;width:100%;"]),d=i.default.div.withConfig({displayName:"FixedSizeContainer__FixSizeItemContent",componentId:"sc-1yhgpod-3"})(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);t.default=function(e){var t=function(t){var n=t.width,i=t.height,a=t.backgroundColor;return i?r.createElement(c,{"data-test":"fix-size-item",width:n,height:i,backgroundColor:a},r.createElement(d,null,r.createElement(o.default,null,(function(n){var i=n.width,o=n.height;return r.createElement(e,Object.assign({},t,{width:i,height:o}))})))):r.createElement(l,{"data-test":"item",width:n,backgroundColor:a},r.createElement(u,null,r.createElement(e,Object.assign({},t))))};return t.displayName="withFixedSizeContainer",t}},function(e,t){e.exports=n("g1lY")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendStaticWrapperProps=void 0;t.extendStaticWrapperProps=function(e){var t=e.Wrapper,n=e.Visualization;["propTypes","defaultProps","config","themeRegistry"].forEach((function(e){n[e]&&(t[e]=n[e])}))}},function(e,t){e.exports=n("HhEa")},function(e,t){e.exports=n("5Kfe")},function(e,t){e.exports=n("/cGw")},function(e,t){e.exports=n("wjBy")},function(e,t,n){"use strict";var r=n(12);Object.defineProperty(t,"__esModule",{value:!0}),t.getSortingParams=t.SortParamsPropTypes=void 0;var i=n(0),o=n(4),a=n(34);t.SortParamsPropTypes=i.shape({currentSortKey:i.string,currentSortDir:i.oneOf(a.validSortDirs),onSort:i.func});t.getSortingParams=function(e){var t,n,i,a=e.requestParams,s=e.onRequestParamsChange,l={asc:"desc",desc:"asc",none:"asc"};return o.isFunction(s)&&(a&&o.has(a,"sort")&&(t=Object.keys(a.sort).shift(),n=a.sort[t]),i=function(e,t){var n=t.sortKey,i=t.sortDir;if("string"==typeof n){var c=o.has(l,i)?l[i]:"none";s(Object.assign(Object.assign({},a),{offset:0,sort:r({},n,c)}))}else s(a)}),{currentSortKey:t,currentSortDir:n,onSort:i}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPaginationParams=t.PaginatorParamsPropTypes=void 0;var r=n(0),i=n(4);t.PaginatorParamsPropTypes=r.shape({isPaging:r.bool,current:r.number,totalPages:r.number,onChange:r.func});t.getPaginationParams=function(e){var t=e.requestParams,n=e.meta,r=e.onRequestParamsChange,o=n&&n.totalCount||0,a=t&&t.offset||0,s=t&&t.count,l="number"==typeof s&&s>0?Math.ceil(o/s):0,c="number"==typeof s&&s>0?Math.floor(a/s)+1:0;return{isPaging:l>1&&i.isFunction(r),current:c,totalPages:l,onChange:i.isFunction(r)?function(e,n){var o=n.page,a=n.count,s=i.cloneDeep(t);"number"==typeof a&&(s.count=a,s.offset=0);var l="number"==typeof s.count?s.count:10;"number"==typeof o&&o>1&&(s.count=l,s.offset=(o-1)*l),r(s)}:i.noop}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldShowIconPlaceholder=void 0;var r=n(1),i=n(0),o=n(4),a=n(2),s=n(13),l=n(18);t.shouldShowIconPlaceholder=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=o.get(e,"primary.data.columns[0]",void 0),r=void 0===n,i=o.get(e,"primary.data.fields[0]",void 0),a=void 0===i;return t||r||a};var c={icon:i.func,width:i.oneOfType([i.string,i.number]),height:i.oneOfType([i.string,i.number]),backgroundColor:i.string},u=function(e){var t=e.width,n=e.height,i=e.icon;return i?r.createElement(i,{style:{left:"50%",top:"50%",color:"grey",position:"absolute",transform:"translate(-50%, -50%)"},width:"50%",height:"50%"}):r.createElement(s.default,{width:t,height:n,level:"warning",message:a._("No DataSource Connected")})};u.propTypes=c,u.defaultProps={width:"100%",height:250},t.default=l.default(u)},function(e,t,n){"use strict";n.r(t);var r=n(3),i=n.n(r).a.div.attrs((function(e){return{"data-test":e.dataTestKey}})).withConfig({displayName:"VizStyleWrapper",componentId:"sc-6rw6wv-0"})(["display:flex;justify-content:center;flex-direction:column;width:100%;height:100%;background-color:",";"],(function(e){return e.backgroundColor}));i.displayName="VizStyleWrapper",t.default=i},function(e,t,n){"use strict";n.r(t);var r=n(14),i=n.n(r),o=n(1),a=n.n(o),s=n(0),l=n.n(s),c=n(3),u=n.n(c),d=n(5),h=n(43),p=n.n(h),f=n(44),m=n.n(f),g=u.a.div.withConfig({displayName:"TrendValue__Column",componentId:"yd2lvy-0"})(["display:flex;flex-direction:row;justify-content:",";height:","px;",";"],(function(e){return e.justify||"flex-end"}),(function(e){return e.size||12}),(function(e){return e.size?"margin: 0 ".concat(.2*parseInt(e.size,10)||5,"px;"):""})),b=u.a.div.withConfig({displayName:"TrendValue__Text",componentId:"yd2lvy-1"})(["white-space:nowrap;font-size:","px;color:",";font-family:",";height:","px;line-height:","px;display:flex;align-self:baseline;",";"],(function(e){return e.size||12}),(function(e){return e.color||"#000"}),d.DEFAULT_FONT_FAMILY,(function(e){return e.size||12}),(function(e){return e.size||12}),(function(e){return e.size?"margin-left: ".concat(.2*parseInt(e.size,10)||5,"px;"):""})),y=function(e){var t=e.fontSize,n=e.color,r=e.value,i=e.text,o=!1;return parseFloat(r,10)>0?o=p.a:parseFloat(r,10)<0&&(o=m.a),a.a.createElement(g,{justify:"flex-end",size:t},a.a.createElement(b,{"data-test":"trendValueIndicator",size:t,color:n},o&&a.a.createElement(o,null)),a.a.createElement(b,{"data-test":"trendValue",size:t,color:n},"".concat(i)))};y.propTypes={fontSize:l.a.number,color:l.a.string,value:l.a.oneOfType([l.a.string,l.a.number]),text:l.a.string};var _=y,v=n(45),M=n.n(v),w=u.a.div.withConfig({displayName:"MajorValue__Row",componentId:"shlzpv-0"})(["display:flex;flex-direction:row;align:flex-start;align-items:flex-end;justify:left;justify-content:left;line-height:","px;height:","px;"],(function(e){return e.size}),(function(e){return e.size})),x=u.a.div.withConfig({displayName:"MajorValue__Text",componentId:"shlzpv-1"})(["white-space:nowrap;font-size:","px;color:",";font-family:",";font-weight:bold;&:hover{text-decoration:",";cursor:",";}",""],(function(e){return e.size||12}),(function(e){return e.color}),d.DEFAULT_FONT_FAMILY,(function(e){return e.showUnderline?"underline":"inherit"}),(function(e){return e.showUnderline?"pointer":"inherit"}),(function(e){return e.pseudoContent&&e.pseudoContentPosition?"&:".concat(e.pseudoContentPosition," {\n // by default this pseudo element would inherit text-decoration from main element\n // and text-decoration could not be overwritten.\n // adding display: inline-block makes text decoration independent from main element.\n // => the unit will not be underlined if a user hovers over the main value\n display: inline-block;\n font-size: ").concat(e.pseudoContentFontSize,"px;\n vertical-align: text-top;\n position: relative;\n top: 5px; // magic number to tweak vertical alignment of unit\n font-weight: normal;\n content: ").concat(e.pseudoContent,";\n }"):""})),A=["before","after"],k=function(e){var t,n,r=e.color,i=e.fontSize,o=e.unitPosition,s=e.title,l=e.value,c=e.onValueClick,u=e.unit;return"string"==typeof u&&(t=M()(u,{wrap:!0,quotes:"double"}),n="string"==typeof o&&A.includes(o)?o:"after"),a.a.createElement(w,{size:i},a.a.createElement(x,{"data-test":"majorValue",color:r,onClick:function(e){return"function"==typeof c&&c(e)},showUnderline:!!c,size:i,title:s,pseudoContent:t,pseudoContentPosition:n,pseudoContentFontSize:.6*i},l))};k.propTypes={color:l.a.string,fontSize:l.a.number,unit:l.a.string,unitPosition:l.a.oneOf(A),value:l.a.oneOfType([l.a.string,l.a.number]),title:l.a.oneOfType([l.a.string,l.a.number]),onValueClick:l.a.func};var L=k;n.d(t,"SingleValueTrendValue",(function(){return D}));var S=u.a.div.withConfig({displayName:"SingleValueBasic__Column",componentId:"k0nwrx-0"})(["display:flex;flex-direction:column;align-self:center;justify-content:center;"]),T=u.a.div.withConfig({displayName:"SingleValueBasic__Row",componentId:"k0nwrx-1"})(["display:flex;flex-direction:row;align-items:",";justify-content:center;"],(function(e){return e.align||"center"})),O=u.a.div.withConfig({displayName:"SingleValueBasic__Text",componentId:"k0nwrx-2"})(["font-weight:normal;white-space:nowrap;font-size:","px;color:",";font-family:",";height:","px;line-height:1.2;"],(function(e){return e.size||12}),(function(e){return e.color||"#000"}),d.DEFAULT_FONT_FAMILY,(function(e){return e.size||12})),C=function(e){var t=i()({},e),n=t.majorColor,r=t.majorTextFontSize,o=t.majorText,s=t.majorValueTitle,l=t.trendColor,c=t.trendTextFontSize,u=t.trendText,d=t.showTrendIndicator,h=t.unit,p=t.unitPosition,f=t.underLabel,m=t.underLabelFontSize,g=t.underLabelColor,b=t.onValueClick,y=""!==u&&d;return a.a.createElement(S,null,a.a.createElement(T,{align:"baseline"},a.a.createElement(L,{"data-test":"MajorValue",color:n,fontSize:r,unit:h,unitPosition:p,value:o,title:s,onValueClick:b}),y&&a.a.createElement(_,{"data-test":"TrendIndicator",fontSize:c,color:l,value:u,text:u})),f&&a.a.createElement(T,{justify:"center"},a.a.createElement(O,{"data-test":"underLabel",size:m,color:g},f)))};C.propTypes={majorText:l.a.string,majorColor:l.a.string,majorTextFontSize:l.a.number,majorValueTitle:l.a.string,trendText:l.a.string,trendTextFontSize:l.a.number,trendColor:l.a.string,showTrendIndicator:l.a.bool,unit:l.a.string,unitPosition:l.a.oneOf(["before","after"]),underLabel:l.a.string,underLabelFontSize:l.a.number,underLabelColor:l.a.string,onValueClick:l.a.func};var D=_;t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(4),o=n(31),a=n(32),s=n(23),l=n(3),c=n(11),u=n(25),d=n(26),h=n(35),p=n(36),f=n(37),m=n(38),g=n(39);t.default=function(e){var t=e.ReactViz,n=e.vizConfig,b=e.computeVizProps,y=void 0===b?function(e){}:b,_=e.useIconPlaceholder,v=p.pickFieldFromJSONSchema(n.optionsSchema,"default"),M=s.createThemeRegistry("@splunk/visualizations",n.name),w=n.themes;Object.keys(w).forEach((function(e){"enterprise"===e?M.addDefaultTheme(e,w[e]):M.addTheme(e,w[e])}));var x=function(e){var a,s=e.mode,l=e.hasEventHandlers,p=e.dataSources,m=e.options,g=e.context,b=void 0===g?{}:g,_=e.width,w=e.height,x=e.onComputedProps,A=e.onEventTrigger,k=e.theme,L=e.onRequestParamsChange,S=function(t){return M.themeVariable(t)(e)},T=S("defaultBackgroundColor"),O=i.get(k,"_name","enterprise");a=h.useDeepMemo((function(){try{return o.Options.evaluate({context:i.defaultsDeep({},b,n.defaultContext),options:i.defaultsDeep({},m,v)},p,S)}catch(e){return console.error("unexpected error evaluating options: + ".concat(e.message)),{}}}),[O,m,b,p]),r.useEffect((function(){x(a)}));var C=n.requiredProps,D=void 0===C?[]:C,E=n.supports,P=f.missingKeys(D,a);if(P.length>0&&E.includes(c.VizBehavior.PLACEHOLDER))return r.createElement(f.default,{"data-test":"missing-props-message",width:_,height:w,missingProps:P,backgroundColor:T});var j={};if(n.supports.indexOf(c.VizBehavior.EVENTS)>-1){var z=n.events;Object.keys(z).forEach((function(e){var t=i.camelCase("on."+e);if(j[t]=null,l&&"view"===s){var n=z[e].payloadKeys,r={};Array.isArray(n)&&n.length&&n.forEach((function(e){return r[e]=a[e]})),j[t]=function(t){return t&&t.payload&&(r=t.payload),A({originalEvent:t,payload:r,type:e})}}}))}var N=y(Object.assign(Object.assign(Object.assign(Object.assign({},e),a),j),{themeFunc:S})),Y={},I="paginateDataSourceKey",H=i.has(a,I)&&a[I]||"primary";if(n.supports.indexOf(c.VizBehavior.PAGE_AND_SORT)>-1&&i.has(p,H)){var R=i.get(p,[H,"requestParams"],{}),B=i.get(p,[H,"meta"],{}),F=function(e){return L(H,e)};Y={sortParams:u.getSortingParams({requestParams:R,meta:B,onRequestParamsChange:F}),paginatorParams:d.getPaginationParams({requestParams:R,meta:B,onRequestParamsChange:F})}}return r.createElement(t,Object.assign({mode:s,width:_,height:w},a,N,j,Y))};return x.propTypes=Object.assign({},a.default.propTypes),x.defaultProps=Object.assign(Object.assign({},a.default.defaultProps),{theme:{}}),x.config=n,x.themeRegistry=M,l.withTheme(g.default(m.default(x),_))}},function(e,t){e.exports=n("SutA")},function(e,t,n){"use strict";var r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.INITIAL_HEIGHT=t.INITIAL_WIDTH=void 0;var i=n(0),o=n(4),a=n(33);t.INITIAL_WIDTH=250,t.INITIAL_HEIGHT=250;var s=function e(){r(this,e)};s.propTypes={mode:i.oneOf(["view","edit","export"]).isRequired,width:i.oneOfType([i.string,i.number]).isRequired,height:i.oneOfType([i.string,i.number]).isRequired,context:i.object,options:i.object,onOptionsChange:i.func,dataSources:i.objectOf(i.shape({requestParams:i.object,data:i.shape({fields:i.array,columns:i.array}),error:i.shape({level:i.string,message:i.string}),meta:i.object})),onEventTrigger:i.func,hasEventHandlers:i.bool,onComputedProps:i.func,vizActionHandlerRef:i.func,loading:i.bool,theme:i.object,onRequestParamsChange:i.func},s.defaultProps={width:"100%",height:t.INITIAL_HEIGHT,dataSources:{},onEventTrigger:function(){return{}},mode:"view",hasEventHandlers:!1,options:{},context:{},onOptionsChange:function(){return{}},vizActionHandlerRef:function(){return new a.DefaultVizActionHandler},onComputedProps:function(){return{}},loading:!1,onRequestParamsChange:o.noop},t.default=s},function(e,t,n){"use strict";var r=n(16),i=n(22);Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultVizActionHandler=void 0;var o=function(){function e(){r(this,e)}return i(e,[{key:"focus",value:function(){}},{key:"snapshot",value:function(){return null}}]),e}();t.DefaultVizActionHandler=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validSortDirs=void 0,t.validSortDirs=["asc","desc","none"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDeepMemo=void 0;var r=n(1),i=n(4);t.useDeepMemo=function(e,t){var n=r.useRef();return n.current&&i.isEqual(t,n.current.dependencies)||(n.current={dependencies:t,value:e()}),n.current.value}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pickFieldFromJSONSchema=void 0;var r=n(4);t.pickFieldFromJSONSchema=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return Object.keys(e).reduce((function(i,o){if(r.has(e[o],n))i[o]=e[o][n];else if("object"===r.get(e,[o,"type"])&&r.has(e[o],"properties")){var a=t.pickFieldFromJSONSchema(e[o].properties,n);r.isEmpty(a)||(i[o]=a)}return i}),{})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingPropsMessage=t.missingKeys=t.isMissing=void 0;var r=n(1),i=n(0),o=n(2),a=n(13),s=n(18);t.isMissing=function(e){return null==e};t.missingKeys=function(e,n){return e.filter((function(e){return t.isMissing(n[e])}))};var l={width:i.oneOfType([i.string,i.number]),height:i.oneOfType([i.string,i.number]),backgroundColor:i.string,missingProps:i.arrayOf(i.string)};t.MissingPropsMessage=function(e){var t=e.width,n=e.height,i=e.missingProps;return r.createElement(a.default,{"data-test":"message",width:t,height:n,message:o._("Missing property: ".concat(i.join(", ")))})},t.MissingPropsMessage.propTypes=l,t.MissingPropsMessage.defaultProps={width:"100%",height:250},t.default=s.default(t.MissingPropsMessage)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(3),o=n(20),a=i.default.div.withConfig({displayName:"withEditModeCover__Cover",componentId:"sc-1gsbnxb-0"})(["position:absolute;left:0;right:0;top:0;bottom:0;"]),s=i.default.div.withConfig({displayName:"withEditModeCover__Blocker",componentId:"sc-1gsbnxb-1"})(["position:relative;width:100%;height:100%;"]);t.default=function(e){var t=function(t){var n=t.mode;return r.createElement(s,null,r.createElement(e,Object.assign({},t)),"edit"===n&&r.createElement(a,{"data-test":"edit-mode-cover"}))};return o.extendStaticWrapperProps({Wrapper:t,Visualization:e}),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(27),o=n(11),a=n(20);t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.shouldShowIconPlaceholder,n=e.themeRegistry,s=e.config,l=function(a){var l,c=a.dataSources,u=a.loading,d=a.options,h=a.height,p=a.width,f=t(c,u,d),m=(l="defaultBackgroundColor",n.themeVariable(l)(a));return s.supports.includes(o.VizBehavior.PLACEHOLDER)&&f?r.createElement(i.default,{"data-test":"icon-placeholder",icon:s.icon,width:p,height:h,backgroundColor:m}):r.createElement(e,Object.assign({},a))};return a.extendStaticWrapperProps({Wrapper:l,Visualization:e}),l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VizCategory=void 0,function(e){e.SINGLE_VALUE="Single Value",e.TRENDS="Trends",e.COMPARISONS="Comparisons",e.TABLE="Table",e.GAUGE="Gauge",e.DISTRIBUTIONS="Distributions",e.CHOROPLETH="Choropleth Maps"}(t.VizCategory||(t.VizCategory={}))},function(e,t){e.exports=n("//nZ")},function(e,t){e.exports=n("MwrP")},function(e,t){e.exports=n("Lws+")},function(e,t){e.exports=n("DF/2")},function(e,t){e.exports=n("BSe0")},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureSingleValueRadialThemes=t.PureSingleValueRadial=t.config=void 0;var r=n(113),i=n(30),o=n(94);t.config=o.default,t.PureSingleValueRadial=r.default,t.PureSingleValueRadialThemes=r.themes,t.default=i.default({ReactViz:r.default,vizConfig:o.default})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(21),o=n(95),a=n(96),s=n(97),l=n(11),c=n(6),u=n(40),d={majorValue:{default:"> primary|seriesByIndex(0)|lastPoint()",description:"The major value to display in the visualization.",type:"number"},majorColor:{description:"Specify the dataSource color for the major value. The hex value format should be #FFFFFF.",pattern:i.COLOR_OR_TOKEN_PATTERN,type:"string"},trendValue:{default:"> primary|seriesByIndex(0)|delta(-2)",description:"The trend value to display in the visualization.",type:"number"},trendColor:{default:"> trendValue|rangeValue(trendColors)",description:"Specify the color for trend value. The hex value format should be #FFFFFF.",pattern:i.COLOR_OR_TOKEN_PATTERN,type:"string"},trendDisplayMode:{default:"absolute",description:"Specify whether the trend value is displayed as a percentage or an absolute count.",pattern:i.getPattern(["percent","absolute"]),type:"string"},shouldAbbreviateTrendValue:{default:!1,description:"Specify whether to abbreviate the trend value to 2 decimal points. A magnitude unit will be displayed.",type:"boolean"},showTrendIndicator:{default:!0,description:"Specify whether to show or hide the trend indicator.",type:"boolean"},trendIndicatorPosition:{default:"standard",description:"Specify where the trend indicator is displayed on a radial graph. Note: When the major value or trend value is too large to fit inside of the graph, the trend is displayed below the graph.",pattern:i.getPattern(["standard","below","outside"]),type:"string"},backgroundColor:{description:"Specify the color to use for the background. The hex value format should be #FFFFFF.",pattern:i.COLOR_OR_TOKEN_PATTERN,type:"string"},unit:{description:"Specify text to show next to the major value.",type:"string"},unitPosition:{default:"after",description:"Specify whether the unit text should appear before or after the major value.",pattern:i.getPattern(["before","after"]),type:"string"},underLabel:{description:"Specify the text that appears below the major value.",type:"string"},numberPrecision:{default:0,maximum:20,minimum:0,description:"Specify the number of decimal places to display. For example, to display 3 decimal places, use a value of 3. The maximum value is 20.",type:"number"},shouldUseThousandSeparators:{default:!0,description:"Specify whether numeric values use commas as thousandths separaters.",type:"boolean"},radialBackgroundColor:{description:"Specify the color for the radial background color. The hex value format should be #FFFFFF.",pattern:i.COLOR_OR_TOKEN_PATTERN,type:"string"},radialStrokeColor:{description:"Specify the color for the radial stroke color. The hex value format should be #FFFFFF.",pattern:i.COLOR_OR_TOKEN_PATTERN,type:"string"}},h=[{label:r._("Visualization Settings"),layout:[[{label:r._("Show Trending Value"),option:"showTrendIndicator",editor:"editor.checkbox"}],[{label:r._("Trend Display as"),option:"trendDisplayMode",editor:"editor.select",editorProps:{values:[{label:r._("Percent"),value:"percent"},{label:r._("Absolute"),value:"absolute"}]},showEditor:function(e){var t=e.options;return t.showTrendIndicator||void 0===t.showTrendIndicator}}],[{label:r._("Trend Indicator Position"),option:"trendIndicatorPosition",editor:"editor.radioBar",editorProps:{values:[{label:r._("Standard"),value:"standard"},{label:r._("Below"),value:"below"},{label:r._("Outside"),value:"outside"}]},showEditor:function(e){var t=e.options;return t.showTrendIndicator||void 0===t.showTrendIndicator}}]]},s.default,{label:r._("Background Color"),layout:[[{label:"",option:"backgroundColor",editor:"editor.color",editorProps:{themeVariable:"@splunk/dashboard-visualizations/SingleValueRadial.defaultBackgroundColor"}}]]},a.default],p={key:"splunk.singlevalueradial",name:"SingleValueRadial",category:u.VizCategory.SINGLE_VALUE,icon:o.default,dataContract:{requiredDataSources:[{name:"primary",description:"DataSource that powers the visualization"}],optionalDataSources:[],initialRequestParams:{primary:{offset:0,count:1e4}}},size:{initialWidth:250,initialHeight:250},defaultContext:{trendColors:[{from:0,value:"#53A051"},{to:0,value:"#DC4E41"}]},optionsSchema:d,editorConfig:h,events:{"value.click":{description:"trigger when user clicks major value",payloadKeys:["majorValue","trendValue"]}},supports:[l.VizBehavior.DYNAMIC_OPTIONS,l.VizBehavior.EVENTS,l.VizBehavior.PLACEHOLDER],themes:{}};t.default=c.enhanceConfig(p)},function(e,t){e.exports=n("YlCm")},function(e,t,n){"use strict";n.r(t);var r=n(2),i={label:Object(r._)("Number Formatting"),layout:[[{label:Object(r._)("Digit Precision"),option:"numberPrecision",editor:"editor.number",editorProps:{min:0}}],[{label:Object(r._)("Unit"),option:"unit",editor:"editor.text"},{label:"Position",option:"unitPosition",editor:"editor.select",editorProps:{values:[{label:Object(r._)("Before"),value:"before"},{label:Object(r._)("After"),value:"after"}]}}]]};t.default=i},function(e,t,n){"use strict";n.r(t);var r=n(2),i={label:Object(r._)("Threshold Settings"),open:!0,layout:[[{label:Object(r._)("Fill"),encoding:"fill",formatKey:"ranges",editor:"editor.threshold"}]]};t.default=i},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(14),i=n.n(r),o=n(1),a=n.n(o),s=n(0),l=n.n(s),c=n(3),u=n.n(c),d=n(41),h=n.n(d),p=n(42),f=n.n(p),m=n(2),g=n(15),b=n(17),y=n.n(b),_=n(13),v=n.n(_),M=n(19),w=n(23),x=n(28),A=n(9),k=n.n(A),L=n(29),S=n(8),T=function(e){var t=e.progress,n=e.size,r=void 0===n?200:n,i=e.strokeWidth,o=e.backgroundColor,s=void 0===o?S.RADIAL_BACKGROUND_COLOR:o,l=e.progressColor,c=void 0===l?S.RADIAL_STROKE_COLOR:l,u=r/2,d=u-2*i,h=2*d*Math.PI,p=.8*h,f=t/100*80/100*h,m=.65*h;return a.a.createElement("svg",{height:2*u,width:2*u},a.a.createElement("g",null,a.a.createElement("circle",{"data-test":"background-radial",stroke:s,fill:"transparent",strokeWidth:i,strokeDasharray:"".concat(p," ").concat(h-p),style:{strokeDashoffset:m},r:d,cx:u,cy:u}),a.a.createElement("circle",{"data-test":"progress-radial",stroke:c,fill:"transparent",strokeWidth:i,strokeDasharray:"".concat(f," ").concat(h-f),style:{strokeDashoffset:m},r:d,cx:u,cy:u})))};T.propTypes={progress:l.a.number,size:l.a.number,strokeWidth:l.a.number,backgroundColor:l.a.string,progressColor:l.a.string},T.defaultProps={progress:0,strokeWidth:12};var O=T,C=n(5),D=["standard","below","outside"],E=function(e){var t=e.trendIndicatorPosition,n=e.majorTextFontSize,r=e.trendTextFontSize,i=t;return function(e){return D.indexOf(e)>-1}(i)||(i="standard"),"outside"!==i&&(r<12||n<25)&&(i="below"),i},P=function(e){var t=e.showTrendIndicator,n=e.position;return t&&"standard"===n},j=u.a.div.withConfig({displayName:"RadialLayout__PositionDiv",componentId:"sc-13x2rjt-0"})(["position:absolute;",";bottom:","px;left:0;width:100%;height:100%;display:flex;align-items:",";justify-content:center;"],(function(e){return e.bottom?"":"top: 0"}),(function(e){return e.bottom||0}),(function(e){return e.align||"center"})),z=u.a.div.withConfig({displayName:"RadialLayout__Column",componentId:"sc-13x2rjt-1"})(["display:flex;flex-direction:column;align-items:",";justify-content:",";"],(function(e){return e.align||"center"}),(function(e){return e.align||"center"})),N=u.a.div.withConfig({displayName:"RadialLayout__Row",componentId:"sc-13x2rjt-2"})(["display:flex;flex-direction:row;align-items:center;justify-content:center;"]),Y=u.a.div.withConfig({displayName:"RadialLayout__Square",componentId:"sc-13x2rjt-3"})(["position:relative;margin:0 auto;width:","px;height:","px;"],(function(e){return e.size}),(function(e){return e.size})),I=u.a.div.withConfig({displayName:"RadialLayout__UnderLabelContainer",componentId:"sc-13x2rjt-4"})(["color:",";margin-top:",";font-size:","px;"],(function(e){return e.color}),(function(e){return e.size&&"-".concat(.1*e.size,"px")||0}),(function(e){return e.size||12})),H=function(e){var t=e.trendText,n=e.trendColor,r=e.contentSize,i=Object(C.getTrendFontSize)({width:r/2,height:r/4,trendText:t,spaceRatio:1});return a.a.createElement(L.SingleValueTrendValue,{fontSize:i,color:n,value:t,text:t})};H.propTypes={trendText:l.a.string,trendColor:l.a.string,contentSize:l.a.number};var R=function(e){var t=i()({},e),n=t.majorColor,r=t.majorText,o=t.majorTextFontSize,s=t.majorValueTitle,l=t.trendColor,c=t.trendText,u=t.trendTextFontSize,d=t.showTrendIndicator,h=t.trendPosition,p=t.unit,f=t.unitPosition,m=t.underLabelColor,g=t.underLabelFontSize,b=t.underLabel,y=t.onValueClick,_=t.contentSize,v=t.showRadialGraph,M=t.graphSize,w=t.progress,x=t.radialBackgroundColor,A=t.radialStrokeColor,k=t.radialStrokeWidth,S=H({trendText:c,trendColor:l,contentSize:_}),T=a.a.createElement(L.default,{majorColor:n,majorText:r,majorTextFontSize:o,majorValueTitle:s,trendColor:l,trendText:c,trendTextFontSize:u,showTrendIndicator:P({showTrendIndicator:d,position:h}),unit:p,unitPosition:f,onValueClick:y}),C=v?a.a.createElement(O,{size:M,progress:w,backgroundColor:x,progressColor:A,strokeWidth:k}):null,D=b?a.a.createElement(I,{"data-test":"underLabel",color:m,size:g},b):null,E=function(e){var t=e.showTrendIndicator,n=e.position;return t&&"outside"===n}({showTrendIndicator:d,position:h})?a.a.createElement(z,{align:"end","data-test":"trend-position-outside"},S,D):null,R=function(e){var t=e.showTrendIndicator,n=e.position;return t&&"below"===n}({showTrendIndicator:d,position:h})?a.a.createElement(j,{"data-test":"trend-position-below",align:"flex-end",bottom:.1*M,style:{textAlign:"center"}},S):null;return a.a.createElement(N,null,a.a.createElement(z,null,a.a.createElement(Y,{size:M},C,R,a.a.createElement(j,null,T)),"outside"!==h&&D),E)};R.propTypes=k()({},L.default.propTypes,{trendPosition:l.a.string,contentSize:l.a.number,showRadialGraph:l.a.bool,graphSize:l.a.number,progress:l.a.number,radialBackgroundColor:l.a.string,radialStrokeColor:l.a.string,radialStrokeWidth:l.a.number});var B=R;n.d(t,"themes",(function(){return U}));var F=Object(w.createThemeRegistry)("@splunk/visualizations","PureSingleValueRadial"),W=u.a.div.withConfig({displayName:"SingleValueRadial__Container",componentId:"sc-404dvw-0"})(["overflow:hidden;",";"],(function(e){return Object(g.toDimension)(h()(e,["width","height"]))})),q=function(e){var t=i()({},e),n=t.width,r=t.height,o=void 0===r?250:r,s=t.style,l=t.majorFontSize,c=t.majorValue,u=t.trendValue,d=t.trendFontSize,h=t.trendDisplayMode,p=t.unitPosition,g=t.numberPrecision,b=t.shouldUseThousandSeparators,_=t.shouldAbbreviateTrendValue,M=t.trendIndicatorPosition,w=void 0===M?"standard":M,A=t.onValueClick,k={defaultFontColor:F.themeVariable("defaultFontColor")(t),defaultBlockFontColor:F.themeVariable("defaultBlockFontColor")(t)},L=Object(C.computeColors)(t,k),T=L.backgroundEnabled,O=L.backgroundColor,D=L.majorColor,P=L.trendColor,j=L.underLabelColor,z=function(e){var t=e.backgroundEnabled,n=e.backgroundColor;return Object(C.getGraphColors)({backgroundEnabled:t,backgroundColor:n,defaultColors:S.RADIAL_SEVERITY_COLORS,customColorFormatter:function(e){return{background:Object(C.lighten)(e),stroke:Object(C.darken)(e)}}})}({backgroundEnabled:T,backgroundColor:O}),N=t.radialBackgroundColor||z.background,Y=t.radialStrokeColor||z.stroke,I=function(e){var n=e.width,r=e.height;if(n<35||r<35)return a.a.createElement(v.a,{width:n,height:r,message:Object(m._)("Too small to render content"),level:"info"});var i,o,y=t.showTrendIndicator,M=void 0===y||y,k=t.unit,L=t.underLabel,S=!0,T=function(e){var t=e.width,n=e.height,r=e.underLabel,i=Math.min(t,n);return r&&(i-=C.DEFAULT_FONT),i}({width:n,height:r,underLabel:L}),z=function(e){return e>=90?12:6}(T),I=(o=(i={graphSize:T,radialStrokeWidth:z}).graphSize-i.radialStrokeWidth,Math.floor(Math.sqrt(Math.pow(o,2)/2))),H=Object(C.getUnderLabelHeight)(.1*T),R=Object(C.computeSingleValueContent)({majorValue:c,trendValue:u,majorFontSize:l,trendFontSize:d,trendDisplayMode:h,showTrendIndicator:M,contentWidth:I,contentHeight:I,containerWidth:n,containerHeight:r,unit:k,numberPrecision:g,shouldUseThousandSeparators:b,shouldAbbreviateTrendValue:_,toRemoveList:[{key:"underLabel",value:""},{key:"showRadialGraph",value:!1},{key:"showTrendIndicator",value:!1},{key:"unit",value:""}]}),F=R.majorText,W=R.trendText,q=R.majorTextFontSize,U=R.trendTextFontSize,V=R.majorValueTitle,X=R.smallVizProps;f()(X)||(L=X.underLabel,S=X.showRadialGraph,M=X.showTrendIndicator,k=X.unit);var G=E({trendIndicatorPosition:w,majorTextFontSize:q,trendTextFontSize:U}),K=function(e){return Number.isNaN(Number(e))?0:e/Math.max(e,100)*100}(c);return a.a.createElement(x.default,{backgroundColor:O,style:s,dataTestKey:"SingleValueRadialWrapper"},a.a.createElement(B,{"data-test":"RadialLayout",majorColor:D,majorText:F,majorTextFontSize:q,majorValueTitle:V,trendColor:P,trendText:W,trendTextFontSize:U,showTrendIndicator:M,trendPosition:G,unit:k,unitPosition:p,underLabelColor:j,underLabelFontSize:H,underLabel:L,onValueClick:A,contentSize:.7*I,showRadialGraph:S,graphSize:T,progress:K,radialBackgroundColor:N,radialStrokeColor:Y,radialStrokeWidth:z}))};return a.a.createElement(W,{width:n,height:o},a.a.createElement(y.a,null,(function(e){return I(e)})))};q.propTypes={width:l.a.oneOfType([l.a.string,l.a.number]),height:l.a.oneOfType([l.a.string,l.a.number]),style:l.a.object,majorValue:l.a.oneOfType([l.a.string,l.a.number]),majorColor:l.a.string,majorFontSize:l.a.number,trendValue:l.a.oneOfType([l.a.string,l.a.number]),trendColor:l.a.string,trendFontSize:l.a.number,trendDisplayMode:l.a.string,trendIndicatorPosition:l.a.oneOf(["standard","below","outside"]),shouldAbbreviateTrendValue:l.a.bool,showTrendIndicator:l.a.bool,backgroundColor:l.a.string,unit:l.a.string,unitPosition:l.a.string,underLabel:l.a.string,numberPrecision:l.a.number,shouldUseThousandSeparators:l.a.bool,radialBackgroundColor:l.a.string,radialStrokeColor:l.a.string,onValueClick:l.a.func},q.defaultProps={width:"100%",height:250,majorValue:"N/A",trendDisplayMode:"absolute",trendIndicatorPosition:"standard",shouldAbbreviateTrendValue:!1,showTrendIndicator:!0,unitPosition:"after",numberPrecision:0,shouldUseThousandSeparators:!0,onValueClick:function(){}},F.addDefaultTheme("enterprise",{defaultFontColor:M.enterprise.gray20,defaultBlockFontColor:M.enterprise.white}),F.addTheme("enterpriseDark",{defaultFontColor:M.enterpriseDark.textColor,defaultBlockFontColor:M.enterpriseDark.textColor}),F.addTheme("scp",{defaultFontColor:M.scp.headerTextColor,defaultBlockFontColor:M.scp.headerTextColor});var U=F.toThemes();t.default=Object(c.withTheme)(q)}])},"/xi0":function(e,t,n){(function(e){var r=n("Imk+"),i=n("Y0Mb"),o=n("kkwi");var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var n=new e(i[t].prime,"hex"),r=new e(i[t].gen,"hex");return new o(n,r)},t.createDiffieHellman=t.DiffieHellman=function t(n,i,s,l){return e.isBuffer(i)||void 0===a[i]?t(n,"binary",i,s):(i=i||"binary",l=l||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,l)),"number"==typeof n?new o(r(n,s),s,!0):(e.isBuffer(n)||(n=new e(n,i)),new o(n,s,!0)))}}).call(this,n("+ZX+").Buffer)},"/xwl":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}({10:function(e,t){e.exports=n("ERkP")},3:function(e,t){e.exports=n("HYO+")},9:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryContextConsumer=t.TelemetryContextProvider=t.default=void 0;var s=o(n(10)),l=a(n(3)),c=new l.default,u=s.createContext(c);t.default=u;var d=[];t.TelemetryContextProvider=function(e){var t=e.metricsCollectors,n=void 0===t?d:t,r=e.children,i=s.useMemo((function(){var e=[];return e=e.concat(n),new l.default({metricsCollectors:e})}),[n]);return s.createElement(u.Provider,{value:i},r)};var h=u.Consumer;t.TelemetryContextConsumer=h}})},"/y1E":function(e,t,n){var r=n("sdc/");r(r.S,"Math",{fround:n("xa0L")})},"0+aC":function(e,t,n){var r=n("pFSi");e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},"0+c5":function(e,t,n){var r=n("vGGS"),i=n("obGE");function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},"0/0F":function(e,t,n){var r=n("lQeO"),i=n("V9GE"),o=n("OfYF")("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},"00OJ":function(e,t,n){var r=n("sdc/");r(r.G+r.W+r.F*!n("B/PX").ABV,{DataView:n("sL4p").DataView})},"01GE":function(e,t,n){"use strict";var r=n("9tx4"),i=n("EEm6"),o=n("ik0T"),a=n("EyKM");n("e04W")("match",1,(function(e,t,n,s){return[function(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=r(e),c=String(this);if(!l.global)return a(l,c);var u=l.unicode;l.lastIndex=0;for(var d,h=[],p=0;null!==(d=a(l,c));){var f=String(d[0]);h[p]=f,""===f&&(l.lastIndex=o(c,i(l.lastIndex),u)),p++}return 0===p?null:h}]}))},"02ec":function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return m}));var r,i,o,a=n("vB0K"),s=n.n(a),l=n("RqDG"),c={insert:"head",singleton:!1},u=(s()(l.a,c),l.a.locals,n("sjbp")),d=n("SMqw"),h=n("IQ2W");function p(e){(r=document.createElement("div")).className="monaco-aria-container",(i=document.createElement("div")).className="monaco-alert",i.setAttribute("role","alert"),i.setAttribute("aria-atomic","true"),r.appendChild(i),(o=document.createElement("div")).className="monaco-status",o.setAttribute("role","status"),o.setAttribute("aria-atomic","true"),r.appendChild(o),e.appendChild(r)}function f(e,t){y(i,e,t)}function m(e,t){d.e?f(e,t):y(o,e,t)}var g=0,b=void 0;function y(e,t,n){if(r){if(!n)switch(b===t?g++:(b=t,g=0),g){case 0:break;case 1:t=u.a("repeated","{0} (occurred again)",t);break;default:t=u.a("repeatedNtimes","{0} (occurred {1} times)",t,g)}h.t(e),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}}},"05zr":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return d}));var r,i,o=n("2+HM"),a=n("8Us2"),s=n("cCap"),l=n("OTNC"),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=Object(o.c)("storageService");!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(i||(i={}));var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidChangeStorage=t._register(new a.a),t.onDidChangeStorage=t._onDidChangeStorage.event,t._onWillSaveState=t._register(new a.a),t.onWillSaveState=t._onWillSaveState.event,t.globalCache=new Map,t.workspaceCache=new Map,t}return c(t,e),t.prototype.getCache=function(e){return 0===e?this.globalCache:this.workspaceCache},t.prototype.get=function(e,t,n){var r=this.getCache(t).get(e);return Object(l.l)(r)?n:r},t.prototype.getBoolean=function(e,t,n){var r=this.getCache(t).get(e);return Object(l.l)(r)?n:"true"===r},t.prototype.store=function(e,t,n){if(Object(l.l)(t))return this.remove(e,n);var r=String(t);return this.getCache(n).get(e)===r||(this.getCache(n).set(e,r),this._onDidChangeStorage.fire({scope:n,key:e})),Promise.resolve()},t.prototype.remove=function(e,t){return this.getCache(t).delete(e)?(this._onDidChangeStorage.fire({scope:t,key:e}),Promise.resolve()):Promise.resolve()},t}(s.a)},"06CT":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var r=function(){function e(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}return e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},e}(),i=n("7Bv9"),o=function(){function e(e){this.source=e}return e.prototype.getElements=function(){for(var e=this.source,t=new Int32Array(e.length),n=0,r=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new r(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824},e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),u=function(){function e(t,n,r){void 0===r&&(r=null),this.ContinueProcessingPredicate=r;var i=e._getElements(t),o=i[0],a=i[1],s=i[2],l=e._getElements(n),c=l[0],u=l[1],d=l[2];this._hasStrings=s&&d,this._originalStringElements=o,this._originalElementsOrHash=a,this._modifiedStringElements=c,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e._isStringArray=function(e){return e.length>0&&"string"==typeof e[0]},e._getElements=function(t){var n=t.getElements();if(e._isStringArray(n)){for(var r=new Int32Array(n.length),o=0,a=n.length;o=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){var a=void 0;return n<=i?(s.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a=[new r(e,0,n,i-n+1)]):e<=t?(s.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),a=[new r(e,t-e+1,n,0)]):(s.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),a=[]),a}var l=[0],c=[0],u=this.ComputeRecursionPoint(e,t,n,i,l,c,o),d=l[0],h=c[0];if(null!==u)return u;if(!o[0]){var p=this.ComputeDiffRecursive(e,d,n,h,o),f=[];return f=o[0]?[new r(d+1,t-(d+1)+1,h+1,i-(h+1)+1)]:this.ComputeDiffRecursive(d+1,t,h+1,i,o),this.ConcatenateChanges(p,f)}return[new r(e,t-e+1,n,i-n+1)]},e.prototype.WALKTRACE=function(e,t,n,i,o,a,s,l,u,d,h,p,f,m,g,b,y,_){var v,M=null,w=new c,x=t,A=n,k=f[0]-b[0]-i,L=-1073741824,S=this.m_forwardHistory.length-1;do{(D=k+e)===x||D=0&&(e=(u=this.m_forwardHistory[S])[0],x=1,A=u.length-1)}while(--S>=-1);if(v=w.getReverseChanges(),_[0]){var T=f[0]+1,O=b[0]+1;if(null!==v&&v.length>0){var C=v[v.length-1];T=Math.max(T,C.getOriginalEnd()),O=Math.max(O,C.getModifiedEnd())}M=[new r(T,p-T+1,O,g-O+1)]}else{w=new c,x=a,A=s,k=f[0]-b[0]-l,L=1073741824,S=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var D;(D=k+o)===x||D=d[D+1]?(m=(h=d[D+1]-1)-k-l,h>L&&w.MarkNextChange(),L=h+1,w.AddOriginalElement(h+1,m+1),k=D+1-o):(m=(h=d[D-1])-k-l,h>L&&w.MarkNextChange(),L=h,w.AddModifiedElement(h+1,m+1),k=D-1-o),S>=0&&(o=(d=this.m_reverseHistory[S])[0],x=1,A=d.length-1)}while(--S>=-1);M=w.getChanges()}return this.ConcatenateChanges(v,M)},e.prototype.ComputeRecursionPoint=function(e,t,n,i,o,a,s){var c=0,u=0,d=0,h=0,p=0,f=0;e--,n--,o[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var m=t-e+(i-n),g=m+1,b=new Int32Array(g),y=new Int32Array(g),_=i-n,v=t-e,M=e-n,w=t-i,x=(v-_)%2==0;b[_]=e,y[v]=t,s[0]=!1;for(var A=1;A<=m/2+1;A++){var k=0,L=0;d=this.ClipDiagonalBound(_-A,A,_,g),h=this.ClipDiagonalBound(_+A,A,_,g);for(var S=d;S<=h;S+=2){u=(c=S===d||Sk+L&&(k=c,L=u),!x&&Math.abs(S-v)<=A-1&&c>=y[S])return o[0]=c,a[0]=u,T<=y[S]&&A<=1448?this.WALKTRACE(_,d,h,M,v,p,f,w,b,y,c,t,o,u,i,a,x,s):null}var O=(k-e+(L-n)-A)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(k,O))return s[0]=!0,o[0]=k,a[0]=L,O>0&&A<=1448?this.WALKTRACE(_,d,h,M,v,p,f,w,b,y,c,t,o,u,i,a,x,s):(e++,n++,[new r(e,t-e+1,n,i-n+1)]);p=this.ClipDiagonalBound(v-A,A,v,g),f=this.ClipDiagonalBound(v+A,A,v,g);for(S=p;S<=f;S+=2){u=(c=S===p||S=y[S+1]?y[S+1]-1:y[S-1])-(S-v)-w;for(T=c;c>e&&u>n&&this.ElementsAreEqual(c,u);)c--,u--;if(y[S]=c,x&&Math.abs(S-_)<=A&&c<=b[S])return o[0]=c,a[0]=u,T>=b[S]&&A<=1448?this.WALKTRACE(_,d,h,M,v,p,f,w,b,y,c,t,o,u,i,a,x,s):null}if(A<=1447){var C=new Int32Array(h-d+2);C[0]=_-d+1,l.Copy2(b,d,C,1,h-d+1),this.m_forwardHistory.push(C),(C=new Int32Array(f-p+2))[0]=v-p+1,l.Copy2(y,p,C,1,f-p+1),this.m_reverseHistory.push(C)}}return this.WALKTRACE(_,d,h,M,v,p,f,w,b,y,c,t,o,u,i,a,x,s)},e.prototype.PrettifyChanges=function(e){for(var t=0;t0,a=n.modifiedLength>0;n.originalStart+n.originalLength=0;t--){n=e[t],r=0,i=0;if(t>0){var l=e[t-1];l.originalLength>0&&(r=l.originalStart+l.originalLength),l.modifiedLength>0&&(i=l.modifiedStart+l.modifiedLength)}o=n.originalLength>0,a=n.modifiedLength>0;for(var c=0,u=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),d=1;;d++){var h=n.originalStart-d,p=n.modifiedStart-d;if(hu&&(u=f,c=d)}n.originalStart-=c,n.modifiedStart-=c}return e},e.prototype._OriginalIsBoundary=function(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])},e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},e.prototype._boundaryScore=function(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)},e.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var r=new Array(e.length+t.length-1);return l.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],l.Copy(t,1,r,e.length,t.length-1),r}r=new Array(e.length+t.length);return l.Copy(e,0,r,0,e.length),l.Copy(t,0,r,e.length,t.length),r},e.prototype.ChangesOverlap=function(e,t,n){if(s.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),s.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var i=e.originalStart,o=e.originalLength,a=e.modifiedStart,l=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(l=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new r(i,o,a,l),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,r){if(e>=0&&e=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")},t.getCoords=function(e){if(Array.isArray(e))return e;if("Feature"===e.type){if(null!==e.geometry)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")},t.containsNumber=function e(t){if(t.length>1&&r.isNumber(t[0])&&r.isNumber(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return e(t[0]);throw new Error("coordinates must only contain numbers")},t.geojsonType=function(e,t,n){if(!t||!n)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.type)},t.featureOf=function(e,t,n){if(!e)throw new Error("No feature passed");if(!n)throw new Error(".featureOf() requires a name");if(!e||"Feature"!==e.type||!e.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!e.geometry||e.geometry.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.geometry.type)},t.collectionOf=function(e,t,n){if(!e)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0,i=e.features;r","$COMPILING","$REAL_GROUP_ID","$?","$DEBUGGING","$REAL_USER_ID","$@","$EFFECTIVE_GROUP_ID","$RS","$[","$EFFECTIVE_USER_ID","$SUBSCRIPT_SEPARATOR","$\\","$EGID","$SUBSEP","$]","$ERRNO","$SYSTEM_FD_MAX","$^","$EUID","$UID","$^A","$EVAL_ERROR","$WARNING","$^C","$EXCEPTIONS_BEING_CAUGHT","$|","$^CHILD_ERROR_NATIVE","$EXECUTABLE_NAME","$~","$^D","$EXTENDED_OS_ERROR","%!","$^E","$FORMAT_FORMFEED","%^H","$^ENCODING","$FORMAT_LINE_BREAK_CHARACTERS","%ENV","$^F","$FORMAT_LINES_LEFT","%INC","$^H","$FORMAT_LINES_PER_PAGE","%OVERLOAD","$^I","$FORMAT_NAME","%SIG","$^L","$FORMAT_PAGE_NUMBER","@+","$^M","$FORMAT_TOP_NAME","@-","$^N","$GID","@_","$^O","$INPLACE_EDIT","@ARGV","$^OPEN","$INPUT_LINE_NUMBER","@INC","$^P","$INPUT_RECORD_SEPARATOR","@LAST_MATCH_START","$^R","$LAST_MATCH_END","$^RE_DEBUG_FLAGS","$LAST_PAREN_MATCH"],symbols:/[:+\-\^*$&%@=<>!?|\/~\.]/,quoteLikeOps:["qr","m","s","q","qq","qx","qw","tr","y"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z\-_][\w\-_]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"type.identifier","@builtinFileHandlers":"variable.predefined","@quoteLikeOps":{token:"@rematch",next:"quotedConstructs"},"@default":""}}],[/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,{cases:{"@builtinVariables":"variable.predefined","@default":"variable"}}],{include:"@strings"},{include:"@dblStrings"},{include:"@perldoc"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,"regexp"],[/@symbols/,"operators"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"]],stringBody:[[/'/,"string","@popall"],[/\\'/,"string.escape"],[/./,"string"]],dblStrings:[[/"/,"string","@dblStringBody"]],dblStringBody:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],{include:"@variables"},[/./,"string"]],quotedConstructs:[[/(q|qw|tr|y)\s*\(/,{token:"string.delim",switchTo:"@qstring.(.)"}],[/(q|qw|tr|y)\s*\[/,{token:"string.delim",switchTo:"@qstring.[.]"}],[/(q|qw|tr|y)\s*\{/,{token:"string.delim",switchTo:"@qstring.{.}"}],[/(q|qw|tr|y)\s*"}],[/(q|qw|tr|y)#/,{token:"string.delim",switchTo:"@qstring.#.#"}],[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(q|qw|tr|y)\s+(\w)/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(qr|m|s)\s*\(/,{token:"regexp.delim",switchTo:"@qregexp.(.)"}],[/(qr|m|s)\s*\[/,{token:"regexp.delim",switchTo:"@qregexp.[.]"}],[/(qr|m|s)\s*\{/,{token:"regexp.delim",switchTo:"@qregexp.{.}"}],[/(qr|m|s)\s*"}],[/(qr|m|s)#/,{token:"regexp.delim",switchTo:"@qregexp.#.#"}],[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qr|m|s)\s+(\w)/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qq|qx)\s*\(/,{token:"string.delim",switchTo:"@qqstring.(.)"}],[/(qq|qx)\s*\[/,{token:"string.delim",switchTo:"@qqstring.[.]"}],[/(qq|qx)\s*\{/,{token:"string.delim",switchTo:"@qqstring.{.}"}],[/(qq|qx)\s*"}],[/(qq|qx)#/,{token:"string.delim",switchTo:"@qqstring.#.#"}],[/(qq|qx)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}],[/(qq|qx)\s+(\w)/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}]],qstring:[[/\\./,"string.escape"],[/./,{cases:{"$#==$S3":{token:"string.delim",next:"@pop"},"$#==$S2":{token:"string.delim",next:"@push"},"@default":"string"}}]],qregexp:[{include:"@variables"},[/\\./,"regexp.escape"],[/./,{cases:{"$#==$S3":{token:"regexp.delim",next:"@regexpModifiers"},"$#==$S2":{token:"regexp.delim",next:"@push"},"@default":"regexp"}}]],regexpModifiers:[[/[msixpodualngcer]+/,{token:"regexp.modifier",next:"@popall"}]],qqstring:[{include:"@variables"},{include:"@qstring"}],heredoc:[[/<<\s*['"`]?([\w\-]+)['"`]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],perldoc:[[/^=\w/,"comment.doc","@perldocBody"]],perldocBody:[[/^=cut\b/,"type.identifier","@popall"],[/./,"comment.doc"]],variables:[[/\$\w+/,"variable"],[/@\w+/,"variable"],[/%\w+/,"variable"]]}}},"0G6+":function(e,t,n){"use strict";var r=n("yrnK"),i=n("PfvR");r.Observable.prototype.scan=i.scan},"0HLa":function(e,t,n){"use strict";n.r(t);var r=n("d7BT");Object(r.a)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return n.e(0).then(n.bind(null,"PTLD"))}})},"0Hcc":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return r})),n.d(t,"language",(function(){return i}));var r={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},i={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}},"0Hfl":function(e,t,n){var r;e.exports=(r=n("Ni7E"),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],b=e[t+6],y=e[t+7],_=e[t+8],v=e[t+9],M=e[t+10],w=e[t+11],x=e[t+12],A=e[t+13],k=e[t+14],L=e[t+15],S=o[0],T=o[1],O=o[2],C=o[3];S=c(S,T,O,C,a,7,s[0]),C=c(C,S,T,O,l,12,s[1]),O=c(O,C,S,T,p,17,s[2]),T=c(T,O,C,S,f,22,s[3]),S=c(S,T,O,C,m,7,s[4]),C=c(C,S,T,O,g,12,s[5]),O=c(O,C,S,T,b,17,s[6]),T=c(T,O,C,S,y,22,s[7]),S=c(S,T,O,C,_,7,s[8]),C=c(C,S,T,O,v,12,s[9]),O=c(O,C,S,T,M,17,s[10]),T=c(T,O,C,S,w,22,s[11]),S=c(S,T,O,C,x,7,s[12]),C=c(C,S,T,O,A,12,s[13]),O=c(O,C,S,T,k,17,s[14]),S=u(S,T=c(T,O,C,S,L,22,s[15]),O,C,l,5,s[16]),C=u(C,S,T,O,b,9,s[17]),O=u(O,C,S,T,w,14,s[18]),T=u(T,O,C,S,a,20,s[19]),S=u(S,T,O,C,g,5,s[20]),C=u(C,S,T,O,M,9,s[21]),O=u(O,C,S,T,L,14,s[22]),T=u(T,O,C,S,m,20,s[23]),S=u(S,T,O,C,v,5,s[24]),C=u(C,S,T,O,k,9,s[25]),O=u(O,C,S,T,f,14,s[26]),T=u(T,O,C,S,_,20,s[27]),S=u(S,T,O,C,A,5,s[28]),C=u(C,S,T,O,p,9,s[29]),O=u(O,C,S,T,y,14,s[30]),S=d(S,T=u(T,O,C,S,x,20,s[31]),O,C,g,4,s[32]),C=d(C,S,T,O,_,11,s[33]),O=d(O,C,S,T,w,16,s[34]),T=d(T,O,C,S,k,23,s[35]),S=d(S,T,O,C,l,4,s[36]),C=d(C,S,T,O,m,11,s[37]),O=d(O,C,S,T,y,16,s[38]),T=d(T,O,C,S,M,23,s[39]),S=d(S,T,O,C,A,4,s[40]),C=d(C,S,T,O,a,11,s[41]),O=d(O,C,S,T,f,16,s[42]),T=d(T,O,C,S,b,23,s[43]),S=d(S,T,O,C,v,4,s[44]),C=d(C,S,T,O,x,11,s[45]),O=d(O,C,S,T,L,16,s[46]),S=h(S,T=d(T,O,C,S,p,23,s[47]),O,C,a,6,s[48]),C=h(C,S,T,O,y,10,s[49]),O=h(O,C,S,T,k,15,s[50]),T=h(T,O,C,S,g,21,s[51]),S=h(S,T,O,C,x,6,s[52]),C=h(C,S,T,O,f,10,s[53]),O=h(O,C,S,T,M,15,s[54]),T=h(T,O,C,S,l,21,s[55]),S=h(S,T,O,C,_,6,s[56]),C=h(C,S,T,O,L,10,s[57]),O=h(O,C,S,T,b,15,s[58]),T=h(T,O,C,S,A,21,s[59]),S=h(S,T,O,C,m,6,s[60]),C=h(C,S,T,O,w,10,s[61]),O=h(O,C,S,T,p,15,s[62]),T=h(T,O,C,S,v,21,s[63]),o[0]=o[0]+S|0,o[1]=o[1]+T|0,o[2]=o[2]+O|0,o[3]=o[3]+C|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<>>32-o)+t}function u(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<>>32-o)+t}function h(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(l),t.HmacMD5=o._createHmacHelper(l)}(Math),r.MD5)},"0I1U":function(e,t,n){var r=n("KLyV").Buffer,i=r.alloc(16,0);function o(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},"0IwT":function(e,t,n){"use strict";var r=n("PUt6");t.mapTo=function(e){return r.mapTo(e)(this)}},"0J62":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}({0:function(e,t){e.exports=n("J45V")},1:function(e,t){e.exports=n("Bvc7")},17:function(e,t,n){"use strict";n.r(t),n.d(t,"dataContract",(function(){return s})),n.d(t,"parse",(function(){return l}));var r=n(1),i=n(3),o=n.n(i),a=n(2),s={requiredDataSources:[{name:"primary",description:"DataSource that powers the visualization"}],optionalDataSources:[],initialRequestParams:{primary:{offset:0,count:1e4},annotation:{offset:0,count:1e4}},encoding:{x:{isRequired:!0,type:["time","number","string"],default:"primary[0]"},y:{isRequired:!0,type:["number","string"],default:"primary[1:]"},y2:{isRequired:!1,type:["number","string"]},annotationX:{isRequired:!1,type:["time","number","string"]},annotationLabel:{isRequired:!1,type:["string"]},annotationColor:{isRequired:!1,type:["string"]}}},l=function(e,t){if(o()(e))throw new Error(a.ErrorMsgs.NO_DATA_SOURCES);var n=Object(r.mergeEncoding)(s.encoding,t),i=Object(r.parse)(e,n);return{x:i.x,y:i.y,y2:i.y2,annotationX:i.annotationX,annotationLabel:i.annotationLabel,annotationColor:i.annotationColor,xFieldName:i._meta.fieldNames.x,yFieldName:i._meta.fieldNames.y,y2FieldName:i._meta.fieldNames.y2}}},2:function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorMsgs",(function(){return i}));var r=n(0),i={NO_DATA_SOURCES:Object(r._)("No valid dataSources."),NO_ENCODING:Object(r._)("No valid encoding."),ERROR_PARSE:Object(r._)("Can not parse data correctly.")}},3:function(e,t){e.exports=n("MwrP")}})},"0Jap":function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},i=n("lLRD"),o=n("l+aB");t.materialize=function(){return function(e){return e.lift(new a)}};var a=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new s(e))},e}(),s=function(e){function t(t){e.call(this,t)}return r(t,e),t.prototype._next=function(e){this.destination.next(o.Notification.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(o.Notification.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(o.Notification.createComplete()),e.complete()},t}(i.Subscriber)},"0Knj":function(e,t,n){var r=n("zKkv");e.exports=function(e,t,n,i){return r(e,(function(e,r,o){t(i,n(e),r,o)})),i}},"0Mv7":function(e,t,n){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var o=!1,a=0;ao[a]^n?1:-1;return l==c?0:c(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else tH?m.c=m.e=null:e.eH)m.c=m.e=null;else if(sn-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}function X(e,t,n){var r,i,o,a,s=0,l=e.length,c=t%p,u=t/p|0;for(e=e.slice();l--;)s=((i=c*(o=e[l]%p)+(r=u*o+(a=e[l]/p|0)*c)%p*p+s)/n|0)+(r/p|0)+u*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function G(e,t,n,r){var i,o;if(n!=r)o=rt[i]?1:-1;break}return o}function K(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]H?e.c=e.e=null:n=g.length){if(!r)break e;for(;g.length<=f;g.push(0));p=m=0,l=(s%=u)-u+(i=1)}else{for(p=d=g[f],i=1;10<=d;d/=10,i++);m=(l=(s%=u)-u+i)<0?0:p/b[i-l-1]%10|0}if(r=r||t<0||null!=g[f+1]||(l<0?p:p%b[i-l-1]),r=n<4?(m||r)&&(0==n||n==(e.s<0?3:2)):5H?e.c=e.e=null:e.e>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(d.push(l%1e14),c+=2);c=i/2}else{if(!crypto.randomBytes)throw R=!1,Error(s+"crypto unavailable");for(t=crypto.randomBytes(i*=7);cr;)h[s]=0,s||(++l,h=[1].concat(h));for(c=h.length;!h[--c];);for(f=0,e="";f<=c;e+=a.charAt(h[f++]));e=M(e,l,a.charAt(0))}return e},n=function(e,t,n,r,i){var o,s,l,d,h,p,f,g,b,y,_,v,M,w,x,A,k,L=e.s==t.s?1:-1,S=e.c,T=t.c;if(!(S&&S[0]&&T&&T[0]))return new U(e.s&&t.s&&(S?!T||S[0]!=T[0]:T)?S&&0==S[0]||!T?0*L:L/0:NaN);for(b=(g=new U(L)).c=[],L=n+(s=e.e-t.e)+1,i||(i=c,s=m(e.e/u)-m(t.e/u),L=L/u|0),l=0;T[l]==(S[l]||0);l++);if(T[l]>(S[l]||0)&&s--,L<0)b.push(1),d=!0;else{for(w=S.length,A=T.length,L+=2,1<(h=a(i/(T[l=0]+1)))&&(T=X(T,h,i),S=X(S,h,i),A=T.length,w=S.length),M=A,_=(y=S.slice(0,A)).length;_=i/2&&x++;do{if(h=0,(o=G(T,y,A,_))<0){if(v=y[0],A!=_&&(v=v*i+(y[1]||0)),1<(h=a(v/x)))for(i<=h&&(h=i-1),f=(p=X(T,h,i)).length,_=y.length;1==G(p,y,f,_);)h--,K(p,Al&&(p.c.length=l):r&&(p=p.mod(t))}if(i){if(0===(i=a(i/2)))break;h=i%2}else if(Z(e=e.times(n),e.e+1,1),14l&&(f.c.length=l):r&&(f=f.mod(t))}return r?p:(d&&(p=P.div(p)),t?p.mod(t):l?Z(p,F,z,void 0):p)},E.integerValue=function(e){var t=new U(this);return null==e?e=z:y(e,0,8),Z(t,t.e+1,e)},E.isEqualTo=E.eq=function(e,t){return 0===b(this,new U(e,t))},E.isFinite=function(){return!!this.c},E.isGreaterThan=E.gt=function(e,t){return 0this.c.length-2},E.isLessThan=E.lt=function(e,t){return b(this,new U(e,t))<0},E.isLessThanOrEqualTo=E.lte=function(e,t){return-1===(t=b(this,new U(e,t)))||0===t},E.isNaN=function(){return!this.s},E.isNegative=function(){return this.s<0},E.isPositive=function(){return 0r&&(r=this.e+1),r},E.shiftedBy=function(e){return y(e,-d,d),this.times("1e"+e)},E.squareRoot=E.sqrt=function(){var e,t,r,i,o,a=this,s=a.c,l=a.s,c=a.e,u=j+4,d=new U("0.5");if(1!==l||!s||!s[0])return new U(!l||l<0&&(!s||s[0])?NaN:s?a:1/0);if((r=0==(l=Math.sqrt(+ee(a)))||l==1/0?(((t=g(s)).length+c)%2==0&&(t+="0"),l=Math.sqrt(+t),c=m((c+1)/2)-(c<0||c%2),new U(t=l==1/0?"1e"+c:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+c)):new U(l+"")).c[0])for((l=(c=r.e)+u)<3&&(l=0);;)if(o=r,r=d.times(o.plus(n(a,o,u,1))),g(o.c).slice(0,l)===(t=g(r.c)).slice(0,l)){if(r.e=s.trillion||i&&1===h(f/s.trillion)?(p=o.trillion,t/=s.trillion):f=s.billion||i&&1===h(f/s.billion)?(p=o.billion,t/=s.billion):f=s.million||i&&1===h(f/s.million)?(p=o.million,t/=s.million):(f=s.thousand||i&&1===h(f/s.thousand))&&(p=o.thousand,t/=s.thousand),p=p&&(l?" ":"")+p,u){var g=t<0,b=t.toString().split(".")[0],y=g?b.length-1:b.length;m=Math.max(u-y,0)}return{value:t,abbreviation:p,mantissaPrecision:m}}({value:h,forceAverage:S,lowPrecision:T,abbreviations:a.currentAbbreviations(),spaceSeparated:j,roundingFunction:I,totalLength:A});h=R.value,H+=R.abbreviation,A&&(C=R.mantissaPrecision)}if(Y){var B=(f=(p={value:h,characteristicPrecision:k}).value,y=void 0===(m=p.characteristicPrecision)?0:m,v=(_=r(f.toExponential().split("e"),2))[0],M=_[1],w=+v,y&&1>>0,r=0;r0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},V={};function X(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(V[e]=i),t&&(V[t[0]]=function(){return F(i.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function K(e,t){return e.isValid()?(t=$(t,e.localeData()),U[t]=U[t]||function(e){var t,n,r=e.match(W);for(t=0,n=r.length;t=0&&q.test(e);)e=e.replace(q,r),q.lastIndex=0,n-=1;return e}var Q=/\d/,J=/\d\d/,Z=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,le=/\d+/,ce=/[+-]?\d+/,ue=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,he=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,pe={};function fe(e,t,n){pe[e]=O(t)?t:function(e,r){return e&&n?n:t}}function me(e,t){return u(pe,e)?pe[e](t._strict,t._locale):new RegExp(function(e){return ge(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}(e))}function ge(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var be={};function ye(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=x(e)}),n=0;n68?1900:2e3)};var Pe=H("FullYear",!0);function je(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function ze(e,t,n){var r=7+t-n;return-((7+je(e,0,r).getUTCDay()-t)%7)+r-1}function Ne(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+ze(e,r,i);return s<=0?a=De(o=e-1)+s:s>De(e)?(o=e+1,a=s-De(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Ye(e,t,n){var r,i,o=ze(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Ie(i=e.year()-1,t,n):a>Ie(e.year(),t,n)?(r=a-Ie(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ie(e,t,n){var r=ze(e,t,n),i=ze(e+1,t,n);return(De(e)-r+i)/7}X("w",["ww",2],"wo","week"),X("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),I("week",5),I("isoWeek",5),fe("w",ne),fe("ww",ne,J),fe("W",ne),fe("WW",ne,J),_e(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=x(e)})),X("d",0,"do","day"),X("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),X("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),X("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),X("e",0,0,"weekday"),X("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),I("day",11),I("weekday",11),I("isoWeekday",11),fe("d",ne),fe("e",ne),fe("E",ne),fe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),fe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),fe("dddd",(function(e,t){return t.weekdaysRegex(e)})),_e(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e})),_e(["d","e","E"],(function(e,t,n,r){t[r]=x(e)}));var He="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Re="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fe=he,We=he,qe=he;function Ue(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),l.push(o),c.push(r),c.push(i),c.push(o);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=ge(s[t]),l[t]=ge(l[t]),c[t]=ge(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ve(){return this.hours()%12||12}function Xe(e,t){X(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ge(e,t){return t._meridiemParse}X("H",["HH",2],0,"hour"),X("h",["hh",2],0,Ve),X("k",["kk",2],0,(function(){return this.hours()||24})),X("hmm",0,0,(function(){return""+Ve.apply(this)+F(this.minutes(),2)})),X("hmmss",0,0,(function(){return""+Ve.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)})),X("Hmm",0,0,(function(){return""+this.hours()+F(this.minutes(),2)})),X("Hmmss",0,0,(function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)})),Xe("a",!0),Xe("A",!1),j("hour","h"),I("hour",13),fe("a",Ge),fe("A",Ge),fe("H",ne),fe("h",ne),fe("k",ne),fe("HH",ne,J),fe("hh",ne,J),fe("kk",ne,J),fe("hmm",re),fe("hmmss",ie),fe("Hmm",re),fe("Hmmss",ie),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var r=x(e);t[3]=24===r?0:r})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=x(e),p(n).bigHour=!0})),ye("hmm",(function(e,t,n){var r=e.length-2;t[3]=x(e.substr(0,r)),t[4]=x(e.substr(r)),p(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=x(e.substr(0,r)),t[4]=x(e.substr(r,2)),t[5]=x(e.substr(i)),p(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var r=e.length-2;t[3]=x(e.substr(0,r)),t[4]=x(e.substr(r))})),ye("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=x(e.substr(0,r)),t[4]=x(e.substr(r,2)),t[5]=x(e.substr(i))}));var Ke,$e=H("Hours",!0),Qe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ae,monthsShort:ke,week:{dow:0,doy:6},weekdays:He,weekdaysMin:Be,weekdaysShort:Re,meridiemParse:/[ap]\.?m?\.?/i},Je={},Ze={};function et(e){return e?e.toLowerCase().replace("_","-"):e}function tt(t){var r=null;if(!Je[t]&&void 0!==e&&e&&e.exports)try{r=Ke._abbr,n(120)("./"+t),nt(r)}catch(e){}return Je[t]}function nt(e,t){var n;return e&&(n=a(t)?it(e):rt(e,t))&&(Ke=n),Ke._abbr}function rt(e,t){if(null!==t){var n=Qe;if(t.abbr=e,null!=Je[e])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Je[e]._config;else if(null!=t.parentLocale){if(null==Je[t.parentLocale])return Ze[t.parentLocale]||(Ze[t.parentLocale]=[]),Ze[t.parentLocale].push({name:e,config:t}),null;n=Je[t.parentLocale]._config}return Je[e]=new D(C(n,t)),Ze[e]&&Ze[e].forEach((function(e){rt(e.name,e.config)})),nt(e),Je[e]}return delete Je[e],null}function it(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ke;if(!i(e)){if(t=tt(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o0;){if(r=tt(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&A(i,n,!0)>=t-1)break;t--}o++}return null}(e)}function ot(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>we(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}var at=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,st=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lt=/Z|[+-]\d\d(?::?\d\d)?/,ct=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ut=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],dt=/^\/?Date\((\-?\d+)/i;function ht(e){var t,n,r,i,o,a,s=e._i,l=at.exec(s)||st.exec(s);if(l){for(p(e).iso=!0,t=0,n=ct.length;t10?"YYYY ":"YY "),o="HH:mm"+(n[4]?":ss":""),n[1]){var c=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][new Date(n[2]).getDay()];if(n[1].substr(0,3)!==c)return p(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:0===s?a=" +0000":a=((s="YXWVUTSRQPONZABCDEFGHIKLM".indexOf(n[5][1].toUpperCase())-12)<0?" -":" +")+(""+s).replace(/^-?/,"0").match(/..$/)[0]+"00";break;case 4:a=l[n[5]];break;default:a=l[" GMT"]}n[5]=a,e._i=n.splice(1).join("")," ZZ",e._f=r+i+o+" ZZ",bt(e),p(e).rfc2822=!0}else e._isValid=!1}function mt(e,t,n){return null!=e?e:null!=t?t:n}function gt(e){var t,n,i,o,a=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,i,o,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=mt(t.GG,e._a[0],Ye(vt(),1,4).year),r=mt(t.W,1),((i=mt(t.E,1))<1||i>7)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var c=Ye(vt(),o,a);n=mt(t.gg,e._a[0],c.year),r=mt(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o}r<1||r>Ie(n,o,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=Ne(n,r,i,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=mt(e._a[0],i[0]),(e._dayOfYear>De(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=je(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?je:function(e,t,n,r,i,o,a){var s=new Date(e,t,n,r,i,o,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,a),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24)}}function bt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],p(e).empty=!0;var t,n,i,o,a,s=""+e._i,l=s.length,c=0;for(i=$(e._f,e._locale).match(W)||[],t=0;t0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),V[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),ve(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=l-c,s.length>0&&p(e).unusedInput.push(s),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),gt(e),ot(e)}else ft(e);else ht(e)}function yt(e){var t=e._i,n=e._f;return e._locale=e._locale||it(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),M(t)?new v(ot(t)):(l(t)?e._d=t:i(n)?function(e){var t,n,r,i,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:g()}));function xt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return vt();for(n=t[0],r=1;r(o=Ie(e,r,i))&&(t=o),function(e,t,n,r,i){var o=Ne(e,t,n,r,i),a=je(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,i))}X(0,["gg",2],0,(function(){return this.weekYear()%100})),X(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Vt("gggg","weekYear"),Vt("ggggg","weekYear"),Vt("GGGG","isoWeekYear"),Vt("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),I("weekYear",1),I("isoWeekYear",1),fe("G",ce),fe("g",ce),fe("GG",ne,J),fe("gg",ne,J),fe("GGGG",ae,ee),fe("gggg",ae,ee),fe("GGGGG",se,te),fe("ggggg",se,te),_e(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=x(e)})),_e(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),X("Q",0,"Qo","quarter"),j("quarter","Q"),I("quarter",7),fe("Q",Q),ye("Q",(function(e,t){t[1]=3*(x(e)-1)})),X("D",["DD",2],"Do","date"),j("date","D"),I("date",9),fe("D",ne),fe("DD",ne,J),fe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=x(e.match(ne)[0])}));var Gt=H("Date",!0);X("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),I("dayOfYear",4),fe("DDD",oe),fe("DDDD",Z),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=x(e)})),X("m",["mm",2],0,"minute"),j("minute","m"),I("minute",14),fe("m",ne),fe("mm",ne,J),ye(["m","mm"],4);var Kt=H("Minutes",!1);X("s",["ss",2],0,"second"),j("second","s"),I("second",15),fe("s",ne),fe("ss",ne,J),ye(["s","ss"],5);var $t,Qt=H("Seconds",!1);for(X("S",0,0,(function(){return~~(this.millisecond()/100)})),X(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),X(0,["SSS",3],0,"millisecond"),X(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),X(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),X(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),X(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),X(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),X(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),j("millisecond","ms"),I("millisecond",16),fe("S",oe,Q),fe("SS",oe,J),fe("SSS",oe,Z),$t="SSSS";$t.length<=9;$t+="S")fe($t,le);function Jt(e,t){t[6]=x(1e3*("0."+e))}for($t="S";$t.length<=9;$t+="S")ye($t,Jt);var Zt=H("Milliseconds",!1);X("z",0,0,"zoneAbbr"),X("zz",0,0,"zoneName");var en=v.prototype;function tn(e){return e}en.add=Bt,en.calendar=function(e,t){var n=e||vt(),i=Dt(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(O(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,vt(n)))},en.clone=function(){return new v(this)},en.diff=function(e,t,n){var r,i,o,a;return this.isValid()&&(r=Dt(e,this)).isValid()?(i=6e4*(r.utcOffset()-this.utcOffset()),"year"===(t=z(t))||"month"===t||"quarter"===t?(a=function(e,t){var n,r=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(r,"months");return t-i<0?n=(t-i)/(i-e.clone().add(r-1,"months")):n=(t-i)/(e.clone().add(r+1,"months")-i),-(r+n)||0}(this,r),"quarter"===t?a/=3:"year"===t&&(a/=12)):(o=this-r,a="second"===t?o/1e3:"minute"===t?o/6e4:"hour"===t?o/36e5:"day"===t?(o-i)/864e5:"week"===t?(o-i)/6048e5:o),n?a:w(a)):NaN},en.endOf=function(e){return void 0===(e=z(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},en.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=K(this,e);return this.localeData().postformat(t)},en.from=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||vt(e).isValid())?Nt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},en.fromNow=function(e){return this.from(vt(),e)},en.to=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||vt(e).isValid())?Nt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},en.toNow=function(e){return this.to(vt(),e)},en.get=function(e){return O(this[e=z(e)])?this[e]():this},en.invalidAt=function(){return p(this).overflow},en.isAfter=function(e,t){var n=M(e)?e:vt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(a(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?K(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):O(Date.prototype.toISOString)?this.toDate().toISOString():K(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},en.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},en.toJSON=function(){return this.isValid()?this.toISOString():null},en.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},en.unix=function(){return Math.floor(this.valueOf()/1e3)},en.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},en.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},en.year=Pe,en.isLeapYear=function(){return Ee(this.year())},en.weekYear=function(e){return Xt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},en.isoWeekYear=function(e){return Xt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},en.quarter=en.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},en.month=Se,en.daysInMonth=function(){return we(this.year(),this.month())},en.week=en.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},en.isoWeek=en.isoWeeks=function(e){var t=Ye(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},en.weeksInYear=function(){var e=this.localeData()._week;return Ie(this.year(),e.dow,e.doy)},en.isoWeeksInYear=function(){return Ie(this.year(),1,4)},en.date=Gt,en.day=en.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},en.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},en.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},en.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},en.hour=en.hours=$e,en.minute=en.minutes=Kt,en.second=en.seconds=Qt,en.millisecond=en.milliseconds=Zt,en.utcOffset=function(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ct(de,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Et(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Rt(this,Nt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Et(this)},en.utc=function(e){return this.utcOffset(0,e)},en.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Et(this),"m")),this},en.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ct(ue,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},en.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?vt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},en.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},en.isLocal=function(){return!!this.isValid()&&!this._isUTC},en.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},en.isUtc=Pt,en.isUTC=Pt,en.zoneAbbr=function(){return this._isUTC?"UTC":""},en.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},en.dates=L("dates accessor is deprecated. Use date instead.",Gt),en.months=L("months accessor is deprecated. Use month instead",Se),en.years=L("years accessor is deprecated. Use year instead",Pe),en.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),en.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=yt(e))._a){var t=e._isUTC?h(e._a):vt(e._a);this._isDSTShifted=this.isValid()&&A(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var nn=D.prototype;function rn(e,t,n,r){var i=it(),o=h().set(r,t);return i[n](o,e)}function on(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return rn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=rn(e,r,n,"month");return i}function an(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var i,o=it(),a=e?o._week.dow:0;if(null!=n)return rn(t,(n+a)%7,r,"day");var l=[];for(i=0;i<7;i++)l[i]=rn(t,(i+a)%7,r,"day");return l}nn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r},nn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},nn.invalidDate=function(){return this._invalidDate},nn.ordinal=function(e){return this._ordinal.replace("%d",e)},nn.preparse=tn,nn.postformat=tn,nn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return O(i)?i(e,t,n,r):i.replace(/%d/i,e)},nn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},nn.set=function(e){var t,n;for(n in e)O(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},nn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||xe).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},nn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[xe.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},nn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Me.call(this._shortMonthsParse,a))?i:null:-1!==(i=Me.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Me.call(this._shortMonthsParse,a))||-1!==(i=Me.call(this._longMonthsParse,a))?i:null:-1!==(i=Me.call(this._longMonthsParse,a))||-1!==(i=Me.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},nn.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Ce.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Oe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},nn.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Ce.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Te),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},nn.week=function(e){return Ye(e,this._week.dow,this._week.doy).week},nn.firstDayOfYear=function(){return this._week.doy},nn.firstDayOfWeek=function(){return this._week.dow},nn.weekdays=function(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},nn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},nn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},nn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Me.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Me.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Me.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Me.call(this._weekdaysParse,a))||-1!==(i=Me.call(this._shortWeekdaysParse,a))||-1!==(i=Me.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Me.call(this._shortWeekdaysParse,a))||-1!==(i=Me.call(this._weekdaysParse,a))||-1!==(i=Me.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Me.call(this._minWeekdaysParse,a))||-1!==(i=Me.call(this._weekdaysParse,a))||-1!==(i=Me.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},nn.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Fe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},nn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=We),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},nn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},nn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},nn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},nt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=L("moment.lang is deprecated. Use moment.locale instead.",nt),r.langData=L("moment.langData is deprecated. Use moment.localeData instead.",it);var sn=Math.abs;function ln(e,t,n,r){var i=Nt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function cn(e){return e<0?Math.floor(e):Math.ceil(e)}function un(e){return 4800*e/146097}function dn(e){return 146097*e/4800}function hn(e){return function(){return this.as(e)}}var pn=hn("ms"),fn=hn("s"),mn=hn("m"),gn=hn("h"),bn=hn("d"),yn=hn("w"),_n=hn("M"),vn=hn("y");function Mn(e){return function(){return this.isValid()?this._data[e]:NaN}}var wn=Mn("milliseconds"),xn=Mn("seconds"),An=Mn("minutes"),kn=Mn("hours"),Ln=Mn("days"),Sn=Mn("months"),Tn=Mn("years"),On=Math.round,Cn={ss:44,s:45,m:45,h:22,d:26,M:11},Dn=Math.abs;function En(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Dn(this._milliseconds)/1e3,r=Dn(this._days),i=Dn(this._months);e=w(n/60),t=w(e/60),n%=60,e%=60;var o=w(i/12),a=i%=12,s=r,l=t,c=e,u=n,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(o?o+"Y":"")+(a?a+"M":"")+(s?s+"D":"")+(l||c||u?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(u?u+"S":""):"P0D"}var Pn=kt.prototype;return Pn.isValid=function(){return this._isValid},Pn.abs=function(){var e=this._data;return this._milliseconds=sn(this._milliseconds),this._days=sn(this._days),this._months=sn(this._months),e.milliseconds=sn(e.milliseconds),e.seconds=sn(e.seconds),e.minutes=sn(e.minutes),e.hours=sn(e.hours),e.months=sn(e.months),e.years=sn(e.years),this},Pn.add=function(e,t){return ln(this,e,t,1)},Pn.subtract=function(e,t){return ln(this,e,t,-1)},Pn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=z(e))||"year"===e)return t=this._days+r/864e5,n=this._months+un(t),"month"===e?n:n/12;switch(t=this._days+Math.round(dn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Pn.asMilliseconds=pn,Pn.asSeconds=fn,Pn.asMinutes=mn,Pn.asHours=gn,Pn.asDays=bn,Pn.asWeeks=yn,Pn.asMonths=_n,Pn.asYears=vn,Pn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},Pn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*cn(dn(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=w(o/1e3),l.seconds=e%60,t=w(e/60),l.minutes=t%60,n=w(t/60),l.hours=n%24,a+=w(n/24),s+=i=w(un(a)),a-=cn(dn(i)),r=w(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},Pn.get=function(e){return e=z(e),this.isValid()?this[e+"s"]():NaN},Pn.milliseconds=wn,Pn.seconds=xn,Pn.minutes=An,Pn.hours=kn,Pn.days=Ln,Pn.weeks=function(){return w(this.days()/7)},Pn.months=Sn,Pn.years=Tn,Pn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Nt(e).abs(),i=On(r.as("s")),o=On(r.as("m")),a=On(r.as("h")),s=On(r.as("d")),l=On(r.as("M")),c=On(r.as("y")),u=i<=Cn.ss&&["s",i]||i0,u[4]=n,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Pn.toISOString=En,Pn.toString=En,Pn.toJSON=En,Pn.locale=Wt,Pn.localeData=Ut,Pn.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",En),Pn.lang=qt,X("X",0,0,"unix"),X("x",0,0,"valueOf"),fe("x",ce),fe("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),ye("x",(function(e,t,n){n._d=new Date(x(e))})),r.version="2.18.1",function(e){t=e}(vt),r.fn=en,r.min=function(){return xt("isBefore",[].slice.call(arguments,0))},r.max=function(){return xt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=h,r.unix=function(e){return vt(1e3*e)},r.months=function(e,t){return on(e,t,"months")},r.isDate=l,r.locale=nt,r.invalid=g,r.duration=Nt,r.isMoment=M,r.weekdays=function(e,t,n){return an(e,t,n,"weekdays")},r.parseZone=function(){return vt.apply(null,arguments).parseZone()},r.localeData=it,r.isDuration=Lt,r.monthsShort=function(e,t){return on(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return an(e,t,n,"weekdaysMin")},r.defineLocale=rt,r.updateLocale=function(e,t){if(null!=t){var n,r=Qe;null!=Je[e]&&(r=Je[e]._config),(n=new D(t=C(r,t))).parentLocale=Je[e],Je[e]=n,nt(e)}else null!=Je[e]&&(null!=Je[e].parentLocale?Je[e]=Je[e].parentLocale:null!=Je[e]&&delete Je[e]);return Je[e]},r.locales=function(){return E(Je)},r.weekdaysShort=function(e,t,n){return an(e,t,n,"weekdaysShort")},r.normalizeUnits=z,r.relativeTimeRounding=function(e){return void 0===e?On:"function"==typeof e&&(On=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Cn[e]&&(void 0===t?Cn[e]:(Cn[e]=t,"s"===e&&(Cn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=en,r}()}).call(this,n(119)(e))},function(e,t){e.exports=n("nsO7")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=t.offsets.length?t:r({},t,{starts:t.starts.concat([{time:1e3*o,abbr:t.abbrs[a],offset:t.offsets[a]}])})}(e.substring(1,e.length),n)}}));var o={name:t,abbrs:[],offsets:[],untils:[]},a=n.starts[0],s=n.starts[n.starts.length-1];return n.starts.forEach((function(e,t){e===a?(o.abbrs.push(s.abbr),o.offsets.push(s.offset),o.untils.push(e.time)):(o.abbrs.push(n.starts[t-1].abbr),o.offsets.push(n.starts[t-1].offset),o.untils.push(e.time)),e===s&&(o.abbrs.push(e.abbr),o.offsets.push(e.offset),o.untils.push(null))})),o}},function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,n,o,a){var s=r(t),l=i[e][r(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},a=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,o,a){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/\u200f/g,"").replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+function(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}({mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n],+e)}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return r+(1===e?"dan":"dana");case"MM":return r+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return r+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"[el] D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"[el] D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"[el] dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function r(e){return e>1&&e<5&&1!=~~(e/10)}function i(e,t,n,i){var o=e+" ";switch(n){case"s":return t||i?"pár sekund":"pár sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?o+(r(e)?"minuty":"minut"):o+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?o+(r(e)?"hodiny":"hodin"):o+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?o+(r(e)?"dny":"dní"):o+"dny";case"M":return t||i?"měsíc":"měsícem";case"MM":return t||i?o+(r(e)?"měsíce":"měsíců"):o+"měsíci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?o+(r(e)?"roky":"let"):o+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsParse:function(e,t){var n,r=[];for(n=0;n<12;n++)r[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return r}(t,n),shortMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(n),longMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(t),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._März_April_Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH.mm",LLLL:"dddd, D. MMMM YYYY HH.mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n=this._calendarEl[e],r=t&&t.hours();return function(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}(n)&&(n=n.apply(t)),n.replace("{}",r%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,i,o){var a="";switch(i){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"m":return o?"minuutin":"minuutti";case"mm":a=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":a=o?"tunnin":"tuntia";break;case"d":return o?"päivän":"päivä";case"dd":a=o?"päivän":"päivää";break;case"M":return o?"kuukauden":"kuukausi";case"MM":a=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":a=o?"vuoden":"vuotta"}return function(e,r){return e<10?r?n[e]:t[e]:e}(e,o)+" "+a}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["thodde secondanim","thodde second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka horan","ek hor"],hh:[e+" horanim",e+" hor"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return r+(1===e?"dan":"dana");case"MM":return r+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return r+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,i){var o=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?o+(n||i?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return t(e)?o+(n||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(i?"daga":"dögum"):n?o+"dagur":o+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?o+"mánuðir":o+(i?"mánuði":"mánuðum"):n?o+"mánuður":o+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?o+(n||i?"ár":"árum"):o+(n||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის უკან"):/წელი/.test(e)?e.replace(/წელი$/,"წლის უკან"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?i(n)[0]:r?i(n)[1]:i(n)[2]}function r(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function o(e,t,o,a){var s=e+" ";return 1===e?s+n(0,t,o[0],a):t?s+(r(e)?i(o)[1]:i(o)[0]):a?s+i(o)[1]:s+(r(e)?i(o)[1]:i(o)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},m:n,mm:o,h:n,hh:o,d:n,dd:o,M:n,MM:o,y:n,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={words:{m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var i=e+" ";switch(n){case"m":return t?"minuta":"minutę";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(r(e)?"godziny":"godzin");case"MM":return i+(r(e)?"miesiące":"miesięcy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?""===r?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"минута":"минуту":e+" "+function(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}({mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n],+e)}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function i(e,t,n,i){var o=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?o+(r(e)?"minúty":"minút"):o+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?o+(r(e)?"hodiny":"hodín"):o+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?o+(r(e)?"dni":"dní"):o+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?o+(r(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?o+(r(e)?"roky":"rokov"):o+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+(1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return i+(1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami");case"d":return t||r?"en dan":"enim dnem";case"dd":return i+(1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi");case"M":return t||r?"en mesec":"enim mesecem";case"MM":return i+(1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci");case"y":return t||r?"eno leto":"enim letom";case"yy":return i+(1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sext_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Sex_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",m:"minutu ida",mm:"minutus %d",h:"horas ida",hh:"horas %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,i){var o=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),i=e%10,o="";return n>0&&(o+=t[n]+"vatlh"),r>0&&(o+=(""!==o?" ":"")+t[r]+"maH"),i>0&&(o+=(""!==o?" ":"")+t[i]),""===o?"pagh":o}(e);switch(r){case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},dayOfMonthOrdinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?i[n][0]:i[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+function(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}({mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n],+e)}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日 HH:mm",llll:"YYYY年MMMD日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日 HH:mm",LLLL:"YYYY年MMMD日dddd HH:mm",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日 HH:mm",llll:"YYYY年MMMD日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日 HH:mm",LLLL:"YYYY年MMMD日dddd HH:mm",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日 HH:mm",llll:"YYYY年MMMD日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),i=a(n(121)),o=n(123);function a(e){return e&&e.__esModule?e:{default:e}}r.default.newSplunkTime=o.newSplunkTime,r.default.addSplunkTimezone=o.addSplunkTimezone,r.default.setDefaultSplunkTimezone=o.setDefaultSplunkTimezone,r.default.getDefaultSplunkTimezone=o.getDefaultSplunkTimezone,r.default.fn.splunkFormat=i.default,t.default=r.default},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r={"./af":3,"./af.js":3,"./ar":4,"./ar-dz":5,"./ar-dz.js":5,"./ar-kw":6,"./ar-kw.js":6,"./ar-ly":7,"./ar-ly.js":7,"./ar-ma":8,"./ar-ma.js":8,"./ar-sa":9,"./ar-sa.js":9,"./ar-tn":10,"./ar-tn.js":10,"./ar.js":4,"./az":11,"./az.js":11,"./be":12,"./be.js":12,"./bg":13,"./bg.js":13,"./bn":14,"./bn.js":14,"./bo":15,"./bo.js":15,"./br":16,"./br.js":16,"./bs":17,"./bs.js":17,"./ca":18,"./ca.js":18,"./cs":19,"./cs.js":19,"./cv":20,"./cv.js":20,"./cy":21,"./cy.js":21,"./da":22,"./da.js":22,"./de":23,"./de-at":24,"./de-at.js":24,"./de-ch":25,"./de-ch.js":25,"./de.js":23,"./dv":26,"./dv.js":26,"./el":27,"./el.js":27,"./en-au":28,"./en-au.js":28,"./en-ca":29,"./en-ca.js":29,"./en-gb":30,"./en-gb.js":30,"./en-ie":31,"./en-ie.js":31,"./en-nz":32,"./en-nz.js":32,"./eo":33,"./eo.js":33,"./es":34,"./es-do":35,"./es-do.js":35,"./es.js":34,"./et":36,"./et.js":36,"./eu":37,"./eu.js":37,"./fa":38,"./fa.js":38,"./fi":39,"./fi.js":39,"./fo":40,"./fo.js":40,"./fr":41,"./fr-ca":42,"./fr-ca.js":42,"./fr-ch":43,"./fr-ch.js":43,"./fr.js":41,"./fy":44,"./fy.js":44,"./gd":45,"./gd.js":45,"./gl":46,"./gl.js":46,"./gom-latn":47,"./gom-latn.js":47,"./he":48,"./he.js":48,"./hi":49,"./hi.js":49,"./hr":50,"./hr.js":50,"./hu":51,"./hu.js":51,"./hy-am":52,"./hy-am.js":52,"./id":53,"./id.js":53,"./is":54,"./is.js":54,"./it":55,"./it.js":55,"./ja":56,"./ja.js":56,"./jv":57,"./jv.js":57,"./ka":58,"./ka.js":58,"./kk":59,"./kk.js":59,"./km":60,"./km.js":60,"./kn":61,"./kn.js":61,"./ko":62,"./ko.js":62,"./ky":63,"./ky.js":63,"./lb":64,"./lb.js":64,"./lo":65,"./lo.js":65,"./lt":66,"./lt.js":66,"./lv":67,"./lv.js":67,"./me":68,"./me.js":68,"./mi":69,"./mi.js":69,"./mk":70,"./mk.js":70,"./ml":71,"./ml.js":71,"./mr":72,"./mr.js":72,"./ms":73,"./ms-my":74,"./ms-my.js":74,"./ms.js":73,"./my":75,"./my.js":75,"./nb":76,"./nb.js":76,"./ne":77,"./ne.js":77,"./nl":78,"./nl-be":79,"./nl-be.js":79,"./nl.js":78,"./nn":80,"./nn.js":80,"./pa-in":81,"./pa-in.js":81,"./pl":82,"./pl.js":82,"./pt":83,"./pt-br":84,"./pt-br.js":84,"./pt.js":83,"./ro":85,"./ro.js":85,"./ru":86,"./ru.js":86,"./sd":87,"./sd.js":87,"./se":88,"./se.js":88,"./si":89,"./si.js":89,"./sk":90,"./sk.js":90,"./sl":91,"./sl.js":91,"./sq":92,"./sq.js":92,"./sr":93,"./sr-cyrl":94,"./sr-cyrl.js":94,"./sr.js":93,"./ss":95,"./ss.js":95,"./sv":96,"./sv.js":96,"./sw":97,"./sw.js":97,"./ta":98,"./ta.js":98,"./te":99,"./te.js":99,"./tet":100,"./tet.js":100,"./th":101,"./th.js":101,"./tl-ph":102,"./tl-ph.js":102,"./tlh":103,"./tlh.js":103,"./tr":104,"./tr.js":104,"./tzl":105,"./tzl.js":105,"./tzm":106,"./tzm-latn":107,"./tzm-latn.js":107,"./tzm.js":106,"./uk":108,"./uk.js":108,"./ur":109,"./ur.js":109,"./uz":110,"./uz-latn":111,"./uz-latn.js":111,"./uz.js":110,"./vi":112,"./vi.js":112,"./x-pseudo":113,"./x-pseudo.js":113,"./yo":114,"./yo.js":114,"./zh-cn":115,"./zh-cn.js":115,"./zh-hk":116,"./zh-hk.js":116,"./zh-tw":117,"./zh-tw.js":117};function i(e){var t=o(e);return n(t)}function o(e){var t=r[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=120},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=this,n=this.locale(),i=r.default[n],o=e||"";if(!i)throw new Error("moment().splunkFormat() does not support the locale "+n);return["LLMS","LLS","lls","ls","llms","lms","LTMS"].some((function(n){var r=e.indexOf(n);if(r>-1){var a=t.format(i[n]);return o=o.substring(0,r)+"["+a+"]"+o.substring(r+n.length),!0}return!1})),this.format(o)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(122))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={de:{LTMS:"HH:mm:ss,SSS",ls:"D.M.YYYY HH:mm:ss",lms:"D.M.YYYY HH:mm:ss,SSS",lls:"D. MMM YYYY HH:mm:ss",llms:"D. MMM YYYY HH:mm:ss,SSS",LLS:"D. MMMM YYYY HH:mm:ss",LLMS:"D. MMMM YYYY HH:mm:ss,SSS"},"en-gb":{LTMS:"HH:mm:ss.SSS",ls:"D/M/YYYY HH:mm:ss",lms:"D/M/YYYY HH:mm:ss.SSS",lls:"D MMM YYYY HH:mm:ss",llms:"D MMM YYYY HH:mm:ss.SSS",LLS:"D MMMM YYYY HH:mm:ss",LLMS:"D MMMM YYYY HH:mm:ss.SSS"},en:{LTMS:"h:mm:ss.SSS A",ls:"M/D/YYYY h:mm:ss A",lms:"M/D/YYYY h:mm:ss.SSS A",lls:"MMM D, YYYY h:mm:ss A",llms:"MMM D, YYYY h:mm:ss.SSS A",LLS:"MMMM D, YYYY h:mm:ss A",LLMS:"MMMM D, YYYY h:mm:ss.SSS A"},fr:{LTMS:"HH:mm:ss,SSS",ls:"D/M/YYYY HH:mm:ss",lms:"D/M/YYYY HH:mm:ss,SSS",lls:"D MMM YYYY HH:mm:ss",llms:"D MMM YYYY HH:mm:ss,SSS",LLS:"D MMMM YYYY HH:mm:ss",LLMS:"D MMMM YYYY HH:mm:ss,SSS"},it:{LTMS:"HH:mm:ss,SSS",ls:"D/M/YYYY HH:mm:ss",lms:"D/M/YYYY HH:mm:ss,SSS",lls:"D MMM YYYY HH:mm:ss",llms:"D MMM YYYY HH:mm:ss,SSS",LLS:"D MMMM YYYY HH:mm:ss",LLMS:"D MMMM YYYY HH:mm:ss,SSS"},ja:{LTMS:"HH:mm:ss.SSS",ls:"YYYY/MM/DD HH:mm:ss",lms:"YYYY/MM/DD HH:mm:ss.SSS",lls:"YYYY年M月D日 HH:mm:ss",llms:"YYYY年M月D日 HH:mm:ss.SSS",LLS:"YYYY年M月D日 HH:mm:ss",LLMS:"YYYY年M月D日 HH:mm:ss.SSS"},ko:{LTMS:"A h:mm:ss.SSS",ls:"YYYY.MM.DD A h:mm:ss",lms:"YYYY.MM.DD A h:mm:ss.SSS",lls:"YYYY년 MMMM D일 A h:mm:ss",llms:"YYYY년 MMMM D일 A h:mm:ss.SSS",LLS:"YYYY년 MMMM D일 A h:mm:ss",LLMS:"YYYY년 MMMM D일 A h:mm:ss.SSS"},"zh-cn":{LTMS:"HH:mm:ss.SSS",ls:"YYYY年MMMD日 HH:mm:ss",lms:"YYYY年MMMD日 HH:mm:ss.SSS",lls:"YYYY年MMMD日 HH:mm:ss",llms:"YYYY年MMMD日 HH:mm:ss.SSS",LLS:"YYYY年MMMD日Ah点mm分s秒",LLMS:"YYYY年MMMD日 HH:mm:ss.SSS"},"zh-tw":{LTMS:"HH:mm:ss.SSS",ls:"YYYY年MMMD日 HH:mm:ss",lms:"YYYY年MMMD日 HH:mm:ss.SSS",lls:"YYYY年MMMD日 HH:mm:ss",llms:"YYYY年MMMD日 HH:mm:ss.SSS",LLS:"YYYY年MMMD日 HH:mm:ss",LLMS:"YYYY年MMMD日 HH:mm:ss.SSS"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultSplunkTimezone=t.setDefaultSplunkTimezone=t.addTimezone=void 0,t.newSplunkTime=function(e){var t=e||{},n=t.time,i=t.format,o=e&&e.locale||a.locale;if(!c)throw new Error("The Splunk server timezone data is not available.");return r.default.tz(n,i,o,c)};var r=l(n(0));n(124),n(125);var i=n(1),o=n(126),a=n(127),s=l(n(2));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0,u=t.addTimezone=(0,i.memoize)((function(e,t){if(!e)throw new Error("Serialized Splunk timezone is required when adding or setting time zones.");var n=t||(0,o.createGUID)();return r.default.tz.add(r.default.tz.pack((0,s.default)(e,n))),n})),d=t.setDefaultSplunkTimezone=(0,i.memoize)((function(e){return c=u(e)}));a.serverTimezoneInfo&&d(a.serverTimezoneInfo),t.getDefaultSplunkTimezone=function(){return c}},function(e,t,n){var r,i,o;!function(a,s){"use strict";i=[n(0)],void 0===(o="function"==typeof(r=function(e){var t,n={},r={},i={},o={},a=e.version.split("."),s=+a[0],l=+a[1];function c(e){return e>96?e-87:e>64?e-29:e-48}function u(e){var t=0,n=e.split("."),r=n[0],i=n[1]||"",o=1,a=0,s=1;for(45===e.charCodeAt(0)&&(t=1,s=-1);t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),f.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,n=+e,r=this.untils;for(t=0;tr&&S.moveInvalidForward&&(t=r),o0?c[0].zone.name:void 0}()),t},S.names=function(){var e,t=[];for(e in i)i.hasOwnProperty(e)&&(n[e]||n[r[e]])&&i[e]&&t.push(i[e]);return t.sort()},S.Zone=f,S.unpack=p,S.unpackBase60=u,S.needsOffset=k,S.moveInvalidForward=!0,S.moveAmbiguousForward=!1;var T=e.fn;function O(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}e.tz=S,e.defaultZone=null,e.updateOffset=function(t,n){var r,i=e.defaultZone;void 0===t._z&&(i&&k(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(i.parse(t),"minutes")),t._z=i),t._z&&(r=t._z.offset(t),Math.abs(r)<16&&(r/=60),void 0!==t.utcOffset?t.utcOffset(-r,n):t.zone(r,n))},T.tz=function(t){return t?(this._z=x(t),this._z?e.updateOffset(this):L("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this):this._z?this._z.name:void 0},T.zoneName=O(T.zoneName),T.zoneAbbr=O(T.zoneAbbr),T.utc=function(e){return function(){return this._z=null,e.apply(this,arguments)}}(T.utc),e.tz.setDefault=function(t){return(s<2||2===s&&l<9)&&L("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?x(t):null,e};var C=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(C)?(C.push("_z"),C.push("_a")):C&&(C._z=null),e})?r.apply(t,i):r)||(e.exports=o)}()},function(e,t,n){var r,i,o;!function(a,s){"use strict";i=[n(0)],void 0===(o="function"==typeof(r=function(e){if(!e.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX";function n(e,n){for(var r="",i=Math.abs(e),o=Math.floor(i),a=function(e,n){for(var r,i=".",o="";n>0;)n-=1,e*=60,r=Math.floor(e+1e-6),i+=t[r],e-=r,r&&(o+=i,i="");return o}(i-o,Math.min(~~n,10));o>0;)r=t[o%60]+r,o=Math.floor(o/60);return e<0&&(r="-"+r),r&&a?r+a:(a||"-"!==r)&&(r||a)||"0"}function r(e){return function(e){if(!e.name)throw new Error("Missing name");if(!e.abbrs)throw new Error("Missing abbrs");if(!e.untils)throw new Error("Missing untils");if(!e.offsets)throw new Error("Missing offsets");if(e.offsets.length!==e.untils.length||e.offsets.length!==e.abbrs.length)throw new Error("Mismatched array lengths")}(e),[e.name,function(e){var t,r,i=0,o=[],a=[],s=[],l={};for(t=0;ts.population?l.unshift(a):l.push(a),c=!0);c||u.push([a])}for(r=0;rn&&(i=t,t=n,n=i),i=0;in&&(a=Math.min(a,i+1)));return[o,a]}(e.untils,t,n),o=r.apply(e.untils,i);return o[o.length-1]=null,{name:e.name,abbrs:r.apply(e.abbrs,i),untils:o,offsets:r.apply(e.offsets,i),population:e.population}}return e.tz.pack=r,e.tz.packBase60=n,e.tz.createLinks=a,e.tz.filterYears=s,e.tz.filterLinkPack=function(e,t,n){var i,o,l=e.zones,c=[];for(i=0;ii?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r0)for(var t=0,n=e;tt[2]&&(n|=2),e[1]t[3]&&(n|=8),n}e.exports=r,e.exports.default=r,r.polyline=r,r.polygon=function(e,t){var n,r,a,s,l,c,u;for(r=1;r<=8;r*=2){for(n=[],a=e[e.length-1],s=!(o(a,t)&r),l=0;l0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(s.OuterSubscriber);t.MergeScanSubscriber=c},"0YwB":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.snapUnits=t.timeUnits=void 0;var r=n("J45V");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a={};a.s=a.sec=a.secs=a.second=a.seconds={abbr:"s",singular:(0,r._)("second"),plural:(0,r._)("seconds")},a.m=a.min=a.mins=a.minute=a.minutes={abbr:"m",singular:(0,r._)("minute"),plural:(0,r._)("minutes")},a.h=a.hr=a.hrs=a.hour=a.hours={abbr:"h",singular:(0,r._)("hour"),plural:(0,r._)("hours")},a.d=a.day=a.days={abbr:"d",singular:(0,r._)("day"),plural:(0,r._)("days")},a.w=a.week=a.weeks={abbr:"w",singular:(0,r._)("week"),plural:(0,r._)("weeks")},a.mon=a.month=a.months={abbr:"mon",singular:(0,r._)("month"),plural:(0,r._)("months")},a.q=a.qtr=a.qtrs=a.quarter=a.quarters={abbr:"q",singular:(0,r._)("quarter"),plural:(0,r._)("quarters")},a.y=a.yr=a.yrs=a.year=a.years={abbr:"y",singular:(0,r._)("year"),plural:(0,r._)("years")};var s=a;t.timeUnits=s;var l=function(e){for(var t=1;t=n?a:{done:!1,value:e[t++]}}}},e.fromNativeIterator=function(e){return{next:function(){var t=e.next();return t.done?a:{done:!1,value:t.value}}}},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()},e.map=function(e,t){return{next:function(){var n=e.next();return n.done?a:{done:!1,value:t(n.value)}}}},e.filter=function(e,t){return{next:function(){for(;;){var n=e.next();if(n.done)return a;if(t(n.value))return{done:!1,value:n.value}}}}},e.forEach=function(e,t){for(var n=e.next();!n.done;n=e.next())t(n.value)},e.collect=function(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY);var n=[];if(0===t)return n;for(var r=0,i=e.next();!i.done&&(n.push(i.value),!(++r>=t));i=e.next());return n},e.concat=function(){for(var e=[],t=0;t=e.length)return a;var t=e[n].next();return t.done?(n++,this.next()):t}}},e.chain=function(e){return new s(e)}}(i||(i={}));var s=function(){function e(e){this.it=e}return e.prototype.next=function(){return this.it.next()},e}();function l(e){return Array.isArray(e)?i.fromArray(e):e||i.empty()}var c=function(){function e(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===r&&(r=t-1),this.items=e,this.start=t,this.end=n,this.index=r}return e.prototype.first=function(){return this.index=this.start,this.current()},e.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},e}(),u=function(e){function t(t,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=t.length),void 0===i&&(i=n-1),e.call(this,t,n,r,i)||this}return o(t,e),t.prototype.current=function(){return e.prototype.current.call(this)},t.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},t.prototype.first=function(){return this.index=this.start,this.current()},t.prototype.last=function(){return this.index=this.end-1,this.current()},t.prototype.parent=function(){return null},t}(c),d=function(){function e(e,t){this.iterator=e,this.fn=t}return e.prototype.next=function(){return this.fn(this.iterator.next())},e}()},"0fdg":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=57)}({0:function(e,t){e.exports=n("aWzz")},1:function(e,t){e.exports=n("ERkP")},10:function(e,t){e.exports=n("q1MX")},18:function(e,t){e.exports=n("qO3c")},19:function(e,t){e.exports=n("//nZ")},2:function(e,t){e.exports=n("j/s1")},20:function(e,t){e.exports=n("Rlp/")},28:function(e,t){e.exports=n("5wzq")},30:function(e,t){e.exports=n("D3W/")},31:function(e,t){e.exports=n("gPT4")},33:function(e,t){e.exports=n("JJwP")},34:function(e,t){e.exports=n("BQRv")},5:function(e,t){e.exports=n("pYJe")},57:function(e,t,n){"use strict";n.r(t),n.d(t,"themes",(function(){return j}));var r=n(10),i=n.n(r),o=n(1),a=n.n(o),s=n(0),l=n.n(s),c=n(2),u=n.n(c),d=n(19),h=n.n(d),p=n(30),f=n(20),m=n(28),g=n.n(m),b=n(31),y=n.n(b),_=n(18),v=n(33),M=n.n(v),w=n(34),x=n.n(w),A=n(7),k=n(5),L=Object(A.createThemeRegistry)("@splunk/react-visualizations","FillerGauge"),S=u.a.div.withConfig({displayName:"FillerGauge__Container",componentId:"sc-1l68seh-0"})(["overflow:hidden;",";background-color:",";"],(function(e){return Object(f.toDimension)(h()(e,["width","height"]))}),(function(e){return e.backgroundColor})),T=u.a.div.withConfig({displayName:"FillerGauge__FillerGaugeWrapper",componentId:"sc-1l68seh-1"})(["display:flex;justify-content:center;flex-direction:row;width:100%;height:100%;background-color:",";"],(function(e){return e.backgroundColor})),O=u.a.div.withConfig({displayName:"FillerGauge__FillerGaugeContainer",componentId:"sc-1l68seh-2"})(["overflow:hidden;position:relative;",";"],(function(e){return Object(f.toDimension)(h()(e,["width","height"]))})),C=u.a.svg.withConfig({displayName:"FillerGauge__FillerGaugeSVG",componentId:"sc-1l68seh-3"})(["",";"],(function(e){return Object(f.toDimension)(h()(e,["width","height"]))})),D=u.a.rect.withConfig({displayName:"FillerGauge__BackgroundBar",componentId:"sc-1l68seh-4"})(["fill:",";"],(function(e){return L.themeVariable("backgroundBarColor")(e)})),E=u.a.rect.withConfig({displayName:"FillerGauge__FillBar",componentId:"sc-1l68seh-5"})(["fill:",";"],(function(e){return e.color})),P=function(e){var t=i()({},e),n=t.width,r=t.height,o=t.value,s=t.gaugeColor,l=t.min,c=t.max,u=t.orientation,d=t.majorUnit,h=t.showLabels,f=t.showValue,m=t.usePercentageRange,b=t.usePercentageValue,v=t.backgroundColor;return a.a.createElement(S,{width:n,height:r,backgroundColor:v},a.a.createElement(g.a,null,(function(e){return function(e){var t=e.width,n=e.height;if(t<200||n+58<200)return a.a.createElement(y.a,{width:t,height:n,message:Object(p._)("Too small to render content"),level:"info"});var r=Object(_.getGaugeDimensions)({containerWidth:t,containerHeight:n,orientation:u}),i=r.gaugeLength,g=r.gaugeStartX,w=r.gaugeStartY,A=r.gaugeWidth,k=r.gaugeHeight,L=Object(_.getFillBarDimensions)({gaugeLength:i,gaugeStartX:g,gaugeStartY:w,gaugeWidth:A,gaugeHeight:k,value:o,min:l,max:c,orientation:u}),S=L.fillBarLength,P=L.fillBarX,j=L.fillBarY,z=L.fillBarWidth,N=L.fillBarHeight,Y=Object(_.getFillerGaugeValueMarkerPositions)({fillBarX:P,fillBarY:j,fillBarLength:S,orientation:u}),I=Y.valueMarkerX,H=Y.valueMarkerY;return a.a.createElement(T,{backgroundColor:v},a.a.createElement(O,{width:t,height:n},a.a.createElement(C,{width:t,height:n},a.a.createElement(D,{x:g,y:w,width:A,height:k}),a.a.createElement(M.a,{width:A,height:k,startX:g,startY:w,min:l,max:c,majorUnit:d,orientation:u,showLabels:h,usePercentageRange:m}),a.a.createElement(E,{x:P,y:j,width:z,height:N,color:s||Object(_.assignGaugeColor)({value:o,min:l,max:c})}),a.a.createElement(x.a,{x:I,y:H,length:_.GAUGE_THICKNESS,min:l,max:c,value:o,orientation:u,showValue:f,usePercentageValue:b}))))}(e)})))};P.propTypes={width:l.a.oneOfType([l.a.string,l.a.number]),height:l.a.oneOfType([l.a.string,l.a.number]),value:l.a.number,gaugeColor:l.a.string,min:l.a.number,max:l.a.number,orientation:l.a.oneOf(["horizontal","vertical"]),majorUnit:l.a.oneOfType([l.a.string,l.a.number]),showLabels:l.a.bool,showValue:l.a.bool,usePercentageRange:l.a.bool,usePercentageValue:l.a.bool,backgroundColor:l.a.string},P.defaultProps={width:"100%",height:250,orientation:"vertical",min:0,max:100,majorUnit:"auto",showLabels:!0,showValue:!0,usePercentageRange:!1,usePercentageValue:!1,backgroundColor:"transparent"},L.addDefaultTheme("enterprise",{backgroundBarColor:"#F5F5F5"}),L.addTheme("enterpriseDark",{backgroundBarColor:"#33343B"}),L.addTheme("scp",{backgroundBarColor:"#33343B"});var j=Object(A.mergeThemes)(L.toThemes(),v.themes,w.themes);t.default=Object(c.withTheme)(Object(k.withSanitizedProps)(P))},7:function(e,t){e.exports=n("/cGw")}})},"0gmJ":function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},"0iyY":function(e,t,n){var r=n("SJvO"),i=n("BlJA");e.exports=function(e){return null==e?[]:r(e,i(e))}},"0m2c":function(e,t,n){"use strict";var r=n("yrnK"),i=n("KO5u");r.Observable.prototype.partition=i.partition},"0mSR":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("s3j/"),i=n("pzX8"),o=function(e,t){return function(n){var o,a=n[e],s=t[a];if((0,r.isInterpolationResult)(s))return s;var l=(0,i.addThemeDefaults)(null===(o=n.theme)||void 0===o?void 0:o.splunkThemeV1);return(0,r.getThemeVariant)(s,l)}};t.default=o},"0nQ+":function(e,t,n){var r=n("j7v4"),i=n("tgth"),o=n("m1iu"),a=n("InYk"),s=n("ZYXW"),l=n("um5s");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=i(r,t=c[d++]))&&l(u,t,n);return u}})},"0sSj":function(e,t,n){"use strict";var r=n("+sR0"),i=n("jggy"),o=i.utils,a=o.assert,s=o.parseBytes,l=n("mC9x"),c=n("ChVH");function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),l=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:l,Rencoded:o})},u.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t.offsets.length?t:i({},t,{starts:t.starts.concat([{time:1e3*o,abbr:t.abbrs[a],offset:t.offsets[a]}])})}(e.substring(1,e.length),n)}}));var o={name:t,abbrs:[],offsets:[],untils:[]};if(0===n.starts.length)return o.abbrs.push(n.abbrs[0]),o.offsets.push(n.offsets[0]),o.untils.push(null),o;var a=n.starts[0],s=n.starts[n.starts.length-1];return n.starts.forEach((function(e,t){e===a?(o.abbrs.push(s.abbr),o.offsets.push(s.offset),o.untils.push(e.time)):(o.abbrs.push(n.starts[t-1].abbr),o.offsets.push(n.starts[t-1].offset),o.untils.push(e.time)),e===s&&(o.abbrs.push(e.abbr),o.offsets.push(e.offset),o.untils.push(null))})),o}}])},"0v8d":function(e,t,n){var r=n("92GN");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},"0vWd":function(e,t,n){"use strict";n.r(t);var r=n("d7BT");Object(r.a)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return n.e(0).then(n.bind(null,"hZoo"))}})},"0xii":function(e,t,n){(function(t){for(var r=n("FF9q"),i="undefined"==typeof window?t:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],l=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("wgY5"))},"0yqZ":function(e,t,n){"use strict";var r=n("yrnK"),i=n("ryk0");r.Observable.prototype.withLatestFrom=i.withLatestFrom},"0zIy":function(e,t,n){var r=n("JMSx"),i=n("InYk"),o=n("4p3S").indexOf,a=n("nyAP");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},"1/s2":function(e,t,n){"use strict";var r=e.exports=function(){this._cache={}};r.prototype.put=function(e,t){this._cache[e]=t},r.prototype.get=function(e){return this._cache[e]},r.prototype.del=function(e){delete this._cache[e]},r.prototype.clear=function(){this._cache={}}},"1/tN":function(e,t,n){var r=n("KLyV").Buffer;function i(e,t,n){for(var r,i,a=-1,s=0;++a<8;)r=t&1<<7-a?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>a%8,e._prev=o(e._prev,n?r:i);return s}function o(e,t){var n=e.length,i=-1,o=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i>7;return o}t.encrypt=function(e,t,n){for(var o=t.length,a=r.allocUnsafe(o),s=-1;++s1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(f(this,t),e)}}),h&&r(u.prototype,"size",{get:function(){return f(this,t)[m]}}),u},def:function(e,t,n){var r,i,o=g(e,t);return o?o.v=n:(e._l=o={i:i=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=f(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?u(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(t)}}},"10y7":function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"14Ik":function(e,t,n){"use strict";const r=n("UM5q"),i=n("1Fob"),o=n("p/97");function a(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function s(e,t){return t.decode?i(e):e}function l(e){return Array.isArray(e)?e.sort():"object"==typeof e?l(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function c(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function u(e){const t=(e=c(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":return(e,t,n)=>{const r="string"==typeof t&&t.split("").indexOf(",")>-1?t.split(","):t;n[e]=r};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",parseNumbers:!1,parseBooleans:!1},t)),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){let[e,a]=o(i.replace(/\+/g," "),"=");a=void 0===a?null:s(a,t),n(s(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=d(n[e],t);else r[e]=d(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=l(n):e[t]=n,e},Object.create(null))}t.extract=u,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";const n=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r?n:null===r?[...n,[a(t,e),"[",i,"]"].join("")]:[...n,[a(t,e),"[",a(i,e),"]=",a(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r?n:null===r?[...n,[a(t,e),"[]"].join("")]:[...n,[a(t,e),"[]=",a(r,e)].join("")];case"comma":return t=>(n,r,i)=>null==r||0===r.length?n:0===i?[[a(t,e),"=",a(r,e)].join("")]:[[n,a(r,e)].join(",")];default:return t=>(n,r)=>void 0===r?n:null===r?[...n,a(t,e)]:[...n,[a(t,e),"=",a(r,e)].join("")]}}(t=Object.assign({encode:!0,strict:!0,arrayFormat:"none"},t)),r=Object.keys(e);return!1!==t.sort&&r.sort(t.sort),r.map(r=>{const i=e[r];return void 0===i?"":null===i?a(r,t):Array.isArray(i)?i.reduce(n(r),[]).join("&"):a(r,t)+"="+a(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>({url:c(e).split("?")[0]||"",query:h(u(e),t)})},"14Jh":function(e,t,n){"use strict";n.r(t);var r,i=n("vB0K"),o=n.n(i),a=n("UMdM"),s={insert:"head",singleton:!1},l=(o()(a.a,s),a.a.locals,n("tdC6")),c=n("IQ2W"),u=n("Eagf"),d=n("OC63"),h=n("02ec"),p=n("mcvP"),f=n("cCap"),m=n("SMqw"),g=n("wEWA"),b=n("Rlkc"),y=n("1MHj"),_=n("YNG1"),v=n("AYP8"),M=n("C/Fj"),w=n("2+HM"),x=n("BMxg"),A=n("zdel"),k=n("6WcC"),L=n("i/Ya"),S=n("C89N"),T=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),O=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},C=function(e,t){return function(n,r){t(n,r,e)}},D=new M.d("accessibilityHelpWidgetVisible",!1),E=function(e){function t(t,n){var r=e.call(this)||this;return r._editor=t,r._widget=r._register(n.createInstance(P,r._editor)),r}return T(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.show=function(){this._widget.show()},t.prototype.hide=function(){this._widget.hide()},t.ID="editor.contrib.accessibilityHelpController",t=O([C(1,w.a)],t)}(f.a);var P=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o._contextKeyService=n,o._keybindingService=r,o._openerService=i,o._editor=t,o._isVisibleKey=D.bindTo(o._contextKeyService),o._domNode=Object(u.b)(document.createElement("div")),o._domNode.setClassName("accessibilityHelpWidget"),o._domNode.setDisplay("none"),o._domNode.setAttribute("role","dialog"),o._domNode.setAttribute("aria-hidden","true"),o._contentDomNode=Object(u.b)(document.createElement("div")),o._contentDomNode.setAttribute("role","document"),o._domNode.appendChild(o._contentDomNode),o._isVisible=!1,o._register(o._editor.onDidLayoutChange((function(){o._isVisible&&o._layout()}))),o._register(c.o(o._contentDomNode.domNode,"keydown",(function(e){if(o._isVisible&&(e.equals(2083)&&(Object(h.a)(S.a.emergencyConfOn),o._editor.updateOptions({accessibilitySupport:"on"}),c.t(o._contentDomNode.domNode),o._buildContent(),o._contentDomNode.domNode.focus(),e.preventDefault(),e.stopPropagation()),e.equals(2086))){Object(h.a)(S.a.openingDocs);var t=o._editor.getRawOptions().accessibilityHelpUrl;void 0===t&&(t="https://go.microsoft.com/fwlink/?linkid=852450"),o._openerService.open(b.a.parse(t)),e.preventDefault(),e.stopPropagation()}}))),o.onblur(o._contentDomNode.domNode,(function(){o.hide()})),o._editor.addOverlayWidget(o),o}return T(t,e),t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.getPosition=function(){return{preference:null}},t.prototype.show=function(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())},t.prototype._descriptionForCommand=function(e,t,n){var r=this._keybindingService.lookupKeybinding(e);return r?g.r(t,r.getAriaLabel()):g.r(n,e)},t.prototype._buildContent=function(){var e=this._editor.getOptions(),t=this._editor.getSelections(),n=0;if(t){var r=this._editor.getModel();r&&t.forEach((function(e){n+=r.getValueLengthInRange(e)}))}var i=function(e,t){return e&&0!==e.length?1===e.length?t?g.r(S.a.singleSelectionRange,e[0].positionLineNumber,e[0].positionColumn,t):g.r(S.a.singleSelection,e[0].positionLineNumber,e[0].positionColumn):t?g.r(S.a.multiSelectionRange,e.length,t):e.length>0?g.r(S.a.multiSelection,e.length):"":S.a.noSelection}(t,n);e.get(45)?e.get(68)?i+=S.a.readonlyDiffEditor:i+=S.a.editableDiffEditor:e.get(68)?i+=S.a.readonlyEditor:i+=S.a.editableEditor;var o=m.e?S.a.changeConfigToOnMac:S.a.changeConfigToOnWinLinux;switch(e.get(2)){case 0:i+="\n\n - "+o;break;case 2:i+="\n\n - "+S.a.auto_on;break;case 1:i+="\n\n - "+S.a.auto_off,i+=" "+o}e.get(106)?i+="\n\n - "+this._descriptionForCommand(v.ToggleTabFocusModeAction.ID,S.a.tabFocusModeOnMsg,S.a.tabFocusModeOnMsgNoKb):i+="\n\n - "+this._descriptionForCommand(v.ToggleTabFocusModeAction.ID,S.a.tabFocusModeOffMsg,S.a.tabFocusModeOffMsgNoKb),i+="\n\n - "+(m.e?S.a.openDocMac:S.a.openDocWinLinux),i+="\n\n"+S.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(d.b)(i)),this._contentDomNode.domNode.setAttribute("aria-label",i)},t.prototype.hide=function(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,c.t(this._contentDomNode.domNode),this._editor.focus())},t.prototype._layout=function(){var e=this._editor.getLayoutInfo(),n=Math.max(5,Math.min(t.WIDTH,e.width-40)),r=Math.max(5,Math.min(t.HEIGHT,e.height-40));this._domNode.setWidth(n),this._domNode.setHeight(r);var i=Math.round((e.height-r)/2);this._domNode.setTop(i);var o=Math.round((e.width-n)/2);this._domNode.setLeft(o)},t.ID="editor.contrib.accessibilityHelpWidget",t.WIDTH=500,t.HEIGHT=300,t=O([C(1,M.c),C(2,x.a),C(3,A.a)],t)}(p.a),j=function(e){function t(){return e.call(this,{id:"editor.action.showAccessibilityHelp",label:S.a.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{kbExpr:_.a.focus,primary:l.i?2107:571,weight:100}})||this}return T(t,e),t.prototype.run=function(e,t){var n=E.get(t);n&&n.show()},t}(y.b);Object(y.h)(E.ID,E),Object(y.f)(j);var z=y.c.bindToContribution(E.get);Object(y.g)(new z({id:"closeAccessibilityHelp",precondition:D,handler:function(e){return e.hide()},kbOpts:{weight:200,kbExpr:_.a.focus,primary:9,secondary:[1033]}})),Object(L.e)((function(e,t){var n=e.getColor(k.Q);n&&t.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+n+"; }");var r=e.getColor(k.S);r&&t.addRule(".monaco-editor .accessibilityHelpWidget { color: "+r+"; }");var i=e.getColor(k.hc);i&&t.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(k.e);o&&t.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+o+"; }")}))},"16GD":function(e,t,n){"use strict";var r=n("PBB4"),i=n.n(r)()((function(e){return e[1]}));i.push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-label.hover {\r\n\tbackground-color: #EEE;\r\n}",""]),t.a=i},"17ZC":function(e,t,n){"use strict";var r=n("MQEg");t._catch=function(e){return r.catchError(e)(this)}},"18tx":function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},i=n("2f5I"),o=function(e){function t(t,n){e.call(this),this.promise=t,this.scheduler=n}return r(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t=this,n=this.promise,r=this.scheduler;if(null==r)this._isScalar?e.closed||(e.next(this.value),e.complete()):n.then((function(n){t.value=n,t._isScalar=!0,e.closed||(e.next(n),e.complete())}),(function(t){e.closed||e.error(t)})).then(null,(function(e){i.root.setTimeout((function(){throw e}))}));else if(this._isScalar){if(!e.closed)return r.schedule(a,0,{value:this.value,subscriber:e})}else n.then((function(n){t.value=n,t._isScalar=!0,e.closed||e.add(r.schedule(a,0,{value:n,subscriber:e}))}),(function(t){e.closed||e.add(r.schedule(s,0,{err:t,subscriber:e}))})).then(null,(function(e){i.root.setTimeout((function(){throw e}))}))},t}(n("yrnK").Observable);function a(e){var t=e.value,n=e.subscriber;n.closed||(n.next(t),n.complete())}function s(e){var t=e.err,n=e.subscriber;n.closed||n.error(t)}t.PromiseObservable=o},"1A+P":function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}({12:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return JSON.stringify(e)===JSON.stringify(t)}}})},"1AD0":function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(3),o=(r=i)&&r.__esModule?r:{default:r};var a=function(){return new Function("\n return (function() {\n var module = {\n exports: true\n };\n "+o.default+";\n return module.exports;\n })();\n ")()},s=a();s.noConflict=function(){return a()},t.default=s,e.exports=t.default},function(e,t){e.exports="/**\n * @license Highcharts JS v7.2.2 (2020-08-24)\n *\n * (c) 2009-2018 Torstein Honsi\n *\n * License: www.highcharts.com/license\n */\n'use strict';\n(function (root, factory) {\n if (typeof module === 'object' && module.exports) {\n factory['default'] = factory;\n module.exports = root.document ?\n factory(root) :\n factory;\n } else if (typeof define === 'function' && define.amd) {\n define('highcharts/highcharts', function () {\n return factory(root);\n });\n } else {\n if (root.Highcharts) {\n root.Highcharts.error(16, true);\n }\n root.Highcharts = factory(root);\n }\n}(typeof window !== 'undefined' ? window : this, function (win) {\n var _modules = {};\n function _registerModule(obj, path, args, fn) {\n if (!obj.hasOwnProperty(path)) {\n obj[path] = fn.apply(null, args);\n }\n }\n _registerModule(_modules, 'parts/Globals.js', [], function () {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /* globals Image, window */\n /**\n * Reference to the global SVGElement class as a workaround for a name conflict\n * in the Highcharts namespace.\n *\n * @global\n * @typedef {global.SVGElement} GlobalSVGElement\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/SVGElement\n */\n // glob is a temporary fix to allow our es-modules to work.\n var glob = ( // @todo UMD variable named `window`, and glob named `win`\n typeof win !== 'undefined' ?\n win :\n typeof window !== 'undefined' ?\n window :\n {}), doc = glob.document, SVG_NS = 'http://www.w3.org/2000/svg', userAgent = (glob.navigator && glob.navigator.userAgent) || '', svg = (doc &&\n doc.createElementNS &&\n !!doc.createElementNS(SVG_NS, 'svg').createSVGRect), isMS = /(edge|msie|trident)/i.test(userAgent) && !glob.opera, isFirefox = userAgent.indexOf('Firefox') !== -1, isChrome = userAgent.indexOf('Chrome') !== -1, hasBidiBug = (isFirefox &&\n parseInt(userAgent.split('Firefox/')[1], 10) < 4 // issue #38\n );\n var H = {\n product: 'Highcharts',\n version: '7.2.2',\n deg2rad: Math.PI * 2 / 360,\n doc: doc,\n hasBidiBug: hasBidiBug,\n hasTouch: !!glob.TouchEvent,\n isMS: isMS,\n isWebKit: userAgent.indexOf('AppleWebKit') !== -1,\n isFirefox: isFirefox,\n isChrome: isChrome,\n isSafari: !isChrome && userAgent.indexOf('Safari') !== -1,\n isTouchDevice: /(Mobile|Android|Windows Phone)/.test(userAgent),\n SVG_NS: SVG_NS,\n chartCount: 0,\n seriesTypes: {},\n symbolSizes: {},\n svg: svg,\n win: glob,\n marginNames: ['plotTop', 'marginRight', 'marginBottom', 'plotLeft'],\n noop: function () { },\n /**\n * An array containing the current chart objects in the page. A chart's\n * position in the array is preserved throughout the page's lifetime. When\n * a chart is destroyed, the array item becomes `undefined`.\n *\n * @name Highcharts.charts\n * @type {Array}\n */\n charts: [],\n /**\n * A hook for defining additional date format specifiers. New\n * specifiers are defined as key-value pairs by using the\n * specifier as key, and a function which takes the timestamp as\n * value. This function returns the formatted portion of the\n * date.\n *\n * @sample highcharts/global/dateformats/\n * Adding support for week number\n *\n * @name Highcharts.dateFormats\n * @type {Highcharts.Dictionary}\n */\n dateFormats: {}\n };\n\n return H;\n });\n _registerModule(_modules, 'parts/Utilities.js', [_modules['parts/Globals.js']], function (H) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * An animation configuration. Animation configurations can also be defined as\n * booleans, where `false` turns off animation and `true` defaults to a duration\n * of 500ms.\n *\n * @interface Highcharts.AnimationOptionsObject\n */ /**\n * A callback function to exectute when the animation finishes.\n * @name Highcharts.AnimationOptionsObject#complete\n * @type {Function|undefined}\n */ /**\n * The animation duration in milliseconds.\n * @name Highcharts.AnimationOptionsObject#duration\n * @type {number|undefined}\n */ /**\n * The name of an easing function as defined on the `Math` object.\n * @name Highcharts.AnimationOptionsObject#easing\n * @type {string|Function|undefined}\n */ /**\n * A callback function to execute on each step of each attribute or CSS property\n * that's being animated. The first argument contains information about the\n * animation and progress.\n * @name Highcharts.AnimationOptionsObject#step\n * @type {Function|undefined}\n */\n /**\n * Creates a frame for the animated SVG element.\n *\n * @callback Highcharts.AnimationStepCallbackFunction\n *\n * @param {Highcharts.SVGElement} this\n * The SVG element to animate.\n *\n * @return {void}\n */\n /**\n * Interface description for a class.\n *\n * @interface Highcharts.Class\n * @extends Function\n */ /**\n * Class costructor.\n * @function Highcharts.Class#new\n * @param {...Array<*>} args\n * Constructor arguments.\n * @return {T}\n * Class instance.\n */\n /**\n * A style object with camel case property names to define visual appearance of\n * a SVG element or HTML element. The properties can be whatever styles are\n * supported on the given SVG or HTML element.\n *\n * @example\n * {\n * fontFamily: 'monospace',\n * fontSize: '1.2em'\n * }\n *\n * @interface Highcharts.CSSObject\n */ /**\n * @name Highcharts.CSSObject#[key:string]\n * @type {boolean|number|string|undefined}\n */ /**\n * Background style for the element.\n * @name Highcharts.CSSObject#background\n * @type {string|undefined}\n */ /**\n * Background color of the element.\n * @name Highcharts.CSSObject#backgroundColor\n * @type {Highcharts.ColorString|undefined}\n */ /**\n * Border style for the element.\n * @name Highcharts.CSSObject#border\n * @type {string|undefined}\n */ /**\n * Radius of the element border.\n * @name Highcharts.CSSObject#borderRadius\n * @type {number|undefined}\n */ /**\n * Color used in the element. The 'contrast' option is a Highcharts custom\n * property that results in black or white, depending on the background of the\n * element.\n * @name Highcharts.CSSObject#color\n * @type {'contrast'|Highcharts.ColorString|undefined}\n */ /**\n * Style of the mouse cursor when resting over the element.\n * @name Highcharts.CSSObject#cursor\n * @type {Highcharts.CursorValue|undefined}\n */ /**\n * Font family of the element text. Multiple values have to be in decreasing\n * preference order and separated by comma.\n * @name Highcharts.CSSObject#fontFamily\n * @type {string|undefined}\n */ /**\n * Font size of the element text.\n * @name Highcharts.CSSObject#fontSize\n * @type {string|undefined}\n */ /**\n * Font weight of the element text.\n * @name Highcharts.CSSObject#fontWeight\n * @type {string|undefined}\n */ /**\n * Height of the element.\n * @name Highcharts.CSSObject#height\n * @type {number|undefined}\n */ /**\n * Width of the element border.\n * @name Highcharts.CSSObject#lineWidth\n * @type {number|undefined}\n */ /**\n * Opacity of the element.\n * @name Highcharts.CSSObject#opacity\n * @type {number|undefined}\n */ /**\n * Space around the element content.\n * @name Highcharts.CSSObject#padding\n * @type {string|undefined}\n */ /**\n * Behaviour of the element when the mouse cursor rests over it.\n * @name Highcharts.CSSObject#pointerEvents\n * @type {string|undefined}\n */ /**\n * Positioning of the element.\n * @name Highcharts.CSSObject#position\n * @type {string|undefined}\n */ /**\n * Alignment of the element text.\n * @name Highcharts.CSSObject#textAlign\n * @type {string|undefined}\n */ /**\n * Additional decoration of the element text.\n * @name Highcharts.CSSObject#textDecoration\n * @type {string|undefined}\n */ /**\n * Outline style of the element text.\n * @name Highcharts.CSSObject#textOutline\n * @type {string|undefined}\n */ /**\n * Line break style of the element text. Highcharts SVG elements support\n * `ellipsis` when a `width` is set.\n * @name Highcharts.CSSObject#textOverflow\n * @type {string|undefined}\n */ /**\n * Top spacing of the element relative to the parent element.\n * @name Highcharts.CSSObject#top\n * @type {string|undefined}\n */ /**\n * Animated transition of selected element properties.\n * @name Highcharts.CSSObject#transition\n * @type {string|undefined}\n */ /**\n * Line break style of the element text.\n * @name Highcharts.CSSObject#whiteSpace\n * @type {string|undefined}\n */ /**\n * Width of the element.\n * @name Highcharts.CSSObject#width\n * @type {number|undefined}\n */\n /**\n * All possible cursor styles.\n *\n * @typedef {'alias'|'all-scroll'|'auto'|'cell'|'col-resize'|'context-menu'|'copy'|'crosshair'|'default'|'e-resize'|'ew-resize'|'grab'|'grabbing'|'help'|'move'|'n-resize'|'ne-resize'|'nesw-resize'|'no-drop'|'none'|'not-allowed'|'ns-resize'|'nw-resize'|'nwse-resize'|'pointer'|'progress'|'row-resize'|'s-resize'|'se-resize'|'sw-resize'|'text'|'vertical-text'|'w-resize'|'wait'|'zoom-in'|'zoom-out'} Highcharts.CursorValue\n */\n /**\n * All possible dash styles.\n *\n * @typedef {'Dash'|'DashDot'|'Dot'|'LongDash'|'LongDashDot'|'LongDashDotDot'|'ShortDash'|'ShortDashDot'|'ShortDashDotDot'|'ShortDot'|'Solid'} Highcharts.DashStyleValue\n */\n /**\n * Generic dictionary in TypeScript notation.\n *\n * @interface Highcharts.Dictionary\n */ /**\n * @name Highcharts.Dictionary#[key:string]\n * @type {T}\n */\n /**\n * The function callback to execute when the event is fired. The `this` context\n * contains the instance, that fired the event.\n *\n * @callback Highcharts.EventCallbackFunction\n *\n * @param {T} this\n *\n * @param {Highcharts.Dictionary<*>|Event} [eventArguments]\n * Event arguments.\n *\n * @return {boolean|void}\n */\n /**\n * The event options for adding function callback.\n *\n * @interface Highcharts.EventOptionsObject\n */ /**\n * The order the event handler should be called. This opens for having one\n * handler be called before another, independent of in which order they were\n * added.\n * @name Highcharts.EventOptionsObject#order\n * @type {number}\n */\n /**\n * Formats data as a string. Usually the data is accessible throught the `this`\n * keyword.\n *\n * @callback Highcharts.FormatterCallbackFunction\n *\n * @param {T} this\n * Context to format\n *\n * @return {string}\n * Formatted text\n */\n /**\n * An object of key-value pairs for HTML attributes.\n *\n * @typedef {Highcharts.Dictionary} Highcharts.HTMLAttributes\n */\n /**\n * An HTML DOM element. The type is a reference to the regular HTMLElement in\n * the global scope.\n *\n * @typedef {global.HTMLElement} Highcharts.HTMLDOMElement\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement\n */\n /**\n * The iterator callback.\n *\n * @callback Highcharts.ObjectEachCallbackFunction\n *\n * @param {T} this\n * The context.\n *\n * @param {*} value\n * The property value.\n *\n * @param {string} key\n * The property key.\n *\n * @param {*} obj\n * The object that objectEach is being applied to.\n */\n /**\n * An object containing `left` and `top` properties for the position in the\n * page.\n *\n * @interface Highcharts.OffsetObject\n */ /**\n * Left distance to the page border.\n * @name Highcharts.OffsetObject#left\n * @type {number}\n */ /**\n * Top distance to the page border.\n * @name Highcharts.OffsetObject#top\n * @type {number}\n */\n /**\n * Describes a range.\n *\n * @interface Highcharts.RangeObject\n */ /**\n * Maximum number of the range.\n * @name Highcharts.RangeObject#max\n * @type {number}\n */ /**\n * Minimum number of the range.\n * @name Highcharts.RangeObject#min\n * @type {number}\n */\n /**\n * If a number is given, it defines the pixel length. If a percentage string is\n * given, like for example `'50%'`, the setting defines a length relative to a\n * base size, for example the size of a container.\n *\n * @typedef {number|string} Highcharts.RelativeSize\n */\n /**\n * Proceed function to call original (wrapped) function.\n *\n * @callback Highcharts.WrapProceedFunction\n *\n * @param {*} [arg1]\n * Optional argument. Without any arguments defaults to first argument of\n * the wrapping function.\n *\n * @param {*} [arg2]\n * Optional argument. Without any arguments defaults to second argument\n * of the wrapping function.\n *\n * @param {*} [arg3]\n * Optional argument. Without any arguments defaults to third argument of\n * the wrapping function.\n *\n * @return {*}\n * Return value of the original function.\n */\n /**\n * The Highcharts object is the placeholder for all other members, and various\n * utility functions. The most important member of the namespace would be the\n * chart constructor.\n *\n * @example\n * var chart = Highcharts.chart('container', { ... });\n *\n * @namespace Highcharts\n */\n H.timers = [];\n var charts = H.charts, doc = H.doc, win = H.win;\n /**\n * Provide error messages for debugging, with links to online explanation. This\n * function can be overridden to provide custom error handling.\n *\n * @sample highcharts/chart/highcharts-error/\n * Custom error handler\n *\n * @function Highcharts.error\n *\n * @param {number|string} code\n * The error code. See\n * [errors.xml](https://github.com/highcharts/highcharts/blob/master/errors/errors.xml)\n * for available codes. If it is a string, the error message is printed\n * directly in the console.\n *\n * @param {boolean} [stop=false]\n * Whether to throw an error or just log a warning in the console.\n *\n * @param {Highcharts.Chart} [chart]\n * Reference to the chart that causes the error. Used in 'debugger'\n * module to display errors directly on the chart.\n * Important note: This argument is undefined for errors that lack\n * access to the Chart instance.\n *\n * @param {Highcharts.Dictionary} [params]\n * Additional parameters for the generated message.\n *\n * @return {void}\n */\n H.error = function (code, stop, chart, params) {\n var isCode = isNumber(code), message = isCode ?\n \"Highcharts error #\" + code + \": www.highcharts.com/errors/\" + code + \"/\" :\n code.toString(), defaultHandler = function () {\n if (stop) {\n throw new Error(message);\n }\n // else ...\n if (win.console) {\n console.log(message); // eslint-disable-line no-console\n }\n };\n if (typeof params !== 'undefined') {\n var additionalMessages_1 = '';\n if (isCode) {\n message += '?';\n }\n H.objectEach(params, function (value, key) {\n additionalMessages_1 += ('\\n' + key + ': ' + value);\n if (isCode) {\n message += encodeURI(key) + '=' + encodeURI(value);\n }\n });\n message += additionalMessages_1;\n }\n if (chart) {\n H.fireEvent(chart, 'displayError', { code: code, message: message, params: params }, defaultHandler);\n }\n else {\n defaultHandler();\n }\n };\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * An animator object used internally. One instance applies to one property\n * (attribute or style prop) on one element. Animation is always initiated\n * through {@link SVGElement#animate}.\n *\n * @example\n * var rect = renderer.rect(0, 0, 10, 10).add();\n * rect.animate({ width: 100 });\n *\n * @private\n * @class\n * @name Highcharts.Fx\n *\n * @param {Highcharts.HTMLDOMElement|Highcharts.SVGElement} elem\n * The element to animate.\n *\n * @param {Highcharts.AnimationOptionsObject} options\n * Animation options.\n *\n * @param {string} prop\n * The single attribute or CSS property to animate.\n */\n H.Fx = function (elem, options, prop) {\n this.options = options;\n this.elem = elem;\n this.prop = prop;\n /* eslint-enable no-invalid-this, valid-jsdoc */\n };\n H.Fx.prototype = {\n /**\n * Set the current step of a path definition on SVGElement.\n *\n * @function Highcharts.Fx#dSetter\n *\n * @return {void}\n */\n dSetter: function () {\n var start = this.paths[0], end = this.paths[1], ret = [], now = this.now, i = start.length, startVal;\n // Land on the final path without adjustment points appended in the ends\n if (now === 1) {\n ret = this.toD;\n }\n else if (i === end.length && now < 1) {\n while (i--) {\n startVal = parseFloat(start[i]);\n ret[i] = (\n // A letter instruction like M or L\n isNaN(startVal) ||\n // Arc boolean flags:\n end[i - 4] === 'A' || // large-arc-flag\n end[i - 5] === 'A' // sweep-flag\n ) ?\n end[i] :\n (now *\n parseFloat('' + (end[i] - startVal)) +\n startVal);\n }\n // If animation is finished or length not matching, land on right value\n }\n else {\n ret = end;\n }\n this.elem.attr('d', ret, null, true);\n },\n /**\n * Update the element with the current animation step.\n *\n * @function Highcharts.Fx#update\n *\n * @return {void}\n */\n update: function () {\n var elem = this.elem, prop = this.prop, // if destroyed, it is null\n now = this.now, step = this.options.step;\n // Animation setter defined from outside\n if (this[prop + 'Setter']) {\n this[prop + 'Setter']();\n // Other animations on SVGElement\n }\n else if (elem.attr) {\n if (elem.element) {\n elem.attr(prop, now, null, true);\n }\n // HTML styles, raw HTML content like container size\n }\n else {\n elem.style[prop] = now + this.unit;\n }\n if (step) {\n step.call(elem, now, this);\n }\n },\n /**\n * Run an animation.\n *\n * @function Highcharts.Fx#run\n *\n * @param {number} from\n * The current value, value to start from.\n *\n * @param {number} to\n * The end value, value to land on.\n *\n * @param {string} unit\n * The property unit, for example `px`.\n *\n * @return {void}\n */\n run: function (from, to, unit) {\n var self = this, options = self.options, timer = function (gotoEnd) {\n return timer.stopped ? false : self.step(gotoEnd);\n }, requestAnimationFrame = win.requestAnimationFrame ||\n function (step) {\n setTimeout(step, 13);\n }, step = function () {\n for (var i = 0; i < H.timers.length; i++) {\n if (!H.timers[i]()) {\n H.timers.splice(i--, 1);\n }\n }\n if (H.timers.length) {\n requestAnimationFrame(step);\n }\n };\n if (from === to && !this.elem['forceAnimate:' + this.prop]) {\n delete options.curAnim[this.prop];\n if (options.complete && Object.keys(options.curAnim).length === 0) {\n options.complete.call(this.elem);\n }\n }\n else { // #7166\n this.startTime = +new Date();\n this.start = from;\n this.end = to;\n this.unit = unit;\n this.now = this.start;\n this.pos = 0;\n timer.elem = this.elem;\n timer.prop = this.prop;\n if (timer() && H.timers.push(timer) === 1) {\n requestAnimationFrame(step);\n }\n }\n },\n /**\n * Run a single step in the animation.\n *\n * @function Highcharts.Fx#step\n *\n * @param {boolean} [gotoEnd]\n * Whether to go to the endpoint of the animation after abort.\n *\n * @return {boolean}\n * Returns `true` if animation continues.\n */\n step: function (gotoEnd) {\n var t = +new Date(), ret, done, options = this.options, elem = this.elem, complete = options.complete, duration = options.duration, curAnim = options.curAnim;\n if (elem.attr && !elem.element) { // #2616, element is destroyed\n ret = false;\n }\n else if (gotoEnd || t >= duration + this.startTime) {\n this.now = this.end;\n this.pos = 1;\n this.update();\n curAnim[this.prop] = true;\n done = true;\n objectEach(curAnim, function (val) {\n if (val !== true) {\n done = false;\n }\n });\n if (done && complete) {\n complete.call(elem);\n }\n ret = false;\n }\n else {\n this.pos = options.easing((t - this.startTime) / duration);\n this.now = this.start + ((this.end - this.start) * this.pos);\n this.update();\n ret = true;\n }\n return ret;\n },\n /**\n * Prepare start and end values so that the path can be animated one to one.\n *\n * @function Highcharts.Fx#initPath\n *\n * @param {Highcharts.SVGElement} elem\n * The SVGElement item.\n *\n * @param {string} fromD\n * Starting path definition.\n *\n * @param {Highcharts.SVGPathArray} toD\n * Ending path definition.\n *\n * @return {Array}\n * An array containing start and end paths in array form so that\n * they can be animated in parallel.\n */\n initPath: function (elem, fromD, toD) {\n fromD = fromD || '';\n var shift, startX = elem.startX, endX = elem.endX, bezier = fromD.indexOf('C') > -1, numParams = bezier ? 7 : 3, fullLength, slice, i, start = fromD.split(' '), end = toD.slice(), // copy\n isArea = elem.isArea, positionFactor = isArea ? 2 : 1, reverse;\n /**\n * In splines make moveTo and lineTo points have six parameters like\n * bezier curves, to allow animation one-to-one.\n * @private\n * @param {Highcharts.SVGPathArray} arr - array\n * @return {void}\n */\n function sixify(arr) {\n var isOperator, nextIsOperator;\n i = arr.length;\n while (i--) {\n // Fill in dummy coordinates only if the next operator comes\n // three places behind (#5788)\n isOperator = arr[i] === 'M' || arr[i] === 'L';\n nextIsOperator = /[a-zA-Z]/.test(arr[i + 3]);\n if (isOperator && nextIsOperator) {\n arr.splice(i + 1, 0, arr[i + 1], arr[i + 2], arr[i + 1], arr[i + 2]);\n }\n }\n }\n /**\n * Insert an array at the given position of another array\n * @private\n * @param {Array<*>} arr - array\n * @param {Array<*>} subArr - array\n * @param {number} index - number\n * @return {void}\n */\n function insertSlice(arr, subArr, index) {\n [].splice.apply(arr, [index, 0].concat(subArr));\n }\n /**\n * If shifting points, prepend a dummy point to the end path.\n * @private\n * @param {Highcharts.SVGPathArray} arr - array\n * @param {Highcharts.SVGPathArray} other - array\n * @return {void}\n */\n function prepend(arr, other) {\n while (arr.length < fullLength) {\n // Move to, line to or curve to?\n arr[0] = other[fullLength - arr.length];\n // Prepend a copy of the first point\n insertSlice(arr, arr.slice(0, numParams), 0);\n // For areas, the bottom path goes back again to the left, so we\n // need to append a copy of the last point.\n if (isArea) {\n insertSlice(arr, arr.slice(arr.length - numParams), arr.length);\n i--;\n }\n }\n arr[0] = 'M';\n }\n /**\n * Copy and append last point until the length matches the end length.\n * @private\n * @param {Highcharts.SVGPathArray} arr - array\n * @param {Highcharts.SVGPathArray} other - array\n * @return {void}\n */\n function append(arr, other) {\n var i = (fullLength - arr.length) / numParams;\n while (i > 0 && i--) {\n // Pull out the slice that is going to be appended or inserted.\n // In a line graph, the positionFactor is 1, and the last point\n // is sliced out. In an area graph, the positionFactor is 2,\n // causing the middle two points to be sliced out, since an area\n // path starts at left, follows the upper path then turns and\n // follows the bottom back.\n slice = arr.slice().splice((arr.length / positionFactor) - numParams, numParams * positionFactor);\n // Move to, line to or curve to?\n slice[0] = other[fullLength - numParams - (i * numParams)];\n // Disable first control point\n if (bezier) {\n slice[numParams - 6] = slice[numParams - 2];\n slice[numParams - 5] = slice[numParams - 1];\n }\n // Now insert the slice, either in the middle (for areas) or at\n // the end (for lines)\n insertSlice(arr, slice, arr.length / positionFactor);\n if (isArea) {\n i--;\n }\n }\n }\n if (bezier) {\n sixify(start);\n sixify(end);\n }\n // For sideways animation, find out how much we need to shift to get the\n // start path Xs to match the end path Xs.\n if (startX && endX) {\n for (i = 0; i < startX.length; i++) {\n // Moving left, new points coming in on right\n if (startX[i] === endX[0]) {\n shift = i;\n break;\n // Moving right\n }\n else if (startX[0] ===\n endX[endX.length - startX.length + i]) {\n shift = i;\n reverse = true;\n break;\n // Fixed from the right side, \"scaling\" left\n }\n else if (startX[startX.length - 1] ===\n endX[endX.length - startX.length + i]) {\n shift = startX.length - i;\n break;\n }\n }\n if (typeof shift === 'undefined') {\n start = [];\n }\n }\n if (start.length && isNumber(shift)) {\n // The common target length for the start and end array, where both\n // arrays are padded in opposite ends\n fullLength = (end.length + shift * positionFactor * numParams);\n if (!reverse) {\n prepend(end, start);\n append(start, end);\n }\n else {\n prepend(start, end);\n append(end, start);\n }\n }\n return [start, end];\n },\n /**\n * Handle animation of the color attributes directly.\n *\n * @function Highcharts.Fx#fillSetter\n *\n * @return {void}\n */\n fillSetter: function () {\n H.Fx.prototype.strokeSetter.apply(this, arguments);\n },\n /**\n * Handle animation of the color attributes directly.\n *\n * @function Highcharts.Fx#strokeSetter\n *\n * @return {void}\n */\n strokeSetter: function () {\n this.elem.attr(this.prop, H.color(this.start).tweenTo(H.color(this.end), this.pos), null, true);\n }\n }; // End of Fx prototype\n /* eslint-disable valid-jsdoc */\n /**\n * Utility function to deep merge two or more objects and return a third object.\n * If the first argument is true, the contents of the second object is copied\n * into the first object. The merge function can also be used with a single\n * object argument to create a deep copy of an object.\n *\n * @function Highcharts.merge\n *\n * @param {boolean} extend\n * Whether to extend the left-side object (a) or return a whole new\n * object.\n *\n * @param {T|undefined} a\n * The first object to extend. When only this is given, the function\n * returns a deep copy.\n *\n * @param {...Array} [n]\n * An object to merge into the previous one.\n *\n * @return {T}\n * The merged object. If the first argument is true, the return is the\n * same as the second argument.\n */ /**\n * Utility function to deep merge two or more objects and return a third object.\n * The merge function can also be used with a single object argument to create a\n * deep copy of an object.\n *\n * @function Highcharts.merge\n *\n * @param {T|undefined} a\n * The first object to extend. When only this is given, the function\n * returns a deep copy.\n *\n * @param {...Array} [n]\n * An object to merge into the previous one.\n *\n * @return {T}\n * The merged object. If the first argument is true, the return is the\n * same as the second argument.\n */\n H.merge = function () {\n /* eslint-enable valid-jsdoc */\n var i, args = arguments, len, ret = {}, doCopy = function (copy, original) {\n // An object is replacing a primitive\n if (typeof copy !== 'object') {\n copy = {};\n }\n objectEach(original, function (value, key) {\n // Copy the contents of objects, but not arrays or DOM nodes\n if (isObject(value, true) &&\n !isClass(value) &&\n !isDOMElement(value)) {\n copy[key] = doCopy(copy[key] || {}, value);\n // Primitives and arrays are copied over directly\n }\n else {\n copy[key] = original[key];\n }\n });\n return copy;\n };\n // If first argument is true, copy into the existing object. Used in\n // setOptions.\n if (args[0] === true) {\n ret = args[1];\n args = Array.prototype.slice.call(args, 2);\n }\n // For each argument, extend the return\n len = args.length;\n for (i = 0; i < len; i++) {\n ret = doCopy(ret, args[i]);\n }\n return ret;\n };\n /**\n * Shortcut for parseInt\n *\n * @private\n * @function Highcharts.pInt\n *\n * @param {*} s\n * any\n *\n * @param {number} [mag]\n * Magnitude\n *\n * @return {number}\n * number\n */\n function pInt(s, mag) {\n return parseInt(s, mag || 10);\n }\n /**\n * Utility function to check for string type.\n *\n * @function Highcharts.isString\n *\n * @param {*} s\n * The item to check.\n *\n * @return {boolean}\n * True if the argument is a string.\n */\n function isString(s) {\n return typeof s === 'string';\n }\n /**\n * Utility function to check if an item is an array.\n *\n * @function Highcharts.isArray\n *\n * @param {*} obj\n * The item to check.\n *\n * @return {boolean}\n * True if the argument is an array.\n */\n function isArray(obj) {\n var str = Object.prototype.toString.call(obj);\n return str === '[object Array]' || str === '[object Array Iterator]';\n }\n /**\n * Utility function to check if an item is of type object.\n *\n * @function Highcharts.isObject\n *\n * @param {*} obj\n * The item to check.\n *\n * @param {boolean} [strict=false]\n * Also checks that the object is not an array.\n *\n * @return {boolean}\n * True if the argument is an object.\n */\n function isObject(obj, strict) {\n return (!!obj &&\n typeof obj === 'object' &&\n (!strict || !isArray(obj))); // eslint-disable-line @typescript-eslint/no-explicit-any\n }\n /**\n * Utility function to check if an Object is a HTML Element.\n *\n * @function Highcharts.isDOMElement\n *\n * @param {*} obj\n * The item to check.\n *\n * @return {boolean}\n * True if the argument is a HTML Element.\n */\n function isDOMElement(obj) {\n return isObject(obj) && typeof obj.nodeType === 'number';\n }\n /**\n * Utility function to check if an Object is a class.\n *\n * @function Highcharts.isClass\n *\n * @param {object|undefined} obj\n * The item to check.\n *\n * @return {boolean}\n * True if the argument is a class.\n */\n function isClass(obj) {\n var c = obj && obj.constructor;\n return !!(isObject(obj, true) &&\n !isDOMElement(obj) &&\n (c && c.name && c.name !== 'Object'));\n }\n /**\n * Utility function to check if an item is a number and it is finite (not NaN,\n * Infinity or -Infinity).\n *\n * @function Highcharts.isNumber\n *\n * @param {*} n\n * The item to check.\n *\n * @return {boolean}\n * True if the item is a finite number\n */\n function isNumber(n) {\n return typeof n === 'number' && !isNaN(n) && n < Infinity && n > -Infinity;\n }\n /**\n * Remove the last occurence of an item from an array.\n *\n * @function Highcharts.erase\n *\n * @param {Array<*>} arr\n * The array.\n *\n * @param {*} item\n * The item to remove.\n *\n * @return {void}\n */\n function erase(arr, item) {\n var i = arr.length;\n while (i--) {\n if (arr[i] === item) {\n arr.splice(i, 1);\n break;\n }\n }\n }\n /**\n * Check if an object is null or undefined.\n *\n * @function Highcharts.defined\n *\n * @param {*} obj\n * The object to check.\n *\n * @return {boolean}\n * False if the object is null or undefined, otherwise true.\n */\n function defined(obj) {\n return typeof obj !== 'undefined' && obj !== null;\n }\n /**\n * Set or get an attribute or an object of attributes. To use as a setter, pass\n * a key and a value, or let the second argument be a collection of keys and\n * values. To use as a getter, pass only a string as the second argument.\n *\n * @function Highcharts.attr\n *\n * @param {Highcharts.HTMLDOMElement|Highcharts.SVGDOMElement} elem\n * The DOM element to receive the attribute(s).\n *\n * @param {string|Highcharts.HTMLAttributes|Highcharts.SVGAttributes} [prop]\n * The property or an object of key-value pairs.\n *\n * @param {number|string} [value]\n * The value if a single property is set.\n *\n * @return {string|null|undefined}\n * When used as a getter, return the value.\n */\n function attr(elem, prop, value) {\n var ret;\n // if the prop is a string\n if (isString(prop)) {\n // set the value\n if (defined(value)) {\n elem.setAttribute(prop, value);\n // get the value\n }\n else if (elem && elem.getAttribute) {\n ret = elem.getAttribute(prop);\n // IE7 and below cannot get class through getAttribute (#7850)\n if (!ret && prop === 'class') {\n ret = elem.getAttribute(prop + 'Name');\n }\n }\n // else if prop is defined, it is a hash of key/value pairs\n }\n else {\n objectEach(prop, function (val, key) {\n elem.setAttribute(key, val);\n });\n }\n return ret;\n }\n /**\n * Check if an element is an array, and if not, make it into an array.\n *\n * @function Highcharts.splat\n *\n * @param {*} obj\n * The object to splat.\n *\n * @return {Array}\n * The produced or original array.\n */\n function splat(obj) {\n return isArray(obj) ? obj : [obj];\n }\n /**\n * Set a timeout if the delay is given, otherwise perform the function\n * synchronously.\n *\n * @function Highcharts.syncTimeout\n *\n * @param {Function} fn\n * The function callback.\n *\n * @param {number} delay\n * Delay in milliseconds.\n *\n * @param {*} [context]\n * An optional context to send to the function callback.\n *\n * @return {number}\n * An identifier for the timeout that can later be cleared with\n * Highcharts.clearTimeout. Returns -1 if there is no timeout.\n */\n function syncTimeout(fn, delay, context) {\n if (delay > 0) {\n return setTimeout(fn, delay, context);\n }\n fn.call(0, context);\n return -1;\n }\n /**\n * Internal clear timeout. The function checks that the `id` was not removed\n * (e.g. by `chart.destroy()`). For the details see\n * [issue #7901](https://github.com/highcharts/highcharts/issues/7901).\n *\n * @function Highcharts.clearTimeout\n *\n * @param {number} id\n * Id of a timeout.\n *\n * @return {void}\n */\n H.clearTimeout = function (id) {\n if (defined(id)) {\n clearTimeout(id);\n }\n };\n /* eslint-disable valid-jsdoc */\n /**\n * Utility function to extend an object with the members of another.\n *\n * @function Highcharts.extend\n *\n * @param {T|undefined} a\n * The object to be extended.\n *\n * @param {object} b\n * The object to add to the first one.\n *\n * @return {T}\n * Object a, the original object.\n */\n function extend(a, b) {\n /* eslint-enable valid-jsdoc */\n var n;\n if (!a) {\n a = {};\n }\n for (n in b) { // eslint-disable-line guard-for-in\n a[n] = b[n];\n }\n return a;\n }\n /* eslint-disable valid-jsdoc */\n /**\n * Return the first value that is not null or undefined.\n *\n * @function Highcharts.pick\n *\n * @param {...Array} items\n * Variable number of arguments to inspect.\n *\n * @return {T}\n * The value of the first argument that is not null or undefined.\n */\n function pick() {\n var args = arguments;\n var length = args.length;\n for (var i = 0; i < length; i++) {\n var arg = args[i];\n if (typeof arg !== 'undefined' && arg !== null) {\n return arg;\n }\n }\n }\n /**\n * Set CSS on a given element.\n *\n * @function Highcharts.css\n *\n * @param {Highcharts.HTMLDOMElement|Highcharts.SVGDOMElement} el\n * An HTML DOM element.\n *\n * @param {Highcharts.CSSObject} styles\n * Style object with camel case property names.\n *\n * @return {void}\n */\n H.css = function (el, styles) {\n if (H.isMS && !H.svg) { // #2686\n if (styles && typeof styles.opacity !== 'undefined') {\n styles.filter =\n 'alpha(opacity=' + (styles.opacity * 100) + ')';\n }\n }\n extend(el.style, styles);\n };\n /**\n * Utility function to create an HTML element with attributes and styles.\n *\n * @function Highcharts.createElement\n *\n * @param {string} tag\n * The HTML tag.\n *\n * @param {Highcharts.HTMLAttributes} [attribs]\n * Attributes as an object of key-value pairs.\n *\n * @param {Highcharts.CSSObject} [styles]\n * Styles as an object of key-value pairs.\n *\n * @param {Highcharts.HTMLDOMElement} [parent]\n * The parent HTML object.\n *\n * @param {boolean} [nopad=false]\n * If true, remove all padding, border and margin.\n *\n * @return {Highcharts.HTMLDOMElement}\n * The created DOM element.\n */\n H.createElement = function (tag, attribs, styles, parent, nopad) {\n var el = doc.createElement(tag), css = H.css;\n if (attribs) {\n extend(el, attribs);\n }\n if (nopad) {\n css(el, { padding: '0', border: 'none', margin: '0' });\n }\n if (styles) {\n css(el, styles);\n }\n if (parent) {\n parent.appendChild(el);\n }\n return el;\n };\n // eslint-disable-next-line valid-jsdoc\n /**\n * Extend a prototyped class by new members.\n *\n * @function Highcharts.extendClass\n *\n * @param {Highcharts.Class} parent\n * The parent prototype to inherit.\n *\n * @param {Highcharts.Dictionary<*>} members\n * A collection of prototype members to add or override compared to the\n * parent prototype.\n *\n * @return {Highcharts.Class}\n * A new prototype.\n */\n H.extendClass = function (parent, members) {\n var obj = (function () { });\n obj.prototype = new parent(); // eslint-disable-line new-cap\n extend(obj.prototype, members);\n return obj;\n };\n /**\n * Left-pad a string to a given length by adding a character repetetively.\n *\n * @function Highcharts.pad\n *\n * @param {number} number\n * The input string or number.\n *\n * @param {number} [length]\n * The desired string length.\n *\n * @param {string} [padder=0]\n * The character to pad with.\n *\n * @return {string}\n * The padded string.\n */\n H.pad = function (number, length, padder) {\n return new Array((length || 2) +\n 1 -\n String(number)\n .replace('-', '')\n .length).join(padder || '0') + number;\n };\n /**\n * Return a length based on either the integer value, or a percentage of a base.\n *\n * @function Highcharts.relativeLength\n *\n * @param {Highcharts.RelativeSize} value\n * A percentage string or a number.\n *\n * @param {number} base\n * The full length that represents 100%.\n *\n * @param {number} [offset=0]\n * A pixel offset to apply for percentage values. Used internally in\n * axis positioning.\n *\n * @return {number}\n * The computed length.\n */\n H.relativeLength = function (value, base, offset) {\n return (/%$/).test(value) ?\n (base * parseFloat(value) / 100) + (offset || 0) :\n parseFloat(value);\n };\n /**\n * Wrap a method with extended functionality, preserving the original function.\n *\n * @function Highcharts.wrap\n *\n * @param {*} obj\n * The context object that the method belongs to. In real cases, this is\n * often a prototype.\n *\n * @param {string} method\n * The name of the method to extend.\n *\n * @param {Highcharts.WrapProceedFunction} func\n * A wrapper function callback. This function is called with the same\n * arguments as the original function, except that the original function\n * is unshifted and passed as the first argument.\n *\n * @return {void}\n */\n H.wrap = function (obj, method, func) {\n var proceed = obj[method];\n obj[method] = function () {\n var args = Array.prototype.slice.call(arguments), outerArgs = arguments, ctx = this, ret;\n ctx.proceed = function () {\n proceed.apply(ctx, arguments.length ? arguments : outerArgs);\n };\n args.unshift(proceed);\n ret = func.apply(this, args);\n ctx.proceed = null;\n return ret;\n };\n };\n /**\n * Recursively converts all Date properties to timestamps.\n *\n * @private\n * @function Highcharts.datePropsToTimestamps\n *\n * @param {*} obj - any object to convert properties of\n *\n * @return {void}\n */\n H.datePropsToTimestamps = function (obj) {\n objectEach(obj, function (val, key) {\n if (isObject(val) && typeof val.getTime === 'function') {\n obj[key] = val.getTime();\n }\n else if (isObject(val) || isArray(val)) {\n H.datePropsToTimestamps(val);\n }\n });\n };\n /**\n * Format a single variable. Similar to sprintf, without the % prefix.\n *\n * @example\n * formatSingle('.2f', 5); // => '5.00'.\n *\n * @function Highcharts.formatSingle\n *\n * @param {string} format\n * The format string.\n *\n * @param {*} val\n * The value.\n *\n * @param {Highcharts.Time} [time]\n * A `Time` instance that determines the date formatting, for example\n * for applying time zone corrections to the formatted date.\n *\n * @return {string}\n * The formatted representation of the value.\n */\n H.formatSingle = function (format, val, time) {\n var floatRegex = /f$/, decRegex = /\\.([0-9])/, lang = H.defaultOptions.lang, decimals;\n if (floatRegex.test(format)) { // float\n decimals = format.match(decRegex);\n decimals = decimals ? decimals[1] : -1;\n if (val !== null) {\n val = H.numberFormat(val, decimals, lang.decimalPoint, format.indexOf(',') > -1 ? lang.thousandsSep : '');\n }\n }\n else {\n val = (time || H.time).dateFormat(format, val);\n }\n return val;\n };\n /**\n * Format a string according to a subset of the rules of Python's String.format\n * method.\n *\n * @example\n * var s = Highcharts.format(\n * 'The {color} fox was {len:.2f} feet long',\n * { color: 'red', len: Math.PI }\n * );\n * // => The red fox was 3.14 feet long\n *\n * @function Highcharts.format\n *\n * @param {string} str\n * The string to format.\n *\n * @param {*} ctx\n * The context, a collection of key-value pairs where each key is\n * replaced by its value.\n *\n * @param {Highcharts.Time} [time]\n * A `Time` instance that determines the date formatting, for example\n * for applying time zone corrections to the formatted date.\n *\n * @return {string}\n * The formatted string.\n */\n H.format = function (str, ctx, time) {\n var splitter = '{', isInside = false, segment, valueAndFormat, path, i, len, ret = [], val, index;\n while (str) {\n index = str.indexOf(splitter);\n if (index === -1) {\n break;\n }\n segment = str.slice(0, index);\n if (isInside) { // we're on the closing bracket looking back\n valueAndFormat = segment.split(':');\n // get first and leave\n path = valueAndFormat.shift().split('.');\n len = path.length;\n val = ctx;\n // Assign deeper paths\n for (i = 0; i < len; i++) {\n if (val) {\n val = val[path[i]];\n }\n }\n // Format the replacement\n if (valueAndFormat.length) {\n val = H.formatSingle(valueAndFormat.join(':'), val, time);\n }\n // Push the result and advance the cursor\n ret.push(val);\n }\n else {\n ret.push(segment);\n }\n str = str.slice(index + 1); // the rest\n isInside = !isInside; // toggle\n splitter = isInside ? '}' : '{'; // now look for next matching bracket\n }\n ret.push(str);\n return ret.join('');\n };\n /**\n * Get the magnitude of a number.\n *\n * @function Highcharts.getMagnitude\n *\n * @param {number} num\n * The number.\n *\n * @return {number}\n * The magnitude, where 1-9 are magnitude 1, 10-99 magnitude 2 etc.\n */\n H.getMagnitude = function (num) {\n return Math.pow(10, Math.floor(Math.log(num) / Math.LN10));\n };\n /**\n * Take an interval and normalize it to multiples of round numbers.\n *\n * @deprecated\n * @function Highcharts.normalizeTickInterval\n *\n * @param {number} interval\n * The raw, un-rounded interval.\n *\n * @param {Array<*>} [multiples]\n * Allowed multiples.\n *\n * @param {number} [magnitude]\n * The magnitude of the number.\n *\n * @param {boolean} [allowDecimals]\n * Whether to allow decimals.\n *\n * @param {boolean} [hasTickAmount]\n * If it has tickAmount, avoid landing on tick intervals lower than\n * original.\n *\n * @return {number}\n * The normalized interval.\n *\n * @todo\n * Move this function to the Axis prototype. It is here only for historical\n * reasons.\n */\n H.normalizeTickInterval = function (interval, multiples, magnitude, allowDecimals, hasTickAmount) {\n var normalized, i, retInterval = interval;\n // round to a tenfold of 1, 2, 2.5 or 5\n magnitude = pick(magnitude, 1);\n normalized = interval / magnitude;\n // multiples for a linear scale\n if (!multiples) {\n multiples = hasTickAmount ?\n // Finer grained ticks when the tick amount is hard set, including\n // when alignTicks is true on multiple axes (#4580).\n [1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10] :\n // Else, let ticks fall on rounder numbers\n [1, 2, 2.5, 5, 10];\n // the allowDecimals option\n if (allowDecimals === false) {\n if (magnitude === 1) {\n multiples = multiples.filter(function (num) {\n return num % 1 === 0;\n });\n }\n else if (magnitude <= 0.1) {\n multiples = [1 / magnitude];\n }\n }\n }\n // normalize the interval to the nearest multiple\n for (i = 0; i < multiples.length; i++) {\n retInterval = multiples[i];\n // only allow tick amounts smaller than natural\n if ((hasTickAmount &&\n retInterval * magnitude >= interval) ||\n (!hasTickAmount &&\n (normalized <=\n (multiples[i] +\n (multiples[i + 1] || multiples[i])) / 2))) {\n break;\n }\n }\n // Multiply back to the correct magnitude. Correct floats to appropriate\n // precision (#6085).\n retInterval = H.correctFloat(retInterval * magnitude, -Math.round(Math.log(0.001) / Math.LN10));\n return retInterval;\n };\n /**\n * Sort an object array and keep the order of equal items. The ECMAScript\n * standard does not specify the behaviour when items are equal.\n *\n * @function Highcharts.stableSort\n *\n * @param {Array<*>} arr\n * The array to sort.\n *\n * @param {Function} sortFunction\n * The function to sort it with, like with regular Array.prototype.sort.\n *\n * @return {void}\n */\n H.stableSort = function (arr, sortFunction) {\n // @todo It seems like Chrome since v70 sorts in a stable way internally,\n // plus all other browsers do it, so over time we may be able to remove this\n // function\n var length = arr.length, sortValue, i;\n // Add index to each item\n for (i = 0; i < length; i++) {\n arr[i].safeI = i; // stable sort index\n }\n arr.sort(function (a, b) {\n sortValue = sortFunction(a, b);\n return sortValue === 0 ? a.safeI - b.safeI : sortValue;\n });\n // Remove index from items\n for (i = 0; i < length; i++) {\n delete arr[i].safeI; // stable sort index\n }\n };\n /**\n * Non-recursive method to find the lowest member of an array. `Math.min` raises\n * a maximum call stack size exceeded error in Chrome when trying to apply more\n * than 150.000 points. This method is slightly slower, but safe.\n *\n * @function Highcharts.arrayMin\n *\n * @param {Array<*>} data\n * An array of numbers.\n *\n * @return {number}\n * The lowest number.\n */\n function arrayMin(data) {\n var i = data.length, min = data[0];\n while (i--) {\n if (data[i] < min) {\n min = data[i];\n }\n }\n return min;\n }\n /**\n * Non-recursive method to find the lowest member of an array. `Math.max` raises\n * a maximum call stack size exceeded error in Chrome when trying to apply more\n * than 150.000 points. This method is slightly slower, but safe.\n *\n * @function Highcharts.arrayMax\n *\n * @param {Array<*>} data\n * An array of numbers.\n *\n * @return {number}\n * The highest number.\n */\n function arrayMax(data) {\n var i = data.length, max = data[0];\n while (i--) {\n if (data[i] > max) {\n max = data[i];\n }\n }\n return max;\n }\n /**\n * Utility method that destroys any SVGElement instances that are properties on\n * the given object. It loops all properties and invokes destroy if there is a\n * destroy method. The property is then delete.\n *\n * @function Highcharts.destroyObjectProperties\n *\n * @param {*} obj\n * The object to destroy properties on.\n *\n * @param {*} [except]\n * Exception, do not destroy this property, only delete it.\n *\n * @return {void}\n */\n function destroyObjectProperties(obj, except) {\n objectEach(obj, function (val, n) {\n // If the object is non-null and destroy is defined\n if (val && val !== except && val.destroy) {\n // Invoke the destroy\n val.destroy();\n }\n // Delete the property from the object.\n delete obj[n];\n });\n }\n /**\n * Discard a HTML element by moving it to the bin and delete.\n *\n * @function Highcharts.discardElement\n *\n * @param {Highcharts.HTMLDOMElement} element\n * The HTML node to discard.\n *\n * @return {void}\n */\n function discardElement(element) {\n var garbageBin = H.garbageBin;\n // create a garbage bin element, not part of the DOM\n if (!garbageBin) {\n garbageBin = H.createElement('div');\n }\n // move the node and empty bin\n if (element) {\n garbageBin.appendChild(element);\n }\n garbageBin.innerHTML = '';\n }\n /**\n * Fix JS round off float errors.\n *\n * @function Highcharts.correctFloat\n *\n * @param {number} num\n * A float number to fix.\n *\n * @param {number} [prec=14]\n * The precision.\n *\n * @return {number}\n * The corrected float number.\n */\n H.correctFloat = function (num, prec) {\n return parseFloat(num.toPrecision(prec || 14));\n };\n /**\n * Set the global animation to either a given value, or fall back to the given\n * chart's animation option.\n *\n * @function Highcharts.setAnimation\n *\n * @param {boolean|Highcharts.AnimationOptionsObject|undefined} animation\n * The animation object.\n *\n * @param {Highcharts.Chart} chart\n * The chart instance.\n *\n * @return {void}\n *\n * @todo\n * This function always relates to a chart, and sets a property on the renderer,\n * so it should be moved to the SVGRenderer.\n */\n function setAnimation(animation, chart) {\n chart.renderer.globalAnimation = pick(animation, chart.options.chart.animation, true);\n }\n /**\n * Get the animation in object form, where a disabled animation is always\n * returned as `{ duration: 0 }`.\n *\n * @function Highcharts.animObject\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation=0]\n * An animation setting. Can be an object with duration, complete and\n * easing properties, or a boolean to enable or disable.\n *\n * @return {Highcharts.AnimationOptionsObject}\n * An object with at least a duration property.\n */\n H.animObject = function (animation) {\n return isObject(animation) ?\n H.merge(animation) :\n { duration: animation ? 500 : 0 };\n };\n /**\n * The time unit lookup\n *\n * @ignore\n */\n H.timeUnits = {\n millisecond: 1,\n second: 1000,\n minute: 60000,\n hour: 3600000,\n day: 24 * 3600000,\n week: 7 * 24 * 3600000,\n month: 28 * 24 * 3600000,\n year: 364 * 24 * 3600000\n };\n /**\n * Format a number and return a string based on input settings.\n *\n * @sample highcharts/members/highcharts-numberformat/\n * Custom number format\n *\n * @function Highcharts.numberFormat\n *\n * @param {number} number\n * The input number to format.\n *\n * @param {number} decimals\n * The amount of decimals. A value of -1 preserves the amount in the\n * input number.\n *\n * @param {string} [decimalPoint]\n * The decimal point, defaults to the one given in the lang options, or\n * a dot.\n *\n * @param {string} [thousandsSep]\n * The thousands separator, defaults to the one given in the lang\n * options, or a space character.\n *\n * @return {string}\n * The formatted number.\n */\n H.numberFormat = function (number, decimals, decimalPoint, thousandsSep) {\n number = +number || 0;\n decimals = +decimals;\n var lang = H.defaultOptions.lang, origDec = (number.toString().split('.')[1] || '').split('e')[0].length, strinteger, thousands, ret, roundedNumber, exponent = number.toString().split('e'), fractionDigits;\n if (decimals === -1) {\n // Preserve decimals. Not huge numbers (#3793).\n decimals = Math.min(origDec, 20);\n }\n else if (!isNumber(decimals)) {\n decimals = 2;\n }\n else if (decimals && exponent[1] && exponent[1] < 0) {\n // Expose decimals from exponential notation (#7042)\n fractionDigits = decimals + +exponent[1];\n if (fractionDigits >= 0) {\n // remove too small part of the number while keeping the notation\n exponent[0] = (+exponent[0]).toExponential(fractionDigits)\n .split('e')[0];\n decimals = fractionDigits;\n }\n else {\n // fractionDigits < 0\n exponent[0] = exponent[0].split('.')[0] || 0;\n if (decimals < 20) {\n // use number instead of exponential notation (#7405)\n number = (exponent[0] * Math.pow(10, exponent[1]))\n .toFixed(decimals);\n }\n else {\n // or zero\n number = 0;\n }\n exponent[1] = 0;\n }\n }\n // Add another decimal to avoid rounding errors of float numbers. (#4573)\n // Then use toFixed to handle rounding.\n roundedNumber = (Math.abs(exponent[1] ? exponent[0] : number) +\n Math.pow(10, -Math.max(decimals, origDec) - 1)).toFixed(decimals);\n // A string containing the positive integer component of the number\n strinteger = String(pInt(roundedNumber));\n // Leftover after grouping into thousands. Can be 0, 1 or 2.\n thousands = strinteger.length > 3 ? strinteger.length % 3 : 0;\n // Language\n decimalPoint = pick(decimalPoint, lang.decimalPoint);\n thousandsSep = pick(thousandsSep, lang.thousandsSep);\n // Start building the return\n ret = number < 0 ? '-' : '';\n // Add the leftover after grouping into thousands. For example, in the\n // number 42 000 000, this line adds 42.\n ret += thousands ? strinteger.substr(0, thousands) + thousandsSep : '';\n // Add the remaining thousands groups, joined by the thousands separator\n ret += strinteger\n .substr(thousands)\n .replace(/(\\d{3})(?=\\d)/g, '$1' + thousandsSep);\n // Add the decimal point and the decimal component\n if (decimals) {\n // Get the decimal component\n ret += decimalPoint + roundedNumber.slice(-decimals);\n }\n if (exponent[1] && +ret !== 0) {\n ret += 'e' + exponent[1];\n }\n return ret;\n };\n /**\n * Easing definition\n *\n * @private\n * @function Math.easeInOutSine\n *\n * @param {number} pos\n * Current position, ranging from 0 to 1.\n *\n * @return {number}\n * Ease result\n */\n Math.easeInOutSine = function (pos) {\n return -0.5 * (Math.cos(Math.PI * pos) - 1);\n };\n /**\n * Get the computed CSS value for given element and property, only for numerical\n * properties. For width and height, the dimension of the inner box (excluding\n * padding) is returned. Used for fitting the chart within the container.\n *\n * @function Highcharts.getStyle\n *\n * @param {Highcharts.HTMLDOMElement} el\n * An HTML element.\n *\n * @param {string} prop\n * The property name.\n *\n * @param {boolean} [toInt=true]\n * Parse to integer.\n *\n * @return {number|string}\n * The numeric value.\n */\n H.getStyle = function (el, prop, toInt) {\n var style;\n // For width and height, return the actual inner pixel size (#4913)\n if (prop === 'width') {\n var offsetWidth = Math.min(el.offsetWidth, el.scrollWidth);\n // In flex boxes, we need to use getBoundingClientRect and floor it,\n // because scrollWidth doesn't support subpixel precision (#6427) ...\n var boundingClientRectWidth = el.getBoundingClientRect &&\n el.getBoundingClientRect().width;\n // ...unless if the containing div or its parents are transform-scaled\n // down, in which case the boundingClientRect can't be used as it is\n // also scaled down (#9871, #10498).\n if (boundingClientRectWidth < offsetWidth &&\n boundingClientRectWidth >= offsetWidth - 1) {\n offsetWidth = Math.floor(boundingClientRectWidth);\n }\n return Math.max(0, // #8377\n (offsetWidth -\n H.getStyle(el, 'padding-left') -\n H.getStyle(el, 'padding-right')));\n }\n if (prop === 'height') {\n return Math.max(0, // #8377\n Math.min(el.offsetHeight, el.scrollHeight) -\n H.getStyle(el, 'padding-top') -\n H.getStyle(el, 'padding-bottom'));\n }\n if (!win.getComputedStyle) {\n // SVG not supported, forgot to load oldie.js?\n H.error(27, true);\n }\n // Otherwise, get the computed style\n style = win.getComputedStyle(el, undefined); // eslint-disable-line no-undefined\n if (style) {\n style = style.getPropertyValue(prop);\n if (pick(toInt, prop !== 'opacity')) {\n style = pInt(style);\n }\n }\n return style;\n };\n /**\n * Search for an item in an array.\n *\n * @function Highcharts.inArray\n *\n * @deprecated\n *\n * @param {*} item\n * The item to search for.\n *\n * @param {Array<*>} arr\n * The array or node collection to search in.\n *\n * @param {number} [fromIndex=0]\n * The index to start searching from.\n *\n * @return {number}\n * The index within the array, or -1 if not found.\n */\n H.inArray = function (item, arr, fromIndex) {\n return arr.indexOf(item, fromIndex);\n };\n /* eslint-disable valid-jsdoc */\n /**\n * Return the value of the first element in the array that satisfies the\n * provided testing function.\n *\n * @function Highcharts.find\n *\n * @param {Array} arr\n * The array to test.\n *\n * @param {Function} callback\n * The callback function. The function receives the item as the first\n * argument. Return `true` if this item satisfies the condition.\n *\n * @return {T|undefined}\n * The value of the element.\n */\n H.find = Array.prototype.find ?\n /* eslint-enable valid-jsdoc */\n function (arr, callback) {\n return arr.find(callback);\n } :\n // Legacy implementation. PhantomJS, IE <= 11 etc. #7223.\n function (arr, callback) {\n var i, length = arr.length;\n for (i = 0; i < length; i++) {\n if (callback(arr[i], i)) { // eslint-disable-line callback-return\n return arr[i];\n }\n }\n };\n /**\n * Returns an array of a given object's own properties.\n *\n * @function Highcharts.keys\n * @deprecated\n *\n * @param {*} obj\n * The object of which the properties are to be returned.\n *\n * @return {Array}\n * An array of strings that represents all the properties.\n */\n H.keys = Object.keys;\n /**\n * Get the element's offset position, corrected for `overflow: auto`.\n *\n * @function Highcharts.offset\n *\n * @param {Highcharts.HTMLDOMElement} el\n * The HTML element.\n *\n * @return {Highcharts.OffsetObject}\n * An object containing `left` and `top` properties for the position in\n * the page.\n */\n H.offset = function (el) {\n var docElem = doc.documentElement, box = (el.parentElement || el.parentNode) ?\n el.getBoundingClientRect() :\n { top: 0, left: 0 };\n return {\n top: box.top + (win.pageYOffset || docElem.scrollTop) -\n (docElem.clientTop || 0),\n left: box.left + (win.pageXOffset || docElem.scrollLeft) -\n (docElem.clientLeft || 0)\n };\n };\n /**\n * Stop running animation.\n *\n * @function Highcharts.stop\n *\n * @param {Highcharts.SVGElement} el\n * The SVGElement to stop animation on.\n *\n * @param {string} [prop]\n * The property to stop animating. If given, the stop method will stop a\n * single property from animating, while others continue.\n *\n * @return {void}\n *\n * @todo\n * A possible extension to this would be to stop a single property, when\n * we want to continue animating others. Then assign the prop to the timer\n * in the Fx.run method, and check for the prop here. This would be an\n * improvement in all cases where we stop the animation from .attr. Instead of\n * stopping everything, we can just stop the actual attributes we're setting.\n */\n H.stop = function (el, prop) {\n var i = H.timers.length;\n // Remove timers related to this element (#4519)\n while (i--) {\n if (H.timers[i].elem === el && (!prop || prop === H.timers[i].prop)) {\n H.timers[i].stopped = true; // #4667\n }\n }\n };\n /* eslint-disable valid-jsdoc */\n /**\n * Iterate over object key pairs in an object.\n *\n * @function Highcharts.objectEach\n *\n * @param {*} obj\n * The object to iterate over.\n *\n * @param {Highcharts.ObjectEachCallbackFunction} fn\n * The iterator callback. It passes three arguments:\n * * value - The property value.\n * * key - The property key.\n * * obj - The object that objectEach is being applied to.\n *\n * @param {T} [ctx]\n * The context.\n *\n * @return {void}\n */\n function objectEach(obj, fn, ctx) {\n /* eslint-enable valid-jsdoc */\n for (var key in obj) {\n if (Object.hasOwnProperty.call(obj, key)) {\n fn.call(ctx || obj[key], obj[key], key, obj);\n }\n }\n }\n /**\n * Iterate over an array.\n *\n * @deprecated\n * @function Highcharts.each\n *\n * @param {Array<*>} arr\n * The array to iterate over.\n *\n * @param {Function} fn\n * The iterator callback. It passes three arguments:\n * - `item`: The array item.\n * - `index`: The item's index in the array.\n * - `arr`: The array that each is being applied to.\n *\n * @param {*} [ctx]\n * The context.\n *\n * @return {void}\n */\n /**\n * Filter an array by a callback.\n *\n * @deprecated\n * @function Highcharts.grep\n *\n * @param {Array<*>} arr\n * The array to filter.\n *\n * @param {Function} callback\n * The callback function. The function receives the item as the first\n * argument. Return `true` if the item is to be preserved.\n *\n * @return {Array<*>}\n * A new, filtered array.\n */\n /**\n * Map an array by a callback.\n *\n * @deprecated\n * @function Highcharts.map\n *\n * @param {Array<*>} arr\n * The array to map.\n *\n * @param {Function} fn\n * The callback function. Return the new value for the new array.\n *\n * @return {Array<*>}\n * A new array item with modified items.\n */\n /**\n * Reduce an array to a single value.\n *\n * @deprecated\n * @function Highcharts.reduce\n *\n * @param {Array<*>} arr\n * The array to reduce.\n *\n * @param {Function} fn\n * The callback function. Return the reduced value. Receives 4\n * arguments: Accumulated/reduced value, current value, current array\n * index, and the array.\n *\n * @param {*} initialValue\n * The initial value of the accumulator.\n *\n * @return {*}\n * The reduced value.\n */\n /**\n * Test whether at least one element in the array passes the test implemented by\n * the provided function.\n *\n * @deprecated\n * @function Highcharts.some\n *\n * @param {Array<*>} arr\n * The array to test\n *\n * @param {Function} fn\n * The function to run on each item. Return truty to pass the test.\n * Receives arguments `currentValue`, `index` and `array`.\n *\n * @param {*} ctx\n * The context.\n *\n * @return {boolean}\n */\n objectEach({\n map: 'map',\n each: 'forEach',\n grep: 'filter',\n reduce: 'reduce',\n some: 'some'\n }, function (val, key) {\n H[key] = function (arr) {\n return Array.prototype[val].apply(arr, [].slice.call(arguments, 1));\n };\n });\n /* eslint-disable valid-jsdoc */\n /**\n * Add an event listener.\n *\n * @function Highcharts.addEvent\n *\n * @param {Highcharts.Class|T} el\n * The element or object to add a listener to. It can be a\n * {@link HTMLDOMElement}, an {@link SVGElement} or any other object.\n *\n * @param {string} type\n * The event type.\n *\n * @param {Highcharts.EventCallbackFunction|Function} fn\n * The function callback to execute when the event is fired.\n *\n * @param {Highcharts.EventOptionsObject} [options]\n * Options for adding the event.\n *\n * @return {Function}\n * A callback function to remove the added event.\n */\n H.addEvent = function (el, type, fn, options) {\n if (options === void 0) { options = {}; }\n /* eslint-enable valid-jsdoc */\n var events, addEventListener = (el.addEventListener || H.addEventListenerPolyfill);\n // If we're setting events directly on the constructor, use a separate\n // collection, `protoEvents` to distinguish it from the item events in\n // `hcEvents`.\n if (typeof el === 'function' && el.prototype) {\n events = el.prototype.protoEvents = el.prototype.protoEvents || {};\n }\n else {\n events = el.hcEvents = el.hcEvents || {};\n }\n // Allow click events added to points, otherwise they will be prevented by\n // the TouchPointer.pinch function after a pinch zoom operation (#7091).\n if (H.Point &&\n el instanceof H.Point &&\n el.series &&\n el.series.chart) {\n el.series.chart.runTrackerClick = true;\n }\n // Handle DOM events\n if (addEventListener) {\n addEventListener.call(el, type, fn, false);\n }\n if (!events[type]) {\n events[type] = [];\n }\n var eventObject = {\n fn: fn,\n order: typeof options.order === 'number' ? options.order : Infinity\n };\n events[type].push(eventObject);\n // Order the calls\n events[type].sort(function (a, b) {\n return a.order - b.order;\n });\n // Return a function that can be called to remove this event.\n return function () {\n H.removeEvent(el, type, fn);\n };\n };\n /* eslint-disable valid-jsdoc */\n /**\n * Remove an event that was added with {@link Highcharts#addEvent}.\n *\n * @function Highcharts.removeEvent\n *\n * @param {Highcharts.Class|T} el\n * The element to remove events on.\n *\n * @param {string} [type]\n * The type of events to remove. If undefined, all events are removed\n * from the element.\n *\n * @param {Highcharts.EventCallbackFunction} [fn]\n * The specific callback to remove. If undefined, all events that match\n * the element and optionally the type are removed.\n *\n * @return {void}\n */\n H.removeEvent = function (el, type, fn) {\n /* eslint-enable valid-jsdoc */\n var events;\n /**\n * @private\n * @param {string} type - event type\n * @param {Highcharts.EventCallbackFunction} fn - callback\n * @return {void}\n */\n function removeOneEvent(type, fn) {\n var removeEventListener = (el.removeEventListener || H.removeEventListenerPolyfill);\n if (removeEventListener) {\n removeEventListener.call(el, type, fn, false);\n }\n }\n /**\n * @private\n * @param {any} eventCollection - collection\n * @return {void}\n */\n function removeAllEvents(eventCollection) {\n var types, len;\n if (!el.nodeName) {\n return; // break on non-DOM events\n }\n if (type) {\n types = {};\n types[type] = true;\n }\n else {\n types = eventCollection;\n }\n objectEach(types, function (val, n) {\n if (eventCollection[n]) {\n len = eventCollection[n].length;\n while (len--) {\n removeOneEvent(n, eventCollection[n][len].fn);\n }\n }\n });\n }\n ['protoEvents', 'hcEvents'].forEach(function (coll, i) {\n var eventElem = i ? el : el.prototype;\n var eventCollection = eventElem && eventElem[coll];\n if (eventCollection) {\n if (type) {\n events = (eventCollection[type] || []);\n if (fn) {\n eventCollection[type] = events.filter(function (obj) {\n return fn !== obj.fn;\n });\n removeOneEvent(type, fn);\n }\n else {\n removeAllEvents(eventCollection);\n eventCollection[type] = [];\n }\n }\n else {\n removeAllEvents(eventCollection);\n eventElem[coll] = {};\n }\n }\n });\n };\n /* eslint-disable valid-jsdoc */\n /**\n * Fire an event that was registered with {@link Highcharts#addEvent}.\n *\n * @function Highcharts.fireEvent\n *\n * @param {T} el\n * The object to fire the event on. It can be a {@link HTMLDOMElement},\n * an {@link SVGElement} or any other object.\n *\n * @param {string} type\n * The type of event.\n *\n * @param {Highcharts.Dictionary<*>|Event} [eventArguments]\n * Custom event arguments that are passed on as an argument to the event\n * handler.\n *\n * @param {Highcharts.EventCallbackFunction|Function} [defaultFunction]\n * The default function to execute if the other listeners haven't\n * returned false.\n *\n * @return {void}\n */\n H.fireEvent = function (el, type, eventArguments, defaultFunction) {\n /* eslint-enable valid-jsdoc */\n var e, i;\n eventArguments = eventArguments || {};\n if (doc.createEvent &&\n (el.dispatchEvent || el.fireEvent)) {\n e = doc.createEvent('Events');\n e.initEvent(type, true, true);\n extend(e, eventArguments);\n if (el.dispatchEvent) {\n el.dispatchEvent(e);\n }\n else {\n el.fireEvent(type, e);\n }\n }\n else {\n if (!eventArguments.target) {\n // We're running a custom event\n extend(eventArguments, {\n // Attach a simple preventDefault function to skip\n // default handler if called. The built-in\n // defaultPrevented property is not overwritable (#5112)\n preventDefault: function () {\n eventArguments.defaultPrevented = true;\n },\n // Setting target to native events fails with clicking\n // the zoom-out button in Chrome.\n target: el,\n // If the type is not set, we're running a custom event\n // (#2297). If it is set, we're running a browser event,\n // and setting it will cause en error in IE8 (#2465).\n type: type\n });\n }\n var fireInOrder = function (protoEvents, hcEvents) {\n if (protoEvents === void 0) { protoEvents = []; }\n if (hcEvents === void 0) { hcEvents = []; }\n var iA = 0;\n var iB = 0;\n var length = protoEvents.length + hcEvents.length;\n for (i = 0; i < length; i++) {\n var obj = (!protoEvents[iA] ?\n hcEvents[iB++] :\n !hcEvents[iB] ?\n protoEvents[iA++] :\n protoEvents[iA].order <= hcEvents[iB].order ?\n protoEvents[iA++] :\n hcEvents[iB++]);\n // If the event handler return false, prevent the default\n // handler from executing\n if (obj.fn.call(el, eventArguments) === false) {\n eventArguments.preventDefault();\n }\n }\n };\n fireInOrder(el.protoEvents && el.protoEvents[type], el.hcEvents && el.hcEvents[type]);\n }\n // Run the default if not prevented\n if (defaultFunction && !eventArguments.defaultPrevented) {\n defaultFunction.call(el, eventArguments);\n }\n };\n /**\n * The global animate method, which uses Fx to create individual animators.\n *\n * @function Highcharts.animate\n *\n * @param {Highcharts.HTMLDOMElement|Highcharts.SVGElement} el\n * The element to animate.\n *\n * @param {Highcharts.CSSObject|Highcharts.SVGAttributes} params\n * An object containing key-value pairs of the properties to animate.\n * Supports numeric as pixel-based CSS properties for HTML objects and\n * attributes for SVGElements.\n *\n * @param {Highcharts.AnimationOptionsObject} [opt]\n * Animation options.\n *\n * @return {void}\n */\n H.animate = function (el, params, opt) {\n var start, unit = '', end, fx, args;\n if (!isObject(opt)) { // Number or undefined/null\n args = arguments;\n opt = {\n duration: args[2],\n easing: args[3],\n complete: args[4]\n };\n }\n if (!isNumber(opt.duration)) {\n opt.duration = 400;\n }\n opt.easing = typeof opt.easing === 'function' ?\n opt.easing :\n (Math[opt.easing] || Math.easeInOutSine);\n opt.curAnim = H.merge(params);\n objectEach(params, function (val, prop) {\n // Stop current running animation of this property\n H.stop(el, prop);\n fx = new H.Fx(el, opt, prop);\n end = null;\n if (prop === 'd') {\n fx.paths = fx.initPath(el, el.d, params.d);\n fx.toD = params.d;\n start = 0;\n end = 1;\n }\n else if (el.attr) {\n start = el.attr(prop);\n }\n else {\n start = parseFloat(H.getStyle(el, prop)) || 0;\n if (prop !== 'opacity') {\n unit = 'px';\n }\n }\n if (!end) {\n end = val;\n }\n if (end && end.match && end.match('px')) {\n end = end.replace(/px/g, ''); // #4351\n }\n fx.run(start, end, unit);\n });\n };\n /**\n * Factory to create new series prototypes.\n *\n * @function Highcharts.seriesType\n *\n * @param {string} type\n * The series type name.\n *\n * @param {string} parent\n * The parent series type name. Use `line` to inherit from the basic\n * {@link Series} object.\n *\n * @param {Highcharts.SeriesOptionsType|Highcharts.Dictionary<*>} options\n * The additional default options that are merged with the parent's\n * options.\n *\n * @param {Highcharts.Dictionary<*>} [props]\n * The properties (functions and primitives) to set on the new\n * prototype.\n *\n * @param {Highcharts.Dictionary<*>} [pointProps]\n * Members for a series-specific extension of the {@link Point}\n * prototype if needed.\n *\n * @return {Highcharts.Series}\n * The newly created prototype as extended from {@link Series} or its\n * derivatives.\n */\n // docs: add to API + extending Highcharts\n H.seriesType = function (type, parent, options, props, pointProps) {\n var defaultOptions = H.getOptions(), seriesTypes = H.seriesTypes;\n // Merge the options\n defaultOptions.plotOptions[type] = H.merge(defaultOptions.plotOptions[parent], options);\n // Create the class\n seriesTypes[type] = H.extendClass(seriesTypes[parent] || function () { }, props);\n seriesTypes[type].prototype.type = type;\n // Create the point class if needed\n if (pointProps) {\n seriesTypes[type].prototype.pointClass =\n H.extendClass(H.Point, pointProps);\n }\n return seriesTypes[type];\n };\n /**\n * Get a unique key for using in internal element id's and pointers. The key is\n * composed of a random hash specific to this Highcharts instance, and a\n * counter.\n *\n * @example\n * var id = H.uniqueKey(); // => 'highcharts-x45f6hp-0'\n *\n * @function Highcharts.uniqueKey\n *\n * @return {string}\n * A unique key.\n */\n H.uniqueKey = (function () {\n var uniqueKeyHash = Math.random().toString(36).substring(2, 9), idCounter = 0;\n return function () {\n return 'highcharts-' + uniqueKeyHash + '-' + idCounter++;\n };\n }());\n H.isFunction = function (obj) {\n return typeof obj === 'function';\n };\n // Register Highcharts as a plugin in jQuery\n if (win.jQuery) {\n /**\n * Highcharts-extended JQuery.\n *\n * @external JQuery\n */\n /**\n * Helper function to return the chart of the current JQuery selector\n * element.\n *\n * @function external:JQuery#highcharts\n *\n * @return {Highcharts.Chart}\n * The chart that is linked to the JQuery selector element.\n */ /**\n * Factory function to create a chart in the current JQuery selector\n * element.\n *\n * @function external:JQuery#highcharts\n *\n * @param {'Chart'|'Map'|'StockChart'|string} [className]\n * Name of the factory class in the Highcharts namespace.\n *\n * @param {Highcharts.Options} [options]\n * The chart options structure.\n *\n * @param {Highcharts.ChartCallbackFunction} [callback]\n * Function to run when the chart has loaded and and all external\n * images are loaded. Defining a\n * [chart.events.load](https://api.highcharts.com/highcharts/chart.events.load)\n * handler is equivalent.\n *\n * @return {JQuery}\n * The current JQuery selector.\n */\n win.jQuery.fn.highcharts = function () {\n var args = [].slice.call(arguments);\n if (this[0]) { // this[0] is the renderTo div\n // Create the chart\n if (args[0]) {\n new H[ // eslint-disable-line\n // Constructor defaults to Chart\n isString(args[0]) ? args.shift() : 'Chart'](this[0], args[0], args[1]);\n return this;\n }\n // When called without parameters or with the return argument,\n // return an existing chart\n return charts[attr(this[0], 'data-highcharts-chart')];\n }\n };\n }\n // TODO use named exports when supported.\n var utils = {\n arrayMax: arrayMax,\n arrayMin: arrayMin,\n attr: attr,\n defined: defined,\n destroyObjectProperties: destroyObjectProperties,\n discardElement: discardElement,\n erase: erase,\n extend: extend,\n isArray: isArray,\n isClass: isClass,\n isDOMElement: isDOMElement,\n isNumber: isNumber,\n isObject: isObject,\n isString: isString,\n objectEach: objectEach,\n pick: pick,\n pInt: pInt,\n setAnimation: setAnimation,\n splat: splat,\n syncTimeout: syncTimeout\n };\n\n return utils;\n });\n _registerModule(_modules, 'parts/Color.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * A valid color to be parsed and handled by Highcharts. Highcharts internally\n * supports hex colors like `#ffffff`, rgb colors like `rgb(255,255,255)` and\n * rgba colors like `rgba(255,255,255,1)`. Other colors may be supported by the\n * browsers and displayed correctly, but Highcharts is not able to process them\n * and apply concepts like opacity and brightening.\n *\n * @typedef {string} Highcharts.ColorString\n */\n /**\n * A valid color type than can be parsed and handled by Highcharts. It can be a\n * color string, a gradient object, or a pattern object.\n *\n * @typedef {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject} Highcharts.ColorType\n */\n /**\n * Gradient options instead of a solid color.\n *\n * @example\n * // Linear gradient used as a color option\n * color: {\n * linearGradient: { x1: 0, x2: 0, y1: 0, y2: 1 },\n * stops: [\n * [0, '#003399'], // start\n * [0.5, '#ffffff'], // middle\n * [1, '#3366AA'] // end\n * ]\n * }\n *\n * @interface Highcharts.GradientColorObject\n */ /**\n * Holds an object that defines the start position and the end position relative\n * to the shape.\n * @name Highcharts.GradientColorObject#linearGradient\n * @type {Highcharts.LinearGradientColorObject|undefined}\n */ /**\n * Holds an object that defines the center position and the radius.\n * @name Highcharts.GradientColorObject#radialGradient\n * @type {Highcharts.RadialGradientColorObject|undefined}\n */ /**\n * The first item in each tuple is the position in the gradient, where 0 is the\n * start of the gradient and 1 is the end of the gradient. Multiple stops can be\n * applied. The second item is the color for each stop. This color can also be\n * given in the rgba format.\n * @name Highcharts.GradientColorObject#stops\n * @type {Array}\n */\n /**\n * Color stop tuple.\n *\n * @see Highcharts.GradientColorObject\n *\n * @interface Highcharts.GradientColorStopObject\n */ /**\n * @name Highcharts.GradientColorStopObject#0\n * @type {number}\n */ /**\n * @name Highcharts.GradientColorStopObject#1\n * @type {Highcharts.ColorString}\n */ /**\n * @name Highcharts.GradoentColorStopObject#color\n * @type {Highcharts.Color|undefined}\n */\n /**\n * Defines the start position and the end position for a gradient relative\n * to the shape. Start position (x1, y1) and end position (x2, y2) are relative\n * to the shape, where 0 means top/left and 1 is bottom/right.\n *\n * @interface Highcharts.LinearGradientColorObject\n */ /**\n * Start horizontal position of the gradient. Float ranges 0-1.\n * @name Highcharts.LinearGradientColorObject#x1\n * @type {number}\n */ /**\n * End horizontal position of the gradient. Float ranges 0-1.\n * @name Highcharts.LinearGradientColorObject#x2\n * @type {number}\n */ /**\n * Start vertical position of the gradient. Float ranges 0-1.\n * @name Highcharts.LinearGradientColorObject#y1\n * @type {number}\n */ /**\n * End vertical position of the gradient. Float ranges 0-1.\n * @name Highcharts.LinearGradientColorObject#y2\n * @type {number}\n */\n /**\n * Defines the center position and the radius for a gradient.\n *\n * @interface Highcharts.RadialGradientColorObject\n */ /**\n * Center horizontal position relative to the shape. Float ranges 0-1.\n * @name Highcharts.RadialGradientColorObject#cx\n * @type {number}\n */ /**\n * Center vertical position relative to the shape. Float ranges 0-1.\n * @name Highcharts.RadialGradientColorObject#cy\n * @type {number}\n */ /**\n * Radius relative to the shape. Float ranges 0-1.\n * @name Highcharts.RadialGradientColorObject#r\n * @type {number}\n */\n var isNumber = U.isNumber, pInt = U.pInt;\n var merge = H.merge;\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * Handle color operations. Some object methods are chainable.\n *\n * @class\n * @name Highcharts.Color\n *\n * @param {Highcharts.ColorType} input\n * The input color in either rbga or hex format\n */\n H.Color = function (input) {\n // Backwards compatibility, allow instanciation without new\n if (!(this instanceof H.Color)) {\n return new H.Color(input);\n }\n // Initialize\n this.init(input);\n };\n H.Color.prototype = {\n // Collection of parsers. This can be extended from the outside by pushing\n // parsers to Highcharts.Color.prototype.parsers.\n parsers: [{\n // RGBA color\n // eslint-disable-next-line max-len\n 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*\\)/,\n parse: function (result) {\n return [\n pInt(result[1]),\n pInt(result[2]),\n pInt(result[3]),\n parseFloat(result[4], 10)\n ];\n }\n }, {\n // RGB color\n regex: /rgb\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/,\n parse: function (result) {\n return [pInt(result[1]), pInt(result[2]), pInt(result[3]), 1];\n }\n }],\n // Collection of named colors. Can be extended from the outside by adding\n // colors to Highcharts.Color.prototype.names.\n names: {\n white: '#ffffff',\n black: '#000000'\n },\n /**\n * Parse the input color to rgba array\n *\n * @private\n * @function Highcharts.Color#init\n *\n * @param {Highcharts.ColorType} input\n * The input color in either rbga or hex format\n *\n * @return {void}\n */\n init: function (input) {\n var result, rgba, i, parser, len;\n this.input = input = this.names[input && input.toLowerCase ?\n input.toLowerCase() :\n ''] || input;\n // Gradients\n if (input && input.stops) {\n this.stops = input.stops.map(function (stop) {\n return new H.Color(stop[1]);\n });\n // Solid colors\n }\n else {\n // Bitmasking as input[0] is not working for legacy IE.\n if (input &&\n input.charAt &&\n input.charAt() === '#') {\n len = input.length;\n input = parseInt(input.substr(1), 16);\n // Handle long-form, e.g. #AABBCC\n if (len === 7) {\n rgba = [\n (input & 0xFF0000) >> 16,\n (input & 0xFF00) >> 8,\n (input & 0xFF),\n 1\n ];\n // Handle short-form, e.g. #ABC\n // In short form, the value is assumed to be the same\n // for both nibbles for each component. e.g. #ABC = #AABBCC\n }\n else if (len === 4) {\n rgba = [\n (((input & 0xF00) >> 4) |\n (input & 0xF00) >> 8),\n (((input & 0xF0) >> 4) |\n (input & 0xF0)),\n ((input & 0xF) << 4) | (input & 0xF),\n 1\n ];\n }\n }\n // Otherwise, check regex parsers\n if (!rgba) {\n i = this.parsers.length;\n while (i-- && !rgba) {\n parser = this.parsers[i];\n result = parser.regex.exec(input);\n if (result) {\n rgba = parser.parse(result);\n }\n }\n }\n }\n this.rgba = rgba || [];\n },\n /**\n * Return the color or gradient stops in the specified format\n *\n * @function Highcharts.Color#get\n *\n * @param {string} [format]\n * Possible values are 'a', 'rgb', 'rgba' (default).\n *\n * @return {Highcharts.ColorType}\n * This color as a string or gradient stops.\n */\n get: function (format) {\n var input = this.input, rgba = this.rgba, ret;\n if (this.stops) {\n ret = merge(input);\n ret.stops = [].concat(ret.stops);\n this.stops.forEach(function (stop, i) {\n ret.stops[i] = [\n ret.stops[i][0],\n stop.get(format)\n ];\n });\n // it's NaN if gradient colors on a column chart\n }\n else if (rgba && isNumber(rgba[0])) {\n if (format === 'rgb' || (!format && rgba[3] === 1)) {\n ret = 'rgb(' + rgba[0] + ',' + rgba[1] + ',' + rgba[2] + ')';\n }\n else if (format === 'a') {\n ret = rgba[3];\n }\n else {\n ret = 'rgba(' + rgba.join(',') + ')';\n }\n }\n else {\n ret = input;\n }\n return ret;\n },\n /**\n * Brighten the color instance.\n *\n * @function Highcharts.Color#brighten\n *\n * @param {number} alpha\n * The alpha value.\n *\n * @return {Highcharts.Color}\n * This color with modifications.\n */\n brighten: function (alpha) {\n var i, rgba = this.rgba;\n if (this.stops) {\n this.stops.forEach(function (stop) {\n stop.brighten(alpha);\n });\n }\n else if (isNumber(alpha) && alpha !== 0) {\n for (i = 0; i < 3; i++) {\n rgba[i] += pInt(alpha * 255);\n if (rgba[i] < 0) {\n rgba[i] = 0;\n }\n if (rgba[i] > 255) {\n rgba[i] = 255;\n }\n }\n }\n return this;\n },\n /**\n * Set the color's opacity to a given alpha value.\n *\n * @function Highcharts.Color#setOpacity\n *\n * @param {number} alpha\n * Opacity between 0 and 1.\n *\n * @return {Highcharts.Color}\n * Color with modifications.\n */\n setOpacity: function (alpha) {\n this.rgba[3] = alpha;\n return this;\n },\n /**\n * Return an intermediate color between two colors.\n *\n * @function Highcharts.Color#tweenTo\n *\n * @param {Highcharts.Color} to\n * The color object to tween to.\n *\n * @param {number} pos\n * The intermediate position, where 0 is the from color (current\n * color item), and 1 is the `to` color.\n *\n * @return {Highcharts.ColorString}\n * The intermediate color in rgba notation.\n */\n tweenTo: function (to, pos) {\n // Check for has alpha, because rgba colors perform worse due to lack of\n // support in WebKit.\n var fromRgba = this.rgba, toRgba = to.rgba, hasAlpha, ret;\n // Unsupported color, return to-color (#3920, #7034)\n if (!toRgba.length || !fromRgba || !fromRgba.length) {\n ret = to.input || 'none';\n // Interpolate\n }\n else {\n hasAlpha = (toRgba[3] !== 1 || fromRgba[3] !== 1);\n ret = (hasAlpha ? 'rgba(' : 'rgb(') +\n Math.round(toRgba[0] + (fromRgba[0] - toRgba[0]) * (1 - pos)) +\n ',' +\n Math.round(toRgba[1] + (fromRgba[1] - toRgba[1]) * (1 - pos)) +\n ',' +\n Math.round(toRgba[2] + (fromRgba[2] - toRgba[2]) * (1 - pos)) +\n (hasAlpha ?\n (',' +\n (toRgba[3] + (fromRgba[3] - toRgba[3]) * (1 - pos))) :\n '') +\n ')';\n }\n return ret;\n }\n };\n /**\n * Creates a color instance out of a color string.\n *\n * @function Highcharts.color\n *\n * @param {Highcharts.ColorType} input\n * The input color in either rbga or hex format\n *\n * @return {Highcharts.Color}\n * Color instance\n */\n H.color = function (input) {\n return new H.Color(input);\n };\n\n });\n _registerModule(_modules, 'parts/SvgRenderer.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * The horizontal alignment of an element.\n *\n * @typedef {\"center\"|\"left\"|\"right\"} Highcharts.AlignValue\n */\n /**\n * Options to align the element relative to the chart or another box.\n *\n * @interface Highcharts.AlignObject\n */ /**\n * Horizontal alignment. Can be one of `left`, `center` and `right`.\n *\n * @name Highcharts.AlignObject#align\n * @type {Highcharts.AlignValue|undefined}\n *\n * @default left\n */ /**\n * Vertical alignment. Can be one of `top`, `middle` and `bottom`.\n *\n * @name Highcharts.AlignObject#verticalAlign\n * @type {Highcharts.VerticalAlignValue|undefined}\n *\n * @default top\n */ /**\n * Horizontal pixel offset from alignment.\n *\n * @name Highcharts.AlignObject#x\n * @type {number|undefined}\n *\n * @default 0\n */ /**\n * Vertical pixel offset from alignment.\n *\n * @name Highcharts.AlignObject#y\n * @type {number|undefined}\n *\n * @default 0\n */ /**\n * Use the `transform` attribute with translateX and translateY custom\n * attributes to align this elements rather than `x` and `y` attributes.\n *\n * @name Highcharts.AlignObject#alignByTranslate\n * @type {boolean|undefined}\n *\n * @default false\n */\n /**\n * Bounding box of an element.\n *\n * @interface Highcharts.BBoxObject\n * @extends Highcharts.PositionObject\n */ /**\n * Height of the bounding box.\n *\n * @name Highcharts.BBoxObject#height\n * @type {number}\n */ /**\n * Width of the bounding box.\n *\n * @name Highcharts.BBoxObject#width\n * @type {number}\n */ /**\n * Horizontal position of the bounding box.\n *\n * @name Highcharts.BBoxObject#x\n * @type {number}\n */ /**\n * Vertical position of the bounding box.\n *\n * @name Highcharts.BBoxObject#y\n * @type {number}\n */\n /**\n * A clipping rectangle that can be applied to one or more {@link SVGElement}\n * instances. It is instanciated with the {@link SVGRenderer#clipRect} function\n * and applied with the {@link SVGElement#clip} function.\n *\n * @example\n * var circle = renderer.circle(100, 100, 100)\n * .attr({ fill: 'red' })\n * .add();\n * var clipRect = renderer.clipRect(100, 100, 100, 100);\n *\n * // Leave only the lower right quarter visible\n * circle.clip(clipRect);\n *\n * @typedef {Highcharts.SVGElement} Highcharts.ClipRectElement\n */\n /**\n * The font metrics.\n *\n * @interface Highcharts.FontMetricsObject\n */ /**\n * The baseline relative to the top of the box.\n *\n * @name Highcharts.FontMetricsObject#b\n * @type {number}\n */ /**\n * The font size.\n *\n * @name Highcharts.FontMetricsObject#f\n * @type {number}\n */ /**\n * The line height.\n *\n * @name Highcharts.FontMetricsObject#h\n * @type {number}\n */\n /**\n * An object containing `x` and `y` properties for the position of an element.\n *\n * @interface Highcharts.PositionObject\n */ /**\n * X position of the element.\n * @name Highcharts.PositionObject#x\n * @type {number}\n */ /**\n * Y position of the element.\n * @name Highcharts.PositionObject#y\n * @type {number}\n */\n /**\n * A rectangle.\n *\n * @interface Highcharts.RectangleObject\n */ /**\n * Height of the rectangle.\n * @name Highcharts.RectangleObject#height\n * @type {number}\n */ /**\n * Width of the rectangle.\n * @name Highcharts.RectangleObject#width\n * @type {number}\n */ /**\n * Horizontal position of the rectangle.\n * @name Highcharts.RectangleObject#x\n * @type {number}\n */ /**\n * Vertical position of the rectangle.\n * @name Highcharts.RectangleObject#y\n * @type {number}\n */\n /**\n * The shadow options.\n *\n * @interface Highcharts.ShadowOptionsObject\n */ /**\n * The shadow color.\n * @name Highcharts.ShadowOptionsObject#color\n * @type {Highcharts.ColorString|undefined}\n * @default #000000\n */ /**\n * The horizontal offset from the element.\n *\n * @name Highcharts.ShadowOptionsObject#offsetX\n * @type {number|undefined}\n * @default 1\n */ /**\n * The vertical offset from the element.\n * @name Highcharts.ShadowOptionsObject#offsetY\n * @type {number|undefined}\n * @default 1\n */ /**\n * The shadow opacity.\n *\n * @name Highcharts.ShadowOptionsObject#opacity\n * @type {number|undefined}\n * @default 0.15\n */ /**\n * The shadow width or distance from the element.\n * @name Highcharts.ShadowOptionsObject#width\n * @type {number|undefined}\n * @default 3\n */\n /**\n * @interface Highcharts.SizeObject\n */ /**\n * @name Highcharts.SizeObject#height\n * @type {number}\n */ /**\n * @name Highcharts.SizeObject#width\n * @type {number}\n */\n /**\n * An object of key-value pairs for SVG attributes. Attributes in Highcharts\n * elements for the most parts correspond to SVG, but some are specific to\n * Highcharts, like `zIndex`, `rotation`, `rotationOriginX`,\n * `rotationOriginY`, `translateX`, `translateY`, `scaleX` and `scaleY`. SVG\n * attributes containing a hyphen are _not_ camel-cased, they should be\n * quoted to preserve the hyphen.\n *\n * @example\n * {\n * 'stroke': '#ff0000', // basic\n * 'stroke-width': 2, // hyphenated\n * 'rotation': 45 // custom\n * 'd': ['M', 10, 10, 'L', 30, 30, 'z'] // path definition, note format\n * }\n *\n * @interface Highcharts.SVGAttributes\n */ /**\n * @name Highcharts.SVGAttributes#[key:string]\n * @type {*}\n */ /**\n * @name Highcharts.SVGAttributes#d\n * @type {string|Highcharts.SVGPathArray|undefined}\n */ /**\n * @name Highcharts.SVGAttributes#fill\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject|undefined}\n */ /**\n * @name Highcharts.SVGAttributes#inverted\n * @type {boolean|undefined}\n */ /**\n * @name Highcharts.SVGAttributes#matrix\n * @type {Array|undefined}\n */ /**\n * @name Highcharts.SVGAttributes#rotation\n * @type {number|undefined}\n */ /**\n * @name Highcharts.SVGAttributes#rotationOriginX\n * @type {number|undefined}\n */ /**\n * @name Highcharts.SVGAttributes#rotationOriginY\n * @type {number|undefined}\n */ /**\n * @name Highcharts.SVGAttributes#scaleX\n * @type {number|undefined}\n */ /**\n * @name Highcharts.SVGAttributes#scaleY\n * @type {number|undefined}\n */ /**\n * @name Highcharts.SVGAttributes#stroke\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject|undefined}\n */ /**\n * @name Highcharts.SVGAttributes#style\n * @type {string|Highcharts.CSSObject|undefined}\n */ /**\n * @name Highcharts.SVGAttributes#translateX\n * @type {number|undefined}\n */ /**\n * @name Highcharts.SVGAttributes#translateY\n * @type {number|undefined}\n */ /**\n * @name Highcharts.SVGAttributes#zIndex\n * @type {number|undefined}\n */\n /**\n * Serialized form of an SVG definition, including children. Some key\n * property names are reserved: tagName, textContent, and children.\n *\n * @interface Highcharts.SVGDefinitionObject\n */ /**\n * @name Highcharts.SVGDefinitionObject#[key:string]\n * @type {number|string|Array|undefined}\n */ /**\n * @name Highcharts.SVGDefinitionObject#children\n * @type {Array|undefined}\n */ /**\n * @name Highcharts.SVGDefinitionObject#tagName\n * @type {string|undefined}\n */ /**\n * @name Highcharts.SVGDefinitionObject#textContent\n * @type {string|undefined}\n */\n /**\n * An SVG DOM element. The type is a reference to the regular SVGElement in the\n * global scope.\n *\n * @typedef {globals.GlobalSVGElement} Highcharts.SVGDOMElement\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/SVGElement\n */\n /**\n * Array of path commands, that will go into the `d` attribute of an SVG\n * element.\n *\n * @typedef {Array} Highcharts.SVGPathArray\n */\n /**\n * Possible path commands in a SVG path array.\n *\n * @typedef {string} Highcharts.SVGPathCommand\n * @validvalue [\"a\",\"c\",\"h\",\"l\",\"m\",\"q\",\"s\",\"t\",\"v\",\"z\",\"A\",\"C\",\"H\",\"L\",\"M\",\"Q\",\"S\",\"T\",\"V\",\"Z\"]\n */\n /**\n * An extendable collection of functions for defining symbol paths. Symbols are\n * used internally for point markers, button and label borders and backgrounds,\n * or custom shapes. Extendable by adding to {@link SVGRenderer#symbols}.\n *\n * @interface Highcharts.SymbolDictionary\n */ /**\n * @name Highcharts.SymbolDictionary#[key:string]\n * @type {Function|undefined}\n */ /**\n * @name Highcharts.SymbolDictionary#arc\n * @type {Function|undefined}\n */ /**\n * @name Highcharts.SymbolDictionary#callout\n * @type {Function|undefined}\n */ /**\n * @name Highcharts.SymbolDictionary#circle\n * @type {Function|undefined}\n */ /**\n * @name Highcharts.SymbolDictionary#diamond\n * @type {Function|undefined}\n */ /**\n * @name Highcharts.SymbolDictionary#square\n * @type {Function|undefined}\n */ /**\n * @name Highcharts.SymbolDictionary#triangle\n * @type {Function|undefined}\n */\n /**\n * Can be one of `arc`, `callout`, `circle`, `diamond`, `square`, `triangle`,\n * and `triangle-down`. Symbols are used internally for point markers, button\n * and label borders and backgrounds, or custom shapes. Extendable by adding to\n * {@link SVGRenderer#symbols}.\n *\n * @typedef {\"arc\"|\"callout\"|\"circle\"|\"diamond\"|\"square\"|\"triangle\"|\"triangle-down\"} Highcharts.SymbolKeyValue\n */\n /**\n * Additional options, depending on the actual symbol drawn.\n *\n * @interface Highcharts.SymbolOptionsObject\n */ /**\n * The anchor X position for the `callout` symbol. This is where the chevron\n * points to.\n *\n * @name Highcharts.SymbolOptionsObject#anchorX\n * @type {number|undefined}\n */ /**\n * The anchor Y position for the `callout` symbol. This is where the chevron\n * points to.\n *\n * @name Highcharts.SymbolOptionsObject#anchorY\n * @type {number|undefined}\n */ /**\n * The end angle of an `arc` symbol.\n *\n * @name Highcharts.SymbolOptionsObject#end\n * @type {number|undefined}\n */ /**\n * Whether to draw `arc` symbol open or closed.\n *\n * @name Highcharts.SymbolOptionsObject#open\n * @type {boolean|undefined}\n */ /**\n * The radius of an `arc` symbol, or the border radius for the `callout` symbol.\n *\n * @name Highcharts.SymbolOptionsObject#r\n * @type {number|undefined}\n */ /**\n * The start angle of an `arc` symbol.\n *\n * @name Highcharts.SymbolOptionsObject#start\n * @type {number|undefined}\n */\n /**\n * The vertical alignment of an element.\n *\n * @typedef {\"bottom\"|\"middle\"|\"top\"} Highcharts.VerticalAlignValue\n */\n /* eslint-disable no-invalid-this, valid-jsdoc */\n var attr = U.attr, defined = U.defined, destroyObjectProperties = U.destroyObjectProperties, erase = U.erase, extend = U.extend, isArray = U.isArray, isNumber = U.isNumber, isObject = U.isObject, isString = U.isString, objectEach = U.objectEach, pick = U.pick, pInt = U.pInt, splat = U.splat;\n var SVGElement, SVGRenderer, addEvent = H.addEvent, animate = H.animate, charts = H.charts, color = H.color, css = H.css, createElement = H.createElement, deg2rad = H.deg2rad, doc = H.doc, hasTouch = H.hasTouch, isFirefox = H.isFirefox, isMS = H.isMS, isWebKit = H.isWebKit, merge = H.merge, noop = H.noop, removeEvent = H.removeEvent, stop = H.stop, svg = H.svg, SVG_NS = H.SVG_NS, symbolSizes = H.symbolSizes, win = H.win;\n /**\n * The SVGElement prototype is a JavaScript wrapper for SVG elements used in the\n * rendering layer of Highcharts. Combined with the {@link\n * Highcharts.SVGRenderer} object, these prototypes allow freeform annotation\n * in the charts or even in HTML pages without instanciating a chart. The\n * SVGElement can also wrap HTML labels, when `text` or `label` elements are\n * created with the `useHTML` parameter.\n *\n * The SVGElement instances are created through factory functions on the {@link\n * Highcharts.SVGRenderer} object, like {@link Highcharts.SVGRenderer#rect|\n * rect}, {@link Highcharts.SVGRenderer#path|path}, {@link\n * Highcharts.SVGRenderer#text|text}, {@link Highcharts.SVGRenderer#label|\n * label}, {@link Highcharts.SVGRenderer#g|g} and more.\n *\n * @class\n * @name Highcharts.SVGElement\n */\n SVGElement = H.SVGElement = function () {\n return this;\n };\n extend(SVGElement.prototype, /** @lends Highcharts.SVGElement.prototype */ {\n // Default base for animation\n opacity: 1,\n SVG_NS: SVG_NS,\n /**\n * For labels, these CSS properties are applied to the `text` node directly.\n *\n * @private\n * @name Highcharts.SVGElement#textProps\n * @type {Array}\n */\n textProps: ['direction', 'fontSize', 'fontWeight', 'fontFamily',\n 'fontStyle', 'color', 'lineHeight', 'width', 'textAlign',\n 'textDecoration', 'textOverflow', 'textOutline', 'cursor'],\n /**\n * Initialize the SVG element. This function only exists to make the\n * initialization process overridable. It should not be called directly.\n *\n * @function Highcharts.SVGElement#init\n *\n * @param {Highcharts.SVGRenderer} renderer\n * The SVGRenderer instance to initialize to.\n *\n * @param {string} nodeName\n * The SVG node name.\n *\n * @return {void}\n */\n init: function (renderer, nodeName) {\n /**\n * The primary DOM node. Each `SVGElement` instance wraps a main DOM\n * node, but may also represent more nodes.\n *\n * @name Highcharts.SVGElement#element\n * @type {Highcharts.SVGDOMElement|Highcharts.HTMLDOMElement}\n */\n this.element = nodeName === 'span' ?\n createElement(nodeName) :\n doc.createElementNS(this.SVG_NS, nodeName);\n /**\n * The renderer that the SVGElement belongs to.\n *\n * @name Highcharts.SVGElement#renderer\n * @type {Highcharts.SVGRenderer}\n */\n this.renderer = renderer;\n H.fireEvent(this, 'afterInit');\n },\n /**\n * Animate to given attributes or CSS properties.\n *\n * @sample highcharts/members/element-on/\n * Setting some attributes by animation\n *\n * @function Highcharts.SVGElement#animate\n *\n * @param {Highcharts.SVGAttributes} params\n * SVG attributes or CSS to animate.\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [options]\n * Animation options.\n *\n * @param {Function} [complete]\n * Function to perform at the end of animation.\n *\n * @return {Highcharts.SVGElement}\n * Returns the SVGElement for chaining.\n */\n animate: function (params, options, complete) {\n var animOptions = H.animObject(pick(options, this.renderer.globalAnimation, true));\n // When the page is hidden save resources in the background by not\n // running animation at all (#9749).\n if (pick(doc.hidden, doc.msHidden, doc.webkitHidden, false)) {\n animOptions.duration = 0;\n }\n if (animOptions.duration !== 0) {\n // allows using a callback with the global animation without\n // overwriting it\n if (complete) {\n animOptions.complete = complete;\n }\n animate(this, params, animOptions);\n }\n else {\n this.attr(params, undefined, complete);\n // Call the end step synchronously\n objectEach(params, function (val, prop) {\n if (animOptions.step) {\n animOptions.step.call(this, val, { prop: prop, pos: 1 });\n }\n }, this);\n }\n return this;\n },\n /**\n * Build and apply an SVG gradient out of a common JavaScript configuration\n * object. This function is called from the attribute setters. An event\n * hook is added for supporting other complex color types.\n *\n * @private\n * @function Highcharts.SVGElement#complexColor\n *\n * @param {Highcharts.GradientColorObject} color\n * The gradient options structure.\n *\n * @param {string} prop\n * The property to apply, can either be `fill` or `stroke`.\n *\n * @param {Highcharts.SVGDOMElement} elem\n * SVG element to apply the gradient on.\n *\n * @return {void}\n */\n complexColor: function (color, prop, elem) {\n var renderer = this.renderer, colorObject, gradName, gradAttr, radAttr, gradients, gradientObject, stops, stopColor, stopOpacity, radialReference, id, key = [], value;\n H.fireEvent(this.renderer, 'complexColor', {\n args: arguments\n }, function () {\n // Apply linear or radial gradients\n if (color.radialGradient) {\n gradName = 'radialGradient';\n }\n else if (color.linearGradient) {\n gradName = 'linearGradient';\n }\n if (gradName) {\n gradAttr = color[gradName];\n gradients = renderer.gradients;\n stops = color.stops;\n radialReference = elem.radialReference;\n // Keep < 2.2 kompatibility\n if (isArray(gradAttr)) {\n color[gradName] = gradAttr = {\n x1: gradAttr[0],\n y1: gradAttr[1],\n x2: gradAttr[2],\n y2: gradAttr[3],\n gradientUnits: 'userSpaceOnUse'\n };\n }\n // Correct the radial gradient for the radial reference system\n if (gradName === 'radialGradient' &&\n radialReference &&\n !defined(gradAttr.gradientUnits)) {\n // Save the radial attributes for updating\n radAttr = gradAttr;\n gradAttr = merge(gradAttr, renderer.getRadialAttr(radialReference, radAttr), { gradientUnits: 'userSpaceOnUse' });\n }\n // Build the unique key to detect whether we need to create a\n // new element (#1282)\n objectEach(gradAttr, function (val, n) {\n if (n !== 'id') {\n key.push(n, val);\n }\n });\n objectEach(stops, function (val) {\n key.push(val);\n });\n key = key.join(',');\n // Check if a gradient object with the same config object is\n // created within this renderer\n if (gradients[key]) {\n id = gradients[key].attr('id');\n }\n else {\n // Set the id and create the element\n gradAttr.id = id = H.uniqueKey();\n gradients[key] = gradientObject =\n renderer.createElement(gradName)\n .attr(gradAttr)\n .add(renderer.defs);\n gradientObject.radAttr = radAttr;\n // The gradient needs to keep a list of stops to be able to\n // destroy them\n gradientObject.stops = [];\n stops.forEach(function (stop) {\n var stopObject;\n if (stop[1].indexOf('rgba') === 0) {\n colorObject = H.color(stop[1]);\n stopColor = colorObject.get('rgb');\n stopOpacity = colorObject.get('a');\n }\n else {\n stopColor = stop[1];\n stopOpacity = 1;\n }\n stopObject = renderer.createElement('stop').attr({\n offset: stop[0],\n 'stop-color': stopColor,\n 'stop-opacity': stopOpacity\n }).add(gradientObject);\n // Add the stop element to the gradient\n gradientObject.stops.push(stopObject);\n });\n }\n // Set the reference to the gradient object\n value = 'url(' + renderer.url + '#' + id + ')';\n elem.setAttribute(prop, value);\n elem.gradient = key;\n // Allow the color to be concatenated into tooltips formatters\n // etc. (#2995)\n color.toString = function () {\n return value;\n };\n }\n });\n },\n /**\n * Apply a text outline through a custom CSS property, by copying the text\n * element and apply stroke to the copy. Used internally. Contrast checks at\n * [example](https://jsfiddle.net/highcharts/43soe9m1/2/).\n *\n * @example\n * // Specific color\n * text.css({\n * textOutline: '1px black'\n * });\n * // Automatic contrast\n * text.css({\n * color: '#000000', // black text\n * textOutline: '1px contrast' // => white outline\n * });\n *\n * @private\n * @function Highcharts.SVGElement#applyTextOutline\n *\n * @param {string} textOutline\n * A custom CSS `text-outline` setting, defined by `width color`.\n *\n * @return {void}\n */\n applyTextOutline: function (textOutline) {\n var elem = this.element, tspans, hasContrast = textOutline.indexOf('contrast') !== -1, styles = {}, color, strokeWidth, firstRealChild;\n // When the text shadow is set to contrast, use dark stroke for light\n // text and vice versa.\n if (hasContrast) {\n styles.textOutline = textOutline = textOutline.replace(/contrast/g, this.renderer.getContrast(elem.style.fill));\n }\n // Extract the stroke width and color\n textOutline = textOutline.split(' ');\n color = textOutline[textOutline.length - 1];\n strokeWidth = textOutline[0];\n if (strokeWidth && strokeWidth !== 'none' && H.svg) {\n this.fakeTS = true; // Fake text shadow\n tspans = [].slice.call(elem.getElementsByTagName('tspan'));\n // In order to get the right y position of the clone,\n // copy over the y setter\n this.ySetter = this.xSetter;\n // Since the stroke is applied on center of the actual outline, we\n // need to double it to get the correct stroke-width outside the\n // glyphs.\n strokeWidth = strokeWidth.replace(/(^[\\d\\.]+)(.*?)$/g, function (match, digit, unit) {\n return (2 * digit) + unit;\n });\n // Remove shadows from previous runs.\n this.removeTextOutline(tspans);\n // For each of the tspans, create a stroked copy behind it.\n firstRealChild = elem.firstChild;\n tspans.forEach(function (tspan, y) {\n var clone;\n // Let the first line start at the correct X position\n if (y === 0) {\n tspan.setAttribute('x', elem.getAttribute('x'));\n y = elem.getAttribute('y');\n tspan.setAttribute('y', y || 0);\n if (y === null) {\n elem.setAttribute('y', 0);\n }\n }\n // Create the clone and apply outline properties\n clone = tspan.cloneNode(1);\n attr(clone, {\n 'class': 'highcharts-text-outline',\n fill: color,\n stroke: color,\n 'stroke-width': strokeWidth,\n 'stroke-linejoin': 'round'\n });\n elem.insertBefore(clone, firstRealChild);\n });\n }\n },\n /**\n * @private\n * @param {Array} tspans - text spans\n * @return {void}\n */\n removeTextOutline: function (tspans) {\n // Iterate from the end to\n // support removing items inside the cycle (#6472).\n var i = tspans.length, tspan;\n while (i--) {\n tspan = tspans[i];\n if (tspan.getAttribute('class') === 'highcharts-text-outline') {\n // Remove then erase\n erase(tspans, this.element.removeChild(tspan));\n }\n }\n },\n // Custom attributes used for symbols, these should be filtered out when\n // setting SVGElement attributes (#9375).\n symbolCustomAttribs: [\n 'x',\n 'y',\n 'width',\n 'height',\n 'r',\n 'start',\n 'end',\n 'innerR',\n 'anchorX',\n 'anchorY',\n 'rounded'\n ],\n /**\n * @function Highcharts.SVGElement#attr\n *\n * @param {string} hash\n *\n * @return {Highcharts.SVGElement}\n */ /**\n * Apply native and custom attributes to the SVG elements.\n *\n * In order to set the rotation center for rotation, set x and y to 0 and\n * use `translateX` and `translateY` attributes to position the element\n * instead.\n *\n * Attributes frequently used in Highcharts are `fill`, `stroke`,\n * `stroke-width`.\n *\n * @sample highcharts/members/renderer-rect/\n * Setting some attributes\n *\n * @example\n * // Set multiple attributes\n * element.attr({\n * stroke: 'red',\n * fill: 'blue',\n * x: 10,\n * y: 10\n * });\n *\n * // Set a single attribute\n * element.attr('stroke', 'red');\n *\n * // Get an attribute\n * element.attr('stroke'); // => 'red'\n *\n * @function Highcharts.SVGElement#attr\n *\n * @param {string|Highcharts.SVGAttributes} [hash]\n * The native and custom SVG attributes.\n *\n * @param {string} [val]\n * If the type of the first argument is `string`, the second can be a\n * value, which will serve as a single attribute setter. If the first\n * argument is a string and the second is undefined, the function\n * serves as a getter and the current value of the property is\n * returned.\n *\n * @param {Function} [complete]\n * A callback function to execute after setting the attributes. This\n * makes the function compliant and interchangeable with the\n * {@link SVGElement#animate} function.\n *\n * @param {boolean} [continueAnimation=true]\n * Used internally when `.attr` is called as part of an animation\n * step. Otherwise, calling `.attr` for an attribute will stop\n * animation for that attribute.\n *\n * @return {Highcharts.SVGElement}\n * If used as a setter, it returns the current\n * {@link Highcharts.SVGElement} so the calls can be chained. If\n * used as a getter, the current value of the attribute is returned.\n */\n attr: function (hash, val, complete, continueAnimation) {\n var key, element = this.element, hasSetSymbolSize, ret = this, skipAttr, setter, symbolCustomAttribs = this.symbolCustomAttribs;\n // single key-value pair\n if (typeof hash === 'string' && val !== undefined) {\n key = hash;\n hash = {};\n hash[key] = val;\n }\n // used as a getter: first argument is a string, second is undefined\n if (typeof hash === 'string') {\n ret = (this[hash + 'Getter'] || this._defaultGetter).call(this, hash, element);\n // setter\n }\n else {\n objectEach(hash, function eachAttribute(val, key) {\n skipAttr = false;\n // Unless .attr is from the animator update, stop current\n // running animation of this property\n if (!continueAnimation) {\n stop(this, key);\n }\n // Special handling of symbol attributes\n if (this.symbolName &&\n H.inArray(key, symbolCustomAttribs) !== -1) {\n if (!hasSetSymbolSize) {\n this.symbolAttr(hash);\n hasSetSymbolSize = true;\n }\n skipAttr = true;\n }\n if (this.rotation && (key === 'x' || key === 'y')) {\n this.doTransform = true;\n }\n if (!skipAttr) {\n setter = this[key + 'Setter'] || this._defaultSetter;\n setter.call(this, val, key, element);\n // Let the shadow follow the main element\n if (!this.styledMode &&\n this.shadows &&\n /^(width|height|visibility|x|y|d|transform|cx|cy|r)$/\n .test(key)) {\n this.updateShadows(key, val, setter);\n }\n }\n }, this);\n this.afterSetters();\n }\n // In accordance with animate, run a complete callback\n if (complete) {\n complete.call(this);\n }\n return ret;\n },\n /**\n * This method is executed in the end of `attr()`, after setting all\n * attributes in the hash. In can be used to efficiently consolidate\n * multiple attributes in one SVG property -- e.g., translate, rotate and\n * scale are merged in one \"transform\" attribute in the SVG node.\n *\n * @private\n * @function Highcharts.SVGElement#afterSetters\n *\n * @return {void}\n */\n afterSetters: function () {\n // Update transform. Do this outside the loop to prevent redundant\n // updating for batch setting of attributes.\n if (this.doTransform) {\n this.updateTransform();\n this.doTransform = false;\n }\n },\n /**\n * Update the shadow elements with new attributes.\n *\n * @private\n * @function Highcharts.SVGElement#updateShadows\n *\n * @param {string} key\n * The attribute name.\n *\n * @param {number} value\n * The value of the attribute.\n *\n * @param {Function} setter\n * The setter function, inherited from the parent wrapper.\n *\n * @return {void}\n */\n updateShadows: function (key, value, setter) {\n var shadows = this.shadows, i = shadows.length;\n while (i--) {\n setter.call(shadows[i], key === 'height' ?\n Math.max(value - (shadows[i].cutHeight || 0), 0) :\n key === 'd' ? this.d : value, key, shadows[i]);\n }\n },\n /**\n * Add a class name to an element.\n *\n * @function Highcharts.SVGElement#addClass\n *\n * @param {string} className\n * The new class name to add.\n *\n * @param {boolean} [replace=false]\n * When true, the existing class name(s) will be overwritten with\n * the new one. When false, the new one is added.\n *\n * @return {Highcharts.SVGElement}\n * Return the SVG element for chainability.\n */\n addClass: function (className, replace) {\n var currentClassName = replace ? '' : (this.attr('class') || '');\n // Trim the string and remove duplicates\n className = (className || '')\n .split(/ /g)\n .reduce(function (newClassName, name) {\n if (currentClassName.indexOf(name) === -1) {\n newClassName.push(name);\n }\n return newClassName;\n }, (currentClassName ?\n [currentClassName] :\n []))\n .join(' ');\n if (className !== currentClassName) {\n this.attr('class', className);\n }\n return this;\n },\n /**\n * Check if an element has the given class name.\n *\n * @function Highcharts.SVGElement#hasClass\n *\n * @param {string} className\n * The class name to check for.\n *\n * @return {boolean}\n * Whether the class name is found.\n */\n hasClass: function (className) {\n return (this.attr('class') || '')\n .split(' ')\n .indexOf(className) !== -1;\n },\n /**\n * Remove a class name from the element.\n *\n * @function Highcharts.SVGElement#removeClass\n *\n * @param {string|RegExp} className\n * The class name to remove.\n *\n * @return {Highcharts.SVGElement} Returns the SVG element for chainability.\n */\n removeClass: function (className) {\n return this.attr('class', (this.attr('class') || '').replace(isString(className) ?\n new RegExp(\" ?\" + className + \" ?\") : // #12064\n className, ''));\n },\n /**\n * If one of the symbol size affecting parameters are changed,\n * check all the others only once for each call to an element's\n * .attr() method\n *\n * @private\n * @function Highcharts.SVGElement#symbolAttr\n *\n * @param {Highcharts.SVGAttributes} hash\n * The attributes to set.\n *\n * @return {void}\n */\n symbolAttr: function (hash) {\n var wrapper = this;\n [\n 'x',\n 'y',\n 'r',\n 'start',\n 'end',\n 'width',\n 'height',\n 'innerR',\n 'anchorX',\n 'anchorY',\n 'clockwise'\n ].forEach(function (key) {\n wrapper[key] = pick(hash[key], wrapper[key]);\n });\n wrapper.attr({\n d: wrapper.renderer.symbols[wrapper.symbolName](wrapper.x, wrapper.y, wrapper.width, wrapper.height, wrapper)\n });\n },\n /**\n * Apply a clipping rectangle to this element.\n *\n * @function Highcharts.SVGElement#clip\n *\n * @param {Highcharts.ClipRectElement} [clipRect]\n * The clipping rectangle. If skipped, the current clip is removed.\n *\n * @return {Highcharts.SVGElement}\n * Returns the SVG element to allow chaining.\n */\n clip: function (clipRect) {\n return this.attr('clip-path', clipRect ?\n 'url(' + this.renderer.url + '#' + clipRect.id + ')' :\n 'none');\n },\n /**\n * Calculate the coordinates needed for drawing a rectangle crisply and\n * return the calculated attributes.\n *\n * @function Highcharts.SVGElement#crisp\n *\n * @param {Highcharts.RectangleObject} rect\n * Rectangle to crisp.\n *\n * @param {number} [strokeWidth]\n * The stroke width to consider when computing crisp positioning. It\n * can also be set directly on the rect parameter.\n *\n * @return {Highcharts.RectangleObject}\n * The modified rectangle arguments.\n */\n crisp: function (rect, strokeWidth) {\n var wrapper = this, normalizer;\n strokeWidth = strokeWidth || rect.strokeWidth || 0;\n // Math.round because strokeWidth can sometimes have roundoff errors\n normalizer = Math.round(strokeWidth) % 2 / 2;\n // normalize for crisp edges\n rect.x = Math.floor(rect.x || wrapper.x || 0) + normalizer;\n rect.y = Math.floor(rect.y || wrapper.y || 0) + normalizer;\n rect.width = Math.floor((rect.width || wrapper.width || 0) - 2 * normalizer);\n rect.height = Math.floor((rect.height || wrapper.height || 0) - 2 * normalizer);\n if (defined(rect.strokeWidth)) {\n rect.strokeWidth = strokeWidth;\n }\n return rect;\n },\n /**\n * Set styles for the element. In addition to CSS styles supported by\n * native SVG and HTML elements, there are also some custom made for\n * Highcharts, like `width`, `ellipsis` and `textOverflow` for SVG text\n * elements.\n *\n * @sample highcharts/members/renderer-text-on-chart/\n * Styled text\n *\n * @function Highcharts.SVGElement#css\n *\n * @param {Highcharts.CSSObject} styles\n * The new CSS styles.\n *\n * @return {Highcharts.SVGElement}\n * Return the SVG element for chaining.\n */\n css: function (styles) {\n var oldStyles = this.styles, newStyles = {}, elem = this.element, textWidth, serializedCss = '', hyphenate, hasNew = !oldStyles, \n // These CSS properties are interpreted internally by the SVG\n // renderer, but are not supported by SVG and should not be added to\n // the DOM. In styled mode, no CSS should find its way to the DOM\n // whatsoever (#6173, #6474).\n svgPseudoProps = ['textOutline', 'textOverflow', 'width'];\n // convert legacy\n if (styles && styles.color) {\n styles.fill = styles.color;\n }\n // Filter out existing styles to increase performance (#2640)\n if (oldStyles) {\n objectEach(styles, function (style, n) {\n if (style !== oldStyles[n]) {\n newStyles[n] = style;\n hasNew = true;\n }\n });\n }\n if (hasNew) {\n // Merge the new styles with the old ones\n if (oldStyles) {\n styles = extend(oldStyles, newStyles);\n }\n // Get the text width from style\n if (styles) {\n // Previously set, unset it (#8234)\n if (styles.width === null || styles.width === 'auto') {\n delete this.textWidth;\n // Apply new\n }\n else if (elem.nodeName.toLowerCase() === 'text' &&\n styles.width) {\n textWidth = this.textWidth = pInt(styles.width);\n }\n }\n // store object\n this.styles = styles;\n if (textWidth && (!svg && this.renderer.forExport)) {\n delete styles.width;\n }\n // Serialize and set style attribute\n if (elem.namespaceURI === this.SVG_NS) { // #7633\n hyphenate = function (a, b) {\n return '-' + b.toLowerCase();\n };\n objectEach(styles, function (style, n) {\n if (svgPseudoProps.indexOf(n) === -1) {\n serializedCss +=\n n.replace(/([A-Z])/g, hyphenate) + ':' +\n style + ';';\n }\n });\n if (serializedCss) {\n attr(elem, 'style', serializedCss); // #1881\n }\n }\n else {\n css(elem, styles);\n }\n if (this.added) {\n // Rebuild text after added. Cache mechanisms in the buildText\n // will prevent building if there are no significant changes.\n if (this.element.nodeName === 'text') {\n this.renderer.buildText(this);\n }\n // Apply text outline after added\n if (styles && styles.textOutline) {\n this.applyTextOutline(styles.textOutline);\n }\n }\n }\n return this;\n },\n /**\n * Get the computed style. Only in styled mode.\n *\n * @example\n * chart.series[0].points[0].graphic.getStyle('stroke-width'); // => '1px'\n *\n * @function Highcharts.SVGElement#getStyle\n *\n * @param {string} prop\n * The property name to check for.\n *\n * @return {string}\n * The current computed value.\n */\n getStyle: function (prop) {\n return win.getComputedStyle(this.element || this, '')\n .getPropertyValue(prop);\n },\n /**\n * Get the computed stroke width in pixel values. This is used extensively\n * when drawing shapes to ensure the shapes are rendered crisp and\n * positioned correctly relative to each other. Using\n * `shape-rendering: crispEdges` leaves us less control over positioning,\n * for example when we want to stack columns next to each other, or position\n * things pixel-perfectly within the plot box.\n *\n * The common pattern when placing a shape is:\n * - Create the SVGElement and add it to the DOM. In styled mode, it will\n * now receive a stroke width from the style sheet. In classic mode we\n * will add the `stroke-width` attribute.\n * - Read the computed `elem.strokeWidth()`.\n * - Place it based on the stroke width.\n *\n * @function Highcharts.SVGElement#strokeWidth\n *\n * @return {number}\n * The stroke width in pixels. Even if the given stroke widtch (in\n * CSS or by attributes) is based on `em` or other units, the pixel\n * size is returned.\n */\n strokeWidth: function () {\n // In non-styled mode, read the stroke width as set by .attr\n if (!this.renderer.styledMode) {\n return this['stroke-width'] || 0;\n }\n // In styled mode, read computed stroke width\n var val = this.getStyle('stroke-width'), ret, dummy;\n // Read pixel values directly\n if (val.indexOf('px') === val.length - 2) {\n ret = pInt(val);\n // Other values like em, pt etc need to be measured\n }\n else {\n dummy = doc.createElementNS(SVG_NS, 'rect');\n attr(dummy, {\n width: val,\n 'stroke-width': 0\n });\n this.element.parentNode.appendChild(dummy);\n ret = dummy.getBBox().width;\n dummy.parentNode.removeChild(dummy);\n }\n return ret;\n },\n /**\n * Add an event listener. This is a simple setter that replaces all other\n * events of the same type, opposed to the {@link Highcharts#addEvent}\n * function.\n *\n * @sample highcharts/members/element-on/\n * A clickable rectangle\n *\n * @function Highcharts.SVGElement#on\n *\n * @param {string} eventType\n * The event type. If the type is `click`, Highcharts will internally\n * translate it to a `touchstart` event on touch devices, to prevent\n * the browser from waiting for a click event from firing.\n *\n * @param {Function} handler\n * The handler callback.\n *\n * @return {Highcharts.SVGElement}\n * The SVGElement for chaining.\n */\n on: function (eventType, handler) {\n var svgElement = this, element = svgElement.element;\n // touch\n if (hasTouch && eventType === 'click') {\n element.ontouchstart = function (e) {\n svgElement.touchEventFired = Date.now(); // #2269\n e.preventDefault();\n handler.call(element, e);\n };\n element.onclick = function (e) {\n if (win.navigator.userAgent.indexOf('Android') === -1 ||\n Date.now() - (svgElement.touchEventFired || 0) > 1100) {\n handler.call(element, e);\n }\n };\n }\n else {\n // simplest possible event model for internal use\n element['on' + eventType] = handler;\n }\n return this;\n },\n /**\n * Set the coordinates needed to draw a consistent radial gradient across\n * a shape regardless of positioning inside the chart. Used on pie slices\n * to make all the slices have the same radial reference point.\n *\n * @function Highcharts.SVGElement#setRadialReference\n *\n * @param {Array} coordinates\n * The center reference. The format is `[centerX, centerY, diameter]`\n * in pixels.\n *\n * @return {Highcharts.SVGElement}\n * Returns the SVGElement for chaining.\n */\n setRadialReference: function (coordinates) {\n var existingGradient = this.renderer.gradients[this.element.gradient];\n this.element.radialReference = coordinates;\n // On redrawing objects with an existing gradient, the gradient needs\n // to be repositioned (#3801)\n if (existingGradient && existingGradient.radAttr) {\n existingGradient.animate(this.renderer.getRadialAttr(coordinates, existingGradient.radAttr));\n }\n return this;\n },\n /**\n * Move an object and its children by x and y values.\n *\n * @function Highcharts.SVGElement#translate\n *\n * @param {number} x\n * The x value.\n *\n * @param {number} y\n * The y value.\n *\n * @return {Highcharts.SVGElement}\n */\n translate: function (x, y) {\n return this.attr({\n translateX: x,\n translateY: y\n });\n },\n /**\n * Invert a group, rotate and flip. This is used internally on inverted\n * charts, where the points and graphs are drawn as if not inverted, then\n * the series group elements are inverted.\n *\n * @function Highcharts.SVGElement#invert\n *\n * @param {boolean} inverted\n * Whether to invert or not. An inverted shape can be un-inverted by\n * setting it to false.\n *\n * @return {Highcharts.SVGElement}\n * Return the SVGElement for chaining.\n */\n invert: function (inverted) {\n var wrapper = this;\n wrapper.inverted = inverted;\n wrapper.updateTransform();\n return wrapper;\n },\n /**\n * Update the transform attribute based on internal properties. Deals with\n * the custom `translateX`, `translateY`, `rotation`, `scaleX` and `scaleY`\n * attributes and updates the SVG `transform` attribute.\n *\n * @private\n * @function Highcharts.SVGElement#updateTransform\n *\n * @return {void}\n */\n updateTransform: function () {\n var wrapper = this, translateX = wrapper.translateX || 0, translateY = wrapper.translateY || 0, scaleX = wrapper.scaleX, scaleY = wrapper.scaleY, inverted = wrapper.inverted, rotation = wrapper.rotation, matrix = wrapper.matrix, element = wrapper.element, transform;\n // Flipping affects translate as adjustment for flipping around the\n // group's axis\n if (inverted) {\n translateX += wrapper.width;\n translateY += wrapper.height;\n }\n // Apply translate. Nearly all transformed elements have translation,\n // so instead of checking for translate = 0, do it always (#1767,\n // #1846).\n transform = ['translate(' + translateX + ',' + translateY + ')'];\n // apply matrix\n if (defined(matrix)) {\n transform.push('matrix(' + matrix.join(',') + ')');\n }\n // apply rotation\n if (inverted) {\n transform.push('rotate(90) scale(-1,1)');\n }\n else if (rotation) { // text rotation\n transform.push('rotate(' + rotation + ' ' +\n pick(this.rotationOriginX, element.getAttribute('x'), 0) +\n ' ' +\n pick(this.rotationOriginY, element.getAttribute('y') || 0) + ')');\n }\n // apply scale\n if (defined(scaleX) || defined(scaleY)) {\n transform.push('scale(' + pick(scaleX, 1) + ' ' + pick(scaleY, 1) + ')');\n }\n if (transform.length) {\n element.setAttribute('transform', transform.join(' '));\n }\n },\n /**\n * Bring the element to the front. Alternatively, a new zIndex can be set.\n *\n * @sample highcharts/members/element-tofront/\n * Click an element to bring it to front\n *\n * @function Highcharts.SVGElement#toFront\n *\n * @return {Highcharts.SVGElement}\n * Returns the SVGElement for chaining.\n */\n toFront: function () {\n var element = this.element;\n element.parentNode.appendChild(element);\n return this;\n },\n /**\n * Align the element relative to the chart or another box.\n *\n * @function Highcharts.SVGElement#align\n *\n * @param {Highcharts.AlignObject} [alignOptions]\n * The alignment options. The function can be called without this\n * parameter in order to re-align an element after the box has been\n * updated.\n *\n * @param {boolean} [alignByTranslate]\n * Align element by translation.\n *\n * @param {string|Highcharts.BBoxObject} [box]\n * The box to align to, needs a width and height. When the box is a\n * string, it refers to an object in the Renderer. For example, when\n * box is `spacingBox`, it refers to `Renderer.spacingBox` which\n * holds `width`, `height`, `x` and `y` properties.\n *\n * @return {Highcharts.SVGElement} Returns the SVGElement for chaining.\n */\n align: function (alignOptions, alignByTranslate, box) {\n var align, vAlign, x, y, attribs = {}, alignTo, renderer = this.renderer, alignedObjects = renderer.alignedObjects, alignFactor, vAlignFactor;\n // First call on instanciate\n if (alignOptions) {\n this.alignOptions = alignOptions;\n this.alignByTranslate = alignByTranslate;\n if (!box || isString(box)) {\n this.alignTo = alignTo = box || 'renderer';\n // prevent duplicates, like legendGroup after resize\n erase(alignedObjects, this);\n alignedObjects.push(this);\n box = null; // reassign it below\n }\n // When called on resize, no arguments are supplied\n }\n else {\n alignOptions = this.alignOptions;\n alignByTranslate = this.alignByTranslate;\n alignTo = this.alignTo;\n }\n box = pick(box, renderer[alignTo], renderer);\n // Assign variables\n align = alignOptions.align;\n vAlign = alignOptions.verticalAlign;\n // default: left align\n x = (box.x || 0) + (alignOptions.x || 0);\n // default: top align\n y = (box.y || 0) + (alignOptions.y || 0);\n // Align\n if (align === 'right') {\n alignFactor = 1;\n }\n else if (align === 'center') {\n alignFactor = 2;\n }\n if (alignFactor) {\n x += (box.width - (alignOptions.width || 0)) /\n alignFactor;\n }\n attribs[alignByTranslate ? 'translateX' : 'x'] = Math.round(x);\n // Vertical align\n if (vAlign === 'bottom') {\n vAlignFactor = 1;\n }\n else if (vAlign === 'middle') {\n vAlignFactor = 2;\n }\n if (vAlignFactor) {\n y += (box.height - (alignOptions.height || 0)) /\n vAlignFactor;\n }\n attribs[alignByTranslate ? 'translateY' : 'y'] = Math.round(y);\n // Animate only if already placed\n this[this.placed ? 'animate' : 'attr'](attribs);\n this.placed = true;\n this.alignAttr = attribs;\n return this;\n },\n /**\n * Get the bounding box (width, height, x and y) for the element. Generally\n * used to get rendered text size. Since this is called a lot in charts,\n * the results are cached based on text properties, in order to save DOM\n * traffic. The returned bounding box includes the rotation, so for example\n * a single text line of rotation 90 will report a greater height, and a\n * width corresponding to the line-height.\n *\n * @sample highcharts/members/renderer-on-chart/\n * Draw a rectangle based on a text's bounding box\n *\n * @function Highcharts.SVGElement#getBBox\n *\n * @param {boolean} [reload]\n * Skip the cache and get the updated DOM bouding box.\n *\n * @param {number} [rot]\n * Override the element's rotation. This is internally used on axis\n * labels with a value of 0 to find out what the bounding box would\n * be have been if it were not rotated.\n *\n * @return {Highcharts.BBoxObject}\n * The bounding box with `x`, `y`, `width` and `height` properties.\n */\n getBBox: function (reload, rot) {\n var wrapper = this, bBox, // = wrapper.bBox,\n renderer = wrapper.renderer, width, height, element = wrapper.element, styles = wrapper.styles, fontSize, textStr = wrapper.textStr, toggleTextShadowShim, cache = renderer.cache, cacheKeys = renderer.cacheKeys, isSVG = element.namespaceURI === wrapper.SVG_NS, cacheKey;\n var rotation = pick(rot, wrapper.rotation, 0);\n fontSize = renderer.styledMode ? (element &&\n SVGElement.prototype.getStyle.call(element, 'font-size')) : (styles && styles.fontSize);\n // Avoid undefined and null (#7316)\n if (defined(textStr)) {\n cacheKey = textStr.toString();\n // Since numbers are monospaced, and numerical labels appear a lot\n // in a chart, we assume that a label of n characters has the same\n // bounding box as others of the same length. Unless there is inner\n // HTML in the label. In that case, leave the numbers as is (#5899).\n if (cacheKey.indexOf('<') === -1) {\n cacheKey = cacheKey.replace(/[0-9]/g, '0');\n }\n // Properties that affect bounding box\n cacheKey += [\n '',\n rotation,\n fontSize,\n wrapper.textWidth,\n styles && styles.textOverflow // #5968\n ].join(',');\n }\n if (cacheKey && !reload) {\n bBox = cache[cacheKey];\n }\n // No cache found\n if (!bBox) {\n // SVG elements\n if (isSVG || renderer.forExport) {\n try { // Fails in Firefox if the container has display: none.\n // When the text shadow shim is used, we need to hide the\n // fake shadows to get the correct bounding box (#3872)\n toggleTextShadowShim = this.fakeTS && function (display) {\n [].forEach.call(element.querySelectorAll('.highcharts-text-outline'), function (tspan) {\n tspan.style.display = display;\n });\n };\n // Workaround for #3842, Firefox reporting wrong bounding\n // box for shadows\n if (toggleTextShadowShim) {\n toggleTextShadowShim('none');\n }\n bBox = element.getBBox ?\n // SVG: use extend because IE9 is not allowed to change\n // width and height in case of rotation (below)\n extend({}, element.getBBox()) : {\n // Legacy IE in export mode\n width: element.offsetWidth,\n height: element.offsetHeight\n };\n // #3842\n if (toggleTextShadowShim) {\n toggleTextShadowShim('');\n }\n }\n catch (e) {\n '';\n }\n // If the bBox is not set, the try-catch block above failed. The\n // other condition is for Opera that returns a width of\n // -Infinity on hidden elements.\n if (!bBox || bBox.width < 0) {\n bBox = { width: 0, height: 0 };\n }\n // VML Renderer or useHTML within SVG\n }\n else {\n bBox = wrapper.htmlGetBBox();\n }\n // True SVG elements as well as HTML elements in modern browsers\n // using the .useHTML option need to compensated for rotation\n if (renderer.isSVG) {\n width = bBox.width;\n height = bBox.height;\n // Workaround for wrong bounding box in IE, Edge and Chrome on\n // Windows. With Highcharts' default font, IE and Edge report\n // a box height of 16.899 and Chrome rounds it to 17. If this\n // stands uncorrected, it results in more padding added below\n // the text than above when adding a label border or background.\n // Also vertical positioning is affected.\n // https://jsfiddle.net/highcharts/em37nvuj/\n // (#1101, #1505, #1669, #2568, #6213).\n if (isSVG) {\n bBox.height = height = ({\n '11px,17': 14,\n '13px,20': 16\n }[styles &&\n styles.fontSize + ',' + Math.round(height)] ||\n height);\n }\n // Adjust for rotated text\n if (rotation) {\n var rad = rotation * deg2rad;\n bBox.width = Math.abs(height * Math.sin(rad)) +\n Math.abs(width * Math.cos(rad));\n bBox.height = Math.abs(height * Math.cos(rad)) +\n Math.abs(width * Math.sin(rad));\n }\n }\n // Cache it. When loading a chart in a hidden iframe in Firefox and\n // IE/Edge, the bounding box height is 0, so don't cache it (#5620).\n if (cacheKey && bBox.height > 0) {\n // Rotate (#4681)\n while (cacheKeys.length > 250) {\n delete cache[cacheKeys.shift()];\n }\n if (!cache[cacheKey]) {\n cacheKeys.push(cacheKey);\n }\n cache[cacheKey] = bBox;\n }\n }\n return bBox;\n },\n /**\n * Show the element after it has been hidden.\n *\n * @function Highcharts.SVGElement#show\n *\n * @param {boolean} [inherit=false]\n * Set the visibility attribute to `inherit` rather than `visible`.\n * The difference is that an element with `visibility=\"visible\"`\n * will be visible even if the parent is hidden.\n *\n * @return {Highcharts.SVGElement}\n * Returns the SVGElement for chaining.\n */\n show: function (inherit) {\n return this.attr({ visibility: inherit ? 'inherit' : 'visible' });\n },\n /**\n * Hide the element, similar to setting the `visibility` attribute to\n * `hidden`.\n *\n * @function Highcharts.SVGElement#hide\n *\n * @param {boolean} [hideByTranslation=false]\n * The flag to determine if element should be hidden by moving out\n * of the viewport. Used for example for dataLabels.\n *\n * @return {Highcharts.SVGElement}\n * Returns the SVGElement for chaining.\n */\n hide: function (hideByTranslation) {\n if (hideByTranslation) {\n this.attr({ y: -9999 });\n }\n else {\n this.attr({ visibility: 'hidden' });\n }\n return this;\n },\n /**\n * Fade out an element by animating its opacity down to 0, and hide it on\n * complete. Used internally for the tooltip.\n *\n * @function Highcharts.SVGElement#fadeOut\n *\n * @param {number} [duration=150]\n * The fade duration in milliseconds.\n *\n * @return {void}\n */\n fadeOut: function (duration) {\n var elemWrapper = this;\n elemWrapper.animate({\n opacity: 0\n }, {\n duration: duration || 150,\n complete: function () {\n // #3088, assuming we're only using this for tooltips\n elemWrapper.attr({ y: -9999 });\n }\n });\n },\n /**\n * Add the element to the DOM. All elements must be added this way.\n *\n * @sample highcharts/members/renderer-g\n * Elements added to a group\n *\n * @function Highcharts.SVGElement#add\n *\n * @param {Highcharts.SVGElement} [parent]\n * The parent item to add it to. If undefined, the element is added\n * to the {@link Highcharts.SVGRenderer.box}.\n *\n * @return {Highcharts.SVGElement}\n * Returns the SVGElement for chaining.\n */\n add: function (parent) {\n var renderer = this.renderer, element = this.element, inserted;\n if (parent) {\n this.parentGroup = parent;\n }\n // mark as inverted\n this.parentInverted = parent && parent.inverted;\n // build formatted text\n if (this.textStr !== undefined) {\n renderer.buildText(this);\n }\n // Mark as added\n this.added = true;\n // If we're adding to renderer root, or other elements in the group\n // have a z index, we need to handle it\n if (!parent || parent.handleZ || this.zIndex) {\n inserted = this.zIndexSetter();\n }\n // If zIndex is not handled, append at the end\n if (!inserted) {\n (parent ?\n parent.element :\n renderer.box).appendChild(element);\n }\n // fire an event for internal hooks\n if (this.onAdd) {\n this.onAdd();\n }\n return this;\n },\n /**\n * Removes an element from the DOM.\n *\n * @private\n * @function Highcharts.SVGElement#safeRemoveChild\n *\n * @param {Highcharts.SVGDOMElement|Highcharts.HTMLDOMElement} element\n * The DOM node to remove.\n *\n * @return {void}\n */\n safeRemoveChild: function (element) {\n var parentNode = element.parentNode;\n if (parentNode) {\n parentNode.removeChild(element);\n }\n },\n /**\n * Destroy the element and element wrapper and clear up the DOM and event\n * hooks.\n *\n * @function Highcharts.SVGElement#destroy\n *\n * @return {undefined}\n */\n destroy: function () {\n var wrapper = this, element = wrapper.element || {}, renderer = wrapper.renderer, parentToClean = (renderer.isSVG &&\n element.nodeName === 'SPAN' &&\n wrapper.parentGroup), grandParent, ownerSVGElement = element.ownerSVGElement, i, clipPath = wrapper.clipPath;\n // remove events\n element.onclick = element.onmouseout = element.onmouseover =\n element.onmousemove = element.point = null;\n stop(wrapper); // stop running animations\n if (clipPath && ownerSVGElement) {\n // Look for existing references to this clipPath and remove them\n // before destroying the element (#6196).\n // The upper case version is for Edge\n [].forEach.call(ownerSVGElement.querySelectorAll('[clip-path],[CLIP-PATH]'), function (el) {\n var clipPathAttr = el.getAttribute('clip-path');\n if (clipPathAttr.indexOf(clipPath.element.id) > -1) {\n el.removeAttribute('clip-path');\n }\n });\n wrapper.clipPath = clipPath.destroy();\n }\n // Destroy stops in case this is a gradient object\n if (wrapper.stops) {\n for (i = 0; i < wrapper.stops.length; i++) {\n wrapper.stops[i] = wrapper.stops[i].destroy();\n }\n wrapper.stops = null;\n }\n // remove element\n wrapper.safeRemoveChild(element);\n if (!renderer.styledMode) {\n wrapper.destroyShadows();\n }\n // In case of useHTML, clean up empty containers emulating SVG groups\n // (#1960, #2393, #2697).\n while (parentToClean &&\n parentToClean.div &&\n parentToClean.div.childNodes.length === 0) {\n grandParent = parentToClean.parentGroup;\n wrapper.safeRemoveChild(parentToClean.div);\n delete parentToClean.div;\n parentToClean = grandParent;\n }\n // remove from alignObjects\n if (wrapper.alignTo) {\n erase(renderer.alignedObjects, wrapper);\n }\n objectEach(wrapper, function (val, key) {\n // Destroy child elements of a group\n if (wrapper[key] &&\n wrapper[key].parentGroup === wrapper &&\n wrapper[key].destroy) {\n wrapper[key].destroy();\n }\n // Delete all properties\n delete wrapper[key];\n });\n return undefined;\n },\n /**\n * Add a shadow to the element. Must be called after the element is added to\n * the DOM. In styled mode, this method is not used, instead use `defs` and\n * filters.\n *\n * @example\n * renderer.rect(10, 100, 100, 100)\n * .attr({ fill: 'red' })\n * .shadow(true);\n *\n * @function Highcharts.SVGElement#shadow\n *\n * @param {boolean|Highcharts.ShadowOptionsObject} [shadowOptions]\n * The shadow options. If `true`, the default options are applied. If\n * `false`, the current shadow will be removed.\n *\n * @param {Highcharts.SVGElement} [group]\n * The SVG group element where the shadows will be applied. The\n * default is to add it to the same parent as the current element.\n * Internally, this is ised for pie slices, where all the shadows are\n * added to an element behind all the slices.\n *\n * @param {boolean} [cutOff]\n * Used internally for column shadows.\n *\n * @return {Highcharts.SVGElement}\n * Returns the SVGElement for chaining.\n */\n shadow: function (shadowOptions, group, cutOff) {\n var shadows = [], i, shadow, element = this.element, strokeWidth, shadowWidth, shadowElementOpacity, \n // compensate for inverted plot area\n transform;\n if (!shadowOptions) {\n this.destroyShadows();\n }\n else if (!this.shadows) {\n shadowWidth = pick(shadowOptions.width, 3);\n shadowElementOpacity = (shadowOptions.opacity || 0.15) /\n shadowWidth;\n transform = this.parentInverted ?\n '(-1,-1)' :\n '(' + pick(shadowOptions.offsetX, 1) + ', ' +\n pick(shadowOptions.offsetY, 1) + ')';\n for (i = 1; i <= shadowWidth; i++) {\n shadow = element.cloneNode(0);\n strokeWidth = (shadowWidth * 2) + 1 - (2 * i);\n attr(shadow, {\n stroke: (shadowOptions.color ||\n '#000000'),\n 'stroke-opacity': shadowElementOpacity * i,\n 'stroke-width': strokeWidth,\n transform: 'translate' + transform,\n fill: 'none'\n });\n shadow.setAttribute('class', (shadow.getAttribute('class') || '') + ' highcharts-shadow');\n if (cutOff) {\n attr(shadow, 'height', Math.max(attr(shadow, 'height') - strokeWidth, 0));\n shadow.cutHeight = strokeWidth;\n }\n if (group) {\n group.element.appendChild(shadow);\n }\n else if (element.parentNode) {\n element.parentNode.insertBefore(shadow, element);\n }\n shadows.push(shadow);\n }\n this.shadows = shadows;\n }\n return this;\n },\n /**\n * Destroy shadows on the element.\n *\n * @private\n * @function Highcharts.SVGElement#destroyShadows\n *\n * @return {void}\n */\n destroyShadows: function () {\n (this.shadows || []).forEach(function (shadow) {\n this.safeRemoveChild(shadow);\n }, this);\n this.shadows = undefined;\n },\n /**\n * @private\n * @function Highcharts.SVGElement#xGetter\n *\n * @param {string} key - key\n *\n * @return {number|string|null}\n */\n xGetter: function (key) {\n if (this.element.nodeName === 'circle') {\n if (key === 'x') {\n key = 'cx';\n }\n else if (key === 'y') {\n key = 'cy';\n }\n }\n return this._defaultGetter(key);\n },\n /**\n * Get the current value of an attribute or pseudo attribute,\n * used mainly for animation. Called internally from\n * the {@link Highcharts.SVGRenderer#attr} function.\n *\n * @private\n * @function Highcharts.SVGElement#_defaultGetter\n *\n * @param {string} key\n * Property key.\n *\n * @return {number|string}\n * Property value.\n */\n _defaultGetter: function (key) {\n var ret = pick(this[key + 'Value'], // align getter\n this[key], this.element ? this.element.getAttribute(key) : null, 0);\n if (/^[\\-0-9\\.]+$/.test(ret)) { // is numerical\n ret = parseFloat(ret);\n }\n return ret;\n },\n /**\n * @private\n * @function Highcharts.SVGElement#dSettter\n *\n * @param {number|string|Highcharts.SVGPathArray} value\n *\n * @param {string} key\n *\n * @param {Highcharts.SVGDOMElement} element\n *\n * @return {void}\n */\n dSetter: function (value, key, element) {\n if (value && value.join) { // join path\n value = value.join(' ');\n }\n if (/(NaN| {2}|^$)/.test(value)) {\n value = 'M 0 0';\n }\n // Check for cache before resetting. Resetting causes disturbance in the\n // DOM, causing flickering in some cases in Edge/IE (#6747). Also\n // possible performance gain.\n if (this[key] !== value) {\n element.setAttribute(key, value);\n this[key] = value;\n }\n },\n /**\n * @private\n * @function Highcharts.SVGElement#dashstyleSetter\n *\n * @param {string} value\n *\n * @return {void}\n */\n dashstyleSetter: function (value) {\n var i, strokeWidth = this['stroke-width'];\n // If \"inherit\", like maps in IE, assume 1 (#4981). With HC5 and the new\n // strokeWidth function, we should be able to use that instead.\n if (strokeWidth === 'inherit') {\n strokeWidth = 1;\n }\n value = value && value.toLowerCase();\n if (value) {\n value = value\n .replace('shortdashdotdot', '3,1,1,1,1,1,')\n .replace('shortdashdot', '3,1,1,1')\n .replace('shortdot', '1,1,')\n .replace('shortdash', '3,1,')\n .replace('longdash', '8,3,')\n .replace(/dot/g, '1,3,')\n .replace('dash', '4,3,')\n .replace(/,$/, '')\n .split(','); // ending comma\n i = value.length;\n while (i--) {\n value[i] = pInt(value[i]) * strokeWidth;\n }\n value = value.join(',')\n .replace(/NaN/g, 'none'); // #3226\n this.element.setAttribute('stroke-dasharray', value);\n }\n },\n /**\n * @private\n * @function Highcharts.SVGElement#alignSetter\n *\n * @param {\"start\"|\"middle\"|\"end\"} value\n *\n * @return {void}\n */\n alignSetter: function (value) {\n var convert = {\n left: 'start',\n center: 'middle',\n right: 'end'\n };\n if (convert[value]) {\n this.alignValue = value;\n this.element.setAttribute('text-anchor', convert[value]);\n }\n },\n /**\n * @private\n * @function Highcharts.SVGElement#opacitySetter\n *\n * @param {string} value\n *\n * @param {string} key\n *\n * @param {Highcharts.SVGDOMElement} element\n *\n * @return {void}\n */\n opacitySetter: function (value, key, element) {\n this[key] = value;\n element.setAttribute(key, value);\n },\n /**\n * @private\n * @function Highcharts.SVGElement#titleSetter\n *\n * @param {string} value\n *\n * @return {void}\n */\n titleSetter: function (value) {\n var titleNode = this.element.getElementsByTagName('title')[0];\n if (!titleNode) {\n titleNode = doc.createElementNS(this.SVG_NS, 'title');\n this.element.appendChild(titleNode);\n }\n // Remove text content if it exists\n if (titleNode.firstChild) {\n titleNode.removeChild(titleNode.firstChild);\n }\n titleNode.appendChild(doc.createTextNode(\n // #3276, #3895\n String(pick(value, ''))\n .replace(/<[^>]*>/g, '')\n .replace(/</g, '<')\n .replace(/>/g, '>')));\n },\n /**\n * @private\n * @function Highcharts.SVGElement#textSetter\n *\n * @param {string} value\n *\n * @return {void}\n */\n textSetter: function (value) {\n if (value !== this.textStr) {\n // Delete size caches when the text changes\n delete this.bBox;\n delete this.textPxLength;\n this.textStr = value;\n if (this.added) {\n this.renderer.buildText(this);\n }\n }\n },\n /**\n * @private\n * @function Highcharts.SVGElement#setTextPath\n * @param {Highcharts.SVGElement} path - path to follow\n * @param {Highcharts.DataLabelsTextPathOptionsObject} textPathOptions - options\n * @return {Highcharts.SVGElement}\n * Returns the SVGElement for chaining.\n */\n setTextPath: function (path, textPathOptions) {\n var elem = this.element, attribsMap = {\n textAnchor: 'text-anchor'\n }, attrs, adder = false, textPathElement, textPathId, textPathWrapper = this.textPathWrapper, tspans, firstTime = !textPathWrapper;\n // Defaults\n textPathOptions = merge(true, {\n enabled: true,\n attributes: {\n dy: -5,\n startOffset: '50%',\n textAnchor: 'middle'\n }\n }, textPathOptions);\n attrs = textPathOptions.attributes;\n if (path && textPathOptions && textPathOptions.enabled) {\n // label() has padding, text() doesn't\n if (this.options && this.options.padding) {\n attrs.dx = -this.options.padding;\n }\n if (!textPathWrapper) {\n // Create , defer the DOM adder\n this.textPathWrapper = textPathWrapper =\n this.renderer.createElement('textPath');\n adder = true;\n }\n textPathElement = textPathWrapper.element;\n // Set ID for the path\n textPathId = path.element.getAttribute('id');\n if (!textPathId) {\n path.element.setAttribute('id', textPathId = H.uniqueKey());\n }\n // Change DOM structure, by placing tag in \n if (firstTime) {\n tspans = elem.getElementsByTagName('tspan');\n // Now move all 's to the node\n while (tspans.length) {\n // Remove \"y\" from tspans, as Firefox translates them\n tspans[0].setAttribute('y', 0);\n textPathElement.appendChild(tspans[0]);\n }\n }\n // Add to the DOM\n if (adder) {\n textPathWrapper.add({\n // label() is placed in a group, text() is standalone\n element: this.text ? this.text.element : elem\n });\n }\n // Set basic options:\n // Use `setAttributeNS` because Safari needs this..\n textPathElement.setAttributeNS('http://www.w3.org/1999/xlink', 'href', this.renderer.url + '#' + textPathId);\n // Presentation attributes:\n // dx/dy options must by set on (parent),\n // the rest should be set on \n if (defined(attrs.dy)) {\n textPathElement.parentNode\n .setAttribute('dy', attrs.dy);\n delete attrs.dy;\n }\n if (defined(attrs.dx)) {\n textPathElement.parentNode\n .setAttribute('dx', attrs.dx);\n delete attrs.dx;\n }\n // Additional attributes\n objectEach(attrs, function (val, key) {\n textPathElement.setAttribute(attribsMap[key] || key, val);\n });\n // Remove translation, text that follows path does not need that\n elem.removeAttribute('transform');\n // Remove shadows and text outlines\n this.removeTextOutline.call(textPathWrapper, [].slice.call(elem.getElementsByTagName('tspan')));\n // Remove background and border for label(), see #10545\n // Alternatively, we can disable setting background rects in\n // series.drawDataLabels()\n if (this.text && !this.renderer.styledMode) {\n this.attr({\n fill: 'none',\n 'stroke-width': 0\n });\n }\n // Disable some functions\n this.updateTransform = noop;\n this.applyTextOutline = noop;\n }\n else if (textPathWrapper) {\n // Reset to prototype\n delete this.updateTransform;\n delete this.applyTextOutline;\n // Restore DOM structure:\n this.destroyTextPath(elem, path);\n }\n return this;\n },\n destroyTextPath: function (elem, path) {\n var tspans;\n // Remove ID's:\n path.element.setAttribute('id', '');\n // Move nodes to \n tspans = this.textPathWrapper.element.childNodes;\n // Now move all 's to the node\n while (tspans.length) {\n elem.firstChild.appendChild(tspans[0]);\n }\n // Remove \n elem.firstChild.removeChild(this.textPathWrapper.element);\n delete path.textPathWrapper;\n },\n /**\n * @private\n * @function Highcharts.SVGElement#fillSetter\n *\n * @param {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject} value\n *\n * @param {string} key\n *\n * @param {Highcharts.SVGDOMElement} element\n *\n * @return {void}\n */\n fillSetter: function (value, key, element) {\n if (typeof value === 'string') {\n element.setAttribute(key, value);\n }\n else if (value) {\n this.complexColor(value, key, element);\n }\n },\n /**\n * @private\n * @function Highcharts.SVGElement#visibilitySetter\n *\n * @param {string} value\n *\n * @param {string} key\n *\n * @param {Highcharts.SVGDOMElement} element\n *\n * @return {void}\n */\n visibilitySetter: function (value, key, element) {\n // IE9-11 doesn't handle visibilty:inherit well, so we remove the\n // attribute instead (#2881, #3909)\n if (value === 'inherit') {\n element.removeAttribute(key);\n }\n else if (this[key] !== value) { // #6747\n element.setAttribute(key, value);\n }\n this[key] = value;\n },\n /**\n * @private\n * @function Highcharts.SVGElement#zIndexSetter\n * @param {string} [value] - value\n * @param {string} [key] - key\n * @return {boolean}\n */\n zIndexSetter: function (value, key) {\n var renderer = this.renderer, parentGroup = this.parentGroup, parentWrapper = parentGroup || renderer, parentNode = parentWrapper.element || renderer.box, childNodes, otherElement, otherZIndex, element = this.element, inserted = false, undefinedOtherZIndex, svgParent = parentNode === renderer.box, run = this.added, i;\n if (defined(value)) {\n // So we can read it for other elements in the group\n element.setAttribute('data-z-index', value);\n value = +value;\n if (this[key] === value) {\n // Only update when needed (#3865)\n run = false;\n }\n }\n else if (defined(this[key])) {\n element.removeAttribute('data-z-index');\n }\n this[key] = value;\n // Insert according to this and other elements' zIndex. Before .add() is\n // called, nothing is done. Then on add, or by later calls to\n // zIndexSetter, the node is placed on the right place in the DOM.\n if (run) {\n value = this.zIndex;\n if (value && parentGroup) {\n parentGroup.handleZ = true;\n }\n childNodes = parentNode.childNodes;\n for (i = childNodes.length - 1; i >= 0 && !inserted; i--) {\n otherElement = childNodes[i];\n otherZIndex = otherElement.getAttribute('data-z-index');\n undefinedOtherZIndex = !defined(otherZIndex);\n if (otherElement !== element) {\n if (\n // Negative zIndex versus no zIndex:\n // On all levels except the highest. If the parent is\n // , then we don't want to put items before \n // or \n value < 0 &&\n undefinedOtherZIndex &&\n !svgParent &&\n !i) {\n parentNode.insertBefore(element, childNodes[i]);\n inserted = true;\n }\n else if (\n // Insert after the first element with a lower zIndex\n pInt(otherZIndex) <= value ||\n // If negative zIndex, add this before first undefined\n // zIndex element\n (undefinedOtherZIndex &&\n (!defined(value) || value >= 0))) {\n parentNode.insertBefore(element, childNodes[i + 1] || null // null for oldIE export\n );\n inserted = true;\n }\n }\n }\n if (!inserted) {\n parentNode.insertBefore(element, childNodes[svgParent ? 3 : 0] || null // null for oldIE\n );\n inserted = true;\n }\n }\n return inserted;\n },\n /**\n * @private\n * @function Highcharts.SVGElement#_defaultSetter\n *\n * @param {string} value\n *\n * @param {string} key\n *\n * @param {Highcharts.SVGDOMElement} element\n *\n * @return {void}\n */\n _defaultSetter: function (value, key, element) {\n element.setAttribute(key, value);\n }\n });\n // Some shared setters and getters\n SVGElement.prototype.yGetter =\n SVGElement.prototype.xGetter;\n SVGElement.prototype.translateXSetter =\n SVGElement.prototype.translateYSetter =\n SVGElement.prototype.rotationSetter =\n SVGElement.prototype.verticalAlignSetter =\n SVGElement.prototype.rotationOriginXSetter =\n SVGElement.prototype.rotationOriginYSetter =\n SVGElement.prototype.scaleXSetter =\n SVGElement.prototype.scaleYSetter =\n SVGElement.prototype.matrixSetter = function (value, key) {\n this[key] = value;\n this.doTransform = true;\n };\n // WebKit and Batik have problems with a stroke-width of zero, so in this case\n // we remove the stroke attribute altogether. #1270, #1369, #3065, #3072.\n SVGElement.prototype['stroke-widthSetter'] =\n /**\n * @private\n * @function Highcharts.SVGElement#strokeSetter\n *\n * @param {number|string} value\n *\n * @param {string} key\n *\n * @param {Highcharts.SVGDOMElement} element\n *\n * @return {void}\n */\n SVGElement.prototype.strokeSetter = function (value, key, element) {\n this[key] = value;\n // Only apply the stroke attribute if the stroke width is defined and larger\n // than 0\n if (this.stroke && this['stroke-width']) {\n // Use prototype as instance may be overridden\n SVGElement.prototype.fillSetter.call(this, this.stroke, 'stroke', element);\n element.setAttribute('stroke-width', this['stroke-width']);\n this.hasStroke = true;\n }\n else if (key === 'stroke-width' && value === 0 && this.hasStroke) {\n element.removeAttribute('stroke');\n this.hasStroke = false;\n }\n else if (this.renderer.styledMode && this['stroke-width']) {\n element.setAttribute('stroke-width', this['stroke-width']);\n this.hasStroke = true;\n }\n };\n /**\n * Allows direct access to the Highcharts rendering layer in order to draw\n * primitive shapes like circles, rectangles, paths or text directly on a chart,\n * or independent from any chart. The SVGRenderer represents a wrapper object\n * for SVG in modern browsers. Through the VMLRenderer, part of the `oldie.js`\n * module, it also brings vector graphics to IE <= 8.\n *\n * An existing chart's renderer can be accessed through {@link Chart.renderer}.\n * The renderer can also be used completely decoupled from a chart.\n *\n * @sample highcharts/members/renderer-on-chart\n * Annotating a chart programmatically.\n * @sample highcharts/members/renderer-basic\n * Independent SVG drawing.\n *\n * @example\n * // Use directly without a chart object.\n * var renderer = new Highcharts.Renderer(parentNode, 600, 400);\n *\n * @class\n * @name Highcharts.SVGRenderer\n *\n * @param {Highcharts.HTMLDOMElement} container\n * Where to put the SVG in the web page.\n *\n * @param {number} width\n * The width of the SVG.\n *\n * @param {number} height\n * The height of the SVG.\n *\n * @param {Highcharts.CSSObject} [style]\n * The box style, if not in styleMode\n *\n * @param {boolean} [forExport=false]\n * Whether the rendered content is intended for export.\n *\n * @param {boolean} [allowHTML=true]\n * Whether the renderer is allowed to include HTML text, which will be\n * projected on top of the SVG.\n *\n * @param {boolean} [styledMode=false]\n * Whether the renderer belongs to a chart that is in styled mode.\n * If it does, it will avoid setting presentational attributes in\n * some cases, but not when set explicitly through `.attr` and `.css`\n * etc.\n */\n SVGRenderer = H.SVGRenderer = function () {\n this.init.apply(this, arguments);\n };\n extend(SVGRenderer.prototype, /** @lends Highcharts.SVGRenderer.prototype */ {\n /**\n * A pointer to the renderer's associated Element class. The VMLRenderer\n * will have a pointer to VMLElement here.\n *\n * @name Highcharts.SVGRenderer#Element\n * @type {Highcharts.SVGElement}\n */\n Element: SVGElement,\n SVG_NS: SVG_NS,\n /**\n * Initialize the SVGRenderer. Overridable initializer function that takes\n * the same parameters as the constructor.\n *\n * @function Highcharts.SVGRenderer#init\n *\n * @param {Highcharts.HTMLDOMElement} container\n * Where to put the SVG in the web page.\n *\n * @param {number} width\n * The width of the SVG.\n *\n * @param {number} height\n * The height of the SVG.\n *\n * @param {Highcharts.CSSObject} [style]\n * The box style, if not in styleMode\n *\n * @param {boolean} [forExport=false]\n * Whether the rendered content is intended for export.\n *\n * @param {boolean} [allowHTML=true]\n * Whether the renderer is allowed to include HTML text, which will\n * be projected on top of the SVG.\n *\n * @param {boolean} [styledMode=false]\n * Whether the renderer belongs to a chart that is in styled mode.\n * If it does, it will avoid setting presentational attributes in\n * some cases, but not when set explicitly through `.attr` and `.css`\n * etc.\n *\n * @return {void}\n */\n init: function (container, width, height, style, forExport, allowHTML, styledMode) {\n var renderer = this, boxWrapper, element, desc;\n boxWrapper = renderer.createElement('svg')\n .attr({\n version: '1.1',\n 'class': 'highcharts-root'\n });\n if (!styledMode) {\n boxWrapper.css(this.getStyle(style));\n }\n element = boxWrapper.element;\n container.appendChild(element);\n // Always use ltr on the container, otherwise text-anchor will be\n // flipped and text appear outside labels, buttons, tooltip etc (#3482)\n attr(container, 'dir', 'ltr');\n // For browsers other than IE, add the namespace attribute (#1978)\n if (container.innerHTML.indexOf('xmlns') === -1) {\n attr(element, 'xmlns', this.SVG_NS);\n }\n // object properties\n renderer.isSVG = true;\n /**\n * The root `svg` node of the renderer.\n *\n * @name Highcharts.SVGRenderer#box\n * @type {Highcharts.SVGDOMElement}\n */\n this.box = element;\n /**\n * The wrapper for the root `svg` node of the renderer.\n *\n * @name Highcharts.SVGRenderer#boxWrapper\n * @type {Highcharts.SVGElement}\n */\n this.boxWrapper = boxWrapper;\n renderer.alignedObjects = [];\n /**\n * Page url used for internal references.\n *\n * @private\n * @name Highcharts.SVGRenderer#url\n * @type {string}\n */\n // #24, #672, #1070\n this.url = ((isFirefox || isWebKit) &&\n doc.getElementsByTagName('base').length) ?\n win.location.href\n .split('#')[0] // remove the hash\n .replace(/<[^>]*>/g, '') // wing cut HTML\n // escape parantheses and quotes\n .replace(/([\\('\\)])/g, '\\\\$1')\n // replace spaces (needed for Safari only)\n .replace(/ /g, '%20') :\n '';\n // Add description\n desc = this.createElement('desc').add();\n desc.element.appendChild(doc.createTextNode('Created with Highcharts 7.2.2'));\n /**\n * A pointer to the `defs` node of the root SVG.\n *\n * @name Highcharts.SVGRenderer#defs\n * @type {Highcharts.SVGElement}\n */\n renderer.defs = this.createElement('defs').add();\n renderer.allowHTML = allowHTML;\n renderer.forExport = forExport;\n renderer.styledMode = styledMode;\n renderer.gradients = {}; // Object where gradient SvgElements are stored\n renderer.cache = {}; // Cache for numerical bounding boxes\n renderer.cacheKeys = [];\n renderer.imgCount = 0;\n renderer.setSize(width, height, false);\n // Issue 110 workaround:\n // In Firefox, if a div is positioned by percentage, its pixel position\n // may land between pixels. The container itself doesn't display this,\n // but an SVG element inside this container will be drawn at subpixel\n // precision. In order to draw sharp lines, this must be compensated\n // for. This doesn't seem to work inside iframes though (like in\n // jsFiddle).\n var subPixelFix, rect;\n if (isFirefox && container.getBoundingClientRect) {\n subPixelFix = function () {\n css(container, { left: 0, top: 0 });\n rect = container.getBoundingClientRect();\n css(container, {\n left: (Math.ceil(rect.left) - rect.left) + 'px',\n top: (Math.ceil(rect.top) - rect.top) + 'px'\n });\n };\n // run the fix now\n subPixelFix();\n // run it on resize\n renderer.unSubPixelFix = addEvent(win, 'resize', subPixelFix);\n }\n },\n /**\n * General method for adding a definition to the SVG `defs` tag. Can be used\n * for gradients, fills, filters etc. Styled mode only. A hook for adding\n * general definitions to the SVG's defs tag. Definitions can be referenced\n * from the CSS by its `id`. Read more in\n * [gradients, shadows and patterns](https://www.highcharts.com/docs/chart-design-and-style/gradients-shadows-and-patterns).\n * Styled mode only.\n *\n * @function Highcharts.SVGRenderer#definition\n *\n * @param {Highcharts.SVGDefinitionObject} def\n * A serialized form of an SVG definition, including children.\n *\n * @return {Highcharts.SVGElement}\n * The inserted node.\n */\n definition: function (def) {\n var ren = this;\n /**\n * @private\n * @param {Highcharts.SVGDefinitionObject} config - SVG definition\n * @param {Highcharts.SVGElement} [parent] - parent node\n */\n function recurse(config, parent) {\n var ret;\n splat(config).forEach(function (item) {\n var node = ren.createElement(item.tagName), attr = {};\n // Set attributes\n objectEach(item, function (val, key) {\n if (key !== 'tagName' &&\n key !== 'children' &&\n key !== 'textContent') {\n attr[key] = val;\n }\n });\n node.attr(attr);\n // Add to the tree\n node.add(parent || ren.defs);\n // Add text content\n if (item.textContent) {\n node.element.appendChild(doc.createTextNode(item.textContent));\n }\n // Recurse\n recurse(item.children || [], node);\n ret = node;\n });\n // Return last node added (on top level it's the only one)\n return ret;\n }\n return recurse(def);\n },\n /**\n * Get the global style setting for the renderer.\n *\n * @private\n * @function Highcharts.SVGRenderer#getStyle\n *\n * @param {Highcharts.CSSObject} style\n * Style settings.\n *\n * @return {Highcharts.CSSObject}\n * The style settings mixed with defaults.\n */\n getStyle: function (style) {\n this.style = extend({\n fontFamily: '\"Lucida Grande\", \"Lucida Sans Unicode\", ' +\n 'Arial, Helvetica, sans-serif',\n fontSize: '12px'\n }, style);\n return this.style;\n },\n /**\n * Apply the global style on the renderer, mixed with the default styles.\n *\n * @function Highcharts.SVGRenderer#setStyle\n *\n * @param {Highcharts.CSSObject} style\n * CSS to apply.\n */\n setStyle: function (style) {\n this.boxWrapper.css(this.getStyle(style));\n },\n /**\n * Detect whether the renderer is hidden. This happens when one of the\n * parent elements has `display: none`. Used internally to detect when we\n * needto render preliminarily in another div to get the text bounding boxes\n * right.\n *\n * @function Highcharts.SVGRenderer#isHidden\n *\n * @return {boolean}\n * True if it is hidden.\n */\n isHidden: function () {\n return !this.boxWrapper.getBBox().width;\n },\n /**\n * Destroys the renderer and its allocated members.\n *\n * @function Highcharts.SVGRenderer#destroy\n *\n * @return {null}\n */\n destroy: function () {\n var renderer = this, rendererDefs = renderer.defs;\n renderer.box = null;\n renderer.boxWrapper = renderer.boxWrapper.destroy();\n // Call destroy on all gradient elements\n destroyObjectProperties(renderer.gradients || {});\n renderer.gradients = null;\n // Defs are null in VMLRenderer\n // Otherwise, destroy them here.\n if (rendererDefs) {\n renderer.defs = rendererDefs.destroy();\n }\n // Remove sub pixel fix handler (#982)\n if (renderer.unSubPixelFix) {\n renderer.unSubPixelFix();\n }\n renderer.alignedObjects = null;\n return null;\n },\n /**\n * Create a wrapper for an SVG element. Serves as a factory for\n * {@link SVGElement}, but this function is itself mostly called from\n * primitive factories like {@link SVGRenderer#path}, {@link\n * SVGRenderer#rect} or {@link SVGRenderer#text}.\n *\n * @function Highcharts.SVGRenderer#createElement\n *\n * @param {string} nodeName\n * The node name, for example `rect`, `g` etc.\n *\n * @return {Highcharts.SVGElement}\n * The generated SVGElement.\n */\n createElement: function (nodeName) {\n var wrapper = new this.Element();\n wrapper.init(this, nodeName);\n return wrapper;\n },\n /**\n * Dummy function for plugins, called every time the renderer is updated.\n * Prior to Highcharts 5, this was used for the canvg renderer.\n *\n * @deprecated\n * @function Highcharts.SVGRenderer#draw\n */\n draw: noop,\n /**\n * Get converted radial gradient attributes according to the radial\n * reference. Used internally from the {@link SVGElement#colorGradient}\n * function.\n *\n * @private\n * @function Highcharts.SVGRenderer#getRadialAttr\n *\n * @param {Array} radialReference\n *\n * @param {Highcharts.SVGAttributes} gradAttr\n *\n * @return {Highcharts.SVGAttributes}\n */\n getRadialAttr: function (radialReference, gradAttr) {\n return {\n cx: (radialReference[0] - radialReference[2] / 2) +\n gradAttr.cx * radialReference[2],\n cy: (radialReference[1] - radialReference[2] / 2) +\n gradAttr.cy * radialReference[2],\n r: gradAttr.r * radialReference[2]\n };\n },\n /**\n * Truncate the text node contents to a given length. Used when the css\n * width is set. If the `textOverflow` is `ellipsis`, the text is truncated\n * character by character to the given length. If not, the text is\n * word-wrapped line by line.\n *\n * @private\n * @function Highcharts.SVGRenderer#truncate\n *\n * @param {Highcharts.SVGElement} wrapper\n *\n * @param {Highcharts.HTMLDOMElement} tspan\n *\n * @param {string|undefined} text\n *\n * @param {Array|undefined} words\n *\n * @param {number} startAt\n *\n * @param {number} width\n *\n * @param {Function} getString\n *\n * @return {boolean}\n * True if tspan is too long.\n */\n truncate: function (wrapper, tspan, text, words, startAt, width, getString) {\n var renderer = this, rotation = wrapper.rotation, str, \n // Word wrap can not be truncated to shorter than one word, ellipsis\n // text can be completely blank.\n minIndex = words ? 1 : 0, maxIndex = (text || words).length, currentIndex = maxIndex, \n // Cache the lengths to avoid checking the same twice\n lengths = [], updateTSpan = function (s) {\n if (tspan.firstChild) {\n tspan.removeChild(tspan.firstChild);\n }\n if (s) {\n tspan.appendChild(doc.createTextNode(s));\n }\n }, getSubStringLength = function (charEnd, concatenatedEnd) {\n // charEnd is useed when finding the character-by-character\n // break for ellipsis, concatenatedEnd is used for word-by-word\n // break for word wrapping.\n var end = concatenatedEnd || charEnd;\n if (lengths[end] === undefined) {\n // Modern browsers\n if (tspan.getSubStringLength) {\n // Fails with DOM exception on unit-tests/legend/members\n // of unknown reason. Desired width is 0, text content\n // is \"5\" and end is 1.\n try {\n lengths[end] = startAt +\n tspan.getSubStringLength(0, words ? end + 1 : end);\n }\n catch (e) {\n '';\n }\n // Legacy\n }\n else if (renderer.getSpanWidth) { // #9058 jsdom\n updateTSpan(getString(text || words, charEnd));\n lengths[end] = startAt +\n renderer.getSpanWidth(wrapper, tspan);\n }\n }\n return lengths[end];\n }, actualWidth, truncated;\n wrapper.rotation = 0; // discard rotation when computing box\n actualWidth = getSubStringLength(tspan.textContent.length);\n truncated = startAt + actualWidth > width;\n if (truncated) {\n // Do a binary search for the index where to truncate the text\n while (minIndex <= maxIndex) {\n currentIndex = Math.ceil((minIndex + maxIndex) / 2);\n // When checking words for word-wrap, we need to build the\n // string and measure the subStringLength at the concatenated\n // word length.\n if (words) {\n str = getString(words, currentIndex);\n }\n actualWidth = getSubStringLength(currentIndex, str && str.length - 1);\n if (minIndex === maxIndex) {\n // Complete\n minIndex = maxIndex + 1;\n }\n else if (actualWidth > width) {\n // Too large. Set max index to current.\n maxIndex = currentIndex - 1;\n }\n else {\n // Within width. Set min index to current.\n minIndex = currentIndex;\n }\n }\n // If max index was 0 it means the shortest possible text was also\n // too large. For ellipsis that means only the ellipsis, while for\n // word wrap it means the whole first word.\n if (maxIndex === 0) {\n // Remove ellipsis\n updateTSpan('');\n // If the new text length is one less than the original, we don't\n // need the ellipsis\n }\n else if (!(text && maxIndex === text.length - 1)) {\n updateTSpan(str || getString(text || words, currentIndex));\n }\n }\n // When doing line wrapping, prepare for the next line by removing the\n // items from this line.\n if (words) {\n words.splice(0, currentIndex);\n }\n wrapper.actualWidth = actualWidth;\n wrapper.rotation = rotation; // Apply rotation again.\n return truncated;\n },\n /**\n * A collection of characters mapped to HTML entities. When `useHTML` on an\n * element is true, these entities will be rendered correctly by HTML. In\n * the SVG pseudo-HTML, they need to be unescaped back to simple characters,\n * so for example `<` will render as `<`.\n *\n * @example\n * // Add support for unescaping quotes\n * Highcharts.SVGRenderer.prototype.escapes['\"'] = '"';\n *\n * @name Highcharts.SVGRenderer#escapes\n * @type {Highcharts.Dictionary}\n */\n escapes: {\n '&': '&',\n '<': '<',\n '>': '>',\n \"'\": ''',\n '\"': '"'\n },\n /**\n * Parse a simple HTML string into SVG tspans. Called internally when text\n * is set on an SVGElement. The function supports a subset of HTML tags, CSS\n * text features like `width`, `text-overflow`, `white-space`, and also\n * attributes like `href` and `style`.\n *\n * @private\n * @function Highcharts.SVGRenderer#buildText\n *\n * @param {Highcharts.SVGElement} wrapper\n * The parent SVGElement.\n *\n * @return {void}\n */\n buildText: function (wrapper) {\n var textNode = wrapper.element, renderer = this, forExport = renderer.forExport, textStr = pick(wrapper.textStr, '').toString(), hasMarkup = textStr.indexOf('<') !== -1, lines, childNodes = textNode.childNodes, truncated, parentX = attr(textNode, 'x'), textStyles = wrapper.styles, width = wrapper.textWidth, textLineHeight = textStyles && textStyles.lineHeight, textOutline = textStyles && textStyles.textOutline, ellipsis = textStyles && textStyles.textOverflow === 'ellipsis', noWrap = textStyles && textStyles.whiteSpace === 'nowrap', fontSize = textStyles && textStyles.fontSize, textCache, isSubsequentLine, i = childNodes.length, tempParent = width && !wrapper.added && this.box, getLineHeight = function (tspan) {\n var fontSizeStyle;\n if (!renderer.styledMode) {\n fontSizeStyle =\n /(px|em)$/.test(tspan && tspan.style.fontSize) ?\n tspan.style.fontSize :\n (fontSize || renderer.style.fontSize || 12);\n }\n return textLineHeight ?\n pInt(textLineHeight) :\n renderer.fontMetrics(fontSizeStyle, \n // Get the computed size from parent if not explicit\n (tspan.getAttribute('style') ? tspan : textNode)).h;\n }, unescapeEntities = function (inputStr, except) {\n objectEach(renderer.escapes, function (value, key) {\n if (!except || except.indexOf(value) === -1) {\n inputStr = inputStr.toString().replace(new RegExp(value, 'g'), key);\n }\n });\n return inputStr;\n }, parseAttribute = function (s, attr) {\n var start, delimiter;\n start = s.indexOf('<');\n s = s.substring(start, s.indexOf('>') - start);\n start = s.indexOf(attr + '=');\n if (start !== -1) {\n start = start + attr.length + 1;\n delimiter = s.charAt(start);\n if (delimiter === '\"' || delimiter === \"'\") { // eslint-disable-line quotes\n s = s.substring(start + 1);\n return s.substring(0, s.indexOf(delimiter));\n }\n }\n };\n var regexMatchBreaks = //g;\n // The buildText code is quite heavy, so if we're not changing something\n // that affects the text, skip it (#6113).\n textCache = [\n textStr,\n ellipsis,\n noWrap,\n textLineHeight,\n textOutline,\n fontSize,\n width\n ].join(',');\n if (textCache === wrapper.textCache) {\n return;\n }\n wrapper.textCache = textCache;\n // Remove old text\n while (i--) {\n textNode.removeChild(childNodes[i]);\n }\n // Skip tspans, add text directly to text node. The forceTSpan is a hook\n // used in text outline hack.\n if (!hasMarkup &&\n !textOutline &&\n !ellipsis &&\n !width &&\n (textStr.indexOf(' ') === -1 ||\n (noWrap && !regexMatchBreaks.test(textStr)))) {\n textNode.appendChild(doc.createTextNode(unescapeEntities(textStr)));\n // Complex strings, add more logic\n }\n else {\n if (tempParent) {\n // attach it to the DOM to read offset width\n tempParent.appendChild(textNode);\n }\n if (hasMarkup) {\n lines = renderer.styledMode ? (textStr\n .replace(/<(b|strong)>/g, '')\n .replace(/<(i|em)>/g, '')) : (textStr\n .replace(/<(b|strong)>/g, '')\n .replace(/<(i|em)>/g, ''));\n lines = lines\n .replace(//g, '')\n .split(regexMatchBreaks);\n }\n else {\n lines = [textStr];\n }\n // Trim empty lines (#5261)\n lines = lines.filter(function (line) {\n return line !== '';\n });\n // build the lines\n lines.forEach(function (line, lineNo) {\n var spans, spanNo = 0, lineLength = 0;\n line = line\n // Trim to prevent useless/costly process on the spaces\n // (#5258)\n .replace(/^\\s+|\\s+$/g, '')\n .replace(//g, '|||');\n spans = line.split('|||');\n spans.forEach(function buildTextSpans(span) {\n if (span !== '' || spans.length === 1) {\n var attributes = {}, tspan = doc.createElementNS(renderer.SVG_NS, 'tspan'), a, classAttribute, styleAttribute, // #390\n hrefAttribute;\n classAttribute = parseAttribute(span, 'class');\n if (classAttribute) {\n attr(tspan, 'class', classAttribute);\n }\n styleAttribute = parseAttribute(span, 'style');\n if (styleAttribute) {\n styleAttribute = styleAttribute.replace(/(;| |^)color([ :])/, '$1fill$2');\n attr(tspan, 'style', styleAttribute);\n }\n // Not for export - #1529\n hrefAttribute = parseAttribute(span, 'href');\n if (hrefAttribute && !forExport) {\n if (\n // Stop JavaScript links, vulnerable to XSS\n hrefAttribute.split(':')[0].toLowerCase()\n .indexOf('javascript') === -1) {\n a = doc.createElementNS(renderer.SVG_NS, 'a');\n attr(a, 'href', hrefAttribute);\n attr(tspan, 'class', 'highcharts-anchor');\n a.appendChild(tspan);\n if (!renderer.styledMode) {\n css(tspan, { cursor: 'pointer' });\n }\n }\n }\n // Strip away unsupported HTML tags (#7126)\n span = unescapeEntities(span.replace(/<[a-zA-Z\\/](.|\\n)*?>/g, '') || ' ');\n // Nested tags aren't supported, and cause crash in\n // Safari (#1596)\n if (span !== ' ') {\n // add the text node\n tspan.appendChild(doc.createTextNode(span));\n // First span in a line, align it to the left\n if (!spanNo) {\n if (lineNo && parentX !== null) {\n attributes.x = parentX;\n }\n }\n else {\n attributes.dx = 0; // #16\n }\n // add attributes\n attr(tspan, attributes);\n // Append it\n textNode.appendChild(a || tspan);\n // first span on subsequent line, add the line\n // height\n if (!spanNo && isSubsequentLine) {\n // allow getting the right offset height in\n // exporting in IE\n if (!svg && forExport) {\n css(tspan, { display: 'block' });\n }\n // Set the line height based on the font size of\n // either the text element or the tspan element\n attr(tspan, 'dy', getLineHeight(tspan));\n }\n // Check width and apply soft breaks or ellipsis\n if (width) {\n var words = span.replace(/([^\\^])-/g, '$1- ').split(' '), // #1273\n hasWhiteSpace = !noWrap && (spans.length > 1 ||\n lineNo ||\n words.length > 1), wrapLineNo = 0, dy = getLineHeight(tspan);\n if (ellipsis) {\n truncated = renderer.truncate(wrapper, tspan, span, undefined, 0, \n // Target width\n Math.max(0, \n // Substract the font face to make\n // room for the ellipsis itself\n width - parseInt(fontSize || 12, 10)), \n // Build the text to test for\n function (text, currentIndex) {\n return text.substring(0, currentIndex) + '\\u2026';\n });\n }\n else if (hasWhiteSpace) {\n while (words.length) {\n // For subsequent lines, create tspans\n // with the same style attributes as the\n // parent text node.\n if (words.length &&\n !noWrap &&\n wrapLineNo > 0) {\n tspan = doc.createElementNS(SVG_NS, 'tspan');\n attr(tspan, {\n dy: dy,\n x: parentX\n });\n if (styleAttribute) { // #390\n attr(tspan, 'style', styleAttribute);\n }\n // Start by appending the full\n // remaining text\n tspan.appendChild(doc.createTextNode(words.join(' ')\n .replace(/- /g, '-')));\n textNode.appendChild(tspan);\n }\n // For each line, truncate the remaining\n // words into the line length.\n renderer.truncate(wrapper, tspan, null, words, wrapLineNo === 0 ? lineLength : 0, width, \n // Build the text to test for\n function (text, currentIndex) {\n return words\n .slice(0, currentIndex)\n .join(' ')\n .replace(/- /g, '-');\n });\n lineLength = wrapper.actualWidth;\n wrapLineNo++;\n }\n }\n }\n spanNo++;\n }\n }\n });\n // To avoid beginning lines that doesn't add to the textNode\n // (#6144)\n isSubsequentLine = (isSubsequentLine ||\n textNode.childNodes.length);\n });\n if (ellipsis && truncated) {\n wrapper.attr('title', unescapeEntities(wrapper.textStr, ['<', '>']) // #7179\n );\n }\n if (tempParent) {\n tempParent.removeChild(textNode);\n }\n // Apply the text outline\n if (textOutline && wrapper.applyTextOutline) {\n wrapper.applyTextOutline(textOutline);\n }\n }\n },\n /**\n * Returns white for dark colors and black for bright colors.\n *\n * @function Highcharts.SVGRenderer#getContrast\n *\n * @param {Highcharts.ColorString} rgba\n * The color to get the contrast for.\n *\n * @return {Highcharts.ColorString}\n * The contrast color, either `#000000` or `#FFFFFF`.\n */\n getContrast: function (rgba) {\n rgba = color(rgba).rgba;\n // The threshold may be discussed. Here's a proposal for adding\n // different weight to the color channels (#6216)\n rgba[0] *= 1; // red\n rgba[1] *= 1.2; // green\n rgba[2] *= 0.5; // blue\n return rgba[0] + rgba[1] + rgba[2] >\n 1.8 * 255 ?\n '#000000' :\n '#FFFFFF';\n },\n /**\n * Create a button with preset states.\n *\n * @function Highcharts.SVGRenderer#button\n *\n * @param {string} text\n * The text or HTML to draw.\n *\n * @param {number} x\n * The x position of the button's left side.\n *\n * @param {number} y\n * The y position of the button's top side.\n *\n * @param {Highcharts.EventCallbackFunction} callback\n * The function to execute on button click or touch.\n *\n * @param {Highcharts.SVGAttributes} [normalState]\n * SVG attributes for the normal state.\n *\n * @param {Highcharts.SVGAttributes} [hoverState]\n * SVG attributes for the hover state.\n *\n * @param {Highcharts.SVGAttributes} [pressedState]\n * SVG attributes for the pressed state.\n *\n * @param {Highcharts.SVGAttributes} [disabledState]\n * SVG attributes for the disabled state.\n *\n * @param {Highcharts.SymbolKeyValue} [shape=rect]\n * The shape type.\n *\n * @param {boolean} [useHTML=false]\n * Wether to use HTML to render the label.\n *\n * @return {Highcharts.SVGElement}\n * The button element.\n */\n button: function (text, x, y, callback, normalState, hoverState, pressedState, disabledState, shape, useHTML) {\n var label = this.label(text, x, y, shape, null, null, useHTML, null, 'button'), curState = 0, styledMode = this.styledMode;\n // Default, non-stylable attributes\n label.attr(merge({ padding: 8, r: 2 }, normalState));\n if (!styledMode) {\n // Presentational\n var normalStyle, hoverStyle, pressedStyle, disabledStyle;\n // Normal state - prepare the attributes\n normalState = merge({\n fill: '#f7f7f7',\n stroke: '#cccccc',\n 'stroke-width': 1,\n style: {\n color: '#333333',\n cursor: 'pointer',\n fontWeight: 'normal'\n }\n }, normalState);\n normalStyle = normalState.style;\n delete normalState.style;\n // Hover state\n hoverState = merge(normalState, {\n fill: '#e6e6e6'\n }, hoverState);\n hoverStyle = hoverState.style;\n delete hoverState.style;\n // Pressed state\n pressedState = merge(normalState, {\n fill: '#e6ebf5',\n style: {\n color: '#000000',\n fontWeight: 'bold'\n }\n }, pressedState);\n pressedStyle = pressedState.style;\n delete pressedState.style;\n // Disabled state\n disabledState = merge(normalState, {\n style: {\n color: '#cccccc'\n }\n }, disabledState);\n disabledStyle = disabledState.style;\n delete disabledState.style;\n }\n // Add the events. IE9 and IE10 need mouseover and mouseout to funciton\n // (#667).\n addEvent(label.element, isMS ? 'mouseover' : 'mouseenter', function () {\n if (curState !== 3) {\n label.setState(1);\n }\n });\n addEvent(label.element, isMS ? 'mouseout' : 'mouseleave', function () {\n if (curState !== 3) {\n label.setState(curState);\n }\n });\n label.setState = function (state) {\n // Hover state is temporary, don't record it\n if (state !== 1) {\n label.state = curState = state;\n }\n // Update visuals\n label\n .removeClass(/highcharts-button-(normal|hover|pressed|disabled)/)\n .addClass('highcharts-button-' +\n ['normal', 'hover', 'pressed', 'disabled'][state || 0]);\n if (!styledMode) {\n label\n .attr([\n normalState,\n hoverState,\n pressedState,\n disabledState\n ][state || 0])\n .css([\n normalStyle,\n hoverStyle,\n pressedStyle,\n disabledStyle\n ][state || 0]);\n }\n };\n // Presentational attributes\n if (!styledMode) {\n label\n .attr(normalState)\n .css(extend({ cursor: 'default' }, normalStyle));\n }\n return label\n .on('click', function (e) {\n if (curState !== 3) {\n callback.call(label, e);\n }\n });\n },\n /**\n * Make a straight line crisper by not spilling out to neighbour pixels.\n *\n * @function Highcharts.SVGRenderer#crispLine\n *\n * @param {Highcharts.SVGPathArray} points\n * The original points on the format `['M', 0, 0, 'L', 100, 0]`.\n *\n * @param {number} width\n * The width of the line.\n *\n * @return {Highcharts.SVGPathArray}\n * The original points array, but modified to render crisply.\n */\n crispLine: function (points, width) {\n // normalize to a crisp line\n if (points[1] === points[4]) {\n // Substract due to #1129. Now bottom and left axis gridlines behave\n // the same.\n points[1] = points[4] =\n Math.round(points[1]) - (width % 2 / 2);\n }\n if (points[2] === points[5]) {\n points[2] = points[5] =\n Math.round(points[2]) + (width % 2 / 2);\n }\n return points;\n },\n /**\n * Draw a path, wraps the SVG `path` element.\n *\n * @sample highcharts/members/renderer-path-on-chart/\n * Draw a path in a chart\n * @sample highcharts/members/renderer-path/\n * Draw a path independent from a chart\n *\n * @example\n * var path = renderer.path(['M', 10, 10, 'L', 30, 30, 'z'])\n * .attr({ stroke: '#ff00ff' })\n * .add();\n *\n * @function Highcharts.SVGRenderer#path\n *\n * @param {Highcharts.SVGPathArray} [path]\n * An SVG path definition in array form.\n *\n * @return {Highcharts.SVGElement}\n * The generated wrapper element.\n *\n */ /**\n * Draw a path, wraps the SVG `path` element.\n *\n * @function Highcharts.SVGRenderer#path\n *\n * @param {Highcharts.SVGAttributes} [attribs]\n * The initial attributes.\n *\n * @return {Highcharts.SVGElement}\n * The generated wrapper element.\n */\n path: function (path) {\n var attribs = (this.styledMode ? {} : {\n fill: 'none'\n });\n if (isArray(path)) {\n attribs.d = path;\n }\n else if (isObject(path)) { // attributes\n extend(attribs, path);\n }\n return this.createElement('path').attr(attribs);\n },\n /**\n * Draw a circle, wraps the SVG `circle` element.\n *\n * @sample highcharts/members/renderer-circle/\n * Drawing a circle\n *\n * @function Highcharts.SVGRenderer#circle\n *\n * @param {number} [x]\n * The center x position.\n *\n * @param {number} [y]\n * The center y position.\n *\n * @param {number} [r]\n * The radius.\n *\n * @return {Highcharts.SVGElement}\n * The generated wrapper element.\n */ /**\n * Draw a circle, wraps the SVG `circle` element.\n *\n * @function Highcharts.SVGRenderer#circle\n *\n * @param {Highcharts.SVGAttributes} [attribs]\n * The initial attributes.\n *\n * @return {Highcharts.SVGElement}\n * The generated wrapper element.\n */\n circle: function (x, y, r) {\n var attribs = (isObject(x) ?\n x :\n x === undefined ? {} : { x: x, y: y, r: r }), wrapper = this.createElement('circle');\n // Setting x or y translates to cx and cy\n wrapper.xSetter = wrapper.ySetter = function (value, key, element) {\n element.setAttribute('c' + key, value);\n };\n return wrapper.attr(attribs);\n },\n /**\n * Draw and return an arc.\n *\n * @sample highcharts/members/renderer-arc/\n * Drawing an arc\n *\n * @function Highcharts.SVGRenderer#arc\n *\n * @param {number} [x=0]\n * Center X position.\n *\n * @param {number} [y=0]\n * Center Y position.\n *\n * @param {number} [r=0]\n * The outer radius' of the arc.\n *\n * @param {number} [innerR=0]\n * Inner radius like used in donut charts.\n *\n * @param {number} [start=0]\n * The starting angle of the arc in radians, where 0 is to the right\n * and `-Math.PI/2` is up.\n *\n * @param {number} [end=0]\n * The ending angle of the arc in radians, where 0 is to the right\n * and `-Math.PI/2` is up.\n *\n * @return {Highcharts.SVGElement}\n * The generated wrapper element.\n */ /**\n * Draw and return an arc. Overloaded function that takes arguments object.\n *\n * @function Highcharts.SVGRenderer#arc\n *\n * @param {Highcharts.SVGAttributes} attribs\n * Initial SVG attributes.\n *\n * @return {Highcharts.SVGElement}\n * The generated wrapper element.\n */\n arc: function (x, y, r, innerR, start, end) {\n var arc, options;\n if (isObject(x)) {\n options = x;\n y = options.y;\n r = options.r;\n innerR = options.innerR;\n start = options.start;\n end = options.end;\n x = options.x;\n }\n else {\n options = {\n innerR: innerR,\n start: start,\n end: end\n };\n }\n // Arcs are defined as symbols for the ability to set\n // attributes in attr and animate\n arc = this.symbol('arc', x, y, r, r, options);\n arc.r = r; // #959\n return arc;\n },\n /**\n * Draw and return a rectangle.\n *\n * @function Highcharts.SVGRenderer#rect\n *\n * @param {number} [x]\n * Left position.\n *\n * @param {number} [y]\n * Top position.\n *\n * @param {number} [width]\n * Width of the rectangle.\n *\n * @param {number} [height]\n * Height of the rectangle.\n *\n * @param {number} [r]\n * Border corner radius.\n *\n * @param {number} [strokeWidth]\n * A stroke width can be supplied to allow crisp drawing.\n *\n * @return {Highcharts.SVGElement}\n * The generated wrapper element.\n */ /**\n * Draw and return a rectangle.\n *\n * @sample highcharts/members/renderer-rect-on-chart/\n * Draw a rectangle in a chart\n * @sample highcharts/members/renderer-rect/\n * Draw a rectangle independent from a chart\n *\n * @function Highcharts.SVGRenderer#rect\n *\n * @param {Highcharts.SVGAttributes} [attributes]\n * General SVG attributes for the rectangle.\n *\n * @return {Highcharts.SVGElement}\n * The generated wrapper element.\n */\n rect: function (x, y, width, height, r, strokeWidth) {\n r = isObject(x) ? x.r : r;\n var wrapper = this.createElement('rect'), attribs = isObject(x) ?\n x :\n x === undefined ?\n {} :\n {\n x: x,\n y: y,\n width: Math.max(width, 0),\n height: Math.max(height, 0)\n };\n if (!this.styledMode) {\n if (strokeWidth !== undefined) {\n attribs.strokeWidth = strokeWidth;\n attribs = wrapper.crisp(attribs);\n }\n attribs.fill = 'none';\n }\n if (r) {\n attribs.r = r;\n }\n wrapper.rSetter = function (value, key, element) {\n wrapper.r = value;\n attr(element, {\n rx: value,\n ry: value\n });\n };\n wrapper.rGetter = function () {\n return wrapper.r;\n };\n return wrapper.attr(attribs);\n },\n /**\n * Resize the {@link SVGRenderer#box} and re-align all aligned child\n * elements.\n *\n * @sample highcharts/members/renderer-g/\n * Show and hide grouped objects\n *\n * @function Highcharts.SVGRenderer#setSize\n *\n * @param {number} width\n * The new pixel width.\n *\n * @param {number} height\n * The new pixel height.\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animate=true]\n * Whether and how to animate.\n *\n * @return {void}\n */\n setSize: function (width, height, animate) {\n var renderer = this, alignedObjects = renderer.alignedObjects, i = alignedObjects.length;\n renderer.width = width;\n renderer.height = height;\n renderer.boxWrapper.animate({\n width: width,\n height: height\n }, {\n step: function () {\n this.attr({\n viewBox: '0 0 ' + this.attr('width') + ' ' +\n this.attr('height')\n });\n },\n duration: pick(animate, true) ? undefined : 0\n });\n while (i--) {\n alignedObjects[i].align();\n }\n },\n /**\n * Create and return an svg group element. Child\n * {@link Highcharts.SVGElement} objects are added to the group by using the\n * group as the first parameter in {@link Highcharts.SVGElement#add|add()}.\n *\n * @function Highcharts.SVGRenderer#g\n *\n * @param {string} [name]\n * The group will be given a class name of `highcharts-{name}`. This\n * can be used for styling and scripting.\n *\n * @return {Highcharts.SVGElement}\n * The generated wrapper element.\n */\n g: function (name) {\n var elem = this.createElement('g');\n return name ?\n elem.attr({ 'class': 'highcharts-' + name }) :\n elem;\n },\n /**\n * Display an image.\n *\n * @sample highcharts/members/renderer-image-on-chart/\n * Add an image in a chart\n * @sample highcharts/members/renderer-image/\n * Add an image independent of a chart\n *\n * @function Highcharts.SVGRenderer#image\n *\n * @param {string} src\n * The image source.\n *\n * @param {number} [x]\n * The X position.\n *\n * @param {number} [y]\n * The Y position.\n *\n * @param {number} [width]\n * The image width. If omitted, it defaults to the image file width.\n *\n * @param {number} [height]\n * The image height. If omitted it defaults to the image file\n * height.\n *\n * @param {Function} [onload]\n * Event handler for image load.\n *\n * @return {Highcharts.SVGElement}\n * The generated wrapper element.\n */\n image: function (src, x, y, width, height, onload) {\n var attribs = { preserveAspectRatio: 'none' }, elemWrapper, dummy, setSVGImageSource = function (el, src) {\n // Set the href in the xlink namespace\n if (el.setAttributeNS) {\n el.setAttributeNS('http://www.w3.org/1999/xlink', 'href', src);\n }\n else {\n // could be exporting in IE\n // using href throws \"not supported\" in ie7 and under,\n // requries regex shim to fix later\n el.setAttribute('hc-svg-href', src);\n }\n }, onDummyLoad = function (e) {\n setSVGImageSource(elemWrapper.element, src);\n onload.call(elemWrapper, e);\n };\n // optional properties\n if (arguments.length > 1) {\n extend(attribs, {\n x: x,\n y: y,\n width: width,\n height: height\n });\n }\n elemWrapper = this.createElement('image').attr(attribs);\n // Add load event if supplied\n if (onload) {\n // We have to use a dummy HTML image since IE support for SVG image\n // load events is very buggy. First set a transparent src, wait for\n // dummy to load, and then add the real src to the SVG image.\n setSVGImageSource(elemWrapper.element, 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==' /* eslint-disable-line */);\n dummy = new win.Image();\n addEvent(dummy, 'load', onDummyLoad);\n dummy.src = src;\n if (dummy.complete) {\n onDummyLoad({});\n }\n }\n else {\n setSVGImageSource(elemWrapper.element, src);\n }\n return elemWrapper;\n },\n /**\n * Draw a symbol out of pre-defined shape paths from\n * {@link SVGRenderer#symbols}.\n * It is used in Highcharts for point makers, which cake a `symbol` option,\n * and label and button backgrounds like in the tooltip and stock flags.\n *\n * @function Highcharts.SVGRenderer#symbol\n *\n * @param {string} symbol\n * The symbol name.\n *\n * @param {number} [x]\n * The X coordinate for the top left position.\n *\n * @param {number} [y]\n * The Y coordinate for the top left position.\n *\n * @param {number} [width]\n * The pixel width.\n *\n * @param {number} [height]\n * The pixel height.\n *\n * @param {Highcharts.SymbolOptionsObject} [options]\n * Additional options, depending on the actual symbol drawn.\n *\n * @return {Highcharts.SVGElement}\n */\n symbol: function (symbol, x, y, width, height, options) {\n var ren = this, obj, imageRegex = /^url\\((.*?)\\)$/, isImage = imageRegex.test(symbol), sym = (!isImage && (this.symbols[symbol] ? symbol : 'circle')), \n // get the symbol definition function\n symbolFn = (sym && this.symbols[sym]), \n // check if there's a path defined for this symbol\n path = (defined(x) && symbolFn && symbolFn.call(this.symbols, Math.round(x), Math.round(y), width, height, options)), imageSrc, centerImage;\n if (symbolFn) {\n obj = this.path(path);\n if (!ren.styledMode) {\n obj.attr('fill', 'none');\n }\n // expando properties for use in animate and attr\n extend(obj, {\n symbolName: sym,\n x: x,\n y: y,\n width: width,\n height: height\n });\n if (options) {\n extend(obj, options);\n }\n // Image symbols\n }\n else if (isImage) {\n imageSrc = symbol.match(imageRegex)[1];\n // Create the image synchronously, add attribs async\n obj = this.image(imageSrc);\n // The image width is not always the same as the symbol width. The\n // image may be centered within the symbol, as is the case when\n // image shapes are used as label backgrounds, for example in flags.\n obj.imgwidth = pick(symbolSizes[imageSrc] && symbolSizes[imageSrc].width, options && options.width);\n obj.imgheight = pick(symbolSizes[imageSrc] && symbolSizes[imageSrc].height, options && options.height);\n /**\n * Set the size and position\n */\n centerImage = function () {\n obj.attr({\n width: obj.width,\n height: obj.height\n });\n };\n /**\n * Width and height setters that take both the image's physical size\n * and the label size into consideration, and translates the image\n * to center within the label.\n */\n ['width', 'height'].forEach(function (key) {\n obj[key + 'Setter'] = function (value, key) {\n var attribs = {}, imgSize = this['img' + key], trans = key === 'width' ? 'translateX' : 'translateY';\n this[key] = value;\n if (defined(imgSize)) {\n // Scale and center the image within its container.\n // The name `backgroundSize` is taken from the CSS spec,\n // but the value `within` is made up. Other possible\n // values in the spec, `cover` and `contain`, can be\n // implemented if needed.\n if (options &&\n options.backgroundSize === 'within' &&\n this.width &&\n this.height) {\n imgSize = Math.round(imgSize * Math.min(this.width / this.imgwidth, this.height / this.imgheight));\n }\n if (this.element) {\n this.element.setAttribute(key, imgSize);\n }\n if (!this.alignByTranslate) {\n attribs[trans] = ((this[key] || 0) - imgSize) / 2;\n this.attr(attribs);\n }\n }\n };\n });\n if (defined(x)) {\n obj.attr({\n x: x,\n y: y\n });\n }\n obj.isImg = true;\n if (defined(obj.imgwidth) && defined(obj.imgheight)) {\n centerImage();\n }\n else {\n // Initialize image to be 0 size so export will still function\n // if there's no cached sizes.\n obj.attr({ width: 0, height: 0 });\n // Create a dummy JavaScript image to get the width and height.\n createElement('img', {\n onload: function () {\n var chart = charts[ren.chartIndex];\n // Special case for SVGs on IE11, the width is not\n // accessible until the image is part of the DOM\n // (#2854).\n if (this.width === 0) {\n css(this, {\n position: 'absolute',\n top: '-999em'\n });\n doc.body.appendChild(this);\n }\n // Center the image\n symbolSizes[imageSrc] = {\n width: this.width,\n height: this.height\n };\n obj.imgwidth = this.width;\n obj.imgheight = this.height;\n if (obj.element) {\n centerImage();\n }\n // Clean up after #2854 workaround.\n if (this.parentNode) {\n this.parentNode.removeChild(this);\n }\n // Fire the load event when all external images are\n // loaded\n ren.imgCount--;\n if (!ren.imgCount && chart && chart.onload) {\n chart.onload();\n }\n },\n src: imageSrc\n });\n this.imgCount++;\n }\n }\n return obj;\n },\n /**\n * An extendable collection of functions for defining symbol paths.\n *\n * @name Highcharts.SVGRenderer#symbols\n * @type {Highcharts.SymbolDictionary}\n */\n symbols: {\n circle: function (x, y, w, h) {\n // Return a full arc\n return this.arc(x + w / 2, y + h / 2, w / 2, h / 2, {\n start: Math.PI * 0.5,\n end: Math.PI * 2.5,\n open: false\n });\n },\n square: function (x, y, w, h) {\n return [\n 'M', x, y,\n 'L', x + w, y,\n x + w, y + h,\n x, y + h,\n 'Z'\n ];\n },\n triangle: function (x, y, w, h) {\n return [\n 'M', x + w / 2, y,\n 'L', x + w, y + h,\n x, y + h,\n 'Z'\n ];\n },\n 'triangle-down': function (x, y, w, h) {\n return [\n 'M', x, y,\n 'L', x + w, y,\n x + w / 2, y + h,\n 'Z'\n ];\n },\n diamond: function (x, y, w, h) {\n return [\n 'M', x + w / 2, y,\n 'L', x + w, y + h / 2,\n x + w / 2, y + h,\n x, y + h / 2,\n 'Z'\n ];\n },\n arc: function (x, y, w, h, options) {\n var start = options.start, rx = options.r || w, ry = options.r || h || w, proximity = 0.001, fullCircle = Math.abs(options.end - options.start - 2 * Math.PI) <\n proximity, \n // Substract a small number to prevent cos and sin of start and\n // end from becoming equal on 360 arcs (related: #1561)\n end = options.end - proximity, innerRadius = options.innerR, open = pick(options.open, fullCircle), cosStart = Math.cos(start), sinStart = Math.sin(start), cosEnd = Math.cos(end), sinEnd = Math.sin(end), \n // Proximity takes care of rounding errors around PI (#6971)\n longArc = options.end - start - Math.PI < proximity ? 0 : 1, arc;\n arc = [\n 'M',\n x + rx * cosStart,\n y + ry * sinStart,\n 'A',\n rx,\n ry,\n 0,\n longArc,\n pick(options.clockwise, 1),\n x + rx * cosEnd,\n y + ry * sinEnd\n ];\n if (defined(innerRadius)) {\n arc.push(open ? 'M' : 'L', x + innerRadius * cosEnd, y + innerRadius * sinEnd, 'A', // arcTo\n innerRadius, // x radius\n innerRadius, // y radius\n 0, // slanting\n longArc, // long or short arc\n 0, // clockwise\n x + innerRadius * cosStart, y + innerRadius * sinStart);\n }\n arc.push(open ? '' : 'Z'); // close\n return arc;\n },\n /**\n * Callout shape used for default tooltips, also used for rounded\n * rectangles in VML\n */\n callout: function (x, y, w, h, options) {\n var arrowLength = 6, halfDistance = 6, r = Math.min((options && options.r) || 0, w, h), safeDistance = r + halfDistance, anchorX = options && options.anchorX, anchorY = options && options.anchorY, path;\n path = [\n 'M', x + r, y,\n 'L', x + w - r, y,\n 'C', x + w, y, x + w, y, x + w, y + r,\n 'L', x + w, y + h - r,\n 'C', x + w, y + h, x + w, y + h, x + w - r, y + h,\n 'L', x + r, y + h,\n 'C', x, y + h, x, y + h, x, y + h - r,\n 'L', x, y + r,\n 'C', x, y, x, y, x + r, y // top-left corner\n ];\n // Anchor on right side\n if (anchorX && anchorX > w) {\n // Chevron\n if (anchorY > y + safeDistance &&\n anchorY < y + h - safeDistance) {\n path.splice(13, 3, 'L', x + w, anchorY - halfDistance, x + w + arrowLength, anchorY, x + w, anchorY + halfDistance, x + w, y + h - r);\n // Simple connector\n }\n else {\n path.splice(13, 3, 'L', x + w, h / 2, anchorX, anchorY, x + w, h / 2, x + w, y + h - r);\n }\n // Anchor on left side\n }\n else if (anchorX && anchorX < 0) {\n // Chevron\n if (anchorY > y + safeDistance &&\n anchorY < y + h - safeDistance) {\n path.splice(33, 3, 'L', x, anchorY + halfDistance, x - arrowLength, anchorY, x, anchorY - halfDistance, x, y + r);\n // Simple connector\n }\n else {\n path.splice(33, 3, 'L', x, h / 2, anchorX, anchorY, x, h / 2, x, y + r);\n }\n }\n else if ( // replace bottom\n anchorY &&\n anchorY > h &&\n anchorX > x + safeDistance &&\n anchorX < x + w - safeDistance) {\n path.splice(23, 3, 'L', anchorX + halfDistance, y + h, anchorX, y + h + arrowLength, anchorX - halfDistance, y + h, x + r, y + h);\n }\n else if ( // replace top\n anchorY &&\n anchorY < 0 &&\n anchorX > x + safeDistance &&\n anchorX < x + w - safeDistance) {\n path.splice(3, 3, 'L', anchorX - halfDistance, y, anchorX, y - arrowLength, anchorX + halfDistance, y, w - r, y);\n }\n return path;\n }\n },\n /**\n * Define a clipping rectangle. The clipping rectangle is later applied\n * to {@link SVGElement} objects through the {@link SVGElement#clip}\n * function.\n *\n * @example\n * var circle = renderer.circle(100, 100, 100)\n * .attr({ fill: 'red' })\n * .add();\n * var clipRect = renderer.clipRect(100, 100, 100, 100);\n *\n * // Leave only the lower right quarter visible\n * circle.clip(clipRect);\n *\n * @function Highcharts.SVGRenderer#clipRect\n *\n * @param {number} [x]\n *\n * @param {number} [y]\n *\n * @param {number} [width]\n *\n * @param {number} [height]\n *\n * @return {Highcharts.ClipRectElement}\n * A clipping rectangle.\n */\n clipRect: function (x, y, width, height) {\n var wrapper, \n // Add a hyphen at the end to avoid confusion in testing indexes\n // -1 and -10, -11 etc (#6550)\n id = H.uniqueKey() + '-', clipPath = this.createElement('clipPath').attr({\n id: id\n }).add(this.defs);\n wrapper = this.rect(x, y, width, height, 0).add(clipPath);\n wrapper.id = id;\n wrapper.clipPath = clipPath;\n wrapper.count = 0;\n return wrapper;\n },\n /**\n * Draw text. The text can contain a subset of HTML, like spans and anchors\n * and some basic text styling of these. For more advanced features like\n * border and background, use {@link Highcharts.SVGRenderer#label} instead.\n * To update the text after render, run `text.attr({ text: 'New text' })`.\n *\n * @sample highcharts/members/renderer-text-on-chart/\n * Annotate the chart freely\n * @sample highcharts/members/renderer-on-chart/\n * Annotate with a border and in response to the data\n * @sample highcharts/members/renderer-text/\n * Formatted text\n *\n * @function Highcharts.SVGRenderer#text\n *\n * @param {string} [str]\n * The text of (subset) HTML to draw.\n *\n * @param {number} [x]\n * The x position of the text's lower left corner.\n *\n * @param {number} [y]\n * The y position of the text's lower left corner.\n *\n * @param {boolean} [useHTML=false]\n * Use HTML to render the text.\n *\n * @return {Highcharts.SVGElement}\n * The text object.\n */\n text: function (str, x, y, useHTML) {\n // declare variables\n var renderer = this, wrapper, attribs = {};\n if (useHTML && (renderer.allowHTML || !renderer.forExport)) {\n return renderer.html(str, x, y);\n }\n attribs.x = Math.round(x || 0); // X always needed for line-wrap logic\n if (y) {\n attribs.y = Math.round(y);\n }\n if (defined(str)) {\n attribs.text = str;\n }\n wrapper = renderer.createElement('text')\n .attr(attribs);\n if (!useHTML) {\n wrapper.xSetter = function (value, key, element) {\n var tspans = element.getElementsByTagName('tspan'), tspan, parentVal = element.getAttribute(key), i;\n for (i = 0; i < tspans.length; i++) {\n tspan = tspans[i];\n // If the x values are equal, the tspan represents a\n // linebreak\n if (tspan.getAttribute(key) === parentVal) {\n tspan.setAttribute(key, value);\n }\n }\n element.setAttribute(key, value);\n };\n }\n return wrapper;\n },\n /**\n * Utility to return the baseline offset and total line height from the font\n * size.\n *\n * @function Highcharts.SVGRenderer#fontMetrics\n *\n * @param {number|string} [fontSize]\n * The current font size to inspect. If not given, the font size\n * will be found from the DOM element.\n *\n * @param {Highcharts.SVGElement|Highcharts.SVGDOMElement} [elem]\n * The element to inspect for a current font size.\n *\n * @return {Highcharts.FontMetricsObject}\n * The font metrics.\n */\n fontMetrics: function (fontSize, elem) {\n var lineHeight, baseline;\n if ((this.styledMode || !/px/.test(fontSize)) &&\n win.getComputedStyle // old IE doesn't support it\n ) {\n fontSize = elem && SVGElement.prototype.getStyle.call(elem, 'font-size');\n }\n else {\n fontSize = fontSize ||\n // When the elem is a DOM element (#5932)\n (elem && elem.style && elem.style.fontSize) ||\n // Fall back on the renderer style default\n (this.style && this.style.fontSize);\n }\n // Handle different units\n if (/px/.test(fontSize)) {\n fontSize = pInt(fontSize);\n }\n else {\n fontSize = 12;\n }\n // Empirical values found by comparing font size and bounding box\n // height. Applies to the default font family.\n // https://jsfiddle.net/highcharts/7xvn7/\n lineHeight = fontSize < 24 ? fontSize + 3 : Math.round(fontSize * 1.2);\n baseline = Math.round(lineHeight * 0.8);\n return {\n h: lineHeight,\n b: baseline,\n f: fontSize\n };\n },\n /**\n * Correct X and Y positioning of a label for rotation (#1764).\n *\n * @private\n * @function Highcharts.SVGRenderer#rotCorr\n *\n * @param {number} baseline\n *\n * @param {number} rotation\n *\n * @param {boolean} [alterY]\n *\n * @param {Highcharts.PositionObject}\n */\n rotCorr: function (baseline, rotation, alterY) {\n var y = baseline;\n if (rotation && alterY) {\n y = Math.max(y * Math.cos(rotation * deg2rad), 4);\n }\n return {\n x: (-baseline / 3) * Math.sin(rotation * deg2rad),\n y: y\n };\n },\n /**\n * Draw a label, which is an extended text element with support for border\n * and background. Highcharts creates a `g` element with a text and a `path`\n * or `rect` inside, to make it behave somewhat like a HTML div. Border and\n * background are set through `stroke`, `stroke-width` and `fill` attributes\n * using the {@link Highcharts.SVGElement#attr|attr} method. To update the\n * text after render, run `label.attr({ text: 'New text' })`.\n *\n * @sample highcharts/members/renderer-label-on-chart/\n * A label on the chart\n *\n * @function Highcharts.SVGRenderer#label\n *\n * @param {string} str\n * The initial text string or (subset) HTML to render.\n *\n * @param {number} x\n * The x position of the label's left side.\n *\n * @param {number} [y]\n * The y position of the label's top side or baseline, depending on\n * the `baseline` parameter.\n *\n * @param {string} [shape='rect']\n * The shape of the label's border/background, if any. Defaults to\n * `rect`. Other possible values are `callout` or other shapes\n * defined in {@link Highcharts.SVGRenderer#symbols}.\n *\n * @param {number} [anchorX]\n * In case the `shape` has a pointer, like a flag, this is the\n * coordinates it should be pinned to.\n *\n * @param {number} [anchorY]\n * In case the `shape` has a pointer, like a flag, this is the\n * coordinates it should be pinned to.\n *\n * @param {boolean} [useHTML=false]\n * Wether to use HTML to render the label.\n *\n * @param {boolean} [baseline=false]\n * Whether to position the label relative to the text baseline,\n * like {@link Highcharts.SVGRenderer#text|renderer.text}, or to the\n * upper border of the rectangle.\n *\n * @param {string} [className]\n * Class name for the group.\n *\n * @return {Highcharts.SVGElement}\n * The generated label.\n */\n label: function (str, x, y, shape, anchorX, anchorY, useHTML, baseline, className) {\n var renderer = this, styledMode = renderer.styledMode, wrapper = renderer.g((className !== 'button' && 'label')), text = wrapper.text = renderer.text('', 0, 0, useHTML)\n .attr({\n zIndex: 1\n }), box, bBox, alignFactor = 0, padding = 3, paddingLeft = 0, width, height, wrapperX, wrapperY, textAlign, deferredAttr = {}, strokeWidth, baselineOffset, hasBGImage = /^url\\((.*?)\\)$/.test(shape), needsBox = styledMode || hasBGImage, getCrispAdjust = function () {\n return styledMode ?\n box.strokeWidth() % 2 / 2 :\n (strokeWidth ? parseInt(strokeWidth, 10) : 0) % 2 / 2;\n }, updateBoxSize, updateTextPadding, boxAttr;\n if (className) {\n wrapper.addClass('highcharts-' + className);\n }\n /* This function runs after the label is added to the DOM (when the\n bounding box is available), and after the text of the label is\n updated to detect the new bounding box and reflect it in the border\n box. */\n updateBoxSize = function () {\n var style = text.element.style, crispAdjust, attribs = {};\n bBox = ((width === undefined || height === undefined || textAlign) &&\n defined(text.textStr) &&\n text.getBBox()); // #3295 && 3514 box failure when string equals 0\n wrapper.width = ((width || bBox.width || 0) +\n 2 * padding +\n paddingLeft);\n wrapper.height = (height || bBox.height || 0) + 2 * padding;\n // Update the label-scoped y offset\n baselineOffset = padding + Math.min(renderer\n .fontMetrics(style && style.fontSize, text).b, \n // Math.min because of inline style (#9400)\n bBox ? bBox.height : Infinity);\n if (needsBox) {\n // Create the border box if it is not already present\n if (!box) {\n // Symbol definition exists (#5324)\n wrapper.box = box =\n renderer.symbols[shape] || hasBGImage ?\n renderer.symbol(shape) :\n renderer.rect();\n box.addClass(// Don't use label className for buttons\n (className === 'button' ? '' : 'highcharts-label-box') +\n (className ? ' highcharts-' + className + '-box' : ''));\n box.add(wrapper);\n crispAdjust = getCrispAdjust();\n attribs.x = crispAdjust;\n attribs.y = (baseline ? -baselineOffset : 0) + crispAdjust;\n }\n // Apply the box attributes\n attribs.width = Math.round(wrapper.width);\n attribs.height = Math.round(wrapper.height);\n box.attr(extend(attribs, deferredAttr));\n deferredAttr = {};\n }\n };\n /*\n * This function runs after setting text or padding, but only if padding\n * is changed.\n */\n updateTextPadding = function () {\n var textX = paddingLeft + padding, textY;\n // determin y based on the baseline\n textY = baseline ? 0 : baselineOffset;\n // compensate for alignment\n if (defined(width) &&\n bBox &&\n (textAlign === 'center' || textAlign === 'right')) {\n textX += { center: 0.5, right: 1 }[textAlign] *\n (width - bBox.width);\n }\n // update if anything changed\n if (textX !== text.x || textY !== text.y) {\n text.attr('x', textX);\n // #8159 - prevent misplaced data labels in treemap\n // (useHTML: true)\n if (text.hasBoxWidthChanged) {\n bBox = text.getBBox(true);\n updateBoxSize();\n }\n if (textY !== undefined) {\n text.attr('y', textY);\n }\n }\n // record current values\n text.x = textX;\n text.y = textY;\n };\n /*\n * Set a box attribute, or defer it if the box is not yet created\n */\n boxAttr = function (key, value) {\n if (box) {\n box.attr(key, value);\n }\n else {\n deferredAttr[key] = value;\n }\n };\n /*\n * After the text element is added, get the desired size of the border\n * box and add it before the text in the DOM.\n */\n wrapper.onAdd = function () {\n text.add(wrapper);\n wrapper.attr({\n // Alignment is available now (#3295, 0 not rendered if given\n // as a value)\n text: (str || str === 0) ? str : '',\n x: x,\n y: y\n });\n if (box && defined(anchorX)) {\n wrapper.attr({\n anchorX: anchorX,\n anchorY: anchorY\n });\n }\n };\n /*\n * Add specific attribute setters.\n */\n // only change local variables\n wrapper.widthSetter = function (value) {\n // width:auto => null\n width = isNumber(value) ? value : null;\n };\n wrapper.heightSetter = function (value) {\n height = value;\n };\n wrapper['text-alignSetter'] = function (value) {\n textAlign = value;\n };\n wrapper.paddingSetter = function (value) {\n if (defined(value) && value !== padding) {\n padding = wrapper.padding = value;\n updateTextPadding();\n }\n };\n wrapper.paddingLeftSetter = function (value) {\n if (defined(value) && value !== paddingLeft) {\n paddingLeft = value;\n updateTextPadding();\n }\n };\n // change local variable and prevent setting attribute on the group\n wrapper.alignSetter = function (value) {\n value = {\n left: 0,\n center: 0.5,\n right: 1\n }[value];\n if (value !== alignFactor) {\n alignFactor = value;\n // Bounding box exists, means we're dynamically changing\n if (bBox) {\n wrapper.attr({ x: wrapperX }); // #5134\n }\n }\n };\n // apply these to the box and the text alike\n wrapper.textSetter = function (value) {\n if (value !== undefined) {\n // Must use .attr to ensure transforms are done (#10009)\n text.attr({\n text: value\n });\n }\n updateBoxSize();\n updateTextPadding();\n };\n // apply these to the box but not to the text\n wrapper['stroke-widthSetter'] = function (value, key) {\n if (value) {\n needsBox = true;\n }\n strokeWidth = this['stroke-width'] = value;\n boxAttr(key, value);\n };\n if (styledMode) {\n wrapper.rSetter = function (value, key) {\n boxAttr(key, value);\n };\n }\n else {\n wrapper.strokeSetter =\n wrapper.fillSetter =\n wrapper.rSetter = function (value, key) {\n if (key !== 'r') {\n if (key === 'fill' && value) {\n needsBox = true;\n }\n // for animation getter (#6776)\n wrapper[key] = value;\n }\n boxAttr(key, value);\n };\n }\n wrapper.anchorXSetter = function (value, key) {\n anchorX = wrapper.anchorX = value;\n boxAttr(key, Math.round(value) - getCrispAdjust() - wrapperX);\n };\n wrapper.anchorYSetter = function (value, key) {\n anchorY = wrapper.anchorY = value;\n boxAttr(key, value - wrapperY);\n };\n // rename attributes\n wrapper.xSetter = function (value) {\n wrapper.x = value; // for animation getter\n if (alignFactor) {\n value -= alignFactor * ((width || bBox.width) + 2 * padding);\n // Force animation even when setting to the same value (#7898)\n wrapper['forceAnimate:x'] = true;\n }\n wrapperX = Math.round(value);\n wrapper.attr('translateX', wrapperX);\n };\n wrapper.ySetter = function (value) {\n wrapperY = wrapper.y = Math.round(value);\n wrapper.attr('translateY', wrapperY);\n };\n // Redirect certain methods to either the box or the text\n var baseCss = wrapper.css;\n var wrapperExtension = {\n /**\n * Pick up some properties and apply them to the text instead of the\n * wrapper.\n */\n css: function (styles) {\n if (styles) {\n var textStyles = {};\n // Create a copy to avoid altering the original object\n // (#537)\n styles = merge(styles);\n wrapper.textProps.forEach(function (prop) {\n if (styles[prop] !== undefined) {\n textStyles[prop] = styles[prop];\n delete styles[prop];\n }\n });\n text.css(textStyles);\n // Update existing text and box\n if ('width' in textStyles) {\n updateBoxSize();\n }\n // Keep updated (#9400)\n if ('fontSize' in textStyles) {\n updateBoxSize();\n updateTextPadding();\n }\n }\n return baseCss.call(wrapper, styles);\n },\n /*\n * Return the bounding box of the box, not the group.\n */\n getBBox: function () {\n return {\n width: bBox.width + 2 * padding,\n height: bBox.height + 2 * padding,\n x: bBox.x - padding,\n y: bBox.y - padding\n };\n },\n /**\n * Destroy and release memory.\n */\n destroy: function () {\n // Added by button implementation\n removeEvent(wrapper.element, 'mouseenter');\n removeEvent(wrapper.element, 'mouseleave');\n if (text) {\n text = text.destroy();\n }\n if (box) {\n box = box.destroy();\n }\n // Call base implementation to destroy the rest\n SVGElement.prototype.destroy.call(wrapper);\n // Release local pointers (#1298)\n wrapper =\n renderer =\n updateBoxSize =\n updateTextPadding =\n boxAttr = null;\n }\n };\n if (!styledMode) {\n /**\n * Apply the shadow to the box.\n *\n * @ignore\n * @function Highcharts.SVGElement#shadow\n *\n * @return {Highcharts.SVGElement}\n */\n wrapperExtension.shadow = function (b) {\n if (b) {\n updateBoxSize();\n if (box) {\n box.shadow(b);\n }\n }\n return wrapper;\n };\n }\n return extend(wrapper, wrapperExtension);\n }\n }); // end SVGRenderer\n // general renderer\n H.Renderer = SVGRenderer;\n\n });\n _registerModule(_modules, 'parts/Html.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n var attr = U.attr, defined = U.defined, extend = U.extend, pick = U.pick, pInt = U.pInt;\n var createElement = H.createElement, css = H.css, isFirefox = H.isFirefox, isMS = H.isMS, isWebKit = H.isWebKit, SVGElement = H.SVGElement, SVGRenderer = H.SVGRenderer, win = H.win;\n /* eslint-disable valid-jsdoc */\n // Extend SvgElement for useHTML option.\n extend(SVGElement.prototype, /** @lends SVGElement.prototype */ {\n /**\n * Apply CSS to HTML elements. This is used in text within SVG rendering and\n * by the VML renderer\n *\n * @private\n * @function Highcharts.SVGElement#htmlCss\n *\n * @param {Highcharts.CSSObject} styles\n *\n * @return {Highcharts.SVGElement}\n */\n htmlCss: function (styles) {\n var wrapper = this, element = wrapper.element, \n // When setting or unsetting the width style, we need to update\n // transform (#8809)\n isSettingWidth = (element.tagName === 'SPAN' &&\n styles &&\n 'width' in styles), textWidth = pick(isSettingWidth && styles.width, undefined), doTransform;\n if (isSettingWidth) {\n delete styles.width;\n wrapper.textWidth = textWidth;\n doTransform = true;\n }\n if (styles && styles.textOverflow === 'ellipsis') {\n styles.whiteSpace = 'nowrap';\n styles.overflow = 'hidden';\n }\n wrapper.styles = extend(wrapper.styles, styles);\n css(wrapper.element, styles);\n // Now that all styles are applied, to the transform\n if (doTransform) {\n wrapper.htmlUpdateTransform();\n }\n return wrapper;\n },\n /**\n * VML and useHTML method for calculating the bounding box based on offsets.\n *\n * @private\n * @function Highcharts.SVGElement#htmlGetBBox\n *\n * @param {boolean} refresh\n * Whether to force a fresh value from the DOM or to use the cached\n * value.\n *\n * @return {Highcharts.BBoxObject}\n * A hash containing values for x, y, width and height.\n */\n htmlGetBBox: function () {\n var wrapper = this, element = wrapper.element;\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: element.offsetWidth,\n height: element.offsetHeight\n };\n },\n /**\n * VML override private method to update elements based on internal\n * properties based on SVG transform.\n *\n * @private\n * @function Highcharts.SVGElement#htmlUpdateTransform\n * @return {void}\n */\n htmlUpdateTransform: function () {\n // aligning non added elements is expensive\n if (!this.added) {\n this.alignOnAdd = true;\n return;\n }\n var wrapper = this, renderer = wrapper.renderer, elem = wrapper.element, translateX = wrapper.translateX || 0, translateY = wrapper.translateY || 0, x = wrapper.x || 0, y = wrapper.y || 0, align = wrapper.textAlign || 'left', alignCorrection = {\n left: 0, center: 0.5, right: 1\n }[align], styles = wrapper.styles, whiteSpace = styles && styles.whiteSpace;\n /**\n * @private\n * @return {number}\n */\n function getTextPxLength() {\n // Reset multiline/ellipsis in order to read width (#4928,\n // #5417)\n css(elem, {\n width: '',\n whiteSpace: whiteSpace || 'nowrap'\n });\n return elem.offsetWidth;\n }\n // apply translate\n css(elem, {\n marginLeft: translateX,\n marginTop: translateY\n });\n if (!renderer.styledMode && wrapper.shadows) { // used in labels/tooltip\n wrapper.shadows.forEach(function (shadow) {\n css(shadow, {\n marginLeft: translateX + 1,\n marginTop: translateY + 1\n });\n });\n }\n // apply inversion\n if (wrapper.inverted) { // wrapper is a group\n [].forEach.call(elem.childNodes, function (child) {\n renderer.invertChild(child, elem);\n });\n }\n if (elem.tagName === 'SPAN') {\n var rotation = wrapper.rotation, baseline, textWidth = wrapper.textWidth && pInt(wrapper.textWidth), currentTextTransform = [\n rotation,\n align,\n elem.innerHTML,\n wrapper.textWidth,\n wrapper.textAlign\n ].join(',');\n // Update textWidth. Use the memoized textPxLength if possible, to\n // avoid the getTextPxLength function using elem.offsetWidth.\n // Calling offsetWidth affects rendering time as it forces layout\n // (#7656).\n if (textWidth !== wrapper.oldTextWidth &&\n ((textWidth > wrapper.oldTextWidth) ||\n (wrapper.textPxLength || getTextPxLength()) > textWidth) && (\n // Only set the width if the text is able to word-wrap, or\n // text-overflow is ellipsis (#9537)\n /[ \\-]/.test(elem.textContent || elem.innerText) ||\n elem.style.textOverflow === 'ellipsis')) { // #983, #1254\n css(elem, {\n width: textWidth + 'px',\n display: 'block',\n whiteSpace: whiteSpace || 'normal' // #3331\n });\n wrapper.oldTextWidth = textWidth;\n wrapper.hasBoxWidthChanged = true; // #8159\n }\n else {\n wrapper.hasBoxWidthChanged = false; // #8159\n }\n // Do the calculations and DOM access only if properties changed\n if (currentTextTransform !== wrapper.cTT) {\n baseline = renderer.fontMetrics(elem.style.fontSize, elem).b;\n // Renderer specific handling of span rotation, but only if we\n // have something to update.\n if (defined(rotation) &&\n ((rotation !== (wrapper.oldRotation || 0)) ||\n (align !== wrapper.oldAlign))) {\n wrapper.setSpanRotation(rotation, alignCorrection, baseline);\n }\n wrapper.getSpanCorrection(\n // Avoid elem.offsetWidth if we can, it affects rendering\n // time heavily (#7656)\n ((!defined(rotation) && wrapper.textPxLength) || // #7920\n elem.offsetWidth), baseline, alignCorrection, rotation, align);\n }\n // apply position with correction\n css(elem, {\n left: (x + (wrapper.xCorr || 0)) + 'px',\n top: (y + (wrapper.yCorr || 0)) + 'px'\n });\n // record current text transform\n wrapper.cTT = currentTextTransform;\n wrapper.oldRotation = rotation;\n wrapper.oldAlign = align;\n }\n },\n /**\n * Set the rotation of an individual HTML span.\n *\n * @private\n * @function Highcharts.SVGElement#setSpanRotation\n * @param {number} rotation\n * @param {number} alignCorrection\n * @param {number} baseline\n * @return {void}\n */\n setSpanRotation: function (rotation, alignCorrection, baseline) {\n var rotationStyle = {}, cssTransformKey = this.renderer.getTransformKey();\n rotationStyle[cssTransformKey] = rotationStyle.transform =\n 'rotate(' + rotation + 'deg)';\n rotationStyle[cssTransformKey + (isFirefox ? 'Origin' : '-origin')] =\n rotationStyle.transformOrigin =\n (alignCorrection * 100) + '% ' + baseline + 'px';\n css(this.element, rotationStyle);\n },\n /**\n * Get the correction in X and Y positioning as the element is rotated.\n *\n * @private\n * @function Highcharts.SVGElement#getSpanCorrection\n * @param {number} width\n * @param {number} baseline\n * @param {number} alignCorrection\n * @return {void}\n */\n getSpanCorrection: function (width, baseline, alignCorrection) {\n this.xCorr = -width * alignCorrection;\n this.yCorr = -baseline;\n }\n });\n // Extend SvgRenderer for useHTML option.\n extend(SVGRenderer.prototype, /** @lends SVGRenderer.prototype */ {\n /**\n * @private\n * @function Highcharts.SVGRenderer#getTransformKey\n *\n * @return {string}\n */\n getTransformKey: function () {\n return isMS && !/Edge/.test(win.navigator.userAgent) ?\n '-ms-transform' :\n isWebKit ?\n '-webkit-transform' :\n isFirefox ?\n 'MozTransform' :\n win.opera ?\n '-o-transform' :\n '';\n },\n /**\n * Create HTML text node. This is used by the VML renderer as well as the\n * SVG renderer through the useHTML option.\n *\n * @private\n * @function Highcharts.SVGRenderer#html\n *\n * @param {string} str\n * The text of (subset) HTML to draw.\n *\n * @param {number} x\n * The x position of the text's lower left corner.\n *\n * @param {number} y\n * The y position of the text's lower left corner.\n *\n * @return {Highcharts.HTMLDOMElement}\n */\n html: function (str, x, y) {\n var wrapper = this.createElement('span'), element = wrapper.element, renderer = wrapper.renderer, isSVG = renderer.isSVG, addSetters = function (gWrapper, style) {\n // These properties are set as attributes on the SVG group, and\n // as identical CSS properties on the div. (#3542)\n ['opacity', 'visibility'].forEach(function (prop) {\n gWrapper[prop + 'Setter'] = function (value, key, elem) {\n var styleObject = gWrapper.div ?\n gWrapper.div.style :\n style;\n SVGElement.prototype[prop + 'Setter']\n .call(this, value, key, elem);\n if (styleObject) {\n styleObject[key] = value;\n }\n };\n });\n gWrapper.addedSetters = true;\n };\n // Text setter\n wrapper.textSetter = function (value) {\n if (value !== element.innerHTML) {\n delete this.bBox;\n delete this.oldTextWidth;\n }\n this.textStr = value;\n element.innerHTML = pick(value, '');\n wrapper.doTransform = true;\n };\n // Add setters for the element itself (#4938)\n if (isSVG) { // #4938, only for HTML within SVG\n addSetters(wrapper, wrapper.element.style);\n }\n // Various setters which rely on update transform\n wrapper.xSetter =\n wrapper.ySetter =\n wrapper.alignSetter =\n wrapper.rotationSetter =\n function (value, key) {\n if (key === 'align') {\n // Do not overwrite the SVGElement.align method. Same as VML.\n key = 'textAlign';\n }\n wrapper[key] = value;\n wrapper.doTransform = true;\n };\n // Runs at the end of .attr()\n wrapper.afterSetters = function () {\n // Update transform. Do this outside the loop to prevent redundant\n // updating for batch setting of attributes.\n if (this.doTransform) {\n this.htmlUpdateTransform();\n this.doTransform = false;\n }\n };\n // Set the default attributes\n wrapper\n .attr({\n text: str,\n x: Math.round(x),\n y: Math.round(y)\n })\n .css({\n position: 'absolute'\n });\n if (!renderer.styledMode) {\n wrapper.css({\n fontFamily: this.style.fontFamily,\n fontSize: this.style.fontSize\n });\n }\n // Keep the whiteSpace style outside the wrapper.styles collection\n element.style.whiteSpace = 'nowrap';\n // Use the HTML specific .css method\n wrapper.css = wrapper.htmlCss;\n // This is specific for HTML within SVG\n if (isSVG) {\n wrapper.add = function (svgGroupWrapper) {\n var htmlGroup, container = renderer.box.parentNode, parentGroup, parents = [];\n this.parentGroup = svgGroupWrapper;\n // Create a mock group to hold the HTML elements\n if (svgGroupWrapper) {\n htmlGroup = svgGroupWrapper.div;\n if (!htmlGroup) {\n // Read the parent chain into an array and read from top\n // down\n parentGroup = svgGroupWrapper;\n while (parentGroup) {\n parents.push(parentGroup);\n // Move up to the next parent group\n parentGroup = parentGroup.parentGroup;\n }\n // Ensure dynamically updating position when any parent\n // is translated\n parents.reverse().forEach(function (parentGroup) {\n var htmlGroupStyle, cls = attr(parentGroup.element, 'class');\n /**\n * Common translate setter for X and Y on the HTML\n * group. Reverted the fix for #6957 du to\n * positioning problems and offline export (#7254,\n * #7280, #7529)\n * @private\n * @param {*} value\n * @param {string} key\n * @return {void}\n */\n function translateSetter(value, key) {\n parentGroup[key] = value;\n if (key === 'translateX') {\n htmlGroupStyle.left = value + 'px';\n }\n else {\n htmlGroupStyle.top = value + 'px';\n }\n parentGroup.doTransform = true;\n }\n // Create a HTML div and append it to the parent div\n // to emulate the SVG group structure\n htmlGroup =\n parentGroup.div =\n parentGroup.div || createElement('div', cls ? { className: cls } : undefined, {\n position: 'absolute',\n left: (parentGroup.translateX || 0) + 'px',\n top: (parentGroup.translateY || 0) + 'px',\n display: parentGroup.display,\n opacity: parentGroup.opacity,\n pointerEvents: (parentGroup.styles &&\n parentGroup.styles.pointerEvents) // #5595\n // the top group is appended to container\n }, htmlGroup || container);\n // Shortcut\n htmlGroupStyle = htmlGroup.style;\n // Set listeners to update the HTML div's position\n // whenever the SVG group position is changed.\n extend(parentGroup, {\n // (#7287) Pass htmlGroup to use\n // the related group\n classSetter: (function (htmlGroup) {\n return function (value) {\n this.element.setAttribute('class', value);\n htmlGroup.className = value;\n };\n }(htmlGroup)),\n on: function () {\n if (parents[0].div) { // #6418\n wrapper.on.apply({ element: parents[0].div }, arguments);\n }\n return parentGroup;\n },\n translateXSetter: translateSetter,\n translateYSetter: translateSetter\n });\n if (!parentGroup.addedSetters) {\n addSetters(parentGroup);\n }\n });\n }\n }\n else {\n htmlGroup = container;\n }\n htmlGroup.appendChild(element);\n // Shared with VML:\n wrapper.added = true;\n if (wrapper.alignOnAdd) {\n wrapper.htmlUpdateTransform();\n }\n return wrapper;\n };\n }\n return wrapper;\n }\n });\n\n });\n _registerModule(_modules, 'parts/Time.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (Highcharts, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n var defined = U.defined, extend = U.extend, isObject = U.isObject, objectEach = U.objectEach, pick = U.pick, splat = U.splat;\n /**\n * Normalized interval.\n *\n * @interface Highcharts.TimeNormalizedObject\n */ /**\n * The count.\n *\n * @name Highcharts.TimeNormalizedObject#count\n * @type {number}\n */ /**\n * The interval in axis values (ms).\n *\n * @name Highcharts.TimeNormalizedObject#unitRange\n * @type {number}\n */\n /**\n * Function of an additional date format specifier.\n *\n * @callback Highcharts.TimeFormatCallbackFunction\n *\n * @param {number} timestamp\n * The time to format.\n *\n * @return {string}\n * The formatted portion of the date.\n */\n /**\n * Additonal time tick information.\n *\n * @interface Highcharts.TimeTicksInfoObject\n * @augments Highcharts.TimeNormalizedObject\n */ /**\n * @name Highcharts.TimeTicksInfoObject#higherRanks\n * @type {Array}\n */ /**\n * @name Highcharts.TimeTicksInfoObject#totalRange\n * @type {number}\n */\n /**\n * Time ticks.\n *\n * @interface Highcharts.AxisTickPositionsArray\n */ /**\n * @name Highcharts.AxisTickPositionsArray#info\n * @type {Highcharts.TimeTicksInfoObject}\n */\n var H = Highcharts, merge = H.merge, timeUnits = H.timeUnits, win = H.win;\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * The Time class. Time settings are applied in general for each page using\n * `Highcharts.setOptions`, or individually for each Chart item through the\n * [time](https://api.highcharts.com/highcharts/time) options set.\n *\n * The Time object is available from {@link Highcharts.Chart#time},\n * which refers to `Highcharts.time` if no individual time settings are\n * applied.\n *\n * @example\n * // Apply time settings globally\n * Highcharts.setOptions({\n * time: {\n * timezone: 'Europe/London'\n * }\n * });\n *\n * // Apply time settings by instance\n * var chart = Highcharts.chart('container', {\n * time: {\n * timezone: 'America/New_York'\n * },\n * series: [{\n * data: [1, 4, 3, 5]\n * }]\n * });\n *\n * // Use the Time object\n * console.log(\n * 'Current time in New York',\n * chart.time.dateFormat('%Y-%m-%d %H:%M:%S', Date.now())\n * );\n *\n * @class\n * @name Highcharts.Time\n *\n * @param {Highcharts.TimeOptions} options\n * Time options as defined in [chart.options.time](/highcharts/time).\n *\n * @since 6.0.5\n */\n Highcharts.Time = function (options) {\n this.update(options, false);\n };\n Highcharts.Time.prototype = {\n /**\n * Time options that can apply globally or to individual charts. These\n * settings affect how `datetime` axes are laid out, how tooltips are\n * formatted, how series\n * [pointIntervalUnit](#plotOptions.series.pointIntervalUnit) works and how\n * the Highstock range selector handles time.\n *\n * The common use case is that all charts in the same Highcharts object\n * share the same time settings, in which case the global settings are set\n * using `setOptions`.\n *\n * ```js\n * // Apply time settings globally\n * Highcharts.setOptions({\n * time: {\n * timezone: 'Europe/London'\n * }\n * });\n * // Apply time settings by instance\n * var chart = Highcharts.chart('container', {\n * time: {\n * timezone: 'America/New_York'\n * },\n * series: [{\n * data: [1, 4, 3, 5]\n * }]\n * });\n *\n * // Use the Time object\n * console.log(\n * 'Current time in New York',\n * chart.time.dateFormat('%Y-%m-%d %H:%M:%S', Date.now())\n * );\n * ```\n *\n * Since v6.0.5, the time options were moved from the `global` obect to the\n * `time` object, and time options can be set on each individual chart.\n *\n * @sample {highcharts|highstock}\n * highcharts/time/timezone/\n * Set the timezone globally\n * @sample {highcharts}\n * highcharts/time/individual/\n * Set the timezone per chart instance\n * @sample {highstock}\n * stock/time/individual/\n * Set the timezone per chart instance\n *\n * @since 6.0.5\n * @optionparent time\n */\n defaultOptions: {\n /**\n * A custom `Date` class for advanced date handling. For example,\n * [JDate](https://github.com/tahajahangir/jdate) can be hooked in to\n * handle Jalali dates.\n *\n * @type {*}\n * @since 4.0.4\n * @product highcharts highstock gantt\n */\n Date: undefined,\n /**\n * A callback to return the time zone offset for a given datetime. It\n * takes the timestamp in terms of milliseconds since January 1 1970,\n * and returns the timezone offset in minutes. This provides a hook\n * for drawing time based charts in specific time zones using their\n * local DST crossover dates, with the help of external libraries.\n *\n * @see [global.timezoneOffset](#global.timezoneOffset)\n *\n * @sample {highcharts|highstock} highcharts/time/gettimezoneoffset/\n * Use moment.js to draw Oslo time regardless of browser locale\n *\n * @since 4.1.0\n * @product highcharts highstock gantt\n */\n getTimezoneOffset: undefined,\n /**\n * Requires [moment.js](http://momentjs.com/). If the timezone option\n * is specified, it creates a default\n * [getTimezoneOffset](#time.getTimezoneOffset) function that looks\n * up the specified timezone in moment.js. If moment.js is not included,\n * this throws a Highcharts error in the console, but does not crash the\n * chart.\n *\n * @see [getTimezoneOffset](#time.getTimezoneOffset)\n *\n * @sample {highcharts|highstock} highcharts/time/timezone/\n * Europe/Oslo\n *\n * @type {string}\n * @since 5.0.7\n * @product highcharts highstock gantt\n */\n timezone: undefined,\n /**\n * The timezone offset in minutes. Positive values are west, negative\n * values are east of UTC, as in the ECMAScript\n * [getTimezoneOffset](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset)\n * method. Use this to display UTC based data in a predefined time zone.\n *\n * @see [time.getTimezoneOffset](#time.getTimezoneOffset)\n *\n * @sample {highcharts|highstock} highcharts/time/timezoneoffset/\n * Timezone offset\n *\n * @since 3.0.8\n * @product highcharts highstock gantt\n */\n timezoneOffset: 0,\n /**\n * Whether to use UTC time for axis scaling, tickmark placement and\n * time display in `Highcharts.dateFormat`. Advantages of using UTC\n * is that the time displays equally regardless of the user agent's\n * time zone settings. Local time can be used when the data is loaded\n * in real time or when correct Daylight Saving Time transitions are\n * required.\n *\n * @sample {highcharts} highcharts/time/useutc-true/\n * True by default\n * @sample {highcharts} highcharts/time/useutc-false/\n * False\n */\n useUTC: true\n },\n /**\n * Update the Time object with current options. It is called internally on\n * initializing Highcharts, after running `Highcharts.setOptions` and on\n * `Chart.update`.\n *\n * @private\n * @function Highcharts.Time#update\n *\n * @param {Highcharts.TimeOptions} options\n *\n * @return {void}\n */\n update: function (options) {\n var useUTC = pick(options && options.useUTC, true), time = this;\n this.options = options = merge(true, this.options || {}, options);\n // Allow using a different Date class\n this.Date = options.Date || win.Date || Date;\n this.useUTC = useUTC;\n this.timezoneOffset = (useUTC && options.timezoneOffset);\n /**\n * Get the time zone offset based on the current timezone information as\n * set in the global options.\n *\n * @function Highcharts.Time#getTimezoneOffset\n *\n * @param {number} timestamp\n * The JavaScript timestamp to inspect.\n *\n * @return {number}\n * The timezone offset in minutes compared to UTC.\n */\n this.getTimezoneOffset = this.timezoneOffsetFunction();\n /*\n * The time object has options allowing for variable time zones, meaning\n * the axis ticks or series data needs to consider this.\n */\n this.variableTimezone = !!(!useUTC ||\n options.getTimezoneOffset ||\n options.timezone);\n // UTC time with timezone handling\n if (this.variableTimezone || this.timezoneOffset) {\n this.get = function (unit, date) {\n var realMs = date.getTime(), ms = realMs - time.getTimezoneOffset(date), ret;\n date.setTime(ms); // Temporary adjust to timezone\n ret = date['getUTC' + unit]();\n date.setTime(realMs); // Reset\n return ret;\n };\n this.set = function (unit, date, value) {\n var ms, offset, newOffset;\n // For lower order time units, just set it directly using local\n // time\n if (unit === 'Milliseconds' ||\n unit === 'Seconds' ||\n // If we're dealting with minutes, we only need to\n // consider timezone if we're in Indian time zones with\n // half-hour offsets (#8768).\n (unit === 'Minutes' &&\n date.getTimezoneOffset() % 60 === 0)) {\n date['set' + unit](value);\n // Higher order time units need to take the time zone into\n // account\n }\n else {\n // Adjust by timezone\n offset = time.getTimezoneOffset(date);\n ms = date.getTime() - offset;\n date.setTime(ms);\n date['setUTC' + unit](value);\n newOffset = time.getTimezoneOffset(date);\n ms = date.getTime() + newOffset;\n date.setTime(ms);\n }\n };\n // UTC time with no timezone handling\n }\n else if (useUTC) {\n this.get = function (unit, date) {\n return date['getUTC' + unit]();\n };\n this.set = function (unit, date, value) {\n return date['setUTC' + unit](value);\n };\n // Local time\n }\n else {\n this.get = function (unit, date) {\n return date['get' + unit]();\n };\n this.set = function (unit, date, value) {\n return date['set' + unit](value);\n };\n }\n },\n /**\n * Make a time and returns milliseconds. Interprets the inputs as UTC time,\n * local time or a specific timezone time depending on the current time\n * settings.\n *\n * @function Highcharts.Time#makeTime\n *\n * @param {number} year\n * The year\n *\n * @param {number} month\n * The month. Zero-based, so January is 0.\n *\n * @param {number} [date=1]\n * The day of the month\n *\n * @param {number} [hours=0]\n * The hour of the day, 0-23.\n *\n * @param {number} [minutes=0]\n * The minutes\n *\n * @param {number} [seconds=0]\n * The seconds\n *\n * @return {number}\n * The time in milliseconds since January 1st 1970.\n */\n makeTime: function (year, month, date, hours, minutes, seconds) {\n var d, offset, newOffset;\n if (this.useUTC) {\n d = this.Date.UTC.apply(0, arguments);\n offset = this.getTimezoneOffset(d);\n d += offset;\n newOffset = this.getTimezoneOffset(d);\n if (offset !== newOffset) {\n d += newOffset - offset;\n // A special case for transitioning from summer time to winter time.\n // When the clock is set back, the same time is repeated twice, i.e.\n // 02:30 am is repeated since the clock is set back from 3 am to\n // 2 am. We need to make the same time as local Date does.\n }\n else if (offset - 36e5 === this.getTimezoneOffset(d - 36e5) &&\n !H.isSafari) {\n d -= 36e5;\n }\n }\n else {\n d = new this.Date(year, month, pick(date, 1), pick(hours, 0), pick(minutes, 0), pick(seconds, 0)).getTime();\n }\n return d;\n },\n /**\n * Sets the getTimezoneOffset function. If the `timezone` option is set, a\n * default getTimezoneOffset function with that timezone is returned. If\n * a `getTimezoneOffset` option is defined, it is returned. If neither are\n * specified, the function using the `timezoneOffset` option or 0 offset is\n * returned.\n *\n * @private\n * @function Highcharts.Time#timezoneOffsetFunction\n *\n * @return {Function}\n * A getTimezoneOffset function\n */\n timezoneOffsetFunction: function () {\n var time = this, options = this.options, moment = win.moment;\n if (!this.useUTC) {\n return function (timestamp) {\n return new Date(timestamp).getTimezoneOffset() * 60000;\n };\n }\n if (options.timezone) {\n if (!moment) {\n // getTimezoneOffset-function stays undefined because it depends\n // on Moment.js\n H.error(25);\n }\n else {\n return function (timestamp) {\n return -moment.tz(timestamp, options.timezone).utcOffset() * 60000;\n };\n }\n }\n // If not timezone is set, look for the getTimezoneOffset callback\n if (this.useUTC && options.getTimezoneOffset) {\n return function (timestamp) {\n return options.getTimezoneOffset(timestamp) * 60000;\n };\n }\n // Last, use the `timezoneOffset` option if set\n return function () {\n return (time.timezoneOffset || 0) * 60000;\n };\n },\n /**\n * Formats a JavaScript date timestamp (milliseconds since Jan 1st 1970)\n * into a human readable date string. The format is a subset of the formats\n * for PHP's [strftime](http://www.php.net/manual/en/function.strftime.php)\n * function. Additional formats can be given in the\n * {@link Highcharts.dateFormats} hook.\n *\n * @function Highcharts.Time#dateFormat\n *\n * @param {string} [format]\n * The desired format where various time representations are\n * prefixed with %.\n *\n * @param {number} timestamp\n * The JavaScript timestamp.\n *\n * @param {boolean} [capitalize=false]\n * Upper case first letter in the return.\n *\n * @return {string}\n * The formatted date.\n */\n dateFormat: function (format, timestamp, capitalize) {\n if (!defined(timestamp) || isNaN(timestamp)) {\n return H.defaultOptions.lang.invalidDate || '';\n }\n format = pick(format, '%Y-%m-%d %H:%M:%S');\n var time = this, date = new this.Date(timestamp), \n // get the basic time values\n hours = this.get('Hours', date), day = this.get('Day', date), dayOfMonth = this.get('Date', date), month = this.get('Month', date), fullYear = this.get('FullYear', date), lang = H.defaultOptions.lang, langWeekdays = lang.weekdays, shortWeekdays = lang.shortWeekdays, pad = H.pad, \n // List all format keys. Custom formats can be added from the\n // outside.\n replacements = extend({\n // Day\n // Short weekday, like 'Mon'\n a: shortWeekdays ?\n shortWeekdays[day] :\n langWeekdays[day].substr(0, 3),\n // Long weekday, like 'Monday'\n A: langWeekdays[day],\n // Two digit day of the month, 01 to 31\n d: pad(dayOfMonth),\n // Day of the month, 1 through 31\n e: pad(dayOfMonth, 2, ' '),\n w: day,\n // Week (none implemented)\n // 'W': weekNumber(),\n // Month\n // Short month, like 'Jan'\n b: lang.shortMonths[month],\n // Long month, like 'January'\n B: lang.months[month],\n // Two digit month number, 01 through 12\n m: pad(month + 1),\n // Month number, 1 through 12 (#8150)\n o: month + 1,\n // Year\n // Two digits year, like 09 for 2009\n y: fullYear.toString().substr(2, 2),\n // Four digits year, like 2009\n Y: fullYear,\n // Time\n // Two digits hours in 24h format, 00 through 23\n H: pad(hours),\n // Hours in 24h format, 0 through 23\n k: hours,\n // Two digits hours in 12h format, 00 through 11\n I: pad((hours % 12) || 12),\n // Hours in 12h format, 1 through 12\n l: (hours % 12) || 12,\n // Two digits minutes, 00 through 59\n M: pad(time.get('Minutes', date)),\n // Upper case AM or PM\n p: hours < 12 ? 'AM' : 'PM',\n // Lower case AM or PM\n P: hours < 12 ? 'am' : 'pm',\n // Two digits seconds, 00 through 59\n S: pad(date.getSeconds()),\n // Milliseconds (naming from Ruby)\n L: pad(Math.floor(timestamp % 1000), 3)\n }, H.dateFormats);\n // Do the replaces\n objectEach(replacements, function (val, key) {\n // Regex would do it in one line, but this is faster\n while (format.indexOf('%' + key) !== -1) {\n format = format.replace('%' + key, typeof val === 'function' ? val.call(time, timestamp) : val);\n }\n });\n // Optionally capitalize the string and return\n return capitalize ?\n (format.substr(0, 1).toUpperCase() +\n format.substr(1)) :\n format;\n },\n /**\n * Resolve legacy formats of dateTimeLabelFormats (strings and arrays) into\n * an object.\n * @private\n * @param {string|Array|Highcharts.Dictionary} f - General format description\n * @return {Highcharts.Dictionary} - The object definition\n */\n resolveDTLFormat: function (f) {\n if (!isObject(f, true)) { // check for string or array\n f = splat(f);\n return {\n main: f[0],\n from: f[1],\n to: f[2]\n };\n }\n return f;\n },\n /**\n * Return an array with time positions distributed on round time values\n * right and right after min and max. Used in datetime axes as well as for\n * grouping data on a datetime axis.\n *\n * @function Highcharts.Time#getTimeTicks\n *\n * @param {Highcharts.TimeNormalizedObject} normalizedInterval\n * The interval in axis values (ms) and the count\n *\n * @param {number} [min]\n * The minimum in axis values\n *\n * @param {number} [max]\n * The maximum in axis values\n *\n * @param {number} [startOfWeek=1]\n *\n * @return {Highcharts.AxisTickPositionsArray}\n */\n getTimeTicks: function (normalizedInterval, min, max, startOfWeek) {\n var time = this, Date = time.Date, tickPositions = [], i, higherRanks = {}, minYear, // used in months and years as a basis for Date.UTC()\n // When crossing DST, use the max. Resolves #6278.\n minDate = new Date(min), interval = normalizedInterval.unitRange, count = normalizedInterval.count || 1, variableDayLength, minDay;\n startOfWeek = pick(startOfWeek, 1);\n if (defined(min)) { // #1300\n time.set('Milliseconds', minDate, interval >= timeUnits.second ?\n 0 : // #3935\n count * Math.floor(time.get('Milliseconds', minDate) / count)); // #3652, #3654\n if (interval >= timeUnits.second) { // second\n time.set('Seconds', minDate, interval >= timeUnits.minute ?\n 0 : // #3935\n count * Math.floor(time.get('Seconds', minDate) / count));\n }\n if (interval >= timeUnits.minute) { // minute\n time.set('Minutes', minDate, interval >= timeUnits.hour ?\n 0 :\n count * Math.floor(time.get('Minutes', minDate) / count));\n }\n if (interval >= timeUnits.hour) { // hour\n time.set('Hours', minDate, interval >= timeUnits.day ?\n 0 :\n count * Math.floor(time.get('Hours', minDate) / count));\n }\n if (interval >= timeUnits.day) { // day\n time.set('Date', minDate, interval >= timeUnits.month ?\n 1 :\n Math.max(1, count * Math.floor(time.get('Date', minDate) / count)));\n }\n if (interval >= timeUnits.month) { // month\n time.set('Month', minDate, interval >= timeUnits.year ? 0 :\n count * Math.floor(time.get('Month', minDate) / count));\n minYear = time.get('FullYear', minDate);\n }\n if (interval >= timeUnits.year) { // year\n minYear -= minYear % count;\n time.set('FullYear', minDate, minYear);\n }\n // week is a special case that runs outside the hierarchy\n if (interval === timeUnits.week) {\n // get start of current week, independent of count\n minDay = time.get('Day', minDate);\n time.set('Date', minDate, (time.get('Date', minDate) -\n minDay + startOfWeek +\n // We don't want to skip days that are before\n // startOfWeek (#7051)\n (minDay < startOfWeek ? -7 : 0)));\n }\n // Get basics for variable time spans\n minYear = time.get('FullYear', minDate);\n var minMonth = time.get('Month', minDate), minDateDate = time.get('Date', minDate), minHours = time.get('Hours', minDate);\n // Redefine min to the floored/rounded minimum time (#7432)\n min = minDate.getTime();\n // Handle local timezone offset\n if (time.variableTimezone) {\n // Detect whether we need to take the DST crossover into\n // consideration. If we're crossing over DST, the day length may\n // be 23h or 25h and we need to compute the exact clock time for\n // each tick instead of just adding hours. This comes at a cost,\n // so first we find out if it is needed (#4951).\n variableDayLength = (\n // Long range, assume we're crossing over.\n max - min > 4 * timeUnits.month ||\n // Short range, check if min and max are in different time\n // zones.\n time.getTimezoneOffset(min) !==\n time.getTimezoneOffset(max));\n }\n // Iterate and add tick positions at appropriate values\n var t = minDate.getTime();\n i = 1;\n while (t < max) {\n tickPositions.push(t);\n // if the interval is years, use Date.UTC to increase years\n if (interval === timeUnits.year) {\n t = time.makeTime(minYear + i * count, 0);\n // if the interval is months, use Date.UTC to increase months\n }\n else if (interval === timeUnits.month) {\n t = time.makeTime(minYear, minMonth + i * count);\n // if we're using global time, the interval is not fixed as it\n // jumps one hour at the DST crossover\n }\n else if (variableDayLength &&\n (interval === timeUnits.day || interval === timeUnits.week)) {\n t = time.makeTime(minYear, minMonth, minDateDate +\n i * count * (interval === timeUnits.day ? 1 : 7));\n }\n else if (variableDayLength &&\n interval === timeUnits.hour &&\n count > 1) {\n // make sure higher ranks are preserved across DST (#6797,\n // #7621)\n t = time.makeTime(minYear, minMonth, minDateDate, minHours + i * count);\n // else, the interval is fixed and we use simple addition\n }\n else {\n t += interval * count;\n }\n i++;\n }\n // push the last time\n tickPositions.push(t);\n // Handle higher ranks. Mark new days if the time is on midnight\n // (#950, #1649, #1760, #3349). Use a reasonable dropout threshold\n // to prevent looping over dense data grouping (#6156).\n if (interval <= timeUnits.hour && tickPositions.length < 10000) {\n tickPositions.forEach(function (t) {\n if (\n // Speed optimization, no need to run dateFormat unless\n // we're on a full or half hour\n t % 1800000 === 0 &&\n // Check for local or global midnight\n time.dateFormat('%H%M%S%L', t) === '000000000') {\n higherRanks[t] = 'day';\n }\n });\n }\n }\n // record information on the chosen unit - for dynamic label formatter\n tickPositions.info = extend(normalizedInterval, {\n higherRanks: higherRanks,\n totalRange: interval * count\n });\n return tickPositions;\n }\n }; // end of Time\n\n });\n _registerModule(_modules, 'parts/Options.js', [_modules['parts/Globals.js']], function (H) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * @typedef {\"plotBox\"|\"spacingBox\"} Highcharts.ButtonRelativeToValue\n */\n /**\n * Gets fired when a series is added to the chart after load time, using the\n * `addSeries` method. Returning `false` prevents the series from being added.\n *\n * @callback Highcharts.ChartAddSeriesCallbackFunction\n *\n * @param {Highcharts.Chart} this\n * The chart on which the event occured.\n *\n * @param {Highcharts.ChartAddSeriesEventObject} event\n * The event that occured.\n *\n * @return {void}\n */\n /**\n * Contains common event information. Through the `options` property you can\n * access the series options that were passed to the `addSeries` method.\n *\n * @interface Highcharts.ChartAddSeriesEventObject\n */ /**\n * The series options that were passed to the `addSeries` method.\n * @name Highcharts.ChartAddSeriesEventObject#options\n * @type {Highcharts.SeriesOptionsType}\n */ /**\n * Prevents the default behaviour of the event.\n * @name Highcharts.ChartAddSeriesEventObject#preventDefault\n * @type {Function}\n */ /**\n * The event target.\n * @name Highcharts.ChartAddSeriesEventObject#target\n * @type {Highcharts.Chart}\n */ /**\n * The event type.\n * @name Highcharts.ChartAddSeriesEventObject#type\n * @type {\"addSeries\"}\n */\n /**\n * Gets fired when clicking on the plot background.\n *\n * @callback Highcharts.ChartClickCallbackFunction\n *\n * @param {Highcharts.Chart} this\n * The chart on which the event occured.\n *\n * @param {Highcharts.PointerEventObject} event\n * The event that occured.\n *\n * @return {void}\n */\n /**\n * Contains an axes of the clicked spot.\n *\n * @interface Highcharts.ChartClickEventAxisObject\n */ /**\n * Axis at the clicked spot.\n * @name Highcharts.ChartClickEventAxisObject#axis\n * @type {Highcharts.Axis}\n */ /**\n * Axis value at the clicked spot.\n * @name Highcharts.ChartClickEventAxisObject#value\n * @type {number}\n */\n /**\n * Contains information about the clicked spot on the chart. Remember the unit\n * of a datetime axis is milliseconds since 1970-01-01 00:00:00.\n *\n * @interface Highcharts.ChartClickEventObject\n * @extends Highcharts.PointerEventObject\n */ /**\n * Information about the x-axis on the clicked spot.\n * @name Highcharts.ChartClickEventObject#xAxis\n * @type {Array}\n */ /**\n * Information about the y-axis on the clicked spot.\n * @name Highcharts.ChartClickEventObject#yAxis\n * @type {Array}\n */ /**\n * Information about the z-axis on the clicked spot.\n * @name Highcharts.ChartClickEventObject#zAxis\n * @type {Array|undefined}\n */\n /**\n * Gets fired when the chart is finished loading.\n *\n * @callback Highcharts.ChartLoadCallbackFunction\n *\n * @param {Highcharts.Chart} this\n * The chart on which the event occured.\n *\n * @param {global.Event} event\n * The event that occured.\n *\n * @return {void}\n */\n /**\n * Fires when the chart is redrawn, either after a call to `chart.redraw()` or\n * after an axis, series or point is modified with the `redraw` option set to\n * `true`.\n *\n * @callback Highcharts.ChartRedrawCallbackFunction\n *\n * @param {Highcharts.Chart} this\n * The chart on which the event occured.\n *\n * @param {global.Event} event\n * The event that occured.\n *\n * @return {void}\n */\n /**\n * Gets fired after initial load of the chart (directly after the `load` event),\n * and after each redraw (directly after the `redraw` event).\n *\n * @callback Highcharts.ChartRenderCallbackFunction\n *\n * @param {Highcharts.Chart} this\n * The chart on which the event occured.\n *\n * @param {global.Event} event\n * The event that occured.\n *\n * @return {void}\n */\n /**\n * Gets fired when an area of the chart has been selected. The default action\n * for the selection event is to zoom the chart to the selected area. It can be\n * prevented by calling `event.preventDefault()` or return false.\n *\n * @callback Highcharts.ChartSelectionCallbackFunction\n *\n * @param {Highcharts.Chart} this\n * The chart on which the event occured.\n *\n * @param {global.ChartSelectionContextObject} event\n * Event informations\n *\n * @return {boolean|undefined}\n * Return false to prevent the default action, usually zoom.\n */\n /**\n * The primary axes are `xAxis[0]` and `yAxis[0]`. Remember the unit of a\n * datetime axis is milliseconds since 1970-01-01 00:00:00.\n *\n * @interface Highcharts.ChartSelectionContextObject\n * @extends global.Event\n */ /**\n * Arrays containing the axes of each dimension and each axis' min and max\n * values.\n * @name Highcharts.ChartSelectionContextObject#xAxis\n * @type {Array}\n */ /**\n * Arrays containing the axes of each dimension and each axis' min and max\n * values.\n * @name Highcharts.ChartSelectionContextObject#yAxis\n * @type {Array}\n */\n /**\n * Axis context of the selection.\n *\n * @interface Highcharts.ChartSelectionAxisContextObject\n */ /**\n * The selected Axis.\n * @name Highcharts.ChartSelectionAxisContextObject#axis\n * @type {Highcharts.Axis}\n */ /**\n * The maximum axis value, either automatic or set manually.\n * @name Highcharts.ChartSelectionAxisContextObject#max\n * @type {number}\n */ /**\n * The minimum axis value, either automatic or set manually.\n * @name Highcharts.ChartSelectionAxisContextObject#min\n * @type {number}\n */\n var color = H.color, isTouchDevice = H.isTouchDevice, merge = H.merge, svg = H.svg;\n /* ************************************************************************** *\n * Handle the options *\n * ************************************************************************** */\n /**\n * Global default settings.\n *\n * @name Highcharts.defaultOptions\n * @type {Highcharts.Options}\n */ /**\n * @optionparent\n */\n H.defaultOptions = {\n /**\n * An array containing the default colors for the chart's series. When\n * all colors are used, new colors are pulled from the start again.\n *\n * Default colors can also be set on a series or series.type basis,\n * see [column.colors](#plotOptions.column.colors),\n * [pie.colors](#plotOptions.pie.colors).\n *\n * In styled mode, the colors option doesn't exist. Instead, colors\n * are defined in CSS and applied either through series or point class\n * names, or through the [chart.colorCount](#chart.colorCount) option.\n *\n *\n * ### Legacy\n *\n * In Highcharts 3.x, the default colors were:\n *\n *
colors: ['#2f7ed8', '#0d233a', '#8bbc21', '#910000', '#1aadce',\n             *     '#492970', '#f28f43', '#77a1e5', '#c42525', '#a6c96a']
\n *\n * In Highcharts 2.x, the default colors were:\n *\n *
colors: ['#4572A7', '#AA4643', '#89A54E', '#80699B', '#3D96AE',\n             *    '#DB843D', '#92A8CD', '#A47D7C', '#B5CA92']
\n *\n * @sample {highcharts} highcharts/chart/colors/\n * Assign a global color theme\n *\n * @type {Array}\n * @default [\"#7cb5ec\", \"#434348\", \"#90ed7d\", \"#f7a35c\", \"#8085e9\",\n * \"#f15c80\", \"#e4d354\", \"#2b908f\", \"#f45b5b\", \"#91e8e1\"]\n */\n colors: '#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1'.split(' '),\n /**\n * Styled mode only. Configuration object for adding SVG definitions for\n * reusable elements. See [gradients, shadows and\n * patterns](https://www.highcharts.com/docs/chart-design-and-style/gradients-shadows-and-patterns)\n * for more information and code examples.\n *\n * @type {*}\n * @since 5.0.0\n * @apioption defs\n */\n /**\n * @ignore-option\n */\n symbols: ['circle', 'diamond', 'square', 'triangle', 'triangle-down'],\n /**\n * The language object is global and it can't be set on each chart\n * initialization. Instead, use `Highcharts.setOptions` to set it before any\n * chart is initialized.\n *\n *
Highcharts.setOptions({\n             *     lang: {\n             *         months: [\n             *             'Janvier', 'Février', 'Mars', 'Avril',\n             *             'Mai', 'Juin', 'Juillet', 'Août',\n             *             'Septembre', 'Octobre', 'Novembre', 'Décembre'\n             *         ],\n             *         weekdays: [\n             *             'Dimanche', 'Lundi', 'Mardi', 'Mercredi',\n             *             'Jeudi', 'Vendredi', 'Samedi'\n             *         ]\n             *     }\n             * });
\n */\n lang: {\n /**\n * The loading text that appears when the chart is set into the loading\n * state following a call to `chart.showLoading`.\n */\n loading: 'Loading...',\n /**\n * An array containing the months names. Corresponds to the `%B` format\n * in `Highcharts.dateFormat()`.\n *\n * @type {Array}\n * @default [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\",\n * \"July\", \"August\", \"September\", \"October\", \"November\",\n * \"December\"]\n */\n months: [\n 'January', 'February', 'March', 'April', 'May', 'June', 'July',\n 'August', 'September', 'October', 'November', 'December'\n ],\n /**\n * An array containing the months names in abbreviated form. Corresponds\n * to the `%b` format in `Highcharts.dateFormat()`.\n *\n * @type {Array}\n * @default [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\",\n * \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"]\n */\n shortMonths: [\n 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul',\n 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'\n ],\n /**\n * An array containing the weekday names.\n *\n * @type {Array}\n * @default [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\",\n * \"Friday\", \"Saturday\"]\n */\n weekdays: [\n 'Sunday', 'Monday', 'Tuesday', 'Wednesday',\n 'Thursday', 'Friday', 'Saturday'\n ],\n /**\n * Short week days, starting Sunday. If not specified, Highcharts uses\n * the first three letters of the `lang.weekdays` option.\n *\n * @sample highcharts/lang/shortweekdays/\n * Finnish two-letter abbreviations\n *\n * @type {Array}\n * @since 4.2.4\n * @apioption lang.shortWeekdays\n */\n /**\n * What to show in a date field for invalid dates. Defaults to an empty\n * string.\n *\n * @type {string}\n * @since 4.1.8\n * @product highcharts highstock\n * @apioption lang.invalidDate\n */\n /**\n * The title appearing on hovering the zoom in button. The text itself\n * defaults to \"+\" and can be changed in the button options.\n *\n * @type {string}\n * @default Zoom in\n * @product highmaps\n * @apioption lang.zoomIn\n */\n /**\n * The title appearing on hovering the zoom out button. The text itself\n * defaults to \"-\" and can be changed in the button options.\n *\n * @type {string}\n * @default Zoom out\n * @product highmaps\n * @apioption lang.zoomOut\n */\n /**\n * The default decimal point used in the `Highcharts.numberFormat`\n * method unless otherwise specified in the function arguments.\n *\n * @since 1.2.2\n */\n decimalPoint: '.',\n /**\n * [Metric prefixes](http://en.wikipedia.org/wiki/Metric_prefix) used\n * to shorten high numbers in axis labels. Replacing any of the\n * positions with `null` causes the full number to be written. Setting\n * `numericSymbols` to `null` disables shortening altogether.\n *\n * @sample {highcharts} highcharts/lang/numericsymbols/\n * Replacing the symbols with text\n * @sample {highstock} highcharts/lang/numericsymbols/\n * Replacing the symbols with text\n *\n * @type {Array}\n * @default [\"k\", \"M\", \"G\", \"T\", \"P\", \"E\"]\n * @since 2.3.0\n */\n numericSymbols: ['k', 'M', 'G', 'T', 'P', 'E'],\n /**\n * The magnitude of [numericSymbols](#lang.numericSymbol) replacements.\n * Use 10000 for Japanese, Korean and various Chinese locales, which\n * use symbols for 10^4, 10^8 and 10^12.\n *\n * @sample highcharts/lang/numericsymbolmagnitude/\n * 10000 magnitude for Japanese\n *\n * @type {number}\n * @default 1000\n * @since 5.0.3\n * @apioption lang.numericSymbolMagnitude\n */\n /**\n * The text for the label appearing when a chart is zoomed.\n *\n * @since 1.2.4\n */\n resetZoom: 'Reset zoom',\n /**\n * The tooltip title for the label appearing when a chart is zoomed.\n *\n * @since 1.2.4\n */\n resetZoomTitle: 'Reset zoom level 1:1',\n /**\n * The default thousands separator used in the `Highcharts.numberFormat`\n * method unless otherwise specified in the function arguments. Defaults\n * to a single space character, which is recommended in\n * [ISO 31-0](https://en.wikipedia.org/wiki/ISO_31-0#Numbers) and works\n * across Anglo-American and continental European languages.\n *\n * @default \\u0020\n * @since 1.2.2\n */\n thousandsSep: ' '\n },\n /**\n * Global options that don't apply to each chart. These options, like\n * the `lang` options, must be set using the `Highcharts.setOptions`\n * method.\n *\n *
Highcharts.setOptions({\n             *     global: {\n             *         useUTC: false\n             *     }\n             * });
\n *\n */\n /**\n * _Canvg rendering for Android 2.x is removed as of Highcharts 5.0\\.\n * Use the [libURL](#exporting.libURL) option to configure exporting._\n *\n * The URL to the additional file to lazy load for Android 2.x devices.\n * These devices don't support SVG, so we download a helper file that\n * contains [canvg](http://code.google.com/p/canvg/), its dependency\n * rbcolor, and our own CanVG Renderer class. To avoid hotlinking to\n * our site, you can install canvas-tools.js on your own server and\n * change this option accordingly.\n *\n * @deprecated\n *\n * @type {string}\n * @default http://code.highcharts.com/{version}/modules/canvas-tools.js\n * @product highcharts highmaps\n * @apioption global.canvasToolsURL\n */\n /**\n * This option is deprecated since v6.0.5. Instead, use\n * [time.useUTC](#time.useUTC) that supports individual time settings\n * per chart.\n *\n * @deprecated\n *\n * @type {boolean}\n * @apioption global.useUTC\n */\n /**\n * This option is deprecated since v6.0.5. Instead, use\n * [time.Date](#time.Date) that supports individual time settings\n * per chart.\n *\n * @deprecated\n *\n * @type {Function}\n * @product highcharts highstock\n * @apioption global.Date\n */\n /**\n * This option is deprecated since v6.0.5. Instead, use\n * [time.getTimezoneOffset](#time.getTimezoneOffset) that supports\n * individual time settings per chart.\n *\n * @deprecated\n *\n * @type {Function}\n * @product highcharts highstock\n * @apioption global.getTimezoneOffset\n */\n /**\n * This option is deprecated since v6.0.5. Instead, use\n * [time.timezone](#time.timezone) that supports individual time\n * settings per chart.\n *\n * @deprecated\n *\n * @type {string}\n * @product highcharts highstock\n * @apioption global.timezone\n */\n /**\n * This option is deprecated since v6.0.5. Instead, use\n * [time.timezoneOffset](#time.timezoneOffset) that supports individual\n * time settings per chart.\n *\n * @deprecated\n *\n * @type {number}\n * @product highcharts highstock\n * @apioption global.timezoneOffset\n */\n global: {},\n time: H.Time.prototype.defaultOptions,\n /**\n * General options for the chart.\n */\n chart: {\n /**\n * Default `mapData` for all series. If set to a string, it functions\n * as an index into the `Highcharts.maps` array. Otherwise it is\n * interpreted as map data.\n *\n * @see [mapData](#series.map.mapData)\n *\n * @sample maps/demo/geojson\n * Loading geoJSON data\n * @sample maps/chart/topojson\n * Loading topoJSON converted to geoJSON\n *\n * @type {string|Array<*>}\n * @since 5.0.0\n * @product highmaps\n * @apioption chart.map\n */\n /**\n * Set lat/lon transformation definitions for the chart. If not defined,\n * these are extracted from the map data.\n *\n * @type {*}\n * @since 5.0.0\n * @product highmaps\n * @apioption chart.mapTransforms\n */\n /**\n * When using multiple axis, the ticks of two or more opposite axes\n * will automatically be aligned by adding ticks to the axis or axes\n * with the least ticks, as if `tickAmount` were specified.\n *\n * This can be prevented by setting `alignTicks` to false. If the grid\n * lines look messy, it's a good idea to hide them for the secondary\n * axis by setting `gridLineWidth` to 0.\n *\n * If `startOnTick` or `endOnTick` in an Axis options are set to false,\n * then the `alignTicks ` will be disabled for the Axis.\n *\n * Disabled for logarithmic axes.\n *\n * @sample {highcharts} highcharts/chart/alignticks-true/\n * True by default\n * @sample {highcharts} highcharts/chart/alignticks-false/\n * False\n * @sample {highstock} stock/chart/alignticks-true/\n * True by default\n * @sample {highstock} stock/chart/alignticks-false/\n * False\n *\n * @type {boolean}\n * @default true\n * @product highcharts highstock gantt\n * @apioption chart.alignTicks\n */\n /**\n * Set the overall animation for all chart updating. Animation can be\n * disabled throughout the chart by setting it to false here. It can\n * be overridden for each individual API method as a function parameter.\n * The only animation not affected by this option is the initial series\n * animation, see [plotOptions.series.animation](\n * #plotOptions.series.animation).\n *\n * The animation can either be set as a boolean or a configuration\n * object. If `true`, it will use the 'swing' jQuery easing and a\n * duration of 500 ms. If used as a configuration object, the following\n * properties are supported:\n *\n *
\n *\n *
duration
\n *\n *
The duration of the animation in milliseconds.
\n *\n *
easing
\n *\n *
A string reference to an easing function set on the `Math`\n * object. See [the easing\n * demo](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-animation-easing/).\n *
\n *\n *
\n *\n * @sample {highcharts} highcharts/chart/animation-none/\n * Updating with no animation\n * @sample {highcharts} highcharts/chart/animation-duration/\n * With a longer duration\n * @sample {highcharts} highcharts/chart/animation-easing/\n * With a jQuery UI easing\n * @sample {highmaps} maps/chart/animation-none/\n * Updating with no animation\n * @sample {highmaps} maps/chart/animation-duration/\n * With a longer duration\n *\n * @type {boolean|Highcharts.AnimationOptionsObject}\n * @default true\n * @apioption chart.animation\n */\n /**\n * A CSS class name to apply to the charts container `div`, allowing\n * unique CSS styling for each chart.\n *\n * @type {string}\n * @apioption chart.className\n */\n /**\n * Event listeners for the chart.\n *\n * @apioption chart.events\n */\n /**\n * Fires when a series is added to the chart after load time, using the\n * `addSeries` method. One parameter, `event`, is passed to the\n * function, containing common event information. Through\n * `event.options` you can access the series options that were passed to\n * the `addSeries` method. Returning false prevents the series from\n * being added.\n *\n * @sample {highcharts} highcharts/chart/events-addseries/\n * Alert on add series\n * @sample {highstock} stock/chart/events-addseries/\n * Alert on add series\n *\n * @type {Highcharts.ChartAddSeriesCallbackFunction}\n * @since 1.2.0\n * @context Highcharts.Chart\n * @apioption chart.events.addSeries\n */\n /**\n * Fires when clicking on the plot background. One parameter, `event`,\n * is passed to the function, containing common event information.\n *\n * Information on the clicked spot can be found through `event.xAxis`\n * and `event.yAxis`, which are arrays containing the axes of each\n * dimension and each axis' value at the clicked spot. The primary axes\n * are `event.xAxis[0]` and `event.yAxis[0]`. Remember the unit of a\n * datetime axis is milliseconds since 1970-01-01 00:00:00.\n *\n *
click: function(e) {\n                 *     console.log(\n                 *         Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', e.xAxis[0].value),\n                 *         e.yAxis[0].value\n                 *     )\n                 * }
\n *\n * @sample {highcharts} highcharts/chart/events-click/\n * Alert coordinates on click\n * @sample {highcharts} highcharts/chart/events-container/\n * Alternatively, attach event to container\n * @sample {highstock} stock/chart/events-click/\n * Alert coordinates on click\n * @sample {highstock} highcharts/chart/events-container/\n * Alternatively, attach event to container\n * @sample {highmaps} maps/chart/events-click/\n * Record coordinates on click\n * @sample {highmaps} highcharts/chart/events-container/\n * Alternatively, attach event to container\n *\n * @type {Highcharts.ChartClickCallbackFunction}\n * @since 1.2.0\n * @context Highcharts.Chart\n * @apioption chart.events.click\n */\n /**\n * Fires when the chart is finished loading. Since v4.2.2, it also waits\n * for images to be loaded, for example from point markers. One\n * parameter, `event`, is passed to the function, containing common\n * event information.\n *\n * There is also a second parameter to the chart constructor where a\n * callback function can be passed to be executed on chart.load.\n *\n * @sample {highcharts} highcharts/chart/events-load/\n * Alert on chart load\n * @sample {highstock} stock/chart/events-load/\n * Alert on chart load\n * @sample {highmaps} maps/chart/events-load/\n * Add series on chart load\n *\n * @type {Highcharts.ChartLoadCallbackFunction}\n * @context Highcharts.Chart\n * @apioption chart.events.load\n */\n /**\n * Fires when the chart is redrawn, either after a call to\n * `chart.redraw()` or after an axis, series or point is modified with\n * the `redraw` option set to `true`. One parameter, `event`, is passed\n * to the function, containing common event information.\n *\n * @sample {highcharts} highcharts/chart/events-redraw/\n * Alert on chart redraw\n * @sample {highstock} stock/chart/events-redraw/\n * Alert on chart redraw when adding a series or moving the\n * zoomed range\n * @sample {highmaps} maps/chart/events-redraw/\n * Set subtitle on chart redraw\n *\n * @type {Highcharts.ChartRedrawCallbackFunction}\n * @since 1.2.0\n * @context Highcharts.Chart\n * @apioption chart.events.redraw\n */\n /**\n * Fires after initial load of the chart (directly after the `load`\n * event), and after each redraw (directly after the `redraw` event).\n *\n * @type {Highcharts.ChartRenderCallbackFunction}\n * @since 5.0.7\n * @context Highcharts.Chart\n * @apioption chart.events.render\n */\n /**\n * Fires when an area of the chart has been selected. Selection is\n * enabled by setting the chart's zoomType. One parameter, `event`, is\n * passed to the function, containing common event information. The\n * default action for the selection event is to zoom the chart to the\n * selected area. It can be prevented by calling\n * `event.preventDefault()` or return false.\n *\n * Information on the selected area can be found through `event.xAxis`\n * and `event.yAxis`, which are arrays containing the axes of each\n * dimension and each axis' min and max values. The primary axes are\n * `event.xAxis[0]` and `event.yAxis[0]`. Remember the unit of a\n * datetime axis is milliseconds since 1970-01-01 00:00:00.\n *\n *
selection: function(event) {\n                 *     // log the min and max of the primary, datetime x-axis\n                 *     console.log(\n                 *         Highcharts.dateFormat(\n                 *             '%Y-%m-%d %H:%M:%S',\n                 *             event.xAxis[0].min\n                 *         ),\n                 *         Highcharts.dateFormat(\n                 *             '%Y-%m-%d %H:%M:%S',\n                 *             event.xAxis[0].max\n                 *         )\n                 *     );\n                 *     // log the min and max of the y axis\n                 *     console.log(event.yAxis[0].min, event.yAxis[0].max);\n                 * }
\n *\n * @sample {highcharts} highcharts/chart/events-selection/\n * Report on selection and reset\n * @sample {highcharts} highcharts/chart/events-selection-points/\n * Select a range of points through a drag selection\n * @sample {highstock} stock/chart/events-selection/\n * Report on selection and reset\n * @sample {highstock} highcharts/chart/events-selection-points/\n * Select a range of points through a drag selection\n * (Highcharts)\n *\n * @type {Highcharts.ChartSelectionCallbackFunction}\n * @apioption chart.events.selection\n */\n /**\n * The margin between the outer edge of the chart and the plot area.\n * The numbers in the array designate top, right, bottom and left\n * respectively. Use the options `marginTop`, `marginRight`,\n * `marginBottom` and `marginLeft` for shorthand setting of one option.\n *\n * By default there is no margin. The actual space is dynamically\n * calculated from the offset of axis labels, axis title, title,\n * subtitle and legend in addition to the `spacingTop`, `spacingRight`,\n * `spacingBottom` and `spacingLeft` options.\n *\n * @sample {highcharts} highcharts/chart/margins-zero/\n * Zero margins\n * @sample {highstock} stock/chart/margin-zero/\n * Zero margins\n *\n * @type {number|Array}\n * @apioption chart.margin\n */\n /**\n * The margin between the bottom outer edge of the chart and the plot\n * area. Use this to set a fixed pixel value for the margin as opposed\n * to the default dynamic margin. See also `spacingBottom`.\n *\n * @sample {highcharts} highcharts/chart/marginbottom/\n * 100px bottom margin\n * @sample {highstock} stock/chart/marginbottom/\n * 100px bottom margin\n * @sample {highmaps} maps/chart/margin/\n * 100px margins\n *\n * @type {number}\n * @since 2.0\n * @apioption chart.marginBottom\n */\n /**\n * The margin between the left outer edge of the chart and the plot\n * area. Use this to set a fixed pixel value for the margin as opposed\n * to the default dynamic margin. See also `spacingLeft`.\n *\n * @sample {highcharts} highcharts/chart/marginleft/\n * 150px left margin\n * @sample {highstock} stock/chart/marginleft/\n * 150px left margin\n * @sample {highmaps} maps/chart/margin/\n * 100px margins\n *\n * @type {number}\n * @since 2.0\n * @apioption chart.marginLeft\n */\n /**\n * The margin between the right outer edge of the chart and the plot\n * area. Use this to set a fixed pixel value for the margin as opposed\n * to the default dynamic margin. See also `spacingRight`.\n *\n * @sample {highcharts} highcharts/chart/marginright/\n * 100px right margin\n * @sample {highstock} stock/chart/marginright/\n * 100px right margin\n * @sample {highmaps} maps/chart/margin/\n * 100px margins\n *\n * @type {number}\n * @since 2.0\n * @apioption chart.marginRight\n */\n /**\n * The margin between the top outer edge of the chart and the plot area.\n * Use this to set a fixed pixel value for the margin as opposed to\n * the default dynamic margin. See also `spacingTop`.\n *\n * @sample {highcharts} highcharts/chart/margintop/ 100px top margin\n * @sample {highstock} stock/chart/margintop/\n * 100px top margin\n * @sample {highmaps} maps/chart/margin/\n * 100px margins\n *\n * @type {number}\n * @since 2.0\n * @apioption chart.marginTop\n */\n /**\n * Allows setting a key to switch between zooming and panning. Can be\n * one of `alt`, `ctrl`, `meta` (the command key on Mac and Windows\n * key on Windows) or `shift`. The keys are mapped directly to the key\n * properties of the click event argument (`event.altKey`,\n * `event.ctrlKey`, `event.metaKey` and `event.shiftKey`).\n *\n * @type {string}\n * @since 4.0.3\n * @product highcharts gantt\n * @validvalue [\"alt\", \"ctrl\", \"meta\", \"shift\"]\n * @apioption chart.panKey\n */\n /**\n * Allow panning in a chart. Best used with [panKey](#chart.panKey)\n * to combine zooming and panning.\n *\n * On touch devices, when the [tooltip.followTouchMove](\n * #tooltip.followTouchMove) option is `true` (default), panning\n * requires two fingers. To allow panning with one finger, set\n * `followTouchMove` to `false`.\n *\n * @sample {highcharts} highcharts/chart/pankey/ Zooming and panning\n *\n * @type {boolean}\n * @default {highcharts} false\n * @default {highstock} true\n * @since 4.0.3\n * @product highcharts highstock gantt\n * @apioption chart.panning\n */\n /**\n * Equivalent to [zoomType](#chart.zoomType), but for multitouch\n * gestures only. By default, the `pinchType` is the same as the\n * `zoomType` setting. However, pinching can be enabled separately in\n * some cases, for example in stock charts where a mouse drag pans the\n * chart, while pinching is enabled. When [tooltip.followTouchMove](\n * #tooltip.followTouchMove) is true, pinchType only applies to\n * two-finger touches.\n *\n * @type {string}\n * @default {highcharts} undefined\n * @default {highstock} x\n * @since 3.0\n * @product highcharts highstock gantt\n * @validvalue [\"x\", \"y\", \"xy\"]\n * @apioption chart.pinchType\n */\n /**\n * Whether to apply styled mode. When in styled mode, no presentational\n * attributes or CSS are applied to the chart SVG. Instead, CSS rules\n * are required to style the chart. The default style sheet is\n * available from `https://code.highcharts.com/css/highcharts.css`.\n *\n * @type {boolean}\n * @default false\n * @since 7.0\n * @apioption chart.styledMode\n */\n styledMode: false,\n /**\n * The corner radius of the outer chart border.\n *\n * @sample {highcharts} highcharts/chart/borderradius/\n * 20px radius\n * @sample {highstock} stock/chart/border/\n * 10px radius\n * @sample {highmaps} maps/chart/border/\n * Border options\n *\n */\n borderRadius: 0,\n /**\n * In styled mode, this sets how many colors the class names\n * should rotate between. With ten colors, series (or points) are\n * given class names like `highcharts-color-0`, `highcharts-color-0`\n * [...] `highcharts-color-9`. The equivalent in non-styled mode\n * is to set colors using the [colors](#colors) setting.\n *\n * @since 5.0.0\n */\n colorCount: 10,\n /**\n * Alias of `type`.\n *\n * @sample {highcharts} highcharts/chart/defaultseriestype/\n * Bar\n *\n * @deprecated\n *\n * @product highcharts\n */\n defaultSeriesType: 'line',\n /**\n * If true, the axes will scale to the remaining visible series once\n * one series is hidden. If false, hiding and showing a series will\n * not affect the axes or the other series. For stacks, once one series\n * within the stack is hidden, the rest of the stack will close in\n * around it even if the axis is not affected.\n *\n * @sample {highcharts} highcharts/chart/ignorehiddenseries-true/\n * True by default\n * @sample {highcharts} highcharts/chart/ignorehiddenseries-false/\n * False\n * @sample {highcharts} highcharts/chart/ignorehiddenseries-true-stacked/\n * True with stack\n * @sample {highstock} stock/chart/ignorehiddenseries-true/\n * True by default\n * @sample {highstock} stock/chart/ignorehiddenseries-false/\n * False\n *\n * @since 1.2.0\n * @product highcharts highstock gantt\n */\n ignoreHiddenSeries: true,\n /**\n * Whether to invert the axes so that the x axis is vertical and y axis\n * is horizontal. When `true`, the x axis is [reversed](#xAxis.reversed)\n * by default.\n *\n * @productdesc {highcharts}\n * If a bar series is present in the chart, it will be inverted\n * automatically. Inverting the chart doesn't have an effect if there\n * are no cartesian series in the chart, or if the chart is\n * [polar](#chart.polar).\n *\n * @sample {highcharts} highcharts/chart/inverted/\n * Inverted line\n * @sample {highstock} stock/navigator/inverted/\n * Inverted stock chart\n *\n * @type {boolean}\n * @default false\n * @product highcharts highstock gantt\n * @apioption chart.inverted\n */\n /**\n * The distance between the outer edge of the chart and the content,\n * like title or legend, or axis title and labels if present. The\n * numbers in the array designate top, right, bottom and left\n * respectively. Use the options spacingTop, spacingRight, spacingBottom\n * and spacingLeft options for shorthand setting of one option.\n *\n * @type {Array}\n * @see [chart.margin](#chart.margin)\n * @default [10, 10, 15, 10]\n * @since 3.0.6\n */\n spacing: [10, 10, 15, 10],\n /**\n * The button that appears after a selection zoom, allowing the user\n * to reset zoom.\n */\n resetZoomButton: {\n /**\n * What frame the button placement should be related to. Can be\n * either `plotBox` or `spacingBox`.\n *\n * @sample {highcharts} highcharts/chart/resetzoombutton-relativeto/\n * Relative to the chart\n * @sample {highstock} highcharts/chart/resetzoombutton-relativeto/\n * Relative to the chart\n *\n * @type {Highcharts.ButtonRelativeToValue}\n * @default plot\n * @since 2.2\n * @apioption chart.resetZoomButton.relativeTo\n */\n /**\n * A collection of attributes for the button. The object takes SVG\n * attributes like `fill`, `stroke`, `stroke-width` or `r`, the\n * border radius. The theme also supports `style`, a collection of\n * CSS properties for the text. Equivalent attributes for the hover\n * state are given in `theme.states.hover`.\n *\n * @sample {highcharts} highcharts/chart/resetzoombutton-theme/\n * Theming the button\n * @sample {highstock} highcharts/chart/resetzoombutton-theme/\n * Theming the button\n *\n * @type {Highcharts.SVGAttributes}\n * @since 2.2\n */\n theme: {\n /** @internal */\n zIndex: 6\n },\n /**\n * The position of the button.\n *\n * @sample {highcharts} highcharts/chart/resetzoombutton-position/\n * Above the plot area\n * @sample {highstock} highcharts/chart/resetzoombutton-position/\n * Above the plot area\n * @sample {highmaps} highcharts/chart/resetzoombutton-position/\n * Above the plot area\n *\n * @type {Highcharts.AlignObject}\n * @since 2.2\n */\n position: {\n /**\n * The horizontal alignment of the button.\n */\n align: 'right',\n /**\n * The horizontal offset of the button.\n */\n x: -10,\n /**\n * The vertical alignment of the button.\n *\n * @type {Highcharts.VerticalAlignValue}\n * @default top\n * @apioption chart.resetZoomButton.position.verticalAlign\n */\n /**\n * The vertical offset of the button.\n */\n y: 10\n }\n },\n /**\n * The pixel width of the plot area border.\n *\n * @sample {highcharts} highcharts/chart/plotborderwidth/\n * 1px border\n * @sample {highstock} stock/chart/plotborder/\n * 2px border\n * @sample {highmaps} maps/chart/plotborder/\n * Plot border options\n *\n * @type {number}\n * @default 0\n * @apioption chart.plotBorderWidth\n */\n /**\n * Whether to apply a drop shadow to the plot area. Requires that\n * plotBackgroundColor be set. The shadow can be an object configuration\n * containing `color`, `offsetX`, `offsetY`, `opacity` and `width`.\n *\n * @sample {highcharts} highcharts/chart/plotshadow/\n * Plot shadow\n * @sample {highstock} stock/chart/plotshadow/\n * Plot shadow\n * @sample {highmaps} maps/chart/plotborder/\n * Plot border options\n *\n * @type {boolean|Highcharts.CSSObject}\n * @default false\n * @apioption chart.plotShadow\n */\n /**\n * When true, cartesian charts like line, spline, area and column are\n * transformed into the polar coordinate system. This produces _polar\n * charts_, also known as _radar charts_.\n *\n * @sample {highcharts} highcharts/demo/polar/\n * Polar chart\n * @sample {highcharts} highcharts/demo/polar-wind-rose/\n * Wind rose, stacked polar column chart\n * @sample {highcharts} highcharts/demo/polar-spider/\n * Spider web chart\n * @sample {highcharts} highcharts/parallel-coordinates/polar/\n * Star plot, multivariate data in a polar chart\n *\n * @type {boolean}\n * @default false\n * @since 2.3.0\n * @product highcharts\n * @requires highcharts-more\n * @apioption chart.polar\n */\n /**\n * Whether to reflow the chart to fit the width of the container div\n * on resizing the window.\n *\n * @sample {highcharts} highcharts/chart/reflow-true/\n * True by default\n * @sample {highcharts} highcharts/chart/reflow-false/\n * False\n * @sample {highstock} stock/chart/reflow-true/\n * True by default\n * @sample {highstock} stock/chart/reflow-false/\n * False\n * @sample {highmaps} maps/chart/reflow-true/\n * True by default\n * @sample {highmaps} maps/chart/reflow-false/\n * False\n *\n * @type {boolean}\n * @default true\n * @since 2.1\n * @apioption chart.reflow\n */\n /**\n * The HTML element where the chart will be rendered. If it is a string,\n * the element by that id is used. The HTML element can also be passed\n * by direct reference, or as the first argument of the chart\n * constructor, in which case the option is not needed.\n *\n * @sample {highcharts} highcharts/chart/reflow-true/\n * String\n * @sample {highcharts} highcharts/chart/renderto-object/\n * Object reference\n * @sample {highcharts} highcharts/chart/renderto-jquery/\n * Object reference through jQuery\n * @sample {highstock} stock/chart/renderto-string/\n * String\n * @sample {highstock} stock/chart/renderto-object/\n * Object reference\n * @sample {highstock} stock/chart/renderto-jquery/\n * Object reference through jQuery\n *\n * @type {string|Highcharts.HTMLDOMElement}\n * @apioption chart.renderTo\n */\n /**\n * The background color of the marker square when selecting (zooming\n * in on) an area of the chart.\n *\n * @see In styled mode, the selection marker fill is set with the\n * `.highcharts-selection-marker` class.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default rgba(51,92,173,0.25)\n * @since 2.1.7\n * @apioption chart.selectionMarkerFill\n */\n /**\n * Whether to apply a drop shadow to the outer chart area. Requires\n * that backgroundColor be set. The shadow can be an object\n * configuration containing `color`, `offsetX`, `offsetY`, `opacity` and\n * `width`.\n *\n * @sample {highcharts} highcharts/chart/shadow/\n * Shadow\n * @sample {highstock} stock/chart/shadow/\n * Shadow\n * @sample {highmaps} maps/chart/border/\n * Chart border and shadow\n *\n * @type {boolean|Highcharts.CSSObject}\n * @default false\n * @apioption chart.shadow\n */\n /**\n * Whether to show the axes initially. This only applies to empty charts\n * where series are added dynamically, as axes are automatically added\n * to cartesian series.\n *\n * @sample {highcharts} highcharts/chart/showaxes-false/\n * False by default\n * @sample {highcharts} highcharts/chart/showaxes-true/\n * True\n *\n * @type {boolean}\n * @since 1.2.5\n * @product highcharts gantt\n * @apioption chart.showAxes\n */\n /**\n * The space between the bottom edge of the chart and the content (plot\n * area, axis title and labels, title, subtitle or legend in top\n * position).\n *\n * @sample {highcharts} highcharts/chart/spacingbottom/\n * Spacing bottom set to 100\n * @sample {highstock} stock/chart/spacingbottom/\n * Spacing bottom set to 100\n * @sample {highmaps} maps/chart/spacing/\n * Spacing 100 all around\n *\n * @type {number}\n * @default 15\n * @since 2.1\n * @apioption chart.spacingBottom\n */\n /**\n * The space between the left edge of the chart and the content (plot\n * area, axis title and labels, title, subtitle or legend in top\n * position).\n *\n * @sample {highcharts} highcharts/chart/spacingleft/\n * Spacing left set to 100\n * @sample {highstock} stock/chart/spacingleft/\n * Spacing left set to 100\n * @sample {highmaps} maps/chart/spacing/\n * Spacing 100 all around\n *\n * @type {number}\n * @default 10\n * @since 2.1\n * @apioption chart.spacingLeft\n */\n /**\n * The space between the right edge of the chart and the content (plot\n * area, axis title and labels, title, subtitle or legend in top\n * position).\n *\n * @sample {highcharts} highcharts/chart/spacingright-100/\n * Spacing set to 100\n * @sample {highcharts} highcharts/chart/spacingright-legend/\n * Legend in right position with default spacing\n * @sample {highstock} stock/chart/spacingright/\n * Spacing set to 100\n * @sample {highmaps} maps/chart/spacing/\n * Spacing 100 all around\n *\n * @type {number}\n * @default 10\n * @since 2.1\n * @apioption chart.spacingRight\n */\n /**\n * The space between the top edge of the chart and the content (plot\n * area, axis title and labels, title, subtitle or legend in top\n * position).\n *\n * @sample {highcharts} highcharts/chart/spacingtop-100/\n * A top spacing of 100\n * @sample {highcharts} highcharts/chart/spacingtop-10/\n * Floating chart title makes the plot area align to the default\n * spacingTop of 10.\n * @sample {highstock} stock/chart/spacingtop/\n * A top spacing of 100\n * @sample {highmaps} maps/chart/spacing/\n * Spacing 100 all around\n *\n * @type {number}\n * @default 10\n * @since 2.1\n * @apioption chart.spacingTop\n */\n /**\n * Additional CSS styles to apply inline to the container `div`. Note\n * that since the default font styles are applied in the renderer, it\n * is ignorant of the individual chart options and must be set globally.\n *\n * @see In styled mode, general chart styles can be set with the\n * `.highcharts-root` class.\n * @sample {highcharts} highcharts/chart/style-serif-font/\n * Using a serif type font\n * @sample {highcharts} highcharts/css/em/\n * Styled mode with relative font sizes\n * @sample {highstock} stock/chart/style/\n * Using a serif type font\n * @sample {highmaps} maps/chart/style-serif-font/\n * Using a serif type font\n *\n * @type {Highcharts.CSSObject}\n * @default {\"fontFamily\": \"\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Verdana, Arial, Helvetica, sans-serif\",\"fontSize\":\"12px\"}\n * @apioption chart.style\n */\n /**\n * The default series type for the chart. Can be any of the chart types\n * listed under [plotOptions](#plotOptions) and [series](#series) or can\n * be a series provided by an additional module.\n *\n * In TypeScript this option has no effect in sense of typing and\n * instead the `type` option must always be set in the series.\n *\n * @sample {highcharts} highcharts/chart/type-bar/\n * Bar\n * @sample {highstock} stock/chart/type/\n * Areaspline\n * @sample {highmaps} maps/chart/type-mapline/\n * Mapline\n *\n * @type {string}\n * @default {highcharts} line\n * @default {highstock} line\n * @default {highmaps} map\n * @since 2.1.0\n * @apioption chart.type\n */\n /**\n * Decides in what dimensions the user can zoom by dragging the mouse.\n * Can be one of `x`, `y` or `xy`.\n *\n * @see [panKey](#chart.panKey)\n *\n * @sample {highcharts} highcharts/chart/zoomtype-none/\n * None by default\n * @sample {highcharts} highcharts/chart/zoomtype-x/\n * X\n * @sample {highcharts} highcharts/chart/zoomtype-y/\n * Y\n * @sample {highcharts} highcharts/chart/zoomtype-xy/\n * Xy\n * @sample {highstock} stock/demo/basic-line/\n * None by default\n * @sample {highstock} stock/chart/zoomtype-x/\n * X\n * @sample {highstock} stock/chart/zoomtype-y/\n * Y\n * @sample {highstock} stock/chart/zoomtype-xy/\n * Xy\n *\n * @type {string}\n * @product highcharts highstock gantt\n * @validvalue [\"x\", \"y\", \"xy\"]\n * @apioption chart.zoomType\n */\n /**\n * An explicit width for the chart. By default (when `null`) the width\n * is calculated from the offset width of the containing element.\n *\n * @sample {highcharts} highcharts/chart/width/\n * 800px wide\n * @sample {highstock} stock/chart/width/\n * 800px wide\n * @sample {highmaps} maps/chart/size/\n * Chart with explicit size\n *\n * @type {null|number|string}\n */\n width: null,\n /**\n * An explicit height for the chart. If a _number_, the height is\n * given in pixels. If given a _percentage string_ (for example\n * `'56%'`), the height is given as the percentage of the actual chart\n * width. This allows for preserving the aspect ratio across responsive\n * sizes.\n *\n * By default (when `null`) the height is calculated from the offset\n * height of the containing element, or 400 pixels if the containing\n * element's height is 0.\n *\n * @sample {highcharts} highcharts/chart/height/\n * 500px height\n * @sample {highstock} stock/chart/height/\n * 300px height\n * @sample {highmaps} maps/chart/size/\n * Chart with explicit size\n * @sample highcharts/chart/height-percent/\n * Highcharts with percentage height\n *\n * @type {null|number|string}\n */\n height: null,\n /**\n * The color of the outer chart border.\n *\n * @see In styled mode, the stroke is set with the\n * `.highcharts-background` class.\n *\n * @sample {highcharts} highcharts/chart/bordercolor/\n * Brown border\n * @sample {highstock} stock/chart/border/\n * Brown border\n * @sample {highmaps} maps/chart/border/\n * Border options\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n borderColor: '#335cad',\n /**\n * The pixel width of the outer chart border.\n *\n * @see In styled mode, the stroke is set with the\n * `.highcharts-background` class.\n *\n * @sample {highcharts} highcharts/chart/borderwidth/\n * 5px border\n * @sample {highstock} stock/chart/border/\n * 2px border\n * @sample {highmaps} maps/chart/border/\n * Border options\n *\n * @type {number}\n * @default 0\n * @apioption chart.borderWidth\n */\n /**\n * The background color or gradient for the outer chart area.\n *\n * @see In styled mode, the background is set with the\n * `.highcharts-background` class.\n *\n * @sample {highcharts} highcharts/chart/backgroundcolor-color/\n * Color\n * @sample {highcharts} highcharts/chart/backgroundcolor-gradient/\n * Gradient\n * @sample {highstock} stock/chart/backgroundcolor-color/\n * Color\n * @sample {highstock} stock/chart/backgroundcolor-gradient/\n * Gradient\n * @sample {highmaps} maps/chart/backgroundcolor-color/\n * Color\n * @sample {highmaps} maps/chart/backgroundcolor-gradient/\n * Gradient\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n backgroundColor: '#ffffff',\n /**\n * The background color or gradient for the plot area.\n *\n * @see In styled mode, the plot background is set with the\n * `.highcharts-plot-background` class.\n *\n * @sample {highcharts} highcharts/chart/plotbackgroundcolor-color/\n * Color\n * @sample {highcharts} highcharts/chart/plotbackgroundcolor-gradient/\n * Gradient\n * @sample {highstock} stock/chart/plotbackgroundcolor-color/\n * Color\n * @sample {highstock} stock/chart/plotbackgroundcolor-gradient/\n * Gradient\n * @sample {highmaps} maps/chart/plotbackgroundcolor-color/\n * Color\n * @sample {highmaps} maps/chart/plotbackgroundcolor-gradient/\n * Gradient\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @apioption chart.plotBackgroundColor\n */\n /**\n * The URL for an image to use as the plot background. To set an image\n * as the background for the entire chart, set a CSS background image\n * to the container element. Note that for the image to be applied to\n * exported charts, its URL needs to be accessible by the export server.\n *\n * @see In styled mode, a plot background image can be set with the\n * `.highcharts-plot-background` class and a [custom pattern](\n * https://www.highcharts.com/docs/chart-design-and-style/\n * gradients-shadows-and-patterns).\n *\n * @sample {highcharts} highcharts/chart/plotbackgroundimage/\n * Skies\n * @sample {highstock} stock/chart/plotbackgroundimage/\n * Skies\n *\n * @type {string}\n * @apioption chart.plotBackgroundImage\n */\n /**\n * The color of the inner chart or plot area border.\n *\n * @see In styled mode, a plot border stroke can be set with the\n * `.highcharts-plot-border` class.\n *\n * @sample {highcharts} highcharts/chart/plotbordercolor/\n * Blue border\n * @sample {highstock} stock/chart/plotborder/\n * Blue border\n * @sample {highmaps} maps/chart/plotborder/\n * Plot border options\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n plotBorderColor: '#cccccc'\n },\n /**\n * The chart's main title.\n *\n * @sample {highmaps} maps/title/title/\n * Title options demonstrated\n */\n title: {\n /**\n * When the title is floating, the plot area will not move to make space\n * for it.\n *\n * @sample {highcharts} highcharts/chart/zoomtype-none/\n * False by default\n * @sample {highcharts} highcharts/title/floating/\n * True - title on top of the plot area\n * @sample {highstock} stock/chart/title-floating/\n * True - title on top of the plot area\n *\n * @type {boolean}\n * @default false\n * @since 2.1\n * @apioption title.floating\n */\n /**\n * CSS styles for the title. Use this for font styling, but use `align`,\n * `x` and `y` for text alignment.\n *\n * In styled mode, the title style is given in the `.highcharts-title`\n * class.\n *\n * @sample {highcharts} highcharts/title/style/\n * Custom color and weight\n * @sample {highstock} stock/chart/title-style/\n * Custom color and weight\n * @sample highcharts/css/titles/\n * Styled mode\n *\n * @type {Highcharts.CSSObject}\n * @default {highcharts|highmaps} { \"color\": \"#333333\", \"fontSize\": \"18px\" }\n * @default {highstock} { \"color\": \"#333333\", \"fontSize\": \"16px\" }\n * @apioption title.style\n */\n /**\n * Whether to\n * [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)\n * to render the text.\n *\n * @type {boolean}\n * @default false\n * @apioption title.useHTML\n */\n /**\n * The vertical alignment of the title. Can be one of `\"top\"`,\n * `\"middle\"` and `\"bottom\"`. When a value is given, the title behaves\n * as if [floating](#title.floating) were `true`.\n *\n * @sample {highcharts} highcharts/title/verticalalign/\n * Chart title in bottom right corner\n * @sample {highstock} stock/chart/title-verticalalign/\n * Chart title in bottom right corner\n *\n * @type {Highcharts.VerticalAlignValue}\n * @since 2.1\n * @apioption title.verticalAlign\n */\n /**\n * The x position of the title relative to the alignment within\n * `chart.spacingLeft` and `chart.spacingRight`.\n *\n * @sample {highcharts} highcharts/title/align/\n * Aligned to the plot area (x = 70px = margin left - spacing\n * left)\n * @sample {highstock} stock/chart/title-align/\n * Aligned to the plot area (x = 50px = margin left - spacing\n * left)\n *\n * @type {number}\n * @default 0\n * @since 2.0\n * @apioption title.x\n */\n /**\n * The y position of the title relative to the alignment within\n * [chart.spacingTop](#chart.spacingTop) and [chart.spacingBottom](\n * #chart.spacingBottom). By default it depends on the font size.\n *\n * @sample {highcharts} highcharts/title/y/\n * Title inside the plot area\n * @sample {highstock} stock/chart/title-verticalalign/\n * Chart title in bottom right corner\n *\n * @type {number}\n * @since 2.0\n * @apioption title.y\n */\n /**\n * The title of the chart. To disable the title, set the `text` to\n * `undefined`.\n *\n * @sample {highcharts} highcharts/title/text/\n * Custom title\n * @sample {highstock} stock/chart/title-text/\n * Custom title\n *\n * @default {highcharts|highmaps} Chart title\n * @default {highstock} undefined\n */\n text: 'Chart title',\n /**\n * The horizontal alignment of the title. Can be one of \"left\", \"center\"\n * and \"right\".\n *\n * @sample {highcharts} highcharts/title/align/\n * Aligned to the plot area (x = 70px = margin left - spacing\n * left)\n * @sample {highstock} stock/chart/title-align/\n * Aligned to the plot area (x = 50px = margin left - spacing\n * left)\n *\n * @type {Highcharts.AlignValue}\n * @since 2.0\n */\n align: 'center',\n /**\n * The margin between the title and the plot area, or if a subtitle\n * is present, the margin between the subtitle and the plot area.\n *\n * @sample {highcharts} highcharts/title/margin-50/\n * A chart title margin of 50\n * @sample {highcharts} highcharts/title/margin-subtitle/\n * The same margin applied with a subtitle\n * @sample {highstock} stock/chart/title-margin/\n * A chart title margin of 50\n *\n * @since 2.1\n */\n margin: 15,\n /**\n * Adjustment made to the title width, normally to reserve space for\n * the exporting burger menu.\n *\n * @sample highcharts/title/widthadjust/\n * Wider menu, greater padding\n *\n * @since 4.2.5\n */\n widthAdjust: -44\n },\n /**\n * The chart's subtitle. This can be used both to display a subtitle below\n * the main title, and to display random text anywhere in the chart. The\n * subtitle can be updated after chart initialization through the\n * `Chart.setTitle` method.\n *\n * @sample {highmaps} maps/title/subtitle/\n * Subtitle options demonstrated\n */\n subtitle: {\n /**\n * When the subtitle is floating, the plot area will not move to make\n * space for it.\n *\n * @sample {highcharts} highcharts/subtitle/floating/\n * Floating title and subtitle\n * @sample {highstock} stock/chart/subtitle-footnote\n * Footnote floating at bottom right of plot area\n *\n * @type {boolean}\n * @default false\n * @since 2.1\n * @apioption subtitle.floating\n */\n /**\n * CSS styles for the title.\n *\n * In styled mode, the subtitle style is given in the\n * `.highcharts-subtitle` class.\n *\n * @sample {highcharts} highcharts/subtitle/style/\n * Custom color and weight\n * @sample {highcharts} highcharts/css/titles/\n * Styled mode\n * @sample {highstock} stock/chart/subtitle-style\n * Custom color and weight\n * @sample {highstock} highcharts/css/titles/\n * Styled mode\n * @sample {highmaps} highcharts/css/titles/\n * Styled mode\n *\n * @type {Highcharts.CSSObject}\n * @default {\"color\": \"#666666\"}\n * @apioption subtitle.style\n */\n /**\n * Whether to\n * [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)\n * to render the text.\n *\n * @type {boolean}\n * @default false\n * @apioption subtitle.useHTML\n */\n /**\n * The vertical alignment of the title. Can be one of `\"top\"`,\n * `\"middle\"` and `\"bottom\"`. When middle, the subtitle behaves as\n * floating.\n *\n * @sample {highcharts} highcharts/subtitle/verticalalign/\n * Footnote at the bottom right of plot area\n * @sample {highstock} stock/chart/subtitle-footnote\n * Footnote at the bottom right of plot area\n *\n * @type {Highcharts.VerticalAlignValue}\n * @since 2.1\n * @apioption subtitle.verticalAlign\n */\n /**\n * The x position of the subtitle relative to the alignment within\n * `chart.spacingLeft` and `chart.spacingRight`.\n *\n * @sample {highcharts} highcharts/subtitle/align/\n * Footnote at right of plot area\n * @sample {highstock} stock/chart/subtitle-footnote\n * Footnote at the bottom right of plot area\n *\n * @type {number}\n * @default 0\n * @since 2.0\n * @apioption subtitle.x\n */\n /**\n * The y position of the subtitle relative to the alignment within\n * `chart.spacingTop` and `chart.spacingBottom`. By default the subtitle\n * is laid out below the title unless the title is floating.\n *\n * @sample {highcharts} highcharts/subtitle/verticalalign/\n * Footnote at the bottom right of plot area\n * @sample {highstock} stock/chart/subtitle-footnote\n * Footnote at the bottom right of plot area\n *\n * @type {number}\n * @since 2.0\n * @apioption subtitle.y\n */\n /**\n * The subtitle of the chart.\n *\n * @sample {highcharts|highstock} highcharts/subtitle/text/\n * Custom subtitle\n * @sample {highcharts|highstock} highcharts/subtitle/text-formatted/\n * Formatted and linked text.\n */\n text: '',\n /**\n * The horizontal alignment of the subtitle. Can be one of \"left\",\n * \"center\" and \"right\".\n *\n * @sample {highcharts} highcharts/subtitle/align/\n * Footnote at right of plot area\n * @sample {highstock} stock/chart/subtitle-footnote\n * Footnote at bottom right of plot area\n *\n * @type {Highcharts.AlignValue}\n * @since 2.0\n */\n align: 'center',\n /**\n * Adjustment made to the subtitle width, normally to reserve space\n * for the exporting burger menu.\n *\n * @see [title.widthAdjust](#title.widthAdjust)\n *\n * @sample highcharts/title/widthadjust/\n * Wider menu, greater padding\n *\n * @since 4.2.5\n */\n widthAdjust: -44\n },\n /**\n * The chart's caption, which will render below the chart and will be part\n * of exported charts. The caption can be updated after chart initialization\n * through the `Chart.update` or `Chart.caption.update` methods.\n *\n * @sample highcharts/caption/text/\n * A chart with a caption\n * @since 7.2.0\n */\n caption: {\n /**\n * When the caption is floating, the plot area will not move to make\n * space for it.\n *\n * @type {boolean}\n * @default false\n * @apioption caption.floating\n */\n /**\n * The margin between the caption and the plot area.\n */\n margin: 15,\n /**\n * CSS styles for the caption.\n *\n * In styled mode, the caption style is given in the\n * `.highcharts-caption` class.\n *\n * @sample {highcharts} highcharts/css/titles/\n * Styled mode\n *\n * @type {Highcharts.CSSObject}\n * @default {\"color\": \"#666666\"}\n * @apioption caption.style\n */\n /**\n * Whether to\n * [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)\n * to render the text.\n *\n * @type {boolean}\n * @default false\n * @apioption caption.useHTML\n */\n /**\n * The x position of the caption relative to the alignment within\n * `chart.spacingLeft` and `chart.spacingRight`.\n *\n * @type {number}\n * @default 0\n * @apioption caption.x\n */\n /**\n * The y position of the caption relative to the alignment within\n * `chart.spacingTop` and `chart.spacingBottom`.\n *\n * @type {number}\n * @apioption caption.y\n */\n /**\n * The caption text of the chart.\n *\n * @sample {highcharts} highcharts/caption/text/\n * Custom caption\n */\n text: '',\n /**\n * The horizontal alignment of the caption. Can be one of \"left\",\n * \"center\" and \"right\".\n *\n * @type {Highcharts.AlignValue}\n */\n align: 'left',\n /**\n * The vertical alignment of the caption. Can be one of `\"top\"`,\n * `\"middle\"` and `\"bottom\"`. When middle, the caption behaves as\n * floating.\n *\n * @type {Highcharts.VerticalAlignValue}\n */\n verticalAlign: 'bottom'\n },\n /**\n * The plotOptions is a wrapper object for config objects for each series\n * type. The config objects for each series can also be overridden for\n * each series item as given in the series array.\n *\n * Configuration options for the series are given in three levels. Options\n * for all series in a chart are given in the [plotOptions.series](\n * #plotOptions.series) object. Then options for all series of a specific\n * type are given in the plotOptions of that type, for example\n * `plotOptions.line`. Next, options for one single series are given in\n * [the series array](#series).\n */\n plotOptions: {},\n /**\n * HTML labels that can be positioned anywhere in the chart area.\n *\n * This option is deprecated since v7.1.2. Instead, use\n * [annotations](#annotations) that support labels.\n *\n * @deprecated\n * @product highcharts highstock\n */\n labels: {\n /**\n * An HTML label that can be positioned anywhere in the chart area.\n *\n * @deprecated\n * @type {Array<*>}\n * @apioption labels.items\n */\n /**\n * Inner HTML or text for the label.\n *\n * @deprecated\n * @type {string}\n * @apioption labels.items.html\n */\n /**\n * CSS styles for each label. To position the label, use left and top\n * like this:\n *\n *
style: {\n                 *     left: '100px',\n                 *     top: '100px'\n                 * }
\n *\n * @deprecated\n * @type {Highcharts.CSSObject}\n * @apioption labels.items.style\n */\n /**\n * Shared CSS styles for all labels.\n *\n * @deprecated\n * @type {Highcharts.CSSObject}\n * @default {\"color\": \"#333333\", \"position\": \"absolute\"}\n */\n style: {\n /**\n * @ignore-option\n */\n position: 'absolute',\n /**\n * @ignore-option\n */\n color: '#333333'\n }\n },\n /**\n * The legend is a box containing a symbol and name for each series\n * item or point item in the chart. Each series (or points in case\n * of pie charts) is represented by a symbol and its name in the legend.\n *\n * It is possible to override the symbol creator function and create\n * [custom legend symbols](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/studies/legend-custom-symbol/).\n *\n * @productdesc {highmaps}\n * A Highmaps legend by default contains one legend item per series, but if\n * a `colorAxis` is defined, the axis will be displayed in the legend.\n * Either as a gradient, or as multiple legend items for `dataClasses`.\n */\n legend: {\n /**\n * The background color of the legend.\n *\n * @see In styled mode, the legend background fill can be applied with\n * the `.highcharts-legend-box` class.\n *\n * @sample {highcharts} highcharts/legend/backgroundcolor/\n * Yellowish background\n * @sample {highstock} stock/legend/align/\n * Various legend options\n * @sample {highmaps} maps/legend/border-background/\n * Border and background options\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @apioption legend.backgroundColor\n */\n /**\n * The width of the drawn border around the legend.\n *\n * @see In styled mode, the legend border stroke width can be applied\n * with the `.highcharts-legend-box` class.\n *\n * @sample {highcharts} highcharts/legend/borderwidth/\n * 2px border width\n * @sample {highstock} stock/legend/align/\n * Various legend options\n * @sample {highmaps} maps/legend/border-background/\n * Border and background options\n *\n * @type {number}\n * @default 0\n * @apioption legend.borderWidth\n */\n /**\n * Enable or disable the legend. There is also a series-specific option,\n * [showInLegend](#plotOptions.series.showInLegend), that can hide the\n * series from the legend. In some series types this is `false` by\n * default, so it must set to `true` in order to show the legend for the\n * series.\n *\n * @sample {highcharts} highcharts/legend/enabled-false/ Legend disabled\n * @sample {highstock} stock/legend/align/ Various legend options\n * @sample {highmaps} maps/legend/enabled-false/ Legend disabled\n *\n * @default {highstock} false\n * @default {highmaps} true\n * @default {gantt} false\n */\n enabled: true,\n /**\n * The horizontal alignment of the legend box within the chart area.\n * Valid values are `left`, `center` and `right`.\n *\n * In the case that the legend is aligned in a corner position, the\n * `layout` option will determine whether to place it above/below\n * or on the side of the plot area.\n *\n * @sample {highcharts} highcharts/legend/align/\n * Legend at the right of the chart\n * @sample {highstock} stock/legend/align/\n * Various legend options\n * @sample {highmaps} maps/legend/alignment/\n * Legend alignment\n *\n * @type {Highcharts.AlignValue}\n * @since 2.0\n */\n align: 'center',\n /**\n * If the [layout](legend.layout) is `horizontal` and the legend items\n * span over two lines or more, whether to align the items into vertical\n * columns. Setting this to `false` makes room for more items, but will\n * look more messy.\n *\n * @since 6.1.0\n */\n alignColumns: true,\n /**\n * When the legend is floating, the plot area ignores it and is allowed\n * to be placed below it.\n *\n * @sample {highcharts} highcharts/legend/floating-false/\n * False by default\n * @sample {highcharts} highcharts/legend/floating-true/\n * True\n * @sample {highmaps} maps/legend/alignment/\n * Floating legend\n *\n * @type {boolean}\n * @default false\n * @since 2.1\n * @apioption legend.floating\n */\n /**\n * The layout of the legend items. Can be one of `horizontal` or\n * `vertical` or `proximate`. When `proximate`, the legend items will be\n * placed as close as possible to the graphs they're representing,\n * except in inverted charts or when the legend position doesn't allow\n * it.\n *\n * @sample {highcharts} highcharts/legend/layout-horizontal/\n * Horizontal by default\n * @sample {highcharts} highcharts/legend/layout-vertical/\n * Vertical\n * @sample highcharts/legend/layout-proximate\n * Labels proximate to the data\n * @sample {highstock} stock/legend/layout-horizontal/\n * Horizontal by default\n * @sample {highmaps} maps/legend/padding-itemmargin/\n * Vertical with data classes\n * @sample {highmaps} maps/legend/layout-vertical/\n * Vertical with color axis gradient\n *\n * @validvalue [\"horizontal\", \"vertical\", \"proximate\"]\n */\n layout: 'horizontal',\n /**\n * In a legend with horizontal layout, the itemDistance defines the\n * pixel distance between each item.\n *\n * @sample {highcharts} highcharts/legend/layout-horizontal/\n * 50px item distance\n * @sample {highstock} highcharts/legend/layout-horizontal/\n * 50px item distance\n *\n * @type {number}\n * @default {highcharts} 20\n * @default {highstock} 20\n * @default {highmaps} 8\n * @since 3.0.3\n * @apioption legend.itemDistance\n */\n /**\n * The pixel bottom margin for each legend item.\n *\n * @sample {highcharts|highstock} highcharts/legend/padding-itemmargin/\n * Padding and item margins demonstrated\n * @sample {highmaps} maps/legend/padding-itemmargin/\n * Padding and item margins demonstrated\n *\n * @type {number}\n * @default 0\n * @since 2.2.0\n * @apioption legend.itemMarginBottom\n */\n /**\n * The pixel top margin for each legend item.\n *\n * @sample {highcharts|highstock} highcharts/legend/padding-itemmargin/\n * Padding and item margins demonstrated\n * @sample {highmaps} maps/legend/padding-itemmargin/\n * Padding and item margins demonstrated\n *\n * @type {number}\n * @default 0\n * @since 2.2.0\n * @apioption legend.itemMarginTop\n */\n /**\n * The width for each legend item. By default the items are laid out\n * successively. In a [horizontal layout](legend.layout), if the items\n * are laid out across two rows or more, they will be vertically aligned\n * depending on the [legend.alignColumns](legend.alignColumns) option.\n *\n * @sample {highcharts} highcharts/legend/itemwidth-default/\n * Undefined by default\n * @sample {highcharts} highcharts/legend/itemwidth-80/\n * 80 for aligned legend items\n *\n * @type {number}\n * @since 2.0\n * @apioption legend.itemWidth\n */\n /**\n * A [format string](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting)\n * for each legend label. Available variables relates to properties on\n * the series, or the point in case of pies.\n *\n * @type {string}\n * @default {name}\n * @since 1.3\n * @apioption legend.labelFormat\n */\n /* eslint-disable valid-jsdoc */\n /**\n * Callback function to format each of the series' labels. The `this`\n * keyword refers to the series object, or the point object in case of\n * pie charts. By default the series or point name is printed.\n *\n * @productdesc {highmaps}\n * In Highmaps the context can also be a data class in case of a\n * `colorAxis`.\n *\n * @sample {highcharts} highcharts/legend/labelformatter/\n * Add text\n * @sample {highmaps} maps/legend/labelformatter/\n * Data classes with label formatter\n *\n * @type {Highcharts.FormatterCallbackFunction}\n */\n labelFormatter: function () {\n /** eslint-enable valid-jsdoc */\n return this.name;\n },\n /**\n * Line height for the legend items. Deprecated as of 2.1\\. Instead,\n * the line height for each item can be set using\n * `itemStyle.lineHeight`, and the padding between items using\n * `itemMarginTop` and `itemMarginBottom`.\n *\n * @sample {highcharts} highcharts/legend/lineheight/\n * Setting padding\n *\n * @deprecated\n *\n * @type {number}\n * @default 16\n * @since 2.0\n * @product highcharts gantt\n * @apioption legend.lineHeight\n */\n /**\n * If the plot area sized is calculated automatically and the legend is\n * not floating, the legend margin is the space between the legend and\n * the axis labels or plot area.\n *\n * @sample {highcharts} highcharts/legend/margin-default/\n * 12 pixels by default\n * @sample {highcharts} highcharts/legend/margin-30/\n * 30 pixels\n *\n * @type {number}\n * @default 12\n * @since 2.1\n * @apioption legend.margin\n */\n /**\n * Maximum pixel height for the legend. When the maximum height is\n * extended, navigation will show.\n *\n * @type {number}\n * @since 2.3.0\n * @apioption legend.maxHeight\n */\n /**\n * The color of the drawn border around the legend.\n *\n * @see In styled mode, the legend border stroke can be applied with the\n * `.highcharts-legend-box` class.\n *\n * @sample {highcharts} highcharts/legend/bordercolor/\n * Brown border\n * @sample {highstock} stock/legend/align/\n * Various legend options\n * @sample {highmaps} maps/legend/border-background/\n * Border and background options\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n borderColor: '#999999',\n /**\n * The border corner radius of the legend.\n *\n * @sample {highcharts} highcharts/legend/borderradius-default/\n * Square by default\n * @sample {highcharts} highcharts/legend/borderradius-round/\n * 5px rounded\n * @sample {highmaps} maps/legend/border-background/\n * Border and background options\n */\n borderRadius: 0,\n /**\n * Options for the paging or navigation appearing when the legend is\n * overflown. Navigation works well on screen, but not in static\n * exported images. One way of working around that is to\n * [increase the chart height in\n * export](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/legend/navigation-enabled-false/).\n */\n navigation: {\n /**\n * How to animate the pages when navigating up or down. A value of\n * `true` applies the default navigation given in the\n * `chart.animation` option. Additional options can be given as an\n * object containing values for easing and duration.\n *\n * @sample {highcharts} highcharts/legend/navigation/\n * Legend page navigation demonstrated\n * @sample {highstock} highcharts/legend/navigation/\n * Legend page navigation demonstrated\n *\n * @type {boolean|Highcharts.AnimationOptionsObject}\n * @default true\n * @since 2.2.4\n * @apioption legend.navigation.animation\n */\n /**\n * The pixel size of the up and down arrows in the legend paging\n * navigation.\n *\n * @sample {highcharts} highcharts/legend/navigation/\n * Legend page navigation demonstrated\n * @sample {highstock} highcharts/legend/navigation/\n * Legend page navigation demonstrated\n *\n * @type {number}\n * @default 12\n * @since 2.2.4\n * @apioption legend.navigation.arrowSize\n */\n /**\n * Whether to enable the legend navigation. In most cases, disabling\n * the navigation results in an unwanted overflow.\n *\n * See also the [adapt chart to legend](\n * https://www.highcharts.com/products/plugin-registry/single/8/Adapt-Chart-To-Legend)\n * plugin for a solution to extend the chart height to make room for\n * the legend, optionally in exported charts only.\n *\n * @type {boolean}\n * @default true\n * @since 4.2.4\n * @apioption legend.navigation.enabled\n */\n /**\n * Text styles for the legend page navigation.\n *\n * @see In styled mode, the navigation items are styled with the\n * `.highcharts-legend-navigation` class.\n *\n * @sample {highcharts} highcharts/legend/navigation/\n * Legend page navigation demonstrated\n * @sample {highstock} highcharts/legend/navigation/\n * Legend page navigation demonstrated\n *\n * @type {Highcharts.CSSObject}\n * @since 2.2.4\n * @apioption legend.navigation.style\n */\n /**\n * The color for the active up or down arrow in the legend page\n * navigation.\n *\n * @see In styled mode, the active arrow be styled with the\n * `.highcharts-legend-nav-active` class.\n *\n * @sample {highcharts} highcharts/legend/navigation/\n * Legend page navigation demonstrated\n * @sample {highstock} highcharts/legend/navigation/\n * Legend page navigation demonstrated\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @since 2.2.4\n */\n activeColor: '#003399',\n /**\n * The color of the inactive up or down arrow in the legend page\n * navigation. .\n *\n * @see In styled mode, the inactive arrow be styled with the\n * `.highcharts-legend-nav-inactive` class.\n *\n * @sample {highcharts} highcharts/legend/navigation/\n * Legend page navigation demonstrated\n * @sample {highstock} highcharts/legend/navigation/\n * Legend page navigation demonstrated\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @since 2.2.4\n */\n inactiveColor: '#cccccc'\n },\n /**\n * The inner padding of the legend box.\n *\n * @sample {highcharts|highstock} highcharts/legend/padding-itemmargin/\n * Padding and item margins demonstrated\n * @sample {highmaps} maps/legend/padding-itemmargin/\n * Padding and item margins demonstrated\n *\n * @type {number}\n * @default 8\n * @since 2.2.0\n * @apioption legend.padding\n */\n /**\n * Whether to reverse the order of the legend items compared to the\n * order of the series or points as defined in the configuration object.\n *\n * @see [yAxis.reversedStacks](#yAxis.reversedStacks),\n * [series.legendIndex](#series.legendIndex)\n *\n * @sample {highcharts} highcharts/legend/reversed/\n * Stacked bar with reversed legend\n *\n * @type {boolean}\n * @default false\n * @since 1.2.5\n * @apioption legend.reversed\n */\n /**\n * Whether to show the symbol on the right side of the text rather than\n * the left side. This is common in Arabic and Hebraic.\n *\n * @sample {highcharts} highcharts/legend/rtl/\n * Symbol to the right\n *\n * @type {boolean}\n * @default false\n * @since 2.2\n * @apioption legend.rtl\n */\n /**\n * CSS styles for the legend area. In the 1.x versions the position\n * of the legend area was determined by CSS. In 2.x, the position is\n * determined by properties like `align`, `verticalAlign`, `x` and `y`,\n * but the styles are still parsed for backwards compatibility.\n *\n * @deprecated\n *\n * @type {Highcharts.CSSObject}\n * @product highcharts highstock\n * @apioption legend.style\n */\n /**\n * CSS styles for each legend item. Only a subset of CSS is supported,\n * notably those options related to text. The default `textOverflow`\n * property makes long texts truncate. Set it to `undefined` to wrap\n * text instead. A `width` property can be added to control the text\n * width.\n *\n * @see In styled mode, the legend items can be styled with the\n * `.highcharts-legend-item` class.\n *\n * @sample {highcharts} highcharts/legend/itemstyle/\n * Bold black text\n * @sample {highmaps} maps/legend/itemstyle/\n * Item text styles\n *\n * @type {Highcharts.CSSObject}\n * @default {\"color\": \"#333333\", \"cursor\": \"pointer\", \"fontSize\": \"12px\", \"fontWeight\": \"bold\", \"textOverflow\": \"ellipsis\"}\n */\n itemStyle: {\n /**\n * @ignore\n */\n color: '#333333',\n /**\n * @ignore\n */\n cursor: 'pointer',\n /**\n * @ignore\n */\n fontSize: '12px',\n /**\n * @ignore\n */\n fontWeight: 'bold',\n /**\n * @ignore\n */\n textOverflow: 'ellipsis'\n },\n /**\n * CSS styles for each legend item in hover mode. Only a subset of\n * CSS is supported, notably those options related to text. Properties\n * are inherited from `style` unless overridden here.\n *\n * @see In styled mode, the hovered legend items can be styled with\n * the `.highcharts-legend-item:hover` pesudo-class.\n *\n * @sample {highcharts} highcharts/legend/itemhoverstyle/\n * Red on hover\n * @sample {highmaps} maps/legend/itemstyle/\n * Item text styles\n *\n * @type {Highcharts.CSSObject}\n * @default {\"color\": \"#000000\"}\n */\n itemHoverStyle: {\n /**\n * @ignore\n */\n color: '#000000'\n },\n /**\n * CSS styles for each legend item when the corresponding series or\n * point is hidden. Only a subset of CSS is supported, notably those\n * options related to text. Properties are inherited from `style`\n * unless overridden here.\n *\n * @see In styled mode, the hidden legend items can be styled with\n * the `.highcharts-legend-item-hidden` class.\n *\n * @sample {highcharts} highcharts/legend/itemhiddenstyle/\n * Darker gray color\n *\n * @type {Highcharts.CSSObject}\n * @default {\"color\": \"#cccccc\"}\n */\n itemHiddenStyle: {\n /**\n * @ignore\n */\n color: '#cccccc'\n },\n /**\n * Whether to apply a drop shadow to the legend. A `backgroundColor`\n * also needs to be applied for this to take effect. The shadow can be\n * an object configuration containing `color`, `offsetX`, `offsetY`,\n * `opacity` and `width`.\n *\n * @sample {highcharts} highcharts/legend/shadow/\n * White background and drop shadow\n * @sample {highstock} stock/legend/align/\n * Various legend options\n * @sample {highmaps} maps/legend/border-background/\n * Border and background options\n *\n * @type {boolean|Highcharts.CSSObject}\n */\n shadow: false,\n /**\n * Default styling for the checkbox next to a legend item when\n * `showCheckbox` is true.\n *\n * @type {Highcharts.CSSObject}\n * @default {\"width\": \"13px\", \"height\": \"13px\", \"position\":\"absolute\"}\n */\n itemCheckboxStyle: {\n /**\n * @ignore\n */\n position: 'absolute',\n /**\n * @ignore\n */\n width: '13px',\n /**\n * @ignore\n */\n height: '13px'\n },\n // itemWidth: undefined,\n /**\n * When this is true, the legend symbol width will be the same as\n * the symbol height, which in turn defaults to the font size of the\n * legend items.\n *\n * @since 5.0.0\n */\n squareSymbol: true,\n /**\n * The pixel height of the symbol for series types that use a rectangle\n * in the legend. Defaults to the font size of legend items.\n *\n * @productdesc {highmaps}\n * In Highmaps, when the symbol is the gradient of a vertical color\n * axis, the height defaults to 200.\n *\n * @sample {highmaps} maps/legend/layout-vertical-sized/\n * Sized vertical gradient\n * @sample {highmaps} maps/legend/padding-itemmargin/\n * No distance between data classes\n *\n * @type {number}\n * @since 3.0.8\n * @apioption legend.symbolHeight\n */\n /**\n * The border radius of the symbol for series types that use a rectangle\n * in the legend. Defaults to half the `symbolHeight`.\n *\n * @sample {highcharts} highcharts/legend/symbolradius/\n * Round symbols\n * @sample {highstock} highcharts/legend/symbolradius/\n * Round symbols\n * @sample {highmaps} highcharts/legend/symbolradius/\n * Round symbols\n *\n * @type {number}\n * @since 3.0.8\n * @apioption legend.symbolRadius\n */\n /**\n * The pixel width of the legend item symbol. When the `squareSymbol`\n * option is set, this defaults to the `symbolHeight`, otherwise 16.\n *\n * @productdesc {highmaps}\n * In Highmaps, when the symbol is the gradient of a horizontal color\n * axis, the width defaults to 200.\n *\n * @sample {highcharts} highcharts/legend/symbolwidth/\n * Greater symbol width and padding\n * @sample {highmaps} maps/legend/padding-itemmargin/\n * Padding and item margins demonstrated\n * @sample {highmaps} maps/legend/layout-vertical-sized/\n * Sized vertical gradient\n *\n * @type {number}\n * @apioption legend.symbolWidth\n */\n /**\n * Whether to [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)\n * to render the legend item texts.\n *\n * Prior to 4.1.7, when using HTML, [legend.navigation](\n * #legend.navigation) was disabled.\n *\n * @type {boolean}\n * @default false\n * @apioption legend.useHTML\n */\n /**\n * The width of the legend box. If a number is set, it translates to\n * pixels. Since v7.0.2 it allows setting a percent string of the full\n * chart width, for example `40%`.\n *\n * Defaults to the full chart width from legends below or above the\n * chart, half the chart width for legends to the left and right.\n *\n * @sample {highcharts} highcharts/legend/width/\n * Aligned to the plot area\n * @sample {highcharts} highcharts/legend/width-percent/\n * A percent of the chart width\n *\n * @type {number|string}\n * @since 2.0\n * @apioption legend.width\n */\n /**\n * The pixel padding between the legend item symbol and the legend\n * item text.\n *\n * @sample {highcharts} highcharts/legend/symbolpadding/\n * Greater symbol width and padding\n */\n symbolPadding: 5,\n /**\n * The vertical alignment of the legend box. Can be one of `top`,\n * `middle` or `bottom`. Vertical position can be further determined\n * by the `y` option.\n *\n * In the case that the legend is aligned in a corner position, the\n * `layout` option will determine whether to place it above/below\n * or on the side of the plot area.\n *\n * When the [layout](#legend.layout) option is `proximate`, the\n * `verticalAlign` option doesn't apply.\n *\n * @sample {highcharts} highcharts/legend/verticalalign/\n * Legend 100px from the top of the chart\n * @sample {highstock} stock/legend/align/\n * Various legend options\n * @sample {highmaps} maps/legend/alignment/\n * Legend alignment\n *\n * @type {Highcharts.VerticalAlignValue}\n * @since 2.0\n */\n verticalAlign: 'bottom',\n // width: undefined,\n /**\n * The x offset of the legend relative to its horizontal alignment\n * `align` within chart.spacingLeft and chart.spacingRight. Negative\n * x moves it to the left, positive x moves it to the right.\n *\n * @sample {highcharts} highcharts/legend/width/\n * Aligned to the plot area\n *\n * @since 2.0\n */\n x: 0,\n /**\n * The vertical offset of the legend relative to it's vertical alignment\n * `verticalAlign` within chart.spacingTop and chart.spacingBottom.\n * Negative y moves it up, positive y moves it down.\n *\n * @sample {highcharts} highcharts/legend/verticalalign/\n * Legend 100px from the top of the chart\n * @sample {highstock} stock/legend/align/\n * Various legend options\n * @sample {highmaps} maps/legend/alignment/\n * Legend alignment\n *\n * @since 2.0\n */\n y: 0,\n /**\n * A title to be added on top of the legend.\n *\n * @sample {highcharts} highcharts/legend/title/\n * Legend title\n * @sample {highmaps} maps/legend/alignment/\n * Legend with title\n *\n * @since 3.0\n */\n title: {\n /**\n * A text or HTML string for the title.\n *\n * @type {string}\n * @since 3.0\n * @apioption legend.title.text\n */\n /**\n * Generic CSS styles for the legend title.\n *\n * @see In styled mode, the legend title is styled with the\n * `.highcharts-legend-title` class.\n *\n * @type {Highcharts.CSSObject}\n * @default {\"fontWeight\": \"bold\"}\n * @since 3.0\n */\n style: {\n /**\n * @ignore\n */\n fontWeight: 'bold'\n }\n }\n },\n /**\n * The loading options control the appearance of the loading screen\n * that covers the plot area on chart operations. This screen only\n * appears after an explicit call to `chart.showLoading()`. It is a\n * utility for developers to communicate to the end user that something\n * is going on, for example while retrieving new data via an XHR connection.\n * The \"Loading...\" text itself is not part of this configuration\n * object, but part of the `lang` object.\n */\n loading: {\n /**\n * The duration in milliseconds of the fade out effect.\n *\n * @sample highcharts/loading/hideduration/\n * Fade in and out over a second\n *\n * @type {number}\n * @default 100\n * @since 1.2.0\n * @apioption loading.hideDuration\n */\n /**\n * The duration in milliseconds of the fade in effect.\n *\n * @sample highcharts/loading/hideduration/\n * Fade in and out over a second\n *\n * @type {number}\n * @default 100\n * @since 1.2.0\n * @apioption loading.showDuration\n */\n /**\n * CSS styles for the loading label `span`.\n *\n * @see In styled mode, the loading label is styled with the\n * `.highcharts-loading-inner` class.\n *\n * @sample {highcharts|highmaps} highcharts/loading/labelstyle/\n * Vertically centered\n * @sample {highstock} stock/loading/general/\n * Label styles\n *\n * @type {Highcharts.CSSObject}\n * @default {\"fontWeight\": \"bold\", \"position\": \"relative\", \"top\": \"45%\"}\n * @since 1.2.0\n */\n labelStyle: {\n /**\n * @ignore\n */\n fontWeight: 'bold',\n /**\n * @ignore\n */\n position: 'relative',\n /**\n * @ignore\n */\n top: '45%'\n },\n /**\n * CSS styles for the loading screen that covers the plot area.\n *\n * In styled mode, the loading label is styled with the\n * `.highcharts-loading` class.\n *\n * @sample {highcharts|highmaps} highcharts/loading/style/\n * Gray plot area, white text\n * @sample {highstock} stock/loading/general/\n * Gray plot area, white text\n *\n * @type {Highcharts.CSSObject}\n * @default {\"position\": \"absolute\", \"backgroundColor\": \"#ffffff\", \"opacity\": 0.5, \"textAlign\": \"center\"}\n * @since 1.2.0\n */\n style: {\n /**\n * @ignore\n */\n position: 'absolute',\n /**\n * @ignore\n */\n backgroundColor: '#ffffff',\n /**\n * @ignore\n */\n opacity: 0.5,\n /**\n * @ignore\n */\n textAlign: 'center'\n }\n },\n /**\n * Options for the tooltip that appears when the user hovers over a\n * series or point.\n */\n tooltip: {\n /**\n * The color of the tooltip border. When `undefined`, the border takes\n * the color of the corresponding series or point.\n *\n * @sample {highcharts} highcharts/tooltip/bordercolor-default/\n * Follow series by default\n * @sample {highcharts} highcharts/tooltip/bordercolor-black/\n * Black border\n * @sample {highstock} stock/tooltip/general/\n * Styled tooltip\n * @sample {highmaps} maps/tooltip/background-border/\n * Background and border demo\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @apioption tooltip.borderColor\n */\n /**\n * A CSS class name to apply to the tooltip's container div,\n * allowing unique CSS styling for each chart.\n *\n * @type {string}\n * @apioption tooltip.className\n */\n /**\n * Since 4.1, the crosshair definitions are moved to the Axis object\n * in order for a better separation from the tooltip. See\n * [xAxis.crosshair](#xAxis.crosshair)
.\n *\n * @sample {highcharts} highcharts/tooltip/crosshairs-x/\n * Enable a crosshair for the x value\n *\n * @deprecated\n *\n * @type {*}\n * @default true\n * @apioption tooltip.crosshairs\n */\n /**\n * Distance from point to tooltip in pixels.\n *\n * @type {number}\n * @default 16\n * @apioption tooltip.distance\n */\n /**\n * Whether the tooltip should follow the mouse as it moves across\n * columns, pie slices and other point types with an extent.\n * By default it behaves this way for pie, polygon, map, sankey\n * and wordcloud series by override in the `plotOptions`\n * for those series types.\n *\n * For touch moves to behave the same way, [followTouchMove](\n * #tooltip.followTouchMove) must be `true` also.\n *\n * @type {boolean}\n * @default {highcharts} false\n * @default {highstock} false\n * @default {highmaps} true\n * @since 3.0\n * @apioption tooltip.followPointer\n */\n /**\n * Whether the tooltip should update as the finger moves on a touch\n * device. If this is `true` and [chart.panning](#chart.panning) is\n * set,`followTouchMove` will take over one-finger touches, so the user\n * needs to use two fingers for zooming and panning.\n *\n * Note the difference to [followPointer](#tooltip.followPointer) that\n * only defines the _position_ of the tooltip. If `followPointer` is\n * false in for example a column series, the tooltip will show above or\n * below the column, but as `followTouchMove` is true, the tooltip will\n * jump from column to column as the user swipes across the plot area.\n *\n * @type {boolean}\n * @default {highcharts} true\n * @default {highstock} true\n * @default {highmaps} false\n * @since 3.0.1\n * @apioption tooltip.followTouchMove\n */\n /**\n * Callback function to format the text of the tooltip from scratch. In\n * case of single or [shared](#tooltip.shared) tooltips, a string should\n * be returned. In case of [split](#tooltip.split) tooltips, it should\n * return an array where the first item is the header, and subsequent\n * items are mapped to the points. Return `false` to disable tooltip for\n * a specific point on series.\n *\n * A subset of HTML is supported. Unless `useHTML` is true, the HTML of\n * the tooltip is parsed and converted to SVG, therefore this isn't a\n * complete HTML renderer. The following tags are supported: ``,\n * ``, ``, ``, `
`, ``. Spans can be styled\n * with a `style` attribute, but only text-related CSS that is shared\n * with SVG is handled.\n *\n * The available data in the formatter differ a bit depending on whether\n * the tooltip is shared or split, or belongs to a single point. In a\n * shared/split tooltip, all properties except `x`, which is common for\n * all points, are kept in an array, `this.points`.\n *\n * Available data are:\n *\n *
\n *\n *
this.percentage (not shared) / this.points[i].percentage (shared)\n *
\n *\n *
Stacked series and pies only. The point's percentage of the\n * total.\n *
\n *\n *
this.point (not shared) / this.points[i].point (shared)
\n *\n *
The point object. The point name, if defined, is available\n * through `this.point.name`.
\n *\n *
this.points
\n *\n *
In a shared tooltip, this is an array containing all other\n * properties for each point.
\n *\n *
this.series (not shared) / this.points[i].series (shared)
\n *\n *
The series object. The series name is available through\n * `this.series.name`.
\n *\n *
this.total (not shared) / this.points[i].total (shared)
\n *\n *
Stacked series only. The total value at this point's x value.\n *
\n *\n *
this.x
\n *\n *
The x value. This property is the same regardless of the tooltip\n * being shared or not.
\n *\n *
this.y (not shared) / this.points[i].y (shared)
\n *\n *
The y value.
\n *\n *
\n *\n * @sample {highcharts} highcharts/tooltip/formatter-simple/\n * Simple string formatting\n * @sample {highcharts} highcharts/tooltip/formatter-shared/\n * Formatting with shared tooltip\n * @sample {highcharts|highstock} highcharts/tooltip/formatter-split/\n * Formatting with split tooltip\n * @sample highcharts/tooltip/formatter-conditional-default/\n * Extending default formatter\n * @sample {highstock} stock/tooltip/formatter/\n * Formatting with shared tooltip\n * @sample {highmaps} maps/tooltip/formatter/\n * String formatting\n *\n * @type {Highcharts.TooltipFormatterCallbackFunction}\n * @apioption tooltip.formatter\n */\n /**\n * Callback function to format the text of the tooltip for\n * visible null points.\n * Works analogously to [formatter](#tooltip.formatter).\n *\n * @sample highcharts/plotoptions/series-nullformat\n * Format data label and tooltip for null point.\n *\n * @type {Highcharts.TooltipFormatterCallbackFunction}\n * @apioption tooltip.nullFormatter\n */\n /**\n * The number of milliseconds to wait until the tooltip is hidden when\n * mouse out from a point or chart.\n *\n * @type {number}\n * @default 500\n * @since 3.0\n * @apioption tooltip.hideDelay\n */\n /**\n * Whether to allow the tooltip to render outside the chart's SVG\n * element box. By default (`false`), the tooltip is rendered within the\n * chart's SVG element, which results in the tooltip being aligned\n * inside the chart area. For small charts, this may result in clipping\n * or overlapping. When `true`, a separate SVG element is created and\n * overlaid on the page, allowing the tooltip to be aligned inside the\n * page itself.\n *\n * Defaults to `true` if `chart.scrollablePlotArea` is activated,\n * otherwise `false`.\n *\n * @sample highcharts/tooltip/outside\n * Small charts with tooltips outside\n *\n * @type {boolean|undefined}\n * @default undefined\n * @since 6.1.1\n * @apioption tooltip.outside\n */\n /**\n * A callback function for formatting the HTML output for a single point\n * in the tooltip. Like the `pointFormat` string, but with more\n * flexibility.\n *\n * @type {Highcharts.FormatterCallbackFunction}\n * @since 4.1.0\n * @context Highcharts.Point\n * @apioption tooltip.pointFormatter\n */\n /**\n * A callback function to place the tooltip in a default position. The\n * callback receives three parameters: `labelWidth`, `labelHeight` and\n * `point`, where point contains values for `plotX` and `plotY` telling\n * where the reference point is in the plot area. Add `chart.plotLeft`\n * and `chart.plotTop` to get the full coordinates.\n *\n * Since v7, when [tooltip.split](#tooltip.split) option is enabled,\n * positioner is called for each of the boxes separately, including\n * xAxis header. xAxis header is not a point, instead `point` argument\n * contains info:\n * `{ plotX: Number, plotY: Number, isHeader: Boolean }`\n *\n *\n * The return should be an object containing x and y values, for example\n * `{ x: 100, y: 100 }`.\n *\n * @sample {highcharts} highcharts/tooltip/positioner/\n * A fixed tooltip position\n * @sample {highstock} stock/tooltip/positioner/\n * A fixed tooltip position on top of the chart\n * @sample {highmaps} maps/tooltip/positioner/\n * A fixed tooltip position\n * @sample {highstock} stock/tooltip/split-positioner/\n * Split tooltip with fixed positions\n *\n * @type {Highcharts.TooltipPositionerCallbackFunction}\n * @since 2.2.4\n * @apioption tooltip.positioner\n */\n /**\n * The name of a symbol to use for the border around the tooltip. Can\n * be one of: `\"callout\"`, `\"circle\"`, or `\"square\"`. When\n * [tooltip.split](#tooltip.split)\n * option is enabled, shape is applied to all boxes except header, which\n * is controlled by\n * [tooltip.headerShape](#tooltip.headerShape).\n *\n * Custom callbacks for symbol path generation can also be added to\n * `Highcharts.SVGRenderer.prototype.symbols` the same way as for\n * [series.marker.symbol](plotOptions.line.marker.symbol).\n *\n * @type {Highcharts.TooltipShapeValue}\n * @default callout\n * @since 4.0\n * @apioption tooltip.shape\n */\n /**\n * The name of a symbol to use for the border around the tooltip\n * header. Applies only when [tooltip.split](#tooltip.split) is\n * enabled.\n *\n * Custom callbacks for symbol path generation can also be added to\n * `Highcharts.SVGRenderer.prototype.symbols` the same way as for\n * [series.marker.symbol](plotOptions.line.marker.symbol).\n *\n * @see [tooltip.shape](#tooltip.shape)\n *\n * @sample {highstock} stock/tooltip/split-positioner/\n * Different shapes for header and split boxes\n *\n * @type {Highcharts.TooltipShapeValue}\n * @default callout\n * @validvalue [\"callout\", \"square\"]\n * @since 7.0\n * @apioption tooltip.headerShape\n */\n /**\n * When the tooltip is shared, the entire plot area will capture mouse\n * movement or touch events. Tooltip texts for series types with ordered\n * data (not pie, scatter, flags etc) will be shown in a single bubble.\n * This is recommended for single series charts and for tablet/mobile\n * optimized charts.\n *\n * See also [tooltip.split](#tooltip.split), that is better suited for\n * charts with many series, especially line-type series. The\n * `tooltip.split` option takes precedence over `tooltip.shared`.\n *\n * @sample {highcharts} highcharts/tooltip/shared-false/\n * False by default\n * @sample {highcharts} highcharts/tooltip/shared-true/\n * True\n * @sample {highcharts} highcharts/tooltip/shared-x-crosshair/\n * True with x axis crosshair\n * @sample {highcharts} highcharts/tooltip/shared-true-mixed-types/\n * True with mixed series types\n *\n * @type {boolean}\n * @default false\n * @since 2.1\n * @product highcharts highstock\n * @apioption tooltip.shared\n */\n /**\n * Split the tooltip into one label per series, with the header close\n * to the axis. This is recommended over [shared](#tooltip.shared)\n * tooltips for charts with multiple line series, generally making them\n * easier to read. This option takes precedence over `tooltip.shared`.\n *\n * @productdesc {highstock} In Highstock, tooltips are split by default\n * since v6.0.0. Stock charts typically contain multi-dimension points\n * and multiple panes, making split tooltips the preferred layout over\n * the previous `shared` tooltip.\n *\n * @sample highcharts/tooltip/split/\n * Split tooltip\n * @sample {highcharts|highstock} highcharts/tooltip/formatter-split/\n * Split tooltip and custom formatter callback\n *\n * @type {boolean}\n * @default {highcharts} false\n * @default {highstock} true\n * @since 5.0.0\n * @product highcharts highstock\n * @apioption tooltip.split\n */\n /**\n * Use HTML to render the contents of the tooltip instead of SVG. Using\n * HTML allows advanced formatting like tables and images in the\n * tooltip. It is also recommended for rtl languages as it works around\n * rtl bugs in early Firefox.\n *\n * @sample {highcharts|highstock} highcharts/tooltip/footerformat/\n * A table for value alignment\n * @sample {highcharts|highstock} highcharts/tooltip/fullhtml/\n * Full HTML tooltip\n * @sample {highmaps} maps/tooltip/usehtml/\n * Pure HTML tooltip\n *\n * @type {boolean}\n * @default false\n * @since 2.2\n * @apioption tooltip.useHTML\n */\n /**\n * How many decimals to show in each series' y value. This is\n * overridable in each series' tooltip options object. The default is to\n * preserve all decimals.\n *\n * @sample {highcharts|highstock} highcharts/tooltip/valuedecimals/\n * Set decimals, prefix and suffix for the value\n * @sample {highmaps} maps/tooltip/valuedecimals/\n * Set decimals, prefix and suffix for the value\n *\n * @type {number}\n * @since 2.2\n * @apioption tooltip.valueDecimals\n */\n /**\n * A string to prepend to each series' y value. Overridable in each\n * series' tooltip options object.\n *\n * @sample {highcharts|highstock} highcharts/tooltip/valuedecimals/\n * Set decimals, prefix and suffix for the value\n * @sample {highmaps} maps/tooltip/valuedecimals/\n * Set decimals, prefix and suffix for the value\n *\n * @type {string}\n * @since 2.2\n * @apioption tooltip.valuePrefix\n */\n /**\n * A string to append to each series' y value. Overridable in each\n * series' tooltip options object.\n *\n * @sample {highcharts|highstock} highcharts/tooltip/valuedecimals/\n * Set decimals, prefix and suffix for the value\n * @sample {highmaps} maps/tooltip/valuedecimals/\n * Set decimals, prefix and suffix for the value\n *\n * @type {string}\n * @since 2.2\n * @apioption tooltip.valueSuffix\n */\n /**\n * The format for the date in the tooltip header if the X axis is a\n * datetime axis. The default is a best guess based on the smallest\n * distance between points in the chart.\n *\n * @sample {highcharts} highcharts/tooltip/xdateformat/\n * A different format\n *\n * @type {string}\n * @product highcharts highstock gantt\n * @apioption tooltip.xDateFormat\n */\n /**\n * How many decimals to show for the `point.change` value when the\n * `series.compare` option is set. This is overridable in each series'\n * tooltip options object. The default is to preserve all decimals.\n *\n * @type {number}\n * @since 1.0.1\n * @product highstock\n * @apioption tooltip.changeDecimals\n */\n /**\n * Enable or disable the tooltip.\n *\n * @sample {highcharts} highcharts/tooltip/enabled/\n * Disabled\n * @sample {highcharts} highcharts/plotoptions/series-point-events-mouseover/\n * Disable tooltip and show values on chart instead\n */\n enabled: true,\n /**\n * Enable or disable animation of the tooltip.\n *\n * @type {boolean}\n * @default true\n * @since 2.3.0\n */\n animation: svg,\n /**\n * The radius of the rounded border corners.\n *\n * @sample {highcharts} highcharts/tooltip/bordercolor-default/\n * 5px by default\n * @sample {highcharts} highcharts/tooltip/borderradius-0/\n * Square borders\n * @sample {highmaps} maps/tooltip/background-border/\n * Background and border demo\n */\n borderRadius: 3,\n /**\n * For series on a datetime axes, the date format in the tooltip's\n * header will by default be guessed based on the closest data points.\n * This member gives the default string representations used for\n * each unit. For an overview of the replacement codes, see\n * [dateFormat](/class-reference/Highcharts#dateFormat).\n *\n * @see [xAxis.dateTimeLabelFormats](#xAxis.dateTimeLabelFormats)\n *\n * @type {Highcharts.Dictionary}\n * @product highcharts highstock gantt\n */\n dateTimeLabelFormats: {\n millisecond: '%A, %b %e, %H:%M:%S.%L',\n second: '%A, %b %e, %H:%M:%S',\n minute: '%A, %b %e, %H:%M',\n hour: '%A, %b %e, %H:%M',\n day: '%A, %b %e, %Y',\n week: 'Week from %A, %b %e, %Y',\n month: '%B %Y',\n year: '%Y'\n },\n /**\n * A string to append to the tooltip format.\n *\n * @sample {highcharts} highcharts/tooltip/footerformat/\n * A table for value alignment\n * @sample {highmaps} maps/tooltip/format/\n * Format demo\n *\n * @since 2.2\n */\n footerFormat: '',\n /**\n * Padding inside the tooltip, in pixels.\n *\n * @since 5.0.0\n */\n padding: 8,\n /**\n * Proximity snap for graphs or single points. It defaults to 10 for\n * mouse-powered devices and 25 for touch devices.\n *\n * Note that in most cases the whole plot area captures the mouse\n * movement, and in these cases `tooltip.snap` doesn't make sense. This\n * applies when [stickyTracking](#plotOptions.series.stickyTracking)\n * is `true` (default) and when the tooltip is [shared](#tooltip.shared)\n * or [split](#tooltip.split).\n *\n * @sample {highcharts} highcharts/tooltip/bordercolor-default/\n * 10 px by default\n * @sample {highcharts} highcharts/tooltip/snap-50/\n * 50 px on graph\n *\n * @type {number}\n * @default 10/25\n * @since 1.2.0\n * @product highcharts highstock\n */\n snap: isTouchDevice ? 25 : 10,\n /**\n * The HTML of the tooltip header line. Variables are enclosed by\n * curly brackets. Available variables are `point.key`, `series.name`,\n * `series.color` and other members from the `point` and `series`\n * objects. The `point.key` variable contains the category name, x\n * value or datetime string depending on the type of axis. For datetime\n * axes, the `point.key` date format can be set using\n * `tooltip.xDateFormat`.\n *\n * @sample {highcharts} highcharts/tooltip/footerformat/\n * An HTML table in the tooltip\n * @sample {highstock} highcharts/tooltip/footerformat/\n * An HTML table in the tooltip\n * @sample {highmaps} maps/tooltip/format/\n * Format demo\n *\n * @type {string}\n * @apioption tooltip.headerFormat\n */\n headerFormat: '{point.key}
',\n /**\n * The HTML of the null point's line in the tooltip. Works analogously\n * to [pointFormat](#tooltip.pointFormat).\n *\n * @sample {highcharts} highcharts/plotoptions/series-nullformat\n * Format data label and tooltip for null point.\n *\n * @type {string}\n * @apioption tooltip.nullFormat\n */\n /**\n * The HTML of the point's line in the tooltip. Variables are enclosed\n * by curly brackets. Available variables are point.x, point.y, series.\n * name and series.color and other properties on the same form.\n * Furthermore, `point.y` can be extended by the `tooltip.valuePrefix`\n * and `tooltip.valueSuffix` variables. This can also be overridden for\n * each series, which makes it a good hook for displaying units.\n *\n * In styled mode, the dot is colored by a class name rather\n * than the point color.\n *\n * @sample {highcharts} highcharts/tooltip/pointformat/\n * A different point format with value suffix\n * @sample {highmaps} maps/tooltip/format/\n * Format demo\n *\n * @type {string}\n * @default \\u25CF {series.name}: {point.y}
\n * @since 2.2\n * @apioption tooltip.pointFormat\n */\n pointFormat: '\\u25CF {series.name}: {point.y}
',\n /**\n * The background color or gradient for the tooltip.\n *\n * In styled mode, the stroke width is set in the\n * `.highcharts-tooltip-box` class.\n *\n * @sample {highcharts} highcharts/tooltip/backgroundcolor-solid/\n * Yellowish background\n * @sample {highcharts} highcharts/tooltip/backgroundcolor-gradient/\n * Gradient\n * @sample {highcharts} highcharts/css/tooltip-border-background/\n * Tooltip in styled mode\n * @sample {highstock} stock/tooltip/general/\n * Custom tooltip\n * @sample {highstock} highcharts/css/tooltip-border-background/\n * Tooltip in styled mode\n * @sample {highmaps} maps/tooltip/background-border/\n * Background and border demo\n * @sample {highmaps} highcharts/css/tooltip-border-background/\n * Tooltip in styled mode\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n backgroundColor: color('#f7f7f7')\n .setOpacity(0.85).get(),\n /**\n * The pixel width of the tooltip border.\n *\n * In styled mode, the stroke width is set in the\n * `.highcharts-tooltip-box` class.\n *\n * @sample {highcharts} highcharts/tooltip/bordercolor-default/\n * 2px by default\n * @sample {highcharts} highcharts/tooltip/borderwidth/\n * No border (shadow only)\n * @sample {highcharts} highcharts/css/tooltip-border-background/\n * Tooltip in styled mode\n * @sample {highstock} stock/tooltip/general/\n * Custom tooltip\n * @sample {highstock} highcharts/css/tooltip-border-background/\n * Tooltip in styled mode\n * @sample {highmaps} maps/tooltip/background-border/\n * Background and border demo\n * @sample {highmaps} highcharts/css/tooltip-border-background/\n * Tooltip in styled mode\n */\n borderWidth: 1,\n /**\n * Whether to apply a drop shadow to the tooltip.\n *\n * @sample {highcharts} highcharts/tooltip/bordercolor-default/\n * True by default\n * @sample {highcharts} highcharts/tooltip/shadow/\n * False\n * @sample {highmaps} maps/tooltip/positioner/\n * Fixed tooltip position, border and shadow disabled\n *\n * @type {boolean|Highcharts.ShadowOptionsObject}\n */\n shadow: true,\n /**\n * CSS styles for the tooltip. The tooltip can also be styled through\n * the CSS class `.highcharts-tooltip`.\n *\n * Note that the default `pointerEvents` style makes the tooltip ignore\n * mouse events, so in order to use clickable tooltips, this value must\n * be set to `auto`.\n *\n * @sample {highcharts} highcharts/tooltip/style/\n * Greater padding, bold text\n *\n * @type {Highcharts.CSSObject}\n * @default {\"color\": \"#333333\", \"cursor\": \"default\", \"fontSize\": \"12px\", \"pointerEvents\": \"none\", \"whiteSpace\": \"nowrap\"}\n */\n style: {\n /**\n * @ignore\n */\n color: '#333333',\n /**\n * @ignore\n */\n cursor: 'default',\n /**\n * @ignore\n */\n fontSize: '12px',\n /**\n * @ignore\n */\n pointerEvents: 'none',\n /**\n * @ignore\n */\n whiteSpace: 'nowrap'\n }\n },\n /**\n * Highchart by default puts a credits label in the lower right corner\n * of the chart. This can be changed using these options.\n */\n credits: {\n /**\n * Credits for map source to be concatenated with conventional credit\n * text. By default this is a format string that collects copyright\n * information from the map if available.\n *\n * @see [mapTextFull](#credits.mapTextFull)\n * @see [text](#credits.text)\n *\n * @type {string}\n * @default \\u00a9 {geojson.copyrightShort}\n * @since 4.2.2\n * @product highmaps\n * @apioption credits.mapText\n */\n /**\n * Detailed credits for map source to be displayed on hover of credits\n * text. By default this is a format string that collects copyright\n * information from the map if available.\n *\n * @see [mapText](#credits.mapText)\n * @see [text](#credits.text)\n *\n * @type {string}\n * @default {geojson.copyright}\n * @since 4.2.2\n * @product highmaps\n * @apioption credits.mapTextFull\n */\n /**\n * Whether to show the credits text.\n *\n * @sample {highcharts} highcharts/credits/enabled-false/\n * Credits disabled\n * @sample {highstock} stock/credits/enabled/\n * Credits disabled\n * @sample {highmaps} maps/credits/enabled-false/\n * Credits disabled\n */\n enabled: true,\n /**\n * The URL for the credits label.\n *\n * @sample {highcharts} highcharts/credits/href/\n * Custom URL and text\n * @sample {highmaps} maps/credits/customized/\n * Custom URL and text\n */\n href: 'https://www.highcharts.com?credits',\n /**\n * Position configuration for the credits label.\n *\n * @sample {highcharts} highcharts/credits/position-left/\n * Left aligned\n * @sample {highcharts} highcharts/credits/position-left/\n * Left aligned\n * @sample {highmaps} maps/credits/customized/\n * Left aligned\n * @sample {highmaps} maps/credits/customized/\n * Left aligned\n *\n * @type {Highcharts.AlignObject}\n * @since 2.1\n */\n position: {\n /** @internal */\n align: 'right',\n /** @internal */\n x: -10,\n /** @internal */\n verticalAlign: 'bottom',\n /** @internal */\n y: -5\n },\n /**\n * CSS styles for the credits label.\n *\n * @see In styled mode, credits styles can be set with the\n * `.highcharts-credits` class.\n *\n * @type {Highcharts.CSSObject}\n * @default {\"cursor\": \"pointer\", \"color\": \"#999999\", \"fontSize\": \"10px\"}\n */\n style: {\n /**\n * @ignore\n */\n cursor: 'pointer',\n /**\n * @ignore\n */\n color: '#999999',\n /**\n * @ignore\n */\n fontSize: '9px'\n },\n /**\n * The text for the credits label.\n *\n * @productdesc {highmaps}\n * If a map is loaded as GeoJSON, the text defaults to\n * `Highcharts @ {map-credits}`. Otherwise, it defaults to\n * `Highcharts.com`.\n *\n * @sample {highcharts} highcharts/credits/href/\n * Custom URL and text\n * @sample {highmaps} maps/credits/customized/\n * Custom URL and text\n */\n text: 'Highcharts.com'\n }\n };\n /**\n * Merge the default options with custom options and return the new options\n * structure. Commonly used for defining reusable templates.\n *\n * @sample highcharts/global/useutc-false Setting a global option\n * @sample highcharts/members/setoptions Applying a global theme\n *\n * @function Highcharts.setOptions\n *\n * @param {Highcharts.Options} options\n * The new custom chart options.\n *\n * @return {Highcharts.Options}\n * Updated options.\n */\n H.setOptions = function (options) {\n // Copy in the default options\n H.defaultOptions = merge(true, H.defaultOptions, options);\n // Update the time object\n if (options.time || options.global) {\n H.time.update(merge(H.defaultOptions.global, H.defaultOptions.time, options.global, options.time));\n }\n return H.defaultOptions;\n };\n /**\n * Get the updated default options. Until 3.0.7, merely exposing defaultOptions\n * for outside modules wasn't enough because the setOptions method created a new\n * object.\n *\n * @function Highcharts.getOptions\n *\n * @return {Highcharts.Options}\n */\n H.getOptions = function () {\n return H.defaultOptions;\n };\n // Series defaults\n H.defaultPlotOptions = H.defaultOptions.plotOptions;\n /**\n * Global `Time` object with default options. Since v6.0.5, time settings can be\n * applied individually for each chart. If no individual settings apply, this\n * `Time` object is shared by all instances.\n *\n * @name Highcharts.time\n * @type {Highcharts.Time}\n */\n H.time = new H.Time(merge(H.defaultOptions.global, H.defaultOptions.time));\n /**\n * Formats a JavaScript date timestamp (milliseconds since Jan 1st 1970) into a\n * human readable date string. The format is a subset of the formats for PHP's\n * [strftime](http://www.php.net/manual/en/function.strftime.php) function.\n * Additional formats can be given in the {@link Highcharts.dateFormats} hook.\n *\n * Since v6.0.5, all internal dates are formatted through the\n * {@link Highcharts.Chart#time} instance to respect chart-level time settings.\n * The `Highcharts.dateFormat` function only reflects global time settings set\n * with `setOptions`.\n *\n * @function Highcharts.dateFormat\n *\n * @param {string} format\n * The desired format where various time representations are prefixed\n * with `%`.\n *\n * @param {number} timestamp\n * The JavaScript timestamp.\n *\n * @param {boolean} [capitalize=false]\n * Upper case first letter in the return.\n *\n * @return {string}\n * The formatted date.\n */\n H.dateFormat = function (format, timestamp, capitalize) {\n return H.time.dateFormat(format, timestamp, capitalize);\n };\n /* eslint-disable spaced-comment */\n\n '';\n\n });\n _registerModule(_modules, 'parts/Tick.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * Optional parameters for the tick.\n * @private\n * @interface Highcharts.TickParametersObject\n */ /**\n * Set category for the tick.\n * @name Highcharts.TickParametersObject#category\n * @type {string|undefined}\n */ /**\n * @name Highcharts.TickParametersObject#options\n * @type {Highcharts.Dictionary|undefined}\n */ /**\n * Set tickmarkOffset for the tick.\n * @name Highcharts.TickParametersObject#tickmarkOffset\n * @type {number|undefined}\n */\n var defined = U.defined, destroyObjectProperties = U.destroyObjectProperties, extend = U.extend, isNumber = U.isNumber, pick = U.pick;\n var correctFloat = H.correctFloat, fireEvent = H.fireEvent, merge = H.merge, deg2rad = H.deg2rad;\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * The Tick class.\n *\n * @class\n * @name Highcharts.Tick\n *\n * @param {Highcharts.Axis} axis\n * The axis of the tick.\n *\n * @param {number} pos\n * The position of the tick on the axis in terms of axis values.\n *\n * @param {string} [type]\n * The type of tick, either 'minor' or an empty string\n *\n * @param {boolean} [noLabel=false]\n * Whether to disable the label or not. Defaults to false.\n *\n * @param {object} [parameters]\n * Optional parameters for the tick.\n */\n H.Tick = function (axis, pos, type, noLabel, parameters) {\n /**\n * The related axis of the tick.\n * @name Highcharts.Tick#axis\n * @type {Highcharts.Axis}\n */\n this.axis = axis;\n /**\n * The logical position of the tick on the axis in terms of axis values.\n * @name Highcharts.Tick#pos\n * @type {number}\n */\n this.pos = pos;\n /**\n * The tick type, which can be `\"minor\"`, or an empty string.\n * @name Highcharts.Tick#type\n * @type {string}\n */\n this.type = type || '';\n this.isNew = true;\n this.isNewLabel = true;\n this.parameters = parameters || {};\n /**\n * The mark offset of the tick on the axis. Usually `undefined`, numeric for\n * grid axes.\n * @name Highcharts.Tick#tickmarkOffset\n * @type {number|undefined}\n */\n this.tickmarkOffset = this.parameters.tickmarkOffset;\n this.options = this.parameters.options;\n if (!type && !noLabel) {\n this.addLabel();\n }\n };\n /** @lends Highcharts.Tick.prototype */\n H.Tick.prototype = {\n /**\n * Write the tick label.\n *\n * @private\n * @function Highcharts.Tick#addLabel\n * @return {void}\n */\n addLabel: function () {\n var tick = this, axis = tick.axis, options = axis.options, chart = axis.chart, categories = axis.categories, names = axis.names, pos = tick.pos, labelOptions = pick(tick.options && tick.options.labels, options.labels), str, tickPositions = axis.tickPositions, isFirst = pos === tickPositions[0], isLast = pos === tickPositions[tickPositions.length - 1], value = this.parameters.category || (categories ?\n pick(categories[pos], names[pos], pos) :\n pos), label = tick.label, tickPositionInfo = tickPositions.info, dateTimeLabelFormat, dateTimeLabelFormats, i, list;\n // Set the datetime label format. If a higher rank is set for this\n // position, use that. If not, use the general format.\n if (axis.isDatetimeAxis && tickPositionInfo) {\n dateTimeLabelFormats = chart.time.resolveDTLFormat(options.dateTimeLabelFormats[(!options.grid &&\n tickPositionInfo.higherRanks[pos]) ||\n tickPositionInfo.unitName]);\n dateTimeLabelFormat = dateTimeLabelFormats.main;\n }\n // set properties for access in render method\n /**\n * True if the tick is the first one on the axis.\n * @name Highcharts.Tick#isFirst\n * @readonly\n * @type {boolean|undefined}\n */\n tick.isFirst = isFirst;\n /**\n * True if the tick is the last one on the axis.\n * @name Highcharts.Tick#isLast\n * @readonly\n * @type {boolean|undefined}\n */\n tick.isLast = isLast;\n // Get the string\n tick.formatCtx = {\n axis: axis,\n chart: chart,\n isFirst: isFirst,\n isLast: isLast,\n dateTimeLabelFormat: dateTimeLabelFormat,\n tickPositionInfo: tickPositionInfo,\n value: axis.isLog ? correctFloat(axis.lin2log(value)) : value,\n pos: pos\n };\n str = axis.labelFormatter.call(tick.formatCtx, this.formatCtx);\n // Set up conditional formatting based on the format list if existing.\n list = dateTimeLabelFormats && dateTimeLabelFormats.list;\n if (list) {\n tick.shortenLabel = function () {\n for (i = 0; i < list.length; i++) {\n label.attr({\n text: axis.labelFormatter.call(extend(tick.formatCtx, { dateTimeLabelFormat: list[i] }))\n });\n if (label.getBBox().width <\n axis.getSlotWidth(tick) - 2 *\n pick(labelOptions.padding, 5)) {\n return;\n }\n }\n label.attr({\n text: ''\n });\n };\n }\n // first call\n if (!defined(label)) {\n /**\n * The rendered label of the tick.\n * @name Highcharts.Tick#label\n * @type {Highcharts.SVGElement|undefined}\n */\n tick.label = label =\n defined(str) && labelOptions.enabled ?\n chart.renderer\n .text(str, 0, 0, labelOptions.useHTML)\n .add(axis.labelGroup) :\n null;\n // Un-rotated length\n if (label) {\n // Without position absolute, IE export sometimes is wrong\n if (!chart.styledMode) {\n label.css(merge(labelOptions.style));\n }\n label.textPxLength = label.getBBox().width;\n }\n // Base value to detect change for new calls to getBBox\n tick.rotation = 0;\n // update\n }\n else if (label && label.textStr !== str) {\n // When resetting text, also reset the width if dynamically set\n // (#8809)\n if (label.textWidth &&\n !(labelOptions.style && labelOptions.style.width) &&\n !label.styles.width) {\n label.css({ width: null });\n }\n label.attr({ text: str });\n label.textPxLength = label.getBBox().width;\n }\n },\n /**\n * Get the offset height or width of the label\n *\n * @private\n * @function Highcharts.Tick#getLabelSize\n * @return {number}\n */\n getLabelSize: function () {\n return this.label ?\n this.label.getBBox()[this.axis.horiz ? 'height' : 'width'] :\n 0;\n },\n /**\n * Handle the label overflow by adjusting the labels to the left and right\n * edge, or hide them if they collide into the neighbour label.\n *\n * @private\n * @function Highcharts.Tick#handleOverflow\n * @param {Highcharts.PositionObject} xy\n * @return {void}\n */\n handleOverflow: function (xy) {\n var tick = this, axis = this.axis, labelOptions = axis.options.labels, pxPos = xy.x, chartWidth = axis.chart.chartWidth, spacing = axis.chart.spacing, leftBound = pick(axis.labelLeft, Math.min(axis.pos, spacing[3])), rightBound = pick(axis.labelRight, Math.max(!axis.isRadial ? axis.pos + axis.len : 0, chartWidth - spacing[1])), label = this.label, rotation = this.rotation, factor = {\n left: 0,\n center: 0.5,\n right: 1\n }[axis.labelAlign || label.attr('align')], labelWidth = label.getBBox().width, slotWidth = axis.getSlotWidth(tick), modifiedSlotWidth = slotWidth, xCorrection = factor, goRight = 1, leftPos, rightPos, textWidth, css = {};\n // Check if the label overshoots the chart spacing box. If it does, move\n // it. If it now overshoots the slotWidth, add ellipsis.\n if (!rotation &&\n pick(labelOptions.overflow, 'justify') === 'justify') {\n leftPos = pxPos - factor * labelWidth;\n rightPos = pxPos + (1 - factor) * labelWidth;\n if (leftPos < leftBound) {\n modifiedSlotWidth =\n xy.x + modifiedSlotWidth * (1 - factor) - leftBound;\n }\n else if (rightPos > rightBound) {\n modifiedSlotWidth =\n rightBound - xy.x + modifiedSlotWidth * factor;\n goRight = -1;\n }\n modifiedSlotWidth = Math.min(slotWidth, modifiedSlotWidth); // #4177\n if (modifiedSlotWidth < slotWidth && axis.labelAlign === 'center') {\n xy.x += (goRight *\n (slotWidth -\n modifiedSlotWidth -\n xCorrection * (slotWidth - Math.min(labelWidth, modifiedSlotWidth))));\n }\n // If the label width exceeds the available space, set a text width\n // to be picked up below. Also, if a width has been set before, we\n // need to set a new one because the reported labelWidth will be\n // limited by the box (#3938).\n if (labelWidth > modifiedSlotWidth ||\n (axis.autoRotation && (label.styles || {}).width)) {\n textWidth = modifiedSlotWidth;\n }\n // Add ellipsis to prevent rotated labels to be clipped against the edge\n // of the chart\n }\n else if (rotation < 0 &&\n pxPos - factor * labelWidth < leftBound) {\n textWidth = Math.round(pxPos / Math.cos(rotation * deg2rad) - leftBound);\n }\n else if (rotation > 0 &&\n pxPos + factor * labelWidth > rightBound) {\n textWidth = Math.round((chartWidth - pxPos) /\n Math.cos(rotation * deg2rad));\n }\n if (textWidth) {\n if (tick.shortenLabel) {\n tick.shortenLabel();\n }\n else {\n css.width = Math.floor(textWidth);\n if (!(labelOptions.style || {}).textOverflow) {\n css.textOverflow = 'ellipsis';\n }\n label.css(css);\n }\n }\n },\n /**\n * Gets the x and y positions for ticks in terms of pixels.\n *\n * @private\n * @function Highcharts.Tick#getPosition\n *\n * @param {boolean} horiz\n * Whether the tick is on an horizontal axis or not.\n *\n * @param {number} tickPos\n * Position of the tick.\n *\n * @param {number} tickmarkOffset\n * Tickmark offset for all ticks.\n *\n * @param {boolean} [old]\n * Whether the axis has changed or not.\n *\n * @return {Highcharts.PositionObject}\n * The tick position.\n *\n * @fires Highcharts.Tick#event:afterGetPosition\n */\n getPosition: function (horiz, tickPos, tickmarkOffset, old) {\n var axis = this.axis, chart = axis.chart, cHeight = (old && chart.oldChartHeight) || chart.chartHeight, pos;\n pos = {\n x: horiz ?\n H.correctFloat(axis.translate(tickPos + tickmarkOffset, null, null, old) +\n axis.transB) :\n (axis.left +\n axis.offset +\n (axis.opposite ?\n (((old && chart.oldChartWidth) ||\n chart.chartWidth) -\n axis.right -\n axis.left) :\n 0)),\n y: horiz ?\n (cHeight -\n axis.bottom +\n axis.offset -\n (axis.opposite ? axis.height : 0)) :\n H.correctFloat(cHeight -\n axis.translate(tickPos + tickmarkOffset, null, null, old) -\n axis.transB)\n };\n // Chrome workaround for #10516\n pos.y = Math.max(Math.min(pos.y, 1e5), -1e5);\n fireEvent(this, 'afterGetPosition', { pos: pos });\n return pos;\n },\n /**\n * Get the x, y position of the tick label\n *\n * @private\n * @return {Highcharts.PositionObject}\n */\n getLabelPosition: function (x, y, label, horiz, labelOptions, tickmarkOffset, index, step) {\n var axis = this.axis, transA = axis.transA, reversed = ( // #7911\n axis.isLinked && axis.linkedParent ?\n axis.linkedParent.reversed :\n axis.reversed), staggerLines = axis.staggerLines, rotCorr = axis.tickRotCorr || { x: 0, y: 0 }, yOffset = labelOptions.y, \n // Adjust for label alignment if we use reserveSpace: true (#5286)\n labelOffsetCorrection = (!horiz && !axis.reserveSpaceDefault ?\n -axis.labelOffset * (axis.labelAlign === 'center' ? 0.5 : 1) :\n 0), line, pos = {};\n if (!defined(yOffset)) {\n if (axis.side === 0) {\n yOffset = label.rotation ? -8 : -label.getBBox().height;\n }\n else if (axis.side === 2) {\n yOffset = rotCorr.y + 8;\n }\n else {\n // #3140, #3140\n yOffset = Math.cos(label.rotation * deg2rad) *\n (rotCorr.y - label.getBBox(false, 0).height / 2);\n }\n }\n x = x +\n labelOptions.x +\n labelOffsetCorrection +\n rotCorr.x -\n (tickmarkOffset && horiz ?\n tickmarkOffset * transA * (reversed ? -1 : 1) :\n 0);\n y = y + yOffset - (tickmarkOffset && !horiz ?\n tickmarkOffset * transA * (reversed ? 1 : -1) : 0);\n // Correct for staggered labels\n if (staggerLines) {\n line = (index / (step || 1) % staggerLines);\n if (axis.opposite) {\n line = staggerLines - line - 1;\n }\n y += line * (axis.labelOffset / staggerLines);\n }\n pos.x = x;\n pos.y = Math.round(y);\n fireEvent(this, 'afterGetLabelPosition', { pos: pos, tickmarkOffset: tickmarkOffset, index: index });\n return pos;\n },\n /**\n * Extendible method to return the path of the marker\n *\n * @private\n *\n */\n getMarkPath: function (x, y, tickLength, tickWidth, horiz, renderer) {\n return renderer.crispLine([\n 'M',\n x,\n y,\n 'L',\n x + (horiz ? 0 : -tickLength),\n y + (horiz ? tickLength : 0)\n ], tickWidth);\n },\n /**\n * Renders the gridLine.\n *\n * @private\n * @param {boolean} old Whether or not the tick is old\n * @param {number} opacity The opacity of the grid line\n * @param {number} reverseCrisp Modifier for avoiding overlapping 1 or -1\n * @return {void}\n */\n renderGridLine: function (old, opacity, reverseCrisp) {\n var tick = this, axis = tick.axis, options = axis.options, gridLine = tick.gridLine, gridLinePath, attribs = {}, pos = tick.pos, type = tick.type, tickmarkOffset = pick(tick.tickmarkOffset, axis.tickmarkOffset), renderer = axis.chart.renderer, gridPrefix = type ? type + 'Grid' : 'grid', gridLineWidth = options[gridPrefix + 'LineWidth'], gridLineColor = options[gridPrefix + 'LineColor'], dashStyle = options[gridPrefix + 'LineDashStyle'];\n if (!gridLine) {\n if (!axis.chart.styledMode) {\n attribs.stroke = gridLineColor;\n attribs['stroke-width'] = gridLineWidth;\n if (dashStyle) {\n attribs.dashstyle = dashStyle;\n }\n }\n if (!type) {\n attribs.zIndex = 1;\n }\n if (old) {\n opacity = 0;\n }\n /**\n * The rendered grid line of the tick.\n * @name Highcharts.Tick#gridLine\n * @type {Highcharts.SVGElement|undefined}\n */\n tick.gridLine = gridLine = renderer.path()\n .attr(attribs)\n .addClass('highcharts-' + (type ? type + '-' : '') + 'grid-line')\n .add(axis.gridGroup);\n }\n if (gridLine) {\n gridLinePath = axis.getPlotLinePath({\n value: pos + tickmarkOffset,\n lineWidth: gridLine.strokeWidth() * reverseCrisp,\n force: 'pass',\n old: old\n });\n // If the parameter 'old' is set, the current call will be followed\n // by another call, therefore do not do any animations this time\n if (gridLinePath) {\n gridLine[old || tick.isNew ? 'attr' : 'animate']({\n d: gridLinePath,\n opacity: opacity\n });\n }\n }\n },\n /**\n * Renders the tick mark.\n *\n * @private\n * @param {Highcharts.PositionObject} xy The position vector of the mark\n * @param {number} opacity The opacity of the mark\n * @param {number} reverseCrisp Modifier for avoiding overlapping 1 or -1\n * @return {void}\n */\n renderMark: function (xy, opacity, reverseCrisp) {\n var tick = this, axis = tick.axis, options = axis.options, renderer = axis.chart.renderer, type = tick.type, tickPrefix = type ? type + 'Tick' : 'tick', tickSize = axis.tickSize(tickPrefix), mark = tick.mark, isNewMark = !mark, x = xy.x, y = xy.y, tickWidth = pick(options[tickPrefix + 'Width'], !type && axis.isXAxis ? 1 : 0), // X axis defaults to 1\n tickColor = options[tickPrefix + 'Color'];\n if (tickSize) {\n // negate the length\n if (axis.opposite) {\n tickSize[0] = -tickSize[0];\n }\n // First time, create it\n if (isNewMark) {\n /**\n * The rendered mark of the tick.\n * @name Highcharts.Tick#mark\n * @type {Highcharts.SVGElement|undefined}\n */\n tick.mark = mark = renderer.path()\n .addClass('highcharts-' + (type ? type + '-' : '') + 'tick')\n .add(axis.axisGroup);\n if (!axis.chart.styledMode) {\n mark.attr({\n stroke: tickColor,\n 'stroke-width': tickWidth\n });\n }\n }\n mark[isNewMark ? 'attr' : 'animate']({\n d: tick.getMarkPath(x, y, tickSize[0], mark.strokeWidth() * reverseCrisp, axis.horiz, renderer),\n opacity: opacity\n });\n }\n },\n /**\n * Renders the tick label.\n * Note: The label should already be created in init(), so it should only\n * have to be moved into place.\n *\n * @private\n * @param {Highcharts.PositionObject} xy The position vector of the label\n * @param {boolean} old Whether or not the tick is old\n * @param {number} opacity The opacity of the label\n * @param {number} index The index of the tick\n * @return {void}\n */\n renderLabel: function (xy, old, opacity, index) {\n var tick = this, axis = tick.axis, horiz = axis.horiz, options = axis.options, label = tick.label, labelOptions = options.labels, step = labelOptions.step, tickmarkOffset = pick(tick.tickmarkOffset, axis.tickmarkOffset), show = true, x = xy.x, y = xy.y;\n if (label && isNumber(x)) {\n label.xy = xy = tick.getLabelPosition(x, y, label, horiz, labelOptions, tickmarkOffset, index, step);\n // Apply show first and show last. If the tick is both first and\n // last, it is a single centered tick, in which case we show the\n // label anyway (#2100).\n if ((tick.isFirst &&\n !tick.isLast &&\n !pick(options.showFirstLabel, 1)) ||\n (tick.isLast &&\n !tick.isFirst &&\n !pick(options.showLastLabel, 1))) {\n show = false;\n // Handle label overflow and show or hide accordingly\n }\n else if (horiz &&\n !labelOptions.step &&\n !labelOptions.rotation &&\n !old &&\n opacity !== 0) {\n tick.handleOverflow(xy);\n }\n // apply step\n if (step && index % step) {\n // show those indices dividable by step\n show = false;\n }\n // Set the new position, and show or hide\n if (show && isNumber(xy.y)) {\n xy.opacity = opacity;\n label[tick.isNewLabel ? 'attr' : 'animate'](xy);\n tick.isNewLabel = false;\n }\n else {\n label.attr('y', -9999); // #1338\n tick.isNewLabel = true;\n }\n }\n },\n /**\n * Put everything in place\n *\n * @private\n * @param {number} index\n * @param {boolean} [old]\n * Use old coordinates to prepare an animation into new position\n * @param {number} [opacity]\n * @return {voids}\n */\n render: function (index, old, opacity) {\n var tick = this, axis = tick.axis, horiz = axis.horiz, pos = tick.pos, tickmarkOffset = pick(tick.tickmarkOffset, axis.tickmarkOffset), xy = tick.getPosition(horiz, pos, tickmarkOffset, old), x = xy.x, y = xy.y, reverseCrisp = ((horiz && x === axis.pos + axis.len) ||\n (!horiz && y === axis.pos)) ? -1 : 1; // #1480, #1687\n opacity = pick(opacity, 1);\n this.isActive = true;\n // Create the grid line\n this.renderGridLine(old, opacity, reverseCrisp);\n // create the tick mark\n this.renderMark(xy, opacity, reverseCrisp);\n // the label is created on init - now move it into place\n this.renderLabel(xy, old, opacity, index);\n tick.isNew = false;\n H.fireEvent(this, 'afterRender');\n },\n /**\n * Destructor for the tick prototype\n *\n * @private\n * @function Highcharts.Tick#destroy\n * @return {void}\n */\n destroy: function () {\n destroyObjectProperties(this, this.axis);\n }\n };\n\n });\n _registerModule(_modules, 'parts/Axis.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * Options for the path on the Axis to be calculated.\n * @interface Highcharts.AxisPlotLinePathOptionsObject\n */ /**\n * Axis value.\n * @name Highcharts.AxisPlotLinePathOptionsObject#value\n * @type {number|undefined}\n */ /**\n * Line width used for calculation crisp line coordinates. Defaults to 1.\n * @name Highcharts.AxisPlotLinePathOptionsObject#lineWidth\n * @type {number|undefined}\n */ /**\n * If `false`, the function will return null when it falls outside the axis\n * bounds. If `true`, the function will return a path aligned to the plot area\n * sides if it falls outside. If `pass`, it will return a path outside.\n * @name Highcharts.AxisPlotLinePathOptionsObject#force\n * @type {string|boolean|undefined}\n */ /**\n * Used in Highstock. When `true`, plot paths (crosshair, plotLines, gridLines)\n * will be rendered on all axes when defined on the first axis.\n * @name Highcharts.AxisPlotLinePathOptionsObject#acrossPanes\n * @type {boolean|undefined}\n */ /**\n * Use old coordinates (for resizing and rescaling).\n * If not set, defaults to `false`.\n * @name Highcharts.AxisPlotLinePathOptionsObject#old\n * @type {boolean|undefined}\n */ /**\n * If given, return the plot line path of a pixel position on the axis.\n * @name Highcharts.AxisPlotLinePathOptionsObject#translatedValue\n * @type {number|undefined}\n */ /**\n * Used in Polar axes. Reverse the positions for concatenation of polygonal\n * plot bands\n * @name Highcharts.AxisPlotLinePathOptionsObject#reverse\n * @type {boolean|undefined}\n */\n /**\n * Options for crosshairs on axes.\n *\n * @product highstock\n *\n * @typedef {Highcharts.XAxisCrosshairOptions|Highcharts.YAxisCrosshairOptions} Highcharts.AxisCrosshairOptions\n */\n /**\n * @typedef {\"navigator\"|\"pan\"|\"rangeSelectorButton\"|\"rangeSelectorInput\"|\"scrollbar\"|\"traverseUpButton\"|\"zoom\"} Highcharts.AxisExtremesTriggerValue\n */\n /**\n * @callback Highcharts.AxisEventCallbackFunction\n *\n * @param {Highcharts.Axis} this\n */\n /**\n * @interface Highcharts.AxisLabelsFormatterContextObject\n */ /**\n * @name Highcharts.AxisLabelsFormatterContextObject#axis\n * @type {Highcharts.Axis}\n */ /**\n * @name Highcharts.AxisLabelsFormatterContextObject#chart\n * @type {Highcharts.Chart}\n */ /**\n * @name Highcharts.AxisLabelsFormatterContextObject#isFirst\n * @type {boolean}\n */ /**\n * @name Highcharts.AxisLabelsFormatterContextObject#isLast\n * @type {boolean}\n */ /**\n * @name Highcharts.AxisLabelsFormatterContextObject#pos\n * @type {number}\n */ /**\n * @name Highcharts.AxisLabelsFormatterContextObject#value\n * @type {number}\n */\n /**\n * Options for axes.\n *\n * @typedef {Highcharts.XAxisOptions|Highcharts.YAxisOptions|Highcharts.ZAxisOptions} Highcharts.AxisOptions\n */\n /**\n * @callback Highcharts.AxisPointBreakEventCallbackFunction\n *\n * @param {Highcharts.Axis} this\n *\n * @param {Highcharts.AxisPointBreakEventObject} evt\n */\n /**\n * @interface Highcharts.AxisPointBreakEventObject\n */ /**\n * @name Highcharts.AxisPointBreakEventObject#brk\n * @type {Highcharts.Dictionary}\n */ /**\n * @name Highcharts.AxisPointBreakEventObject#point\n * @type {Highcharts.Point}\n */ /**\n * @name Highcharts.AxisPointBreakEventObject#preventDefault\n * @type {Function}\n */ /**\n * @name Highcharts.AxisPointBreakEventObject#target\n * @type {Highcharts.SVGElement}\n */ /**\n * @name Highcharts.AxisPointBreakEventObject#type\n * @type {\"pointBreak\"|\"pointInBreak\"}\n */\n /**\n * @callback Highcharts.AxisSetExtremesEventCallbackFunction\n *\n * @param {Highcharts.Axis} this\n *\n * @param {Highcharts.AxisSetExtremesEventObject} evt\n */\n /**\n * @interface Highcharts.AxisSetExtremesEventObject\n * @extends Highcharts.ExtremesObject\n */ /**\n * @name Highcharts.AxisSetExtremesEventObject#preventDefault\n * @type {Function}\n */ /**\n * @name Highcharts.AxisSetExtremesEventObject#target\n * @type {Highcharts.SVGElement}\n */ /**\n * @name Highcharts.AxisSetExtremesEventObject#trigger\n * @type {Highcharts.AxisExtremesTriggerValue|string}\n */ /**\n * @name Highcharts.AxisSetExtremesEventObject#type\n * @type {\"setExtremes\"}\n */\n /**\n * @callback Highcharts.AxisTickPositionerCallbackFunction\n *\n * @param {Highcharts.Axis} this\n *\n * @return {Array}\n */\n /**\n * @interface Highcharts.AxisTickPositionsArray\n * @augments Array\n */\n /**\n * @typedef {\"high\"|\"low\"|\"middle\"} Highcharts.AxisTitleAlignValue\n */\n /**\n * @typedef {Highcharts.XAxisTitleOptions|Highcharts.YAxisTitleOptions|Highcharts.ZAxisTitleOptions} Highcharts.AxisTitleOptions\n */\n /**\n * @typedef {\"linear\"|\"logarithmic\"|\"datetime\"|\"category\"|\"treegrid\"} Highcharts.AxisTypeValue\n */\n /**\n * The returned object literal from the {@link Highcharts.Axis#getExtremes}\n * function.\n *\n * @interface Highcharts.ExtremesObject\n */ /**\n * The maximum value of the axis' associated series.\n * @name Highcharts.ExtremesObject#dataMax\n * @type {number}\n */ /**\n * The minimum value of the axis' associated series.\n * @name Highcharts.ExtremesObject#dataMin\n * @type {number}\n */ /**\n * The maximum axis value, either automatic or set manually. If the `max` option\n * is not set, `maxPadding` is 0 and `endOnTick` is false, this value will be\n * the same as `dataMax`.\n * @name Highcharts.ExtremesObject#max\n * @type {number}\n */ /**\n * The minimum axis value, either automatic or set manually. If the `min` option\n * is not set, `minPadding` is 0 and `startOnTick` is false, this value will be\n * the same as `dataMin`.\n * @name Highcharts.ExtremesObject#min\n * @type {number}\n */ /**\n * The user defined maximum, either from the `max` option or from a zoom or\n * `setExtremes` action.\n * @name Highcharts.ExtremesObject#userMax\n * @type {number}\n */ /**\n * The user defined minimum, either from the `min` option or from a zoom or\n * `setExtremes` action.\n * @name Highcharts.ExtremesObject#userMin\n * @type {number}\n */\n /**\n * Formatter function for the text of a crosshair label.\n *\n * @callback Highcharts.XAxisCrosshairLabelFormatterCallbackFunction\n *\n * @param {Highcharts.Axis} this\n * Axis context\n *\n * @param {number} value\n * Y value of the data point\n *\n * @return {string}\n */\n var arrayMax = U.arrayMax, arrayMin = U.arrayMin, defined = U.defined, destroyObjectProperties = U.destroyObjectProperties, extend = U.extend, isArray = U.isArray, isNumber = U.isNumber, isString = U.isString, objectEach = U.objectEach, pick = U.pick, splat = U.splat, syncTimeout = U.syncTimeout;\n var addEvent = H.addEvent, animObject = H.animObject, color = H.color, correctFloat = H.correctFloat, defaultOptions = H.defaultOptions, deg2rad = H.deg2rad, fireEvent = H.fireEvent, format = H.format, getMagnitude = H.getMagnitude, merge = H.merge, normalizeTickInterval = H.normalizeTickInterval, removeEvent = H.removeEvent, seriesTypes = H.seriesTypes, Tick = H.Tick;\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * Create a new axis object. Called internally when instanciating a new chart or\n * adding axes by {@link Highcharts.Chart#addAxis}.\n *\n * A chart can have from 0 axes (pie chart) to multiples. In a normal, single\n * series cartesian chart, there is one X axis and one Y axis.\n *\n * The X axis or axes are referenced by {@link Highcharts.Chart.xAxis}, which is\n * an array of Axis objects. If there is only one axis, it can be referenced\n * through `chart.xAxis[0]`, and multiple axes have increasing indices. The same\n * pattern goes for Y axes.\n *\n * If you need to get the axes from a series object, use the `series.xAxis` and\n * `series.yAxis` properties. These are not arrays, as one series can only be\n * associated to one X and one Y axis.\n *\n * A third way to reference the axis programmatically is by `id`. Add an `id` in\n * the axis configuration options, and get the axis by\n * {@link Highcharts.Chart#get}.\n *\n * Configuration options for the axes are given in options.xAxis and\n * options.yAxis.\n *\n * @class\n * @name Highcharts.Axis\n *\n * @param {Highcharts.Chart} chart\n * The Chart instance to apply the axis on.\n *\n * @param {Highcharts.AxisOptions} options\n * Axis options.\n */\n var Axis = function () {\n this.init.apply(this, arguments);\n /* eslint-enable no-invalid-this, valid-jsdoc */\n };\n extend(Axis.prototype, /** @lends Highcharts.Axis.prototype */ {\n /**\n * The X axis or category axis. Normally this is the horizontal axis,\n * though if the chart is inverted this is the vertical axis. In case of\n * multiple axes, the xAxis node is an array of configuration objects.\n *\n * See the [Axis class](/class-reference/Highcharts.Axis) for programmatic\n * access to the axis.\n *\n * @productdesc {highmaps}\n * In Highmaps, the axis is hidden, but it is used behind the scenes to\n * control features like zooming and panning. Zooming is in effect the same\n * as setting the extremes of one of the exes.\n *\n * @type {*|Array<*>}\n * @optionparent xAxis\n *\n * @private\n */\n defaultOptions: {\n /**\n * When using multiple axis, the ticks of two or more opposite axes\n * will automatically be aligned by adding ticks to the axis or axes\n * with the least ticks, as if `tickAmount` were specified.\n *\n * This can be prevented by setting `alignTicks` to false. If the grid\n * lines look messy, it's a good idea to hide them for the secondary\n * axis by setting `gridLineWidth` to 0.\n *\n * If `startOnTick` or `endOnTick` in an Axis options are set to false,\n * then the `alignTicks ` will be disabled for the Axis.\n *\n * Disabled for logarithmic axes.\n *\n * @type {boolean}\n * @default true\n * @product highcharts highstock gantt\n * @apioption xAxis.alignTicks\n */\n /**\n * Whether to allow decimals in this axis' ticks. When counting\n * integers, like persons or hits on a web page, decimals should\n * be avoided in the labels.\n *\n * @see [minTickInterval](#xAxis.minTickInterval)\n *\n * @sample {highcharts|highstock} highcharts/yaxis/allowdecimals-true/\n * True by default\n * @sample {highcharts|highstock} highcharts/yaxis/allowdecimals-false/\n * False\n *\n * @type {boolean}\n * @default true\n * @since 2.0\n * @apioption xAxis.allowDecimals\n */\n /**\n * When using an alternate grid color, a band is painted across the\n * plot area between every other grid line.\n *\n * @sample {highcharts} highcharts/yaxis/alternategridcolor/\n * Alternate grid color on the Y axis\n * @sample {highstock} stock/xaxis/alternategridcolor/\n * Alternate grid color on the Y axis\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @apioption xAxis.alternateGridColor\n */\n /**\n * An array defining breaks in the axis, the sections defined will be\n * left out and all the points shifted closer to each other.\n *\n * @productdesc {highcharts}\n * Requires that the broken-axis.js module is loaded.\n *\n * @sample {highcharts} highcharts/axisbreak/break-simple/\n * Simple break\n * @sample {highcharts|highstock} highcharts/axisbreak/break-visualized/\n * Advanced with callback\n * @sample {highstock} stock/demo/intraday-breaks/\n * Break on nights and weekends\n *\n * @type {Array<*>}\n * @since 4.1.0\n * @product highcharts highstock gantt\n * @apioption xAxis.breaks\n */\n /**\n * A number indicating how much space should be left between the start\n * and the end of the break. The break size is given in axis units,\n * so for instance on a `datetime` axis, a break size of 3600000 would\n * indicate the equivalent of an hour.\n *\n * @type {number}\n * @default 0\n * @since 4.1.0\n * @product highcharts highstock gantt\n * @apioption xAxis.breaks.breakSize\n */\n /**\n * The point where the break starts.\n *\n * @type {number}\n * @since 4.1.0\n * @product highcharts highstock gantt\n * @apioption xAxis.breaks.from\n */\n /**\n * Defines an interval after which the break appears again. By default\n * the breaks do not repeat.\n *\n * @type {number}\n * @default 0\n * @since 4.1.0\n * @product highcharts highstock gantt\n * @apioption xAxis.breaks.repeat\n */\n /**\n * The point where the break ends.\n *\n * @type {number}\n * @since 4.1.0\n * @product highcharts highstock gantt\n * @apioption xAxis.breaks.to\n */\n /**\n * If categories are present for the xAxis, names are used instead of\n * numbers for that axis. Since Highcharts 3.0, categories can also\n * be extracted by giving each point a [name](#series.data) and setting\n * axis [type](#xAxis.type) to `category`. However, if you have multiple\n * series, best practice remains defining the `categories` array.\n *\n * Example:\n *\n *
categories: ['Apples', 'Bananas', 'Oranges']
\n *\n * @sample {highcharts} highcharts/demo/line-labels/\n * With\n * @sample {highcharts} highcharts/xaxis/categories/\n * Without\n *\n * @type {Array}\n * @product highcharts gantt\n * @apioption xAxis.categories\n */\n /**\n * The highest allowed value for automatically computed axis extremes.\n *\n * @see [floor](#xAxis.floor)\n *\n * @sample {highcharts|highstock} highcharts/yaxis/floor-ceiling/\n * Floor and ceiling\n *\n * @type {number}\n * @since 4.0\n * @product highcharts highstock gantt\n * @apioption xAxis.ceiling\n */\n /**\n * A class name that opens for styling the axis by CSS, especially in\n * Highcharts styled mode. The class name is applied to group elements\n * for the grid, axis elements and labels.\n *\n * @sample {highcharts|highstock|highmaps} highcharts/css/axis/\n * Multiple axes with separate styling\n *\n * @type {string}\n * @since 5.0.0\n * @apioption xAxis.className\n */\n /**\n * Configure a crosshair that follows either the mouse pointer or the\n * hovered point.\n *\n * In styled mode, the crosshairs are styled in the\n * `.highcharts-crosshair`, `.highcharts-crosshair-thin` or\n * `.highcharts-xaxis-category` classes.\n *\n * @productdesc {highstock}\n * In Highstock, by default, the crosshair is enabled on the X axis and\n * disabled on the Y axis.\n *\n * @sample {highcharts} highcharts/xaxis/crosshair-both/\n * Crosshair on both axes\n * @sample {highstock} stock/xaxis/crosshairs-xy/\n * Crosshair on both axes\n * @sample {highmaps} highcharts/xaxis/crosshair-both/\n * Crosshair on both axes\n *\n * @type {boolean|*}\n * @default false\n * @since 4.1\n * @apioption xAxis.crosshair\n */\n /**\n * A class name for the crosshair, especially as a hook for styling.\n *\n * @type {string}\n * @since 5.0.0\n * @apioption xAxis.crosshair.className\n */\n /**\n * The color of the crosshair. Defaults to `#cccccc` for numeric and\n * datetime axes, and `rgba(204,214,235,0.25)` for category axes, where\n * the crosshair by default highlights the whole category.\n *\n * @sample {highcharts|highstock|highmaps} highcharts/xaxis/crosshair-customized/\n * Customized crosshairs\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #cccccc\n * @since 4.1\n * @apioption xAxis.crosshair.color\n */\n /**\n * The dash style for the crosshair. See\n * [plotOptions.series.dashStyle](#plotOptions.series.dashStyle)\n * for possible values.\n *\n * @sample {highcharts|highmaps} highcharts/xaxis/crosshair-dotted/\n * Dotted crosshair\n * @sample {highstock} stock/xaxis/crosshair-dashed/\n * Dashed X axis crosshair\n *\n * @type {Highcharts.DashStyleValue}\n * @default Solid\n * @since 4.1\n * @apioption xAxis.crosshair.dashStyle\n */\n /**\n * A label on the axis next to the crosshair.\n *\n * In styled mode, the label is styled with the\n * `.highcharts-crosshair-label` class.\n *\n * @sample {highstock} stock/xaxis/crosshair-label/\n * Crosshair labels\n * @sample {highstock} highcharts/css/crosshair-label/\n * Style mode\n *\n * @since 2.1\n * @product highstock\n * @apioption xAxis.crosshair.label\n */\n /**\n * Alignment of the label compared to the axis. Defaults to `\"left\"` for\n * right-side axes, `\"right\"` for left-side axes and `\"center\"` for\n * horizontal axes.\n *\n * @type {Highcharts.AlignValue}\n * @since 2.1\n * @product highstock\n * @apioption xAxis.crosshair.label.align\n */\n /**\n * The background color for the label. Defaults to the related series\n * color, or `#666666` if that is not available.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @since 2.1\n * @product highstock\n * @apioption xAxis.crosshair.label.backgroundColor\n */\n /**\n * The border color for the crosshair label\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @since 2.1\n * @product highstock\n * @apioption xAxis.crosshair.label.borderColor\n */\n /**\n * The border corner radius of the crosshair label.\n *\n * @type {number}\n * @default 3\n * @since 2.1.10\n * @product highstock\n * @apioption xAxis.crosshair.label.borderRadius\n */\n /**\n * The border width for the crosshair label.\n *\n * @type {number}\n * @default 0\n * @since 2.1\n * @product highstock\n * @apioption xAxis.crosshair.label.borderWidth\n */\n /**\n * Flag to enable crosshair's label.\n *\n * @sample {highstock} stock/xaxis/crosshairs-xy/\n * Enabled label for yAxis' crosshair\n *\n * @type {boolean}\n * @default false\n * @since 2.1\n * @product highstock\n * @apioption xAxis.crosshair.label.enabled\n */\n /**\n * A format string for the crosshair label. Defaults to `{value}` for\n * numeric axes and `{value:%b %d, %Y}` for datetime axes.\n *\n * @type {string}\n * @since 2.1\n * @product highstock\n * @apioption xAxis.crosshair.label.format\n */\n /**\n * Formatter function for the label text.\n *\n * @type {Highcharts.XAxisCrosshairLabelFormatterCallbackFunction}\n * @since 2.1\n * @product highstock\n * @apioption xAxis.crosshair.label.formatter\n */\n /**\n * Padding inside the crosshair label.\n *\n * @type {number}\n * @default 8\n * @since 2.1\n * @product highstock\n * @apioption xAxis.crosshair.label.padding\n */\n /**\n * The shape to use for the label box.\n *\n * @type {string}\n * @default callout\n * @since 2.1\n * @product highstock\n * @apioption xAxis.crosshair.label.shape\n */\n /**\n * Text styles for the crosshair label.\n *\n * @type {Highcharts.CSSObject}\n * @default {\"color\": \"white\", \"fontWeight\": \"normal\", \"fontSize\": \"11px\", \"textAlign\": \"center\"}\n * @since 2.1\n * @product highstock\n * @apioption xAxis.crosshair.label.style\n */\n /**\n * Whether the crosshair should snap to the point or follow the pointer\n * independent of points.\n *\n * @sample {highcharts|highstock} highcharts/xaxis/crosshair-snap-false/\n * True by default\n * @sample {highmaps} maps/demo/latlon-advanced/\n * Snap is false\n *\n * @type {boolean}\n * @default true\n * @since 4.1\n * @apioption xAxis.crosshair.snap\n */\n /**\n * The pixel width of the crosshair. Defaults to 1 for numeric or\n * datetime axes, and for one category width for category axes.\n *\n * @sample {highcharts} highcharts/xaxis/crosshair-customized/\n * Customized crosshairs\n * @sample {highstock} highcharts/xaxis/crosshair-customized/\n * Customized crosshairs\n * @sample {highmaps} highcharts/xaxis/crosshair-customized/\n * Customized crosshairs\n *\n * @type {number}\n * @default 1\n * @since 4.1\n * @apioption xAxis.crosshair.width\n */\n /**\n * The Z index of the crosshair. Higher Z indices allow drawing the\n * crosshair on top of the series or behind the grid lines.\n *\n * @type {number}\n * @default 2\n * @since 4.1\n * @apioption xAxis.crosshair.zIndex\n */\n /**\n * Whether to zoom axis. If `chart.zoomType` is set, the option allows\n * to disable zooming on an individual axis.\n *\n * @sample {highcharts} highcharts/xaxis/zoomenabled/\n * Zoom enabled is false\n *\n *\n * @type {boolean}\n * @default enabled\n * @apioption xAxis.zoomEnabled\n */\n /**\n * For a datetime axis, the scale will automatically adjust to the\n * appropriate unit. This member gives the default string\n * representations used for each unit. For intermediate values,\n * different units may be used, for example the `day` unit can be used\n * on midnight and `hour` unit be used for intermediate values on the\n * same axis. For an overview of the replacement codes, see\n * [dateFormat](/class-reference/Highcharts#dateFormat). Defaults to:\n *\n *
{\n                 *     millisecond: '%H:%M:%S.%L',\n                 *     second: '%H:%M:%S',\n                 *     minute: '%H:%M',\n                 *     hour: '%H:%M',\n                 *     day: '%e. %b',\n                 *     week: '%e. %b',\n                 *     month: '%b \\'%y',\n                 *     year: '%Y'\n                 * }
\n *\n * @sample {highcharts} highcharts/xaxis/datetimelabelformats/\n * Different day format on X axis\n * @sample {highstock} stock/xaxis/datetimelabelformats/\n * More information in x axis labels\n *\n * @product highcharts highstock gantt\n */\n dateTimeLabelFormats: {\n /**\n * @type {string|*}\n */\n millisecond: {\n main: '%H:%M:%S.%L',\n range: false\n },\n /**\n * @type {string|*}\n */\n second: {\n main: '%H:%M:%S',\n range: false\n },\n /**\n * @type {string|*}\n */\n minute: {\n main: '%H:%M',\n range: false\n },\n /**\n * @type {string|*}\n */\n hour: {\n main: '%H:%M',\n range: false\n },\n /**\n * @type {string|*}\n */\n day: {\n main: '%e. %b'\n },\n /**\n * @type {string|*}\n */\n week: {\n main: '%e. %b'\n },\n /**\n * @type {string|*}\n */\n month: {\n main: '%b \\'%y'\n },\n /**\n * @type {string|*}\n */\n year: {\n main: '%Y'\n }\n },\n /**\n * Whether to force the axis to end on a tick. Use this option with\n * the `maxPadding` option to control the axis end.\n *\n * @productdesc {highstock}\n * In Highstock, `endOnTick` is always false when the navigator is\n * enabled, to prevent jumpy scrolling.\n *\n * @sample {highcharts} highcharts/chart/reflow-true/\n * True by default\n * @sample {highcharts} highcharts/yaxis/endontick/\n * False\n * @sample {highstock} stock/demo/basic-line/\n * True by default\n * @sample {highstock} stock/xaxis/endontick/\n * False\n *\n * @since 1.2.0\n */\n endOnTick: false,\n /**\n * Event handlers for the axis.\n *\n * @type {*}\n * @apioption xAxis.events\n */\n /**\n * An event fired after the breaks have rendered.\n *\n * @see [breaks](#xAxis.breaks)\n *\n * @sample {highcharts} highcharts/axisbreak/break-event/\n * AfterBreak Event\n *\n * @type {Highcharts.AxisEventCallbackFunction}\n * @since 4.1.0\n * @product highcharts gantt\n * @apioption xAxis.events.afterBreaks\n */\n /**\n * As opposed to the `setExtremes` event, this event fires after the\n * final min and max values are computed and corrected for `minRange`.\n *\n * Fires when the minimum and maximum is set for the axis, either by\n * calling the `.setExtremes()` method or by selecting an area in the\n * chart. One parameter, `event`, is passed to the function, containing\n * common event information.\n *\n * The new user set minimum and maximum values can be found by\n * `event.min` and `event.max`. These reflect the axis minimum and\n * maximum in axis values. The actual data extremes are found in\n * `event.dataMin` and `event.dataMax`.\n *\n * @type {Highcharts.AxisSetExtremesEventCallbackFunction}\n * @since 2.3\n * @context Highcharts.Axis\n * @apioption xAxis.events.afterSetExtremes\n */\n /**\n * An event fired when a break from this axis occurs on a point.\n *\n * @see [breaks](#xAxis.breaks)\n *\n * @sample {highcharts} highcharts/axisbreak/break-visualized/\n * Visualization of a Break\n *\n * @type {Highcharts.AxisPointBreakEventCallbackFunction}\n * @since 4.1.0\n * @product highcharts gantt\n * @context Highcharts.Axis\n * @apioption xAxis.events.pointBreak\n */\n /**\n * An event fired when a point falls inside a break from this axis.\n *\n * @type {Highcharts.AxisPointBreakEventCallbackFunction}\n * @product highcharts highstock gantt\n * @context Highcharts.Axis\n * @apioption xAxis.events.pointInBreak\n */\n /**\n * Fires when the minimum and maximum is set for the axis, either by\n * calling the `.setExtremes()` method or by selecting an area in the\n * chart. One parameter, `event`, is passed to the function,\n * containing common event information.\n *\n * The new user set minimum and maximum values can be found by\n * `event.min` and `event.max`. These reflect the axis minimum and\n * maximum in data values. When an axis is zoomed all the way out from\n * the \"Reset zoom\" button, `event.min` and `event.max` are null, and\n * the new extremes are set based on `this.dataMin` and `this.dataMax`.\n *\n * @sample {highstock} stock/xaxis/events-setextremes/\n * Log new extremes on x axis\n *\n * @type {Highcharts.AxisSetExtremesEventCallbackFunction}\n * @since 1.2.0\n * @context Highcharts.Axis\n * @apioption xAxis.events.setExtremes\n */\n /**\n * The lowest allowed value for automatically computed axis extremes.\n *\n * @see [ceiling](#yAxis.ceiling)\n *\n * @sample {highcharts} highcharts/yaxis/floor-ceiling/\n * Floor and ceiling\n * @sample {highstock} stock/demo/lazy-loading/\n * Prevent negative stock price on Y axis\n *\n * @type {number}\n * @since 4.0\n * @product highcharts highstock gantt\n * @apioption xAxis.floor\n */\n /**\n * The dash or dot style of the grid lines. For possible values, see\n * [this demonstration](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-dashstyle-all/).\n *\n * @sample {highcharts} highcharts/yaxis/gridlinedashstyle/\n * Long dashes\n * @sample {highstock} stock/xaxis/gridlinedashstyle/\n * Long dashes\n *\n * @type {Highcharts.DashStyleValue}\n * @default Solid\n * @since 1.2\n * @apioption xAxis.gridLineDashStyle\n */\n /**\n * The Z index of the grid lines.\n *\n * @sample {highcharts|highstock} highcharts/xaxis/gridzindex/\n * A Z index of 4 renders the grid above the graph\n *\n * @type {number}\n * @default 1\n * @product highcharts highstock gantt\n * @apioption xAxis.gridZIndex\n */\n /**\n * An id for the axis. This can be used after render time to get\n * a pointer to the axis object through `chart.get()`.\n *\n * @sample {highcharts} highcharts/xaxis/id/\n * Get the object\n * @sample {highstock} stock/xaxis/id/\n * Get the object\n *\n * @type {string}\n * @since 1.2.0\n * @apioption xAxis.id\n */\n /**\n * The axis labels show the number or category for each tick.\n *\n * @productdesc {highmaps}\n * X and Y axis labels are by default disabled in Highmaps, but the\n * functionality is inherited from Highcharts and used on `colorAxis`,\n * and can be enabled on X and Y axes too.\n */\n labels: {\n /**\n * What part of the string the given position is anchored to.\n * If `left`, the left side of the string is at the axis position.\n * Can be one of `\"left\"`, `\"center\"` or `\"right\"`. Defaults to\n * an intelligent guess based on which side of the chart the axis\n * is on and the rotation of the label.\n *\n * @see [reserveSpace](#xAxis.labels.reserveSpace)\n *\n * @sample {highcharts} highcharts/xaxis/labels-align-left/\n * Left\n * @sample {highcharts} highcharts/xaxis/labels-align-right/\n * Right\n * @sample {highcharts} highcharts/xaxis/labels-reservespace-true/\n * Left-aligned labels on a vertical category axis\n *\n * @type {Highcharts.AlignValue}\n * @apioption xAxis.labels.align\n */\n /**\n * For horizontal axes, the allowed degrees of label rotation\n * to prevent overlapping labels. If there is enough space,\n * labels are not rotated. As the chart gets narrower, it\n * will start rotating the labels -45 degrees, then remove\n * every second label and try again with rotations 0 and -45 etc.\n * Set it to `false` to disable rotation, which will\n * cause the labels to word-wrap if possible.\n *\n * @sample {highcharts|highstock} highcharts/xaxis/labels-autorotation-default/\n * Default auto rotation of 0 or -45\n * @sample {highcharts|highstock} highcharts/xaxis/labels-autorotation-0-90/\n * Custom graded auto rotation\n *\n * @type {Array|false}\n * @default [-45]\n * @since 4.1.0\n * @product highcharts highstock gantt\n * @apioption xAxis.labels.autoRotation\n */\n /**\n * When each category width is more than this many pixels, we don't\n * apply auto rotation. Instead, we lay out the axis label with word\n * wrap. A lower limit makes sense when the label contains multiple\n * short words that don't extend the available horizontal space for\n * each label.\n *\n * @sample {highcharts} highcharts/xaxis/labels-autorotationlimit/\n * Lower limit\n *\n * @type {number}\n * @default 80\n * @since 4.1.5\n * @product highcharts gantt\n * @apioption xAxis.labels.autoRotationLimit\n */\n /**\n * Polar charts only. The label's pixel distance from the perimeter\n * of the plot area.\n *\n * @type {number}\n * @default 15\n * @product highcharts gantt\n * @apioption xAxis.labels.distance\n */\n /**\n * Enable or disable the axis labels.\n *\n * @sample {highcharts} highcharts/xaxis/labels-enabled/\n * X axis labels disabled\n * @sample {highstock} stock/xaxis/labels-enabled/\n * X axis labels disabled\n *\n * @default {highcharts|highstock|gantt} true\n * @default {highmaps} false\n */\n enabled: true,\n /**\n * A [format string](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting)\n * for the axis label.\n *\n * @sample {highcharts|highstock} highcharts/yaxis/labels-format/\n * Add units to Y axis label\n *\n * @type {string}\n * @default {value}\n * @since 3.0\n * @apioption xAxis.labels.format\n */\n /**\n * Callback JavaScript function to format the label. The value\n * is given by `this.value`. Additional properties for `this` are\n * `axis`, `chart`, `isFirst` and `isLast`. The value of the default\n * label formatter can be retrieved by calling\n * `this.axis.defaultLabelFormatter.call(this)` within the function.\n *\n * Defaults to:\n *\n *
function() {\n                     *     return this.value;\n                     * }
\n *\n * @sample {highcharts} highcharts/xaxis/labels-formatter-linked/\n * Linked category names\n * @sample {highcharts} highcharts/xaxis/labels-formatter-extended/\n * Modified numeric labels\n * @sample {highstock} stock/xaxis/labels-formatter/\n * Added units on Y axis\n *\n * @type {Highcharts.FormatterCallbackFunction}\n * @apioption xAxis.labels.formatter\n */\n /**\n * The number of pixels to indent the labels per level in a treegrid\n * axis.\n *\n * @sample gantt/treegrid-axis/demo\n * Indentation 10px by default.\n * @sample gantt/treegrid-axis/indentation-0px\n * Indentation set to 0px.\n *\n * @product gantt\n */\n indentation: 10,\n /**\n * Horizontal axis only. When `staggerLines` is not set,\n * `maxStaggerLines` defines how many lines the axis is allowed to\n * add to automatically avoid overlapping X labels. Set to `1` to\n * disable overlap detection.\n *\n * @deprecated\n * @type {number}\n * @default 5\n * @since 1.3.3\n * @apioption xAxis.labels.maxStaggerLines\n */\n /**\n * How to handle overflowing labels on horizontal axis. If set to\n * `\"allow\"`, it will not be aligned at all. By default it\n * `\"justify\"` labels inside the chart area. If there is room to\n * move it, it will be aligned to the edge, else it will be removed.\n *\n * @type {string}\n * @default justify\n * @since 2.2.5\n * @validvalue [\"allow\", \"justify\"]\n * @apioption xAxis.labels.overflow\n */\n /**\n * The pixel padding for axis labels, to ensure white space between\n * them.\n *\n * @type {number}\n * @default 5\n * @product highcharts gantt\n * @apioption xAxis.labels.padding\n */\n /**\n * Whether to reserve space for the labels. By default, space is\n * reserved for the labels in these cases:\n *\n * * On all horizontal axes.\n * * On vertical axes if `label.align` is `right` on a left-side\n * axis or `left` on a right-side axis.\n * * On vertical axes if `label.align` is `center`.\n *\n * This can be turned off when for example the labels are rendered\n * inside the plot area instead of outside.\n *\n * @see [labels.align](#xAxis.labels.align)\n *\n * @sample {highcharts} highcharts/xaxis/labels-reservespace/\n * No reserved space, labels inside plot\n * @sample {highcharts} highcharts/xaxis/labels-reservespace-true/\n * Left-aligned labels on a vertical category axis\n *\n * @type {boolean}\n * @since 4.1.10\n * @product highcharts gantt\n * @apioption xAxis.labels.reserveSpace\n */\n /**\n * Rotation of the labels in degrees.\n *\n * @sample {highcharts} highcharts/xaxis/labels-rotation/\n * X axis labels rotated 90°\n *\n * @type {number}\n * @default 0\n * @apioption xAxis.labels.rotation\n */\n /**\n * Horizontal axes only. The number of lines to spread the labels\n * over to make room or tighter labels.\n *\n * @sample {highcharts} highcharts/xaxis/labels-staggerlines/\n * Show labels over two lines\n * @sample {highstock} stock/xaxis/labels-staggerlines/\n * Show labels over two lines\n *\n * @type {number}\n * @since 2.1\n * @apioption xAxis.labels.staggerLines\n */\n /**\n * To show only every _n_'th label on the axis, set the step to _n_.\n * Setting the step to 2 shows every other label.\n *\n * By default, the step is calculated automatically to avoid\n * overlap. To prevent this, set it to 1\\. This usually only\n * happens on a category axis, and is often a sign that you have\n * chosen the wrong axis type.\n *\n * Read more at\n * [Axis docs](https://www.highcharts.com/docs/chart-concepts/axes)\n * => What axis should I use?\n *\n * @sample {highcharts} highcharts/xaxis/labels-step/\n * Showing only every other axis label on a categorized\n * x-axis\n * @sample {highcharts} highcharts/xaxis/labels-step-auto/\n * Auto steps on a category axis\n *\n * @type {number}\n * @since 2.1\n * @apioption xAxis.labels.step\n */\n /**\n * Whether to [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)\n * to render the labels.\n *\n * @type {boolean}\n * @default false\n * @apioption xAxis.labels.useHTML\n */\n /**\n * The x position offset of the label relative to the tick position\n * on the axis.\n *\n * @sample {highcharts} highcharts/xaxis/labels-x/\n * Y axis labels placed on grid lines\n */\n x: 0,\n /**\n * The y position offset of the label relative to the tick position\n * on the axis. The default makes it adapt to the font size on\n * bottom axis.\n *\n * @sample {highcharts} highcharts/xaxis/labels-x/\n * Y axis labels placed on grid lines\n *\n * @type {number}\n * @apioption xAxis.labels.y\n */\n /**\n * The Z index for the axis labels.\n *\n * @type {number}\n * @default 7\n * @apioption xAxis.labels.zIndex\n */\n /**\n * CSS styles for the label. Use `whiteSpace: 'nowrap'` to prevent\n * wrapping of category labels. Use `textOverflow: 'none'` to\n * prevent ellipsis (dots).\n *\n * In styled mode, the labels are styled with the\n * `.highcharts-axis-labels` class.\n *\n * @sample {highcharts} highcharts/xaxis/labels-style/\n * Red X axis labels\n *\n * @type {Highcharts.CSSObject}\n */\n style: {\n /** @internal */\n color: '#666666',\n /** @internal */\n cursor: 'default',\n /** @internal */\n fontSize: '11px'\n }\n },\n /**\n * Index of another axis that this axis is linked to. When an axis is\n * linked to a master axis, it will take the same extremes as\n * the master, but as assigned by min or max or by setExtremes.\n * It can be used to show additional info, or to ease reading the\n * chart by duplicating the scales.\n *\n * @sample {highcharts} highcharts/xaxis/linkedto/\n * Different string formats of the same date\n * @sample {highcharts} highcharts/yaxis/linkedto/\n * Y values on both sides\n *\n * @type {number}\n * @since 2.0.2\n * @product highcharts highstock gantt\n * @apioption xAxis.linkedTo\n */\n /**\n * The maximum value of the axis. If `null`, the max value is\n * automatically calculated.\n *\n * If the [endOnTick](#yAxis.endOnTick) option is true, the `max` value\n * might be rounded up.\n *\n * If a [tickAmount](#yAxis.tickAmount) is set, the axis may be extended\n * beyond the set max in order to reach the given number of ticks. The\n * same may happen in a chart with multiple axes, determined by [chart.\n * alignTicks](#chart), where a `tickAmount` is applied internally.\n *\n * @sample {highcharts} highcharts/yaxis/max-200/\n * Y axis max of 200\n * @sample {highcharts} highcharts/yaxis/max-logarithmic/\n * Y axis max on logarithmic axis\n * @sample {highstock} stock/xaxis/min-max/\n * Fixed min and max on X axis\n * @sample {highmaps} maps/axis/min-max/\n * Pre-zoomed to a specific area\n *\n * @type {number|null}\n * @apioption xAxis.max\n */\n /**\n * Padding of the max value relative to the length of the axis. A\n * padding of 0.05 will make a 100px axis 5px longer. This is useful\n * when you don't want the highest data value to appear on the edge\n * of the plot area. When the axis' `max` option is set or a max extreme\n * is set using `axis.setExtremes()`, the maxPadding will be ignored.\n *\n * @sample {highcharts} highcharts/yaxis/maxpadding/\n * Max padding of 0.25 on y axis\n * @sample {highstock} stock/xaxis/minpadding-maxpadding/\n * Greater min- and maxPadding\n * @sample {highmaps} maps/chart/plotbackgroundcolor-gradient/\n * Add some padding\n *\n * @default {highcharts} 0.01\n * @default {highstock|highmaps} 0\n * @since 1.2.0\n */\n maxPadding: 0.01,\n /**\n * Deprecated. Use `minRange` instead.\n *\n * @deprecated\n * @type {number}\n * @product highcharts highstock\n * @apioption xAxis.maxZoom\n */\n /**\n * The minimum value of the axis. If `null` the min value is\n * automatically calculated.\n *\n * If the [startOnTick](#yAxis.startOnTick) option is true (default),\n * the `min` value might be rounded down.\n *\n * The automatically calculated minimum value is also affected by\n * [floor](#yAxis.floor), [softMin](#yAxis.softMin),\n * [minPadding](#yAxis.minPadding), [minRange](#yAxis.minRange)\n * as well as [series.threshold](#plotOptions.series.threshold)\n * and [series.softThreshold](#plotOptions.series.softThreshold).\n *\n * @sample {highcharts} highcharts/yaxis/min-startontick-false/\n * -50 with startOnTick to false\n * @sample {highcharts} highcharts/yaxis/min-startontick-true/\n * -50 with startOnTick true by default\n * @sample {highstock} stock/xaxis/min-max/\n * Set min and max on X axis\n * @sample {highmaps} maps/axis/min-max/\n * Pre-zoomed to a specific area\n *\n * @type {number|null}\n * @apioption xAxis.min\n */\n /**\n * The dash or dot style of the minor grid lines. For possible values,\n * see [this demonstration](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-dashstyle-all/).\n *\n * @sample {highcharts} highcharts/yaxis/minorgridlinedashstyle/\n * Long dashes on minor grid lines\n * @sample {highstock} stock/xaxis/minorgridlinedashstyle/\n * Long dashes on minor grid lines\n *\n * @type {Highcharts.DashStyleValue}\n * @default Solid\n * @since 1.2\n * @apioption xAxis.minorGridLineDashStyle\n */\n /**\n * Specific tick interval in axis units for the minor ticks. On a linear\n * axis, if `\"auto\"`, the minor tick interval is calculated as a fifth\n * of the tickInterval. If `null` or `undefined`, minor ticks are not\n * shown.\n *\n * On logarithmic axes, the unit is the power of the value. For example,\n * setting the minorTickInterval to 1 puts one tick on each of 0.1, 1,\n * 10, 100 etc. Setting the minorTickInterval to 0.1 produces 9 ticks\n * between 1 and 10, 10 and 100 etc.\n *\n * If user settings dictate minor ticks to become too dense, they don't\n * make sense, and will be ignored to prevent performance problems.\n *\n * @sample {highcharts} highcharts/yaxis/minortickinterval-null/\n * Null by default\n * @sample {highcharts} highcharts/yaxis/minortickinterval-5/\n * 5 units\n * @sample {highcharts} highcharts/yaxis/minortickinterval-log-auto/\n * \"auto\"\n * @sample {highcharts} highcharts/yaxis/minortickinterval-log/\n * 0.1\n * @sample {highstock} stock/demo/basic-line/\n * Null by default\n * @sample {highstock} stock/xaxis/minortickinterval-auto/\n * \"auto\"\n *\n * @type {number|string|null}\n * @apioption xAxis.minorTickInterval\n */\n /**\n * The pixel length of the minor tick marks.\n *\n * @sample {highcharts} highcharts/yaxis/minorticklength/\n * 10px on Y axis\n * @sample {highstock} stock/xaxis/minorticks/\n * 10px on Y axis\n */\n minorTickLength: 2,\n /**\n * The position of the minor tick marks relative to the axis line.\n * Can be one of `inside` and `outside`.\n *\n * @sample {highcharts} highcharts/yaxis/minortickposition-outside/\n * Outside by default\n * @sample {highcharts} highcharts/yaxis/minortickposition-inside/\n * Inside\n * @sample {highstock} stock/xaxis/minorticks/\n * Inside\n *\n * @validvalue [\"inside\", \"outside\"]\n */\n minorTickPosition: 'outside',\n /**\n * Enable or disable minor ticks. Unless\n * [minorTickInterval](#xAxis.minorTickInterval) is set, the tick\n * interval is calculated as a fifth of the `tickInterval`.\n *\n * On a logarithmic axis, minor ticks are laid out based on a best\n * guess, attempting to enter approximately 5 minor ticks between\n * each major tick.\n *\n * Prior to v6.0.0, ticks were unabled in auto layout by setting\n * `minorTickInterval` to `\"auto\"`.\n *\n * @productdesc {highcharts}\n * On axes using [categories](#xAxis.categories), minor ticks are not\n * supported.\n *\n * @sample {highcharts} highcharts/yaxis/minorticks-true/\n * Enabled on linear Y axis\n *\n * @type {boolean}\n * @default false\n * @since 6.0.0\n * @apioption xAxis.minorTicks\n */\n /**\n * The pixel width of the minor tick mark.\n *\n * @sample {highcharts} highcharts/yaxis/minortickwidth/\n * 3px width\n * @sample {highstock} stock/xaxis/minorticks/\n * 1px width\n *\n * @type {number}\n * @default 0\n * @apioption xAxis.minorTickWidth\n */\n /**\n * Padding of the min value relative to the length of the axis. A\n * padding of 0.05 will make a 100px axis 5px longer. This is useful\n * when you don't want the lowest data value to appear on the edge\n * of the plot area. When the axis' `min` option is set or a min extreme\n * is set using `axis.setExtremes()`, the minPadding will be ignored.\n *\n * @sample {highcharts} highcharts/yaxis/minpadding/\n * Min padding of 0.2\n * @sample {highstock} stock/xaxis/minpadding-maxpadding/\n * Greater min- and maxPadding\n * @sample {highmaps} maps/chart/plotbackgroundcolor-gradient/\n * Add some padding\n *\n * @default {highcharts} 0.01\n * @default {highstock|highmaps} 0\n * @since 1.2.0\n * @product highcharts highstock gantt\n */\n minPadding: 0.01,\n /**\n * The minimum range to display on this axis. The entire axis will not\n * be allowed to span over a smaller interval than this. For example,\n * for a datetime axis the main unit is milliseconds. If minRange is\n * set to 3600000, you can't zoom in more than to one hour.\n *\n * The default minRange for the x axis is five times the smallest\n * interval between any of the data points.\n *\n * On a logarithmic axis, the unit for the minimum range is the power.\n * So a minRange of 1 means that the axis can be zoomed to 10-100,\n * 100-1000, 1000-10000 etc.\n *\n * Note that the `minPadding`, `maxPadding`, `startOnTick` and\n * `endOnTick` settings also affect how the extremes of the axis\n * are computed.\n *\n * @sample {highcharts} highcharts/xaxis/minrange/\n * Minimum range of 5\n * @sample {highstock} stock/xaxis/minrange/\n * Max zoom of 6 months overrides user selections\n * @sample {highmaps} maps/axis/minrange/\n * Minimum range of 1000\n *\n * @type {number}\n * @apioption xAxis.minRange\n */\n /**\n * The minimum tick interval allowed in axis values. For example on\n * zooming in on an axis with daily data, this can be used to prevent\n * the axis from showing hours. Defaults to the closest distance between\n * two points on the axis.\n *\n * @type {number}\n * @since 2.3.0\n * @apioption xAxis.minTickInterval\n */\n /**\n * The distance in pixels from the plot area to the axis line.\n * A positive offset moves the axis with it's line, labels and ticks\n * away from the plot area. This is typically used when two or more\n * axes are displayed on the same side of the plot. With multiple\n * axes the offset is dynamically adjusted to avoid collision, this\n * can be overridden by setting offset explicitly.\n *\n * @sample {highcharts} highcharts/yaxis/offset/\n * Y axis offset of 70\n * @sample {highcharts} highcharts/yaxis/offset-centered/\n * Axes positioned in the center of the plot\n * @sample {highstock} stock/xaxis/offset/\n * Y axis offset by 70 px\n *\n * @type {number}\n * @default 0\n * @apioption xAxis.offset\n */\n /**\n * Whether to display the axis on the opposite side of the normal. The\n * normal is on the left side for vertical axes and bottom for\n * horizontal, so the opposite sides will be right and top respectively.\n * This is typically used with dual or multiple axes.\n *\n * @sample {highcharts} highcharts/yaxis/opposite/\n * Secondary Y axis opposite\n * @sample {highstock} stock/xaxis/opposite/\n * Y axis on left side\n *\n * @type {boolean}\n * @default false\n * @apioption xAxis.opposite\n */\n /**\n * In an ordinal axis, the points are equally spaced in the chart\n * regardless of the actual time or x distance between them. This means\n * that missing data periods (e.g. nights or weekends for a stock chart)\n * will not take up space in the chart.\n * Having `ordinal: false` will show any gaps created by the `gapSize`\n * setting proportionate to their duration.\n *\n * In stock charts the X axis is ordinal by default, unless\n * the boost module is used and at least one of the series' data length\n * exceeds the [boostThreshold](#series.line.boostThreshold).\n *\n * @sample {highstock} stock/xaxis/ordinal-true/\n * True by default\n * @sample {highstock} stock/xaxis/ordinal-false/\n * False\n *\n * @type {boolean}\n * @default true\n * @since 1.1\n * @product highstock\n * @apioption xAxis.ordinal\n */\n /**\n * Additional range on the right side of the xAxis. Works similar to\n * `xAxis.maxPadding`, but value is set in milliseconds. Can be set for\n * both main `xAxis` and the navigator's `xAxis`.\n *\n * @sample {highstock} stock/xaxis/overscroll/\n * One minute overscroll with live data\n *\n * @type {number}\n * @default 0\n * @since 6.0.0\n * @product highstock\n * @apioption xAxis.overscroll\n */\n /**\n * Refers to the index in the [panes](#panes) array. Used for circular\n * gauges and polar charts. When the option is not set then first pane\n * will be used.\n *\n * @sample highcharts/demo/gauge-vu-meter\n * Two gauges with different center\n *\n * @type {number}\n * @product highcharts\n * @apioption xAxis.pane\n */\n /**\n * The zoomed range to display when only defining one or none of `min`\n * or `max`. For example, to show the latest month, a range of one month\n * can be set.\n *\n * @sample {highstock} stock/xaxis/range/\n * Setting a zoomed range when the rangeSelector is disabled\n *\n * @type {number}\n * @product highstock\n * @apioption xAxis.range\n */\n /**\n * Whether to reverse the axis so that the highest number is closest\n * to the origin. If the chart is inverted, the x axis is reversed by\n * default.\n *\n * @sample {highcharts} highcharts/yaxis/reversed/\n * Reversed Y axis\n * @sample {highstock} stock/xaxis/reversed/\n * Reversed Y axis\n *\n * @type {boolean}\n * @default false\n * @apioption xAxis.reversed\n */\n // reversed: false,\n /**\n * This option determines how stacks should be ordered within a group.\n * For example reversed xAxis also reverses stacks, so first series\n * comes last in a group. To keep order like for non-reversed xAxis\n * enable this option.\n *\n * @sample {highcharts} highcharts/xaxis/reversedstacks/\n * Reversed stacks comparison\n * @sample {highstock} highcharts/xaxis/reversedstacks/\n * Reversed stacks comparison\n *\n * @type {boolean}\n * @default false\n * @since 6.1.1\n * @product highcharts highstock\n * @apioption xAxis.reversedStacks\n */\n /**\n * An optional scrollbar to display on the X axis in response to\n * limiting the minimum and maximum of the axis values.\n *\n * In styled mode, all the presentational options for the scrollbar are\n * replaced by the classes `.highcharts-scrollbar-thumb`,\n * `.highcharts-scrollbar-arrow`, `.highcharts-scrollbar-button`,\n * `.highcharts-scrollbar-rifles` and `.highcharts-scrollbar-track`.\n *\n * @sample {highstock} stock/yaxis/heatmap-scrollbars/\n * Heatmap with both scrollbars\n *\n * @extends scrollbar\n * @since 4.2.6\n * @product highstock\n * @apioption xAxis.scrollbar\n */\n /**\n * Whether to show the axis line and title when the axis has no data.\n *\n * @sample {highcharts} highcharts/yaxis/showempty/\n * When clicking the legend to hide series, one axis preserves\n * line and title, the other doesn't\n * @sample {highstock} highcharts/yaxis/showempty/\n * When clicking the legend to hide series, one axis preserves\n * line and title, the other doesn't\n *\n * @since 1.1\n */\n showEmpty: true,\n /**\n * Whether to show the first tick label.\n *\n * @sample {highcharts} highcharts/xaxis/showfirstlabel-false/\n * Set to false on X axis\n * @sample {highstock} stock/xaxis/showfirstlabel/\n * Labels below plot lines on Y axis\n *\n * @type {boolean}\n * @default true\n * @apioption xAxis.showFirstLabel\n */\n /**\n * Whether to show the last tick label. Defaults to `true` on cartesian\n * charts, and `false` on polar charts.\n *\n * @sample {highcharts} highcharts/xaxis/showlastlabel-true/\n * Set to true on X axis\n * @sample {highstock} stock/xaxis/showfirstlabel/\n * Labels below plot lines on Y axis\n *\n * @type {boolean}\n * @default true\n * @product highcharts highstock gantt\n * @apioption xAxis.showLastLabel\n */\n /**\n * A soft maximum for the axis. If the series data maximum is less than\n * this, the axis will stay at this maximum, but if the series data\n * maximum is higher, the axis will flex to show all data.\n *\n * @sample highcharts/yaxis/softmin-softmax/\n * Soft min and max\n *\n * @type {number}\n * @since 5.0.1\n * @product highcharts highstock gantt\n * @apioption xAxis.softMax\n */\n /**\n * A soft minimum for the axis. If the series data minimum is greater\n * than this, the axis will stay at this minimum, but if the series\n * data minimum is lower, the axis will flex to show all data.\n *\n * @sample highcharts/yaxis/softmin-softmax/\n * Soft min and max\n *\n * @type {number}\n * @since 5.0.1\n * @product highcharts highstock gantt\n * @apioption xAxis.softMin\n */\n /**\n * For datetime axes, this decides where to put the tick between weeks.\n * 0 = Sunday, 1 = Monday.\n *\n * @sample {highcharts} highcharts/xaxis/startofweek-monday/\n * Monday by default\n * @sample {highcharts} highcharts/xaxis/startofweek-sunday/\n * Sunday\n * @sample {highstock} stock/xaxis/startofweek-1\n * Monday by default\n * @sample {highstock} stock/xaxis/startofweek-0\n * Sunday\n *\n * @product highcharts highstock gantt\n */\n startOfWeek: 1,\n /**\n * Whether to force the axis to start on a tick. Use this option with\n * the `minPadding` option to control the axis start.\n *\n * @productdesc {highstock}\n * In Highstock, `startOnTick` is always false when the navigator is\n * enabled, to prevent jumpy scrolling.\n *\n * @sample {highcharts} highcharts/xaxis/startontick-false/\n * False by default\n * @sample {highcharts} highcharts/xaxis/startontick-true/\n * True\n * @sample {highstock} stock/xaxis/endontick/\n * False for Y axis\n *\n * @since 1.2.0\n */\n startOnTick: false,\n /**\n * The amount of ticks to draw on the axis. This opens up for aligning\n * the ticks of multiple charts or panes within a chart. This option\n * overrides the `tickPixelInterval` option.\n *\n * This option only has an effect on linear axes. Datetime, logarithmic\n * or category axes are not affected.\n *\n * @sample {highcharts} highcharts/yaxis/tickamount/\n * 8 ticks on Y axis\n * @sample {highstock} highcharts/yaxis/tickamount/\n * 8 ticks on Y axis\n *\n * @type {number}\n * @since 4.1.0\n * @product highcharts highstock gantt\n * @apioption xAxis.tickAmount\n */\n /**\n * The interval of the tick marks in axis units. When `undefined`, the\n * tick interval is computed to approximately follow the\n * [tickPixelInterval](#xAxis.tickPixelInterval) on linear and datetime\n * axes. On categorized axes, a `undefined` tickInterval will default to\n * 1, one category. Note that datetime axes are based on milliseconds,\n * so for example an interval of one day is expressed as\n * `24 * 3600 * 1000`.\n *\n * On logarithmic axes, the tickInterval is based on powers, so a\n * tickInterval of 1 means one tick on each of 0.1, 1, 10, 100 etc. A\n * tickInterval of 2 means a tick of 0.1, 10, 1000 etc. A tickInterval\n * of 0.2 puts a tick on 0.1, 0.2, 0.4, 0.6, 0.8, 1, 2, 4, 6, 8, 10, 20,\n * 40 etc.\n *\n *\n * If the tickInterval is too dense for labels to be drawn, Highcharts\n * may remove ticks.\n *\n * If the chart has multiple axes, the [alignTicks](#chart.alignTicks)\n * option may interfere with the `tickInterval` setting.\n *\n * @see [tickPixelInterval](#xAxis.tickPixelInterval)\n * @see [tickPositions](#xAxis.tickPositions)\n * @see [tickPositioner](#xAxis.tickPositioner)\n *\n * @sample {highcharts} highcharts/xaxis/tickinterval-5/\n * Tick interval of 5 on a linear axis\n * @sample {highstock} stock/xaxis/tickinterval/\n * Tick interval of 0.01 on Y axis\n *\n * @type {number}\n * @apioption xAxis.tickInterval\n */\n /**\n * The pixel length of the main tick marks.\n *\n * @sample {highcharts} highcharts/xaxis/ticklength/\n * 20 px tick length on the X axis\n * @sample {highstock} stock/xaxis/ticks/\n * Formatted ticks on X axis\n */\n tickLength: 10,\n /**\n * If tickInterval is `null` this option sets the approximate pixel\n * interval of the tick marks. Not applicable to categorized axis.\n *\n * The tick interval is also influenced by the [minTickInterval](\n * #xAxis.minTickInterval) option, that, by default prevents ticks from\n * being denser than the data points.\n *\n * @see [tickInterval](#xAxis.tickInterval)\n * @see [tickPositioner](#xAxis.tickPositioner)\n * @see [tickPositions](#xAxis.tickPositions)\n *\n * @sample {highcharts} highcharts/xaxis/tickpixelinterval-50/\n * 50 px on X axis\n * @sample {highstock} stock/xaxis/tickpixelinterval/\n * 200 px on X axis\n */\n tickPixelInterval: 100,\n /**\n * For categorized axes only. If `on` the tick mark is placed in the\n * center of the category, if `between` the tick mark is placed between\n * categories. The default is `between` if the `tickInterval` is 1, else\n * `on`.\n *\n * @sample {highcharts} highcharts/xaxis/tickmarkplacement-between/\n * \"between\" by default\n * @sample {highcharts} highcharts/xaxis/tickmarkplacement-on/\n * \"on\"\n *\n * @product highcharts gantt\n * @validvalue [\"on\", \"between\"]\n */\n tickmarkPlacement: 'between',\n /**\n * The position of the major tick marks relative to the axis line.\n * Can be one of `inside` and `outside`.\n *\n * @sample {highcharts} highcharts/xaxis/tickposition-outside/\n * \"outside\" by default\n * @sample {highcharts} highcharts/xaxis/tickposition-inside/\n * \"inside\"\n * @sample {highstock} stock/xaxis/ticks/\n * Formatted ticks on X axis\n *\n * @validvalue [\"inside\", \"outside\"]\n */\n tickPosition: 'outside',\n /**\n * A callback function returning array defining where the ticks are\n * laid out on the axis. This overrides the default behaviour of\n * [tickPixelInterval](#xAxis.tickPixelInterval) and [tickInterval](\n * #xAxis.tickInterval). The automatic tick positions are accessible\n * through `this.tickPositions` and can be modified by the callback.\n *\n * @see [tickPositions](#xAxis.tickPositions)\n *\n * @sample {highcharts} highcharts/xaxis/tickpositions-tickpositioner/\n * Demo of tickPositions and tickPositioner\n * @sample {highstock} highcharts/xaxis/tickpositions-tickpositioner/\n * Demo of tickPositions and tickPositioner\n *\n * @type {Highcharts.AxisTickPositionerCallbackFunction}\n * @apioption xAxis.tickPositioner\n */\n /**\n * An array defining where the ticks are laid out on the axis. This\n * overrides the default behaviour of [tickPixelInterval](\n * #xAxis.tickPixelInterval) and [tickInterval](#xAxis.tickInterval).\n *\n * @see [tickPositioner](#xAxis.tickPositioner)\n *\n * @sample {highcharts} highcharts/xaxis/tickpositions-tickpositioner/\n * Demo of tickPositions and tickPositioner\n * @sample {highstock} highcharts/xaxis/tickpositions-tickpositioner/\n * Demo of tickPositions and tickPositioner\n *\n * @type {Array}\n * @apioption xAxis.tickPositions\n */\n /**\n * The pixel width of the major tick marks. Defaults to 0 on category\n * axes, otherwise 1.\n *\n * In styled mode, the stroke width is given in the `.highcharts-tick`\n * class, but in order for the element to be generated on category axes,\n * the option must be explicitly set to 1.\n *\n * @sample {highcharts} highcharts/xaxis/tickwidth/\n * 10 px width\n * @sample {highcharts} highcharts/css/axis-grid/\n * Styled mode\n * @sample {highstock} stock/xaxis/ticks/\n * Formatted ticks on X axis\n * @sample {highstock} highcharts/css/axis-grid/\n * Styled mode\n *\n * @type {undefined|number}\n * @default {highstock} 1\n * @default {highmaps} 0\n * @apioption xAxis.tickWidth\n */\n /**\n * The axis title, showing next to the axis line.\n *\n * @productdesc {highmaps}\n * In Highmaps, the axis is hidden by default, but adding an axis title\n * is still possible. X axis and Y axis titles will appear at the bottom\n * and left by default.\n */\n title: {\n /**\n * Deprecated. Set the `text` to `null` to disable the title.\n *\n * @deprecated\n * @type {boolean}\n * @product highcharts\n * @apioption xAxis.title.enabled\n */\n /**\n * The pixel distance between the axis labels or line and the title.\n * Defaults to 0 for horizontal axes, 10 for vertical\n *\n * @sample {highcharts} highcharts/xaxis/title-margin/\n * Y axis title margin of 60\n *\n * @type {number}\n * @apioption xAxis.title.margin\n */\n /**\n * The distance of the axis title from the axis line. By default,\n * this distance is computed from the offset width of the labels,\n * the labels' distance from the axis and the title's margin.\n * However when the offset option is set, it overrides all this.\n *\n * @sample {highcharts} highcharts/yaxis/title-offset/\n * Place the axis title on top of the axis\n * @sample {highstock} highcharts/yaxis/title-offset/\n * Place the axis title on top of the Y axis\n *\n * @type {number}\n * @since 2.2.0\n * @apioption xAxis.title.offset\n */\n /**\n * Whether to reserve space for the title when laying out the axis.\n *\n * @type {boolean}\n * @default true\n * @since 5.0.11\n * @product highcharts highstock gantt\n * @apioption xAxis.title.reserveSpace\n */\n /**\n * The rotation of the text in degrees. 0 is horizontal, 270 is\n * vertical reading from bottom to top.\n *\n * @sample {highcharts} highcharts/yaxis/title-offset/\n * Horizontal\n *\n * @type {number}\n * @default 0\n * @apioption xAxis.title.rotation\n */\n /**\n * The actual text of the axis title. It can contain basic HTML text\n * markup like , and spans with style.\n *\n * @sample {highcharts} highcharts/xaxis/title-text/\n * Custom HTML\n * @sample {highstock} stock/xaxis/title-text/\n * Titles for both axes\n *\n * @type {string|null}\n * @apioption xAxis.title.text\n */\n /**\n * Alignment of the text, can be `\"left\"`, `\"right\"` or `\"center\"`.\n * Default alignment depends on the\n * [title.align](xAxis.title.align):\n *\n * Horizontal axes:\n * - for `align` = `\"low\"`, `textAlign` is set to `left`\n * - for `align` = `\"middle\"`, `textAlign` is set to `center`\n * - for `align` = `\"high\"`, `textAlign` is set to `right`\n *\n * Vertical axes:\n * - for `align` = `\"low\"` and `opposite` = `true`, `textAlign` is\n * set to `right`\n * - for `align` = `\"low\"` and `opposite` = `false`, `textAlign` is\n * set to `left`\n * - for `align` = `\"middle\"`, `textAlign` is set to `center`\n * - for `align` = `\"high\"` and `opposite` = `true` `textAlign` is\n * set to `left`\n * - for `align` = `\"high\"` and `opposite` = `false` `textAlign` is\n * set to `right`\n *\n * @type {Highcharts.AlignValue}\n * @apioption xAxis.title.textAlign\n */\n /**\n * Whether to [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)\n * to render the axis title.\n *\n * @type {boolean}\n * @default false\n * @product highcharts highstock gantt\n * @apioption xAxis.title.useHTML\n */\n /**\n * Horizontal pixel offset of the title position.\n *\n * @type {number}\n * @default 0\n * @since 4.1.6\n * @product highcharts highstock gantt\n * @apioption xAxis.title.x\n */\n /**\n * Vertical pixel offset of the title position.\n *\n * @type {number}\n * @product highcharts highstock gantt\n * @apioption xAxis.title.y\n */\n /**\n * Alignment of the title relative to the axis values. Possible\n * values are \"low\", \"middle\" or \"high\".\n *\n * @sample {highcharts} highcharts/xaxis/title-align-low/\n * \"low\"\n * @sample {highcharts} highcharts/xaxis/title-align-center/\n * \"middle\" by default\n * @sample {highcharts} highcharts/xaxis/title-align-high/\n * \"high\"\n * @sample {highcharts} highcharts/yaxis/title-offset/\n * Place the Y axis title on top of the axis\n * @sample {highstock} stock/xaxis/title-align/\n * Aligned to \"high\" value\n *\n * @type {Highcharts.AxisTitleAlignValue}\n */\n align: 'middle',\n /**\n * CSS styles for the title. If the title text is longer than the\n * axis length, it will wrap to multiple lines by default. This can\n * be customized by setting `textOverflow: 'ellipsis'`, by\n * setting a specific `width` or by setting `whiteSpace: 'nowrap'`.\n *\n * In styled mode, the stroke width is given in the\n * `.highcharts-axis-title` class.\n *\n * @sample {highcharts} highcharts/xaxis/title-style/\n * Red\n * @sample {highcharts} highcharts/css/axis/\n * Styled mode\n *\n * @type {Highcharts.CSSObject}\n */\n style: {\n /** @internal */\n color: '#666666'\n }\n },\n /**\n * The type of axis. Can be one of `linear`, `logarithmic`, `datetime`\n * or `category`. In a datetime axis, the numbers are given in\n * milliseconds, and tick marks are placed on appropriate values like\n * full hours or days. In a category axis, the\n * [point names](#series.line.data.name) of the chart's series are used\n * for categories, if not a [categories](#xAxis.categories) array is\n * defined.\n *\n * @sample {highcharts} highcharts/xaxis/type-linear/\n * Linear\n * @sample {highcharts} highcharts/yaxis/type-log/\n * Logarithmic\n * @sample {highcharts} highcharts/yaxis/type-log-minorgrid/\n * Logarithmic with minor grid lines\n * @sample {highcharts} highcharts/xaxis/type-log-both/\n * Logarithmic on two axes\n * @sample {highcharts} highcharts/yaxis/type-log-negative/\n * Logarithmic with extension to emulate negative values\n *\n * @type {Highcharts.AxisTypeValue}\n * @product highcharts gantt\n */\n type: 'linear',\n /**\n * If there are multiple axes on the same side of the chart, the pixel\n * margin between the axes. Defaults to 0 on vertical axes, 15 on\n * horizontal axes.\n *\n * @type {number}\n * @since 7.0.3\n * @apioption xAxis.margin\n */\n /**\n * Applies only when the axis `type` is `category`. When `uniqueNames`\n * is true, points are placed on the X axis according to their names.\n * If the same point name is repeated in the same or another series,\n * the point is placed on the same X position as other points of the\n * same name. When `uniqueNames` is false, the points are laid out in\n * increasing X positions regardless of their names, and the X axis\n * category will take the name of the last point in each position.\n *\n * @sample {highcharts} highcharts/xaxis/uniquenames-true/\n * True by default\n * @sample {highcharts} highcharts/xaxis/uniquenames-false/\n * False\n *\n * @type {boolean}\n * @default true\n * @since 4.2.7\n * @product highcharts gantt\n * @apioption xAxis.uniqueNames\n */\n /**\n * Datetime axis only. An array determining what time intervals the\n * ticks are allowed to fall on. Each array item is an array where the\n * first value is the time unit and the second value another array of\n * allowed multiples. Defaults to:\n *\n *
units: [[\n                 *     'millisecond', // unit name\n                 *     [1, 2, 5, 10, 20, 25, 50, 100, 200, 500] // allowed multiples\n                 * ], [\n                 *     'second',\n                 *     [1, 2, 5, 10, 15, 30]\n                 * ], [\n                 *     'minute',\n                 *     [1, 2, 5, 10, 15, 30]\n                 * ], [\n                 *     'hour',\n                 *     [1, 2, 3, 4, 6, 8, 12]\n                 * ], [\n                 *     'day',\n                 *     [1]\n                 * ], [\n                 *     'week',\n                 *     [1]\n                 * ], [\n                 *     'month',\n                 *     [1, 3, 6]\n                 * ], [\n                 *     'year',\n                 *     null\n                 * ]]
\n *\n * @type {Array|null)>>}\n * @product highcharts highstock gantt\n * @apioption xAxis.units\n */\n /**\n * Whether axis, including axis title, line, ticks and labels, should\n * be visible.\n *\n * @type {boolean}\n * @default true\n * @since 4.1.9\n * @product highcharts highstock gantt\n * @apioption xAxis.visible\n */\n /**\n * Color of the minor, secondary grid lines.\n *\n * In styled mode, the stroke width is given in the\n * `.highcharts-minor-grid-line` class.\n *\n * @sample {highcharts} highcharts/yaxis/minorgridlinecolor/\n * Bright grey lines from Y axis\n * @sample {highcharts|highstock} highcharts/css/axis-grid/\n * Styled mode\n * @sample {highstock} stock/xaxis/minorgridlinecolor/\n * Bright grey lines from Y axis\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #f2f2f2\n */\n minorGridLineColor: '#f2f2f2',\n /**\n * Width of the minor, secondary grid lines.\n *\n * In styled mode, the stroke width is given in the\n * `.highcharts-grid-line` class.\n *\n * @sample {highcharts} highcharts/yaxis/minorgridlinewidth/\n * 2px lines from Y axis\n * @sample {highcharts|highstock} highcharts/css/axis-grid/\n * Styled mode\n * @sample {highstock} stock/xaxis/minorgridlinewidth/\n * 2px lines from Y axis\n */\n minorGridLineWidth: 1,\n /**\n * Color for the minor tick marks.\n *\n * @sample {highcharts} highcharts/yaxis/minortickcolor/\n * Black tick marks on Y axis\n * @sample {highstock} stock/xaxis/minorticks/\n * Black tick marks on Y axis\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #999999\n */\n minorTickColor: '#999999',\n /**\n * The color of the line marking the axis itself.\n *\n * In styled mode, the line stroke is given in the\n * `.highcharts-axis-line` or `.highcharts-xaxis-line` class.\n *\n * @productdesc {highmaps}\n * In Highmaps, the axis line is hidden by default, because the axis is\n * not visible by default.\n *\n * @sample {highcharts} highcharts/yaxis/linecolor/\n * A red line on Y axis\n * @sample {highcharts|highstock} highcharts/css/axis/\n * Axes in styled mode\n * @sample {highstock} stock/xaxis/linecolor/\n * A red line on X axis\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #ccd6eb\n */\n lineColor: '#ccd6eb',\n /**\n * The width of the line marking the axis itself.\n *\n * In styled mode, the stroke width is given in the\n * `.highcharts-axis-line` or `.highcharts-xaxis-line` class.\n *\n * @sample {highcharts} highcharts/yaxis/linecolor/\n * A 1px line on Y axis\n * @sample {highcharts|highstock} highcharts/css/axis/\n * Axes in styled mode\n * @sample {highstock} stock/xaxis/linewidth/\n * A 2px line on X axis\n *\n * @default {highcharts|highstock} 1\n * @default {highmaps} 0\n */\n lineWidth: 1,\n /**\n * Color of the grid lines extending the ticks across the plot area.\n *\n * In styled mode, the stroke is given in the `.highcharts-grid-line`\n * class.\n *\n * @productdesc {highmaps}\n * In Highmaps, the grid lines are hidden by default.\n *\n * @sample {highcharts} highcharts/yaxis/gridlinecolor/\n * Green lines\n * @sample {highcharts|highstock} highcharts/css/axis-grid/\n * Styled mode\n * @sample {highstock} stock/xaxis/gridlinecolor/\n * Green lines\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #e6e6e6\n */\n gridLineColor: '#e6e6e6',\n // gridLineDashStyle: 'solid',\n /**\n * The width of the grid lines extending the ticks across the plot area.\n *\n * In styled mode, the stroke width is given in the\n * `.highcharts-grid-line` class.\n *\n * @sample {highcharts} highcharts/yaxis/gridlinewidth/\n * 2px lines\n * @sample {highcharts|highstock} highcharts/css/axis-grid/\n * Styled mode\n * @sample {highstock} stock/xaxis/gridlinewidth/\n * 2px lines\n *\n * @type {number}\n * @default 0\n * @apioption xAxis.gridLineWidth\n */\n // gridLineWidth: 0,\n /**\n * Color for the main tick marks.\n *\n * In styled mode, the stroke is given in the `.highcharts-tick`\n * class.\n *\n * @sample {highcharts} highcharts/xaxis/tickcolor/\n * Red ticks on X axis\n * @sample {highcharts|highstock} highcharts/css/axis-grid/\n * Styled mode\n * @sample {highstock} stock/xaxis/ticks/\n * Formatted ticks on X axis\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #ccd6eb\n */\n tickColor: '#ccd6eb'\n // tickWidth: 1\n },\n /**\n * The Y axis or value axis. Normally this is the vertical axis,\n * though if the chart is inverted this is the horizontal axis.\n * In case of multiple axes, the yAxis node is an array of\n * configuration objects.\n *\n * See [the Axis object](/class-reference/Highcharts.Axis) for programmatic\n * access to the axis.\n *\n * @type {*|Array<*>}\n * @extends xAxis\n * @excluding ordinal,overscroll,currentDateIndicator\n * @optionparent yAxis\n *\n * @private\n */\n defaultYAxisOptions: {\n /**\n * In a polar chart, this is the angle of the Y axis in degrees, where\n * 0 is up and 90 is right. The angle determines the position of the\n * axis line and the labels, though the coordinate system is unaffected.\n *\n * @sample {highcharts} highcharts/yaxis/angle/\n * Dual axis polar chart\n *\n * @type {number}\n * @default 0\n * @since 4.2.7\n * @product highcharts\n * @apioption yAxis.angle\n */\n /**\n * The type of axis. Can be one of `linear`, `logarithmic`, `datetime`,\n * `category` or `treegrid`. Defaults to `treegrid` for Gantt charts,\n * `linear` for other chart types.\n *\n * In a datetime axis, the numbers are given in milliseconds, and tick\n * marks are placed on appropriate values, like full hours or days. In a\n * category or treegrid axis, the [point names](#series.line.data.name)\n * of the chart's series are used for categories, if a\n * [categories](#xAxis.categories) array is not defined.\n *\n * @sample {highcharts} highcharts/yaxis/type-log-minorgrid/\n * Logarithmic with minor grid lines\n * @sample {highcharts} highcharts/yaxis/type-log-negative/\n * Logarithmic with extension to emulate negative values\n * @sample {gantt} gantt/treegrid-axis/demo\n * Treegrid axis\n *\n * @type {Highcharts.AxisTypeValue}\n * @default {highcharts} linear\n * @default {gantt} treegrid\n * @product highcharts gantt\n * @apioption yAxis.type\n */\n /**\n * Polar charts only. Whether the grid lines should draw as a polygon\n * with straight lines between categories, or as circles. Can be either\n * `circle` or `polygon`.\n *\n * @sample {highcharts} highcharts/demo/polar-spider/\n * Polygon grid lines\n * @sample {highcharts} highcharts/yaxis/gridlineinterpolation/\n * Circle and polygon\n *\n * @type {string}\n * @product highcharts\n * @validvalue [\"circle\", \"polygon\"]\n * @apioption yAxis.gridLineInterpolation\n */\n /**\n * The height of the Y axis. If it's a number, it is interpreted as\n * pixels.\n *\n * Since Highstock 2: If it's a percentage string, it is interpreted\n * as percentages of the total plot height.\n *\n * @see [yAxis.top](#yAxis.top)\n *\n * @sample {highstock} stock/demo/candlestick-and-volume/\n * Percentage height panes\n *\n * @type {number|string}\n * @product highstock\n * @apioption yAxis.height\n */\n /**\n * Solid gauge only. Unless [stops](#yAxis.stops) are set, the color\n * to represent the maximum value of the Y axis.\n *\n * @sample {highcharts} highcharts/yaxis/mincolor-maxcolor/\n * Min and max colors\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #003399\n * @since 4.0\n * @product highcharts\n * @apioption yAxis.maxColor\n */\n /**\n * Solid gauge only. Unless [stops](#yAxis.stops) are set, the color\n * to represent the minimum value of the Y axis.\n *\n * @sample {highcharts} highcharts/yaxis/mincolor-maxcolor/\n * Min and max color\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #e6ebf5\n * @since 4.0\n * @product highcharts\n * @apioption yAxis.minColor\n */\n /**\n * Whether to reverse the axis so that the highest number is closest\n * to the origin.\n *\n * @sample {highcharts} highcharts/yaxis/reversed/\n * Reversed Y axis\n * @sample {highstock} stock/xaxis/reversed/\n * Reversed Y axis\n *\n * @type {boolean}\n * @default {highcharts} false\n * @default {highstock} false\n * @default {highmaps} true\n * @default {gantt} true\n * @apioption yAxis.reversed\n */\n /**\n * If `true`, the first series in a stack will be drawn on top in a\n * positive, non-reversed Y axis. If `false`, the first series is in\n * the base of the stack.\n *\n * @sample {highcharts} highcharts/yaxis/reversedstacks-false/\n * Non-reversed stacks\n * @sample {highstock} highcharts/yaxis/reversedstacks-false/\n * Non-reversed stacks\n *\n * @type {boolean}\n * @default true\n * @since 3.0.10\n * @product highcharts highstock\n * @apioption yAxis.reversedStacks\n */\n /**\n * Solid gauge series only. Color stops for the solid gauge. Use this\n * in cases where a linear gradient between a `minColor` and `maxColor`\n * is not sufficient. The stops is an array of tuples, where the first\n * item is a float between 0 and 1 assigning the relative position in\n * the gradient, and the second item is the color.\n *\n * For solid gauges, the Y axis also inherits the concept of\n * [data classes](http://api.highcharts.com/highmaps#colorAxis.dataClasses)\n * from the Highmaps color axis.\n *\n * @see [minColor](#yAxis.minColor)\n * @see [maxColor](#yAxis.maxColor)\n *\n * @sample {highcharts} highcharts/demo/gauge-solid/\n * True by default\n *\n * @type {Array}\n * @since 4.0\n * @product highcharts\n * @apioption yAxis.stops\n */\n /**\n * The pixel width of the major tick marks.\n *\n * @sample {highcharts} highcharts/xaxis/tickwidth/ 10 px width\n * @sample {highstock} stock/xaxis/ticks/ Formatted ticks on X axis\n *\n * @type {number}\n * @default 0\n * @product highcharts highstock gantt\n * @apioption yAxis.tickWidth\n */\n /**\n * Angular gauges and solid gauges only.\n * The label's pixel distance from the perimeter of the plot area.\n *\n * Since v7.1.2: If it's a percentage string, it is interpreted the\n * same as [series.radius](#plotOptions.gauge.radius), so label can be\n * aligned under the gauge's shape.\n *\n * @sample {highcharts} highcharts/yaxis/labels-distance/\n * Labels centered under the arc\n *\n * @type {number|string}\n * @default -25\n * @product highcharts\n * @apioption yAxis.labels.distance\n */\n /**\n * The y position offset of the label relative to the tick position\n * on the axis.\n *\n * @sample {highcharts} highcharts/xaxis/labels-x/\n * Y axis labels placed on grid lines\n *\n * @type {number}\n * @default {highcharts} 3\n * @default {highstock} -2\n * @default {highmaps} 3\n * @apioption yAxis.labels.y\n */\n /**\n * @productdesc {highstock}\n * In Highstock, `endOnTick` is always false when the navigator is\n * enabled, to prevent jumpy scrolling.\n */\n endOnTick: true,\n /**\n * Padding of the max value relative to the length of the axis. A\n * padding of 0.05 will make a 100px axis 5px longer. This is useful\n * when you don't want the highest data value to appear on the edge\n * of the plot area. When the axis' `max` option is set or a max extreme\n * is set using `axis.setExtremes()`, the maxPadding will be ignored.\n *\n * Also the `softThreshold` option takes precedence over `maxPadding`,\n * so if the data is tangent to the threshold, `maxPadding` may not\n * apply unless `softThreshold` is set to false.\n *\n * @sample {highcharts} highcharts/yaxis/maxpadding-02/\n * Max padding of 0.2\n * @sample {highstock} stock/xaxis/minpadding-maxpadding/\n * Greater min- and maxPadding\n *\n * @since 1.2.0\n * @product highcharts highstock gantt\n */\n maxPadding: 0.05,\n /**\n * Padding of the min value relative to the length of the axis. A\n * padding of 0.05 will make a 100px axis 5px longer. This is useful\n * when you don't want the lowest data value to appear on the edge\n * of the plot area. When the axis' `min` option is set or a max extreme\n * is set using `axis.setExtremes()`, the maxPadding will be ignored.\n *\n * Also the `softThreshold` option takes precedence over `minPadding`,\n * so if the data is tangent to the threshold, `minPadding` may not\n * apply unless `softThreshold` is set to false.\n *\n * @sample {highcharts} highcharts/yaxis/minpadding/\n * Min padding of 0.2\n * @sample {highstock} stock/xaxis/minpadding-maxpadding/\n * Greater min- and maxPadding\n *\n * @since 1.2.0\n * @product highcharts highstock gantt\n */\n minPadding: 0.05,\n /**\n * @productdesc {highstock}\n * In Highstock 1.x, the Y axis was placed on the left side by default.\n *\n * @sample {highcharts} highcharts/yaxis/opposite/\n * Secondary Y axis opposite\n * @sample {highstock} stock/xaxis/opposite/\n * Y axis on left side\n *\n * @type {boolean}\n * @default {highstock} true\n * @default {highcharts} false\n * @product highstock highcharts gantt\n * @apioption yAxis.opposite\n */\n /**\n * @see [tickInterval](#xAxis.tickInterval)\n * @see [tickPositioner](#xAxis.tickPositioner)\n * @see [tickPositions](#xAxis.tickPositions)\n */\n tickPixelInterval: 72,\n showLastLabel: true,\n /**\n * @extends xAxis.labels\n */\n labels: {\n /**\n * What part of the string the given position is anchored to. Can\n * be one of `\"left\"`, `\"center\"` or `\"right\"`. The exact position\n * also depends on the `labels.x` setting.\n *\n * Angular gauges and solid gauges defaults to `\"center\"`.\n * Solid gauges with two labels have additional option `\"auto\"`\n * for automatic horizontal and vertical alignment.\n *\n * @see [yAxis.labels.distance](#yAxis.labels.distance)\n *\n * @sample {highcharts} highcharts/yaxis/labels-align-left/\n * Left\n * @sample {highcharts} highcharts/series-solidgauge/labels-auto-aligned/\n * Solid gauge labels auto aligned\n *\n * @type {Highcharts.AlignValue}\n * @default {highcharts|highmaps} right\n * @default {highstock} left\n * @apioption yAxis.labels.align\n */\n /**\n * The x position offset of the label relative to the tick position\n * on the axis. Defaults to -15 for left axis, 15 for right axis.\n *\n * @sample {highcharts} highcharts/xaxis/labels-x/\n * Y axis labels placed on grid lines\n */\n x: -8\n },\n /**\n * @productdesc {highmaps}\n * In Highmaps, the axis line is hidden by default, because the axis is\n * not visible by default.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @apioption yAxis.lineColor\n */\n /**\n * @sample {highcharts} highcharts/yaxis/max-200/\n * Y axis max of 200\n * @sample {highcharts} highcharts/yaxis/max-logarithmic/\n * Y axis max on logarithmic axis\n * @sample {highstock} stock/yaxis/min-max/\n * Fixed min and max on Y axis\n * @sample {highmaps} maps/axis/min-max/\n * Pre-zoomed to a specific area\n *\n * @apioption yAxis.max\n */\n /**\n * @sample {highcharts} highcharts/yaxis/min-startontick-false/\n * -50 with startOnTick to false\n * @sample {highcharts} highcharts/yaxis/min-startontick-true/\n * -50 with startOnTick true by default\n * @sample {highstock} stock/yaxis/min-max/\n * Fixed min and max on Y axis\n * @sample {highmaps} maps/axis/min-max/\n * Pre-zoomed to a specific area\n *\n * @apioption yAxis.min\n */\n /**\n * An optional scrollbar to display on the Y axis in response to\n * limiting the minimum an maximum of the axis values.\n *\n * In styled mode, all the presentational options for the scrollbar\n * are replaced by the classes `.highcharts-scrollbar-thumb`,\n * `.highcharts-scrollbar-arrow`, `.highcharts-scrollbar-button`,\n * `.highcharts-scrollbar-rifles` and `.highcharts-scrollbar-track`.\n *\n * @sample {highstock} stock/yaxis/scrollbar/\n * Scrollbar on the Y axis\n *\n * @extends scrollbar\n * @since 4.2.6\n * @product highstock\n * @excluding height\n * @apioption yAxis.scrollbar\n */\n /**\n * Enable the scrollbar on the Y axis.\n *\n * @sample {highstock} stock/yaxis/scrollbar/\n * Enabled on Y axis\n *\n * @type {boolean}\n * @default false\n * @since 4.2.6\n * @product highstock\n * @apioption yAxis.scrollbar.enabled\n */\n /**\n * Pixel margin between the scrollbar and the axis elements.\n *\n * @type {number}\n * @default 10\n * @since 4.2.6\n * @product highstock\n * @apioption yAxis.scrollbar.margin\n */\n /**\n * Whether to show the scrollbar when it is fully zoomed out at max\n * range. Setting it to `false` on the Y axis makes the scrollbar stay\n * hidden until the user zooms in, like common in browsers.\n *\n * @type {boolean}\n * @default true\n * @since 4.2.6\n * @product highstock\n * @apioption yAxis.scrollbar.showFull\n */\n /**\n * The width of a vertical scrollbar or height of a horizontal\n * scrollbar. Defaults to 20 on touch devices.\n *\n * @type {number}\n * @default 14\n * @since 4.2.6\n * @product highstock\n * @apioption yAxis.scrollbar.size\n */\n /**\n * Z index of the scrollbar elements.\n *\n * @type {number}\n * @default 3\n * @since 4.2.6\n * @product highstock\n * @apioption yAxis.scrollbar.zIndex\n */\n /**\n * A soft maximum for the axis. If the series data maximum is less\n * than this, the axis will stay at this maximum, but if the series\n * data maximum is higher, the axis will flex to show all data.\n *\n * **Note**: The [series.softThreshold](\n * #plotOptions.series.softThreshold) option takes precedence over this\n * option.\n *\n * @sample highcharts/yaxis/softmin-softmax/\n * Soft min and max\n *\n * @type {number}\n * @since 5.0.1\n * @product highcharts highstock gantt\n * @apioption yAxis.softMax\n */\n /**\n * A soft minimum for the axis. If the series data minimum is greater\n * than this, the axis will stay at this minimum, but if the series\n * data minimum is lower, the axis will flex to show all data.\n *\n * **Note**: The [series.softThreshold](\n * #plotOptions.series.softThreshold) option takes precedence over this\n * option.\n *\n * @sample highcharts/yaxis/softmin-softmax/\n * Soft min and max\n *\n * @type {number}\n * @since 5.0.1\n * @product highcharts highstock gantt\n * @apioption yAxis.softMin\n */\n /**\n * Defines the horizontal alignment of the stack total label. Can be one\n * of `\"left\"`, `\"center\"` or `\"right\"`. The default value is calculated\n * at runtime and depends on orientation and whether the stack is\n * positive or negative.\n *\n * @sample {highcharts} highcharts/yaxis/stacklabels-align-left/\n * Aligned to the left\n * @sample {highcharts} highcharts/yaxis/stacklabels-align-center/\n * Aligned in center\n * @sample {highcharts} highcharts/yaxis/stacklabels-align-right/\n * Aligned to the right\n *\n * @type {Highcharts.AlignValue}\n * @since 2.1.5\n * @product highcharts\n * @apioption yAxis.stackLabels.align\n */\n /**\n * A [format string](http://docs.highcharts.com/#formatting) for the\n * data label. Available variables are the same as for `formatter`.\n *\n * @type {string}\n * @default {total}\n * @since 3.0.2\n * @product highcharts highstock\n * @apioption yAxis.stackLabels.format\n */\n /**\n * Rotation of the labels in degrees.\n *\n * @sample {highcharts} highcharts/yaxis/stacklabels-rotation/\n * Labels rotated 45°\n *\n * @type {number}\n * @default 0\n * @since 2.1.5\n * @product highcharts\n * @apioption yAxis.stackLabels.rotation\n */\n /**\n * The text alignment for the label. While `align` determines where the\n * texts anchor point is placed with regards to the stack, `textAlign`\n * determines how the text is aligned against its anchor point. Possible\n * values are `\"left\"`, `\"center\"` and `\"right\"`. The default value is\n * calculated at runtime and depends on orientation and whether the\n * stack is positive or negative.\n *\n * @sample {highcharts} highcharts/yaxis/stacklabels-textalign-left/\n * Label in center position but text-aligned left\n *\n * @type {Highcharts.AlignValue}\n * @since 2.1.5\n * @product highcharts\n * @apioption yAxis.stackLabels.textAlign\n */\n /**\n * Whether to [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)\n * to render the labels.\n *\n * @type {boolean}\n * @default false\n * @since 3.0\n * @product highcharts highstock\n * @apioption yAxis.stackLabels.useHTML\n */\n /**\n * Defines the vertical alignment of the stack total label. Can be one\n * of `\"top\"`, `\"middle\"` or `\"bottom\"`. The default value is calculated\n * at runtime and depends on orientation and whether the stack is\n * positive or negative.\n *\n * @sample {highcharts} highcharts/yaxis/stacklabels-verticalalign-top/\n * Vertically aligned top\n * @sample {highcharts} highcharts/yaxis/stacklabels-verticalalign-middle/\n * Vertically aligned middle\n * @sample {highcharts} highcharts/yaxis/stacklabels-verticalalign-bottom/\n * Vertically aligned bottom\n *\n * @type {Highcharts.VerticalAlignValue}\n * @since 2.1.5\n * @product highcharts\n * @apioption yAxis.stackLabels.verticalAlign\n */\n /**\n * The x position offset of the label relative to the left of the\n * stacked bar. The default value is calculated at runtime and depends\n * on orientation and whether the stack is positive or negative.\n *\n * @sample {highcharts} highcharts/yaxis/stacklabels-x/\n * Stack total labels with x offset\n *\n * @type {number}\n * @since 2.1.5\n * @product highcharts\n * @apioption yAxis.stackLabels.x\n */\n /**\n * The y position offset of the label relative to the tick position\n * on the axis. The default value is calculated at runtime and depends\n * on orientation and whether the stack is positive or negative.\n *\n * @sample {highcharts} highcharts/yaxis/stacklabels-y/\n * Stack total labels with y offset\n *\n * @type {number}\n * @since 2.1.5\n * @product highcharts\n * @apioption yAxis.stackLabels.y\n */\n /**\n * Whether to force the axis to start on a tick. Use this option with\n * the `maxPadding` option to control the axis start.\n *\n * @sample {highcharts} highcharts/xaxis/startontick-false/\n * False by default\n * @sample {highcharts} highcharts/xaxis/startontick-true/\n * True\n * @sample {highstock} stock/xaxis/endontick/\n * False for Y axis\n *\n * @since 1.2.0\n * @product highcharts highstock gantt\n */\n startOnTick: true,\n title: {\n /**\n * The pixel distance between the axis labels and the title.\n * Positive values are outside the axis line, negative are inside.\n *\n * @sample {highcharts} highcharts/xaxis/title-margin/\n * Y axis title margin of 60\n *\n * @type {number}\n * @default 40\n * @apioption yAxis.title.margin\n */\n /**\n * The rotation of the text in degrees. 0 is horizontal, 270 is\n * vertical reading from bottom to top.\n *\n * @sample {highcharts} highcharts/yaxis/title-offset/\n * Horizontal\n */\n rotation: 270,\n /**\n * The actual text of the axis title. Horizontal texts can contain\n * HTML, but rotated texts are painted using vector techniques and\n * must be clean text. The Y axis title is disabled by setting the\n * `text` option to `undefined`.\n *\n * @sample {highcharts} highcharts/xaxis/title-text/\n * Custom HTML\n *\n * @type {string|null}\n * @default {highcharts} Values\n * @default {highstock} undefined\n * @product highcharts highstock gantt\n */\n text: 'Values'\n },\n /**\n * The top position of the Y axis. If it's a number, it is interpreted\n * as pixel position relative to the chart.\n *\n * Since Highstock 2: If it's a percentage string, it is interpreted\n * as percentages of the plot height, offset from plot area top.\n *\n * @see [yAxis.height](#yAxis.height)\n *\n * @sample {highstock} stock/demo/candlestick-and-volume/\n * Percentage height panes\n *\n * @type {number|string}\n * @product highstock\n * @apioption yAxis.top\n */\n /**\n * The stack labels show the total value for each bar in a stacked\n * column or bar chart. The label will be placed on top of positive\n * columns and below negative columns. In case of an inverted column\n * chart or a bar chart the label is placed to the right of positive\n * bars and to the left of negative bars.\n *\n * @product highcharts\n */\n stackLabels: {\n /**\n * Allow the stack labels to overlap.\n *\n * @sample {highcharts} highcharts/yaxis/stacklabels-allowoverlap-false/\n * Default false\n *\n * @since 5.0.13\n * @product highcharts\n */\n allowOverlap: false,\n /**\n * Enable or disable the stack total labels.\n *\n * @sample {highcharts} highcharts/yaxis/stacklabels-enabled/\n * Enabled stack total labels\n * @sample {highcharts} highcharts/yaxis/stacklabels-enabled-waterfall/\n * Enabled stack labels in waterfall chart\n *\n * @since 2.1.5\n * @product highcharts\n */\n enabled: false,\n /**\n * Whether to hide stack labels that are outside the plot area.\n * By default, the stack label is moved\n * inside the plot area according to the\n * [overflow](/highcharts/#yAxis/stackLabels/overflow)\n * option.\n *\n * @type {boolean}\n * @since 7.1.3\n */\n crop: true,\n /**\n * How to handle stack total labels that flow outside the plot area.\n * The default is set to `\"justify\"`,\n * which aligns them inside the plot area.\n * For columns and bars, this means it will be moved inside the bar.\n * To display stack labels outside the plot area,\n * set `crop` to `false` and `overflow` to `\"allow\"`.\n *\n * @sample highcharts/yaxis/stacklabels-overflow/\n * Stack labels flows outside the plot area.\n *\n * @type {Highcharts.DataLabelsOverflowValue}\n * @since 7.1.3\n */\n overflow: 'justify',\n /* eslint-disable valid-jsdoc */\n /**\n * Callback JavaScript function to format the label. The value is\n * given by `this.total`.\n *\n * @sample {highcharts} highcharts/yaxis/stacklabels-formatter/\n * Added units to stack total value\n *\n * @type {Highcharts.FormatterCallbackFunction}\n * @since 2.1.5\n * @product highcharts\n */\n formatter: function () {\n /* eslint-enable valid-jsdoc */\n return H.numberFormat(this.total, -1);\n },\n /**\n * CSS styles for the label.\n *\n * In styled mode, the styles are set in the\n * `.highcharts-stack-label` class.\n *\n * @sample {highcharts} highcharts/yaxis/stacklabels-style/\n * Red stack total labels\n *\n * @type {Highcharts.CSSObject}\n * @since 2.1.5\n * @product highcharts\n */\n style: {\n /** @internal */\n color: '#000000',\n /** @internal */\n fontSize: '11px',\n /** @internal */\n fontWeight: 'bold',\n /** @internal */\n textOutline: '1px contrast'\n }\n },\n gridLineWidth: 1,\n lineWidth: 0\n // tickWidth: 0\n },\n /**\n * The Z axis or depth axis for 3D plots.\n *\n * See the [Axis class](/class-reference/Highcharts.Axis) for programmatic\n * access to the axis.\n *\n * @sample {highcharts} highcharts/3d/scatter-zaxis-categories/\n * Z-Axis with Categories\n * @sample {highcharts} highcharts/3d/scatter-zaxis-grid/\n * Z-Axis with styling\n *\n * @type {*|Array<*>}\n * @extends xAxis\n * @since 5.0.0\n * @product highcharts\n * @excluding breaks, crosshair, lineColor, lineWidth, nameToX, showEmpty\n * @apioption zAxis\n *\n * @private\n */\n // This variable extends the defaultOptions for left axes.\n defaultLeftAxisOptions: {\n labels: {\n x: -15\n },\n title: {\n rotation: 270\n }\n },\n // This variable extends the defaultOptions for right axes.\n defaultRightAxisOptions: {\n labels: {\n x: 15\n },\n title: {\n rotation: 90\n }\n },\n // This variable extends the defaultOptions for bottom axes.\n defaultBottomAxisOptions: {\n labels: {\n autoRotation: [-45],\n x: 0\n // overflow: undefined,\n // staggerLines: null\n },\n margin: 15,\n title: {\n rotation: 0\n }\n },\n // This variable extends the defaultOptions for top axes.\n defaultTopAxisOptions: {\n labels: {\n autoRotation: [-45],\n x: 0\n // overflow: undefined\n // staggerLines: null\n },\n margin: 15,\n title: {\n rotation: 0\n }\n },\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * Overrideable function to initialize the axis.\n *\n * @see {@link Axis}\n *\n * @function Highcharts.Axis#init\n *\n * @param {Highcharts.Chart} chart\n *\n * @param {Highcharts.AxisOptions} userOptions\n *\n * @return {void}\n *\n * @fires Highcharts.Axis#event:afterInit\n * @fires Highcharts.Axis#event:init\n */\n init: function (chart, userOptions) {\n var isXAxis = userOptions.isX, axis = this;\n /**\n * The Chart that the axis belongs to.\n *\n * @name Highcharts.Axis#chart\n * @type {Highcharts.Chart}\n */\n axis.chart = chart;\n /**\n * Whether the axis is horizontal.\n *\n * @name Highcharts.Axis#horiz\n * @type {boolean|undefined}\n */\n axis.horiz = chart.inverted && !axis.isZAxis ? !isXAxis : isXAxis;\n /**\n * Whether the axis is the x-axis.\n *\n * @name Highcharts.Axis#isXAxis\n * @type {boolean|undefined}\n */\n axis.isXAxis = isXAxis;\n /**\n * The collection where the axis belongs, for example `xAxis`, `yAxis`\n * or `colorAxis`. Corresponds to properties on Chart, for example\n * {@link Chart.xAxis}.\n *\n * @name Highcharts.Axis#coll\n * @type {string}\n */\n axis.coll = axis.coll || (isXAxis ? 'xAxis' : 'yAxis');\n fireEvent(this, 'init', { userOptions: userOptions });\n axis.opposite = userOptions.opposite; // needed in setOptions\n /**\n * The side on which the axis is rendered. 0 is top, 1 is right, 2\n * is bottom and 3 is left.\n *\n * @name Highcharts.Axis#side\n * @type {number}\n */\n axis.side = userOptions.side || (axis.horiz ?\n (axis.opposite ? 0 : 2) : // top : bottom\n (axis.opposite ? 1 : 3)); // right : left\n /**\n * Current options for the axis after merge of defaults and user's\n * options.\n *\n * @name Highcharts.Axis#options\n * @type {Highcharts.AxisOptions}\n */\n axis.setOptions(userOptions);\n var options = this.options, type = options.type, isDatetimeAxis = type === 'datetime';\n axis.labelFormatter = options.labels.formatter ||\n // can be overwritten by dynamic format\n axis.defaultLabelFormatter;\n /**\n * User's options for this axis without defaults.\n *\n * @name Highcharts.Axis#userOptions\n * @type {Highcharts.AxisOptions}\n */\n axis.userOptions = userOptions;\n axis.minPixelPadding = 0;\n /**\n * Whether the axis is reversed. Based on the `axis.reversed`,\n * option, but inverted charts have reversed xAxis by default.\n *\n * @name Highcharts.Axis#reversed\n * @type {boolean}\n */\n axis.reversed = options.reversed;\n axis.visible = options.visible !== false;\n axis.zoomEnabled = options.zoomEnabled !== false;\n // Initial categories\n axis.hasNames =\n type === 'category' || options.categories === true;\n axis.categories = options.categories || axis.hasNames;\n if (!axis.names) { // Preserve on update (#3830)\n axis.names = [];\n axis.names.keys = {};\n }\n // Placeholder for plotlines and plotbands groups\n axis.plotLinesAndBandsGroups = {};\n // Shorthand types\n axis.isLog = type === 'logarithmic';\n axis.isDatetimeAxis = isDatetimeAxis;\n axis.positiveValuesOnly = axis.isLog && !axis.allowNegativeLog;\n // Flag, if axis is linked to another axis\n axis.isLinked = defined(options.linkedTo);\n /**\n * List of major ticks mapped by postition on axis.\n *\n * @see {@link Highcharts.Tick}\n *\n * @name Highcharts.Axis#ticks\n * @type {Highcharts.Dictionary}\n */\n axis.ticks = {};\n axis.labelEdge = [];\n /**\n * List of minor ticks mapped by position on the axis.\n *\n * @see {@link Highcharts.Tick}\n *\n * @name Highcharts.Axis#minorTicks\n * @type {Highcharts.Dictionary}\n */\n axis.minorTicks = {};\n // List of plotLines/Bands\n axis.plotLinesAndBands = [];\n // Alternate bands\n axis.alternateBands = {};\n // Axis metrics\n axis.len = 0;\n axis.minRange = axis.userMinRange = options.minRange || options.maxZoom;\n axis.range = options.range;\n axis.offset = options.offset || 0;\n // Dictionary for stacks\n axis.stacks = {};\n axis.oldStacks = {};\n axis.stacksTouched = 0;\n /**\n * The maximum value of the axis. In a logarithmic axis, this is the\n * logarithm of the real value, and the real value can be obtained from\n * {@link Axis#getExtremes}.\n *\n * @name Highcharts.Axis#max\n * @type {number|null}\n */\n axis.max = null;\n /**\n * The minimum value of the axis. In a logarithmic axis, this is the\n * logarithm of the real value, and the real value can be obtained from\n * {@link Axis#getExtremes}.\n *\n * @name Highcharts.Axis#min\n * @type {number|null}\n */\n axis.min = null;\n /**\n * The processed crosshair options.\n *\n * @name Highcharts.Axis#crosshair\n * @type {boolean|Highcharts.AxisCrosshairOptions}\n */\n axis.crosshair = pick(options.crosshair, splat(chart.options.tooltip.crosshairs)[isXAxis ? 0 : 1], false);\n var events = axis.options.events;\n // Register. Don't add it again on Axis.update().\n if (chart.axes.indexOf(axis) === -1) { //\n if (isXAxis) { // #2713\n chart.axes.splice(chart.xAxis.length, 0, axis);\n }\n else {\n chart.axes.push(axis);\n }\n chart[axis.coll].push(axis);\n }\n /**\n * All series associated to the axis.\n *\n * @name Highcharts.Axis#series\n * @type {Array}\n */\n axis.series = axis.series || []; // populated by Series\n // Reversed axis\n if (chart.inverted &&\n !axis.isZAxis &&\n isXAxis &&\n axis.reversed === undefined) {\n axis.reversed = true;\n }\n // register event listeners\n objectEach(events, function (event, eventType) {\n if (H.isFunction(event)) {\n addEvent(axis, eventType, event);\n }\n });\n // extend logarithmic axis\n axis.lin2log = options.linearToLogConverter || axis.lin2log;\n if (axis.isLog) {\n axis.val2lin = axis.log2lin;\n axis.lin2val = axis.lin2log;\n }\n fireEvent(this, 'afterInit');\n },\n /**\n * Merge and set options.\n *\n * @private\n * @function Highcharts.Axis#setOptions\n * @param {Highcharts.AxisOptions} userOptions\n * @return {void}\n * @fires Highcharts.Axis#event:afterSetOptions\n */\n setOptions: function (userOptions) {\n this.options = merge(this.defaultOptions, (this.coll === 'yAxis') && this.defaultYAxisOptions, [\n this.defaultTopAxisOptions,\n this.defaultRightAxisOptions,\n this.defaultBottomAxisOptions,\n this.defaultLeftAxisOptions\n ][this.side], merge(\n // if set in setOptions (#1053):\n defaultOptions[this.coll], userOptions));\n fireEvent(this, 'afterSetOptions', { userOptions: userOptions });\n },\n /**\n * The default label formatter. The context is a special config object for\n * the label. In apps, use the\n * [labels.formatter](https://api.highcharts.com/highcharts/xAxis.labels.formatter)\n * instead, except when a modification is needed.\n *\n * @function Highcharts.Axis#defaultLabelFormatter\n *\n * @this Highcharts.AxisLabelsFormatterContextObject\n *\n * @return {string}\n * The formatted label content.\n */\n defaultLabelFormatter: function () {\n var axis = this.axis, value = this.value, time = axis.chart.time, categories = axis.categories, dateTimeLabelFormat = this.dateTimeLabelFormat, lang = defaultOptions.lang, numericSymbols = lang.numericSymbols, numSymMagnitude = lang.numericSymbolMagnitude || 1000, i = numericSymbols && numericSymbols.length, multi, ret, formatOption = axis.options.labels.format, \n // make sure the same symbol is added for all labels on a linear\n // axis\n numericSymbolDetector = axis.isLog ?\n Math.abs(value) :\n axis.tickInterval;\n if (formatOption) {\n ret = format(formatOption, this, time);\n }\n else if (categories) {\n ret = value;\n }\n else if (dateTimeLabelFormat) { // datetime axis\n ret = time.dateFormat(dateTimeLabelFormat, value);\n }\n else if (i && numericSymbolDetector >= 1000) {\n // Decide whether we should add a numeric symbol like k (thousands)\n // or M (millions). If we are to enable this in tooltip or other\n // places as well, we can move this logic to the numberFormatter and\n // enable it by a parameter.\n while (i-- && ret === undefined) {\n multi = Math.pow(numSymMagnitude, i + 1);\n if (\n // Only accept a numeric symbol when the distance is more\n // than a full unit. So for example if the symbol is k, we\n // don't accept numbers like 0.5k.\n numericSymbolDetector >= multi &&\n // Accept one decimal before the symbol. Accepts 0.5k but\n // not 0.25k. How does this work with the previous?\n (value * 10) % multi === 0 &&\n numericSymbols[i] !== null &&\n value !== 0) { // #5480\n ret = H.numberFormat(value / multi, -1) + numericSymbols[i];\n }\n }\n }\n if (ret === undefined) {\n if (Math.abs(value) >= 10000) { // add thousands separators\n ret = H.numberFormat(value, -1);\n }\n else { // small numbers\n ret = H.numberFormat(value, -1, undefined, ''); // #2466\n }\n }\n return ret;\n },\n /**\n * Get the minimum and maximum for the series of each axis. The function\n * analyzes the axis series and updates `this.dataMin` and `this.dataMax`.\n * @private\n * @fires Highcharts.Axis#event:afterGetSeriesExtremes\n * @fires Highcharts.Axis#event:getSeriesExtremes\n */\n getSeriesExtremes: function () {\n var axis = this, chart = axis.chart, xExtremes;\n fireEvent(this, 'getSeriesExtremes', null, function () {\n axis.hasVisibleSeries = false;\n // Reset properties in case we're redrawing (#3353)\n axis.dataMin = axis.dataMax = axis.threshold = null;\n axis.softThreshold = !axis.isXAxis;\n if (axis.buildStacks) {\n axis.buildStacks();\n }\n // loop through this axis' series\n axis.series.forEach(function (series) {\n if (series.visible ||\n !chart.options.chart.ignoreHiddenSeries) {\n var seriesOptions = series.options, xData, threshold = seriesOptions.threshold, seriesDataMin, seriesDataMax;\n axis.hasVisibleSeries = true;\n // Validate threshold in logarithmic axes\n if (axis.positiveValuesOnly && threshold <= 0) {\n threshold = null;\n }\n // Get dataMin and dataMax for X axes\n if (axis.isXAxis) {\n xData = series.xData;\n if (xData.length) {\n xExtremes = series.getXExtremes(xData);\n // If xData contains values which is not numbers,\n // then filter them out. To prevent performance hit,\n // we only do this after we have already found\n // seriesDataMin because in most cases all data is\n // valid. #5234.\n seriesDataMin = xExtremes.min;\n seriesDataMax = xExtremes.max;\n if (!isNumber(seriesDataMin) &&\n // #5010:\n !(seriesDataMin instanceof Date)) {\n xData = xData.filter(isNumber);\n xExtremes = series.getXExtremes(xData);\n // Do it again with valid data\n seriesDataMin = xExtremes.min;\n seriesDataMax = xExtremes.max;\n }\n if (xData.length) {\n axis.dataMin = Math.min(pick(axis.dataMin, seriesDataMin), seriesDataMin);\n axis.dataMax = Math.max(pick(axis.dataMax, seriesDataMax), seriesDataMax);\n }\n }\n // Get dataMin and dataMax for Y axes, as well as handle\n // stacking and processed data\n }\n else {\n // Get this particular series extremes\n series.getExtremes();\n seriesDataMax = series.dataMax;\n seriesDataMin = series.dataMin;\n // Get the dataMin and dataMax so far. If percentage is\n // used, the min and max are always 0 and 100. If\n // seriesDataMin and seriesDataMax is null, then series\n // doesn't have active y data, we continue with nulls\n if (defined(seriesDataMin) && defined(seriesDataMax)) {\n axis.dataMin = Math.min(pick(axis.dataMin, seriesDataMin), seriesDataMin);\n axis.dataMax = Math.max(pick(axis.dataMax, seriesDataMax), seriesDataMax);\n }\n // Adjust to threshold\n if (defined(threshold)) {\n axis.threshold = threshold;\n }\n // If any series has a hard threshold, it takes\n // precedence\n if (!seriesOptions.softThreshold ||\n axis.positiveValuesOnly) {\n axis.softThreshold = false;\n }\n }\n }\n });\n });\n fireEvent(this, 'afterGetSeriesExtremes');\n },\n /**\n * Translate from axis value to pixel position on the chart, or back. Use\n * the `toPixels` and `toValue` functions in applications.\n * @private\n * @return {number|undefined}\n */\n translate: function (val, backwards, cvsCoord, old, handleLog, pointPlacement) {\n var axis = this.linkedParent || this, // #1417\n sign = 1, cvsOffset = 0, localA = old ? axis.oldTransA : axis.transA, localMin = old ? axis.oldMin : axis.min, returnValue = 0, minPixelPadding = axis.minPixelPadding, doPostTranslate = (axis.isOrdinal ||\n axis.isBroken ||\n (axis.isLog && handleLog)) && axis.lin2val;\n if (!localA) {\n localA = axis.transA;\n }\n // In vertical axes, the canvas coordinates start from 0 at the top like\n // in SVG.\n if (cvsCoord) {\n sign *= -1; // canvas coordinates inverts the value\n cvsOffset = axis.len;\n }\n // Handle reversed axis\n if (axis.reversed) {\n sign *= -1;\n cvsOffset -= sign * (axis.sector || axis.len);\n }\n // From pixels to value\n if (backwards) { // reverse translation\n val = val * sign + cvsOffset;\n val -= minPixelPadding;\n // from chart pixel to value:\n returnValue = val / localA + localMin;\n if (doPostTranslate) { // log and ordinal axes\n returnValue = axis.lin2val(returnValue);\n }\n // From value to pixels\n }\n else {\n if (doPostTranslate) { // log and ordinal axes\n val = axis.val2lin(val);\n }\n returnValue = isNumber(localMin) ?\n (sign * (val - localMin) * localA +\n cvsOffset +\n (sign * minPixelPadding) +\n (isNumber(pointPlacement) ?\n localA * pointPlacement :\n 0)) :\n undefined;\n }\n return returnValue;\n },\n /**\n * Translate a value in terms of axis units into pixels within the chart.\n *\n * @function Highcharts.Axis#toPixels\n *\n * @param {number} value\n * A value in terms of axis units.\n *\n * @param {boolean} paneCoordinates\n * Whether to return the pixel coordinate relative to the chart or\n * just the axis/pane itself.\n *\n * @return {number}\n * Pixel position of the value on the chart or axis.\n */\n toPixels: function (value, paneCoordinates) {\n return this.translate(value, false, !this.horiz, null, true) +\n (paneCoordinates ? 0 : this.pos);\n },\n /**\n * Translate a pixel position along the axis to a value in terms of axis\n * units.\n *\n * @function Highcharts.Axis#toValue\n *\n * @param {number} pixel\n * The pixel value coordinate.\n *\n * @param {boolean} [paneCoordiantes=false]\n * Whether the input pixel is relative to the chart or just the\n * axis/pane itself.\n *\n * @return {number}\n * The axis value.\n */\n toValue: function (pixel, paneCoordinates) {\n return this.translate(pixel - (paneCoordinates ? 0 : this.pos), true, !this.horiz, null, true);\n },\n /**\n * Create the path for a plot line that goes from the given value on\n * this axis, across the plot to the opposite side. Also used internally for\n * grid lines and crosshairs.\n *\n * @function Highcharts.Axis#getPlotLinePath\n *\n * @param {Highcharts.AxisPlotLinePathOptionsObject} options\n * Options for the path.\n *\n * @return {Highcharts.SVGPathArray|null}\n * The SVG path definition for the plot line.\n */\n getPlotLinePath: function (options) {\n var axis = this, chart = axis.chart, axisLeft = axis.left, axisTop = axis.top, old = options.old, value = options.value, translatedValue = options.translatedValue, lineWidth = options.lineWidth, force = options.force, x1, y1, x2, y2, cHeight = (old && chart.oldChartHeight) || chart.chartHeight, cWidth = (old && chart.oldChartWidth) || chart.chartWidth, skip, transB = axis.transB, evt, \n /**\n * Check if x is between a and b. If not, either move to a/b\n * or skip, depending on the force parameter.\n */\n between = function (x, a, b) {\n if (force !== 'pass' && x < a || x > b) {\n if (force) {\n x = Math.min(Math.max(a, x), b);\n }\n else {\n skip = true;\n }\n }\n return x;\n };\n evt = {\n value: value,\n lineWidth: lineWidth,\n old: old,\n force: force,\n acrossPanes: options.acrossPanes,\n translatedValue: translatedValue\n };\n fireEvent(this, 'getPlotLinePath', evt, function (e) {\n translatedValue = pick(translatedValue, axis.translate(value, null, null, old));\n // Keep the translated value within sane bounds, and avoid Infinity\n // to fail the isNumber test (#7709).\n translatedValue = Math.min(Math.max(-1e5, translatedValue), 1e5);\n x1 = x2 = Math.round(translatedValue + transB);\n y1 = y2 = Math.round(cHeight - translatedValue - transB);\n if (!isNumber(translatedValue)) { // no min or max\n skip = true;\n force = false; // #7175, don't force it when path is invalid\n }\n else if (axis.horiz) {\n y1 = axisTop;\n y2 = cHeight - axis.bottom;\n x1 = x2 = between(x1, axisLeft, axisLeft + axis.width);\n }\n else {\n x1 = axisLeft;\n x2 = cWidth - axis.right;\n y1 = y2 = between(y1, axisTop, axisTop + axis.height);\n }\n e.path = skip && !force ?\n null :\n chart.renderer.crispLine(['M', x1, y1, 'L', x2, y2], lineWidth || 1);\n });\n return evt.path;\n },\n /**\n * Internal function to et the tick positions of a linear axis to round\n * values like whole tens or every five.\n *\n * @function Highcharts.Axis#getLinearTickPositions\n *\n * @param {number} tickInterval\n * The normalized tick interval.\n *\n * @param {number} min\n * Axis minimum.\n *\n * @param {number} max\n * Axis maximum.\n *\n * @return {Array}\n * An array of axis values where ticks should be placed.\n */\n getLinearTickPositions: function (tickInterval, min, max) {\n var pos, lastPos, roundedMin = correctFloat(Math.floor(min / tickInterval) * tickInterval), roundedMax = correctFloat(Math.ceil(max / tickInterval) * tickInterval), tickPositions = [], precision;\n // When the precision is higher than what we filter out in\n // correctFloat, skip it (#6183).\n if (correctFloat(roundedMin + tickInterval) === roundedMin) {\n precision = 20;\n }\n // For single points, add a tick regardless of the relative position\n // (#2662, #6274)\n if (this.single) {\n return [min];\n }\n // Populate the intermediate values\n pos = roundedMin;\n while (pos <= roundedMax) {\n // Place the tick on the rounded value\n tickPositions.push(pos);\n // Always add the raw tickInterval, not the corrected one.\n pos = correctFloat(pos + tickInterval, precision);\n // If the interval is not big enough in the current min - max range\n // to actually increase the loop variable, we need to break out to\n // prevent endless loop. Issue #619\n if (pos === lastPos) {\n break;\n }\n // Record the last value\n lastPos = pos;\n }\n return tickPositions;\n },\n /**\n * Resolve the new minorTicks/minorTickInterval options into the legacy\n * loosely typed minorTickInterval option.\n *\n * @function Highcharts.Axis#getMinorTickInterval\n * @return {number|\"auto\"|null}\n */\n getMinorTickInterval: function () {\n var options = this.options;\n if (options.minorTicks === true) {\n return pick(options.minorTickInterval, 'auto');\n }\n if (options.minorTicks === false) {\n return null;\n }\n return options.minorTickInterval;\n },\n /**\n * Internal function to return the minor tick positions. For logarithmic\n * axes, the same logic as for major ticks is reused.\n *\n * @function Highcharts.Axis#getMinorTickPositions\n *\n * @return {Array}\n * An array of axis values where ticks should be placed.\n */\n getMinorTickPositions: function () {\n var axis = this, options = axis.options, tickPositions = axis.tickPositions, minorTickInterval = axis.minorTickInterval, minorTickPositions = [], pos, pointRangePadding = axis.pointRangePadding || 0, min = axis.min - pointRangePadding, // #1498\n max = axis.max + pointRangePadding, // #1498\n range = max - min;\n // If minor ticks get too dense, they are hard to read, and may cause\n // long running script. So we don't draw them.\n if (range && range / minorTickInterval < axis.len / 3) { // #3875\n if (axis.isLog) {\n // For each interval in the major ticks, compute the minor ticks\n // separately.\n this.paddedTicks.forEach(function (pos, i, paddedTicks) {\n if (i) {\n minorTickPositions.push.apply(minorTickPositions, axis.getLogTickPositions(minorTickInterval, paddedTicks[i - 1], paddedTicks[i], true));\n }\n });\n }\n else if (axis.isDatetimeAxis &&\n this.getMinorTickInterval() === 'auto') { // #1314\n minorTickPositions = minorTickPositions.concat(axis.getTimeTicks(axis.normalizeTimeTickInterval(minorTickInterval), min, max, options.startOfWeek));\n }\n else {\n for (pos = min + (tickPositions[0] - min) % minorTickInterval; pos <= max; pos += minorTickInterval) {\n // Very, very, tight grid lines (#5771)\n if (pos === minorTickPositions[0]) {\n break;\n }\n minorTickPositions.push(pos);\n }\n }\n }\n if (minorTickPositions.length !== 0) {\n axis.trimTicks(minorTickPositions); // #3652 #3743 #1498 #6330\n }\n return minorTickPositions;\n },\n /**\n * Adjust the min and max for the minimum range. Keep in mind that the\n * series data is not yet processed, so we don't have information on data\n * cropping and grouping, or updated `axis.pointRange` or\n * `series.pointRange`. The data can't be processed until we have finally\n * established min and max.\n * @private\n */\n adjustForMinRange: function () {\n var axis = this, options = axis.options, min = axis.min, max = axis.max, zoomOffset, spaceAvailable, closestDataRange, i, distance, xData, loopLength, minArgs, maxArgs, minRange;\n // Set the automatic minimum range based on the closest point distance\n if (axis.isXAxis && axis.minRange === undefined && !axis.isLog) {\n if (defined(options.min) || defined(options.max)) {\n axis.minRange = null; // don't do this again\n }\n else {\n // Find the closest distance between raw data points, as opposed\n // to closestPointRange that applies to processed points\n // (cropped and grouped)\n axis.series.forEach(function (series) {\n xData = series.xData;\n loopLength = series.xIncrement ? 1 : xData.length - 1;\n for (i = loopLength; i > 0; i--) {\n distance = xData[i] - xData[i - 1];\n if (closestDataRange === undefined ||\n distance < closestDataRange) {\n closestDataRange = distance;\n }\n }\n });\n axis.minRange = Math.min(closestDataRange * 5, axis.dataMax - axis.dataMin);\n }\n }\n // if minRange is exceeded, adjust\n if (max - min < axis.minRange) {\n spaceAvailable =\n axis.dataMax - axis.dataMin >=\n axis.minRange;\n minRange = axis.minRange;\n zoomOffset = (minRange - max + min) / 2;\n // if min and max options have been set, don't go beyond it\n minArgs = [\n min - zoomOffset,\n pick(options.min, min - zoomOffset)\n ];\n // If space is available, stay within the data range\n if (spaceAvailable) {\n minArgs[2] = axis.isLog ?\n axis.log2lin(axis.dataMin) :\n axis.dataMin;\n }\n min = arrayMax(minArgs);\n maxArgs = [\n min + minRange,\n pick(options.max, min + minRange)\n ];\n // If space is availabe, stay within the data range\n if (spaceAvailable) {\n maxArgs[2] = axis.isLog ?\n axis.log2lin(axis.dataMax) :\n axis.dataMax;\n }\n max = arrayMin(maxArgs);\n // now if the max is adjusted, adjust the min back\n if (max - min < minRange) {\n minArgs[0] = max - minRange;\n minArgs[1] = pick(options.min, max - minRange);\n min = arrayMax(minArgs);\n }\n }\n // Record modified extremes\n axis.min = min;\n axis.max = max;\n },\n /**\n * Find the closestPointRange across all series.\n * @private\n */\n getClosest: function () {\n var ret;\n if (this.categories) {\n ret = 1;\n }\n else {\n this.series.forEach(function (series) {\n var seriesClosest = series.closestPointRange, visible = series.visible ||\n !series.chart.options.chart.ignoreHiddenSeries;\n if (!series.noSharedTooltip &&\n defined(seriesClosest) &&\n visible) {\n ret = defined(ret) ?\n Math.min(ret, seriesClosest) :\n seriesClosest;\n }\n });\n }\n return ret;\n },\n /**\n * When a point name is given and no x, search for the name in the existing\n * categories, or if categories aren't provided, search names or create a\n * new category (#2522).\n * @private\n * @param {Highcharts.Point} point The point to inspect.\n * @return {number} The X value that the point is given.\n */\n nameToX: function (point) {\n var explicitCategories = isArray(this.categories), names = explicitCategories ? this.categories : this.names, nameX = point.options.x, x;\n point.series.requireSorting = false;\n if (!defined(nameX)) {\n nameX = this.options.uniqueNames === false ?\n point.series.autoIncrement() :\n (explicitCategories ?\n names.indexOf(point.name) :\n pick(names.keys[point.name], -1));\n }\n if (nameX === -1) { // Not found in currenct categories\n if (!explicitCategories) {\n x = names.length;\n }\n }\n else {\n x = nameX;\n }\n // Write the last point's name to the names array\n if (x !== undefined) {\n this.names[x] = point.name;\n // Backwards mapping is much faster than array searching (#7725)\n this.names.keys[point.name] = x;\n }\n return x;\n },\n /**\n * When changes have been done to series data, update the axis.names.\n * @private\n */\n updateNames: function () {\n var axis = this, names = this.names, i = names.length;\n if (i > 0) {\n Object.keys(names.keys).forEach(function (key) {\n delete (names.keys)[key];\n });\n names.length = 0;\n this.minRange = this.userMinRange; // Reset\n (this.series || []).forEach(function (series) {\n // Reset incrementer (#5928)\n series.xIncrement = null;\n // When adding a series, points are not yet generated\n if (!series.points || series.isDirtyData) {\n // When we're updating the series with data that is longer\n // than it was, and cropThreshold is passed, we need to make\n // sure that the axis.max is increased _before_ running the\n // premature processData. Otherwise this early iteration of\n // processData will crop the points to axis.max, and the\n // names array will be too short (#5857).\n axis.max = Math.max(axis.max, series.xData.length - 1);\n series.processData();\n series.generatePoints();\n }\n series.data.forEach(function (point, i) {\n var x;\n if (point &&\n point.options &&\n point.name !== undefined // #9562\n ) {\n x = axis.nameToX(point);\n if (x !== undefined && x !== point.x) {\n point.x = x;\n series.xData[i] = x;\n }\n }\n });\n });\n }\n },\n /**\n * Update translation information.\n * @private\n * @param {boolean} [saveOld]\n * @fires Highcharts.Axis#event:afterSetAxisTranslation\n */\n setAxisTranslation: function (saveOld) {\n var axis = this, range = axis.max - axis.min, pointRange = axis.axisPointRange || 0, closestPointRange, minPointOffset = 0, pointRangePadding = 0, linkedParent = axis.linkedParent, ordinalCorrection, hasCategories = !!axis.categories, transA = axis.transA, isXAxis = axis.isXAxis;\n // Adjust translation for padding. Y axis with categories need to go\n // through the same (#1784).\n if (isXAxis || hasCategories || pointRange) {\n // Get the closest points\n closestPointRange = axis.getClosest();\n if (linkedParent) {\n minPointOffset = linkedParent.minPointOffset;\n pointRangePadding = linkedParent.pointRangePadding;\n }\n else {\n axis.series.forEach(function (series) {\n var seriesPointRange = hasCategories ?\n 1 :\n (isXAxis ?\n pick(series.options.pointRange, closestPointRange, 0) :\n (axis.axisPointRange || 0)), // #2806\n pointPlacement = series.options.pointPlacement;\n pointRange = Math.max(pointRange, seriesPointRange);\n if (!axis.single || hasCategories) {\n // TODO: series should internally set x- and y-\n // pointPlacement to simplify this logic.\n var isPointPlacementAxis = (seriesTypes.xrange &&\n series instanceof seriesTypes.xrange) ? !isXAxis : isXAxis;\n // minPointOffset is the value padding to the left of\n // the axis in order to make room for points with a\n // pointRange, typically columns. When the\n // pointPlacement option is 'between' or 'on', this\n // padding does not apply.\n minPointOffset = Math.max(minPointOffset, isPointPlacementAxis && isString(pointPlacement) ?\n 0 :\n seriesPointRange / 2);\n // Determine the total padding needed to the length of\n // the axis to make room for the pointRange. If the\n // series' pointPlacement is 'on', no padding is added.\n pointRangePadding = Math.max(pointRangePadding, isPointPlacementAxis && pointPlacement === 'on' ?\n 0 :\n seriesPointRange);\n }\n });\n }\n // Record minPointOffset and pointRangePadding\n ordinalCorrection = axis.ordinalSlope && closestPointRange ?\n axis.ordinalSlope / closestPointRange :\n 1; // #988, #1853\n axis.minPointOffset = minPointOffset =\n minPointOffset * ordinalCorrection;\n axis.pointRangePadding =\n pointRangePadding = pointRangePadding * ordinalCorrection;\n // pointRange means the width reserved for each point, like in a\n // column chart\n axis.pointRange = Math.min(pointRange, axis.single && hasCategories ? 1 : range);\n // closestPointRange means the closest distance between points. In\n // columns it is mostly equal to pointRange, but in lines pointRange\n // is 0 while closestPointRange is some other value\n if (isXAxis) {\n axis.closestPointRange = closestPointRange;\n }\n }\n // Secondary values\n if (saveOld) {\n axis.oldTransA = transA;\n }\n axis.translationSlope = axis.transA = transA =\n axis.staticScale ||\n axis.len / ((range + pointRangePadding) || 1);\n // Translation addend\n axis.transB = axis.horiz ? axis.left : axis.bottom;\n axis.minPixelPadding = transA * minPointOffset;\n fireEvent(this, 'afterSetAxisTranslation');\n },\n /**\n * @private\n * @return {number}\n */\n minFromRange: function () {\n return this.max - this.range;\n },\n /**\n * Set the tick positions to round values and optionally extend the extremes\n * to the nearest tick.\n * @private\n * @param {boolean} secondPass\n * @fires Highcharts.Axis#event:foundExtremes\n */\n setTickInterval: function (secondPass) {\n var axis = this, chart = axis.chart, options = axis.options, isLog = axis.isLog, isDatetimeAxis = axis.isDatetimeAxis, isXAxis = axis.isXAxis, isLinked = axis.isLinked, maxPadding = options.maxPadding, minPadding = options.minPadding, length, linkedParentExtremes, tickIntervalOption = options.tickInterval, minTickInterval, tickPixelIntervalOption = options.tickPixelInterval, categories = axis.categories, threshold = isNumber(axis.threshold) ? axis.threshold : null, softThreshold = axis.softThreshold, thresholdMin, thresholdMax, hardMin, hardMax;\n if (!isDatetimeAxis && !categories && !isLinked) {\n this.getTickAmount();\n }\n // Min or max set either by zooming/setExtremes or initial options\n hardMin = pick(axis.userMin, options.min);\n hardMax = pick(axis.userMax, options.max);\n // Linked axis gets the extremes from the parent axis\n if (isLinked) {\n axis.linkedParent = chart[axis.coll][options.linkedTo];\n linkedParentExtremes = axis.linkedParent.getExtremes();\n axis.min = pick(linkedParentExtremes.min, linkedParentExtremes.dataMin);\n axis.max = pick(linkedParentExtremes.max, linkedParentExtremes.dataMax);\n if (options.type !== axis.linkedParent.options.type) {\n // Can't link axes of different type\n H.error(11, 1, chart);\n }\n // Initial min and max from the extreme data values\n }\n else {\n // Adjust to hard threshold\n if (!softThreshold && defined(threshold)) {\n if (axis.dataMin >= threshold) {\n thresholdMin = threshold;\n minPadding = 0;\n }\n else if (axis.dataMax <= threshold) {\n thresholdMax = threshold;\n maxPadding = 0;\n }\n }\n axis.min = pick(hardMin, thresholdMin, axis.dataMin);\n axis.max = pick(hardMax, thresholdMax, axis.dataMax);\n }\n if (isLog) {\n if (axis.positiveValuesOnly &&\n !secondPass &&\n Math.min(axis.min, pick(axis.dataMin, axis.min)) <= 0) { // #978\n // Can't plot negative values on log axis\n H.error(10, 1, chart);\n }\n // The correctFloat cures #934, float errors on full tens. But it\n // was too aggressive for #4360 because of conversion back to lin,\n // therefore use precision 15.\n axis.min = correctFloat(axis.log2lin(axis.min), 16);\n axis.max = correctFloat(axis.log2lin(axis.max), 16);\n }\n // handle zoomed range\n if (axis.range && defined(axis.max)) {\n // #618, #6773:\n axis.userMin = axis.min = hardMin =\n Math.max(axis.dataMin, axis.minFromRange());\n axis.userMax = hardMax = axis.max;\n axis.range = null; // don't use it when running setExtremes\n }\n // Hook for Highstock Scroller. Consider combining with beforePadding.\n fireEvent(axis, 'foundExtremes');\n // Hook for adjusting this.min and this.max. Used by bubble series.\n if (axis.beforePadding) {\n axis.beforePadding();\n }\n // adjust min and max for the minimum range\n axis.adjustForMinRange();\n // Pad the values to get clear of the chart's edges. To avoid\n // tickInterval taking the padding into account, we do this after\n // computing tick interval (#1337).\n if (!categories &&\n !axis.axisPointRange &&\n !axis.usePercentage &&\n !isLinked &&\n defined(axis.min) &&\n defined(axis.max)) {\n length = axis.max - axis.min;\n if (length) {\n if (!defined(hardMin) && minPadding) {\n axis.min -= length * minPadding;\n }\n if (!defined(hardMax) && maxPadding) {\n axis.max += length * maxPadding;\n }\n }\n }\n // Handle options for floor, ceiling, softMin and softMax (#6359)\n if (isNumber(options.softMin) &&\n !isNumber(axis.userMin) &&\n options.softMin < axis.min) {\n axis.min = hardMin = options.softMin; // #6894\n }\n if (isNumber(options.softMax) &&\n !isNumber(axis.userMax) &&\n options.softMax > axis.max) {\n axis.max = hardMax = options.softMax; // #6894\n }\n if (isNumber(options.floor)) {\n axis.min = Math.min(Math.max(axis.min, options.floor), Number.MAX_VALUE);\n }\n if (isNumber(options.ceiling)) {\n axis.max = Math.max(Math.min(axis.max, options.ceiling), pick(axis.userMax, -Number.MAX_VALUE));\n }\n // When the threshold is soft, adjust the extreme value only if the data\n // extreme and the padded extreme land on either side of the threshold.\n // For example, a series of [0, 1, 2, 3] would make the yAxis add a tick\n // for -1 because of the default minPadding and startOnTick options.\n // This is prevented by the softThreshold option.\n if (softThreshold && defined(axis.dataMin)) {\n threshold = threshold || 0;\n if (!defined(hardMin) &&\n axis.min < threshold &&\n axis.dataMin >= threshold) {\n axis.min = axis.options.minRange ?\n Math.min(threshold, axis.max -\n axis.minRange) :\n threshold;\n }\n else if (!defined(hardMax) &&\n axis.max > threshold &&\n axis.dataMax <= threshold) {\n axis.max = axis.options.minRange ?\n Math.max(threshold, axis.min +\n axis.minRange) :\n threshold;\n }\n }\n // get tickInterval\n if (axis.min === axis.max ||\n axis.min === undefined ||\n axis.max === undefined) {\n axis.tickInterval = 1;\n }\n else if (isLinked &&\n !tickIntervalOption &&\n tickPixelIntervalOption ===\n axis.linkedParent.options.tickPixelInterval) {\n axis.tickInterval = tickIntervalOption =\n axis.linkedParent.tickInterval;\n }\n else {\n axis.tickInterval = pick(tickIntervalOption, this.tickAmount ?\n ((axis.max - axis.min) /\n Math.max(this.tickAmount - 1, 1)) :\n undefined, \n // For categoried axis, 1 is default, for linear axis use\n // tickPix\n categories ?\n 1 :\n // don't let it be more than the data range\n (axis.max - axis.min) *\n tickPixelIntervalOption /\n Math.max(axis.len, tickPixelIntervalOption));\n }\n // Now we're finished detecting min and max, crop and group series data.\n // This is in turn needed in order to find tick positions in ordinal\n // axes.\n if (isXAxis && !secondPass) {\n axis.series.forEach(function (series) {\n series.processData(axis.min !== axis.oldMin || axis.max !== axis.oldMax);\n });\n }\n // set the translation factor used in translate function\n axis.setAxisTranslation(true);\n // hook for ordinal axes and radial axes\n if (axis.beforeSetTickPositions) {\n axis.beforeSetTickPositions();\n }\n // hook for extensions, used in Highstock ordinal axes\n if (axis.postProcessTickInterval) {\n axis.tickInterval = axis.postProcessTickInterval(axis.tickInterval);\n }\n // In column-like charts, don't cramp in more ticks than there are\n // points (#1943, #4184)\n if (axis.pointRange && !tickIntervalOption) {\n axis.tickInterval = Math.max(axis.pointRange, axis.tickInterval);\n }\n // Before normalizing the tick interval, handle minimum tick interval.\n // This applies only if tickInterval is not defined.\n minTickInterval = pick(options.minTickInterval, (axis.isDatetimeAxis && axis.closestPointRange));\n if (!tickIntervalOption && axis.tickInterval < minTickInterval) {\n axis.tickInterval = minTickInterval;\n }\n // for linear axes, get magnitude and normalize the interval\n if (!isDatetimeAxis && !isLog && !tickIntervalOption) {\n axis.tickInterval = normalizeTickInterval(axis.tickInterval, null, getMagnitude(axis.tickInterval), \n // If the tick interval is between 0.5 and 5 and the axis max is\n // in the order of thousands, chances are we are dealing with\n // years. Don't allow decimals. #3363.\n pick(options.allowDecimals, !(axis.tickInterval > 0.5 &&\n axis.tickInterval < 5 &&\n axis.max > 1000 &&\n axis.max < 9999)), !!this.tickAmount);\n }\n // Prevent ticks from getting so close that we can't draw the labels\n if (!this.tickAmount) {\n axis.tickInterval = axis.unsquish();\n }\n this.setTickPositions();\n },\n /**\n * Now we have computed the normalized tickInterval, get the tick positions\n *\n * @function Highcharts.Axis#setTickPositions\n *\n * @fires Highcharts.Axis#event:afterSetTickPositions\n */\n setTickPositions: function () {\n var options = this.options, tickPositions, tickPositionsOption = options.tickPositions, minorTickIntervalOption = this.getMinorTickInterval(), tickPositioner = options.tickPositioner, startOnTick = options.startOnTick, endOnTick = options.endOnTick;\n // Set the tickmarkOffset\n this.tickmarkOffset = (this.categories &&\n options.tickmarkPlacement === 'between' &&\n this.tickInterval === 1) ? 0.5 : 0; // #3202\n // get minorTickInterval\n this.minorTickInterval =\n minorTickIntervalOption === 'auto' &&\n this.tickInterval ?\n this.tickInterval / 5 :\n minorTickIntervalOption;\n // When there is only one point, or all points have the same value on\n // this axis, then min and max are equal and tickPositions.length is 0\n // or 1. In this case, add some padding in order to center the point,\n // but leave it with one tick. #1337.\n this.single =\n this.min === this.max &&\n defined(this.min) &&\n !this.tickAmount &&\n (\n // Data is on integer (#6563)\n parseInt(this.min, 10) === this.min ||\n // Between integers and decimals are not allowed (#6274)\n options.allowDecimals !== false);\n /**\n * Contains the current positions that are laid out on the axis. The\n * positions are numbers in terms of axis values. In a category axis\n * they are integers, in a datetime axis they are also integers, but\n * designating milliseconds.\n *\n * This property is read only - for modifying the tick positions, use\n * the `tickPositioner` callback or [axis.tickPositions(\n * https://api.highcharts.com/highcharts/xAxis.tickPositions) option\n * instead.\n *\n * @name Highcharts.Axis#tickPositions\n * @type {Array|undefined}\n */\n this.tickPositions =\n // Find the tick positions. Work on a copy (#1565)\n tickPositions =\n (tickPositionsOption && tickPositionsOption.slice());\n if (!tickPositions) {\n // Too many ticks (#6405). Create a friendly warning and provide two\n // ticks so at least we can show the data series.\n if (!this.ordinalPositions &&\n ((this.max - this.min) /\n this.tickInterval >\n Math.max(2 * this.len, 200))) {\n tickPositions = [this.min, this.max];\n H.error(19, false, this.chart);\n }\n else if (this.isDatetimeAxis) {\n tickPositions = this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval, options.units), this.min, this.max, options.startOfWeek, this.ordinalPositions, this.closestPointRange, true);\n }\n else if (this.isLog) {\n tickPositions = this.getLogTickPositions(this.tickInterval, this.min, this.max);\n }\n else {\n tickPositions = this.getLinearTickPositions(this.tickInterval, this.min, this.max);\n }\n // Too dense ticks, keep only the first and last (#4477)\n if (tickPositions.length > this.len) {\n tickPositions = [tickPositions[0], tickPositions.pop()];\n // Reduce doubled value (#7339)\n if (tickPositions[0] === tickPositions[1]) {\n tickPositions.length = 1;\n }\n }\n this.tickPositions = tickPositions;\n // Run the tick positioner callback, that allows modifying auto tick\n // positions.\n if (tickPositioner) {\n tickPositioner = tickPositioner.apply(this, [this.min, this.max]);\n if (tickPositioner) {\n this.tickPositions = tickPositions = tickPositioner;\n }\n }\n }\n // Reset min/max or remove extremes based on start/end on tick\n this.paddedTicks = tickPositions.slice(0); // Used for logarithmic minor\n this.trimTicks(tickPositions, startOnTick, endOnTick);\n if (!this.isLinked) {\n // Substract half a unit (#2619, #2846, #2515, #3390),\n // but not in case of multiple ticks (#6897)\n if (this.single && tickPositions.length < 2 && !this.categories) {\n this.min -= 0.5;\n this.max += 0.5;\n }\n if (!tickPositionsOption && !tickPositioner) {\n this.adjustTickAmount();\n }\n }\n fireEvent(this, 'afterSetTickPositions');\n },\n /**\n * Handle startOnTick and endOnTick by either adapting to padding min/max or\n * rounded min/max. Also handle single data points.\n * @private\n */\n trimTicks: function (tickPositions, startOnTick, endOnTick) {\n var roundedMin = tickPositions[0], roundedMax = tickPositions[tickPositions.length - 1], minPointOffset = this.minPointOffset || 0;\n fireEvent(this, 'trimTicks');\n if (!this.isLinked) {\n if (startOnTick && roundedMin !== -Infinity) { // #6502\n this.min = roundedMin;\n }\n else {\n while (this.min - minPointOffset > tickPositions[0]) {\n tickPositions.shift();\n }\n }\n if (endOnTick) {\n this.max = roundedMax;\n }\n else {\n while (this.max + minPointOffset <\n tickPositions[tickPositions.length - 1]) {\n tickPositions.pop();\n }\n }\n // If no tick are left, set one tick in the middle (#3195)\n if (tickPositions.length === 0 &&\n defined(roundedMin) &&\n !this.options.tickPositions) {\n tickPositions.push((roundedMax + roundedMin) / 2);\n }\n }\n },\n /**\n * Check if there are multiple axes in the same pane.\n * @private\n * @return {boolean|undefined} True if there are other axes.\n */\n alignToOthers: function () {\n var others = // Whether there is another axis to pair with this one\n {}, hasOther, options = this.options;\n if (\n // Only if alignTicks is true\n this.chart.options.chart.alignTicks !== false &&\n options.alignTicks !== false &&\n // Disabled when startOnTick or endOnTick are false (#7604)\n options.startOnTick !== false &&\n options.endOnTick !== false &&\n // Don't try to align ticks on a log axis, they are not evenly\n // spaced (#6021)\n !this.isLog) {\n this.chart[this.coll].forEach(function (axis) {\n var otherOptions = axis.options, horiz = axis.horiz, key = [\n horiz ? otherOptions.left : otherOptions.top,\n otherOptions.width,\n otherOptions.height,\n otherOptions.pane\n ].join(',');\n if (axis.series.length) { // #4442\n if (others[key]) {\n hasOther = true; // #4201\n }\n else {\n others[key] = 1;\n }\n }\n });\n }\n return hasOther;\n },\n /**\n * Find the max ticks of either the x and y axis collection, and record it\n * in `this.tickAmount`.\n * @private\n * @return {void}\n */\n getTickAmount: function () {\n var options = this.options, tickAmount = options.tickAmount, tickPixelInterval = options.tickPixelInterval;\n if (!defined(options.tickInterval) &&\n this.len < tickPixelInterval &&\n !this.isRadial &&\n !this.isLog &&\n options.startOnTick &&\n options.endOnTick) {\n tickAmount = 2;\n }\n if (!tickAmount && this.alignToOthers()) {\n // Add 1 because 4 tick intervals require 5 ticks (including first\n // and last)\n tickAmount = Math.ceil(this.len / tickPixelInterval) + 1;\n }\n // For tick amounts of 2 and 3, compute five ticks and remove the\n // intermediate ones. This prevents the axis from adding ticks that are\n // too far away from the data extremes.\n if (tickAmount < 4) {\n this.finalTickAmt = tickAmount;\n tickAmount = 5;\n }\n this.tickAmount = tickAmount;\n },\n /**\n * When using multiple axes, adjust the number of ticks to match the highest\n * number of ticks in that group.\n * @private\n * @return {void}\n */\n adjustTickAmount: function () {\n var axis = this, axisOptions = axis.options, tickInterval = axis.tickInterval, tickPositions = axis.tickPositions, tickAmount = axis.tickAmount, finalTickAmt = axis.finalTickAmt, currentTickAmount = tickPositions && tickPositions.length, threshold = pick(axis.threshold, axis.softThreshold ? 0 : null), min, len, i;\n if (axis.hasData()) {\n if (currentTickAmount < tickAmount) {\n min = axis.min;\n while (tickPositions.length < tickAmount) {\n // Extend evenly for both sides unless we're on the\n // threshold (#3965)\n if (tickPositions.length % 2 ||\n min === threshold) {\n // to the end\n tickPositions.push(correctFloat(tickPositions[tickPositions.length - 1] +\n tickInterval));\n }\n else {\n // to the start\n tickPositions.unshift(correctFloat(tickPositions[0] - tickInterval));\n }\n }\n axis.transA *= (currentTickAmount - 1) / (tickAmount - 1);\n // Do not crop when ticks are not extremes (#9841)\n axis.min = axisOptions.startOnTick ?\n tickPositions[0] :\n Math.min(axis.min, tickPositions[0]);\n axis.max = axisOptions.endOnTick ?\n tickPositions[tickPositions.length - 1] :\n Math.max(axis.max, tickPositions[tickPositions.length - 1]);\n // We have too many ticks, run second pass to try to reduce ticks\n }\n else if (currentTickAmount > tickAmount) {\n axis.tickInterval *= 2;\n axis.setTickPositions();\n }\n // The finalTickAmt property is set in getTickAmount\n if (defined(finalTickAmt)) {\n i = len = tickPositions.length;\n while (i--) {\n if (\n // Remove every other tick\n (finalTickAmt === 3 && i % 2 === 1) ||\n // Remove all but first and last\n (finalTickAmt <= 2 && i > 0 && i < len - 1)) {\n tickPositions.splice(i, 1);\n }\n }\n axis.finalTickAmt = undefined;\n }\n }\n },\n /**\n * Set the scale based on data min and max, user set min and max or options.\n * @private\n * @return {void}\n * @fires Highcharts.Axis#event:afterSetScale\n */\n setScale: function () {\n var axis = this, isDirtyData = axis.series.some(function (series) {\n return (series.isDirtyData ||\n series.isDirty ||\n // When x axis is dirty, we need new data extremes for y as\n // well:\n series.xAxis && series.xAxis.isDirty);\n }), isDirtyAxisLength;\n axis.oldMin = axis.min;\n axis.oldMax = axis.max;\n axis.oldAxisLength = axis.len;\n // set the new axisLength\n axis.setAxisSize();\n isDirtyAxisLength = axis.len !== axis.oldAxisLength;\n // do we really need to go through all this?\n if (isDirtyAxisLength ||\n isDirtyData ||\n axis.isLinked ||\n axis.forceRedraw ||\n axis.userMin !== axis.oldUserMin ||\n axis.userMax !== axis.oldUserMax ||\n axis.alignToOthers()) {\n if (axis.resetStacks) {\n axis.resetStacks();\n }\n axis.forceRedraw = false;\n // get data extremes if needed\n axis.getSeriesExtremes();\n // get fixed positions based on tickInterval\n axis.setTickInterval();\n // record old values to decide whether a rescale is necessary later\n // on (#540)\n axis.oldUserMin = axis.userMin;\n axis.oldUserMax = axis.userMax;\n // Mark as dirty if it is not already set to dirty and extremes have\n // changed. #595.\n if (!axis.isDirty) {\n axis.isDirty =\n isDirtyAxisLength ||\n axis.min !== axis.oldMin ||\n axis.max !== axis.oldMax;\n }\n }\n else if (axis.cleanStacks) {\n axis.cleanStacks();\n }\n fireEvent(this, 'afterSetScale');\n },\n /**\n * Set the minimum and maximum of the axes after render time. If the\n * `startOnTick` and `endOnTick` options are true, the minimum and maximum\n * values are rounded off to the nearest tick. To prevent this, these\n * options can be set to false before calling setExtremes. Also, setExtremes\n * will not allow a range lower than the `minRange` option, which by default\n * is the range of five points.\n *\n * @sample highcharts/members/axis-setextremes/\n * Set extremes from a button\n * @sample highcharts/members/axis-setextremes-datetime/\n * Set extremes on a datetime axis\n * @sample highcharts/members/axis-setextremes-off-ticks/\n * Set extremes off ticks\n * @sample stock/members/axis-setextremes/\n * Set extremes in Highstock\n * @sample maps/members/axis-setextremes/\n * Set extremes in Highmaps\n *\n * @function Highcharts.Axis#setExtremes\n *\n * @param {number} [newMin]\n * The new minimum value.\n *\n * @param {number} [newMax]\n * The new maximum value.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart or wait for an explicit call to\n * {@link Highcharts.Chart#redraw}\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation=true]\n * Enable or modify animations.\n *\n * @param {*} [eventArguments]\n * Arguments to be accessed in event handler.\n *\n * @return {void}\n *\n * @fires Highcharts.Axis#event:setExtremes\n */\n setExtremes: function (newMin, newMax, redraw, animation, eventArguments) {\n var axis = this, chart = axis.chart;\n redraw = pick(redraw, true); // defaults to true\n axis.series.forEach(function (serie) {\n delete serie.kdTree;\n });\n // Extend the arguments with min and max\n eventArguments = extend(eventArguments, {\n min: newMin,\n max: newMax\n });\n // Fire the event\n fireEvent(axis, 'setExtremes', eventArguments, function () {\n axis.userMin = newMin;\n axis.userMax = newMax;\n axis.eventArgs = eventArguments;\n if (redraw) {\n chart.redraw(animation);\n }\n });\n },\n /**\n * Overridable method for zooming chart. Pulled out in a separate method to\n * allow overriding in stock charts.\n * @private\n * @function Highcharts.Axis#zoom\n * @param {number} newMin\n * @param {number} newMax\n * @return {boolean}\n */\n zoom: function (newMin, newMax) {\n var dataMin = this.dataMin, dataMax = this.dataMax, options = this.options, min = Math.min(dataMin, pick(options.min, dataMin)), max = Math.max(dataMax, pick(options.max, dataMax)), evt = {\n newMin: newMin,\n newMax: newMax\n };\n fireEvent(this, 'zoom', evt, function (e) {\n // Use e.newMin and e.newMax - event handlers may have altered them\n var newMin = e.newMin, newMax = e.newMax;\n if (newMin !== this.min || newMax !== this.max) { // #5790\n // Prevent pinch zooming out of range. Check for defined is for\n // #1946. #1734.\n if (!this.allowZoomOutside) {\n // #6014, sometimes newMax will be smaller than min (or\n // newMin will be larger than max).\n if (defined(dataMin)) {\n if (newMin < min) {\n newMin = min;\n }\n if (newMin > max) {\n newMin = max;\n }\n }\n if (defined(dataMax)) {\n if (newMax < min) {\n newMax = min;\n }\n if (newMax > max) {\n newMax = max;\n }\n }\n }\n // In full view, displaying the reset zoom button is not\n // required\n this.displayBtn = newMin !== undefined || newMax !== undefined;\n // Do it\n this.setExtremes(newMin, newMax, false, undefined, { trigger: 'zoom' });\n }\n e.zoomed = true;\n });\n return evt.zoomed;\n },\n /**\n * Update the axis metrics.\n * @private\n * @return {void}\n */\n setAxisSize: function () {\n var chart = this.chart, options = this.options, \n // [top, right, bottom, left]\n offsets = options.offsets || [0, 0, 0, 0], horiz = this.horiz, \n // Check for percentage based input values. Rounding fixes problems\n // with column overflow and plot line filtering (#4898, #4899)\n width = this.width = Math.round(H.relativeLength(pick(options.width, chart.plotWidth - offsets[3] + offsets[1]), chart.plotWidth)), height = this.height = Math.round(H.relativeLength(pick(options.height, chart.plotHeight - offsets[0] + offsets[2]), chart.plotHeight)), top = this.top = Math.round(H.relativeLength(pick(options.top, chart.plotTop + offsets[0]), chart.plotHeight, chart.plotTop)), left = this.left = Math.round(H.relativeLength(pick(options.left, chart.plotLeft + offsets[3]), chart.plotWidth, chart.plotLeft));\n // Expose basic values to use in Series object and navigator\n this.bottom = chart.chartHeight - height - top;\n this.right = chart.chartWidth - width - left;\n // Direction agnostic properties\n this.len = Math.max(horiz ? width : height, 0); // Math.max fixes #905\n this.pos = horiz ? left : top; // distance from SVG origin\n },\n /**\n * Get the current extremes for the axis.\n *\n * @sample highcharts/members/axis-getextremes/\n * Report extremes by click on a button\n * @sample maps/members/axis-getextremes/\n * Get extremes in Highmaps\n *\n * @function Highcharts.Axis#getExtremes\n *\n * @returns {Highcharts.ExtremesObject}\n * An object containing extremes information.\n */\n getExtremes: function () {\n var axis = this, isLog = axis.isLog;\n return {\n min: isLog ?\n correctFloat(axis.lin2log(axis.min)) :\n axis.min,\n max: isLog ?\n correctFloat(axis.lin2log(axis.max)) :\n axis.max,\n dataMin: axis.dataMin,\n dataMax: axis.dataMax,\n userMin: axis.userMin,\n userMax: axis.userMax\n };\n },\n /**\n * Get the zero plane either based on zero or on the min or max value.\n * Used in bar and area plots.\n *\n * @function Highcharts.Axis#getThreshold\n *\n * @param {number} threshold\n * The threshold in axis values.\n *\n * @return {number|undefined}\n * The translated threshold position in terms of pixels, and\n * corrected to stay within the axis bounds.\n */\n getThreshold: function (threshold) {\n var axis = this, isLog = axis.isLog, realMin = isLog ? axis.lin2log(axis.min) : axis.min, realMax = isLog ? axis.lin2log(axis.max) : axis.max;\n if (threshold === null || threshold === -Infinity) {\n threshold = realMin;\n }\n else if (threshold === Infinity) {\n threshold = realMax;\n }\n else if (realMin > threshold) {\n threshold = realMin;\n }\n else if (realMax < threshold) {\n threshold = realMax;\n }\n return axis.translate(threshold, 0, 1, 0, 1);\n },\n /**\n * Compute auto alignment for the axis label based on which side the axis is\n * on and the given rotation for the label.\n * @private\n * @param {number} rotation The rotation in degrees as set by either the\n * `rotation` or `autoRotation` options.\n * @return {Highcharts.AlignValue} Can be `\"center\"`, `\"left\"` or `\"right\"`.\n */\n autoLabelAlign: function (rotation) {\n var angle = (pick(rotation, 0) - (this.side * 90) + 720) % 360, evt = { align: 'center' };\n fireEvent(this, 'autoLabelAlign', evt, function (e) {\n if (angle > 15 && angle < 165) {\n e.align = 'right';\n }\n else if (angle > 195 && angle < 345) {\n e.align = 'left';\n }\n });\n return evt.align;\n },\n /**\n * Get the tick length and width for the axis based on axis options.\n * @private\n * @param {string} [prefix]\n * 'tick' or 'minorTick'\n * @return {Array}\n * An array of tickLength and tickWidth\n */\n tickSize: function (prefix) {\n var options = this.options, tickLength = options[prefix + 'Length'], tickWidth = pick(options[prefix + 'Width'], \n // Default to 1 on linear and datetime X axes\n prefix === 'tick' && this.isXAxis && !this.categories ? 1 : 0), e, tickSize;\n if (tickWidth && tickLength) {\n // Negate the length\n if (options[prefix + 'Position'] === 'inside') {\n tickLength = -tickLength;\n }\n tickSize = [tickLength, tickWidth];\n }\n e = { tickSize: tickSize };\n fireEvent(this, 'afterTickSize', e);\n return e.tickSize;\n },\n /**\n * Return the size of the labels.\n * @private\n * @return {Highcharts.FontMetricsObject}\n */\n labelMetrics: function () {\n var index = this.tickPositions && this.tickPositions[0] || 0;\n return this.chart.renderer.fontMetrics(this.options.labels.style &&\n this.options.labels.style.fontSize, this.ticks[index] && this.ticks[index].label);\n },\n /**\n * Prevent the ticks from getting so close we can't draw the labels. On a\n * horizontal axis, this is handled by rotating the labels, removing ticks\n * and adding ellipsis. On a vertical axis remove ticks and add ellipsis.\n * @private\n * @return {number}\n */\n unsquish: function () {\n var labelOptions = this.options.labels, horiz = this.horiz, tickInterval = this.tickInterval, newTickInterval = tickInterval, slotSize = this.len / (((this.categories ? 1 : 0) +\n this.max -\n this.min) /\n tickInterval), rotation, rotationOption = labelOptions.rotation, labelMetrics = this.labelMetrics(), step, bestScore = Number.MAX_VALUE, autoRotation, range = this.max - this.min, \n // Return the multiple of tickInterval that is needed to avoid\n // collision\n getStep = function (spaceNeeded) {\n var step = spaceNeeded / (slotSize || 1);\n step = step > 1 ? Math.ceil(step) : 1;\n // Guard for very small or negative angles (#9835)\n if (step * tickInterval > range &&\n spaceNeeded !== Infinity &&\n slotSize !== Infinity &&\n range) {\n step = Math.ceil(range / tickInterval);\n }\n return correctFloat(step * tickInterval);\n };\n if (horiz) {\n autoRotation = !labelOptions.staggerLines &&\n !labelOptions.step &&\n ( // #3971\n defined(rotationOption) ?\n [rotationOption] :\n slotSize < pick(labelOptions.autoRotationLimit, 80) && labelOptions.autoRotation);\n if (autoRotation) {\n // Loop over the given autoRotation options, and determine\n // which gives the best score. The best score is that with\n // the lowest number of steps and a rotation closest\n // to horizontal.\n autoRotation.forEach(function (rot) {\n var score;\n if (rot === rotationOption ||\n (rot && rot >= -90 && rot <= 90)) { // #3891\n step = getStep(Math.abs(labelMetrics.h / Math.sin(deg2rad * rot)));\n score = step + Math.abs(rot / 360);\n if (score < bestScore) {\n bestScore = score;\n rotation = rot;\n newTickInterval = step;\n }\n }\n });\n }\n }\n else if (!labelOptions.step) { // #4411\n newTickInterval = getStep(labelMetrics.h);\n }\n this.autoRotation = autoRotation;\n this.labelRotation = pick(rotation, rotationOption);\n return newTickInterval;\n },\n /**\n * Get the general slot width for labels/categories on this axis. This may\n * change between the pre-render (from Axis.getOffset) and the final tick\n * rendering and placement.\n * @private\n * @param {Highcharts.Tick} [tick] Optionally, calculate the slot width\n * basing on tick label. It is used in highcharts-3d module, where the slots\n * has different widths depending on perspective angles.\n * @return {number} The pixel width allocated to each axis label.\n */\n getSlotWidth: function (tick) {\n // #5086, #1580, #1931\n var chart = this.chart, horiz = this.horiz, labelOptions = this.options.labels, slotCount = Math.max(this.tickPositions.length - (this.categories ? 0 : 1), 1), marginLeft = chart.margin[3];\n return (tick &&\n tick.slotWidth // Used by grid axis\n ) || (horiz &&\n (labelOptions.step || 0) < 2 &&\n !labelOptions.rotation && // #4415\n ((this.staggerLines || 1) * this.len) / slotCount) || (!horiz && (\n // #7028\n (labelOptions.style &&\n parseInt(labelOptions.style.width, 10)) ||\n (marginLeft &&\n (marginLeft - chart.spacing[3])) ||\n chart.chartWidth * 0.33));\n },\n /**\n * Render the axis labels and determine whether ellipsis or rotation need to\n * be applied.\n * @private\n * @return {void}\n */\n renderUnsquish: function () {\n var chart = this.chart, renderer = chart.renderer, tickPositions = this.tickPositions, ticks = this.ticks, labelOptions = this.options.labels, labelStyleOptions = (labelOptions && labelOptions.style || {}), horiz = this.horiz, slotWidth = this.getSlotWidth(), innerWidth = Math.max(1, Math.round(slotWidth - 2 * (labelOptions.padding || 5))), attr = {}, labelMetrics = this.labelMetrics(), textOverflowOption = (labelOptions.style &&\n labelOptions.style.textOverflow), commonWidth, commonTextOverflow, maxLabelLength = 0, label, i, pos;\n // Set rotation option unless it is \"auto\", like in gauges\n if (!isString(labelOptions.rotation)) {\n // #4443:\n attr.rotation = labelOptions.rotation || 0;\n }\n // Get the longest label length\n tickPositions.forEach(function (tick) {\n tick = ticks[tick];\n if (tick &&\n tick.label &&\n tick.label.textPxLength > maxLabelLength) {\n maxLabelLength = tick.label.textPxLength;\n }\n });\n this.maxLabelLength = maxLabelLength;\n // Handle auto rotation on horizontal axis\n if (this.autoRotation) {\n // Apply rotation only if the label is too wide for the slot, and\n // the label is wider than its height.\n if (maxLabelLength > innerWidth &&\n maxLabelLength > labelMetrics.h) {\n attr.rotation = this.labelRotation;\n }\n else {\n this.labelRotation = 0;\n }\n // Handle word-wrap or ellipsis on vertical axis\n }\n else if (slotWidth) {\n // For word-wrap or ellipsis\n commonWidth = innerWidth;\n if (!textOverflowOption) {\n commonTextOverflow = 'clip';\n // On vertical axis, only allow word wrap if there is room\n // for more lines.\n i = tickPositions.length;\n while (!horiz && i--) {\n pos = tickPositions[i];\n label = ticks[pos].label;\n if (label) {\n // Reset ellipsis in order to get the correct\n // bounding box (#4070)\n if (label.styles &&\n label.styles.textOverflow === 'ellipsis') {\n label.css({ textOverflow: 'clip' });\n // Set the correct width in order to read\n // the bounding box height (#4678, #5034)\n }\n else if (label.textPxLength > slotWidth) {\n label.css({ width: slotWidth + 'px' });\n }\n if (label.getBBox().height > (this.len / tickPositions.length -\n (labelMetrics.h - labelMetrics.f))) {\n label.specificTextOverflow = 'ellipsis';\n }\n }\n }\n }\n }\n // Add ellipsis if the label length is significantly longer than ideal\n if (attr.rotation) {\n commonWidth = (maxLabelLength > chart.chartHeight * 0.5 ?\n chart.chartHeight * 0.33 :\n maxLabelLength);\n if (!textOverflowOption) {\n commonTextOverflow = 'ellipsis';\n }\n }\n // Set the explicit or automatic label alignment\n this.labelAlign = labelOptions.align ||\n this.autoLabelAlign(this.labelRotation);\n if (this.labelAlign) {\n attr.align = this.labelAlign;\n }\n // Apply general and specific CSS\n tickPositions.forEach(function (pos) {\n var tick = ticks[pos], label = tick && tick.label, widthOption = labelStyleOptions.width, css = {};\n if (label) {\n // This needs to go before the CSS in old IE (#4502)\n label.attr(attr);\n if (tick.shortenLabel) {\n tick.shortenLabel();\n }\n else if (commonWidth &&\n !widthOption &&\n // Setting width in this case messes with the bounding box\n // (#7975)\n labelStyleOptions.whiteSpace !== 'nowrap' &&\n (\n // Speed optimizing, #7656\n commonWidth < label.textPxLength ||\n // Resetting CSS, #4928\n label.element.tagName === 'SPAN')) {\n css.width = commonWidth;\n if (!textOverflowOption) {\n css.textOverflow = (label.specificTextOverflow ||\n commonTextOverflow);\n }\n label.css(css);\n // Reset previously shortened label (#8210)\n }\n else if (label.styles &&\n label.styles.width &&\n !css.width &&\n !widthOption) {\n label.css({ width: null });\n }\n delete label.specificTextOverflow;\n tick.rotation = attr.rotation;\n }\n }, this);\n // Note: Why is this not part of getLabelPosition?\n this.tickRotCorr = renderer.rotCorr(labelMetrics.b, this.labelRotation || 0, this.side !== 0);\n },\n /**\n * Return true if the axis has associated data.\n *\n * @function Highcharts.Axis#hasData\n *\n * @return {boolean}\n * True if the axis has associated visible series and those series\n * have either valid data points or explicit `min` and `max`\n * settings.\n */\n hasData: function () {\n return this.series.some(function (s) {\n return s.hasData();\n }) ||\n (this.options.showEmpty &&\n defined(this.min) &&\n defined(this.max));\n },\n /**\n * Adds the title defined in axis.options.title.\n *\n * @function Highcharts.Axis#addTitle\n *\n * @param {boolean} [display]\n * Whether or not to display the title.\n *\n * @return {void}\n */\n addTitle: function (display) {\n var axis = this, renderer = axis.chart.renderer, horiz = axis.horiz, opposite = axis.opposite, options = axis.options, axisTitleOptions = options.title, textAlign, styledMode = axis.chart.styledMode;\n if (!axis.axisTitle) {\n textAlign = axisTitleOptions.textAlign;\n if (!textAlign) {\n textAlign = (horiz ? {\n low: 'left',\n middle: 'center',\n high: 'right'\n } : {\n low: opposite ? 'right' : 'left',\n middle: 'center',\n high: opposite ? 'left' : 'right'\n })[axisTitleOptions.align];\n }\n axis.axisTitle = renderer\n .text(axisTitleOptions.text, 0, 0, axisTitleOptions.useHTML)\n .attr({\n zIndex: 7,\n rotation: axisTitleOptions.rotation || 0,\n align: textAlign\n })\n .addClass('highcharts-axis-title');\n // #7814, don't mutate style option\n if (!styledMode) {\n axis.axisTitle.css(merge(axisTitleOptions.style));\n }\n axis.axisTitle.add(axis.axisGroup);\n axis.axisTitle.isNew = true;\n }\n // Max width defaults to the length of the axis\n if (!styledMode &&\n !axisTitleOptions.style.width &&\n !axis.isRadial) {\n axis.axisTitle.css({\n width: axis.len\n });\n }\n // hide or show the title depending on whether showEmpty is set\n axis.axisTitle[display ? 'show' : 'hide'](display);\n },\n /**\n * Generates a tick for initial positioning.\n * @private\n * @param {number} pos The tick position in axis values.\n * @param {number} [i] The index of the tick in {@link Axis.tickPositions}.\n */\n generateTick: function (pos) {\n var ticks = this.ticks;\n if (!ticks[pos]) {\n ticks[pos] = new Tick(this, pos);\n }\n else {\n ticks[pos].addLabel(); // update labels depending on tick interval\n }\n },\n /**\n * Render the tick labels to a preliminary position to get their sizes\n * @private\n * @return {void}\n * @fires Highcharts.Axis#event:afterGetOffset\n */\n getOffset: function () {\n var axis = this, chart = axis.chart, renderer = chart.renderer, options = axis.options, tickPositions = axis.tickPositions, ticks = axis.ticks, horiz = axis.horiz, side = axis.side, invertedSide = chart.inverted &&\n !axis.isZAxis ? [1, 0, 3, 2][side] : side, hasData, showAxis, titleOffset = 0, titleOffsetOption, titleMargin = 0, axisTitleOptions = options.title, labelOptions = options.labels, labelOffset = 0, // reset\n labelOffsetPadded, axisOffset = chart.axisOffset, clipOffset = chart.clipOffset, clip, directionFactor = [-1, 1, 1, -1][side], className = options.className, axisParent = axis.axisParent, // Used in color axis\n lineHeightCorrection, tickSize;\n // For reuse in Axis.render\n hasData = axis.hasData();\n axis.showAxis = showAxis = hasData || pick(options.showEmpty, true);\n // Set/reset staggerLines\n axis.staggerLines = axis.horiz && labelOptions.staggerLines;\n // Create the axisGroup and gridGroup elements on first iteration\n if (!axis.axisGroup) {\n axis.gridGroup = renderer.g('grid')\n .attr({ zIndex: options.gridZIndex || 1 })\n .addClass('highcharts-' + this.coll.toLowerCase() + '-grid ' +\n (className || ''))\n .add(axisParent);\n axis.axisGroup = renderer.g('axis')\n .attr({ zIndex: options.zIndex || 2 })\n .addClass('highcharts-' + this.coll.toLowerCase() + ' ' +\n (className || ''))\n .add(axisParent);\n axis.labelGroup = renderer.g('axis-labels')\n .attr({ zIndex: labelOptions.zIndex || 7 })\n .addClass('highcharts-' + axis.coll.toLowerCase() + '-labels ' +\n (className || ''))\n .add(axisParent);\n }\n if (hasData || axis.isLinked) {\n // Generate ticks\n tickPositions.forEach(function (pos, i) {\n // i is not used here, but may be used in overrides\n axis.generateTick(pos, i);\n });\n axis.renderUnsquish();\n // Left side must be align: right and right side must\n // have align: left for labels\n axis.reserveSpaceDefault = (side === 0 ||\n side === 2 ||\n { 1: 'left', 3: 'right' }[side] === axis.labelAlign);\n if (pick(labelOptions.reserveSpace, axis.labelAlign === 'center' ? true : null, axis.reserveSpaceDefault)) {\n tickPositions.forEach(function (pos) {\n // get the highest offset\n labelOffset = Math.max(ticks[pos].getLabelSize(), labelOffset);\n });\n }\n if (axis.staggerLines) {\n labelOffset *= axis.staggerLines;\n }\n axis.labelOffset = labelOffset * (axis.opposite ? -1 : 1);\n }\n else { // doesn't have data\n objectEach(ticks, function (tick, n) {\n tick.destroy();\n delete ticks[n];\n });\n }\n if (axisTitleOptions &&\n axisTitleOptions.text &&\n axisTitleOptions.enabled !== false) {\n axis.addTitle(showAxis);\n if (showAxis && axisTitleOptions.reserveSpace !== false) {\n axis.titleOffset = titleOffset =\n axis.axisTitle.getBBox()[horiz ? 'height' : 'width'];\n titleOffsetOption = axisTitleOptions.offset;\n titleMargin = defined(titleOffsetOption) ?\n 0 :\n pick(axisTitleOptions.margin, horiz ? 5 : 10);\n }\n }\n // Render the axis line\n axis.renderLine();\n // handle automatic or user set offset\n axis.offset = directionFactor * pick(options.offset, axisOffset[side] ? axisOffset[side] + (options.margin || 0) : 0);\n axis.tickRotCorr = axis.tickRotCorr || { x: 0, y: 0 }; // polar\n if (side === 0) {\n lineHeightCorrection = -axis.labelMetrics().h;\n }\n else if (side === 2) {\n lineHeightCorrection = axis.tickRotCorr.y;\n }\n else {\n lineHeightCorrection = 0;\n }\n // Find the padded label offset\n labelOffsetPadded = Math.abs(labelOffset) + titleMargin;\n if (labelOffset) {\n labelOffsetPadded -= lineHeightCorrection;\n labelOffsetPadded += directionFactor * (horiz ?\n pick(labelOptions.y, axis.tickRotCorr.y + directionFactor * 8) :\n labelOptions.x);\n }\n axis.axisTitleMargin = pick(titleOffsetOption, labelOffsetPadded);\n if (axis.getMaxLabelDimensions) {\n axis.maxLabelDimensions = axis.getMaxLabelDimensions(ticks, tickPositions);\n }\n // Due to GridAxis.tickSize, tickSize should be calculated after ticks\n // has rendered.\n tickSize = this.tickSize('tick');\n axisOffset[side] = Math.max(axisOffset[side], axis.axisTitleMargin + titleOffset +\n directionFactor * axis.offset, labelOffsetPadded, // #3027\n tickPositions && tickPositions.length && tickSize ?\n tickSize[0] + directionFactor * axis.offset :\n 0 // #4866\n );\n // Decide the clipping needed to keep the graph inside\n // the plot area and axis lines\n clip = options.offset ?\n 0 :\n // #4308, #4371:\n Math.floor(axis.axisLine.strokeWidth() / 2) * 2;\n clipOffset[invertedSide] =\n Math.max(clipOffset[invertedSide], clip);\n fireEvent(this, 'afterGetOffset');\n },\n /**\n * Internal function to get the path for the axis line. Extended for polar\n * charts.\n *\n * @function Highcharts.Axis#getLinePath\n *\n * @param {number} lineWidth\n * The line width in pixels.\n *\n * @return {Highcharts.SVGPathArray}\n * The SVG path definition in array form.\n */\n getLinePath: function (lineWidth) {\n var chart = this.chart, opposite = this.opposite, offset = this.offset, horiz = this.horiz, lineLeft = this.left + (opposite ? this.width : 0) + offset, lineTop = chart.chartHeight - this.bottom -\n (opposite ? this.height : 0) + offset;\n if (opposite) {\n lineWidth *= -1; // crispify the other way - #1480, #1687\n }\n return chart.renderer\n .crispLine([\n 'M',\n horiz ?\n this.left :\n lineLeft,\n horiz ?\n lineTop :\n this.top,\n 'L',\n horiz ?\n chart.chartWidth - this.right :\n lineLeft,\n horiz ?\n lineTop :\n chart.chartHeight - this.bottom\n ], lineWidth);\n },\n /**\n * Render the axis line. Called internally when rendering and redrawing the\n * axis.\n *\n * @function Highcharts.Axis#renderLine\n *\n * @return {void}\n */\n renderLine: function () {\n if (!this.axisLine) {\n this.axisLine = this.chart.renderer.path()\n .addClass('highcharts-axis-line')\n .add(this.axisGroup);\n if (!this.chart.styledMode) {\n this.axisLine.attr({\n stroke: this.options.lineColor,\n 'stroke-width': this.options.lineWidth,\n zIndex: 7\n });\n }\n }\n },\n /**\n * Position the axis title.\n * @private\n * @return {Highcharts.PositionObject} X and Y positions for the title.\n */\n getTitlePosition: function () {\n // compute anchor points for each of the title align options\n var horiz = this.horiz, axisLeft = this.left, axisTop = this.top, axisLength = this.len, axisTitleOptions = this.options.title, margin = horiz ? axisLeft : axisTop, opposite = this.opposite, offset = this.offset, xOption = axisTitleOptions.x || 0, yOption = axisTitleOptions.y || 0, axisTitle = this.axisTitle, fontMetrics = this.chart.renderer.fontMetrics(axisTitleOptions.style &&\n axisTitleOptions.style.fontSize, axisTitle), \n // The part of a multiline text that is below the baseline of the\n // first line. Subtract 1 to preserve pixel-perfectness from the\n // old behaviour (v5.0.12), where only one line was allowed.\n textHeightOvershoot = Math.max(axisTitle.getBBox(null, 0).height - fontMetrics.h - 1, 0), \n // the position in the length direction of the axis\n alongAxis = {\n low: margin + (horiz ? 0 : axisLength),\n middle: margin + axisLength / 2,\n high: margin + (horiz ? axisLength : 0)\n }[axisTitleOptions.align], \n // the position in the perpendicular direction of the axis\n offAxis = (horiz ? axisTop + this.height : axisLeft) +\n (horiz ? 1 : -1) * // horizontal axis reverses the margin\n (opposite ? -1 : 1) * // so does opposite axes\n this.axisTitleMargin +\n [\n -textHeightOvershoot,\n textHeightOvershoot,\n fontMetrics.f,\n -textHeightOvershoot // left\n ][this.side], titlePosition = {\n x: horiz ?\n alongAxis + xOption :\n offAxis + (opposite ? this.width : 0) + offset + xOption,\n y: horiz ?\n offAxis + yOption - (opposite ? this.height : 0) + offset :\n alongAxis + yOption\n };\n fireEvent(this, 'afterGetTitlePosition', { titlePosition: titlePosition });\n return titlePosition;\n },\n /**\n * Render a minor tick into the given position. If a minor tick already\n * exists in this position, move it.\n *\n * @function Highcharts.Axis#renderMinorTick\n *\n * @param {number} pos\n * The position in axis values.\n *\n * @return {void}\n */\n renderMinorTick: function (pos) {\n var slideInTicks = this.chart.hasRendered && isNumber(this.oldMin), minorTicks = this.minorTicks;\n if (!minorTicks[pos]) {\n minorTicks[pos] = new Tick(this, pos, 'minor');\n }\n // Render new ticks in old position\n if (slideInTicks && minorTicks[pos].isNew) {\n minorTicks[pos].render(null, true);\n }\n minorTicks[pos].render(null, false, 1);\n },\n /**\n * Render a major tick into the given position. If a tick already exists\n * in this position, move it.\n *\n * @function Highcharts.Axis#renderTick\n *\n * @param {number} pos\n * The position in axis values.\n *\n * @param {number} i\n * The tick index.\n *\n * @return {void}\n */\n renderTick: function (pos, i) {\n var isLinked = this.isLinked, ticks = this.ticks, slideInTicks = this.chart.hasRendered && isNumber(this.oldMin);\n // Linked axes need an extra check to find out if\n if (!isLinked ||\n (pos >= this.min && pos <= this.max)) {\n if (!ticks[pos]) {\n ticks[pos] = new Tick(this, pos);\n }\n // NOTE this seems like overkill. Could be handled in tick.render by\n // setting old position in attr, then set new position in animate.\n // render new ticks in old position\n if (slideInTicks && ticks[pos].isNew) {\n // Start with negative opacity so that it is visible from\n // halfway into the animation\n ticks[pos].render(i, true, -1);\n }\n ticks[pos].render(i);\n }\n },\n /**\n * Render the axis.\n * @private\n * @return {void}\n * @fires Highcharts.Axis#event:afterRender\n */\n render: function () {\n var axis = this, chart = axis.chart, renderer = chart.renderer, options = axis.options, isLog = axis.isLog, isLinked = axis.isLinked, tickPositions = axis.tickPositions, axisTitle = axis.axisTitle, ticks = axis.ticks, minorTicks = axis.minorTicks, alternateBands = axis.alternateBands, stackLabelOptions = options.stackLabels, alternateGridColor = options.alternateGridColor, tickmarkOffset = axis.tickmarkOffset, axisLine = axis.axisLine, showAxis = axis.showAxis, animation = animObject(renderer.globalAnimation), from, to;\n // Reset\n axis.labelEdge.length = 0;\n axis.overlap = false;\n // Mark all elements inActive before we go over and mark the active ones\n [ticks, minorTicks, alternateBands].forEach(function (coll) {\n objectEach(coll, function (tick) {\n tick.isActive = false;\n });\n });\n // If the series has data draw the ticks. Else only the line and title\n if (axis.hasData() || isLinked) {\n // minor ticks\n if (axis.minorTickInterval && !axis.categories) {\n axis.getMinorTickPositions().forEach(function (pos) {\n axis.renderMinorTick(pos);\n });\n }\n // Major ticks. Pull out the first item and render it last so that\n // we can get the position of the neighbour label. #808.\n if (tickPositions.length) { // #1300\n tickPositions.forEach(function (pos, i) {\n axis.renderTick(pos, i);\n });\n // In a categorized axis, the tick marks are displayed\n // between labels. So we need to add a tick mark and\n // grid line at the left edge of the X axis.\n if (tickmarkOffset && (axis.min === 0 || axis.single)) {\n if (!ticks[-1]) {\n ticks[-1] = new Tick(axis, -1, null, true);\n }\n ticks[-1].render(-1);\n }\n }\n // alternate grid color\n if (alternateGridColor) {\n tickPositions.forEach(function (pos, i) {\n to = tickPositions[i + 1] !== undefined ?\n tickPositions[i + 1] + tickmarkOffset :\n axis.max - tickmarkOffset;\n if (i % 2 === 0 &&\n pos < axis.max &&\n to <= axis.max + (chart.polar ?\n -tickmarkOffset :\n tickmarkOffset)) { // #2248, #4660\n if (!alternateBands[pos]) {\n alternateBands[pos] = new H.PlotLineOrBand(axis);\n }\n from = pos + tickmarkOffset; // #949\n alternateBands[pos].options = {\n from: isLog ? axis.lin2log(from) : from,\n to: isLog ? axis.lin2log(to) : to,\n color: alternateGridColor\n };\n alternateBands[pos].render();\n alternateBands[pos].isActive = true;\n }\n });\n }\n // custom plot lines and bands\n if (!axis._addedPlotLB) { // only first time\n (options.plotLines || [])\n .concat(options.plotBands || [])\n .forEach(function (plotLineOptions) {\n axis.addPlotBandOrLine(plotLineOptions);\n });\n axis._addedPlotLB = true;\n }\n } // end if hasData\n // Remove inactive ticks\n [ticks, minorTicks, alternateBands].forEach(function (coll) {\n var i, forDestruction = [], delay = animation.duration, destroyInactiveItems = function () {\n i = forDestruction.length;\n while (i--) {\n // When resizing rapidly, the same items\n // may be destroyed in different timeouts,\n // or the may be reactivated\n if (coll[forDestruction[i]] &&\n !coll[forDestruction[i]].isActive) {\n coll[forDestruction[i]].destroy();\n delete coll[forDestruction[i]];\n }\n }\n };\n objectEach(coll, function (tick, pos) {\n if (!tick.isActive) {\n // Render to zero opacity\n tick.render(pos, false, 0);\n tick.isActive = false;\n forDestruction.push(pos);\n }\n });\n // When the objects are finished fading out, destroy them\n syncTimeout(destroyInactiveItems, coll === alternateBands ||\n !chart.hasRendered ||\n !delay ?\n 0 :\n delay);\n });\n // Set the axis line path\n if (axisLine) {\n axisLine[axisLine.isPlaced ? 'animate' : 'attr']({\n d: this.getLinePath(axisLine.strokeWidth())\n });\n axisLine.isPlaced = true;\n // Show or hide the line depending on options.showEmpty\n axisLine[showAxis ? 'show' : 'hide'](showAxis);\n }\n if (axisTitle && showAxis) {\n var titleXy = axis.getTitlePosition();\n if (isNumber(titleXy.y)) {\n axisTitle[axisTitle.isNew ? 'attr' : 'animate'](titleXy);\n axisTitle.isNew = false;\n }\n else {\n axisTitle.attr('y', -9999);\n axisTitle.isNew = true;\n }\n }\n // Stacked totals:\n if (stackLabelOptions && stackLabelOptions.enabled) {\n axis.renderStackTotals();\n }\n // End stacked totals\n axis.isDirty = false;\n fireEvent(this, 'afterRender');\n },\n /**\n * Redraw the axis to reflect changes in the data or axis extremes. Called\n * internally from Highcharts.Chart#redraw.\n * @private\n * @return {void}\n */\n redraw: function () {\n if (this.visible) {\n // render the axis\n this.render();\n // move plot lines and bands\n this.plotLinesAndBands.forEach(function (plotLine) {\n plotLine.render();\n });\n }\n // mark associated series as dirty and ready for redraw\n this.series.forEach(function (series) {\n series.isDirty = true;\n });\n },\n // Properties to survive after destroy, needed for Axis.update (#4317,\n // #5773, #5881).\n keepProps: ['extKey', 'hcEvents', 'names', 'series', 'userMax', 'userMin'],\n /**\n * Destroys an Axis instance. See {@link Axis#remove} for the API endpoint\n * to fully remove the axis.\n * @private\n * @param {boolean} [keepEvents] Whether to preserve events, used internally\n * in Axis.update.\n * @return {void}\n */\n destroy: function (keepEvents) {\n var axis = this, stacks = axis.stacks, plotLinesAndBands = axis.plotLinesAndBands, plotGroup, i;\n fireEvent(this, 'destroy', { keepEvents: keepEvents });\n // Remove the events\n if (!keepEvents) {\n removeEvent(axis);\n }\n // Destroy each stack total\n objectEach(stacks, function (stack, stackKey) {\n destroyObjectProperties(stack);\n stacks[stackKey] = null;\n });\n // Destroy collections\n [axis.ticks, axis.minorTicks, axis.alternateBands].forEach(function (coll) {\n destroyObjectProperties(coll);\n });\n if (plotLinesAndBands) {\n i = plotLinesAndBands.length;\n while (i--) { // #1975\n plotLinesAndBands[i].destroy();\n }\n }\n // Destroy elements\n ['stackTotalGroup', 'axisLine', 'axisTitle', 'axisGroup',\n 'gridGroup', 'labelGroup', 'cross', 'scrollbar'].forEach(function (prop) {\n if (axis[prop]) {\n axis[prop] = axis[prop].destroy();\n }\n });\n // Destroy each generated group for plotlines and plotbands\n for (plotGroup in axis.plotLinesAndBandsGroups) { // eslint-disable-line guard-for-in\n axis.plotLinesAndBandsGroups[plotGroup] =\n axis.plotLinesAndBandsGroups[plotGroup].destroy();\n }\n // Delete all properties and fall back to the prototype.\n objectEach(axis, function (val, key) {\n if (axis.keepProps.indexOf(key) === -1) {\n delete axis[key];\n }\n });\n },\n /**\n * Internal function to draw a crosshair.\n *\n * @function Highcharts.Axis#drawCrosshair\n *\n * @param {Highcharts.PointerEventObject} [e]\n * The event arguments from the modified pointer event, extended with\n * `chartX` and `chartY`\n *\n * @param {Highcharts.Point} [point]\n * The Point object if the crosshair snaps to points.\n *\n * @return {void}\n *\n * @fires Highcharts.Axis#event:afterDrawCrosshair\n * @fires Highcharts.Axis#event:drawCrosshair\n */\n drawCrosshair: function (e, point) {\n var path, options = this.crosshair, snap = pick(options.snap, true), pos, categorized, graphic = this.cross;\n fireEvent(this, 'drawCrosshair', { e: e, point: point });\n // Use last available event when updating non-snapped crosshairs without\n // mouse interaction (#5287)\n if (!e) {\n e = this.cross && this.cross.e;\n }\n if (\n // Disabled in options\n !this.crosshair ||\n // Snap\n ((defined(point) || !snap) === false)) {\n this.hideCrosshair();\n }\n else {\n // Get the path\n if (!snap) {\n pos = e &&\n (this.horiz ?\n e.chartX - this.pos :\n this.len - e.chartY + this.pos);\n }\n else if (defined(point)) {\n // #3834\n pos = pick(this.coll !== 'colorAxis' ?\n point.crosshairPos : // 3D axis extension\n null, this.isXAxis ?\n point.plotX :\n this.len - point.plotY);\n }\n if (defined(pos)) {\n path = this.getPlotLinePath({\n // value, only used on radial\n value: point && (this.isXAxis ?\n point.x :\n pick(point.stackY, point.y)),\n translatedValue: pos\n }) || null; // #3189\n }\n if (!defined(path)) {\n this.hideCrosshair();\n return;\n }\n categorized = this.categories && !this.isRadial;\n // Draw the cross\n if (!graphic) {\n this.cross = graphic = this.chart.renderer\n .path()\n .addClass('highcharts-crosshair highcharts-crosshair-' +\n (categorized ? 'category ' : 'thin ') +\n options.className)\n .attr({\n zIndex: pick(options.zIndex, 2)\n })\n .add();\n // Presentational attributes\n if (!this.chart.styledMode) {\n graphic.attr({\n stroke: options.color ||\n (categorized ?\n color('#ccd6eb')\n .setOpacity(0.25).get() :\n '#cccccc'),\n 'stroke-width': pick(options.width, 1)\n }).css({\n 'pointer-events': 'none'\n });\n if (options.dashStyle) {\n graphic.attr({\n dashstyle: options.dashStyle\n });\n }\n }\n }\n graphic.show().attr({\n d: path\n });\n if (categorized && !options.width) {\n graphic.attr({\n 'stroke-width': this.transA\n });\n }\n this.cross.e = e;\n }\n fireEvent(this, 'afterDrawCrosshair', { e: e, point: point });\n },\n /**\n * Hide the crosshair if visible.\n *\n * @function Highcharts.Axis#hideCrosshair\n *\n * @return {void}\n */\n hideCrosshair: function () {\n if (this.cross) {\n this.cross.hide();\n }\n fireEvent(this, 'afterHideCrosshair');\n }\n }); // end Axis\n H.Axis = Axis;\n\n return Axis;\n });\n _registerModule(_modules, 'parts/DateTimeAxis.js', [_modules['parts/Globals.js']], function (H) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n var Axis = H.Axis, getMagnitude = H.getMagnitude, normalizeTickInterval = H.normalizeTickInterval, timeUnits = H.timeUnits;\n /* eslint-disable valid-jsdoc */\n /**\n * Set the tick positions to a time unit that makes sense, for example\n * on the first of each month or on every Monday. Return an array\n * with the time positions. Used in datetime axes as well as for grouping\n * data on a datetime axis.\n *\n * @private\n * @function Highcharts.Axis#getTimeTicks\n *\n * @param {Highcharts.DateTimeAxisNormalizedObject} normalizedInterval\n * The interval in axis values (ms) and thecount\n *\n * @param {number} min\n * The minimum in axis values\n *\n * @param {number} max\n * The maximum in axis values\n *\n * @param {number} startOfWeek\n *\n * @return {Highcharts.AxisTickPositionsArray}\n */\n Axis.prototype.getTimeTicks = function () {\n return this.chart.time.getTimeTicks.apply(this.chart.time, arguments);\n };\n /**\n * Get a normalized tick interval for dates. Returns a configuration object with\n * unit range (interval), count and name. Used to prepare data for getTimeTicks.\n * Previously this logic was part of getTimeTicks, but as getTimeTicks now runs\n * of segments in stock charts, the normalizing logic was extracted in order to\n * prevent it for running over again for each segment having the same interval.\n * #662, #697.\n *\n * @private\n * @function Highcharts.Axis#normalizeTimeTickInterval\n * @param {number} tickInterval\n * @param {Array|null)>>} [unitsOption]\n * @return {Highcharts.DateTimeAxisNormalizedObject}\n */\n Axis.prototype.normalizeTimeTickInterval = function (tickInterval, unitsOption) {\n var units = unitsOption || [[\n 'millisecond',\n [1, 2, 5, 10, 20, 25, 50, 100, 200, 500] // allowed multiples\n ], [\n 'second',\n [1, 2, 5, 10, 15, 30]\n ], [\n 'minute',\n [1, 2, 5, 10, 15, 30]\n ], [\n 'hour',\n [1, 2, 3, 4, 6, 8, 12]\n ], [\n 'day',\n [1, 2]\n ], [\n 'week',\n [1, 2]\n ], [\n 'month',\n [1, 2, 3, 4, 6]\n ], [\n 'year',\n null\n ]], unit = units[units.length - 1], // default unit is years\n interval = timeUnits[unit[0]], multiples = unit[1], count, i;\n // loop through the units to find the one that best fits the tickInterval\n for (i = 0; i < units.length; i++) {\n unit = units[i];\n interval = timeUnits[unit[0]];\n multiples = unit[1];\n if (units[i + 1]) {\n // lessThan is in the middle between the highest multiple and the\n // next unit.\n var lessThan = (interval *\n multiples[multiples.length - 1] +\n timeUnits[units[i + 1][0]]) / 2;\n // break and keep the current unit\n if (tickInterval <= lessThan) {\n break;\n }\n }\n }\n // prevent 2.5 years intervals, though 25, 250 etc. are allowed\n if (interval === timeUnits.year && tickInterval < 5 * interval) {\n multiples = [1, 2, 5];\n }\n // get the count\n count = normalizeTickInterval(tickInterval / interval, multiples, unit[0] === 'year' ?\n Math.max(getMagnitude(tickInterval / interval), 1) : // #1913, #2360\n 1);\n return {\n unitRange: interval,\n count: count,\n unitName: unit[0]\n };\n };\n\n });\n _registerModule(_modules, 'parts/LogarithmicAxis.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n var pick = U.pick;\n var Axis = H.Axis, getMagnitude = H.getMagnitude, normalizeTickInterval = H.normalizeTickInterval;\n /* ************************************************************************** *\n * Methods defined on the Axis prototype\n * ************************************************************************** */\n /* eslint-disable valid-jsdoc */\n /**\n * Set the tick positions of a logarithmic axis.\n *\n * @private\n * @function Highcharts.Axis#getLogTickPositions\n * @param {number} interval\n * @param {number} min\n * @param {number} max\n * @param {boolean} [minor]\n * @return {Array}\n */\n Axis.prototype.getLogTickPositions = function (interval, min, max, minor) {\n var axis = this, options = axis.options, axisLength = axis.len, \n // Since we use this method for both major and minor ticks,\n // use a local variable and return the result\n positions = [];\n // Reset\n if (!minor) {\n axis._minorAutoInterval = null;\n }\n // First case: All ticks fall on whole logarithms: 1, 10, 100 etc.\n if (interval >= 0.5) {\n interval = Math.round(interval);\n positions = axis.getLinearTickPositions(interval, min, max);\n // Second case: We need intermediary ticks. For example\n // 1, 2, 4, 6, 8, 10, 20, 40 etc.\n }\n else if (interval >= 0.08) {\n var roundedMin = Math.floor(min), intermediate, i, j, len, pos, lastPos, break2;\n if (interval > 0.3) {\n intermediate = [1, 2, 4];\n // 0.2 equals five minor ticks per 1, 10, 100 etc\n }\n else if (interval > 0.15) {\n intermediate = [1, 2, 4, 6, 8];\n }\n else { // 0.1 equals ten minor ticks per 1, 10, 100 etc\n intermediate = [1, 2, 3, 4, 5, 6, 7, 8, 9];\n }\n for (i = roundedMin; i < max + 1 && !break2; i++) {\n len = intermediate.length;\n for (j = 0; j < len && !break2; j++) {\n pos = axis.log2lin(axis.lin2log(i) * intermediate[j]);\n // #1670, lastPos is #3113\n if (pos > min &&\n (!minor || lastPos <= max) &&\n lastPos !== undefined) {\n positions.push(lastPos);\n }\n if (lastPos > max) {\n break2 = true;\n }\n lastPos = pos;\n }\n }\n // Third case: We are so deep in between whole logarithmic values that\n // we might as well handle the tick positions like a linear axis. For\n // example 1.01, 1.02, 1.03, 1.04.\n }\n else {\n var realMin = axis.lin2log(min), realMax = axis.lin2log(max), tickIntervalOption = minor ?\n this.getMinorTickInterval() :\n options.tickInterval, filteredTickIntervalOption = tickIntervalOption === 'auto' ?\n null :\n tickIntervalOption, tickPixelIntervalOption = options.tickPixelInterval / (minor ? 5 : 1), totalPixelLength = minor ?\n axisLength / axis.tickPositions.length :\n axisLength;\n interval = pick(filteredTickIntervalOption, axis._minorAutoInterval, (realMax - realMin) *\n tickPixelIntervalOption / (totalPixelLength || 1));\n interval = normalizeTickInterval(interval, null, getMagnitude(interval));\n positions = axis.getLinearTickPositions(interval, realMin, realMax).map(axis.log2lin);\n if (!minor) {\n axis._minorAutoInterval = interval / 5;\n }\n }\n // Set the axis-level tickInterval variable\n if (!minor) {\n axis.tickInterval = interval;\n }\n return positions;\n };\n /**\n * @private\n * @function Highcharts.Axis#log2lin\n *\n * @param {number} num\n *\n * @return {number}\n */\n Axis.prototype.log2lin = function (num) {\n return Math.log(num) / Math.LN10;\n };\n /**\n * @private\n * @function Highcharts.Axis#lin2log\n *\n * @param {number} num\n *\n * @return {number}\n */\n Axis.prototype.lin2log = function (num) {\n return Math.pow(10, num);\n };\n\n });\n _registerModule(_modules, 'parts/PlotLineOrBand.js', [_modules['parts/Globals.js'], _modules['parts/Axis.js'], _modules['parts/Utilities.js']], function (H, Axis, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * Options for plot bands on axes.\n *\n * @typedef {Highcharts.XAxisPlotBandsOptions|Highcharts.YAxisPlotBandsOptions|Highcharts.ZAxisPlotBandsOptions} Highcharts.AxisPlotBandsOptions\n */\n /**\n * Options for plot band labels on axes.\n *\n * @typedef {Highcharts.XAxisPlotBandsLabelOptions|Highcharts.YAxisPlotBandsLabelOptions|Highcharts.ZAxisPlotBandsLabelOptions} Highcharts.AxisPlotBandsLabelOptions\n */\n /**\n * Options for plot lines on axes.\n *\n * @typedef {Highcharts.XAxisPlotLinesOptions|Highcharts.YAxisPlotLinesOptions|Highcharts.ZAxisPlotLinesOptions} Highcharts.AxisPlotLinesOptions\n */\n /**\n * Options for plot line labels on axes.\n *\n * @typedef {Highcharts.XAxisPlotLinesLabelOptions|Highcharts.YAxisPlotLinesLabelOptions|Highcharts.ZAxisPlotLinesLabelOptions} Highcharts.AxisPlotLinesLabelOptions\n */\n var arrayMax = U.arrayMax, arrayMin = U.arrayMin, defined = U.defined, destroyObjectProperties = U.destroyObjectProperties, erase = U.erase, extend = U.extend, objectEach = U.objectEach, pick = U.pick;\n var merge = H.merge;\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * The object wrapper for plot lines and plot bands\n *\n * @class\n * @name Highcharts.PlotLineOrBand\n *\n * @param {Highcharts.Axis} axis\n *\n * @param {Highcharts.AxisPlotLinesOptions|Highcharts.AxisPlotBandsOptions} [options]\n */\n H.PlotLineOrBand = function (axis, options) {\n this.axis = axis;\n if (options) {\n this.options = options;\n this.id = options.id;\n }\n };\n H.PlotLineOrBand.prototype = {\n /**\n * Render the plot line or plot band. If it is already existing,\n * move it.\n *\n * @private\n * @function Highcharts.PlotLineOrBand#render\n * @return {Highcharts.PlotLineOrBand|undefined}\n */\n render: function () {\n H.fireEvent(this, 'render');\n var plotLine = this, axis = plotLine.axis, horiz = axis.horiz, options = plotLine.options, optionsLabel = options.label, label = plotLine.label, to = options.to, from = options.from, value = options.value, isBand = defined(from) && defined(to), isLine = defined(value), svgElem = plotLine.svgElem, isNew = !svgElem, path = [], color = options.color, zIndex = pick(options.zIndex, 0), events = options.events, attribs = {\n 'class': 'highcharts-plot-' + (isBand ? 'band ' : 'line ') +\n (options.className || '')\n }, groupAttribs = {}, renderer = axis.chart.renderer, groupName = isBand ? 'bands' : 'lines', group;\n // logarithmic conversion\n if (axis.isLog) {\n from = axis.log2lin(from);\n to = axis.log2lin(to);\n value = axis.log2lin(value);\n }\n // Set the presentational attributes\n if (!axis.chart.styledMode) {\n if (isLine) {\n attribs.stroke = color || '#999999';\n attribs['stroke-width'] = pick(options.width, 1);\n if (options.dashStyle) {\n attribs.dashstyle =\n options.dashStyle;\n }\n }\n else if (isBand) { // plot band\n attribs.fill = color || '#e6ebf5';\n if (options.borderWidth) {\n attribs.stroke = options.borderColor;\n attribs['stroke-width'] = options.borderWidth;\n }\n }\n }\n // Grouping and zIndex\n groupAttribs.zIndex = zIndex;\n groupName += '-' + zIndex;\n group = axis.plotLinesAndBandsGroups[groupName];\n if (!group) {\n axis.plotLinesAndBandsGroups[groupName] = group =\n renderer.g('plot-' + groupName)\n .attr(groupAttribs).add();\n }\n // Create the path\n if (isNew) {\n /**\n * SVG element of the plot line or band.\n *\n * @name Highcharts.PlotLineOrBand#svgElement\n * @type {Highcharts.SVGElement}\n */\n plotLine.svgElem = svgElem = renderer\n .path()\n .attr(attribs)\n .add(group);\n }\n // Set the path or return\n if (isLine) {\n path = axis.getPlotLinePath({\n value: value,\n lineWidth: svgElem.strokeWidth(),\n acrossPanes: options.acrossPanes\n });\n }\n else if (isBand) { // plot band\n path = axis.getPlotBandPath(from, to, options);\n }\n else {\n return;\n }\n // common for lines and bands\n if ((isNew || !svgElem.d) && path && path.length) {\n svgElem.attr({ d: path });\n // events\n if (events) {\n objectEach(events, function (event, eventType) {\n svgElem.on(eventType, function (e) {\n events[eventType].apply(plotLine, [e]);\n });\n });\n }\n }\n else if (svgElem) {\n if (path) {\n svgElem.show(true);\n svgElem.animate({ d: path });\n }\n else if (svgElem.d) {\n svgElem.hide();\n if (label) {\n plotLine.label = label = label.destroy();\n }\n }\n }\n // the plot band/line label\n if (optionsLabel &&\n (defined(optionsLabel.text) || defined(optionsLabel.formatter)) &&\n path &&\n path.length &&\n axis.width > 0 &&\n axis.height > 0 &&\n !path.isFlat) {\n // apply defaults\n optionsLabel = merge({\n align: horiz && isBand && 'center',\n x: horiz ? !isBand && 4 : 10,\n verticalAlign: !horiz && isBand && 'middle',\n y: horiz ? isBand ? 16 : 10 : isBand ? 6 : -4,\n rotation: horiz && !isBand && 90\n }, optionsLabel);\n this.renderLabel(optionsLabel, path, isBand, zIndex);\n }\n else if (label) { // move out of sight\n label.hide();\n }\n // chainable\n return plotLine;\n },\n /**\n * Render and align label for plot line or band.\n *\n * @private\n * @function Highcharts.PlotLineOrBand#renderLabel\n * @param {Highcharts.AxisPlotLinesLabelOptions|Highcharts.AxisPlotBandsLabelOptions} optionsLabel\n * @param {Highcharts.SVGPathArray} path\n * @param {boolean} [isBand]\n * @param {number} [zIndex]\n * @return {void}\n */\n renderLabel: function (optionsLabel, path, isBand, zIndex) {\n var plotLine = this, label = plotLine.label, renderer = plotLine.axis.chart.renderer, attribs, xBounds, yBounds, x, y, labelText;\n // add the SVG element\n if (!label) {\n attribs = {\n align: optionsLabel.textAlign || optionsLabel.align,\n rotation: optionsLabel.rotation,\n 'class': 'highcharts-plot-' + (isBand ? 'band' : 'line') +\n '-label ' + (optionsLabel.className || '')\n };\n attribs.zIndex = zIndex;\n labelText = this.getLabelText(optionsLabel);\n /**\n * SVG element of the label.\n *\n * @name Highcharts.PlotLineOrBand#label\n * @type {Highcharts.SVGElement}\n */\n plotLine.label = label = renderer\n .text(labelText, 0, 0, optionsLabel.useHTML)\n .attr(attribs)\n .add();\n if (!this.axis.chart.styledMode) {\n label.css(optionsLabel.style);\n }\n }\n // get the bounding box and align the label\n // #3000 changed to better handle choice between plotband or plotline\n xBounds = path.xBounds ||\n [path[1], path[4], (isBand ? path[6] : path[1])];\n yBounds = path.yBounds ||\n [path[2], path[5], (isBand ? path[7] : path[2])];\n x = arrayMin(xBounds);\n y = arrayMin(yBounds);\n label.align(optionsLabel, false, {\n x: x,\n y: y,\n width: arrayMax(xBounds) - x,\n height: arrayMax(yBounds) - y\n });\n label.show(true);\n },\n /**\n * Get label's text content.\n *\n * @private\n * @function Highcharts.PlotLineOrBand#getLabelText\n * @param {Highcharts.AxisPlotLinesLabelOptions|Highcharts.AxisPlotBandsLabelOptions} optionsLabel\n * @return {string}\n */\n getLabelText: function (optionsLabel) {\n return defined(optionsLabel.formatter) ?\n optionsLabel.formatter\n .call(this) :\n optionsLabel.text;\n },\n /**\n * Remove the plot line or band.\n *\n * @function Highcharts.PlotLineOrBand#destroy\n * @return {void}\n */\n destroy: function () {\n // remove it from the lookup\n erase(this.axis.plotLinesAndBands, this);\n delete this.axis;\n destroyObjectProperties(this);\n }\n };\n /* eslint-enable no-invalid-this, valid-jsdoc */\n // Object with members for extending the Axis prototype\n extend(Axis.prototype, /** @lends Highcharts.Axis.prototype */ {\n /**\n * An array of colored bands stretching across the plot area marking an\n * interval on the axis.\n *\n * In styled mode, the plot bands are styled by the `.highcharts-plot-band`\n * class in addition to the `className` option.\n *\n * @productdesc {highcharts}\n * In a gauge, a plot band on the Y axis (value axis) will stretch along the\n * perimeter of the gauge.\n *\n * @type {Array<*>}\n * @product highcharts highstock gantt\n * @apioption xAxis.plotBands\n */\n /**\n * Flag to decide if plotBand should be rendered across all panes.\n *\n * @since 7.1.2\n * @product highstock\n * @type {boolean}\n * @default true\n * @apioption xAxis.plotBands.acrossPanes\n */\n /**\n * Border color for the plot band. Also requires `borderWidth` to be set.\n *\n * @type {Highcharts.ColorString}\n * @apioption xAxis.plotBands.borderColor\n */\n /**\n * Border width for the plot band. Also requires `borderColor` to be set.\n *\n * @type {number}\n * @default 0\n * @apioption xAxis.plotBands.borderWidth\n */\n /**\n * A custom class name, in addition to the default `highcharts-plot-band`,\n * to apply to each individual band.\n *\n * @type {string}\n * @since 5.0.0\n * @apioption xAxis.plotBands.className\n */\n /**\n * The color of the plot band.\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-color/\n * Color band\n * @sample {highstock} stock/xaxis/plotbands/\n * Plot band on Y axis\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #e6ebf5\n * @apioption xAxis.plotBands.color\n */\n /**\n * An object defining mouse events for the plot band. Supported properties\n * are `click`, `mouseover`, `mouseout`, `mousemove`.\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-events/\n * Mouse events demonstrated\n *\n * @since 1.2\n * @apioption xAxis.plotBands.events\n */\n /**\n * Click event on a plot band.\n *\n * @type {Highcharts.EventCallbackFunction}\n * @apioption xAxis.plotBands.events.click\n */\n /**\n * Mouse move event on a plot band.\n *\n * @type {Highcharts.EventCallbackFunction}\n * @apioption xAxis.plotBands.events.mousemove\n */\n /**\n * Mouse out event on the corner of a plot band.\n *\n * @type {Highcharts.EventCallbackFunction}\n * @apioption xAxis.plotBands.events.mouseout\n */\n /**\n * Mouse over event on a plot band.\n *\n * @type {Highcharts.EventCallbackFunction}\n * @apioption xAxis.plotBands.events.mouseover\n */\n /**\n * The start position of the plot band in axis units.\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-color/\n * Datetime axis\n * @sample {highcharts} highcharts/xaxis/plotbands-from/\n * Categorized axis\n * @sample {highstock} stock/xaxis/plotbands/\n * Plot band on Y axis\n *\n * @type {number}\n * @apioption xAxis.plotBands.from\n */\n /**\n * An id used for identifying the plot band in Axis.removePlotBand.\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-id/\n * Remove plot band by id\n * @sample {highstock} highcharts/xaxis/plotbands-id/\n * Remove plot band by id\n *\n * @type {string}\n * @apioption xAxis.plotBands.id\n */\n /**\n * The end position of the plot band in axis units.\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-color/\n * Datetime axis\n * @sample {highcharts} highcharts/xaxis/plotbands-from/\n * Categorized axis\n * @sample {highstock} stock/xaxis/plotbands/\n * Plot band on Y axis\n *\n * @type {number}\n * @apioption xAxis.plotBands.to\n */\n /**\n * The z index of the plot band within the chart, relative to other\n * elements. Using the same z index as another element may give\n * unpredictable results, as the last rendered element will be on top.\n * Values from 0 to 20 make sense.\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-color/\n * Behind plot lines by default\n * @sample {highcharts} highcharts/xaxis/plotbands-zindex/\n * Above plot lines\n * @sample {highcharts} highcharts/xaxis/plotbands-zindex-above-series/\n * Above plot lines and series\n *\n * @type {number}\n * @since 1.2\n * @apioption xAxis.plotBands.zIndex\n */\n /**\n * Text labels for the plot bands\n *\n * @product highcharts highstock gantt\n * @apioption xAxis.plotBands.label\n */\n /**\n * Horizontal alignment of the label. Can be one of \"left\", \"center\" or\n * \"right\".\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-label-align/\n * Aligned to the right\n * @sample {highstock} stock/xaxis/plotbands-label/\n * Plot band with labels\n *\n * @type {Highcharts.AlignValue}\n * @default center\n * @since 2.1\n * @apioption xAxis.plotBands.label.align\n */\n /**\n * Rotation of the text label in degrees .\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-label-rotation/\n * Vertical text\n *\n * @type {number}\n * @default 0\n * @since 2.1\n * @apioption xAxis.plotBands.label.rotation\n */\n /**\n * CSS styles for the text label.\n *\n * In styled mode, the labels are styled by the\n * `.highcharts-plot-band-label` class.\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-label-style/\n * Blue and bold label\n *\n * @type {Highcharts.CSSObject}\n * @since 2.1\n * @apioption xAxis.plotBands.label.style\n */\n /**\n * The string text itself. A subset of HTML is supported.\n *\n * @type {string}\n * @since 2.1\n * @apioption xAxis.plotBands.label.text\n */\n /**\n * The text alignment for the label. While `align` determines where the\n * texts anchor point is placed within the plot band, `textAlign` determines\n * how the text is aligned against its anchor point. Possible values are\n * \"left\", \"center\" and \"right\". Defaults to the same as the `align` option.\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-label-rotation/\n * Vertical text in center position but text-aligned left\n *\n * @type {Highcharts.AlignValue}\n * @since 2.1\n * @apioption xAxis.plotBands.label.textAlign\n */\n /**\n * Whether to [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)\n * to render the labels.\n *\n * @type {boolean}\n * @default false\n * @since 3.0.3\n * @apioption xAxis.plotBands.label.useHTML\n */\n /**\n * Vertical alignment of the label relative to the plot band. Can be one of\n * \"top\", \"middle\" or \"bottom\".\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-label-verticalalign/\n * Vertically centered label\n * @sample {highstock} stock/xaxis/plotbands-label/\n * Plot band with labels\n *\n * @type {Highcharts.VerticalAlignValue}\n * @default top\n * @since 2.1\n * @apioption xAxis.plotBands.label.verticalAlign\n */\n /**\n * Horizontal position relative the alignment. Default varies by\n * orientation.\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-label-align/\n * Aligned 10px from the right edge\n * @sample {highstock} stock/xaxis/plotbands-label/\n * Plot band with labels\n *\n * @type {number}\n * @since 2.1\n * @apioption xAxis.plotBands.label.x\n */\n /**\n * Vertical position of the text baseline relative to the alignment. Default\n * varies by orientation.\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-label-y/\n * Label on x axis\n * @sample {highstock} stock/xaxis/plotbands-label/\n * Plot band with labels\n *\n * @type {number}\n * @since 2.1\n * @apioption xAxis.plotBands.label.y\n */\n /**\n * An array of lines stretching across the plot area, marking a specific\n * value on one of the axes.\n *\n * In styled mode, the plot lines are styled by the\n * `.highcharts-plot-line` class in addition to the `className` option.\n *\n * @type {Array<*>}\n * @product highcharts highstock gantt\n * @apioption xAxis.plotLines\n */\n /**\n * Flag to decide if plotLine should be rendered across all panes.\n *\n * @sample {highstock} stock/xaxis/plotlines-acrosspanes/\n * Plot lines on different panes\n *\n * @since 7.1.2\n * @product highstock\n * @type {boolean}\n * @default true\n * @apioption xAxis.plotLines.acrossPanes\n */\n /**\n * A custom class name, in addition to the default `highcharts-plot-line`,\n * to apply to each individual line.\n *\n * @type {string}\n * @since 5.0.0\n * @apioption xAxis.plotLines.className\n */\n /**\n * The color of the line.\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-color/\n * A red line from X axis\n * @sample {highstock} stock/xaxis/plotlines/\n * Plot line on Y axis\n *\n * @type {Highcharts.ColorString}\n * @default #999999\n * @apioption xAxis.plotLines.color\n */\n /**\n * The dashing or dot style for the plot line. For possible values see\n * [this overview](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-dashstyle-all/).\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-dashstyle/\n * Dash and dot pattern\n * @sample {highstock} stock/xaxis/plotlines/\n * Plot line on Y axis\n *\n * @type {Highcharts.DashStyleValue}\n * @default Solid\n * @since 1.2\n * @apioption xAxis.plotLines.dashStyle\n */\n /**\n * An object defining mouse events for the plot line. Supported\n * properties are `click`, `mouseover`, `mouseout`, `mousemove`.\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-events/\n * Mouse events demonstrated\n *\n * @since 1.2\n * @apioption xAxis.plotLines.events\n */\n /**\n * Click event on a plot band.\n *\n * @type {Highcharts.EventCallbackFunction}\n * @apioption xAxis.plotLines.events.click\n */\n /**\n * Mouse move event on a plot band.\n *\n * @type {Highcharts.EventCallbackFunction}\n * @apioption xAxis.plotLines.events.mousemove\n */\n /**\n * Mouse out event on the corner of a plot band.\n *\n * @type {Highcharts.EventCallbackFunction}\n * @apioption xAxis.plotLines.events.mouseout\n */\n /**\n * Mouse over event on a plot band.\n *\n * @type {Highcharts.EventCallbackFunction}\n * @apioption xAxis.plotLines.events.mouseover\n */\n /**\n * An id used for identifying the plot line in Axis.removePlotLine.\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-id/\n * Remove plot line by id\n *\n * @type {string}\n * @apioption xAxis.plotLines.id\n */\n /**\n * The position of the line in axis units.\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-color/\n * Between two categories on X axis\n * @sample {highstock} stock/xaxis/plotlines/\n * Plot line on Y axis\n *\n * @type {number}\n * @apioption xAxis.plotLines.value\n */\n /**\n * The width or thickness of the plot line.\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-color/\n * 2px wide line from X axis\n * @sample {highstock} stock/xaxis/plotlines/\n * Plot line on Y axis\n *\n * @type {number}\n * @default 2\n * @apioption xAxis.plotLines.width\n */\n /**\n * The z index of the plot line within the chart.\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-zindex-behind/\n * Behind plot lines by default\n * @sample {highcharts} highcharts/xaxis/plotlines-zindex-above/\n * Above plot lines\n * @sample {highcharts} highcharts/xaxis/plotlines-zindex-above-all/\n * Above plot lines and series\n *\n * @type {number}\n * @since 1.2\n * @apioption xAxis.plotLines.zIndex\n */\n /**\n * Text labels for the plot bands\n *\n * @apioption xAxis.plotLines.label\n */\n /**\n * Horizontal alignment of the label. Can be one of \"left\", \"center\" or\n * \"right\".\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-label-align-right/\n * Aligned to the right\n * @sample {highstock} stock/xaxis/plotlines/\n * Plot line on Y axis\n *\n * @type {Highcharts.AlignValue}\n * @default left\n * @since 2.1\n * @apioption xAxis.plotLines.label.align\n */\n /**\n * Callback JavaScript function to format the label. Useful properties like\n * the value of plot line or the range of plot band (`from` & `to`\n * properties) can be found in `this.options` object.\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-plotbands-label-formatter\n * Label formatters for plot line and plot band.\n * @type {Highcharts.FormatterCallbackFunction}\n * @apioption xAxis.plotLines.label.formatter\n */\n /**\n * Rotation of the text label in degrees. Defaults to 0 for horizontal plot\n * lines and 90 for vertical lines.\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-label-verticalalign-middle/\n * Slanted text\n *\n * @type {number}\n * @since 2.1\n * @apioption xAxis.plotLines.label.rotation\n */\n /**\n * CSS styles for the text label.\n *\n * In styled mode, the labels are styled by the\n * `.highcharts-plot-line-label` class.\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-label-style/\n * Blue and bold label\n *\n * @type {Highcharts.CSSObject}\n * @since 2.1\n * @apioption xAxis.plotLines.label.style\n */\n /**\n * The text itself. A subset of HTML is supported.\n *\n * @type {string}\n * @since 2.1\n * @apioption xAxis.plotLines.label.text\n */\n /**\n * The text alignment for the label. While `align` determines where the\n * texts anchor point is placed within the plot band, `textAlign` determines\n * how the text is aligned against its anchor point. Possible values are\n * \"left\", \"center\" and \"right\". Defaults to the same as the `align` option.\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-label-textalign/\n * Text label in bottom position\n *\n * @type {Highcharts.AlignValue}\n * @since 2.1\n * @apioption xAxis.plotLines.label.textAlign\n */\n /**\n * Whether to [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)\n * to render the labels.\n *\n * @type {boolean}\n * @default false\n * @since 3.0.3\n * @apioption xAxis.plotLines.label.useHTML\n */\n /**\n * Vertical alignment of the label relative to the plot line. Can be\n * one of \"top\", \"middle\" or \"bottom\".\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-label-verticalalign-middle/\n * Vertically centered label\n *\n * @type {Highcharts.VerticalAlignValue}\n * @default {highcharts} top\n * @default {highstock} top\n * @since 2.1\n * @apioption xAxis.plotLines.label.verticalAlign\n */\n /**\n * Horizontal position relative the alignment. Default varies by\n * orientation.\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-label-align-right/\n * Aligned 10px from the right edge\n * @sample {highstock} stock/xaxis/plotlines/\n * Plot line on Y axis\n *\n * @type {number}\n * @since 2.1\n * @apioption xAxis.plotLines.label.x\n */\n /**\n * Vertical position of the text baseline relative to the alignment. Default\n * varies by orientation.\n *\n * @sample {highcharts} highcharts/xaxis/plotlines-label-y/\n * Label below the plot line\n * @sample {highstock} stock/xaxis/plotlines/\n * Plot line on Y axis\n *\n * @type {number}\n * @since 2.1\n * @apioption xAxis.plotLines.label.y\n */\n /**\n * An array of objects defining plot bands on the Y axis.\n *\n * @type {Array<*>}\n * @extends xAxis.plotBands\n * @apioption yAxis.plotBands\n */\n /**\n * In a gauge chart, this option determines the inner radius of the\n * plot band that stretches along the perimeter. It can be given as\n * a percentage string, like `\"100%\"`, or as a pixel number, like `100`.\n * By default, the inner radius is controlled by the [thickness](\n * #yAxis.plotBands.thickness) option.\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-gauge\n * Gauge plot band\n *\n * @type {number|string}\n * @since 2.3\n * @product highcharts\n * @apioption yAxis.plotBands.innerRadius\n */\n /**\n * In a gauge chart, this option determines the outer radius of the\n * plot band that stretches along the perimeter. It can be given as\n * a percentage string, like `\"100%\"`, or as a pixel number, like `100`.\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-gauge\n * Gauge plot band\n *\n * @type {number|string}\n * @default 100%\n * @since 2.3\n * @product highcharts\n * @apioption yAxis.plotBands.outerRadius\n */\n /**\n * In a gauge chart, this option sets the width of the plot band\n * stretching along the perimeter. It can be given as a percentage\n * string, like `\"10%\"`, or as a pixel number, like `10`. The default\n * value 10 is the same as the default [tickLength](#yAxis.tickLength),\n * thus making the plot band act as a background for the tick markers.\n *\n * @sample {highcharts} highcharts/xaxis/plotbands-gauge\n * Gauge plot band\n *\n * @type {number|string}\n * @default 10\n * @since 2.3\n * @product highcharts\n * @apioption yAxis.plotBands.thickness\n */\n /**\n * An array of objects representing plot lines on the X axis\n *\n * @type {Array<*>}\n * @sample {highcharts} highcharts/xaxis/plotlines-color/\n * Basic plot line\n * @sample {highcharts} highcharts/series-solidgauge/labels-auto-aligned/\n * Solid gauge plot line\n * @extends xAxis.plotLines\n * @apioption yAxis.plotLines\n */\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * Internal function to create the SVG path definition for a plot band.\n *\n * @function Highcharts.Axis#getPlotBandPath\n *\n * @param {number} from\n * The axis value to start from.\n *\n * @param {number} to\n * The axis value to end on.\n *\n * @return {Highcharts.SVGPathArray}\n * The SVG path definition in array form.\n */\n getPlotBandPath: function (from, to) {\n var toPath = this.getPlotLinePath({\n value: to,\n force: true,\n acrossPanes: this.options.acrossPanes\n }), path = this.getPlotLinePath({\n value: from,\n force: true,\n acrossPanes: this.options.acrossPanes\n }), result = [], i, \n // #4964 check if chart is inverted or plotband is on yAxis\n horiz = this.horiz, plus = 1, isFlat, outside = (from < this.min && to < this.min) ||\n (from > this.max && to > this.max);\n if (path && toPath) {\n // Flat paths don't need labels (#3836)\n if (outside) {\n isFlat = path.toString() === toPath.toString();\n plus = 0;\n }\n // Go over each subpath - for panes in Highstock\n for (i = 0; i < path.length; i += 6) {\n // Add 1 pixel when coordinates are the same\n if (horiz && toPath[i + 1] === path[i + 1]) {\n toPath[i + 1] += plus;\n toPath[i + 4] += plus;\n }\n else if (!horiz && toPath[i + 2] === path[i + 2]) {\n toPath[i + 2] += plus;\n toPath[i + 5] += plus;\n }\n result.push('M', path[i + 1], path[i + 2], 'L', path[i + 4], path[i + 5], toPath[i + 4], toPath[i + 5], toPath[i + 1], toPath[i + 2], 'z');\n result.isFlat = isFlat;\n }\n }\n else { // outside the axis area\n path = null;\n }\n return result;\n },\n /**\n * Add a plot band after render time.\n *\n * @sample highcharts/members/axis-addplotband/\n * Toggle the plot band from a button\n *\n * @function Highcharts.Axis#addPlotBand\n *\n * @param {Highcharts.AxisPlotBandsOptions} options\n * A configuration object for the plot band, as defined in\n * [xAxis.plotBands](https://api.highcharts.com/highcharts/xAxis.plotBands).\n *\n * @return {Highcharts.PlotLineOrBand|undefined}\n * The added plot band.\n */\n addPlotBand: function (options) {\n return this.addPlotBandOrLine(options, 'plotBands');\n },\n /**\n * Add a plot line after render time.\n *\n * @sample highcharts/members/axis-addplotline/\n * Toggle the plot line from a button\n *\n * @function Highcharts.Axis#addPlotLine\n *\n * @param {Highcharts.AxisPlotLinesOptions} options\n * A configuration object for the plot line, as defined in\n * [xAxis.plotLines](https://api.highcharts.com/highcharts/xAxis.plotLines).\n *\n * @return {Highcharts.PlotLineOrBand|undefined}\n * The added plot line.\n */\n addPlotLine: function (options) {\n return this.addPlotBandOrLine(options, 'plotLines');\n },\n /**\n * Add a plot band or plot line after render time. Called from addPlotBand\n * and addPlotLine internally.\n *\n * @private\n * @function Highcharts.Axis#addPlotBandOrLine\n *\n * @param {Highcharts.AxisPlotBandsOptions|Highcharts.AxisPlotLinesOptions} options\n * The plotBand or plotLine configuration object.\n *\n * @param {\"plotBands\"|\"plotLines\"} [coll]\n *\n * @return {Highcharts.PlotLineOrBand|undefined}\n */\n addPlotBandOrLine: function (options, coll) {\n var obj = new H.PlotLineOrBand(this, options).render(), userOptions = this.userOptions;\n if (obj) { // #2189\n // Add it to the user options for exporting and Axis.update\n if (coll) {\n // Workaround Microsoft/TypeScript issue #32693\n var updatedOptions = (userOptions[coll] || []);\n updatedOptions.push(options);\n userOptions[coll] = updatedOptions;\n }\n this.plotLinesAndBands.push(obj);\n }\n return obj;\n },\n /**\n * Remove a plot band or plot line from the chart by id. Called internally\n * from `removePlotBand` and `removePlotLine`.\n *\n * @private\n * @function Highcharts.Axis#removePlotBandOrLine\n * @param {string} id\n * @return {void}\n */\n removePlotBandOrLine: function (id) {\n var plotLinesAndBands = this.plotLinesAndBands, options = this.options, userOptions = this.userOptions, i = plotLinesAndBands.length;\n while (i--) {\n if (plotLinesAndBands[i].id === id) {\n plotLinesAndBands[i].destroy();\n }\n }\n ([\n options.plotLines || [],\n userOptions.plotLines || [],\n options.plotBands || [],\n userOptions.plotBands || []\n ]).forEach(function (arr) {\n i = arr.length;\n while (i--) {\n if (arr[i].id === id) {\n erase(arr, arr[i]);\n }\n }\n });\n },\n /**\n * Remove a plot band by its id.\n *\n * @sample highcharts/members/axis-removeplotband/\n * Remove plot band by id\n * @sample highcharts/members/axis-addplotband/\n * Toggle the plot band from a button\n *\n * @function Highcharts.Axis#removePlotBand\n *\n * @param {string} id\n * The plot band's `id` as given in the original configuration\n * object or in the `addPlotBand` option.\n *\n * @return {void}\n */\n removePlotBand: function (id) {\n this.removePlotBandOrLine(id);\n },\n /**\n * Remove a plot line by its id.\n *\n * @sample highcharts/xaxis/plotlines-id/\n * Remove plot line by id\n * @sample highcharts/members/axis-addplotline/\n * Toggle the plot line from a button\n *\n * @function Highcharts.Axis#removePlotLine\n *\n * @param {string} id\n * The plot line's `id` as given in the original configuration\n * object or in the `addPlotLine` option.\n */\n removePlotLine: function (id) {\n this.removePlotBandOrLine(id);\n }\n });\n\n });\n _registerModule(_modules, 'parts/Tooltip.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n var defined = U.defined, discardElement = U.discardElement, extend = U.extend, isNumber = U.isNumber, isString = U.isString, pick = U.pick, splat = U.splat, syncTimeout = U.syncTimeout;\n /**\n * Callback function to format the text of the tooltip from scratch.\n *\n * In case of single or shared tooltips, a string should be be returned. In case\n * of splitted tooltips, it should return an array where the first item is the\n * header, and subsequent items are mapped to the points. Return `false` to\n * disable tooltip for a specific point on series.\n *\n * @callback Highcharts.TooltipFormatterCallbackFunction\n *\n * @param {Highcharts.TooltipFormatterContextObject} this\n * Context to format\n *\n * @param {Highcharts.Tooltip} tooltip\n * The tooltip instance\n *\n * @return {false|string|Array<(string|null|undefined)>|null|undefined}\n * Formatted text or false\n */\n /**\n * @interface Highcharts.TooltipFormatterContextObject\n */ /**\n * @name Highcharts.TooltipFormatterContextObject#color\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */ /**\n * @name Highcharts.TooltipFormatterContextObject#colorIndex\n * @type {number|undefined}\n */ /**\n * @name Highcharts.TooltipFormatterContextObject#key\n * @type {number}\n */ /**\n * @name Highcharts.TooltipFormatterContextObject#percentage\n * @type {number|undefined}\n */ /**\n * @name Highcharts.TooltipFormatterContextObject#point\n * @type {Highcharts.Point}\n */ /**\n * @name Highcharts.TooltipFormatterContextObject#points\n * @type {Array|undefined}\n */ /**\n * @name Highcharts.TooltipFormatterContextObject#series\n * @type {Highcharts.Series}\n */ /**\n * @name Highcharts.TooltipFormatterContextObject#total\n * @type {number|undefined}\n */ /**\n * @name Highcharts.TooltipFormatterContextObject#x\n * @type {number}\n */ /**\n * @name Highcharts.TooltipFormatterContextObject#y\n * @type {number}\n */\n /**\n * A callback function to place the tooltip in a specific position.\n *\n * @callback Highcharts.TooltipPositionerCallbackFunction\n *\n * @param {number} labelWidth\n * Width of the tooltip.\n *\n * @param {number} labelHeight\n * Height of the tooltip.\n *\n * @param {Highcharts.TooltipPositionerPointObject} point\n * Point information for positioning a tooltip.\n *\n * @return {Highcharts.PositionObject}\n * New position for the tooltip.\n */\n /**\n * Point information for positioning a tooltip.\n *\n * @interface Highcharts.TooltipPositionerPointObject\n */ /**\n * If `tooltip.split` option is enabled and positioner is called for each of the\n * boxes separately, this property indicates the call on the xAxis header, which\n * is not a point itself.\n * @name Highcharts.TooltipPositionerPointObject#isHeader\n * @type {boolean}\n */ /**\n * @name Highcharts.TooltipPositionerPointObject#negative\n * @type {boolean}\n */ /**\n * The reference point relative to the plot area. Add chart.plotLeft to get the\n * full coordinates.\n * @name Highcharts.TooltipPositionerPointObject#plotX\n * @type {number}\n */ /**\n * The reference point relative to the plot area. Add chart.plotTop to get the\n * full coordinates.\n * @name Highcharts.TooltipPositionerPointObject#plotY\n * @type {number}\n */\n /**\n * @typedef {\"callout\"|\"circle\"|\"square\"} Highcharts.TooltipShapeValue\n */\n ''; // separates doclets above from variables below\n var doc = H.doc, format = H.format, merge = H.merge, timeUnits = H.timeUnits;\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * Tooltip of a chart.\n *\n * @class\n * @name Highcharts.Tooltip\n *\n * @param {Highcharts.Chart} chart\n * The chart instance.\n *\n * @param {Highcharts.TooltipOptions} options\n * Tooltip options.\n */\n H.Tooltip = function () {\n this.init.apply(this, arguments);\n };\n H.Tooltip.prototype = {\n /**\n * @private\n * @function Highcharts.Tooltip#init\n *\n * @param {Highcharts.Chart} chart\n * The chart instance.\n *\n * @param {Highcharts.TooltipOptions} options\n * Tooltip options.\n *\n * @return {void}\n */\n init: function (chart, options) {\n /**\n * Chart of the tooltip.\n *\n * @readonly\n * @name Highcharts.Tooltip#chart\n * @type {Highcharts.Chart}\n */\n this.chart = chart;\n /**\n * Used tooltip options.\n *\n * @readonly\n * @name Highcharts.Tooltip#options\n * @type {Highcharts.TooltipOptions}\n */\n this.options = options;\n /**\n * List of crosshairs.\n *\n * @private\n * @readonly\n * @name Highcharts.Tooltip#crosshairs\n * @type {Array<*>}\n */\n this.crosshairs = [];\n /**\n * Current values of x and y when animating.\n *\n * @private\n * @readonly\n * @name Highcharts.Tooltip#now\n * @type {Highcharts.PositionObject}\n */\n this.now = { x: 0, y: 0 };\n /**\n * Tooltips are initially hidden.\n *\n * @private\n * @readonly\n * @name Highcharts.Tooltip#isHidden\n * @type {boolean}\n */\n this.isHidden = true;\n /**\n * True, if the tooltip is splitted into one label per series, with the\n * header close to the axis.\n *\n * @readonly\n * @name Highcharts.Tooltip#split\n * @type {boolean|undefined}\n */\n this.split = options.split && !chart.inverted;\n /**\n * When the tooltip is shared, the entire plot area will capture mouse\n * movement or touch events.\n *\n * @readonly\n * @name Highcharts.Tooltip#shared\n * @type {boolean|undefined}\n */\n this.shared = options.shared || this.split;\n /**\n * Whether to allow the tooltip to render outside the chart's SVG\n * element box. By default (false), the tooltip is rendered within the\n * chart's SVG element, which results in the tooltip being aligned\n * inside the chart area.\n *\n * @readonly\n * @name Highcharts.Tooltip#outside\n * @type {boolean}\n *\n * @todo\n * Split tooltip does not support outside in the first iteration. Should\n * not be too complicated to implement.\n */\n this.outside = pick(options.outside, Boolean(chart.scrollablePixelsX || chart.scrollablePixelsY));\n },\n /**\n * Destroy the single tooltips in a split tooltip.\n * If the tooltip is active then it is not destroyed, unless forced to.\n *\n * @private\n * @function Highcharts.Tooltip#cleanSplit\n *\n * @param {boolean} [force]\n * Force destroy all tooltips.\n *\n * @return {void}\n */\n cleanSplit: function (force) {\n this.chart.series.forEach(function (series) {\n var tt = series && series.tt;\n if (tt) {\n if (!tt.isActive || force) {\n series.tt = tt.destroy();\n }\n else {\n tt.isActive = false;\n }\n }\n });\n },\n /**\n * In styled mode, apply the default filter for the tooltip drop-shadow. It\n * needs to have an id specific to the chart, otherwise there will be issues\n * when one tooltip adopts the filter of a different chart, specifically one\n * where the container is hidden.\n *\n * @private\n * @function Highcharts.Tooltip#applyFilter\n * @return {void}\n */\n applyFilter: function () {\n var chart = this.chart;\n chart.renderer.definition({\n tagName: 'filter',\n id: 'drop-shadow-' + chart.index,\n opacity: 0.5,\n children: [{\n tagName: 'feGaussianBlur',\n 'in': 'SourceAlpha',\n stdDeviation: 1\n }, {\n tagName: 'feOffset',\n dx: 1,\n dy: 1\n }, {\n tagName: 'feComponentTransfer',\n children: [{\n tagName: 'feFuncA',\n type: 'linear',\n slope: 0.3\n }]\n }, {\n tagName: 'feMerge',\n children: [{\n tagName: 'feMergeNode'\n }, {\n tagName: 'feMergeNode',\n 'in': 'SourceGraphic'\n }]\n }]\n });\n chart.renderer.definition({\n tagName: 'style',\n textContent: '.highcharts-tooltip-' + chart.index + '{' +\n 'filter:url(#drop-shadow-' + chart.index + ')' +\n '}'\n });\n },\n /**\n * Creates the Tooltip label element if it does not exist, then returns it.\n *\n * @function Highcharts.Tooltip#getLabel\n * @return {Highcharts.SVGElement}\n */\n getLabel: function () {\n var tooltip = this, renderer = this.chart.renderer, styledMode = this.chart.styledMode, options = this.options, className = 'tooltip' +\n (defined(options.className) ? ' ' + options.className : ''), container, set;\n if (!this.label) {\n if (this.outside) {\n /**\n * Reference to the tooltip's container, when\n * [Highcharts.Tooltip#outside] is set to true, otherwise\n * it's undefined.\n *\n * @name Highcharts.Tooltip#container\n * @type {Highcharts.HTMLDOMElement|undefined}\n */\n this.container = container = H.doc.createElement('div');\n container.className = 'highcharts-tooltip-container';\n H.css(container, {\n position: 'absolute',\n top: '1px',\n pointerEvents: options.style && options.style.pointerEvents,\n zIndex: 3\n });\n H.doc.body.appendChild(container);\n /**\n * Reference to the tooltip's renderer, when\n * [Highcharts.Tooltip#outside] is set to true, otherwise\n * it's undefined.\n *\n * @name Highcharts.Tooltip#renderer\n * @type {Highcharts.SVGRenderer|undefined}\n */\n this.renderer = renderer = new H.Renderer(container, 0, 0, {}, undefined, undefined, renderer.styledMode);\n }\n // Create the label\n if (this.split) {\n this.label = renderer.g(className);\n }\n else {\n this.label = renderer\n .label('', 0, 0, options.shape || 'callout', null, null, options.useHTML, null, className)\n .attr({\n padding: options.padding,\n r: options.borderRadius\n });\n if (!styledMode) {\n this.label\n .attr({\n fill: options.backgroundColor,\n 'stroke-width': options.borderWidth\n })\n // #2301, #2657\n .css(options.style)\n .shadow(options.shadow);\n }\n }\n if (styledMode) {\n // Apply the drop-shadow filter\n this.applyFilter();\n this.label.addClass('highcharts-tooltip-' + this.chart.index);\n }\n // Split tooltip use updateTooltipContainer to position the tooltip\n // container.\n if (tooltip.outside && !tooltip.split) {\n set = {\n x: this.label.xSetter,\n y: this.label.ySetter\n };\n this.label.xSetter = function (value, key) {\n set[key].call(this.label, tooltip.distance);\n container.style.left = value + 'px';\n };\n this.label.ySetter = function (value, key) {\n set[key].call(this.label, tooltip.distance);\n container.style.top = value + 'px';\n };\n }\n this.label\n .attr({\n zIndex: 8\n })\n .add();\n }\n return this.label;\n },\n /**\n * Updates the tooltip with the provided tooltip options.\n *\n * @function Highcharts.Tooltip#update\n *\n * @param {Highcharts.TooltipOptions} options\n * The tooltip options to update.\n *\n * @return {void}\n */\n update: function (options) {\n this.destroy();\n // Update user options (#6218)\n merge(true, this.chart.options.tooltip.userOptions, options);\n this.init(this.chart, merge(true, this.options, options));\n },\n /**\n * Removes and destroys the tooltip and its elements.\n *\n * @function Highcharts.Tooltip#destroy\n * @return {void}\n */\n destroy: function () {\n // Destroy and clear local variables\n if (this.label) {\n this.label = this.label.destroy();\n }\n if (this.split && this.tt) {\n this.cleanSplit(this.chart, true);\n this.tt = this.tt.destroy();\n }\n if (this.renderer) {\n this.renderer = this.renderer.destroy();\n discardElement(this.container);\n }\n H.clearTimeout(this.hideTimer);\n H.clearTimeout(this.tooltipTimeout);\n },\n /**\n * Moves the tooltip with a soft animation to a new position.\n *\n * @private\n * @function Highcharts.Tooltip#move\n *\n * @param {number} x\n *\n * @param {number} y\n *\n * @param {number} anchorX\n *\n * @param {number} anchorY\n *\n * @return {void}\n */\n move: function (x, y, anchorX, anchorY) {\n var tooltip = this, now = tooltip.now, animate = tooltip.options.animation !== false &&\n !tooltip.isHidden &&\n // When we get close to the target position, abort animation and\n // land on the right place (#3056)\n (Math.abs(x - now.x) > 1 || Math.abs(y - now.y) > 1), skipAnchor = tooltip.followPointer || tooltip.len > 1;\n // Get intermediate values for animation\n extend(now, {\n x: animate ? (2 * now.x + x) / 3 : x,\n y: animate ? (now.y + y) / 2 : y,\n anchorX: skipAnchor ?\n undefined :\n animate ? (2 * now.anchorX + anchorX) / 3 : anchorX,\n anchorY: skipAnchor ?\n undefined :\n animate ? (now.anchorY + anchorY) / 2 : anchorY\n });\n // Move to the intermediate value\n tooltip.getLabel().attr(now);\n // Run on next tick of the mouse tracker\n if (animate) {\n // Never allow two timeouts\n H.clearTimeout(this.tooltipTimeout);\n // Set the fixed interval ticking for the smooth tooltip\n this.tooltipTimeout = setTimeout(function () {\n // The interval function may still be running during destroy,\n // so check that the chart is really there before calling.\n if (tooltip) {\n tooltip.move(x, y, anchorX, anchorY);\n }\n }, 32);\n }\n },\n /**\n * Hides the tooltip with a fade out animation.\n *\n * @function Highcharts.Tooltip#hide\n *\n * @param {number} [delay]\n * The fade out in milliseconds. If no value is provided the value\n * of the tooltip.hideDelay option is used. A value of 0 disables\n * the fade out animation.\n *\n * @return {void}\n */\n hide: function (delay) {\n var tooltip = this;\n // disallow duplicate timers (#1728, #1766)\n H.clearTimeout(this.hideTimer);\n delay = pick(delay, this.options.hideDelay, 500);\n if (!this.isHidden) {\n this.hideTimer = syncTimeout(function () {\n tooltip.getLabel()[delay ? 'fadeOut' : 'hide']();\n tooltip.isHidden = true;\n }, delay);\n }\n },\n /**\n * Extendable method to get the anchor position of the tooltip\n * from a point or set of points\n *\n * @private\n * @function Highcharts.Tooltip#getAnchor\n *\n * @param {Array} points\n *\n * @param {Highcharts.PointerEventObject} [mouseEvent]\n *\n * @return {Array}\n */\n getAnchor: function (points, mouseEvent) {\n var ret, chart = this.chart, pointer = chart.pointer, inverted = chart.inverted, plotTop = chart.plotTop, plotLeft = chart.plotLeft, plotX = 0, plotY = 0, yAxis, xAxis;\n points = splat(points);\n // When tooltip follows mouse, relate the position to the mouse\n if (this.followPointer && mouseEvent) {\n if (mouseEvent.chartX === undefined) {\n mouseEvent = pointer.normalize(mouseEvent);\n }\n ret = [\n mouseEvent.chartX - chart.plotLeft,\n mouseEvent.chartY - plotTop\n ];\n // Pie uses a special tooltipPos\n }\n else if (points[0].tooltipPos) {\n ret = points[0].tooltipPos;\n // When shared, use the average position\n }\n else {\n points.forEach(function (point) {\n yAxis = point.series.yAxis;\n xAxis = point.series.xAxis;\n plotX += point.plotX +\n (!inverted && xAxis ? xAxis.left - plotLeft : 0);\n plotY += (point.plotLow ?\n (point.plotLow + point.plotHigh) / 2 :\n point.plotY) + (!inverted && yAxis ? yAxis.top - plotTop : 0); // #1151\n });\n plotX /= points.length;\n plotY /= points.length;\n ret = [\n inverted ? chart.plotWidth - plotY : plotX,\n this.shared && !inverted && points.length > 1 && mouseEvent ?\n // place shared tooltip next to the mouse (#424)\n mouseEvent.chartY - plotTop :\n inverted ? chart.plotHeight - plotX : plotY\n ];\n }\n return ret.map(Math.round);\n },\n /**\n * Place the tooltip in a chart without spilling over\n * and not covering the point it self.\n *\n * @private\n * @function Highcharts.Tooltip#getPosition\n *\n * @param {number} boxWidth\n *\n * @param {number} boxHeight\n *\n * @param {Highcharts.Point} point\n *\n * @return {Highcharts.Dictionary}\n */\n getPosition: function (boxWidth, boxHeight, point) {\n var chart = this.chart, distance = this.distance, ret = {}, \n // Don't use h if chart isn't inverted (#7242) ???\n h = (chart.inverted && point.h) || 0, // #4117 ???\n swapped, outside = this.outside, outerWidth = outside ?\n // substract distance to prevent scrollbars\n doc.documentElement.clientWidth - 2 * distance :\n chart.chartWidth, outerHeight = outside ?\n Math.max(doc.body.scrollHeight, doc.documentElement.scrollHeight, doc.body.offsetHeight, doc.documentElement.offsetHeight, doc.documentElement.clientHeight) :\n chart.chartHeight, chartPosition = chart.pointer.getChartPosition(), containerScaling = chart.containerScaling, scaleX = function (val) { return ( // eslint-disable-line no-confusing-arrow\n containerScaling ? val * containerScaling.scaleX : val); }, scaleY = function (val) { return ( // eslint-disable-line no-confusing-arrow\n containerScaling ? val * containerScaling.scaleY : val); }, \n // Build parameter arrays for firstDimension()/secondDimension()\n buildDimensionArray = function (dim) {\n var isX = dim === 'x';\n return [\n dim,\n isX ? outerWidth : outerHeight,\n isX ? boxWidth : boxHeight\n ].concat(outside ? [\n // If we are using tooltip.outside, we need to scale the\n // position to match scaling of the container in case there\n // is a transform/zoom on the container. #11329\n isX ? scaleX(boxWidth) : scaleY(boxHeight),\n isX ? chartPosition.left - distance +\n scaleX(point.plotX + chart.plotLeft) :\n chartPosition.top - distance +\n scaleY(point.plotY + chart.plotTop),\n 0,\n isX ? outerWidth : outerHeight\n ] : [\n // Not outside, no scaling is needed\n isX ? boxWidth : boxHeight,\n isX ? point.plotX + chart.plotLeft :\n point.plotY + chart.plotTop,\n isX ? chart.plotLeft : chart.plotTop,\n isX ? chart.plotLeft + chart.plotWidth :\n chart.plotTop + chart.plotHeight\n ]);\n }, first = buildDimensionArray('y'), second = buildDimensionArray('x'), \n // The far side is right or bottom\n preferFarSide = !this.followPointer && pick(point.ttBelow, !chart.inverted === !!point.negative), // #4984\n /*\n * Handle the preferred dimension. When the preferred dimension is\n * tooltip on top or bottom of the point, it will look for space\n * there.\n *\n * @private\n */\n firstDimension = function (dim, outerSize, innerSize, scaledInnerSize, // #11329\n point, min, max) {\n var scaledDist = dim === 'y' ?\n scaleY(distance) : scaleX(distance), scaleDiff = (innerSize - scaledInnerSize) / 2, roomLeft = scaledInnerSize < point - distance, roomRight = point + distance + scaledInnerSize < outerSize, alignedLeft = point - scaledDist - innerSize + scaleDiff, alignedRight = point + scaledDist - scaleDiff;\n if (preferFarSide && roomRight) {\n ret[dim] = alignedRight;\n }\n else if (!preferFarSide && roomLeft) {\n ret[dim] = alignedLeft;\n }\n else if (roomLeft) {\n ret[dim] = Math.min(max - scaledInnerSize, alignedLeft - h < 0 ? alignedLeft : alignedLeft - h);\n }\n else if (roomRight) {\n ret[dim] = Math.max(min, alignedRight + h + innerSize > outerSize ?\n alignedRight :\n alignedRight + h);\n }\n else {\n return false;\n }\n }, \n /*\n * Handle the secondary dimension. If the preferred dimension is\n * tooltip on top or bottom of the point, the second dimension is to\n * align the tooltip above the point, trying to align center but\n * allowing left or right align within the chart box.\n *\n * @private\n */\n secondDimension = function (dim, outerSize, innerSize, scaledInnerSize, // #11329\n point) {\n var retVal;\n // Too close to the edge, return false and swap dimensions\n if (point < distance || point > outerSize - distance) {\n retVal = false;\n // Align left/top\n }\n else if (point < innerSize / 2) {\n ret[dim] = 1;\n // Align right/bottom\n }\n else if (point > outerSize - scaledInnerSize / 2) {\n ret[dim] = outerSize - scaledInnerSize - 2;\n // Align center\n }\n else {\n ret[dim] = point - innerSize / 2;\n }\n return retVal;\n }, \n /*\n * Swap the dimensions\n */\n swap = function (count) {\n var temp = first;\n first = second;\n second = temp;\n swapped = count;\n }, run = function () {\n if (firstDimension.apply(0, first) !== false) {\n if (secondDimension.apply(0, second) === false &&\n !swapped) {\n swap(true);\n run();\n }\n }\n else if (!swapped) {\n swap(true);\n run();\n }\n else {\n ret.x = ret.y = 0;\n }\n };\n // Under these conditions, prefer the tooltip on the side of the point\n if (chart.inverted || this.len > 1) {\n swap();\n }\n run();\n return ret;\n },\n /**\n * In case no user defined formatter is given, this will be used. Note that\n * the context here is an object holding point, series, x, y etc.\n *\n * @function Highcharts.Tooltip#defaultFormatter\n *\n * @param {Highcharts.Tooltip} tooltip\n *\n * @return {Array}\n */\n defaultFormatter: function (tooltip) {\n var items = this.points || splat(this), s;\n // Build the header\n s = [tooltip.tooltipFooterHeaderFormatter(items[0])];\n // build the values\n s = s.concat(tooltip.bodyFormatter(items));\n // footer\n s.push(tooltip.tooltipFooterHeaderFormatter(items[0], true));\n return s;\n },\n /**\n * Refresh the tooltip's text and position.\n *\n * @function Highcharts.Tooltip#refresh\n *\n * @param {Highcharts.Point|Array} pointOrPoints\n * Either a point or an array of points.\n *\n * @param {Highcharts.PointerEventObject} [mouseEvent]\n * Mouse event, that is responsible for the refresh and should be\n * used for the tooltip update.\n *\n * @return {void}\n */\n refresh: function (pointOrPoints, mouseEvent) {\n var tooltip = this, chart = this.chart, options = tooltip.options, x, y, point = pointOrPoints, anchor, textConfig = {}, text, pointConfig = [], formatter = options.formatter || tooltip.defaultFormatter, shared = tooltip.shared, currentSeries, styledMode = chart.styledMode;\n if (!options.enabled) {\n return;\n }\n H.clearTimeout(this.hideTimer);\n // get the reference point coordinates (pie charts use tooltipPos)\n tooltip.followPointer = splat(point)[0].series.tooltipOptions\n .followPointer;\n anchor = tooltip.getAnchor(point, mouseEvent);\n x = anchor[0];\n y = anchor[1];\n // shared tooltip, array is sent over\n if (shared &&\n !(point.series &&\n point.series.noSharedTooltip)) {\n chart.pointer.applyInactiveState(point);\n // Now set hover state for the choosen ones:\n point.forEach(function (item) {\n item.setState('hover');\n pointConfig.push(item.getLabelConfig());\n });\n textConfig = {\n x: point[0].category,\n y: point[0].y\n };\n textConfig.points = pointConfig;\n point = point[0];\n // single point tooltip\n }\n else {\n textConfig = point.getLabelConfig();\n }\n this.len = pointConfig.length; // #6128\n text = formatter.call(textConfig, tooltip);\n // register the current series\n currentSeries = point.series;\n this.distance = pick(currentSeries.tooltipOptions.distance, 16);\n // update the inner HTML\n if (text === false) {\n this.hide();\n }\n else {\n // update text\n if (tooltip.split) {\n this.renderSplit(text, splat(pointOrPoints));\n }\n else {\n var label = tooltip.getLabel();\n // Prevent the tooltip from flowing over the chart box (#6659)\n if (!options.style.width || styledMode) {\n label.css({\n width: this.chart.spacingBox.width\n });\n }\n label.attr({\n text: text && text.join ?\n text.join('') :\n text\n });\n // Set the stroke color of the box to reflect the point\n label.removeClass(/highcharts-color-[\\d]+/g)\n .addClass('highcharts-color-' +\n pick(point.colorIndex, currentSeries.colorIndex));\n if (!styledMode) {\n label.attr({\n stroke: (options.borderColor ||\n point.color ||\n currentSeries.color ||\n '#666666')\n });\n }\n tooltip.updatePosition({\n plotX: x,\n plotY: y,\n negative: point.negative,\n ttBelow: point.ttBelow,\n h: anchor[2] || 0\n });\n }\n // show it\n if (tooltip.isHidden && tooltip.label) {\n tooltip.label.attr({\n opacity: 1\n }).show();\n }\n tooltip.isHidden = false;\n }\n H.fireEvent(this, 'refresh');\n },\n /**\n * Render the split tooltip. Loops over each point's text and adds\n * a label next to the point, then uses the distribute function to\n * find best non-overlapping positions.\n *\n * @private\n * @function Highcharts.Tooltip#renderSplit\n *\n * @param {string|Array<(boolean|string)>} labels\n *\n * @param {Array} points\n */\n renderSplit: function (labels, points) {\n var tooltip = this, boxes = [], chart = this.chart, ren = chart.renderer, rightAligned = true, options = this.options, headerHeight = 0, headerTop, tooltipLabel = this.getLabel(), distributionBoxTop = chart.plotTop;\n // Graceful degradation for legacy formatters\n if (isString(labels)) {\n labels = [false, labels];\n }\n // Create the individual labels for header and points, ignore footer\n labels.slice(0, points.length + 1).forEach(function (str, i) {\n if (str !== false && str !== '') {\n var point = points[i - 1] ||\n {\n // Item 0 is the header. Instead of this, we could also\n // use the crosshair label\n isHeader: true,\n plotX: points[0].plotX,\n plotY: chart.plotHeight\n }, owner = point.series || tooltip, tt = owner.tt, series = point.series || {}, colorClass = 'highcharts-color-' + pick(point.colorIndex, series.colorIndex, 'none'), target, x, bBox, boxWidth, attribs;\n // Store the tooltip referance on the series\n if (!tt) {\n attribs = {\n padding: options.padding,\n r: options.borderRadius\n };\n if (!chart.styledMode) {\n attribs.fill = options.backgroundColor;\n attribs['stroke-width'] = options.borderWidth;\n }\n owner.tt = tt = ren\n .label(null, null, null, (point.isHeader ?\n options.headerShape :\n options.shape) || 'callout', null, null, options.useHTML)\n .addClass(point.isHeader ?\n 'highcharts-tooltip-header ' : '' +\n 'highcharts-tooltip-box ' +\n colorClass)\n .attr(attribs)\n .add(tooltipLabel);\n }\n tt.isActive = true;\n tt.attr({\n text: str\n });\n if (!chart.styledMode) {\n tt.css(options.style)\n .shadow(options.shadow)\n .attr({\n stroke: (options.borderColor ||\n point.color ||\n series.color ||\n '#333333')\n });\n }\n // Get X position now, so we can move all to the other side in\n // case of overflow\n bBox = tt.getBBox();\n boxWidth = bBox.width + tt.strokeWidth();\n if (point.isHeader) {\n headerHeight = bBox.height;\n if (chart.xAxis[0].opposite) {\n headerTop = true;\n distributionBoxTop -= headerHeight;\n }\n x = Math.max(0, // No left overflow\n Math.min(point.plotX +\n chart.plotLeft -\n boxWidth / 2, \n // No right overflow (#5794)\n chart.chartWidth +\n (\n // Scrollable plot area\n chart.scrollablePixelsX ?\n chart.scrollablePixelsX -\n chart.marginRight :\n 0) -\n boxWidth));\n }\n else {\n x = point.plotX + chart.plotLeft -\n pick(options.distance, 16) - boxWidth;\n }\n // If overflow left, we don't use this x in the next loop\n if (x < 0) {\n rightAligned = false;\n }\n // Prepare for distribution\n if (point.isHeader) {\n target = headerTop ?\n -headerHeight :\n chart.plotHeight + headerHeight;\n }\n else {\n var yAxis = series.yAxis;\n target = yAxis.pos - distributionBoxTop + Math.max(0, Math.min((point.plotY || 0), yAxis.len)); // Limit target position to within yAxis\n }\n boxes.push({\n target: target,\n rank: point.isHeader ? 1 : 0,\n size: owner.tt.getBBox().height + 1,\n point: point,\n x: x,\n tt: tt\n });\n }\n });\n // Clean previous run (for missing points)\n this.cleanSplit();\n if (options.positioner) {\n boxes.forEach(function (box) {\n var boxPosition = options.positioner.call(tooltip, box.tt.getBBox().width, box.size, box.point);\n box.x = boxPosition.x;\n box.align = 0; // 0-align to the top, 1-align to the bottom\n box.target = boxPosition.y;\n box.rank = pick(boxPosition.rank, box.rank);\n });\n }\n // Distribute and put in place\n H.distribute(boxes, chart.plotHeight + headerHeight);\n boxes.forEach(function (box) {\n var point = box.point, series = point.series, yAxis = series && series.yAxis;\n // Put the label in place\n box.tt.attr({\n visibility: box.pos === undefined ? 'hidden' : 'inherit',\n x: (rightAligned || point.isHeader || options.positioner ?\n box.x :\n point.plotX + chart.plotLeft + tooltip.distance),\n y: box.pos + distributionBoxTop,\n anchorX: point.isHeader ?\n point.plotX + chart.plotLeft :\n point.plotX + series.xAxis.pos,\n anchorY: point.isHeader ?\n chart.plotTop + chart.plotHeight / 2 :\n yAxis.pos + Math.max(0, Math.min(point.plotY, yAxis.len))\n });\n });\n /* If we have a seperate tooltip container, then update the necessary\n * container properties.\n * Test that tooltip has its own container and renderer before executing\n * the operation.\n */\n var container = tooltip.container, outside = tooltip.outside, renderer = tooltip.renderer;\n if (outside && container && renderer) {\n // Position the tooltip container to the chart container\n var chartPosition = chart.pointer.getChartPosition();\n container.style.left = chartPosition.left + 'px';\n container.style.top = chartPosition.top + 'px';\n // Set container size to fit the tooltip\n var _a = tooltipLabel.getBBox(), width = _a.width, height = _a.height, x = _a.x, y = _a.y;\n renderer.setSize(width + x, height + y, false);\n }\n },\n /**\n * Find the new position and perform the move\n *\n * @private\n * @function Highcharts.Tooltip#updatePosition\n *\n * @param {Highcharts.Point} point\n */\n updatePosition: function (point) {\n var chart = this.chart, pointer = chart.pointer, label = this.getLabel(), pos, anchorX = point.plotX + chart.plotLeft, anchorY = point.plotY + chart.plotTop, pad;\n // Needed for outside: true (#11688)\n var chartPosition = pointer.getChartPosition();\n pos = (this.options.positioner || this.getPosition).call(this, label.width, label.height, point);\n // Set the renderer size dynamically to prevent document size to change\n if (this.outside) {\n pad = (this.options.borderWidth || 0) + 2 * this.distance;\n this.renderer.setSize(label.width + pad, label.height + pad, false);\n // Anchor and tooltip container need scaling if chart container has\n // scale transform/css zoom. #11329.\n var containerScaling = chart.containerScaling;\n if (containerScaling) {\n H.css(this.container, {\n transform: \"scale(\" + containerScaling.scaleX + \", \" + containerScaling.scaleY + \")\"\n });\n anchorX *= containerScaling.scaleX;\n anchorY *= containerScaling.scaleY;\n }\n anchorX += chartPosition.left - pos.x;\n anchorY += chartPosition.top - pos.y;\n }\n // do the move\n this.move(Math.round(pos.x), Math.round(pos.y || 0), // can be undefined (#3977)\n anchorX, anchorY);\n },\n /**\n * Get the optimal date format for a point, based on a range.\n *\n * @private\n * @function Highcharts.Tooltip#getDateFormat\n *\n * @param {number} range\n * The time range\n *\n * @param {number} date\n * The date of the point in question\n *\n * @param {number} startOfWeek\n * An integer representing the first day of the week, where 0 is\n * Sunday.\n *\n * @param {Highcharts.Dictionary} dateTimeLabelFormats\n * A map of time units to formats.\n *\n * @return {string}\n * The optimal date format for a point.\n */\n getDateFormat: function (range, date, startOfWeek, dateTimeLabelFormats) {\n var time = this.chart.time, dateStr = time.dateFormat('%m-%d %H:%M:%S.%L', date), format, n, blank = '01-01 00:00:00.000', strpos = {\n millisecond: 15,\n second: 12,\n minute: 9,\n hour: 6,\n day: 3\n }, lastN = 'millisecond'; // for sub-millisecond data, #4223\n for (n in timeUnits) { // eslint-disable-line guard-for-in\n // If the range is exactly one week and we're looking at a\n // Sunday/Monday, go for the week format\n if (range === timeUnits.week &&\n +time.dateFormat('%w', date) === startOfWeek &&\n dateStr.substr(6) === blank.substr(6)) {\n n = 'week';\n break;\n }\n // The first format that is too great for the range\n if (timeUnits[n] > range) {\n n = lastN;\n break;\n }\n // If the point is placed every day at 23:59, we need to show\n // the minutes as well. #2637.\n if (strpos[n] &&\n dateStr.substr(strpos[n]) !== blank.substr(strpos[n])) {\n break;\n }\n // Weeks are outside the hierarchy, only apply them on\n // Mondays/Sundays like in the first condition\n if (n !== 'week') {\n lastN = n;\n }\n }\n if (n) {\n format = time.resolveDTLFormat(dateTimeLabelFormats[n]).main;\n }\n return format;\n },\n /**\n * Get the best X date format based on the closest point range on the axis.\n *\n * @private\n * @function Highcharts.Tooltip#getXDateFormat\n *\n * @param {Highcharts.Point} point\n *\n * @param {Highcharts.TooltipOptions} options\n *\n * @param {Highcharts.Axis} xAxis\n *\n * @return {string}\n */\n getXDateFormat: function (point, options, xAxis) {\n var xDateFormat, dateTimeLabelFormats = options.dateTimeLabelFormats, closestPointRange = xAxis && xAxis.closestPointRange;\n if (closestPointRange) {\n xDateFormat = this.getDateFormat(closestPointRange, point.x, xAxis.options.startOfWeek, dateTimeLabelFormats);\n }\n else {\n xDateFormat = dateTimeLabelFormats.day;\n }\n return xDateFormat || dateTimeLabelFormats.year; // #2546, 2581\n },\n /**\n * Format the footer/header of the tooltip\n * #3397: abstraction to enable formatting of footer and header\n *\n * @private\n * @function Highcharts.Tooltip#tooltipFooterHeaderFormatter\n * @param {Highcharts.PointLabelObject} labelConfig\n * @param {boolean} [isFooter]\n * @return {string}\n */\n tooltipFooterHeaderFormatter: function (labelConfig, isFooter) {\n var footOrHead = isFooter ? 'footer' : 'header', series = labelConfig.series, tooltipOptions = series.tooltipOptions, xDateFormat = tooltipOptions.xDateFormat, xAxis = series.xAxis, isDateTime = (xAxis &&\n xAxis.options.type === 'datetime' &&\n isNumber(labelConfig.key)), formatString = tooltipOptions[footOrHead + 'Format'], evt = {\n isFooter: isFooter,\n labelConfig: labelConfig\n };\n H.fireEvent(this, 'headerFormatter', evt, function (e) {\n // Guess the best date format based on the closest point distance\n // (#568, #3418)\n if (isDateTime && !xDateFormat) {\n xDateFormat = this.getXDateFormat(labelConfig, tooltipOptions, xAxis);\n }\n // Insert the footer date format if any\n if (isDateTime && xDateFormat) {\n ((labelConfig.point && labelConfig.point.tooltipDateKeys) ||\n ['key']).forEach(function (key) {\n formatString = formatString.replace('{point.' + key + '}', '{point.' + key + ':' + xDateFormat + '}');\n });\n }\n // Replace default header style with class name\n if (series.chart.styledMode) {\n formatString = this.styledModeFormat(formatString);\n }\n e.text = format(formatString, {\n point: labelConfig,\n series: series\n }, this.chart.time);\n });\n return evt.text;\n },\n /**\n * Build the body (lines) of the tooltip by iterating over the items and\n * returning one entry for each item, abstracting this functionality allows\n * to easily overwrite and extend it.\n *\n * @private\n * @function Highcharts.Tooltip#bodyFormatter\n * @param {Array<(Highcharts.Point|Highcharts.Series)>} items\n * @return {Array}\n */\n bodyFormatter: function (items) {\n return items.map(function (item) {\n var tooltipOptions = item.series.tooltipOptions;\n return (tooltipOptions[(item.point.formatPrefix || 'point') + 'Formatter'] ||\n item.point.tooltipFormatter).call(item.point, tooltipOptions[(item.point.formatPrefix || 'point') + 'Format'] || '');\n });\n },\n styledModeFormat: function (formatString) {\n return formatString\n .replace('style=\"font-size: 10px\"', 'class=\"highcharts-header\"')\n .replace(/style=\"color:{(point|series)\\.color}\"/g, 'class=\"highcharts-color-{$1.colorIndex}\"');\n }\n };\n\n });\n _registerModule(_modules, 'parts/Pointer.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (Highcharts, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * One position in relation to an axis.\n *\n * @interface Highcharts.PointerAxisCoordinateObject\n */ /**\n * Related axis.\n *\n * @name Highcharts.PointerAxisCoordinateObject#axis\n * @type {Highcharts.Axis}\n */ /**\n * Axis value.\n *\n * @name Highcharts.PointerAxisCoordinateObject#value\n * @type {number}\n */\n /**\n * Positions in terms of axis values.\n *\n * @interface Highcharts.PointerAxisCoordinatesObject\n */ /**\n * Positions on the x-axis.\n * @name Highcharts.PointerAxisCoordinatesObject#xAxis\n * @type {Array}\n */ /**\n * Positions on the y-axis.\n * @name Highcharts.PointerAxisCoordinatesObject#yAxis\n * @type {Array}\n */\n /**\n * Pointer coordinates.\n *\n * @interface Highcharts.PointerCoordinatesObject\n */ /**\n * @name Highcharts.PointerCoordinatesObject#chartX\n * @type {number}\n */ /**\n * @name Highcharts.PointerCoordinatesObject#chartY\n * @type {number}\n */\n /**\n * A native browser mouse or touch event, extended with position information\n * relative to the {@link Chart.container}.\n *\n * @interface Highcharts.PointerEventObject\n * @extends global.PointerEvent\n */ /**\n * The X coordinate of the pointer interaction relative to the chart.\n *\n * @name Highcharts.PointerEventObject#chartX\n * @type {number}\n */ /**\n * The Y coordinate of the pointer interaction relative to the chart.\n *\n * @name Highcharts.PointerEventObject#chartY\n * @type {number}\n */\n /**\n * Axis-specific data of a selection.\n *\n * @interface Highcharts.SelectDataObject\n */ /**\n * @name Highcharts.SelectDataObject#axis\n * @type {Highcharts.Axis}\n */ /**\n * @name Highcharts.SelectDataObject#max\n * @type {number}\n */ /**\n * @name Highcharts.SelectDataObject#min\n * @type {number}\n */\n /**\n * Object for select events.\n *\n * @interface Highcharts.SelectEventObject\n */ /**\n * @name Highcharts.SelectEventObject#originalEvent\n * @type {global.Event}\n */ /**\n * @name Highcharts.SelectEventObject#xAxis\n * @type {Array}\n */ /**\n * @name Highcharts.SelectEventObject#yAxis\n * @type {Array}\n */\n var attr = U.attr, defined = U.defined, extend = U.extend, isNumber = U.isNumber, isObject = U.isObject, objectEach = U.objectEach, pick = U.pick, splat = U.splat;\n var H = Highcharts, addEvent = H.addEvent, charts = H.charts, color = H.color, css = H.css, find = H.find, fireEvent = H.fireEvent, offset = H.offset, Tooltip = H.Tooltip;\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * The mouse and touch tracker object. Each {@link Chart} item has one\n * assosiated Pointer item that can be accessed from the {@link Chart.pointer}\n * property.\n *\n * @class\n * @name Highcharts.Pointer\n *\n * @param {Highcharts.Chart} chart\n * The Chart instance.\n *\n * @param {Highcharts.Options} options\n * The root options object. The pointer uses options from the chart and\n * tooltip structures.\n */\n Highcharts.Pointer = function (chart, options) {\n this.init(chart, options);\n };\n Highcharts.Pointer.prototype = {\n /**\n * Initialize the Pointer.\n *\n * @private\n * @function Highcharts.Pointer#init\n *\n * @param {Highcharts.Chart} chart\n * The Chart instance.\n *\n * @param {Highcharts.Options} options\n * The root options object. The pointer uses options from the chart\n * and tooltip structures.\n *\n * @return {void}\n */\n init: function (chart, options) {\n // Store references\n this.options = options;\n this.chart = chart;\n // Do we need to handle click on a touch device?\n this.runChartClick =\n options.chart.events &&\n !!options.chart.events.click;\n this.pinchDown = [];\n this.lastValidTouch = {};\n if (Tooltip) {\n /**\n * Tooltip object for points of series.\n *\n * @name Highcharts.Chart#tooltip\n * @type {Highcharts.Tooltip}\n */\n chart.tooltip = new Tooltip(chart, options.tooltip);\n this.followTouchMove = pick(options.tooltip.followTouchMove, true);\n }\n this.setDOMEvents();\n },\n /**\n * Resolve the zoomType option, this is reset on all touch start and mouse\n * down events.\n *\n * @private\n * @function Highcharts.Pointer#zoomOption\n *\n * @param {global.Event} e\n * Event object.\n *\n * @param {void}\n */\n zoomOption: function (e) {\n var chart = this.chart, options = chart.options.chart, zoomType = options.zoomType || '', inverted = chart.inverted, zoomX, zoomY;\n // Look for the pinchType option\n if (/touch/.test(e.type)) {\n zoomType = pick(options.pinchType, zoomType);\n }\n this.zoomX = zoomX = /x/.test(zoomType);\n this.zoomY = zoomY = /y/.test(zoomType);\n this.zoomHor = (zoomX && !inverted) || (zoomY && inverted);\n this.zoomVert = (zoomY && !inverted) || (zoomX && inverted);\n this.hasZoom = zoomX || zoomY;\n },\n /**\n * Return the cached chartPosition if it is available on the Pointer,\n * otherwise find it. Running offset is quite expensive, so it should be\n * avoided when we know the chart hasn't moved.\n *\n * @function Highcharts.Pointer#getChartPosition\n *\n * @return {Highcharts.OffsetObject}\n * The offset of the chart container within the page\n */\n getChartPosition: function () {\n return (this.chartPosition ||\n (this.chartPosition = offset(this.chart.container)));\n },\n /**\n * Takes a browser event object and extends it with custom Highcharts\n * properties `chartX` and `chartY` in order to work on the internal\n * coordinate system.\n *\n * @function Highcharts.Pointer#normalize\n *\n * @param {PointerEvent|TouchEvent} e\n * Event object in standard browsers.\n *\n * @param {Highcharts.OffsetObject} [chartPosition]\n * Additional chart offset.\n *\n * @return {Highcharts.PointerEventObject}\n * A browser event with extended properties `chartX` and `chartY`.\n */\n normalize: function (e, chartPosition) {\n var ePos;\n // iOS (#2757)\n ePos = e.touches ?\n (e.touches.length ?\n e.touches.item(0) :\n e.changedTouches[0]) :\n e;\n // Get mouse position\n if (!chartPosition) {\n chartPosition = this.getChartPosition();\n }\n var chartX = ePos.pageX - chartPosition.left, chartY = ePos.pageY - chartPosition.top;\n // #11329 - when there is scaling on a parent element, we need to take\n // this into account\n var containerScaling = this.chart.containerScaling;\n if (containerScaling) {\n chartX /= containerScaling.scaleX;\n chartY /= containerScaling.scaleY;\n }\n return extend(e, {\n chartX: Math.round(chartX),\n chartY: Math.round(chartY)\n });\n },\n /**\n * Get the click position in terms of axis values.\n *\n * @function Highcharts.Pointer#getCoordinates\n *\n * @param {Highcharts.PointerEventObject} e\n * Pointer event, extended with `chartX` and `chartY` properties.\n *\n * @return {Highcharts.PointerAxisCoordinatesObject}\n */\n getCoordinates: function (e) {\n var coordinates = {\n xAxis: [],\n yAxis: []\n };\n this.chart.axes.forEach(function (axis) {\n coordinates[axis.isXAxis ? 'xAxis' : 'yAxis'].push({\n axis: axis,\n value: axis.toValue(e[axis.horiz ? 'chartX' : 'chartY'])\n });\n });\n return coordinates;\n },\n /**\n * Finds the closest point to a set of coordinates, using the k-d-tree\n * algorithm.\n *\n * @function Highcharts.Pointer#findNearestKDPoints\n *\n * @param {Array} series\n * All the series to search in.\n *\n * @param {boolean|undefined} shared\n * Whether it is a shared tooltip or not.\n *\n * @param {Highcharts.PointerEventObject} e\n * The pointer event object, containing chart coordinates of the\n * pointer.\n *\n * @return {Highcharts.Point|undefined}\n * The point closest to given coordinates.\n */\n findNearestKDPoint: function (series, shared, e) {\n var closest, sort = function (p1, p2) {\n var isCloserX = p1.distX - p2.distX, isCloser = p1.dist - p2.dist, isAbove = (p2.series.group && p2.series.group.zIndex) -\n (p1.series.group && p1.series.group.zIndex), result;\n // We have two points which are not in the same place on xAxis\n // and shared tooltip:\n if (isCloserX !== 0 && shared) { // #5721\n result = isCloserX;\n // Points are not exactly in the same place on x/yAxis:\n }\n else if (isCloser !== 0) {\n result = isCloser;\n // The same xAxis and yAxis position, sort by z-index:\n }\n else if (isAbove !== 0) {\n result = isAbove;\n // The same zIndex, sort by array index:\n }\n else {\n result =\n p1.series.index > p2.series.index ?\n -1 :\n 1;\n }\n return result;\n };\n series.forEach(function (s) {\n var noSharedTooltip = s.noSharedTooltip && shared, compareX = (!noSharedTooltip &&\n s.options.findNearestPointBy.indexOf('y') < 0), point = s.searchPoint(e, compareX);\n if ( // Check that we actually found a point on the series.\n isObject(point, true) &&\n // Use the new point if it is closer.\n (!isObject(closest, true) ||\n (sort(closest, point) > 0))) {\n closest = point;\n }\n });\n return closest;\n },\n /**\n * @private\n * @function Highcharts.Pointer#getPointFromEvent\n *\n * @param {global.Event} e\n *\n * @return {Highcharts.Point|undefined}\n */\n getPointFromEvent: function (e) {\n var target = e.target, point;\n while (target && !point) {\n point = target.point;\n target = target.parentNode;\n }\n return point;\n },\n /**\n * @private\n * @function Highcharts.Pointer#getChartCoordinatesFromPoint\n * @param {Highcharts.Point} point\n * @param {boolean} [inverted]\n * @return {Highcharts.PointerCoordinatesObject|undefined}\n */\n getChartCoordinatesFromPoint: function (point, inverted) {\n var series = point.series, xAxis = series.xAxis, yAxis = series.yAxis, plotX = pick(point.clientX, point.plotX), shapeArgs = point.shapeArgs;\n if (xAxis && yAxis) {\n return inverted ? {\n chartX: xAxis.len + xAxis.pos - plotX,\n chartY: yAxis.len + yAxis.pos - point.plotY\n } : {\n chartX: plotX + xAxis.pos,\n chartY: point.plotY + yAxis.pos\n };\n }\n if (shapeArgs && shapeArgs.x && shapeArgs.y) {\n // E.g. pies do not have axes\n return {\n chartX: shapeArgs.x,\n chartY: shapeArgs.y\n };\n }\n },\n /**\n * Calculates what is the current hovered point/points and series.\n *\n * @private\n * @function Highcharts.Pointer#getHoverData\n *\n * @param {Highcharts.Point|undefined} existingHoverPoint\n * The point currrently beeing hovered.\n *\n * @param {Highcharts.Series|undefined} existingHoverSeries\n * The series currently beeing hovered.\n *\n * @param {Array} series\n * All the series in the chart.\n *\n * @param {boolean} isDirectTouch\n * Is the pointer directly hovering the point.\n *\n * @param {boolean|undefined} shared\n * Whether it is a shared tooltip or not.\n *\n * @param {Highcharts.PointerEventObject} [e]\n * The triggering event, containing chart coordinates of the pointer.\n *\n * @return {object}\n * Object containing resulting hover data: hoverPoint, hoverSeries,\n * and hoverPoints.\n */\n getHoverData: function (existingHoverPoint, existingHoverSeries, series, isDirectTouch, shared, e) {\n var hoverPoint, hoverPoints = [], hoverSeries = existingHoverSeries, useExisting = !!(isDirectTouch && existingHoverPoint), notSticky = hoverSeries && !hoverSeries.stickyTracking, filter = function (s) {\n return (s.visible &&\n !(!shared && s.directTouch) && // #3821\n pick(s.options.enableMouseTracking, true));\n }, \n // Which series to look in for the hover point\n searchSeries = notSticky ?\n // Only search on hovered series if it has stickyTracking false\n [hoverSeries] :\n // Filter what series to look in.\n series.filter(function (s) {\n return filter(s) && s.stickyTracking;\n });\n // Use existing hovered point or find the one closest to coordinates.\n hoverPoint = useExisting || !e ?\n existingHoverPoint :\n this.findNearestKDPoint(searchSeries, shared, e);\n // Assign hover series\n hoverSeries = hoverPoint && hoverPoint.series;\n // If we have a hoverPoint, assign hoverPoints.\n if (hoverPoint) {\n // When tooltip is shared, it displays more than one point\n if (shared && !hoverSeries.noSharedTooltip) {\n searchSeries = series.filter(function (s) {\n return filter(s) && !s.noSharedTooltip;\n });\n // Get all points with the same x value as the hoverPoint\n searchSeries.forEach(function (s) {\n var point = find(s.points, function (p) {\n return p.x === hoverPoint.x && !p.isNull;\n });\n if (isObject(point)) {\n /*\n * Boost returns a minimal point. Convert it to a usable\n * point for tooltip and states.\n */\n if (s.chart.isBoosting) {\n point = s.getPoint(point);\n }\n hoverPoints.push(point);\n }\n });\n }\n else {\n hoverPoints.push(hoverPoint);\n }\n }\n return {\n hoverPoint: hoverPoint,\n hoverSeries: hoverSeries,\n hoverPoints: hoverPoints\n };\n },\n /**\n * With line type charts with a single tracker, get the point closest to the\n * mouse. Run Point.onMouseOver and display tooltip for the point or points.\n *\n * @private\n * @function Highcharts.Pointer#runPointActions\n *\n * @param {global.Event} e\n *\n * @param {Highcharts.PointerEventObject} [p]\n *\n * @return {void}\n *\n * @fires Highcharts.Point#event:mouseOut\n * @fires Highcharts.Point#event:mouseOver\n */\n runPointActions: function (e, p) {\n var pointer = this, chart = pointer.chart, series = chart.series, tooltip = (chart.tooltip && chart.tooltip.options.enabled ?\n chart.tooltip :\n undefined), shared = (tooltip ?\n tooltip.shared :\n false), hoverPoint = p || chart.hoverPoint, hoverSeries = hoverPoint && hoverPoint.series || chart.hoverSeries, \n // onMouseOver or already hovering a series with directTouch\n isDirectTouch = (!e || e.type !== 'touchmove') && (!!p || ((hoverSeries && hoverSeries.directTouch) &&\n pointer.isDirectTouch)), hoverData = this.getHoverData(hoverPoint, hoverSeries, series, isDirectTouch, shared, e), useSharedTooltip, followPointer, anchor, points;\n // Update variables from hoverData.\n hoverPoint = hoverData.hoverPoint;\n points = hoverData.hoverPoints;\n hoverSeries = hoverData.hoverSeries;\n followPointer = hoverSeries && hoverSeries.tooltipOptions.followPointer;\n useSharedTooltip = (shared &&\n hoverSeries &&\n !hoverSeries.noSharedTooltip);\n // Refresh tooltip for kdpoint if new hover point or tooltip was hidden\n // #3926, #4200\n if (hoverPoint &&\n // !(hoverSeries && hoverSeries.directTouch) &&\n (hoverPoint !== chart.hoverPoint || (tooltip && tooltip.isHidden))) {\n (chart.hoverPoints || []).forEach(function (p) {\n if (points.indexOf(p) === -1) {\n p.setState();\n }\n });\n // Set normal state to previous series\n if (chart.hoverSeries !== hoverSeries) {\n hoverSeries.onMouseOver();\n }\n pointer.applyInactiveState(points);\n // Do mouseover on all points (#3919, #3985, #4410, #5622)\n (points || []).forEach(function (p) {\n p.setState('hover');\n });\n // If tracking is on series in stead of on each point,\n // fire mouseOver on hover point. // #4448\n if (chart.hoverPoint) {\n chart.hoverPoint.firePointEvent('mouseOut');\n }\n // Hover point may have been destroyed in the event handlers (#7127)\n if (!hoverPoint.series) {\n return;\n }\n hoverPoint.firePointEvent('mouseOver');\n /**\n * Contains all hovered points.\n *\n * @name Highcharts.Chart#hoverPoints\n * @type {Array|null}\n */\n chart.hoverPoints = points;\n /**\n * Contains the original hovered point.\n *\n * @name Highcharts.Chart#hoverPoint\n * @type {Highcharts.Point|null}\n */\n chart.hoverPoint = hoverPoint;\n // Draw tooltip if necessary\n if (tooltip) {\n tooltip.refresh(useSharedTooltip ? points : hoverPoint, e);\n }\n // Update positions (regardless of kdpoint or hoverPoint)\n }\n else if (followPointer && tooltip && !tooltip.isHidden) {\n anchor = tooltip.getAnchor([{}], e);\n tooltip.updatePosition({ plotX: anchor[0], plotY: anchor[1] });\n }\n // Start the event listener to pick up the tooltip and crosshairs\n if (!pointer.unDocMouseMove) {\n pointer.unDocMouseMove = addEvent(chart.container.ownerDocument, 'mousemove', function (e) {\n var chart = charts[H.hoverChartIndex];\n if (chart) {\n chart.pointer.onDocumentMouseMove(e);\n }\n });\n }\n // Issues related to crosshair #4927, #5269 #5066, #5658\n chart.axes.forEach(function drawAxisCrosshair(axis) {\n var snap = pick(axis.crosshair.snap, true), point = !snap ?\n undefined :\n H.find(points, function (p) {\n return p.series[axis.coll] === axis;\n });\n // Axis has snapping crosshairs, and one of the hover points belongs\n // to axis. Always call drawCrosshair when it is not snap.\n if (point || !snap) {\n axis.drawCrosshair(e, point);\n // Axis has snapping crosshairs, but no hover point belongs to axis\n }\n else {\n axis.hideCrosshair();\n }\n });\n },\n /**\n * Set inactive state to all series that are not currently hovered,\n * or, if `inactiveOtherPoints` is set to true, set inactive state to\n * all points within that series.\n *\n * @function Highcharts.Pointer#applyInactiveState\n *\n * @private\n *\n * @param {Array} points\n * Currently hovered points\n *\n */\n applyInactiveState: function (points) {\n var activeSeries = [], series;\n // Get all active series from the hovered points\n (points || []).forEach(function (item) {\n series = item.series;\n // Include itself\n activeSeries.push(series);\n // Include parent series\n if (series.linkedParent) {\n activeSeries.push(series.linkedParent);\n }\n // Include all child series\n if (series.linkedSeries) {\n activeSeries = activeSeries.concat(series.linkedSeries);\n }\n // Include navigator series\n if (series.navigatorSeries) {\n activeSeries.push(series.navigatorSeries);\n }\n });\n // Now loop over all series, filtering out active series\n this.chart.series.forEach(function (inactiveSeries) {\n if (activeSeries.indexOf(inactiveSeries) === -1) {\n // Inactive series\n inactiveSeries.setState('inactive', true);\n }\n else if (inactiveSeries.options.inactiveOtherPoints) {\n // Active series, but other points should be inactivated\n inactiveSeries.setAllPointsToState('inactive');\n }\n });\n },\n /**\n * Reset the tracking by hiding the tooltip, the hover series state and the\n * hover point\n *\n * @function Highcharts.Pointer#reset\n *\n * @param {boolean} [allowMove]\n * Instead of destroying the tooltip altogether, allow moving it if\n * possible.\n *\n * @param {number} [delay]\n *\n * @return {void}\n */\n reset: function (allowMove, delay) {\n var pointer = this, chart = pointer.chart, hoverSeries = chart.hoverSeries, hoverPoint = chart.hoverPoint, hoverPoints = chart.hoverPoints, tooltip = chart.tooltip, tooltipPoints = tooltip && tooltip.shared ?\n hoverPoints :\n hoverPoint;\n // Check if the points have moved outside the plot area (#1003, #4736,\n // #5101)\n if (allowMove && tooltipPoints) {\n splat(tooltipPoints).forEach(function (point) {\n if (point.series.isCartesian && point.plotX === undefined) {\n allowMove = false;\n }\n });\n }\n // Just move the tooltip, #349\n if (allowMove) {\n if (tooltip && tooltipPoints && splat(tooltipPoints).length) {\n tooltip.refresh(tooltipPoints);\n if (tooltip.shared && hoverPoints) { // #8284\n hoverPoints.forEach(function (point) {\n point.setState(point.state, true);\n if (point.series.isCartesian) {\n if (point.series.xAxis.crosshair) {\n point.series.xAxis\n .drawCrosshair(null, point);\n }\n if (point.series.yAxis.crosshair) {\n point.series.yAxis\n .drawCrosshair(null, point);\n }\n }\n });\n }\n else if (hoverPoint) { // #2500\n hoverPoint.setState(hoverPoint.state, true);\n chart.axes.forEach(function (axis) {\n if (axis.crosshair) {\n axis.drawCrosshair(null, hoverPoint);\n }\n });\n }\n }\n // Full reset\n }\n else {\n if (hoverPoint) {\n hoverPoint.onMouseOut();\n }\n if (hoverPoints) {\n hoverPoints.forEach(function (point) {\n point.setState();\n });\n }\n if (hoverSeries) {\n hoverSeries.onMouseOut();\n }\n if (tooltip) {\n tooltip.hide(delay);\n }\n if (pointer.unDocMouseMove) {\n pointer.unDocMouseMove = pointer.unDocMouseMove();\n }\n // Remove crosshairs\n chart.axes.forEach(function (axis) {\n axis.hideCrosshair();\n });\n pointer.hoverX = chart.hoverPoints = chart.hoverPoint = null;\n }\n },\n /**\n * Scale series groups to a certain scale and translation.\n *\n * @private\n * @function Highcharts.Pointer#scaleGroups\n *\n * @param {Highcharts.SeriesPlotBoxObject} [attribs]\n *\n * @param {boolean} [clip]\n *\n * @return {void}\n */\n scaleGroups: function (attribs, clip) {\n var chart = this.chart, seriesAttribs;\n // Scale each series\n chart.series.forEach(function (series) {\n seriesAttribs = attribs || series.getPlotBox(); // #1701\n if (series.xAxis && series.xAxis.zoomEnabled && series.group) {\n series.group.attr(seriesAttribs);\n if (series.markerGroup) {\n series.markerGroup.attr(seriesAttribs);\n series.markerGroup.clip(clip ? chart.clipRect : null);\n }\n if (series.dataLabelsGroup) {\n series.dataLabelsGroup.attr(seriesAttribs);\n }\n }\n });\n // Clip\n chart.clipRect.attr(clip || chart.clipBox);\n },\n /**\n * Start a drag operation.\n *\n * @private\n * @function Highcharts.Pointer#dragStart\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n dragStart: function (e) {\n var chart = this.chart;\n // Record the start position\n chart.mouseIsDown = e.type;\n chart.cancelClick = false;\n chart.mouseDownX = this.mouseDownX = e.chartX;\n chart.mouseDownY = this.mouseDownY = e.chartY;\n },\n /**\n * Perform a drag operation in response to a mousemove event while the mouse\n * is down.\n *\n * @private\n * @function Highcharts.Pointer#drag\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n drag: function (e) {\n var chart = this.chart, chartOptions = chart.options.chart, chartX = e.chartX, chartY = e.chartY, zoomHor = this.zoomHor, zoomVert = this.zoomVert, plotLeft = chart.plotLeft, plotTop = chart.plotTop, plotWidth = chart.plotWidth, plotHeight = chart.plotHeight, clickedInside, size, selectionMarker = this.selectionMarker, mouseDownX = this.mouseDownX, mouseDownY = this.mouseDownY, panKey = (chartOptions.panKey && e[chartOptions.panKey + 'Key']);\n // If the device supports both touch and mouse (like IE11), and we are\n // touch-dragging inside the plot area, don't handle the mouse event.\n // #4339.\n if (selectionMarker && selectionMarker.touch) {\n return;\n }\n // If the mouse is outside the plot area, adjust to cooordinates\n // inside to prevent the selection marker from going outside\n if (chartX < plotLeft) {\n chartX = plotLeft;\n }\n else if (chartX > plotLeft + plotWidth) {\n chartX = plotLeft + plotWidth;\n }\n if (chartY < plotTop) {\n chartY = plotTop;\n }\n else if (chartY > plotTop + plotHeight) {\n chartY = plotTop + plotHeight;\n }\n // determine if the mouse has moved more than 10px\n this.hasDragged = Math.sqrt(Math.pow(mouseDownX - chartX, 2) +\n Math.pow(mouseDownY - chartY, 2));\n if (this.hasDragged > 10) {\n clickedInside = chart.isInsidePlot(mouseDownX - plotLeft, mouseDownY - plotTop);\n // make a selection\n if (chart.hasCartesianSeries &&\n (this.zoomX || this.zoomY) &&\n clickedInside &&\n !panKey) {\n if (!selectionMarker) {\n this.selectionMarker = selectionMarker =\n chart.renderer.rect(plotLeft, plotTop, zoomHor ? 1 : plotWidth, zoomVert ? 1 : plotHeight, 0)\n .attr({\n 'class': 'highcharts-selection-marker',\n zIndex: 7\n })\n .add();\n if (!chart.styledMode) {\n selectionMarker.attr({\n fill: (chartOptions.selectionMarkerFill ||\n color('#335cad')\n .setOpacity(0.25).get())\n });\n }\n }\n }\n // adjust the width of the selection marker\n if (selectionMarker && zoomHor) {\n size = chartX - mouseDownX;\n selectionMarker.attr({\n width: Math.abs(size),\n x: (size > 0 ? 0 : size) + mouseDownX\n });\n }\n // adjust the height of the selection marker\n if (selectionMarker && zoomVert) {\n size = chartY - mouseDownY;\n selectionMarker.attr({\n height: Math.abs(size),\n y: (size > 0 ? 0 : size) + mouseDownY\n });\n }\n // panning\n if (clickedInside && !selectionMarker && chartOptions.panning) {\n chart.pan(e, chartOptions.panning);\n }\n }\n },\n /**\n * On mouse up or touch end across the entire document, drop the selection.\n *\n * @private\n * @function Highcharts.Pointer#drop\n *\n * @param {global.Event} e\n *\n * @return {void}\n */\n drop: function (e) {\n var pointer = this, chart = this.chart, hasPinched = this.hasPinched;\n if (this.selectionMarker) {\n var selectionData = {\n originalEvent: e,\n xAxis: [],\n yAxis: []\n }, selectionBox = this.selectionMarker, selectionLeft = selectionBox.attr ?\n selectionBox.attr('x') :\n selectionBox.x, selectionTop = selectionBox.attr ?\n selectionBox.attr('y') :\n selectionBox.y, selectionWidth = selectionBox.attr ?\n selectionBox.attr('width') :\n selectionBox.width, selectionHeight = selectionBox.attr ?\n selectionBox.attr('height') :\n selectionBox.height, runZoom;\n // a selection has been made\n if (this.hasDragged || hasPinched) {\n // record each axis' min and max\n chart.axes.forEach(function (axis) {\n if (axis.zoomEnabled &&\n defined(axis.min) &&\n (hasPinched ||\n pointer[{\n xAxis: 'zoomX',\n yAxis: 'zoomY'\n }[axis.coll]])) { // #859, #3569\n var horiz = axis.horiz, minPixelPadding = e.type === 'touchend' ?\n axis.minPixelPadding :\n 0, // #1207, #3075\n selectionMin = axis.toValue((horiz ? selectionLeft : selectionTop) +\n minPixelPadding), selectionMax = axis.toValue((horiz ?\n selectionLeft + selectionWidth :\n selectionTop + selectionHeight) - minPixelPadding);\n selectionData[axis.coll].push({\n axis: axis,\n // Min/max for reversed axes\n min: Math.min(selectionMin, selectionMax),\n max: Math.max(selectionMin, selectionMax)\n });\n runZoom = true;\n }\n });\n if (runZoom) {\n fireEvent(chart, 'selection', selectionData, function (args) {\n chart.zoom(extend(args, hasPinched ?\n { animation: false } :\n null));\n });\n }\n }\n if (isNumber(chart.index)) {\n this.selectionMarker = this.selectionMarker.destroy();\n }\n // Reset scaling preview\n if (hasPinched) {\n this.scaleGroups();\n }\n }\n // Reset all. Check isNumber because it may be destroyed on mouse up\n // (#877)\n if (chart && isNumber(chart.index)) {\n css(chart.container, { cursor: chart._cursor });\n chart.cancelClick = this.hasDragged > 10; // #370\n chart.mouseIsDown = this.hasDragged = this.hasPinched = false;\n this.pinchDown = [];\n }\n },\n /**\n * @private\n * @function Highcharts.Pointer#onContainerMouseDown\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n onContainerMouseDown: function (e) {\n // Normalize before the 'if' for the legacy IE (#7850)\n e = this.normalize(e);\n if (e.button !== 2) {\n this.zoomOption(e);\n // issue #295, dragging not always working in Firefox\n if (e.preventDefault) {\n e.preventDefault();\n }\n this.dragStart(e);\n }\n },\n /**\n * @private\n * @function Highcharts.Pointer#onDocumentMouseUp\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n onDocumentMouseUp: function (e) {\n if (charts[H.hoverChartIndex]) {\n charts[H.hoverChartIndex].pointer.drop(e);\n }\n },\n /**\n * Special handler for mouse move that will hide the tooltip when the mouse\n * leaves the plotarea. Issue #149 workaround. The mouseleave event does not\n * always fire.\n *\n * @private\n * @function Highcharts.Pointer#onDocumentMouseMove\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n onDocumentMouseMove: function (e) {\n var chart = this.chart, chartPosition = this.chartPosition;\n e = this.normalize(e, chartPosition);\n // If we're outside, hide the tooltip\n if (chartPosition &&\n !this.inClass(e.target, 'highcharts-tracker') &&\n !chart.isInsidePlot(e.chartX - chart.plotLeft, e.chartY - chart.plotTop)) {\n this.reset();\n }\n },\n /**\n * When mouse leaves the container, hide the tooltip.\n *\n * @private\n * @function Highcharts.Pointer#onContainerMouseLeave\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n onContainerMouseLeave: function (e) {\n var chart = charts[H.hoverChartIndex];\n // #4886, MS Touch end fires mouseleave but with no related target\n if (chart && (e.relatedTarget || e.toElement)) {\n chart.pointer.reset();\n // Also reset the chart position, used in #149 fix\n chart.pointer.chartPosition = undefined;\n }\n },\n /**\n * The mousemove, touchmove and touchstart event handler\n *\n * @private\n * @function Highcharts.Pointer#onContainerMouseMove\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n onContainerMouseMove: function (e) {\n var chart = this.chart;\n if (!defined(H.hoverChartIndex) ||\n !charts[H.hoverChartIndex] ||\n !charts[H.hoverChartIndex].mouseIsDown) {\n H.hoverChartIndex = chart.index;\n }\n e = this.normalize(e);\n // In IE8 we apparently need this returnValue set to false in order to\n // avoid text being selected. But in Chrome, e.returnValue is prevented,\n // plus we don't need to run e.preventDefault to prevent selected text\n // in modern browsers. So we set it conditionally. Remove it when IE8 is\n // no longer needed. #2251, #3224.\n if (!e.preventDefault) {\n e.returnValue = false;\n }\n if (chart.mouseIsDown === 'mousedown') {\n this.drag(e);\n }\n // Show the tooltip and run mouse over events (#977)\n if ((this.inClass(e.target, 'highcharts-tracker') ||\n chart.isInsidePlot(e.chartX - chart.plotLeft, e.chartY - chart.plotTop)) &&\n !chart.openMenu) {\n this.runPointActions(e);\n }\n },\n /**\n * Utility to detect whether an element has, or has a parent with, a\n * specificclass name. Used on detection of tracker objects and on deciding\n * whether hovering the tooltip should cause the active series to mouse out.\n *\n * @function Highcharts.Pointer#inClass\n *\n * @param {Highcharts.SVGDOMElement|Highcharts.HTMLDOMElement} element\n * The element to investigate.\n *\n * @param {string} className\n * The class name to look for.\n *\n * @return {boolean|undefined}\n * True if either the element or one of its parents has the given\n * class name.\n */\n inClass: function (element, className) {\n var elemClassName;\n while (element) {\n elemClassName = attr(element, 'class');\n if (elemClassName) {\n if (elemClassName.indexOf(className) !== -1) {\n return true;\n }\n if (elemClassName.indexOf('highcharts-container') !== -1) {\n return false;\n }\n }\n element = element.parentNode;\n }\n },\n /**\n * @private\n * @function Highcharts.Pointer#onTrackerMouseOut\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n onTrackerMouseOut: function (e) {\n var series = this.chart.hoverSeries, relatedTarget = e.relatedTarget || e.toElement;\n this.isDirectTouch = false;\n if (series &&\n relatedTarget &&\n !series.stickyTracking &&\n !this.inClass(relatedTarget, 'highcharts-tooltip') &&\n (!this.inClass(relatedTarget, 'highcharts-series-' + series.index) || // #2499, #4465, #5553\n !this.inClass(relatedTarget, 'highcharts-tracker'))) {\n series.onMouseOut();\n }\n },\n /**\n * @private\n * @function Highcharts.Pointer#onContainerClick\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n onContainerClick: function (e) {\n var chart = this.chart, hoverPoint = chart.hoverPoint, plotLeft = chart.plotLeft, plotTop = chart.plotTop;\n e = this.normalize(e);\n if (!chart.cancelClick) {\n // On tracker click, fire the series and point events. #783, #1583\n if (hoverPoint &&\n this.inClass(e.target, 'highcharts-tracker')) {\n // the series click event\n fireEvent(hoverPoint.series, 'click', extend(e, {\n point: hoverPoint\n }));\n // the point click event\n if (chart.hoverPoint) { // it may be destroyed (#1844)\n hoverPoint.firePointEvent('click', e);\n }\n // When clicking outside a tracker, fire a chart event\n }\n else {\n extend(e, this.getCoordinates(e));\n // fire a click event in the chart\n if (chart.isInsidePlot(e.chartX - plotLeft, e.chartY - plotTop)) {\n fireEvent(chart, 'click', e);\n }\n }\n }\n },\n /**\n * Set the JS DOM events on the container and document. This method should\n * contain a one-to-one assignment between methods and their handlers. Any\n * advanced logic should be moved to the handler reflecting the event's\n * name.\n *\n * @private\n * @function Highcharts.Pointer#setDOMEvents\n *\n * @return {void}\n */\n setDOMEvents: function () {\n var pointer = this, container = pointer.chart.container, ownerDoc = container.ownerDocument;\n container.onmousedown = function (e) {\n pointer.onContainerMouseDown(e);\n };\n container.onmousemove = function (e) {\n pointer.onContainerMouseMove(e);\n };\n container.onclick = function (e) {\n pointer.onContainerClick(e);\n };\n this.unbindContainerMouseLeave = addEvent(container, 'mouseleave', pointer.onContainerMouseLeave);\n if (!H.unbindDocumentMouseUp) {\n H.unbindDocumentMouseUp = addEvent(ownerDoc, 'mouseup', pointer.onDocumentMouseUp);\n }\n if (H.hasTouch) {\n addEvent(container, 'touchstart', function (e) {\n pointer.onContainerTouchStart(e);\n });\n addEvent(container, 'touchmove', function (e) {\n pointer.onContainerTouchMove(e);\n });\n if (!H.unbindDocumentTouchEnd) {\n H.unbindDocumentTouchEnd = addEvent(ownerDoc, 'touchend', pointer.onDocumentTouchEnd);\n }\n }\n },\n /**\n * Destroys the Pointer object and disconnects DOM events.\n *\n * @function Highcharts.Pointer#destroy\n *\n * @return {void}\n */\n destroy: function () {\n var pointer = this;\n if (pointer.unDocMouseMove) {\n pointer.unDocMouseMove();\n }\n this.unbindContainerMouseLeave();\n if (!H.chartCount) {\n if (H.unbindDocumentMouseUp) {\n H.unbindDocumentMouseUp = H.unbindDocumentMouseUp();\n }\n if (H.unbindDocumentTouchEnd) {\n H.unbindDocumentTouchEnd = H.unbindDocumentTouchEnd();\n }\n }\n // memory and CPU leak\n clearInterval(pointer.tooltipTimeout);\n objectEach(pointer, function (val, prop) {\n pointer[prop] = null;\n });\n }\n };\n\n });\n _registerModule(_modules, 'parts/TouchPointer.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n var extend = U.extend, pick = U.pick;\n var charts = H.charts, noop = H.noop, Pointer = H.Pointer;\n /* eslint-disable no-invalid-this, valid-jsdoc */\n // Support for touch devices\n extend(Pointer.prototype, /** @lends Pointer.prototype */ {\n /**\n * Run translation operations\n *\n * @private\n * @function Highcharts.Pointer#pinchTranslate\n *\n * @param {Array<*>} pinchDown\n *\n * @param {Array<*>} touches\n *\n * @param {*} transform\n *\n * @param {*} selectionMarker\n *\n * @param {*} clip\n *\n * @param {*} lastValidTouch\n *\n * @return {void}\n */\n pinchTranslate: function (pinchDown, touches, transform, selectionMarker, clip, lastValidTouch) {\n if (this.zoomHor) {\n this.pinchTranslateDirection(true, pinchDown, touches, transform, selectionMarker, clip, lastValidTouch);\n }\n if (this.zoomVert) {\n this.pinchTranslateDirection(false, pinchDown, touches, transform, selectionMarker, clip, lastValidTouch);\n }\n },\n /**\n * Run translation operations for each direction (horizontal and vertical)\n * independently.\n *\n * @private\n * @function Highcharts.Pointer#pinchTranslateDirection\n *\n * @param {boolean} horiz\n *\n * @param {Array<*>} pinchDown\n *\n * @param {Array<*>} touches\n *\n * @param {*} transform\n *\n * @param {*} selectionMarker\n *\n * @param {*} clip\n *\n * @param {*} lastValidTouch\n *\n * @param {number|undefined} [forcedScale=1]\n *\n * @return {void}\n */\n pinchTranslateDirection: function (horiz, pinchDown, touches, transform, selectionMarker, clip, lastValidTouch, forcedScale) {\n var chart = this.chart, xy = horiz ? 'x' : 'y', XY = horiz ? 'X' : 'Y', sChartXY = 'chart' + XY, wh = horiz ? 'width' : 'height', plotLeftTop = chart['plot' + (horiz ? 'Left' : 'Top')], selectionWH, selectionXY, clipXY, scale = forcedScale || 1, inverted = chart.inverted, bounds = chart.bounds[horiz ? 'h' : 'v'], singleTouch = pinchDown.length === 1, touch0Start = pinchDown[0][sChartXY], touch0Now = touches[0][sChartXY], touch1Start = !singleTouch && pinchDown[1][sChartXY], touch1Now = !singleTouch && touches[1][sChartXY], outOfBounds, transformScale, scaleKey, setScale = function () {\n // Don't zoom if fingers are too close on this axis\n if (!singleTouch && Math.abs(touch0Start - touch1Start) > 20) {\n scale = forcedScale ||\n Math.abs(touch0Now - touch1Now) /\n Math.abs(touch0Start - touch1Start);\n }\n clipXY = ((plotLeftTop - touch0Now) / scale) + touch0Start;\n selectionWH = chart['plot' + (horiz ? 'Width' : 'Height')] / scale;\n };\n // Set the scale, first pass\n setScale();\n // The clip position (x or y) is altered if out of bounds, the selection\n // position is not\n selectionXY = clipXY;\n // Out of bounds\n if (selectionXY < bounds.min) {\n selectionXY = bounds.min;\n outOfBounds = true;\n }\n else if (selectionXY + selectionWH > bounds.max) {\n selectionXY = bounds.max - selectionWH;\n outOfBounds = true;\n }\n // Is the chart dragged off its bounds, determined by dataMin and\n // dataMax?\n if (outOfBounds) {\n // Modify the touchNow position in order to create an elastic drag\n // movement. This indicates to the user that the chart is responsive\n // but can't be dragged further.\n touch0Now -= 0.8 * (touch0Now - lastValidTouch[xy][0]);\n if (!singleTouch) {\n touch1Now -= 0.8 * (touch1Now - lastValidTouch[xy][1]);\n }\n // Set the scale, second pass to adapt to the modified touchNow\n // positions\n setScale();\n }\n else {\n lastValidTouch[xy] = [touch0Now, touch1Now];\n }\n // Set geometry for clipping, selection and transformation\n if (!inverted) {\n clip[xy] = clipXY - plotLeftTop;\n clip[wh] = selectionWH;\n }\n scaleKey = inverted ? (horiz ? 'scaleY' : 'scaleX') : 'scale' + XY;\n transformScale = inverted ? 1 / scale : scale;\n selectionMarker[wh] = selectionWH;\n selectionMarker[xy] = selectionXY;\n transform[scaleKey] = scale;\n transform['translate' + XY] = (transformScale * plotLeftTop) +\n (touch0Now - (transformScale * touch0Start));\n },\n /**\n * Handle touch events with two touches\n *\n * @private\n * @function Highcharts.Pointer#pinch\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n pinch: function (e) {\n var self = this, chart = self.chart, pinchDown = self.pinchDown, touches = e.touches, touchesLength = touches.length, lastValidTouch = self.lastValidTouch, hasZoom = self.hasZoom, selectionMarker = self.selectionMarker, transform = {}, fireClickEvent = touchesLength === 1 && ((self.inClass(e.target, 'highcharts-tracker') &&\n chart.runTrackerClick) ||\n self.runChartClick), clip = {};\n // Don't initiate panning until the user has pinched. This prevents us\n // from blocking page scrolling as users scroll down a long page\n // (#4210).\n if (touchesLength > 1) {\n self.initiated = true;\n }\n // On touch devices, only proceed to trigger click if a handler is\n // defined\n if (hasZoom && self.initiated && !fireClickEvent) {\n e.preventDefault();\n }\n // Normalize each touch\n [].map.call(touches, function (e) {\n return self.normalize(e);\n });\n // Register the touch start position\n if (e.type === 'touchstart') {\n [].forEach.call(touches, function (e, i) {\n pinchDown[i] = { chartX: e.chartX, chartY: e.chartY };\n });\n lastValidTouch.x = [pinchDown[0].chartX, pinchDown[1] &&\n pinchDown[1].chartX];\n lastValidTouch.y = [pinchDown[0].chartY, pinchDown[1] &&\n pinchDown[1].chartY];\n // Identify the data bounds in pixels\n chart.axes.forEach(function (axis) {\n if (axis.zoomEnabled) {\n var bounds = chart.bounds[axis.horiz ? 'h' : 'v'], minPixelPadding = axis.minPixelPadding, min = axis.toPixels(Math.min(pick(axis.options.min, axis.dataMin), axis.dataMin)), max = axis.toPixels(Math.max(pick(axis.options.max, axis.dataMax), axis.dataMax)), absMin = Math.min(min, max), absMax = Math.max(min, max);\n // Store the bounds for use in the touchmove handler\n bounds.min = Math.min(axis.pos, absMin - minPixelPadding);\n bounds.max = Math.max(axis.pos + axis.len, absMax + minPixelPadding);\n }\n });\n self.res = true; // reset on next move\n // Optionally move the tooltip on touchmove\n }\n else if (self.followTouchMove && touchesLength === 1) {\n this.runPointActions(self.normalize(e));\n // Event type is touchmove, handle panning and pinching\n }\n else if (pinchDown.length) { // can be 0 when releasing, if touchend\n // fires first\n // Set the marker\n if (!selectionMarker) {\n self.selectionMarker = selectionMarker = extend({\n destroy: noop,\n touch: true\n }, chart.plotBox);\n }\n self.pinchTranslate(pinchDown, touches, transform, selectionMarker, clip, lastValidTouch);\n self.hasPinched = hasZoom;\n // Scale and translate the groups to provide visual feedback during\n // pinching\n self.scaleGroups(transform, clip);\n if (self.res) {\n self.res = false;\n this.reset(false, 0);\n }\n }\n },\n /**\n * General touch handler shared by touchstart and touchmove.\n *\n * @private\n * @function Highcharts.Pointer#touch\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @param {boolean} [start]\n *\n * @return {void}\n */\n touch: function (e, start) {\n var chart = this.chart, hasMoved, pinchDown, isInside;\n if (chart.index !== H.hoverChartIndex) {\n this.onContainerMouseLeave({ relatedTarget: true });\n }\n H.hoverChartIndex = chart.index;\n if (e.touches.length === 1) {\n e = this.normalize(e);\n isInside = chart.isInsidePlot(e.chartX - chart.plotLeft, e.chartY - chart.plotTop);\n if (isInside && !chart.openMenu) {\n // Run mouse events and display tooltip etc\n if (start) {\n this.runPointActions(e);\n }\n // Android fires touchmove events after the touchstart even if\n // the finger hasn't moved, or moved only a pixel or two. In iOS\n // however, the touchmove doesn't fire unless the finger moves\n // more than ~4px. So we emulate this behaviour in Android by\n // checking how much it moved, and cancelling on small\n // distances. #3450.\n if (e.type === 'touchmove') {\n pinchDown = this.pinchDown;\n hasMoved = pinchDown[0] ? Math.sqrt(// #5266\n Math.pow(pinchDown[0].chartX - e.chartX, 2) +\n Math.pow(pinchDown[0].chartY - e.chartY, 2)) >= 4 : false;\n }\n if (pick(hasMoved, true)) {\n this.pinch(e);\n }\n }\n else if (start) {\n // Hide the tooltip on touching outside the plot area (#1203)\n this.reset();\n }\n }\n else if (e.touches.length === 2) {\n this.pinch(e);\n }\n },\n /**\n * @private\n * @function Highcharts.Pointer#onContainerTouchStart\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n onContainerTouchStart: function (e) {\n this.zoomOption(e);\n this.touch(e, true);\n },\n /**\n * @private\n * @function Highcharts.Pointer#onContainerTouchMove\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n onContainerTouchMove: function (e) {\n this.touch(e);\n },\n /**\n * @private\n * @function Highcharts.Pointer#onDocumentTouchEnd\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n onDocumentTouchEnd: function (e) {\n if (charts[H.hoverChartIndex]) {\n charts[H.hoverChartIndex].pointer.drop(e);\n }\n }\n });\n\n });\n _registerModule(_modules, 'parts/MSPointer.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /* globals MSPointerEvent, PointerEvent */\n var extend = U.extend, objectEach = U.objectEach;\n var addEvent = H.addEvent, charts = H.charts, css = H.css, doc = H.doc, hasTouch = H.hasTouch, noop = H.noop, Pointer = H.Pointer, removeEvent = H.removeEvent, win = H.win, wrap = H.wrap;\n if (!hasTouch && (win.PointerEvent || win.MSPointerEvent)) {\n // The touches object keeps track of the points being touched at all times\n var touches = {}, hasPointerEvent = !!win.PointerEvent, getWebkitTouches = function () {\n var fake = [];\n fake.item = function (i) {\n return this[i];\n };\n objectEach(touches, function (touch) {\n fake.push({\n pageX: touch.pageX,\n pageY: touch.pageY,\n target: touch.target\n });\n });\n return fake;\n }, translateMSPointer = function (e, method, wktype, func) {\n var p;\n if ((e.pointerType === 'touch' ||\n e.pointerType === e.MSPOINTER_TYPE_TOUCH) && charts[H.hoverChartIndex]) {\n func(e);\n p = charts[H.hoverChartIndex].pointer;\n p[method]({\n type: wktype,\n target: e.currentTarget,\n preventDefault: noop,\n touches: getWebkitTouches()\n });\n }\n };\n /* eslint-disable no-invalid-this, valid-jsdoc */\n // Extend the Pointer prototype with methods for each event handler and more\n extend(Pointer.prototype, /** @lends Pointer.prototype */ {\n /**\n * @private\n * @function Highcharts.Pointer#onContainerPointerDown\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n onContainerPointerDown: function (e) {\n translateMSPointer(e, 'onContainerTouchStart', 'touchstart', function (e) {\n touches[e.pointerId] = {\n pageX: e.pageX,\n pageY: e.pageY,\n target: e.currentTarget\n };\n });\n },\n /**\n * @private\n * @function Highcharts.Pointer#onContainerPointerMove\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n onContainerPointerMove: function (e) {\n translateMSPointer(e, 'onContainerTouchMove', 'touchmove', function (e) {\n touches[e.pointerId] = ({ pageX: e.pageX, pageY: e.pageY });\n if (!touches[e.pointerId].target) {\n touches[e.pointerId].target = e.currentTarget;\n }\n });\n },\n /**\n * @private\n * @function Highcharts.Pointer#onDocumentPointerUp\n *\n * @param {Highcharts.PointerEventObject} e\n *\n * @return {void}\n */\n onDocumentPointerUp: function (e) {\n translateMSPointer(e, 'onDocumentTouchEnd', 'touchend', function (e) {\n delete touches[e.pointerId];\n });\n },\n /**\n * Add or remove the MS Pointer specific events\n *\n * @private\n * @function Highcharts.Pointer#batchMSEvents\n *\n * @param {Function} fn\n *\n * @return {void}\n */\n batchMSEvents: function (fn) {\n fn(this.chart.container, hasPointerEvent ? 'pointerdown' : 'MSPointerDown', this.onContainerPointerDown);\n fn(this.chart.container, hasPointerEvent ? 'pointermove' : 'MSPointerMove', this.onContainerPointerMove);\n fn(doc, hasPointerEvent ? 'pointerup' : 'MSPointerUp', this.onDocumentPointerUp);\n }\n });\n // Disable default IE actions for pinch and such on chart element\n wrap(Pointer.prototype, 'init', function (proceed, chart, options) {\n proceed.call(this, chart, options);\n if (this.hasZoom) { // #4014\n css(chart.container, {\n '-ms-touch-action': 'none',\n 'touch-action': 'none'\n });\n }\n });\n // Add IE specific touch events to chart\n wrap(Pointer.prototype, 'setDOMEvents', function (proceed) {\n proceed.apply(this);\n if (this.hasZoom || this.followTouchMove) {\n this.batchMSEvents(addEvent);\n }\n });\n // Destroy MS events also\n wrap(Pointer.prototype, 'destroy', function (proceed) {\n this.batchMSEvents(removeEvent);\n proceed.call(this);\n });\n }\n\n });\n _registerModule(_modules, 'parts/Legend.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (Highcharts, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * Gets fired when the legend item belonging to a point is clicked. The default\n * action is to toggle the visibility of the point. This can be prevented by\n * returning `false` or calling `event.preventDefault()`.\n *\n * @callback Highcharts.PointLegendItemClickCallbackFunction\n *\n * @param {Highcharts.Point} this\n * The point on which the event occured.\n *\n * @param {Highcharts.PointLegendItemClickEventObject} event\n * The event that occured.\n */\n /**\n * Information about the legend click event.\n *\n * @interface Highcharts.PointLegendItemClickEventObject\n */ /**\n * Related browser event.\n * @name Highcharts.PointLegendItemClickEventObject#browserEvent\n * @type {Highcharts.PointerEvent}\n */ /**\n * Prevent the default action of toggle the visibility of the point.\n * @name Highcharts.PointLegendItemClickEventObject#preventDefault\n * @type {Function}\n */ /**\n * Related point.\n * @name Highcharts.PointLegendItemClickEventObject#target\n * @type {Highcharts.Point}\n */ /**\n * Event type.\n * @name Highcharts.PointLegendItemClickEventObject#type\n * @type {\"legendItemClick\"}\n */\n /* *\n * @interface Highcharts.PointOptionsObject in parts/Point.ts\n */ /**\n * The sequential index of the data point in the legend.\n * @name Highcharts.PointOptionsObject#legendIndex\n * @type {number|undefined}\n */\n /**\n * Gets fired when the legend item belonging to a series is clicked. The default\n * action is to toggle the visibility of the series. This can be prevented by\n * returning `false` or calling `event.preventDefault()`.\n *\n * @callback Highcharts.SeriesLegendItemClickCallbackFunction\n *\n * @param {Highcharts.Series} this\n * The series where the event occured.\n *\n * @param {Highcharts.SeriesLegendItemClickEventObject} event\n * The event that occured.\n */\n /**\n * Information about the legend click event.\n *\n * @interface Highcharts.SeriesLegendItemClickEventObject\n */ /**\n * Related browser event.\n * @name Highcharts.SeriesLegendItemClickEventObject#browserEvent\n * @type {Highcharts.PointerEvent}\n */ /**\n * Prevent the default action of toggle the visibility of the series.\n * @name Highcharts.SeriesLegendItemClickEventObject#preventDefault\n * @type {Function}\n */ /**\n * Related series.\n * @name Highcharts.SeriesLegendItemClickEventObject#target\n * @type {Highcharts.Series}\n */ /**\n * Event type.\n * @name Highcharts.SeriesLegendItemClickEventObject#type\n * @type {\"legendItemClick\"}\n */\n var defined = U.defined, discardElement = U.discardElement, isNumber = U.isNumber, pick = U.pick, setAnimation = U.setAnimation;\n var H = Highcharts, addEvent = H.addEvent, css = H.css, fireEvent = H.fireEvent, isFirefox = H.isFirefox, marginNames = H.marginNames, merge = H.merge, stableSort = H.stableSort, win = H.win, wrap = H.wrap;\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * The overview of the chart's series. The legend object is instanciated\n * internally in the chart constructor, and is available from the `chart.legend`\n * property. Each chart has only one legend.\n *\n * @class\n * @name Highcharts.Legend\n *\n * @param {Highcharts.Chart} chart\n * The chart instance.\n *\n * @param {Highcharts.LegendOptions} options\n * Legend options.\n */\n Highcharts.Legend = function (chart, options) {\n this.init(chart, options);\n };\n Highcharts.Legend.prototype = {\n /**\n * Initialize the legend.\n *\n * @private\n * @function Highcharts.Legend#init\n *\n * @param {Highcharts.Chart} chart\n * The chart instance.\n *\n * @param {Highcharts.LegendOptions} options\n * Legend options.\n *\n * @return {void}\n */\n init: function (chart, options) {\n /**\n * Chart of this legend.\n *\n * @readonly\n * @name Highcharts.Legend#chart\n * @type {Highcharts.Chart}\n */\n this.chart = chart;\n this.setOptions(options);\n if (options.enabled) {\n // Render it\n this.render();\n // move checkboxes\n addEvent(this.chart, 'endResize', function () {\n this.legend.positionCheckboxes();\n });\n if (this.proximate) {\n this.unchartrender = addEvent(this.chart, 'render', function () {\n this.legend.proximatePositions();\n this.legend.positionItems();\n });\n }\n else if (this.unchartrender) {\n this.unchartrender();\n }\n }\n },\n /**\n * @private\n * @function Highcharts.Legend#setOptions\n * @param {Highcharts.LegendOptions} options\n * @return {void}\n */\n setOptions: function (options) {\n var padding = pick(options.padding, 8);\n /**\n * Legend options.\n *\n * @readonly\n * @name Highcharts.Legend#options\n * @type {Highcharts.LegendOptions}\n */\n this.options = options;\n if (!this.chart.styledMode) {\n this.itemStyle = options.itemStyle;\n this.itemHiddenStyle = merge(this.itemStyle, options.itemHiddenStyle);\n }\n this.itemMarginTop = options.itemMarginTop || 0;\n this.itemMarginBottom = options.itemMarginBottom || 0;\n this.padding = padding;\n this.initialItemY = padding - 5; // 5 is pixels above the text\n this.symbolWidth = pick(options.symbolWidth, 16);\n this.pages = [];\n this.proximate = options.layout === 'proximate' && !this.chart.inverted;\n },\n /**\n * Update the legend with new options. Equivalent to running `chart.update`\n * with a legend configuration option.\n *\n * @sample highcharts/legend/legend-update/\n * Legend update\n *\n * @function Highcharts.Legend#update\n *\n * @param {Highcharts.LegendOptions} options\n * Legend options.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after the axis is altered. If doing\n * more operations on the chart, it is a good idea to set redraw to\n * false and call {@link Chart#redraw} after.\n * Whether to redraw the chart.\n *\n * @return {void}\n *\n * @fires Highcharts.Legends#event:afterUpdate\n */\n update: function (options, redraw) {\n var chart = this.chart;\n this.setOptions(merge(true, this.options, options));\n this.destroy();\n chart.isDirtyLegend = chart.isDirtyBox = true;\n if (pick(redraw, true)) {\n chart.redraw();\n }\n fireEvent(this, 'afterUpdate');\n },\n /**\n * Set the colors for the legend item.\n *\n * @private\n * @function Highcharts.Legend#colorizeItem\n * @param {Highcharts.BubbleLegend|Highcharts.Point|Highcharts.Series} item\n * A Series or Point instance\n * @param {boolean} [visible=false]\n * Dimmed or colored\n * @return {void}\n *\n * @todo\n * Make events official: Fires the event `afterColorizeItem`.\n */\n colorizeItem: function (item, visible) {\n item.legendGroup[visible ? 'removeClass' : 'addClass']('highcharts-legend-item-hidden');\n if (!this.chart.styledMode) {\n var legend = this, options = legend.options, legendItem = item.legendItem, legendLine = item.legendLine, legendSymbol = item.legendSymbol, hiddenColor = legend.itemHiddenStyle.color, textColor = visible ?\n options.itemStyle.color :\n hiddenColor, symbolColor = visible ?\n (item.color || hiddenColor) :\n hiddenColor, markerOptions = item.options && item.options.marker, symbolAttr = { fill: symbolColor };\n if (legendItem) {\n legendItem.css({\n fill: textColor,\n color: textColor // #1553, oldIE\n });\n }\n if (legendLine) {\n legendLine.attr({ stroke: symbolColor });\n }\n if (legendSymbol) {\n // Apply marker options\n if (markerOptions && legendSymbol.isMarker) { // #585\n symbolAttr = item.pointAttribs();\n if (!visible) {\n // #6769\n symbolAttr.stroke = symbolAttr.fill = hiddenColor;\n }\n }\n legendSymbol.attr(symbolAttr);\n }\n }\n fireEvent(this, 'afterColorizeItem', { item: item, visible: visible });\n },\n /**\n * @private\n * @function Highcharts.Legend#positionItems\n * @return {void}\n */\n positionItems: function () {\n // Now that the legend width and height are established, put the items\n // in the final position\n this.allItems.forEach(this.positionItem, this);\n if (!this.chart.isResizing) {\n this.positionCheckboxes();\n }\n },\n /**\n * Position the legend item.\n *\n * @private\n * @function Highcharts.Legend#positionItem\n * @param {Highcharts.BubbleLegend|Highcharts.Point|Highcharts.Series} item\n * The item to position\n * @return {void}\n */\n positionItem: function (item) {\n var legend = this, options = legend.options, symbolPadding = options.symbolPadding, ltr = !options.rtl, legendItemPos = item._legendItemPos, itemX = legendItemPos[0], itemY = legendItemPos[1], checkbox = item.checkbox, legendGroup = item.legendGroup;\n if (legendGroup && legendGroup.element) {\n legendGroup[defined(legendGroup.translateY) ? 'animate' : 'attr']({\n translateX: ltr ?\n itemX :\n legend.legendWidth - itemX - 2 * symbolPadding - 4,\n translateY: itemY\n });\n }\n if (checkbox) {\n checkbox.x = itemX;\n checkbox.y = itemY;\n }\n },\n /**\n * Destroy a single legend item, used internally on removing series items.\n *\n * @private\n * @function Highcharts.Legend#destroyItem\n * @param {Highcharts.BubbleLegend|Highcharts.Point|Highcharts.Series} item\n * The item to remove\n * @return {void}\n */\n destroyItem: function (item) {\n var checkbox = item.checkbox;\n // destroy SVG elements\n ['legendItem', 'legendLine', 'legendSymbol', 'legendGroup'].forEach(function (key) {\n if (item[key]) {\n item[key] = item[key].destroy();\n }\n });\n if (checkbox) {\n discardElement(item.checkbox);\n }\n },\n /**\n * Destroy the legend. Used internally. To reflow objects, `chart.redraw`\n * must be called after destruction.\n *\n * @private\n * @function Highcharts.Legend#destroy\n * @return {void}\n */\n destroy: function () {\n /**\n * @private\n * @param {string} key\n * @return {void}\n */\n function destroyItems(key) {\n if (this[key]) {\n this[key] = this[key].destroy();\n }\n }\n // Destroy items\n this.getAllItems().forEach(function (item) {\n ['legendItem', 'legendGroup'].forEach(destroyItems, item);\n });\n // Destroy legend elements\n [\n 'clipRect',\n 'up',\n 'down',\n 'pager',\n 'nav',\n 'box',\n 'title',\n 'group'\n ].forEach(destroyItems, this);\n this.display = null; // Reset in .render on update.\n },\n /**\n * Position the checkboxes after the width is determined.\n *\n * @private\n * @function Highcharts.Legend#positionCheckboxes\n * @return {void}\n */\n positionCheckboxes: function () {\n var alignAttr = this.group && this.group.alignAttr, translateY, clipHeight = this.clipHeight || this.legendHeight, titleHeight = this.titleHeight;\n if (alignAttr) {\n translateY = alignAttr.translateY;\n this.allItems.forEach(function (item) {\n var checkbox = item.checkbox, top;\n if (checkbox) {\n top = translateY + titleHeight + checkbox.y +\n (this.scrollOffset || 0) + 3;\n css(checkbox, {\n left: (alignAttr.translateX + item.checkboxOffset +\n checkbox.x - 20) + 'px',\n top: top + 'px',\n display: this.proximate || (top > translateY - 6 &&\n top < translateY + clipHeight - 6) ?\n '' :\n 'none'\n });\n }\n }, this);\n }\n },\n /**\n * Render the legend title on top of the legend.\n *\n * @private\n * @function Highcharts.Legend#renderTitle\n * @return {void}\n */\n renderTitle: function () {\n var options = this.options, padding = this.padding, titleOptions = options.title, titleHeight = 0, bBox;\n if (titleOptions.text) {\n if (!this.title) {\n /**\n * SVG element of the legend title.\n *\n * @readonly\n * @name Highcharts.Legend#title\n * @type {Highcharts.SVGElement}\n */\n this.title = this.chart.renderer.label(titleOptions.text, padding - 3, padding - 4, null, null, null, options.useHTML, null, 'legend-title')\n .attr({ zIndex: 1 });\n if (!this.chart.styledMode) {\n this.title.css(titleOptions.style);\n }\n this.title.add(this.group);\n }\n // Set the max title width (#7253)\n if (!titleOptions.width) {\n this.title.css({\n width: this.maxLegendWidth + 'px'\n });\n }\n bBox = this.title.getBBox();\n titleHeight = bBox.height;\n this.offsetWidth = bBox.width; // #1717\n this.contentGroup.attr({ translateY: titleHeight });\n }\n this.titleHeight = titleHeight;\n },\n /**\n * Set the legend item text.\n *\n * @function Highcharts.Legend#setText\n *\n * @param {Highcharts.Point|Highcharts.Series} item\n * The item for which to update the text in the legend.\n *\n * @return {void}\n */\n setText: function (item) {\n var options = this.options;\n item.legendItem.attr({\n text: options.labelFormat ?\n H.format(options.labelFormat, item, this.chart.time) :\n options.labelFormatter.call(item)\n });\n },\n /**\n * Render a single specific legend item. Called internally from the `render`\n * function.\n *\n * @private\n * @function Highcharts.Legend#renderItem\n *\n * @param {Highcharts.BubbleLegend|Highcharts.Point|Highcharts.Series} item\n * The item to render.\n *\n * @return {void}\n */\n renderItem: function (item) {\n var legend = this, chart = legend.chart, renderer = chart.renderer, options = legend.options, horizontal = options.layout === 'horizontal', symbolWidth = legend.symbolWidth, symbolPadding = options.symbolPadding, itemStyle = legend.itemStyle, itemHiddenStyle = legend.itemHiddenStyle, itemDistance = horizontal ? pick(options.itemDistance, 20) : 0, ltr = !options.rtl, bBox, li = item.legendItem, isSeries = !item.series, series = !isSeries && item.series.drawLegendSymbol ?\n item.series :\n item, seriesOptions = series.options, showCheckbox = legend.createCheckboxForItem &&\n seriesOptions &&\n seriesOptions.showCheckbox, \n // full width minus text width\n itemExtraWidth = symbolWidth + symbolPadding +\n itemDistance + (showCheckbox ? 20 : 0), useHTML = options.useHTML, itemClassName = item.options.className;\n if (!li) { // generate it once, later move it\n // Generate the group box, a group to hold the symbol and text. Text\n // is to be appended in Legend class.\n item.legendGroup = renderer\n .g('legend-item')\n .addClass('highcharts-' + series.type + '-series ' +\n 'highcharts-color-' + item.colorIndex +\n (itemClassName ? ' ' + itemClassName : '') +\n (isSeries ?\n ' highcharts-series-' + item.index :\n ''))\n .attr({ zIndex: 1 })\n .add(legend.scrollGroup);\n // Generate the list item text and add it to the group\n item.legendItem = li = renderer.text('', ltr ?\n symbolWidth + symbolPadding :\n -symbolPadding, legend.baseline || 0, useHTML);\n if (!chart.styledMode) {\n // merge to prevent modifying original (#1021)\n li.css(merge(item.visible ?\n itemStyle :\n itemHiddenStyle));\n }\n li\n .attr({\n align: ltr ? 'left' : 'right',\n zIndex: 2\n })\n .add(item.legendGroup);\n // Get the baseline for the first item - the font size is equal for\n // all\n if (!legend.baseline) {\n legend.fontMetrics = renderer.fontMetrics(chart.styledMode ? 12 : itemStyle.fontSize, li);\n legend.baseline =\n legend.fontMetrics.f + 3 + legend.itemMarginTop;\n li.attr('y', legend.baseline);\n }\n // Draw the legend symbol inside the group box\n legend.symbolHeight =\n options.symbolHeight || legend.fontMetrics.f;\n series.drawLegendSymbol(legend, item);\n if (legend.setItemEvents) {\n legend.setItemEvents(item, li, useHTML);\n }\n }\n // Add the HTML checkbox on top\n if (showCheckbox && !item.checkbox) {\n legend.createCheckboxForItem(item);\n }\n // Colorize the items\n legend.colorizeItem(item, item.visible);\n // Take care of max width and text overflow (#6659)\n if (chart.styledMode || !itemStyle.width) {\n li.css({\n width: (options.itemWidth ||\n legend.widthOption ||\n chart.spacingBox.width) - itemExtraWidth\n });\n }\n // Always update the text\n legend.setText(item);\n // calculate the positions for the next line\n bBox = li.getBBox();\n item.itemWidth = item.checkboxOffset =\n options.itemWidth ||\n item.legendItemWidth ||\n bBox.width + itemExtraWidth;\n legend.maxItemWidth = Math.max(legend.maxItemWidth, item.itemWidth);\n legend.totalItemWidth += item.itemWidth;\n legend.itemHeight = item.itemHeight = Math.round(item.legendItemHeight || bBox.height || legend.symbolHeight);\n },\n /**\n * Get the position of the item in the layout. We now know the\n * maxItemWidth from the previous loop.\n *\n * @private\n * @function Highcharts.Legend#layoutItem\n *\n * @param {Highcharts.BubbleLegend|Highcharts.Point|Highcharts.Series} item\n *\n * @return {void}\n */\n layoutItem: function (item) {\n var options = this.options, padding = this.padding, horizontal = options.layout === 'horizontal', itemHeight = item.itemHeight, itemMarginBottom = this.itemMarginBottom, itemMarginTop = this.itemMarginTop, itemDistance = horizontal ? pick(options.itemDistance, 20) : 0, maxLegendWidth = this.maxLegendWidth, itemWidth = (options.alignColumns &&\n this.totalItemWidth > maxLegendWidth) ?\n this.maxItemWidth :\n item.itemWidth;\n // If the item exceeds the width, start a new line\n if (horizontal &&\n this.itemX - padding + itemWidth > maxLegendWidth) {\n this.itemX = padding;\n if (this.lastLineHeight) { // Not for the first line (#10167)\n this.itemY += (itemMarginTop +\n this.lastLineHeight +\n itemMarginBottom);\n }\n this.lastLineHeight = 0; // reset for next line (#915, #3976)\n }\n // Set the edge positions\n this.lastItemY = itemMarginTop + this.itemY + itemMarginBottom;\n this.lastLineHeight = Math.max(// #915\n itemHeight, this.lastLineHeight);\n // cache the position of the newly generated or reordered items\n item._legendItemPos = [this.itemX, this.itemY];\n // advance\n if (horizontal) {\n this.itemX += itemWidth;\n }\n else {\n this.itemY +=\n itemMarginTop + itemHeight + itemMarginBottom;\n this.lastLineHeight = itemHeight;\n }\n // the width of the widest item\n this.offsetWidth = this.widthOption || Math.max((horizontal ? this.itemX - padding - (item.checkbox ?\n // decrease by itemDistance only when no checkbox #4853\n 0 :\n itemDistance) : itemWidth) + padding, this.offsetWidth);\n },\n /**\n * Get all items, which is one item per series for most series and one\n * item per point for pie series and its derivatives. Fires the event\n * `afterGetAllItems`.\n *\n * @private\n * @function Highcharts.Legend#getAllItems\n * @return {Array<(Highcharts.BubbleLegend|Highcharts.Point|Highcharts.Series)>}\n * The current items in the legend.\n * @fires Highcharts.Legend#event:afterGetAllItems\n */\n getAllItems: function () {\n var allItems = [];\n this.chart.series.forEach(function (series) {\n var seriesOptions = series && series.options;\n // Handle showInLegend. If the series is linked to another series,\n // defaults to false.\n if (series && pick(seriesOptions.showInLegend, !defined(seriesOptions.linkedTo) ? undefined : false, true)) {\n // Use points or series for the legend item depending on\n // legendType\n allItems = allItems.concat(series.legendItems ||\n (seriesOptions.legendType === 'point' ?\n series.data :\n series));\n }\n });\n fireEvent(this, 'afterGetAllItems', { allItems: allItems });\n return allItems;\n },\n /**\n * Get a short, three letter string reflecting the alignment and layout.\n *\n * @private\n * @function Highcharts.Legend#getAlignment\n *\n * @return {string}\n * The alignment, empty string if floating\n */\n getAlignment: function () {\n var options = this.options;\n // Use the first letter of each alignment option in order to detect\n // the side. (#4189 - use charAt(x) notation instead of [x] for IE7)\n if (this.proximate) {\n return options.align.charAt(0) + 'tv';\n }\n return options.floating ? '' : (options.align.charAt(0) +\n options.verticalAlign.charAt(0) +\n options.layout.charAt(0));\n },\n /**\n * Adjust the chart margins by reserving space for the legend on only one\n * side of the chart. If the position is set to a corner, top or bottom is\n * reserved for horizontal legends and left or right for vertical ones.\n *\n * @private\n * @function Highcharts.Legend#adjustMargins\n * @param {Array} margin\n * @param {Array} spacing\n * @return {void}\n */\n adjustMargins: function (margin, spacing) {\n var chart = this.chart, options = this.options, alignment = this.getAlignment();\n if (alignment) {\n ([\n /(lth|ct|rth)/,\n /(rtv|rm|rbv)/,\n /(rbh|cb|lbh)/,\n /(lbv|lm|ltv)/\n ]).forEach(function (alignments, side) {\n if (alignments.test(alignment) && !defined(margin[side])) {\n // Now we have detected on which side of the chart we should\n // reserve space for the legend\n chart[marginNames[side]] = Math.max(chart[marginNames[side]], (chart.legend[(side + 1) % 2 ? 'legendHeight' : 'legendWidth'] +\n [1, -1, -1, 1][side] * options[(side % 2) ? 'x' : 'y'] +\n pick(options.margin, 12) +\n spacing[side] +\n (chart.titleOffset[side] || 0)));\n }\n });\n }\n },\n /**\n * @private\n * @function Highcharts.Legend#proximatePositions\n * @return {void}\n */\n proximatePositions: function () {\n var chart = this.chart, boxes = [], alignLeft = this.options.align === 'left';\n this.allItems.forEach(function (item) {\n var lastPoint, height, useFirstPoint = alignLeft, target, top;\n if (item.yAxis && item.points) {\n if (item.xAxis.options.reversed) {\n useFirstPoint = !useFirstPoint;\n }\n lastPoint = H.find(useFirstPoint ?\n item.points :\n item.points.slice(0).reverse(), function (item) {\n return isNumber(item.plotY);\n });\n height = this.itemMarginTop +\n item.legendItem.getBBox().height +\n this.itemMarginBottom;\n top = item.yAxis.top - chart.plotTop;\n if (item.visible) {\n target = lastPoint ?\n lastPoint.plotY :\n item.yAxis.height;\n target += top - 0.3 * height;\n }\n else {\n target = top + item.yAxis.height;\n }\n boxes.push({\n target: target,\n size: height,\n item: item\n });\n }\n }, this);\n H.distribute(boxes, chart.plotHeight);\n boxes.forEach(function (box) {\n box.item._legendItemPos[1] =\n chart.plotTop - chart.spacing[0] + box.pos;\n });\n },\n /**\n * Render the legend. This method can be called both before and after\n * `chart.render`. If called after, it will only rearrange items instead\n * of creating new ones. Called internally on initial render and after\n * redraws.\n *\n * @private\n * @function Highcharts.Legend#render\n * @return {void}\n */\n render: function () {\n var legend = this, chart = legend.chart, renderer = chart.renderer, legendGroup = legend.group, allItems, display, legendWidth, legendHeight, box = legend.box, options = legend.options, padding = legend.padding, allowedWidth;\n legend.itemX = padding;\n legend.itemY = legend.initialItemY;\n legend.offsetWidth = 0;\n legend.lastItemY = 0;\n legend.widthOption = H.relativeLength(options.width, chart.spacingBox.width - padding);\n // Compute how wide the legend is allowed to be\n allowedWidth =\n chart.spacingBox.width - 2 * padding - options.x;\n if (['rm', 'lm'].indexOf(legend.getAlignment().substring(0, 2)) > -1) {\n allowedWidth /= 2;\n }\n legend.maxLegendWidth = legend.widthOption || allowedWidth;\n if (!legendGroup) {\n /**\n * SVG group of the legend.\n *\n * @readonly\n * @name Highcharts.Legend#group\n * @type {Highcharts.SVGElement}\n */\n legend.group = legendGroup = renderer.g('legend')\n .attr({ zIndex: 7 })\n .add();\n legend.contentGroup = renderer.g()\n .attr({ zIndex: 1 }) // above background\n .add(legendGroup);\n legend.scrollGroup = renderer.g()\n .add(legend.contentGroup);\n }\n legend.renderTitle();\n // add each series or point\n allItems = legend.getAllItems();\n // sort by legendIndex\n stableSort(allItems, function (a, b) {\n return ((a.options && a.options.legendIndex) || 0) -\n ((b.options && b.options.legendIndex) || 0);\n });\n // reversed legend\n if (options.reversed) {\n allItems.reverse();\n }\n /**\n * All items for the legend, which is an array of series for most series\n * and an array of points for pie series and its derivatives.\n *\n * @readonly\n * @name Highcharts.Legend#allItems\n * @type {Array<(Highcharts.Point|Highcharts.Series)>}\n */\n legend.allItems = allItems;\n legend.display = display = !!allItems.length;\n // Render the items. First we run a loop to set the text and properties\n // and read all the bounding boxes. The next loop computes the item\n // positions based on the bounding boxes.\n legend.lastLineHeight = 0;\n legend.maxItemWidth = 0;\n legend.totalItemWidth = 0;\n legend.itemHeight = 0;\n allItems.forEach(legend.renderItem, legend);\n allItems.forEach(legend.layoutItem, legend);\n // Get the box\n legendWidth = (legend.widthOption || legend.offsetWidth) + padding;\n legendHeight = legend.lastItemY + legend.lastLineHeight +\n legend.titleHeight;\n legendHeight = legend.handleOverflow(legendHeight);\n legendHeight += padding;\n // Draw the border and/or background\n if (!box) {\n /**\n * SVG element of the legend box.\n *\n * @readonly\n * @name Highcharts.Legend#box\n * @type {Highcharts.SVGElement}\n */\n legend.box = box = renderer.rect()\n .addClass('highcharts-legend-box')\n .attr({\n r: options.borderRadius\n })\n .add(legendGroup);\n box.isNew = true;\n }\n // Presentational\n if (!chart.styledMode) {\n box\n .attr({\n stroke: options.borderColor,\n 'stroke-width': options.borderWidth || 0,\n fill: options.backgroundColor || 'none'\n })\n .shadow(options.shadow);\n }\n if (legendWidth > 0 && legendHeight > 0) {\n box[box.isNew ? 'attr' : 'animate'](box.crisp.call({}, {\n x: 0,\n y: 0,\n width: legendWidth,\n height: legendHeight\n }, box.strokeWidth()));\n box.isNew = false;\n }\n // hide the border if no items\n box[display ? 'show' : 'hide']();\n // Open for responsiveness\n if (chart.styledMode && legendGroup.getStyle('display') === 'none') {\n legendWidth = legendHeight = 0;\n }\n legend.legendWidth = legendWidth;\n legend.legendHeight = legendHeight;\n if (display) {\n // If aligning to the top and the layout is horizontal, adjust for\n // the title (#7428)\n var alignTo = chart.spacingBox;\n var y = alignTo.y;\n if (/(lth|ct|rth)/.test(legend.getAlignment()) &&\n chart.titleOffset[0] > 0) {\n y += chart.titleOffset[0];\n }\n else if (/(lbh|cb|rbh)/.test(legend.getAlignment()) &&\n chart.titleOffset[2] > 0) {\n y -= chart.titleOffset[2];\n }\n if (y !== alignTo.y) {\n alignTo = merge(alignTo, { y: y });\n }\n legendGroup.align(merge(options, {\n width: legendWidth,\n height: legendHeight,\n verticalAlign: this.proximate ? 'top' : options.verticalAlign\n }), true, alignTo);\n }\n if (!this.proximate) {\n this.positionItems();\n }\n fireEvent(this, 'afterRender');\n },\n /**\n * Set up the overflow handling by adding navigation with up and down arrows\n * below the legend.\n *\n * @private\n * @function Highcharts.Legend#handleOverflow\n * @param {number} legendHeight\n * @return {number}\n */\n handleOverflow: function (legendHeight) {\n var legend = this, chart = this.chart, renderer = chart.renderer, options = this.options, optionsY = options.y, alignTop = options.verticalAlign === 'top', padding = this.padding, spaceHeight = (chart.spacingBox.height +\n (alignTop ? -optionsY : optionsY) - padding), maxHeight = options.maxHeight, clipHeight, clipRect = this.clipRect, navOptions = options.navigation, animation = pick(navOptions.animation, true), arrowSize = navOptions.arrowSize || 12, nav = this.nav, pages = this.pages, lastY, allItems = this.allItems, clipToHeight = function (height) {\n if (typeof height === 'number') {\n clipRect.attr({\n height: height\n });\n }\n else if (clipRect) { // Reset (#5912)\n legend.clipRect = clipRect.destroy();\n legend.contentGroup.clip();\n }\n // useHTML\n if (legend.contentGroup.div) {\n legend.contentGroup.div.style.clip = height ?\n 'rect(' + padding + 'px,9999px,' +\n (padding + height) + 'px,0)' :\n 'auto';\n }\n }, addTracker = function (key) {\n legend[key] = renderer\n .circle(0, 0, arrowSize * 1.3)\n .translate(arrowSize / 2, arrowSize / 2)\n .add(nav);\n if (!chart.styledMode) {\n legend[key].attr('fill', 'rgba(0,0,0,0.0001)');\n }\n return legend[key];\n };\n // Adjust the height\n if (options.layout === 'horizontal' &&\n options.verticalAlign !== 'middle' &&\n !options.floating) {\n spaceHeight /= 2;\n }\n if (maxHeight) {\n spaceHeight = Math.min(spaceHeight, maxHeight);\n }\n // Reset the legend height and adjust the clipping rectangle\n pages.length = 0;\n if (legendHeight > spaceHeight &&\n navOptions.enabled !== false) {\n this.clipHeight = clipHeight =\n Math.max(spaceHeight - 20 - this.titleHeight - padding, 0);\n this.currentPage = pick(this.currentPage, 1);\n this.fullHeight = legendHeight;\n // Fill pages with Y positions so that the top of each a legend item\n // defines the scroll top for each page (#2098)\n allItems.forEach(function (item, i) {\n var y = item._legendItemPos[1], h = Math.round(item.legendItem.getBBox().height), len = pages.length;\n if (!len || (y - pages[len - 1] > clipHeight &&\n (lastY || y) !== pages[len - 1])) {\n pages.push(lastY || y);\n len++;\n }\n // Keep track of which page each item is on\n item.pageIx = len - 1;\n if (lastY) {\n allItems[i - 1].pageIx = len - 1;\n }\n if (i === allItems.length - 1 &&\n y + h - pages[len - 1] > clipHeight &&\n y !== lastY // #2617\n ) {\n pages.push(y);\n item.pageIx = len;\n }\n if (y !== lastY) {\n lastY = y;\n }\n });\n // Only apply clipping if needed. Clipping causes blurred legend in\n // PDF export (#1787)\n if (!clipRect) {\n clipRect = legend.clipRect =\n renderer.clipRect(0, padding, 9999, 0);\n legend.contentGroup.clip(clipRect);\n }\n clipToHeight(clipHeight);\n // Add navigation elements\n if (!nav) {\n this.nav = nav = renderer.g()\n .attr({ zIndex: 1 })\n .add(this.group);\n this.up = renderer\n .symbol('triangle', 0, 0, arrowSize, arrowSize)\n .add(nav);\n addTracker('upTracker')\n .on('click', function () {\n legend.scroll(-1, animation);\n });\n this.pager = renderer.text('', 15, 10)\n .addClass('highcharts-legend-navigation');\n if (!chart.styledMode) {\n this.pager.css(navOptions.style);\n }\n this.pager.add(nav);\n this.down = renderer\n .symbol('triangle-down', 0, 0, arrowSize, arrowSize)\n .add(nav);\n addTracker('downTracker')\n .on('click', function () {\n legend.scroll(1, animation);\n });\n }\n // Set initial position\n legend.scroll(0);\n legendHeight = spaceHeight;\n // Reset\n }\n else if (nav) {\n clipToHeight();\n this.nav = nav.destroy(); // #6322\n this.scrollGroup.attr({\n translateY: 1\n });\n this.clipHeight = 0; // #1379\n }\n return legendHeight;\n },\n /**\n * Scroll the legend by a number of pages.\n *\n * @private\n * @function Highcharts.Legend#scroll\n *\n * @param {number} scrollBy\n * The number of pages to scroll.\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation]\n * Whether and how to apply animation.\n *\n * @return {void}\n */\n scroll: function (scrollBy, animation) {\n var pages = this.pages, pageCount = pages.length, currentPage = this.currentPage + scrollBy, clipHeight = this.clipHeight, navOptions = this.options.navigation, pager = this.pager, padding = this.padding;\n // When resizing while looking at the last page\n if (currentPage > pageCount) {\n currentPage = pageCount;\n }\n if (currentPage > 0) {\n if (animation !== undefined) {\n setAnimation(animation, this.chart);\n }\n this.nav.attr({\n translateX: padding,\n translateY: clipHeight + this.padding + 7 + this.titleHeight,\n visibility: 'visible'\n });\n [this.up, this.upTracker].forEach(function (elem) {\n elem.attr({\n 'class': currentPage === 1 ?\n 'highcharts-legend-nav-inactive' :\n 'highcharts-legend-nav-active'\n });\n });\n pager.attr({\n text: currentPage + '/' + pageCount\n });\n [this.down, this.downTracker].forEach(function (elem) {\n elem.attr({\n // adjust to text width\n x: 18 + this.pager.getBBox().width,\n 'class': currentPage === pageCount ?\n 'highcharts-legend-nav-inactive' :\n 'highcharts-legend-nav-active'\n });\n }, this);\n if (!this.chart.styledMode) {\n this.up\n .attr({\n fill: currentPage === 1 ?\n navOptions.inactiveColor :\n navOptions.activeColor\n });\n this.upTracker\n .css({\n cursor: currentPage === 1 ? 'default' : 'pointer'\n });\n this.down\n .attr({\n fill: currentPage === pageCount ?\n navOptions.inactiveColor :\n navOptions.activeColor\n });\n this.downTracker\n .css({\n cursor: currentPage === pageCount ?\n 'default' :\n 'pointer'\n });\n }\n this.scrollOffset = -pages[currentPage - 1] + this.initialItemY;\n this.scrollGroup.animate({\n translateY: this.scrollOffset\n });\n this.currentPage = currentPage;\n this.positionCheckboxes();\n }\n }\n };\n /**\n * Legend symbol mixin.\n *\n * @private\n * @mixin Highcharts.LegendSymbolMixin\n */\n H.LegendSymbolMixin = {\n /**\n * Get the series' symbol in the legend\n *\n * @private\n * @function Highcharts.LegendSymbolMixin.drawRectangle\n *\n * @param {Highcharts.Legend} legend\n * The legend object\n *\n * @param {Highcharts.Point|Highcharts.Series} item\n * The series (this) or point\n *\n * @return {void}\n */\n drawRectangle: function (legend, item) {\n var options = legend.options, symbolHeight = legend.symbolHeight, square = options.squareSymbol, symbolWidth = square ? symbolHeight : legend.symbolWidth;\n item.legendSymbol = this.chart.renderer.rect(square ? (legend.symbolWidth - symbolHeight) / 2 : 0, legend.baseline - symbolHeight + 1, // #3988\n symbolWidth, symbolHeight, pick(legend.options.symbolRadius, symbolHeight / 2))\n .addClass('highcharts-point')\n .attr({\n zIndex: 3\n }).add(item.legendGroup);\n },\n /**\n * Get the series' symbol in the legend. This method should be overridable\n * to create custom symbols through\n * Highcharts.seriesTypes[type].prototype.drawLegendSymbols.\n *\n * @private\n * @function Highcharts.LegendSymbolMixin.drawLineMarker\n *\n * @param {Highcharts.Legend} legend\n * The legend object.\n *\n * @return {void}\n */\n drawLineMarker: function (legend) {\n var options = this.options, markerOptions = options.marker, radius, legendSymbol, symbolWidth = legend.symbolWidth, symbolHeight = legend.symbolHeight, generalRadius = symbolHeight / 2, renderer = this.chart.renderer, legendItemGroup = this.legendGroup, verticalCenter = legend.baseline -\n Math.round(legend.fontMetrics.b * 0.3), attr = {};\n // Draw the line\n if (!this.chart.styledMode) {\n attr = {\n 'stroke-width': options.lineWidth || 0\n };\n if (options.dashStyle) {\n attr.dashstyle = options.dashStyle;\n }\n }\n this.legendLine = renderer\n .path([\n 'M',\n 0,\n verticalCenter,\n 'L',\n symbolWidth,\n verticalCenter\n ])\n .addClass('highcharts-graph')\n .attr(attr)\n .add(legendItemGroup);\n // Draw the marker\n if (markerOptions && markerOptions.enabled !== false && symbolWidth) {\n // Do not allow the marker to be larger than the symbolHeight\n radius = Math.min(pick(markerOptions.radius, generalRadius), generalRadius);\n // Restrict symbol markers size\n if (this.symbol.indexOf('url') === 0) {\n markerOptions = merge(markerOptions, {\n width: symbolHeight,\n height: symbolHeight\n });\n radius = 0;\n }\n this.legendSymbol = legendSymbol = renderer.symbol(this.symbol, (symbolWidth / 2) - radius, verticalCenter - radius, 2 * radius, 2 * radius, markerOptions)\n .addClass('highcharts-point')\n .add(legendItemGroup);\n legendSymbol.isMarker = true;\n }\n }\n };\n // Workaround for #2030, horizontal legend items not displaying in IE11 Preview,\n // and for #2580, a similar drawing flaw in Firefox 26.\n // Explore if there's a general cause for this. The problem may be related\n // to nested group elements, as the legend item texts are within 4 group\n // elements.\n if (/Trident\\/7\\.0/.test(win.navigator && win.navigator.userAgent) ||\n isFirefox) {\n wrap(Highcharts.Legend.prototype, 'positionItem', function (proceed, item) {\n var legend = this, \n // If chart destroyed in sync, this is undefined (#2030)\n runPositionItem = function () {\n if (item._legendItemPos) {\n proceed.call(legend, item);\n }\n };\n // Do it now, for export and to get checkbox placement\n runPositionItem();\n // Do it after to work around the core issue\n if (!legend.bubbleLegend) {\n setTimeout(runPositionItem);\n }\n });\n }\n\n });\n _registerModule(_modules, 'parts/Chart.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * Callback for chart constructors.\n *\n * @callback Highcharts.ChartCallbackFunction\n *\n * @param {Highcharts.Chart} chart\n * Created chart.\n */\n /**\n * The chart title. The title has an `update` method that allows modifying the\n * options directly or indirectly via `chart.update`.\n *\n * @interface Highcharts.TitleObject\n * @extends Highcharts.SVGElement\n */ /**\n * Modify options for the title.\n *\n * @function Highcharts.TitleObject#update\n *\n * @param {Highcharts.TitleOptions} titleOptions\n * Options to modify.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after the title is altered. If doing more\n * operations on the chart, it is a good idea to set redraw to false and\n * call {@link Chart#redraw} after.\n */\n /**\n * The chart subtitle. The subtitle has an `update` method that\n * allows modifying the options directly or indirectly via\n * `chart.update`.\n *\n * @interface Highcharts.SubtitleObject\n * @extends Highcharts.SVGElement\n */ /**\n * Modify options for the subtitle.\n *\n * @function Highcharts.SubtitleObject#update\n *\n * @param {Highcharts.SubtitleOptions} subtitleOptions\n * Options to modify.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after the subtitle is altered. If doing\n * more operations on the chart, it is a good idea to set redraw to false\n * and call {@link Chart#redraw} after.\n */\n /**\n * The chart caption. The caption has an `update` method that\n * allows modifying the options directly or indirectly via\n * `chart.update`.\n *\n * @interface Highcharts.CaptionObject\n * @extends Highcharts.SVGElement\n */ /**\n * Modify options for the caption.\n *\n * @function Highcharts.CaptionObject#update\n *\n * @param {Highcharts.CaptionOptions} captionOptions\n * Options to modify.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after the caption is altered. If doing\n * more operations on the chart, it is a good idea to set redraw to false\n * and call {@link Chart#redraw} after.\n */\n var attr = U.attr, defined = U.defined, discardElement = U.discardElement, erase = U.erase, extend = U.extend, isArray = U.isArray, isNumber = U.isNumber, isObject = U.isObject, isString = U.isString, objectEach = U.objectEach, pick = U.pick, pInt = U.pInt, setAnimation = U.setAnimation, splat = U.splat, syncTimeout = U.syncTimeout;\n var addEvent = H.addEvent, animate = H.animate, animObject = H.animObject, doc = H.doc, Axis = H.Axis, // @todo add as requirement\n createElement = H.createElement, defaultOptions = H.defaultOptions, charts = H.charts, css = H.css, find = H.find, fireEvent = H.fireEvent, Legend = H.Legend, // @todo add as requirement\n marginNames = H.marginNames, merge = H.merge, Pointer = H.Pointer, // @todo add as requirement\n removeEvent = H.removeEvent, seriesTypes = H.seriesTypes, win = H.win;\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * The Chart class. The recommended constructor is {@link Highcharts#chart}.\n *\n * @example\n * var chart = Highcharts.chart('container', {\n * title: {\n * text: 'My chart'\n * },\n * series: [{\n * data: [1, 3, 2, 4]\n * }]\n * })\n *\n * @class\n * @name Highcharts.Chart\n *\n * @param {string|Highcharts.HTMLDOMElement} [renderTo]\n * The DOM element to render to, or its id.\n *\n * @param {Highcharts.Options} options\n * The chart options structure.\n *\n * @param {Highcharts.ChartCallbackFunction} [callback]\n * Function to run when the chart has loaded and and all external images\n * are loaded. Defining a\n * [chart.events.load](https://api.highcharts.com/highcharts/chart.events.load)\n * handler is equivalent.\n */\n var Chart = H.Chart = function () {\n this.getArgs.apply(this, arguments);\n };\n /**\n * Factory function for basic charts.\n *\n * @example\n * // Render a chart in to div#container\n * var chart = Highcharts.chart('container', {\n * title: {\n * text: 'My chart'\n * },\n * series: [{\n * data: [1, 3, 2, 4]\n * }]\n * });\n *\n * @function Highcharts.chart\n *\n * @param {string|Highcharts.HTMLDOMElement} [renderTo]\n * The DOM element to render to, or its id.\n *\n * @param {Highcharts.Options} options\n * The chart options structure.\n *\n * @param {Highcharts.ChartCallbackFunction} [callback]\n * Function to run when the chart has loaded and and all external images\n * are loaded. Defining a\n * [chart.events.load](https://api.highcharts.com/highcharts/chart.events.load)\n * handler is equivalent.\n *\n * @return {Highcharts.Chart}\n * Returns the Chart object.\n */\n H.chart = function (a, b, c) {\n return new Chart(a, b, c);\n };\n extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {\n // Hook for adding callbacks in modules\n callbacks: [],\n /**\n * Handle the arguments passed to the constructor.\n *\n * @private\n * @function Highcharts.Chart#getArgs\n *\n * @param {...Array<*>} arguments\n * All arguments for the constructor.\n *\n * @return {Array<*>}\n * Passed arguments without renderTo.\n *\n * @fires Highcharts.Chart#event:init\n * @fires Highcharts.Chart#event:afterInit\n */\n getArgs: function () {\n var args = [].slice.call(arguments);\n // Remove the optional first argument, renderTo, and\n // set it on this.\n if (isString(args[0]) || args[0].nodeName) {\n this.renderTo = args.shift();\n }\n this.init(args[0], args[1]);\n },\n /**\n * Overridable function that initializes the chart. The constructor's\n * arguments are passed on directly.\n *\n * @function Highcharts.Chart#init\n *\n * @param {Highcharts.Options} userOptions\n * Custom options.\n *\n * @param {Function} [callback]\n * Function to run when the chart has loaded and and all external\n * images are loaded.\n *\n * @return {void}\n *\n * @fires Highcharts.Chart#event:init\n * @fires Highcharts.Chart#event:afterInit\n */\n init: function (userOptions, callback) {\n // Handle regular options\n var options, \n // skip merging data points to increase performance\n seriesOptions = userOptions.series, userPlotOptions = userOptions.plotOptions || {};\n // Fire the event with a default function\n fireEvent(this, 'init', { args: arguments }, function () {\n userOptions.series = null;\n options = merge(defaultOptions, userOptions); // do the merge\n // Override (by copy of user options) or clear tooltip options\n // in chart.options.plotOptions (#6218)\n objectEach(options.plotOptions, function (typeOptions, type) {\n if (isObject(typeOptions)) { // #8766\n typeOptions.tooltip = (userPlotOptions[type] && // override by copy:\n merge(userPlotOptions[type].tooltip)) || undefined; // or clear\n }\n });\n // User options have higher priority than default options\n // (#6218). In case of exporting: path is changed\n options.tooltip.userOptions = (userOptions.chart &&\n userOptions.chart.forExport &&\n userOptions.tooltip.userOptions) || userOptions.tooltip;\n // set back the series data\n options.series = userOptions.series = seriesOptions;\n /**\n * The original options given to the constructor or a chart factory\n * like {@link Highcharts.chart} and {@link Highcharts.stockChart}.\n *\n * @name Highcharts.Chart#userOptions\n * @type {Highcharts.Options}\n */\n this.userOptions = userOptions;\n var optionsChart = options.chart;\n var chartEvents = optionsChart.events;\n this.margin = [];\n this.spacing = [];\n // Pixel data bounds for touch zoom\n this.bounds = { h: {}, v: {} };\n // An array of functions that returns labels that should be\n // considered for anti-collision\n this.labelCollectors = [];\n this.callback = callback;\n this.isResizing = 0;\n /**\n * The options structure for the chart after merging\n * {@link #defaultOptions} and {@link #userOptions}. It contains\n * members for the sub elements like series, legend, tooltip etc.\n *\n * @name Highcharts.Chart#options\n * @type {Highcharts.Options}\n */\n this.options = options;\n /**\n * All the axes in the chart.\n *\n * @see Highcharts.Chart.xAxis\n * @see Highcharts.Chart.yAxis\n *\n * @name Highcharts.Chart#axes\n * @type {Array}\n */\n this.axes = [];\n /**\n * All the current series in the chart.\n *\n * @name Highcharts.Chart#series\n * @type {Array}\n */\n this.series = [];\n /**\n * The `Time` object associated with the chart. Since v6.0.5,\n * time settings can be applied individually for each chart. If\n * no individual settings apply, the `Time` object is shared by\n * all instances.\n *\n * @name Highcharts.Chart#time\n * @type {Highcharts.Time}\n */\n this.time =\n userOptions.time && Object.keys(userOptions.time).length ?\n new H.Time(userOptions.time) :\n H.time;\n /**\n * Whether the chart is in styled mode, meaning all presentatinoal\n * attributes are avoided.\n *\n * @name Highcharts.Chart#styledMode\n * @type {boolean}\n */\n this.styledMode = optionsChart.styledMode;\n this.hasCartesianSeries = optionsChart.showAxes;\n var chart = this;\n /**\n * Index position of the chart in the {@link Highcharts#charts}\n * property.\n *\n * @name Highcharts.Chart#index\n * @type {number}\n */\n chart.index = charts.length; // Add the chart to the global lookup\n charts.push(chart);\n H.chartCount++;\n // Chart event handlers\n if (chartEvents) {\n objectEach(chartEvents, function (event, eventType) {\n if (H.isFunction(event)) {\n addEvent(chart, eventType, event);\n }\n });\n }\n /**\n * A collection of the X axes in the chart.\n *\n * @name Highcharts.Chart#xAxis\n * @type {Array}\n */\n chart.xAxis = [];\n /**\n * A collection of the Y axes in the chart.\n *\n * @name Highcharts.Chart#yAxis\n * @type {Array}\n *\n * @todo\n * Make events official: Fire the event `afterInit`.\n */\n chart.yAxis = [];\n chart.pointCount = chart.colorCounter = chart.symbolCounter = 0;\n // Fire after init but before first render, before axes and series\n // have been initialized.\n fireEvent(chart, 'afterInit');\n chart.firstRender();\n });\n },\n /**\n * Internal function to unitialize an individual series.\n *\n * @private\n * @function Highcharts.Chart#initSeries\n *\n * @param {Highcharts.SeriesOptions} options\n *\n * @return {Highcharts.Series}\n */\n initSeries: function (options) {\n var chart = this, optionsChart = chart.options.chart, type = (options.type ||\n optionsChart.type ||\n optionsChart.defaultSeriesType), series, Constr = seriesTypes[type];\n // No such series type\n if (!Constr) {\n H.error(17, true, chart, { missingModuleFor: type });\n }\n series = new Constr();\n series.init(this, options);\n return series;\n },\n /**\n * Order all series above a given index. When series are added and ordered\n * by configuration, only the last series is handled (#248, #1123, #2456,\n * #6112). This function is called on series initialization and destroy.\n *\n * @private\n * @function Highcharts.Series#orderSeries\n * @param {number} [fromIndex]\n * If this is given, only the series above this index are handled.\n * @return {void}\n */\n orderSeries: function (fromIndex) {\n var series = this.series, i = fromIndex || 0;\n for (; i < series.length; i++) {\n if (series[i]) {\n series[i].index = i;\n series[i].name = series[i].getName();\n }\n }\n },\n /**\n * Check whether a given point is within the plot area.\n *\n * @function Highcharts.Chart#isInsidePlot\n *\n * @param {number} plotX\n * Pixel x relative to the plot area.\n *\n * @param {number} plotY\n * Pixel y relative to the plot area.\n *\n * @param {boolean} [inverted]\n * Whether the chart is inverted.\n *\n * @return {boolean}\n * Returns true if the given point is inside the plot area.\n */\n isInsidePlot: function (plotX, plotY, inverted) {\n var x = inverted ? plotY : plotX, y = inverted ? plotX : plotY;\n return x >= 0 &&\n x <= this.plotWidth &&\n y >= 0 &&\n y <= this.plotHeight;\n },\n /**\n * Redraw the chart after changes have been done to the data, axis extremes\n * chart size or chart elements. All methods for updating axes, series or\n * points have a parameter for redrawing the chart. This is `true` by\n * default. But in many cases you want to do more than one operation on the\n * chart before redrawing, for example add a number of points. In those\n * cases it is a waste of resources to redraw the chart for each new point\n * added. So you add the points and call `chart.redraw()` after.\n *\n * @function Highcharts.Chart#redraw\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation]\n * If or how to apply animation to the redraw.\n *\n * @return {void}\n *\n * @fires Highcharts.Chart#event:afterSetExtremes\n * @fires Highcharts.Chart#event:beforeRedraw\n * @fires Highcharts.Chart#event:predraw\n * @fires Highcharts.Chart#event:redraw\n * @fires Highcharts.Chart#event:render\n * @fires Highcharts.Chart#event:updatedData\n */\n redraw: function (animation) {\n fireEvent(this, 'beforeRedraw');\n var chart = this, axes = chart.axes, series = chart.series, pointer = chart.pointer, legend = chart.legend, legendUserOptions = chart.userOptions.legend, redrawLegend = chart.isDirtyLegend, hasStackedSeries, hasDirtyStacks, hasCartesianSeries = chart.hasCartesianSeries, isDirtyBox = chart.isDirtyBox, i, serie, renderer = chart.renderer, isHiddenChart = renderer.isHidden(), afterRedraw = [];\n // Handle responsive rules, not only on resize (#6130)\n if (chart.setResponsive) {\n chart.setResponsive(false);\n }\n setAnimation(animation, chart);\n if (isHiddenChart) {\n chart.temporaryDisplay();\n }\n // Adjust title layout (reflow multiline text)\n chart.layOutTitles();\n // link stacked series\n i = series.length;\n while (i--) {\n serie = series[i];\n if (serie.options.stacking) {\n hasStackedSeries = true;\n if (serie.isDirty) {\n hasDirtyStacks = true;\n break;\n }\n }\n }\n if (hasDirtyStacks) { // mark others as dirty\n i = series.length;\n while (i--) {\n serie = series[i];\n if (serie.options.stacking) {\n serie.isDirty = true;\n }\n }\n }\n // Handle updated data in the series\n series.forEach(function (serie) {\n if (serie.isDirty) {\n if (serie.options.legendType === 'point') {\n if (serie.updateTotals) {\n serie.updateTotals();\n }\n redrawLegend = true;\n }\n else if (legendUserOptions &&\n (legendUserOptions.labelFormatter ||\n legendUserOptions.labelFormat)) {\n redrawLegend = true; // #2165\n }\n }\n if (serie.isDirtyData) {\n fireEvent(serie, 'updatedData');\n }\n });\n // handle added or removed series\n if (redrawLegend && legend && legend.options.enabled) {\n // draw legend graphics\n legend.render();\n chart.isDirtyLegend = false;\n }\n // reset stacks\n if (hasStackedSeries) {\n chart.getStacks();\n }\n if (hasCartesianSeries) {\n // set axes scales\n axes.forEach(function (axis) {\n axis.updateNames();\n axis.setScale();\n });\n }\n chart.getMargins(); // #3098\n if (hasCartesianSeries) {\n // If one axis is dirty, all axes must be redrawn (#792, #2169)\n axes.forEach(function (axis) {\n if (axis.isDirty) {\n isDirtyBox = true;\n }\n });\n // redraw axes\n axes.forEach(function (axis) {\n // Fire 'afterSetExtremes' only if extremes are set\n var key = axis.min + ',' + axis.max;\n if (axis.extKey !== key) { // #821, #4452\n axis.extKey = key;\n // prevent a recursive call to chart.redraw() (#1119)\n afterRedraw.push(function () {\n fireEvent(axis, 'afterSetExtremes', extend(axis.eventArgs, axis.getExtremes())); // #747, #751\n delete axis.eventArgs;\n });\n }\n if (isDirtyBox || hasStackedSeries) {\n axis.redraw();\n }\n });\n }\n // the plot areas size has changed\n if (isDirtyBox) {\n chart.drawChartBox();\n }\n // Fire an event before redrawing series, used by the boost module to\n // clear previous series renderings.\n fireEvent(chart, 'predraw');\n // redraw affected series\n series.forEach(function (serie) {\n if ((isDirtyBox || serie.isDirty) && serie.visible) {\n serie.redraw();\n }\n // Set it here, otherwise we will have unlimited 'updatedData' calls\n // for a hidden series after setData(). Fixes #6012\n serie.isDirtyData = false;\n });\n // move tooltip or reset\n if (pointer) {\n pointer.reset(true);\n }\n // redraw if canvas\n renderer.draw();\n // Fire the events\n fireEvent(chart, 'redraw');\n fireEvent(chart, 'render');\n if (isHiddenChart) {\n chart.temporaryDisplay(true);\n }\n // Fire callbacks that are put on hold until after the redraw\n afterRedraw.forEach(function (callback) {\n callback.call();\n });\n },\n /**\n * Get an axis, series or point object by `id` as given in the configuration\n * options. Returns `undefined` if no item is found.\n *\n * @sample highcharts/plotoptions/series-id/\n * Get series by id\n *\n * @function Highcharts.Chart#get\n *\n * @param {string} id\n * The id as given in the configuration options.\n *\n * @return {Highcharts.Axis|Highcharts.Series|Highcharts.Point|undefined}\n * The retrieved item.\n */\n get: function (id) {\n var ret, series = this.series, i;\n /**\n * @private\n * @param {Highcharts.Axis|Highcharts.Series} item\n * @return {boolean}\n */\n function itemById(item) {\n return (item.id === id ||\n (item.options && item.options.id === id));\n }\n ret =\n // Search axes\n find(this.axes, itemById) ||\n // Search series\n find(this.series, itemById);\n // Search points\n for (i = 0; !ret && i < series.length; i++) {\n ret = find(series[i].points || [], itemById);\n }\n return ret;\n },\n /**\n * Create the Axis instances based on the config options.\n *\n * @private\n * @function Highcharts.Chart#getAxes\n *\n * @return {void}\n *\n * @fires Highcharts.Chart#event:afterGetAxes\n * @fires Highcharts.Chart#event:getAxes\n */\n getAxes: function () {\n var chart = this, options = this.options, xAxisOptions = options.xAxis = splat(options.xAxis || {}), yAxisOptions = options.yAxis = splat(options.yAxis || {}), optionsArray;\n fireEvent(this, 'getAxes');\n // make sure the options are arrays and add some members\n xAxisOptions.forEach(function (axis, i) {\n axis.index = i;\n axis.isX = true;\n });\n yAxisOptions.forEach(function (axis, i) {\n axis.index = i;\n });\n // concatenate all axis options into one array\n optionsArray = xAxisOptions.concat(yAxisOptions);\n optionsArray.forEach(function (axisOptions) {\n new Axis(chart, axisOptions); // eslint-disable-line no-new\n });\n fireEvent(this, 'afterGetAxes');\n },\n /**\n * Returns an array of all currently selected points in the chart. Points\n * can be selected by clicking or programmatically by the\n * {@link Highcharts.Point#select}\n * function.\n *\n * @sample highcharts/plotoptions/series-allowpointselect-line/\n * Get selected points\n *\n * @function Highcharts.Chart#getSelectedPoints\n *\n * @return {Array}\n * The currently selected points.\n */\n getSelectedPoints: function () {\n var points = [];\n this.series.forEach(function (serie) {\n // For one-to-one points inspect series.data in order to retrieve\n // points outside the visible range (#6445). For grouped data,\n // inspect the generated series.points.\n points = points.concat((serie[serie.hasGroupedData ? 'points' : 'data'] || []).filter(function (point) {\n return pick(point.selectedStaging, point.selected);\n }));\n });\n return points;\n },\n /**\n * Returns an array of all currently selected series in the chart. Series\n * can be selected either programmatically by the\n * {@link Highcharts.Series#select}\n * function or by checking the checkbox next to the legend item if\n * [series.showCheckBox](https://api.highcharts.com/highcharts/plotOptions.series.showCheckbox)\n * is true.\n *\n * @sample highcharts/members/chart-getselectedseries/\n * Get selected series\n *\n * @function Highcharts.Chart#getSelectedSeries\n *\n * @return {Array}\n * The currently selected series.\n */\n getSelectedSeries: function () {\n return this.series.filter(function (serie) {\n return serie.selected;\n });\n },\n /**\n * Set a new title or subtitle for the chart.\n *\n * @sample highcharts/members/chart-settitle/\n * Set title text and styles\n *\n * @function Highcharts.Chart#setTitle\n *\n * @param {Highcharts.TitleOptions} [titleOptions]\n * New title options. The title text itself is set by the\n * `titleOptions.text` property.\n *\n * @param {Highcharts.SubtitleOptions} [subtitleOptions]\n * New subtitle options. The subtitle text itself is set by the\n * `subtitleOptions.text` property.\n *\n * @param {boolean} [redraw]\n * Whether to redraw the chart or wait for a later call to\n * `chart.redraw()`.\n *\n * @return {void}\n */\n setTitle: function (titleOptions, subtitleOptions, redraw) {\n this.applyDescription('title', titleOptions);\n this.applyDescription('subtitle', subtitleOptions);\n // The initial call also adds the caption. On update, chart.update will\n // relay to Chart.setCaption.\n this.applyDescription('caption', undefined);\n this.layOutTitles(redraw);\n },\n /**\n * Apply a title, subtitle or caption for the chart\n *\n * @private\n * @function Highcharts.Chart#applyDescription\n *\n * @param name {string}\n * Either title, subtitle or caption\n * @param {Highcharts.TitleOptions|Highcharts.SubtitleOptions|Highcharts.CaptionOptions|undefined} explicitOptions\n * The options to set, will be merged with default options.\n *\n * @return {void}\n */\n applyDescription: function (name, explicitOptions) {\n var chart = this;\n // Default style\n var style = name === 'title' ? {\n color: '#333333',\n fontSize: this.options.isStock ? '16px' : '18px' // #2944\n } : {\n color: '#666666'\n };\n // Merge default options with explicit options\n var options = this.options[name] = merge(\n // Default styles\n (!this.styledMode && { style: style }), this.options[name], explicitOptions);\n var elem = this[name];\n if (elem && explicitOptions) {\n this[name] = elem = elem.destroy(); // remove old\n }\n if (options && !elem) {\n elem = this.renderer.text(options.text, 0, 0, options.useHTML)\n .attr({\n align: options.align,\n 'class': 'highcharts-' + name,\n zIndex: options.zIndex || 4\n })\n .add();\n // Update methods, shortcut to Chart.setTitle, Chart.setSubtitle and\n // Chart.setCaption\n elem.update = function (updateOptions) {\n var fn = {\n title: 'setTitle',\n subtitle: 'setSubtitle',\n caption: 'setCaption'\n }[name];\n chart[fn](updateOptions);\n };\n // Presentational\n if (!this.styledMode) {\n elem.css(options.style);\n }\n /**\n * The chart title. The title has an `update` method that allows\n * modifying the options directly or indirectly via\n * `chart.update`.\n *\n * @sample highcharts/members/title-update/\n * Updating titles\n *\n * @name Highcharts.Chart#title\n * @type {Highcharts.TitleObject}\n */\n /**\n * The chart subtitle. The subtitle has an `update` method that\n * allows modifying the options directly or indirectly via\n * `chart.update`.\n *\n * @name Highcharts.Chart#subtitle\n * @type {Highcharts.SubtitleObject}\n */\n this[name] = elem;\n }\n },\n /**\n * Internal function to lay out the chart title, subtitle and caption, and\n * cache the full offset height for use in `getMargins`. The result is\n * stored in `this.titleOffset`.\n *\n * @private\n * @function Highcharts.Chart#layOutTitles\n *\n * @param {boolean} [redraw=true]\n *\n * @return {void}\n *\n * @fires Highcharts.Chart#event:afterLayOutTitles\n */\n layOutTitles: function (redraw) {\n var titleOffset = [0, 0, 0], requiresDirtyBox, renderer = this.renderer, spacingBox = this.spacingBox;\n // Lay out the title and the subtitle respectively\n ['title', 'subtitle', 'caption'].forEach(function (key) {\n var title = this[key], titleOptions = this.options[key], verticalAlign = titleOptions.verticalAlign || 'top', offset = key === 'title' ? -3 :\n // Floating subtitle (#6574)\n verticalAlign === 'top' ? titleOffset[0] + 2 : 0, titleSize, height;\n if (title) {\n if (!this.styledMode) {\n titleSize = titleOptions.style.fontSize;\n }\n titleSize = renderer.fontMetrics(titleSize, title).b;\n title\n .css({\n width: (titleOptions.width ||\n spacingBox.width + (titleOptions.widthAdjust || 0)) + 'px'\n });\n // Skip the cache for HTML (#3481, #11666)\n height = Math.round(title.getBBox(titleOptions.useHTML).height);\n title.align(extend({\n y: verticalAlign === 'bottom' ?\n titleSize :\n offset + titleSize,\n height: height\n }, titleOptions), false, 'spacingBox');\n if (!titleOptions.floating) {\n if (verticalAlign === 'top') {\n titleOffset[0] = Math.ceil(titleOffset[0] +\n height);\n }\n else if (verticalAlign === 'bottom') {\n titleOffset[2] = Math.ceil(titleOffset[2] +\n height);\n }\n }\n }\n }, this);\n // Handle title.margin and caption.margin\n if (titleOffset[0] &&\n (this.options.title.verticalAlign || 'top') === 'top') {\n titleOffset[0] += this.options.title.margin;\n }\n if (titleOffset[2] &&\n this.options.caption.verticalAlign === 'bottom') {\n titleOffset[2] += this.options.caption.margin;\n }\n requiresDirtyBox = (!this.titleOffset ||\n this.titleOffset.join(',') !== titleOffset.join(','));\n // Used in getMargins\n this.titleOffset = titleOffset;\n fireEvent(this, 'afterLayOutTitles');\n if (!this.isDirtyBox && requiresDirtyBox) {\n this.isDirtyBox = this.isDirtyLegend = requiresDirtyBox;\n // Redraw if necessary (#2719, #2744)\n if (this.hasRendered && pick(redraw, true) && this.isDirtyBox) {\n this.redraw();\n }\n }\n },\n /**\n * Internal function to get the chart width and height according to options\n * and container size. Sets {@link Chart.chartWidth} and\n * {@link Chart.chartHeight}.\n *\n * @private\n * @function Highcharts.Chart#getChartSize\n *\n * @return {void}\n */\n getChartSize: function () {\n var chart = this, optionsChart = chart.options.chart, widthOption = optionsChart.width, heightOption = optionsChart.height, renderTo = chart.renderTo;\n // Get inner width and height\n if (!defined(widthOption)) {\n chart.containerWidth = H.getStyle(renderTo, 'width');\n }\n if (!defined(heightOption)) {\n chart.containerHeight = H.getStyle(renderTo, 'height');\n }\n /**\n * The current pixel width of the chart.\n *\n * @name Highcharts.Chart#chartWidth\n * @type {number}\n */\n chart.chartWidth = Math.max(// #1393\n 0, widthOption || chart.containerWidth || 600 // #1460\n );\n /**\n * The current pixel height of the chart.\n *\n * @name Highcharts.Chart#chartHeight\n * @type {number}\n */\n chart.chartHeight = Math.max(0, H.relativeLength(heightOption, chart.chartWidth) ||\n (chart.containerHeight > 1 ?\n chart.containerHeight :\n 400));\n },\n /**\n * If the renderTo element has no offsetWidth, most likely one or more of\n * its parents are hidden. Loop up the DOM tree to temporarily display the\n * parents, then save the original display properties, and when the true\n * size is retrieved, reset them. Used on first render and on redraws.\n *\n * @private\n * @function Highcharts.Chart#temporaryDisplay\n *\n * @param {boolean} [revert]\n * Revert to the saved original styles.\n *\n * @return {void}\n */\n temporaryDisplay: function (revert) {\n var node = this.renderTo, tempStyle;\n if (!revert) {\n while (node && node.style) {\n // When rendering to a detached node, it needs to be temporarily\n // attached in order to read styling and bounding boxes (#5783,\n // #7024).\n if (!doc.body.contains(node) && !node.parentNode) {\n node.hcOrigDetached = true;\n doc.body.appendChild(node);\n }\n if (H.getStyle(node, 'display', false) === 'none' ||\n node.hcOricDetached) {\n node.hcOrigStyle = {\n display: node.style.display,\n height: node.style.height,\n overflow: node.style.overflow\n };\n tempStyle = {\n display: 'block',\n overflow: 'hidden'\n };\n if (node !== this.renderTo) {\n tempStyle.height = 0;\n }\n H.css(node, tempStyle);\n // If it still doesn't have an offset width after setting\n // display to block, it probably has an !important priority\n // #2631, 6803\n if (!node.offsetWidth) {\n node.style.setProperty('display', 'block', 'important');\n }\n }\n node = node.parentNode;\n if (node === doc.body) {\n break;\n }\n }\n }\n else {\n while (node && node.style) {\n if (node.hcOrigStyle) {\n H.css(node, node.hcOrigStyle);\n delete node.hcOrigStyle;\n }\n if (node.hcOrigDetached) {\n doc.body.removeChild(node);\n node.hcOrigDetached = false;\n }\n node = node.parentNode;\n }\n }\n },\n /**\n * Set the {@link Chart.container|chart container's} class name, in\n * addition to `highcharts-container`.\n *\n * @function Highcharts.Chart#setClassName\n *\n * @param {string} [className]\n *\n * @return {void}\n */\n setClassName: function (className) {\n this.container.className = 'highcharts-container ' + (className || '');\n },\n /**\n * Get the containing element, determine the size and create the inner\n * container div to hold the chart.\n *\n * @private\n * @function Highcharts.Chart#afterGetContainer\n *\n * @return {void}\n *\n * @fires Highcharts.Chart#event:afterGetContainer\n */\n getContainer: function () {\n var chart = this, container, options = chart.options, optionsChart = options.chart, chartWidth, chartHeight, renderTo = chart.renderTo, indexAttrName = 'data-highcharts-chart', oldChartIndex, Ren, containerId = H.uniqueKey(), containerStyle, key;\n if (!renderTo) {\n chart.renderTo = renderTo =\n optionsChart.renderTo;\n }\n if (isString(renderTo)) {\n chart.renderTo = renderTo =\n doc.getElementById(renderTo);\n }\n // Display an error if the renderTo is wrong\n if (!renderTo) {\n H.error(13, true, chart);\n }\n // If the container already holds a chart, destroy it. The check for\n // hasRendered is there because web pages that are saved to disk from\n // the browser, will preserve the data-highcharts-chart attribute and\n // the SVG contents, but not an interactive chart. So in this case,\n // charts[oldChartIndex] will point to the wrong chart if any (#2609).\n oldChartIndex = pInt(attr(renderTo, indexAttrName));\n if (isNumber(oldChartIndex) &&\n charts[oldChartIndex] &&\n charts[oldChartIndex].hasRendered) {\n charts[oldChartIndex].destroy();\n }\n // Make a reference to the chart from the div\n attr(renderTo, indexAttrName, chart.index);\n // remove previous chart\n renderTo.innerHTML = '';\n // If the container doesn't have an offsetWidth, it has or is a child of\n // a node that has display:none. We need to temporarily move it out to a\n // visible state to determine the size, else the legend and tooltips\n // won't render properly. The skipClone option is used in sparklines as\n // a micro optimization, saving about 1-2 ms each chart.\n if (!optionsChart.skipClone && !renderTo.offsetWidth) {\n chart.temporaryDisplay();\n }\n // get the width and height\n chart.getChartSize();\n chartWidth = chart.chartWidth;\n chartHeight = chart.chartHeight;\n // Allow table cells and flex-boxes to shrink without the chart blocking\n // them out (#6427)\n css(renderTo, { overflow: 'hidden' });\n // Create the inner container\n if (!chart.styledMode) {\n containerStyle = extend({\n position: 'relative',\n // needed for context menu (avoidscrollbars) and content\n // overflow in IE\n overflow: 'hidden',\n width: chartWidth + 'px',\n height: chartHeight + 'px',\n textAlign: 'left',\n lineHeight: 'normal',\n zIndex: 0,\n '-webkit-tap-highlight-color': 'rgba(0,0,0,0)'\n }, optionsChart.style);\n }\n /**\n * The containing HTML element of the chart. The container is\n * dynamically inserted into the element given as the `renderTo`\n * parameter in the {@link Highcharts#chart} constructor.\n *\n * @name Highcharts.Chart#container\n * @type {Highcharts.HTMLDOMElement}\n */\n container = createElement('div', {\n id: containerId\n }, containerStyle, renderTo);\n chart.container = container;\n // cache the cursor (#1650)\n chart._cursor = container.style.cursor;\n // Initialize the renderer\n Ren = H[optionsChart.renderer] || H.Renderer;\n /**\n * The renderer instance of the chart. Each chart instance has only one\n * associated renderer.\n *\n * @name Highcharts.Chart#renderer\n * @type {Highcharts.SVGRenderer}\n */\n chart.renderer = new Ren(container, chartWidth, chartHeight, null, optionsChart.forExport, options.exporting && options.exporting.allowHTML, chart.styledMode);\n chart.setClassName(optionsChart.className);\n if (!chart.styledMode) {\n chart.renderer.setStyle(optionsChart.style);\n }\n else {\n // Initialize definitions\n for (key in options.defs) { // eslint-disable-line guard-for-in\n this.renderer.definition(options.defs[key]);\n }\n }\n // Add a reference to the charts index\n chart.renderer.chartIndex = chart.index;\n fireEvent(this, 'afterGetContainer');\n },\n /**\n * Calculate margins by rendering axis labels in a preliminary position.\n * Title, subtitle and legend have already been rendered at this stage, but\n * will be moved into their final positions.\n *\n * @private\n * @function Highcharts.Chart#getMargins\n * @param {boolean} skipAxes\n * @return {void}\n * @fires Highcharts.Chart#event:getMargins\n */\n getMargins: function (skipAxes) {\n var _a = this, spacing = _a.spacing, margin = _a.margin, titleOffset = _a.titleOffset;\n this.resetMargins();\n // Adjust for title and subtitle\n if (titleOffset[0] && !defined(margin[0])) {\n this.plotTop = Math.max(this.plotTop, titleOffset[0] + spacing[0]);\n }\n if (titleOffset[2] && !defined(margin[2])) {\n this.marginBottom = Math.max(this.marginBottom, titleOffset[2] + spacing[2]);\n }\n // Adjust for legend\n if (this.legend && this.legend.display) {\n this.legend.adjustMargins(margin, spacing);\n }\n fireEvent(this, 'getMargins');\n if (!skipAxes) {\n this.getAxisMargins();\n }\n },\n /**\n * @private\n * @function Highcharts.Chart#getAxisMargins\n * @return {void}\n */\n getAxisMargins: function () {\n var chart = this, \n // [top, right, bottom, left]\n axisOffset = chart.axisOffset = [0, 0, 0, 0], colorAxis = chart.colorAxis, margin = chart.margin, getOffset = function (axes) {\n axes.forEach(function (axis) {\n if (axis.visible) {\n axis.getOffset();\n }\n });\n };\n // pre-render axes to get labels offset width\n if (chart.hasCartesianSeries) {\n getOffset(chart.axes);\n }\n else if (colorAxis && colorAxis.length) {\n getOffset(colorAxis);\n }\n // Add the axis offsets\n marginNames.forEach(function (m, side) {\n if (!defined(margin[side])) {\n chart[m] += axisOffset[side];\n }\n });\n chart.setChartSize();\n },\n /**\n * Reflows the chart to its container. By default, the chart reflows\n * automatically to its container following a `window.resize` event, as per\n * the [chart.reflow](https://api.highcharts.com/highcharts/chart.reflow)\n * option. However, there are no reliable events for div resize, so if the\n * container is resized without a window resize event, this must be called\n * explicitly.\n *\n * @sample highcharts/members/chart-reflow/\n * Resize div and reflow\n * @sample highcharts/chart/events-container/\n * Pop up and reflow\n *\n * @function Highcharts.Chart#reflow\n *\n * @param {global.Event} [e]\n * Event arguments. Used primarily when the function is called\n * internally as a response to window resize.\n */\n reflow: function (e) {\n var chart = this, optionsChart = chart.options.chart, renderTo = chart.renderTo, hasUserSize = (defined(optionsChart.width) &&\n defined(optionsChart.height)), width = optionsChart.width || H.getStyle(renderTo, 'width'), height = optionsChart.height || H.getStyle(renderTo, 'height'), target = e ? e.target : win;\n // Width and height checks for display:none. Target is doc in IE8 and\n // Opera, win in Firefox, Chrome and IE9.\n if (!hasUserSize &&\n !chart.isPrinting &&\n width &&\n height &&\n (target === win || target === doc)) {\n if (width !== chart.containerWidth ||\n height !== chart.containerHeight) {\n H.clearTimeout(chart.reflowTimeout);\n // When called from window.resize, e is set, else it's called\n // directly (#2224)\n chart.reflowTimeout = syncTimeout(function () {\n // Set size, it may have been destroyed in the meantime\n // (#1257)\n if (chart.container) {\n chart.setSize(undefined, undefined, false);\n }\n }, e ? 100 : 0);\n }\n chart.containerWidth = width;\n chart.containerHeight = height;\n }\n },\n /**\n * Toggle the event handlers necessary for auto resizing, depending on the\n * `chart.reflow` option.\n *\n * @private\n * @function Highcharts.Chart#setReflow\n * @param {boolean} [reflow]\n * @return {void}\n */\n setReflow: function (reflow) {\n var chart = this;\n if (reflow !== false && !this.unbindReflow) {\n this.unbindReflow = addEvent(win, 'resize', function (e) {\n // a removed event listener still runs in Edge and IE if the\n // listener was removed while the event runs, so check if the\n // chart is not destroyed (#11609)\n if (chart.options) {\n chart.reflow(e);\n }\n });\n addEvent(this, 'destroy', this.unbindReflow);\n }\n else if (reflow === false && this.unbindReflow) {\n // Unbind and unset\n this.unbindReflow = this.unbindReflow();\n }\n // The following will add listeners to re-fit the chart before and after\n // printing (#2284). However it only works in WebKit. Should have worked\n // in Firefox, but not supported in IE.\n /*\n if (win.matchMedia) {\n win.matchMedia('print').addListener(function reflow() {\n chart.reflow();\n });\n }\n //*/\n },\n /**\n * Resize the chart to a given width and height. In order to set the width\n * only, the height argument may be skipped. To set the height only, pass\n * `undefined` for the width.\n *\n * @sample highcharts/members/chart-setsize-button/\n * Test resizing from buttons\n * @sample highcharts/members/chart-setsize-jquery-resizable/\n * Add a jQuery UI resizable\n * @sample stock/members/chart-setsize/\n * Highstock with UI resizable\n *\n * @function Highcharts.Chart#setSize\n *\n * @param {number|null} [width]\n * The new pixel width of the chart. Since v4.2.6, the argument can\n * be `undefined` in order to preserve the current value (when\n * setting height only), or `null` to adapt to the width of the\n * containing element.\n *\n * @param {number|null} [height]\n * The new pixel height of the chart. Since v4.2.6, the argument can\n * be `undefined` in order to preserve the current value, or `null`\n * in order to adapt to the height of the containing element.\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation=true]\n * Whether and how to apply animation.\n *\n * @return {void}\n *\n * @fires Highcharts.Chart#event:endResize\n * @fires Highcharts.Chart#event:resize\n */\n setSize: function (width, height, animation) {\n var chart = this, renderer = chart.renderer, globalAnimation;\n // Handle the isResizing counter\n chart.isResizing += 1;\n // set the animation for the current process\n setAnimation(animation, chart);\n chart.oldChartHeight = chart.chartHeight;\n chart.oldChartWidth = chart.chartWidth;\n if (width !== undefined) {\n chart.options.chart.width = width;\n }\n if (height !== undefined) {\n chart.options.chart.height = height;\n }\n chart.getChartSize();\n // Resize the container with the global animation applied if enabled\n // (#2503)\n if (!chart.styledMode) {\n globalAnimation = renderer.globalAnimation;\n (globalAnimation ? animate : css)(chart.container, {\n width: chart.chartWidth + 'px',\n height: chart.chartHeight + 'px'\n }, globalAnimation);\n }\n chart.setChartSize(true);\n renderer.setSize(chart.chartWidth, chart.chartHeight, animation);\n // handle axes\n chart.axes.forEach(function (axis) {\n axis.isDirty = true;\n axis.setScale();\n });\n chart.isDirtyLegend = true; // force legend redraw\n chart.isDirtyBox = true; // force redraw of plot and chart border\n chart.layOutTitles(); // #2857\n chart.getMargins();\n chart.redraw(animation);\n chart.oldChartHeight = null;\n fireEvent(chart, 'resize');\n // Fire endResize and set isResizing back. If animation is disabled,\n // fire without delay\n syncTimeout(function () {\n if (chart) {\n fireEvent(chart, 'endResize', null, function () {\n chart.isResizing -= 1;\n });\n }\n }, animObject(globalAnimation).duration || 0);\n },\n /**\n * Set the public chart properties. This is done before and after the\n * pre-render to determine margin sizes.\n *\n * @private\n * @function Highcharts.Chart#setChartSize\n *\n * @param {boolean} skipAxes\n *\n * @return {void}\n *\n * @fires Highcharts.Chart#event:afterSetChartSize\n */\n setChartSize: function (skipAxes) {\n var chart = this, inverted = chart.inverted, renderer = chart.renderer, chartWidth = chart.chartWidth, chartHeight = chart.chartHeight, optionsChart = chart.options.chart, spacing = chart.spacing, clipOffset = chart.clipOffset, clipX, clipY, plotLeft, plotTop, plotWidth, plotHeight, plotBorderWidth;\n /**\n * The current left position of the plot area in pixels.\n *\n * @name Highcharts.Chart#plotLeft\n * @type {number}\n */\n chart.plotLeft = plotLeft = Math.round(chart.plotLeft);\n /**\n * The current top position of the plot area in pixels.\n *\n * @name Highcharts.Chart#plotTop\n * @type {number}\n */\n chart.plotTop = plotTop = Math.round(chart.plotTop);\n /**\n * The current width of the plot area in pixels.\n *\n * @name Highcharts.Chart#plotWidth\n * @type {number}\n */\n chart.plotWidth = plotWidth = Math.max(0, Math.round(chartWidth - plotLeft - chart.marginRight));\n /**\n * The current height of the plot area in pixels.\n *\n * @name Highcharts.Chart#plotHeight\n * @type {number}\n */\n chart.plotHeight = plotHeight = Math.max(0, Math.round(chartHeight - plotTop - chart.marginBottom));\n chart.plotSizeX = inverted ? plotHeight : plotWidth;\n chart.plotSizeY = inverted ? plotWidth : plotHeight;\n chart.plotBorderWidth = optionsChart.plotBorderWidth || 0;\n // Set boxes used for alignment\n chart.spacingBox = renderer.spacingBox = {\n x: spacing[3],\n y: spacing[0],\n width: chartWidth - spacing[3] - spacing[1],\n height: chartHeight - spacing[0] - spacing[2]\n };\n chart.plotBox = renderer.plotBox = {\n x: plotLeft,\n y: plotTop,\n width: plotWidth,\n height: plotHeight\n };\n plotBorderWidth = 2 * Math.floor(chart.plotBorderWidth / 2);\n clipX = Math.ceil(Math.max(plotBorderWidth, clipOffset[3]) / 2);\n clipY = Math.ceil(Math.max(plotBorderWidth, clipOffset[0]) / 2);\n chart.clipBox = {\n x: clipX,\n y: clipY,\n width: Math.floor(chart.plotSizeX -\n Math.max(plotBorderWidth, clipOffset[1]) / 2 -\n clipX),\n height: Math.max(0, Math.floor(chart.plotSizeY -\n Math.max(plotBorderWidth, clipOffset[2]) / 2 -\n clipY))\n };\n if (!skipAxes) {\n chart.axes.forEach(function (axis) {\n axis.setAxisSize();\n axis.setAxisTranslation();\n });\n }\n fireEvent(chart, 'afterSetChartSize', { skipAxes: skipAxes });\n },\n /**\n * Initial margins before auto size margins are applied.\n *\n * @private\n * @function Highcharts.Chart#resetMargins\n * @return {void}\n */\n resetMargins: function () {\n fireEvent(this, 'resetMargins');\n var chart = this, chartOptions = chart.options.chart;\n // Create margin and spacing array\n ['margin', 'spacing'].forEach(function splashArrays(target) {\n var value = chartOptions[target], values = isObject(value) ? value : [value, value, value, value];\n [\n 'Top',\n 'Right',\n 'Bottom',\n 'Left'\n ].forEach(function (sideName, side) {\n chart[target][side] = pick(chartOptions[target + sideName], values[side]);\n });\n });\n // Set margin names like chart.plotTop, chart.plotLeft,\n // chart.marginRight, chart.marginBottom.\n marginNames.forEach(function (m, side) {\n chart[m] = pick(chart.margin[side], chart.spacing[side]);\n });\n chart.axisOffset = [0, 0, 0, 0]; // top, right, bottom, left\n chart.clipOffset = [0, 0, 0, 0];\n },\n /**\n * Internal function to draw or redraw the borders and backgrounds for chart\n * and plot area.\n *\n * @private\n * @function Highcharts.Chart#drawChartBox\n * @return {void}\n * @fires Highcharts.Chart#event:afterDrawChartBox\n */\n drawChartBox: function () {\n var chart = this, optionsChart = chart.options.chart, renderer = chart.renderer, chartWidth = chart.chartWidth, chartHeight = chart.chartHeight, chartBackground = chart.chartBackground, plotBackground = chart.plotBackground, plotBorder = chart.plotBorder, chartBorderWidth, styledMode = chart.styledMode, plotBGImage = chart.plotBGImage, chartBackgroundColor = optionsChart.backgroundColor, plotBackgroundColor = optionsChart.plotBackgroundColor, plotBackgroundImage = optionsChart.plotBackgroundImage, mgn, bgAttr, plotLeft = chart.plotLeft, plotTop = chart.plotTop, plotWidth = chart.plotWidth, plotHeight = chart.plotHeight, plotBox = chart.plotBox, clipRect = chart.clipRect, clipBox = chart.clipBox, verb = 'animate';\n // Chart area\n if (!chartBackground) {\n chart.chartBackground = chartBackground = renderer.rect()\n .addClass('highcharts-background')\n .add();\n verb = 'attr';\n }\n if (!styledMode) {\n // Presentational\n chartBorderWidth = optionsChart.borderWidth || 0;\n mgn = chartBorderWidth + (optionsChart.shadow ? 8 : 0);\n bgAttr = {\n fill: chartBackgroundColor || 'none'\n };\n if (chartBorderWidth || chartBackground['stroke-width']) { // #980\n bgAttr.stroke = optionsChart.borderColor;\n bgAttr['stroke-width'] = chartBorderWidth;\n }\n chartBackground\n .attr(bgAttr)\n .shadow(optionsChart.shadow);\n }\n else {\n chartBorderWidth = mgn = chartBackground.strokeWidth();\n }\n chartBackground[verb]({\n x: mgn / 2,\n y: mgn / 2,\n width: chartWidth - mgn - chartBorderWidth % 2,\n height: chartHeight - mgn - chartBorderWidth % 2,\n r: optionsChart.borderRadius\n });\n // Plot background\n verb = 'animate';\n if (!plotBackground) {\n verb = 'attr';\n chart.plotBackground = plotBackground = renderer.rect()\n .addClass('highcharts-plot-background')\n .add();\n }\n plotBackground[verb](plotBox);\n if (!styledMode) {\n // Presentational attributes for the background\n plotBackground\n .attr({\n fill: plotBackgroundColor || 'none'\n })\n .shadow(optionsChart.plotShadow);\n // Create the background image\n if (plotBackgroundImage) {\n if (!plotBGImage) {\n chart.plotBGImage = renderer.image(plotBackgroundImage, plotLeft, plotTop, plotWidth, plotHeight).add();\n }\n else {\n plotBGImage.animate(plotBox);\n }\n }\n }\n // Plot clip\n if (!clipRect) {\n chart.clipRect = renderer.clipRect(clipBox);\n }\n else {\n clipRect.animate({\n width: clipBox.width,\n height: clipBox.height\n });\n }\n // Plot area border\n verb = 'animate';\n if (!plotBorder) {\n verb = 'attr';\n chart.plotBorder = plotBorder = renderer.rect()\n .addClass('highcharts-plot-border')\n .attr({\n zIndex: 1 // Above the grid\n })\n .add();\n }\n if (!styledMode) {\n // Presentational\n plotBorder.attr({\n stroke: optionsChart.plotBorderColor,\n 'stroke-width': optionsChart.plotBorderWidth || 0,\n fill: 'none'\n });\n }\n plotBorder[verb](plotBorder.crisp({\n x: plotLeft,\n y: plotTop,\n width: plotWidth,\n height: plotHeight\n }, -plotBorder.strokeWidth())); // #3282 plotBorder should be negative;\n // reset\n chart.isDirtyBox = false;\n fireEvent(this, 'afterDrawChartBox');\n },\n /**\n * Detect whether a certain chart property is needed based on inspecting its\n * options and series. This mainly applies to the chart.inverted property,\n * and in extensions to the chart.angular and chart.polar properties.\n *\n * @private\n * @function Highcharts.Chart#propFromSeries\n * @return {void}\n */\n propFromSeries: function () {\n var chart = this, optionsChart = chart.options.chart, klass, seriesOptions = chart.options.series, i, value;\n /**\n * The flag is set to `true` if a series of the chart is inverted.\n *\n * @name Highcharts.Chart#inverted\n * @type {boolean|undefined}\n */\n ['inverted', 'angular', 'polar'].forEach(function (key) {\n // The default series type's class\n klass = seriesTypes[(optionsChart.type ||\n optionsChart.defaultSeriesType)];\n // Get the value from available chart-wide properties\n value =\n // It is set in the options:\n optionsChart[key] ||\n // The default series class:\n (klass && klass.prototype[key]);\n // requires it\n // 4. Check if any the chart's series require it\n i = seriesOptions && seriesOptions.length;\n while (!value && i--) {\n klass = seriesTypes[seriesOptions[i].type];\n if (klass && klass.prototype[key]) {\n value = true;\n }\n }\n // Set the chart property\n chart[key] = value;\n });\n },\n /**\n * Internal function to link two or more series together, based on the\n * `linkedTo` option. This is done from `Chart.render`, and after\n * `Chart.addSeries` and `Series.remove`.\n *\n * @private\n * @function Highcharts.Chart#linkSeries\n * @return {void}\n * @fires Highcharts.Chart#event:afterLinkSeries\n */\n linkSeries: function () {\n var chart = this, chartSeries = chart.series;\n // Reset links\n chartSeries.forEach(function (series) {\n series.linkedSeries.length = 0;\n });\n // Apply new links\n chartSeries.forEach(function (series) {\n var linkedTo = series.options.linkedTo;\n if (isString(linkedTo)) {\n if (linkedTo === ':previous') {\n linkedTo = chart.series[series.index - 1];\n }\n else {\n linkedTo = chart.get(linkedTo);\n }\n // #3341 avoid mutual linking\n if (linkedTo && linkedTo.linkedParent !== series) {\n linkedTo.linkedSeries.push(series);\n series.linkedParent = linkedTo;\n series.visible = pick(series.options.visible, linkedTo.options.visible, series.visible); // #3879\n }\n }\n });\n fireEvent(this, 'afterLinkSeries');\n },\n /**\n * Render series for the chart.\n *\n * @private\n * @function Highcharts.Chart#renderSeries\n * @return {void}\n */\n renderSeries: function () {\n this.series.forEach(function (serie) {\n serie.translate();\n serie.render();\n });\n },\n /**\n * Render labels for the chart.\n *\n * @private\n * @function Highcharts.Chart#renderLabels\n * @return {void}\n */\n renderLabels: function () {\n var chart = this, labels = chart.options.labels;\n if (labels.items) {\n labels.items.forEach(function (label) {\n var style = extend(labels.style, label.style), x = pInt(style.left) + chart.plotLeft, y = pInt(style.top) + chart.plotTop + 12;\n // delete to prevent rewriting in IE\n delete style.left;\n delete style.top;\n chart.renderer.text(label.html, x, y)\n .attr({ zIndex: 2 })\n .css(style)\n .add();\n });\n }\n },\n /**\n * Render all graphics for the chart. Runs internally on initialization.\n *\n * @private\n * @function Highcharts.Chart#render\n * @return {void}\n */\n render: function () {\n var chart = this, axes = chart.axes, colorAxis = chart.colorAxis, renderer = chart.renderer, options = chart.options, correction = 0, // correction for X axis labels\n tempWidth, tempHeight, redoHorizontal, redoVertical, renderAxes = function (axes) {\n axes.forEach(function (axis) {\n if (axis.visible) {\n axis.render();\n }\n });\n };\n // Title\n chart.setTitle();\n /**\n * The overview of the chart's series.\n *\n * @name Highcharts.Chart#legend\n * @type {Highcharts.Legend}\n */\n chart.legend = new Legend(chart, options.legend);\n // Get stacks\n if (chart.getStacks) {\n chart.getStacks();\n }\n // Get chart margins\n chart.getMargins(true);\n chart.setChartSize();\n // Record preliminary dimensions for later comparison\n tempWidth = chart.plotWidth;\n axes.some(function (axis) {\n if (axis.horiz &&\n axis.visible &&\n axis.options.labels.enabled &&\n axis.series.length) {\n // 21 is the most common correction for X axis labels\n correction = 21;\n return true;\n }\n });\n // use Math.max to prevent negative plotHeight\n chart.plotHeight = Math.max(chart.plotHeight - correction, 0);\n tempHeight = chart.plotHeight;\n // Get margins by pre-rendering axes\n axes.forEach(function (axis) {\n axis.setScale();\n });\n chart.getAxisMargins();\n // If the plot area size has changed significantly, calculate tick\n // positions again\n redoHorizontal = tempWidth / chart.plotWidth > 1.1;\n // Height is more sensitive, use lower threshold\n redoVertical = tempHeight / chart.plotHeight > 1.05;\n if (redoHorizontal || redoVertical) {\n axes.forEach(function (axis) {\n if ((axis.horiz && redoHorizontal) ||\n (!axis.horiz && redoVertical)) {\n // update to reflect the new margins\n axis.setTickInterval(true);\n }\n });\n chart.getMargins(); // second pass to check for new labels\n }\n // Draw the borders and backgrounds\n chart.drawChartBox();\n // Axes\n if (chart.hasCartesianSeries) {\n renderAxes(axes);\n }\n else if (colorAxis && colorAxis.length) {\n renderAxes(colorAxis);\n }\n // The series\n if (!chart.seriesGroup) {\n chart.seriesGroup = renderer.g('series-group')\n .attr({ zIndex: 3 })\n .add();\n }\n chart.renderSeries();\n // Labels\n chart.renderLabels();\n // Credits\n chart.addCredits();\n // Handle responsiveness\n if (chart.setResponsive) {\n chart.setResponsive();\n }\n // Handle scaling\n chart.updateContainerScaling();\n // Set flag\n chart.hasRendered = true;\n },\n /**\n * Set a new credits label for the chart.\n *\n * @sample highcharts/credits/credits-update/\n * Add and update credits\n *\n * @function Highcharts.Chart#addCredits\n *\n * @param {Highcharts.CreditsOptions} credits\n * A configuration object for the new credits.\n *\n * @return {void}\n */\n addCredits: function (credits) {\n var chart = this;\n credits = merge(true, this.options.credits, credits);\n if (credits.enabled && !this.credits) {\n /**\n * The chart's credits label. The label has an `update` method that\n * allows setting new options as per the\n * [credits options set](https://api.highcharts.com/highcharts/credits).\n *\n * @name Highcharts.Chart#credits\n * @type {Highcharts.SVGElement}\n */\n this.credits = this.renderer.text(credits.text + (this.mapCredits || ''), 0, 0)\n .addClass('highcharts-credits')\n .on('click', function () {\n if (credits.href) {\n win.location.href = credits.href;\n }\n })\n .attr({\n align: credits.position.align,\n zIndex: 8\n });\n if (!chart.styledMode) {\n this.credits.css(credits.style);\n }\n this.credits\n .add()\n .align(credits.position);\n // Dynamically update\n this.credits.update = function (options) {\n chart.credits = chart.credits.destroy();\n chart.addCredits(options);\n };\n }\n },\n /**\n * Handle scaling, #11329 - when there is scaling/transform on the container\n * or on a parent element, we need to take this into account. We calculate\n * the scaling once here and it is picked up where we need to use it\n * (Pointer, Tooltip).\n *\n * @private\n * @function Highcharts.Chart#updateContainerScaling\n * @return {void}\n */\n updateContainerScaling: function () {\n var container = this.container;\n if (container.offsetWidth &&\n container.offsetHeight &&\n container.getBoundingClientRect) {\n var bb = container.getBoundingClientRect(), scaleX = bb.width / container.offsetWidth, scaleY = bb.height / container.offsetHeight;\n if (scaleX !== 1 || scaleY !== 1) {\n this.containerScaling = { scaleX: scaleX, scaleY: scaleY };\n }\n else {\n delete this.containerScaling;\n }\n }\n },\n /**\n * Remove the chart and purge memory. This method is called internally\n * before adding a second chart into the same container, as well as on\n * window unload to prevent leaks.\n *\n * @sample highcharts/members/chart-destroy/\n * Destroy the chart from a button\n * @sample stock/members/chart-destroy/\n * Destroy with Highstock\n *\n * @function Highcharts.Chart#destroy\n *\n * @return {void}\n *\n * @fires Highcharts.Chart#event:destroy\n */\n destroy: function () {\n var chart = this, axes = chart.axes, series = chart.series, container = chart.container, i, parentNode = container && container.parentNode;\n // fire the chart.destoy event\n fireEvent(chart, 'destroy');\n // Delete the chart from charts lookup array\n if (chart.renderer.forExport) {\n erase(charts, chart); // #6569\n }\n else {\n charts[chart.index] = undefined;\n }\n H.chartCount--;\n chart.renderTo.removeAttribute('data-highcharts-chart');\n // remove events\n removeEvent(chart);\n // ==== Destroy collections:\n // Destroy axes\n i = axes.length;\n while (i--) {\n axes[i] = axes[i].destroy();\n }\n // Destroy scroller & scroller series before destroying base series\n if (this.scroller && this.scroller.destroy) {\n this.scroller.destroy();\n }\n // Destroy each series\n i = series.length;\n while (i--) {\n series[i] = series[i].destroy();\n }\n // ==== Destroy chart properties:\n [\n 'title', 'subtitle', 'chartBackground', 'plotBackground',\n 'plotBGImage', 'plotBorder', 'seriesGroup', 'clipRect', 'credits',\n 'pointer', 'rangeSelector', 'legend', 'resetZoomButton', 'tooltip',\n 'renderer'\n ].forEach(function (name) {\n var prop = chart[name];\n if (prop && prop.destroy) {\n chart[name] = prop.destroy();\n }\n });\n // Remove container and all SVG, check container as it can break in IE\n // when destroyed before finished loading\n if (container) {\n container.innerHTML = '';\n removeEvent(container);\n if (parentNode) {\n discardElement(container);\n }\n }\n // clean it all up\n objectEach(chart, function (val, key) {\n delete chart[key];\n });\n },\n /**\n * Prepare for first rendering after all data are loaded.\n *\n * @private\n * @function Highcharts.Chart#firstRender\n * @return {void}\n *\n * @fires Highcharts.Chart#event:beforeRender\n */\n firstRender: function () {\n var chart = this, options = chart.options;\n // Hook for oldIE to check whether the chart is ready to render\n if (chart.isReadyToRender && !chart.isReadyToRender()) {\n return;\n }\n // Create the container\n chart.getContainer();\n chart.resetMargins();\n chart.setChartSize();\n // Set the common chart properties (mainly invert) from the given series\n chart.propFromSeries();\n // get axes\n chart.getAxes();\n // Initialize the series\n (isArray(options.series) ? options.series : []).forEach(\n // #9680\n function (serieOptions) {\n chart.initSeries(serieOptions);\n });\n chart.linkSeries();\n // Run an event after axes and series are initialized, but before\n // render. At this stage, the series data is indexed and cached in the\n // xData and yData arrays, so we can access those before rendering. Used\n // in Highstock.\n fireEvent(chart, 'beforeRender');\n // depends on inverted and on margins being set\n if (Pointer) {\n /**\n * The Pointer that keeps track of mouse and touch interaction.\n *\n * @memberof Highcharts.Chart\n * @name pointer\n * @type {Highcharts.Pointer}\n * @instance\n */\n chart.pointer = new Pointer(chart, options);\n }\n chart.render();\n // Fire the load event if there are no external images\n if (!chart.renderer.imgCount && chart.onload) {\n chart.onload();\n }\n // If the chart was rendered outside the top container, put it back in\n // (#3679)\n chart.temporaryDisplay(true);\n },\n /**\n * Internal function that runs on chart load, async if any images are loaded\n * in the chart. Runs the callbacks and triggers the `load` and `render`\n * events.\n *\n * @private\n * @function Highcharts.Chart#onload\n * @return {void}\n * @fires Highcharts.Chart#event:load\n * @fires Highcharts.Chart#event:render\n */\n onload: function () {\n // Run callbacks, first the ones registered by modules, then user's one\n this.callbacks.concat([this.callback]).forEach(function (fn) {\n // Chart destroyed in its own callback (#3600)\n if (fn && this.index !== undefined) {\n fn.apply(this, [this]);\n }\n }, this);\n fireEvent(this, 'load');\n fireEvent(this, 'render');\n // Set up auto resize, check for not destroyed (#6068)\n if (defined(this.index)) {\n this.setReflow(this.options.chart.reflow);\n }\n // Don't run again\n this.onload = null;\n }\n }); // end Chart\n\n });\n _registerModule(_modules, 'parts/ScrollablePlotArea.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * Highcharts feature to make the Y axis stay fixed when scrolling the chart\n * horizontally on mobile devices. Supports left and right side axes.\n */\n /*\n WIP on vertical scrollable plot area (#9378). To do:\n - Bottom axis positioning\n - Test with Gantt\n - Look for size optimizing the code\n - API and demos\n */\n var pick = U.pick;\n var addEvent = H.addEvent, Chart = H.Chart;\n /**\n * Options for a scrollable plot area. This feature provides a minimum size for\n * the plot area of the chart. If the size gets smaller than this, typically\n * on mobile devices, a native browser scrollbar is presented. This scrollbar\n * provides smooth scrolling for the contents of the plot area, whereas the\n * title, legend and unaffected axes are fixed.\n *\n * Since v7.1.2, a scrollable plot area can be defined for either horizontal or\n * vertical scrolling, depending on whether the `minWidth` or `minHeight`\n * option is set.\n *\n * @sample highcharts/chart/scrollable-plotarea\n * Scrollable plot area\n * @sample highcharts/chart/scrollable-plotarea-vertical\n * Vertically scrollable plot area\n * @sample {gantt} highcharts/chart/scrollable-plotarea-vertical\n * Gantt chart with vertically scrollable plot area\n *\n * @since 6.1.0\n * @product highcharts gantt\n * @apioption chart.scrollablePlotArea\n */\n /**\n * The minimum height for the plot area. If it gets smaller than this, the plot\n * area will become scrollable.\n *\n * @type {number}\n * @apioption chart.scrollablePlotArea.minHeight\n */\n /**\n * The minimum width for the plot area. If it gets smaller than this, the plot\n * area will become scrollable.\n *\n * @type {number}\n * @apioption chart.scrollablePlotArea.minWidth\n */\n /**\n * The initial scrolling position of the scrollable plot area. Ranges from 0 to\n * 1, where 0 aligns the plot area to the left and 1 aligns it to the right.\n * Typically we would use 1 if the chart has right aligned Y axes.\n *\n * @type {number}\n * @apioption chart.scrollablePlotArea.scrollPositionX\n */\n /**\n * The initial scrolling position of the scrollable plot area. Ranges from 0 to\n * 1, where 0 aligns the plot area to the top and 1 aligns it to the bottom.\n *\n * @type {number}\n * @apioption chart.scrollablePlotArea.scrollPositionY\n */\n /**\n * The opacity of mask applied on one of the sides of the plot\n * area.\n *\n * @sample {highcharts} highcharts/chart/scrollable-plotarea-opacity\n * Disabled opacity for the mask\n *\n * @type {number}\n * @default 0.85\n * @since 7.1.1\n * @apioption chart.scrollablePlotArea.opacity\n */\n ''; // detach API doclets\n /* eslint-disable no-invalid-this, valid-jsdoc */\n addEvent(Chart, 'afterSetChartSize', function (e) {\n var scrollablePlotArea = this.options.chart.scrollablePlotArea, scrollableMinWidth = scrollablePlotArea && scrollablePlotArea.minWidth, scrollableMinHeight = scrollablePlotArea && scrollablePlotArea.minHeight, scrollablePixelsX, scrollablePixelsY, corrections;\n if (!this.renderer.forExport) {\n // The amount of pixels to scroll, the difference between chart\n // width and scrollable width\n if (scrollableMinWidth) {\n this.scrollablePixelsX = scrollablePixelsX = Math.max(0, scrollableMinWidth - this.chartWidth);\n if (scrollablePixelsX) {\n this.plotWidth += scrollablePixelsX;\n if (this.inverted) {\n this.clipBox.height += scrollablePixelsX;\n this.plotBox.height += scrollablePixelsX;\n }\n else {\n this.clipBox.width += scrollablePixelsX;\n this.plotBox.width += scrollablePixelsX;\n }\n corrections = {\n // Corrections for right side\n 1: { name: 'right', value: scrollablePixelsX }\n };\n }\n // Currently we can only do either X or Y\n }\n else if (scrollableMinHeight) {\n this.scrollablePixelsY = scrollablePixelsY = Math.max(0, scrollableMinHeight - this.chartHeight);\n if (scrollablePixelsY) {\n this.plotHeight += scrollablePixelsY;\n if (this.inverted) {\n this.clipBox.width += scrollablePixelsY;\n this.plotBox.width += scrollablePixelsY;\n }\n else {\n this.clipBox.height += scrollablePixelsY;\n this.plotBox.height += scrollablePixelsY;\n }\n corrections = {\n 2: { name: 'bottom', value: scrollablePixelsY }\n };\n }\n }\n if (corrections && !e.skipAxes) {\n this.axes.forEach(function (axis) {\n // For right and bottom axes, only fix the plot line length\n if (corrections[axis.side]) {\n // Get the plot lines right in getPlotLinePath,\n // temporarily set it to the adjusted plot width.\n axis.getPlotLinePath = function () {\n var marginName = corrections[axis.side].name, correctionValue = corrections[axis.side].value, \n // axis.right or axis.bottom\n margin = this[marginName], path;\n // Temporarily adjust\n this[marginName] = margin - correctionValue;\n path = H.Axis.prototype.getPlotLinePath.apply(this, arguments);\n // Reset\n this[marginName] = margin;\n return path;\n };\n }\n else {\n // Apply the corrected plotWidth\n axis.setAxisSize();\n axis.setAxisTranslation();\n }\n });\n }\n }\n });\n addEvent(Chart, 'render', function () {\n if (this.scrollablePixelsX || this.scrollablePixelsY) {\n if (this.setUpScrolling) {\n this.setUpScrolling();\n }\n this.applyFixed();\n }\n else if (this.fixedDiv) { // Has been in scrollable mode\n this.applyFixed();\n }\n });\n /**\n * @private\n * @function Highcharts.Chart#setUpScrolling\n * @return {void}\n */\n Chart.prototype.setUpScrolling = function () {\n var attribs = {\n WebkitOverflowScrolling: 'touch',\n overflowX: 'hidden',\n overflowY: 'hidden'\n };\n if (this.scrollablePixelsX) {\n attribs.overflowX = 'auto';\n }\n if (this.scrollablePixelsY) {\n attribs.overflowY = 'auto';\n }\n // Add the necessary divs to provide scrolling\n this.scrollingContainer = H.createElement('div', {\n 'className': 'highcharts-scrolling'\n }, attribs, this.renderTo);\n this.innerContainer = H.createElement('div', {\n 'className': 'highcharts-inner-container'\n }, null, this.scrollingContainer);\n // Now move the container inside\n this.innerContainer.appendChild(this.container);\n // Don't run again\n this.setUpScrolling = null;\n };\n /**\n * These elements are moved over to the fixed renderer and stay fixed when the\n * user scrolls the chart\n * @private\n */\n Chart.prototype.moveFixedElements = function () {\n var container = this.container, fixedRenderer = this.fixedRenderer, fixedSelectors = [\n '.highcharts-contextbutton',\n '.highcharts-credits',\n '.highcharts-legend',\n '.highcharts-legend-checkbox',\n '.highcharts-navigator-series',\n '.highcharts-navigator-xaxis',\n '.highcharts-navigator-yaxis',\n '.highcharts-navigator',\n '.highcharts-reset-zoom',\n '.highcharts-scrollbar',\n '.highcharts-subtitle',\n '.highcharts-title'\n ], axisClass;\n if (this.scrollablePixelsX && !this.inverted) {\n axisClass = '.highcharts-yaxis';\n }\n else if (this.scrollablePixelsX && this.inverted) {\n axisClass = '.highcharts-xaxis';\n }\n else if (this.scrollablePixelsY && !this.inverted) {\n axisClass = '.highcharts-xaxis';\n }\n else if (this.scrollablePixelsY && this.inverted) {\n axisClass = '.highcharts-yaxis';\n }\n fixedSelectors.push(axisClass, axisClass + '-labels');\n fixedSelectors.forEach(function (className) {\n [].forEach.call(container.querySelectorAll(className), function (elem) {\n (elem.namespaceURI === fixedRenderer.SVG_NS ?\n fixedRenderer.box :\n fixedRenderer.box.parentNode).appendChild(elem);\n elem.style.pointerEvents = 'auto';\n });\n });\n };\n /**\n * @private\n * @function Highcharts.Chart#applyFixed\n * @return {void}\n */\n Chart.prototype.applyFixed = function () {\n var fixedRenderer, scrollableWidth, scrollableHeight, firstTime = !this.fixedDiv, scrollableOptions = this.options.chart.scrollablePlotArea;\n // First render\n if (firstTime) {\n this.fixedDiv = H.createElement('div', {\n className: 'highcharts-fixed'\n }, {\n position: 'absolute',\n overflow: 'hidden',\n pointerEvents: 'none',\n zIndex: 2\n }, null, true);\n this.renderTo.insertBefore(this.fixedDiv, this.renderTo.firstChild);\n this.renderTo.style.overflow = 'visible';\n this.fixedRenderer = fixedRenderer = new H.Renderer(this.fixedDiv, this.chartWidth, this.chartHeight);\n // Mask\n this.scrollableMask = fixedRenderer\n .path()\n .attr({\n fill: H.color(this.options.chart.backgroundColor || '#fff').setOpacity(pick(scrollableOptions.opacity, 0.85)).get(),\n zIndex: -1\n })\n .addClass('highcharts-scrollable-mask')\n .add();\n this.moveFixedElements();\n addEvent(this, 'afterShowResetZoom', this.moveFixedElements);\n addEvent(this, 'afterLayOutTitles', this.moveFixedElements);\n }\n else {\n // Set the size of the fixed renderer to the visible width\n this.fixedRenderer.setSize(this.chartWidth, this.chartHeight);\n }\n // Increase the size of the scrollable renderer and background\n scrollableWidth = this.chartWidth + (this.scrollablePixelsX || 0);\n scrollableHeight = this.chartHeight + (this.scrollablePixelsY || 0);\n H.stop(this.container);\n this.container.style.width = scrollableWidth + 'px';\n this.container.style.height = scrollableHeight + 'px';\n this.renderer.boxWrapper.attr({\n width: scrollableWidth,\n height: scrollableHeight,\n viewBox: [0, 0, scrollableWidth, scrollableHeight].join(' ')\n });\n this.chartBackground.attr({\n width: scrollableWidth,\n height: scrollableHeight\n });\n if (this.scrollablePixelsY) {\n this.scrollingContainer.style.height = this.chartHeight + 'px';\n }\n // Set scroll position\n if (firstTime) {\n if (scrollableOptions.scrollPositionX) {\n this.scrollingContainer.scrollLeft =\n this.scrollablePixelsX *\n scrollableOptions.scrollPositionX;\n }\n if (scrollableOptions.scrollPositionY) {\n this.scrollingContainer.scrollTop =\n this.scrollablePixelsY *\n scrollableOptions.scrollPositionY;\n }\n }\n // Mask behind the left and right side\n var axisOffset = this.axisOffset, maskTop = this.plotTop - axisOffset[0] - 1, maskLeft = this.plotLeft - axisOffset[3] - 1, maskBottom = this.plotTop + this.plotHeight + axisOffset[2] + 1, maskRight = this.plotLeft + this.plotWidth + axisOffset[1] + 1, maskPlotRight = this.plotLeft + this.plotWidth -\n (this.scrollablePixelsX || 0), maskPlotBottom = this.plotTop + this.plotHeight -\n (this.scrollablePixelsY || 0), d;\n if (this.scrollablePixelsX) {\n d = [\n // Left side\n 'M', 0, maskTop,\n 'L', this.plotLeft - 1, maskTop,\n 'L', this.plotLeft - 1, maskBottom,\n 'L', 0, maskBottom,\n 'Z',\n // Right side\n 'M', maskPlotRight, maskTop,\n 'L', this.chartWidth, maskTop,\n 'L', this.chartWidth, maskBottom,\n 'L', maskPlotRight, maskBottom,\n 'Z'\n ];\n }\n else if (this.scrollablePixelsY) {\n d = [\n // Top side\n 'M', maskLeft, 0,\n 'L', maskLeft, this.plotTop - 1,\n 'L', maskRight, this.plotTop - 1,\n 'L', maskRight, 0,\n 'Z',\n // Bottom side\n 'M', maskLeft, maskPlotBottom,\n 'L', maskLeft, this.chartHeight,\n 'L', maskRight, this.chartHeight,\n 'L', maskRight, maskPlotBottom,\n 'Z'\n ];\n }\n else {\n d = ['M', 0, 0];\n }\n if (this.redrawTrigger !== 'adjustHeight') {\n this.scrollableMask.attr({\n d: d\n });\n }\n };\n\n });\n _registerModule(_modules, 'parts/Point.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (Highcharts, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * Function callback when a series point is clicked. Return false to cancel the\n * action.\n *\n * @callback Highcharts.PointClickCallbackFunction\n *\n * @param {Highcharts.Point} this\n * The point where the event occured.\n *\n * @param {Highcharts.PointClickEventObject} event\n * Event arguments.\n */\n /**\n * Common information for a click event on a series point.\n *\n * @interface Highcharts.PointClickEventObject\n * @extends Highcharts.PointerEventObject\n */ /**\n * Clicked point.\n * @name Highcharts.PointClickEventObject#point\n * @type {Highcharts.Point}\n */\n /**\n * Events for each single point.\n * @interface Highcharts.PointEventsOptionsObject\n */ /**\n * Fires when a point is clicked. One parameter, event, is passed to the\n * function, containing common event information.\n *\n * If the `series.allowPointSelect` option is true, the default action for the\n * point's click event is to toggle the point's select state. Returning `false`\n * cancels this action.\n * @name Highcharts.PointEventsOptionsObject#click\n * @type {Highcharts.PointClickCallbackFunction|undefined}\n */ /**\n * Fires when the mouse leaves the area close to the point. One parameter,\n * `event`, is passed to the function, containing common event information.\n * @name Highcharts.PointEventsOptionsObject#mouseOut\n * @type {Highcharts.PointMouseOutCallbackFunction|undefined}\n */ /**\n * Fires when the mouse enters the area close to the point. One parameter,\n * `event`, is passed to the function, containing common event information.\n * @name Highcharts.PointEventsOptionsObject#mouseOver\n * @type {Highcharts.PointMouseOverCallbackFunction|undefined}\n */ /**\n * Fires when the point is removed using the `.remove()` method. One parameter,\n * `event`, is passed to the function. Returning `false` cancels the operation.\n * @name Highcharts.PointEventsOptionsObject#remove\n * @type {Highcharts.PointRemoveCallbackFunction|undefined}\n */ /**\n * Fires when the point is updated programmatically through the `.update()``\n * method. One parameter, `event`, is passed to the function. The new point\n * options can be accessed through event.options. Returning `false` cancels the\n * operation.\n * @name Highcharts.PointEventsOptionsObject#update\n * @type {Highcharts.PointUpdateCallbackFunction|undefined}\n */\n /**\n * Configuration hash for the data label and tooltip formatters.\n *\n * @interface Highcharts.PointLabelObject\n */ /**\n * The point's current color.\n * @name Highcharts.PointLabelObject#color\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject|undefined}\n */ /**\n * The point's current color index, used in styled mode instead of `color`. The\n * color index is inserted in class names used for styling.\n * @name Highcharts.PointLabelObject#colorIndex\n * @type {number}\n */ /**\n * The name of the related point.\n * @name Highcharts.PointLabelObject#key\n * @type {string|undefined}\n */ /**\n * The percentage for related points in a stacked series or pies.\n * @name Highcharts.PointLabelObject#percentage\n * @type {number}\n */ /**\n * The related point.\n * @name Highcharts.PointLabelObject#point\n * @type {Highcharts.Point}\n */ /**\n * The related series.\n * @name Highcharts.PointLabelObject#series\n * @type {Highcharts.Series}\n */ /**\n * The total of values in either a stack for stacked series, or a pie in a pie\n * series.\n * @name Highcharts.PointLabelObject#total\n * @type {number|undefined}\n */ /**\n * For categorized axes this property holds the category name for the point. For\n * other axes it holds the X value.\n * @name Highcharts.PointLabelObject#x\n * @type {number|string|undefined}\n */ /**\n * The y value of the point.\n * @name Highcharts.PointLabelObject#y\n * @type {number|undefined}\n */\n /**\n * States for a single point marker.\n *\n * @interface Highcharts.PointMarkerStatesOptionsObject\n */ /**\n * The hover state for a single point marker.\n * @name Highcharts.PointMarkerStatesOptionsObject#hover\n * @type {Highcharts.PointStatesHoverOptionsObject}\n */ /**\n * @name Highcharts.PointMarkerStatesOptionsObject#inactive\n * @type {Highcharts.PointStatesInactiveOptionsObject}\n */ /**\n * The normal state of a single point marker. Currently only used for setting\n * animation when returning to normal state from hover.\n * @name Highcharts.PointMarkerStatesOptionsObject#normal\n * @type {Highcharts.PointStatesNormalOptionsObject}\n */ /**\n * The appearance of the point marker when selected. In order to allow a point\n * to be selected, set the `series.allowPointSelect` option to true.\n * @name Highcharts.PointMarkerStatesOptionsObject#select\n * @type {Highcharts.PointStatesSelectOptionsObject}\n */\n /**\n * @interface Highcharts.PointMarkerOptionsObject\n */ /**\n * Enable or disable the point marker. If `undefined`, the markers are hidden\n * when the data is dense, and shown for more widespread data points.\n * @name Highcharts.PointMarkerOptionsObject#enabled\n * @type {boolean|undefined}\n */ /**\n * The threshold for how dense the point markers should be before they are\n * hidden, given that `enabled` is not defined. The number indicates the\n * horizontal distance between the two closest points in the series, as\n * multiples of the `marker.radius`. In other words, the default value of 2\n * means points are hidden if overlapping horizontally.\n * @name Highcharts.PointMarkerOptionsObject#enabledThreshold\n * @type {number|undefined}\n */ /**\n * The fill color of the point marker. When `undefined`, the series' or point's\n * color is used.\n * @name Highcharts.PointMarkerOptionsObject#fillColor\n * @type {ColorString|GradientColorObject|PatternObject|undefined}\n */ /**\n * Image markers only. Set the image width explicitly. When using this option,\n * a `width` must also be set.\n * @name Highcharts.PointMarkerOptionsObject#height\n * @type {number|undefined}\n */ /**\n * The color of the point marker's outline. When `undefined`, the series' or\n * point's color is used.\n * @name Highcharts.PointMarkerOptionsObject#lineColor\n * @type {ColorString|undefined}\n */ /**\n * The width of the point marker's outline.\n * @name Highcharts.PointMarkerOptionsObject#lineWidth\n * @type {number|undefined}\n */ /**\n * The radius of the point marker.\n * @name Highcharts.PointMarkerOptionsObject#radius\n * @type {number|undefined}\n */ /**\n * States for a single point marker.\n * @name Highcharts.PointMarkerOptionsObject#states\n * @type {PointStatesOptionsObject|undefined}\n */ /**\n * A predefined shape or symbol for the marker. When undefined, the symbol is\n * pulled from options.symbols. Other possible values are \"circle\", \"square\",\n * \"diamond\", \"triangle\" and \"triangle-down\".\n *\n * Additionally, the URL to a graphic can be given on this form:\n * \"url(graphic.png)\". Note that for the image to be applied to exported charts,\n * its URL needs to be accessible by the export server.\n *\n * Custom callbacks for symbol path generation can also be added to\n * `Highcharts.SVGRenderer.prototype.symbols`.\n * @name Highcharts.PointMarkerOptionsObject#symbol\n * @type {string|undefined}\n */ /**\n * Image markers only. Set the image width explicitly. When using this option, a\n * `height` must also be set.\n * @name Highcharts.PointMarkerOptionsObject#width\n * @type {number|undefined}\n */\n /**\n * Gets fired when the mouse leaves the area close to the point.\n *\n * @callback Highcharts.PointMouseOutCallbackFunction\n *\n * @param {Highcharts.Point} this\n * Point where the event occured.\n *\n * @param {global.PointerEvent} event\n * Event that occured.\n */\n /**\n * Gets fired when the mouse enters the area close to the point.\n *\n * @callback Highcharts.PointMouseOverCallbackFunction\n *\n * @param {Highcharts.Point} this\n * Point where the event occured.\n *\n * @param {global.Event} event\n * Event that occured.\n */\n /**\n * The generic point options for all series.\n *\n * In TypeScript you have to extend `PointOptionsObject` with an additional\n * declaration to allow custom data options:\n *\n * ```\n * declare interface PointOptionsObject {\n * customProperty: string;\n * }\n * ```\n *\n * @interface Highcharts.PointOptionsObject\n */ /**\n * An additional, individual class name for the data point's graphic\n * representation.\n * @name Highcharts.PointOptionsObject#className\n * @type {string|undefined}\n */ /**\n * Individual color for the point. By default the color is pulled from the\n * global colors array. In styled mode, the color option doesn't take effect.\n * Instead, use colorIndex.\n * @name Highcharts.PointOptionsObject#color\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject|undefined}\n */ /**\n * A specific color index to use for the point, so its graphic representations\n * are given the class name highcharts-color-{n}. In styled mode this will\n * change the color of the graphic. In non-styled mode, the color by is set by\n * the fill attribute, so the change in class name won't have a visual effect by\n * default.\n * @name Highcharts.PointOptionsObject#colorIndex\n * @type {number|undefined}\n */ /**\n * The id of a series in the drilldown.series array to use for a drilldown for\n * this point.\n * @name Highcharts.PointOptionsObject#drilldown\n * @type {string|undefined}\n */ /**\n * The individual point events.\n * @name Highcharts.PointOptionsObject#events\n * @type {Highcharts.PointEventsOptionsObject|undefined}\n */ /**\n * An id for the point. This can be used after render time to get a pointer to\n * the point object through `chart.get()`.\n * @name Highcharts.PointOptionsObject#id\n * @type {string|undefined}\n */ /**\n * Options for the point markers of line-like series.\n * @name Highcharts.PointOptionsObject#marker\n * @type {Highcharts.PointMarkerOptionsObject|undefined}\n */ /**\n * The name of the point as shown in the legend, tooltip, dataLabels etc.\n * @name Highcharts.PointOptionsObject#name\n * @type {string|undefined}\n */ /**\n * Whether the data point is selected initially.\n * @name Highcharts.PointOptionsObject#selected\n * @type {boolean|undefined}\n */ /**\n * The x value of the point. For datetime axes, the X value is the timestamp in\n * milliseconds since 1970.\n * @name Highcharts.PointOptionsObject#x\n * @type {number|undefined}\n */ /**\n * The y value of the point.\n * @name Highcharts.PointOptionsObject#y\n * @type {number|null|undefined}\n */\n /**\n * Possible option types for a data point.\n *\n * @typedef {number|string|Array<(number|string)>|Highcharts.PointOptionsObject|null} Highcharts.PointOptionsType\n */\n /**\n * Gets fired when the point is removed using the `.remove()` method.\n *\n * @callback Highcharts.PointRemoveCallbackFunction\n *\n * @param {Highcharts.Point} this\n * Point where the event occured.\n *\n * @param {global.Event} event\n * Event that occured.\n */\n /**\n * The hover state for a single point marker.\n * @interface Highcharts.PointStatesHoverOptionsObject\n */ /**\n * Animation when hovering over the point marker.\n * @name Highcharts.PointStatesHoverOptionsObject#animation\n * @type {boolean|Highcharts.AnimationOptionsObject}\n */ /**\n * Enable or disable the point marker.\n * @name Highcharts.PointStatesHoverOptionsObject#enabled\n * @type {boolean|undefined}\n */ /**\n * The fill color of the marker in hover state. When `undefined`, the series' or\n * point's fillColor for normal state is used.\n * @name Highcharts.PointStatesHoverOptionsObject#fillColor\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject|undefined}\n */ /**\n * The color of the point marker's outline. When `undefined`, the series' or\n * point's lineColor for normal state is used.\n * @name Highcharts.PointStatesHoverOptionsObject#lineColor\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject|undefined}\n */ /**\n * The width of the point marker's outline. When `undefined`, the series' or\n * point's lineWidth for normal state is used.\n * @name Highcharts.PointStatesHoverOptionsObject#lineWidth\n * @type {number|undefined}\n */ /**\n * The additional line width for a hovered point.\n * @name Highcharts.PointStatesHoverOptionsObject#lineWidthPlus\n * @type {number|undefined}\n */ /**\n * The radius of the point marker. In hover state, it defaults to the normal\n * state's radius + 2 as per the radiusPlus option.\n * @name Highcharts.PointStatesHoverOptionsObject#radius\n * @type {number|undefined}\n */ /**\n * The number of pixels to increase the radius of the hovered point.\n * @name Highcharts.PointStatesHoverOptionsObject#radiusPlus\n * @type {number|undefined}\n */\n /**\n * @interface Highcharts.PointStatesInactiveOptionsObject\n */ /**\n * Opacity of inactive markers.\n * @name Highcharts.PointStatesInactiveOptionsObject#opacity\n * @type {number|undefined}\n */\n /**\n * The normal state of a single point marker. Currently only used for setting\n * animation when returning to normal state from hover.\n *\n * @interface Highcharts.PointStatesNormalOptionsObject\n */ /**\n * Animation when returning to normal state after hovering.\n * @name Highcharts.PointStatesNormalOptionsObject#animation\n * @type {boolean|Highcharts.AnimationOptionsObject|undefined}\n */\n /**\n * States for a single point marker.\n *\n * @interface Highcharts.PointStatesOptionsObject\n */ /**\n * The hover state for a single point marker.\n * @name Highcharts.PointStatesOptionsObject#hover\n * @type {Highcharts.PointStatesHoverOptionsObject|undefined}\n */ /**\n * The hover state for a single point marker.\n * @name Highcharts.PointStatesOptionsObject#inactive\n * @type {Highcharts.PointStatesInactiveOptionsObject|undefined}\n */ /**\n * The hover state for a single point marker.\n * @name Highcharts.PointStatesOptionsObject#normal\n * @type {Highcharts.PointStatesNormalOptionsObject|undefined}\n */ /**\n * The hover state for a single point marker.\n * @name Highcharts.PointStatesOptionsObject#select\n * @type {Highcharts.PointStatesSelectOptionsObject|undefined}\n */\n /**\n * The appearance of the point marker when selected. In order to allow a point\n * to be selected, set the `series.allowPointSelect` option to true.\n *\n * @interface Highcharts.PointStatesSelectOptionsObject\n */ /**\n * Enable or disable visible feedback for selection.\n * @name Highcharts.PointStatesSelectOptionsObject#enabled\n * @type {boolean|undefined}\n */ /**\n * The fill color of the point marker.\n * @name Highcharts.PointStatesSelectOptionsObject#fillColor\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject|undefined}\n */ /**\n * The color of the point marker's outline. When `undefined`, the series' or\n * point's color is used.\n * @name Highcharts.PointStatesSelectOptionsObject#lineColor\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject|undefined}\n */ /**\n * The width of the point marker's outline.\n * @name Highcharts.PointStatesSelectOptionsObject#lineWidth\n * @type {number|undefined}\n */ /**\n * The radius of the point marker. In hover state, it defaults to the normal\n * state's radius + 2.\n * @name Highcharts.PointStatesSelectOptionsObject#radius\n * @type {number|undefined}\n */\n /**\n * Gets fired when the point is updated programmatically through the `.update()`\n * method.\n *\n * @callback Highcharts.PointUpdateCallbackFunction\n *\n * @param {Highcharts.Point} this\n * Point where the event occured.\n *\n * @param {Highcharts.PointUpdateEventObject} event\n * Event that occured.\n */\n /**\n * Information about the update event.\n *\n * @interface Highcharts.PointUpdateEventObject\n * @extends global.Event\n */ /**\n * Options data of the update event.\n * @name Highcharts.PointUpdateEventObject#options\n * @type {Highcharts.PointOptionsType}\n */\n var defined = U.defined, erase = U.erase, extend = U.extend, isArray = U.isArray, isNumber = U.isNumber, isObject = U.isObject, pick = U.pick;\n var Point, H = Highcharts, fireEvent = H.fireEvent, format = H.format, uniqueKey = H.uniqueKey, removeEvent = H.removeEvent;\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * The Point object. The point objects are generated from the `series.data`\n * configuration objects or raw numbers. They can be accessed from the\n * `Series.points` array. Other ways to instantiate points are through {@link\n * Highcharts.Series#addPoint} or {@link Highcharts.Series#setData}.\n *\n * @class\n * @name Highcharts.Point\n */\n Highcharts.Point = Point = function () { };\n Highcharts.Point.prototype = {\n /**\n * Initialize the point. Called internally based on the `series.data`\n * option.\n *\n * @function Highcharts.Point#init\n *\n * @param {Highcharts.Series} series\n * The series object containing this point.\n *\n * @param {Highcharts.PointOptionsType} options\n * The data in either number, array or object format.\n *\n * @param {number} [x]\n * Optionally, the X value of the point.\n *\n * @return {Highcharts.Point}\n * The Point instance.\n *\n * @fires Highcharts.Point#event:afterInit\n */\n init: function (series, options, x) {\n /**\n * The series object associated with the point.\n *\n * @name Highcharts.Point#series\n * @type {Highcharts.Series}\n */\n this.series = series;\n this.applyOptions(options, x);\n // Add a unique ID to the point if none is assigned\n this.id = defined(this.id) ? this.id : uniqueKey();\n this.resolveColor();\n series.chart.pointCount++;\n fireEvent(this, 'afterInit');\n return this;\n },\n /**\n * @private\n * @function Highcharts.Point#resolveColor\n * @return {void}\n */\n resolveColor: function () {\n var series = this.series, colors, optionsChart = series.chart.options.chart, colorCount = optionsChart.colorCount, styledMode = series.chart.styledMode, colorIndex;\n /**\n * The point's current color.\n *\n * @name Highcharts.Point#color\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject|undefined}\n */\n if (!styledMode && !this.options.color) {\n this.color = series.color; // #3445\n }\n if (series.options.colorByPoint) {\n if (!styledMode) {\n colors = series.options.colors || series.chart.options.colors;\n this.color = this.color || colors[series.colorCounter];\n colorCount = colors.length;\n }\n colorIndex = series.colorCounter;\n series.colorCounter++;\n // loop back to zero\n if (series.colorCounter === colorCount) {\n series.colorCounter = 0;\n }\n }\n else {\n colorIndex = series.colorIndex;\n }\n /**\n * The point's current color index, used in styled mode instead of\n * `color`. The color index is inserted in class names used for styling.\n *\n * @name Highcharts.Point#colorIndex\n * @type {number}\n */\n this.colorIndex = pick(this.colorIndex, colorIndex);\n },\n /**\n * Apply the options containing the x and y data and possible some extra\n * properties. Called on point init or from point.update.\n *\n * @private\n * @function Highcharts.Point#applyOptions\n *\n * @param {Highcharts.PointOptionsType} options\n * The point options as defined in series.data.\n *\n * @param {number} [x]\n * Optionally, the x value.\n *\n * @return {Highcharts.Point}\n * The Point instance.\n */\n applyOptions: function (options, x) {\n var point = this, series = point.series, pointValKey = series.options.pointValKey || series.pointValKey;\n options = Point.prototype.optionsToObject.call(this, options);\n // copy options directly to point\n extend(point, options);\n /**\n * The point's options as applied in the initial configuration, or\n * extended through `Point.update`.\n *\n * In TypeScript you have to extend `PointOptionsObject` via an\n * additional interface to allow custom data options:\n *\n * ```\n * declare interface PointOptionsObject {\n * customProperty: string;\n * }\n * ```\n *\n * @name Highcharts.Point#options\n * @type {Highcharts.PointOptionsObject}\n */\n point.options = point.options ?\n extend(point.options, options) :\n options;\n // Since options are copied into the Point instance, some accidental\n // options must be shielded (#5681)\n if (options.group) {\n delete point.group;\n }\n if (options.dataLabels) {\n delete point.dataLabels;\n }\n /**\n * The y value of the point.\n * @name Highcharts.Point#y\n * @type {number|undefined}\n */\n // For higher dimension series types. For instance, for ranges, point.y\n // is mapped to point.low.\n if (pointValKey) {\n point.y = point[pointValKey];\n }\n point.isNull = pick(point.isValid && !point.isValid(), point.x === null || !isNumber(point.y)); // #3571, check for NaN\n point.formatPrefix = point.isNull ? 'null' : 'point'; // #9233, #10874\n // The point is initially selected by options (#5777)\n if (point.selected) {\n point.state = 'select';\n }\n /**\n * The x value of the point.\n * @name Highcharts.Point#x\n * @type {number}\n */\n // If no x is set by now, get auto incremented value. All points must\n // have an x value, however the y value can be null to create a gap in\n // the series\n if ('name' in point &&\n x === undefined &&\n series.xAxis &&\n series.xAxis.hasNames) {\n point.x = series.xAxis.nameToX(point);\n }\n if (point.x === undefined && series) {\n if (x === undefined) {\n point.x = series.autoIncrement(point);\n }\n else {\n point.x = x;\n }\n }\n return point;\n },\n /**\n * Set a value in an object, on the property defined by key. The key\n * supports nested properties using dot notation. The function modifies the\n * input object and does not make a copy.\n *\n * @function Highcharts.Point#setNestedProperty\n *\n * @param {T} object\n * The object to set the value on.\n *\n * @param {*} value\n * The value to set.\n *\n * @param {string} key\n * Key to the property to set.\n *\n * @return {T}\n * The modified object.\n */\n setNestedProperty: function (object, value, key) {\n var nestedKeys = key.split('.');\n nestedKeys.reduce(function (result, key, i, arr) {\n var isLastKey = arr.length - 1 === i;\n result[key] = (isLastKey ?\n value :\n isObject(result[key], true) ?\n result[key] :\n {});\n return result[key];\n }, object);\n return object;\n },\n /**\n * Transform number or array configs into objects. Also called for object\n * configs. Used internally to unify the different configuration formats for\n * points. For example, a simple number `10` in a line series will be\n * transformed to `{ y: 10 }`, and an array config like `[1, 10]` in a\n * scatter series will be transformed to `{ x: 1, y: 10 }`.\n *\n * @function Highcharts.Point#optionsToObject\n *\n * @param {Highcharts.PointOptionsType} options\n * The input option.\n *\n * @return {Highcharts.Dictionary<*>}\n * Transformed options.\n */\n optionsToObject: function (options) {\n var ret = {}, series = this.series, keys = series.options.keys, pointArrayMap = keys || series.pointArrayMap || ['y'], valueCount = pointArrayMap.length, firstItemType, i = 0, j = 0;\n if (isNumber(options) || options === null) {\n ret[pointArrayMap[0]] = options;\n }\n else if (isArray(options)) {\n // with leading x value\n if (!keys && options.length > valueCount) {\n firstItemType = typeof options[0];\n if (firstItemType === 'string') {\n ret.name = options[0];\n }\n else if (firstItemType === 'number') {\n ret.x = options[0];\n }\n i++;\n }\n while (j < valueCount) {\n // Skip undefined positions for keys\n if (!keys || options[i] !== undefined) {\n if (pointArrayMap[j].indexOf('.') > 0) {\n // Handle nested keys, e.g. ['color.pattern.image']\n // Avoid function call unless necessary.\n H.Point.prototype.setNestedProperty(ret, options[i], pointArrayMap[j]);\n }\n else {\n ret[pointArrayMap[j]] = options[i];\n }\n }\n i++;\n j++;\n }\n }\n else if (typeof options === 'object') {\n ret = options;\n // This is the fastest way to detect if there are individual point\n // dataLabels that need to be considered in drawDataLabels. These\n // can only occur in object configs.\n if (options.dataLabels) {\n series._hasPointLabels = true;\n }\n // Same approach as above for markers\n if (options.marker) {\n series._hasPointMarkers = true;\n }\n }\n return ret;\n },\n /**\n * Get the CSS class names for individual points. Used internally where the\n * returned value is set on every point.\n *\n * @function Highcharts.Point#getClassName\n *\n * @return {string}\n * The class names.\n */\n getClassName: function () {\n return 'highcharts-point' +\n (this.selected ? ' highcharts-point-select' : '') +\n (this.negative ? ' highcharts-negative' : '') +\n (this.isNull ? ' highcharts-null-point' : '') +\n (this.colorIndex !== undefined ? ' highcharts-color-' +\n this.colorIndex : '') +\n (this.options.className ? ' ' + this.options.className : '') +\n (this.zone && this.zone.className ? ' ' +\n this.zone.className.replace('highcharts-negative', '') : '');\n },\n /**\n * In a series with `zones`, return the zone that the point belongs to.\n *\n * @function Highcharts.Point#getZone\n *\n * @return {Highcharts.PlotSeriesZonesOptions}\n * The zone item.\n */\n getZone: function () {\n var series = this.series, zones = series.zones, zoneAxis = series.zoneAxis || 'y', i = 0, zone;\n zone = zones[i];\n while (this[zoneAxis] >= zone.value) {\n zone = zones[++i];\n }\n // For resetting or reusing the point (#8100)\n if (!this.nonZonedColor) {\n this.nonZonedColor = this.color;\n }\n if (zone && zone.color && !this.options.color) {\n this.color = zone.color;\n }\n else {\n this.color = this.nonZonedColor;\n }\n return zone;\n },\n /**\n * Utility to check if point has new shape type. Used in column series and\n * all others that are based on column series.\n *\n * @return boolean|undefined\n */\n hasNewShapeType: function () {\n return this.graphic &&\n this.graphic.element.nodeName !== this.shapeType;\n },\n /**\n * Destroy a point to clear memory. Its reference still stays in\n * `series.data`.\n *\n * @private\n * @function Highcharts.Point#destroy\n * @return {void}\n */\n destroy: function () {\n var point = this, series = point.series, chart = series.chart, hoverPoints = chart.hoverPoints, prop;\n chart.pointCount--;\n if (hoverPoints) {\n point.setState();\n erase(hoverPoints, point);\n if (!hoverPoints.length) {\n chart.hoverPoints = null;\n }\n }\n if (point === chart.hoverPoint) {\n point.onMouseOut();\n }\n // Remove all events and elements\n if (point.graphic || point.dataLabel || point.dataLabels) {\n removeEvent(point);\n point.destroyElements();\n }\n if (point.legendItem) { // pies have legend items\n chart.legend.destroyItem(point);\n }\n for (prop in point) { // eslint-disable-line guard-for-in\n point[prop] = null;\n }\n },\n /**\n * Destroy SVG elements associated with the point.\n *\n * @private\n * @function Highcharts.Point#destroyElements\n * @param {Highcharts.Dictionary} [kinds]\n * @return {void}\n */\n destroyElements: function (kinds) {\n var point = this, props = [], prop, i;\n kinds = kinds || { graphic: 1, dataLabel: 1 };\n if (kinds.graphic) {\n props.push('graphic', 'shadowGroup');\n }\n if (kinds.dataLabel) {\n props.push('dataLabel', 'dataLabelUpper', 'connector');\n }\n i = props.length;\n while (i--) {\n prop = props[i];\n if (point[prop]) {\n point[prop] = point[prop].destroy();\n }\n }\n ['dataLabel', 'connector'].forEach(function (prop) {\n var plural = prop + 's';\n if (kinds[prop] && point[plural]) {\n point[plural].forEach(function (item) {\n if (item.element) {\n item.destroy();\n }\n });\n delete point[plural];\n }\n });\n },\n /**\n * Return the configuration hash needed for the data label and tooltip\n * formatters.\n *\n * @function Highcharts.Point#getLabelConfig\n *\n * @return {Highcharts.PointLabelObject}\n * Abstract object used in formatters and formats.\n */\n getLabelConfig: function () {\n return {\n x: this.category,\n y: this.y,\n color: this.color,\n colorIndex: this.colorIndex,\n key: this.name || this.category,\n series: this.series,\n point: this,\n percentage: this.percentage,\n total: this.total || this.stackTotal\n };\n },\n /**\n * Extendable method for formatting each point's tooltip line.\n *\n * @function Highcharts.Point#tooltipFormatter\n *\n * @param {string} pointFormat\n * The point format.\n *\n * @return {string}\n * A string to be concatenated in to the common tooltip text.\n */\n tooltipFormatter: function (pointFormat) {\n // Insert options for valueDecimals, valuePrefix, and valueSuffix\n var series = this.series, seriesTooltipOptions = series.tooltipOptions, valueDecimals = pick(seriesTooltipOptions.valueDecimals, ''), valuePrefix = seriesTooltipOptions.valuePrefix || '', valueSuffix = seriesTooltipOptions.valueSuffix || '';\n // Replace default point style with class name\n if (series.chart.styledMode) {\n pointFormat =\n series.chart.tooltip.styledModeFormat(pointFormat);\n }\n // Loop over the point array map and replace unformatted values with\n // sprintf formatting markup\n (series.pointArrayMap || ['y']).forEach(function (key) {\n key = '{point.' + key; // without the closing bracket\n if (valuePrefix || valueSuffix) {\n pointFormat = pointFormat.replace(RegExp(key + '}', 'g'), valuePrefix + key + '}' + valueSuffix);\n }\n pointFormat = pointFormat.replace(RegExp(key + '}', 'g'), key + ':,.' + valueDecimals + 'f}');\n });\n return format(pointFormat, {\n point: this,\n series: this.series\n }, series.chart.time);\n },\n /**\n * Fire an event on the Point object.\n *\n * @private\n * @function Highcharts.Point#firePointEvent\n *\n * @param {string} eventType\n * Type of the event.\n *\n * @param {Highcharts.Dictionary|Event} [eventArgs]\n * Additional event arguments.\n *\n * @param {Highcharts.EventCallbackFunction|Function} [defaultFunction]\n * Default event handler.\n *\n * @fires Highcharts.Point#event:*\n */\n firePointEvent: function (eventType, eventArgs, defaultFunction) {\n var point = this, series = this.series, seriesOptions = series.options;\n // load event handlers on demand to save time on mouseover/out\n if (seriesOptions.point.events[eventType] ||\n (point.options &&\n point.options.events &&\n point.options.events[eventType])) {\n this.importEvents();\n }\n // add default handler if in selection mode\n if (eventType === 'click' && seriesOptions.allowPointSelect) {\n defaultFunction = function (event) {\n // Control key is for Windows, meta (= Cmd key) for Mac, Shift\n // for Opera.\n if (point.select) { // #2911\n point.select(null, event.ctrlKey || event.metaKey || event.shiftKey);\n }\n };\n }\n fireEvent(this, eventType, eventArgs, defaultFunction);\n },\n /**\n * For categorized axes this property holds the category name for the\n * point. For other axes it holds the X value.\n *\n * @name Highcharts.Point#category\n * @type {number|string}\n */\n /**\n * The name of the point. The name can be given as the first position of the\n * point configuration array, or as a `name` property in the configuration:\n *\n * @example\n * // Array config\n * data: [\n * ['John', 1],\n * ['Jane', 2]\n * ]\n *\n * // Object config\n * data: [{\n * name: 'John',\n * y: 1\n * }, {\n * name: 'Jane',\n * y: 2\n * }]\n *\n * @name Highcharts.Point#name\n * @type {string}\n */\n /**\n * The percentage for points in a stacked series or pies.\n *\n * @name Highcharts.Point#percentage\n * @type {number}\n */\n /**\n * The total of values in either a stack for stacked series, or a pie in a\n * pie series.\n *\n * @name Highcharts.Point#total\n * @type {number}\n */\n /**\n * For certain series types, like pie charts, where individual points can\n * be shown or hidden.\n *\n * @name Highcharts.Point#visible\n * @type {boolean}\n */\n visible: true\n };\n\n });\n _registerModule(_modules, 'parts/Series.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * This is a placeholder type of the possible series options for\n * [Highcharts](../highcharts/series), [Highstock](../highstock/series),\n * [Highmaps](../highmaps/series), and [Gantt](../gantt/series).\n *\n * In TypeScript is this dynamically generated to reference all possible types\n * of series options.\n *\n * @ignore-declaration\n * @typedef {Highcharts.SeriesOptions|Highcharts.Dictionary<*>} Highcharts.SeriesOptionsType\n */\n /**\n * Function callback when a series has been animated.\n *\n * @callback Highcharts.SeriesAfterAnimateCallbackFunction\n *\n * @param {Highcharts.Series} this\n * The series where the event occured.\n *\n * @param {Highcharts.SeriesAfterAnimateEventObject} event\n * Event arguments.\n */\n /**\n * Event information regarding completed animation of a series.\n *\n * @interface Highcharts.SeriesAfterAnimateEventObject\n */ /**\n * Animated series.\n * @name Highcharts.SeriesAfterAnimateEventObject#target\n * @type {Highcharts.Series}\n */ /**\n * Event type.\n * @name Highcharts.SeriesAfterAnimateEventObject#type\n * @type {\"afterAnimate\"}\n */\n /**\n * Function callback when the checkbox next to the series' name in the legend is\n * clicked.\n *\n * @callback Highcharts.SeriesCheckboxClickCallbackFunction\n *\n * @param {Highcharts.Series} this\n * The series where the event occured.\n *\n * @param {Highcharts.SeriesCheckboxClickEventObject} event\n * Event arguments.\n */\n /**\n * Event information regarding check of a series box.\n *\n * @interface Highcharts.SeriesCheckboxClickEventObject\n */ /**\n * Whether the box has been checked.\n * @name Highcharts.SeriesCheckboxClickEventObject#checked\n * @type {boolean}\n */ /**\n * Related series.\n * @name Highcharts.SeriesCheckboxClickEventObject#item\n * @type {Highcharts.Series}\n */ /**\n * Related series.\n * @name Highcharts.SeriesCheckboxClickEventObject#target\n * @type {Highcharts.Series}\n */ /**\n * Event type.\n * @name Highcharts.SeriesCheckboxClickEventObject#type\n * @type {\"checkboxClick\"}\n */\n /**\n * Function callback when a series is clicked. Return false to cancel toogle\n * actions.\n *\n * @callback Highcharts.SeriesClickCallbackFunction\n *\n * @param {Highcharts.Series} this\n * The series where the event occured.\n *\n * @param {Highcharts.SeriesClickEventObject} event\n * Event arguments.\n */\n /**\n * Common information for a click event on a series.\n *\n * @interface Highcharts.SeriesClickEventObject\n * @extends global.Event\n */ /**\n * Nearest point on the graph.\n * @name Highcharts.SeriesClickEventObject#point\n * @type {Highcharts.Point}\n */\n /**\n * Gets fired when the series is hidden after chart generation time, either by\n * clicking the legend item or by calling `.hide()`.\n *\n * @callback Highcharts.SeriesHideCallbackFunction\n *\n * @param {Highcharts.Series} this\n * The series where the event occured.\n *\n * @param {global.Event} event\n * The event that occured.\n */\n /**\n * The SVG value used for the `stroke-linecap` and `stroke-linejoin` of a line\n * graph.\n *\n * @typedef {\"butt\"|\"round\"|\"square\"|string} Highcharts.SeriesLinecapValue\n */\n /**\n * Gets fired when the legend item belonging to the series is clicked. The\n * default action is to toggle the visibility of the series. This can be\n * prevented by returning `false` or calling `event.preventDefault()`.\n *\n * @callback Highcharts.SeriesLegendItemClickCallbackFunction\n *\n * @param {Highcharts.Series} this\n * The series where the event occured.\n *\n * @param {Highcharts.SeriesLegendItemClickEventObject} event\n * The event that occured.\n */\n /**\n * Information about the event.\n *\n * @interface Highcharts.SeriesLegendItemClickEventObject\n */ /**\n * Related browser event.\n * @name Highcharts.SeriesLegendItemClickEventObject#browserEvent\n * @type {global.PointerEvent}\n */ /**\n * Prevent the default action of toggle the visibility of the series.\n * @name Highcharts.SeriesLegendItemClickEventObject#preventDefault\n * @type {Function}\n */ /**\n * Related series.\n * @name Highcharts.SeriesCheckboxClickEventObject#target\n * @type {Highcharts.Series}\n */ /**\n * Event type.\n * @name Highcharts.SeriesCheckboxClickEventObject#type\n * @type {\"checkboxClick\"}\n */\n /**\n * Gets fired when the mouse leaves the graph.\n *\n * @callback Highcharts.SeriesMouseOutCallbackFunction\n *\n * @param {Highcharts.Series} this\n * Series where the event occured.\n *\n * @param {global.PointerEvent} event\n * Event that occured.\n */\n /**\n * Gets fired when the mouse enters the graph.\n *\n * @callback Highcharts.SeriesMouseOverCallbackFunction\n *\n * @param {Highcharts.Series} this\n * Series where the event occured.\n *\n * @param {global.PointerEvent} event\n * Event that occured.\n */\n /**\n * Translation and scale for the plot area of a series.\n *\n * @interface Highcharts.SeriesPlotBoxObject\n */ /**\n * @name Highcharts.SeriesPlotBoxObject#scaleX\n * @type {number}\n */ /**\n * @name Highcharts.SeriesPlotBoxObject#scaleY\n * @type {number}\n */ /**\n * @name Highcharts.SeriesPlotBoxObject#translateX\n * @type {number}\n */ /**\n * @name Highcharts.SeriesPlotBoxObject#translateY\n * @type {number}\n */\n /**\n * Gets fired when the series is shown after chart generation time, either by\n * clicking the legend item or by calling `.show()`.\n *\n * @callback Highcharts.SeriesShowCallbackFunction\n *\n * @param {Highcharts.Series} this\n * Series where the event occured.\n *\n * @param {global.Event} event\n * Event that occured.\n */\n var arrayMax = U.arrayMax, arrayMin = U.arrayMin, defined = U.defined, erase = U.erase, extend = U.extend, isArray = U.isArray, isNumber = U.isNumber, isString = U.isString, objectEach = U.objectEach, pick = U.pick, splat = U.splat, syncTimeout = U.syncTimeout;\n var addEvent = H.addEvent, animObject = H.animObject, correctFloat = H.correctFloat, defaultOptions = H.defaultOptions, defaultPlotOptions = H.defaultPlotOptions, fireEvent = H.fireEvent, LegendSymbolMixin = H.LegendSymbolMixin, // @todo add as a requirement\n merge = H.merge, Point = H.Point, // @todo add as a requirement\n removeEvent = H.removeEvent, SVGElement = H.SVGElement, win = H.win;\n /**\n * This is the base series prototype that all other series types inherit from.\n * A new series is initialized either through the\n * [series](https://api.highcharts.com/highcharts/series)\n * option structure, or after the chart is initialized, through\n * {@link Highcharts.Chart#addSeries}.\n *\n * The object can be accessed in a number of ways. All series and point event\n * handlers give a reference to the `series` object. The chart object has a\n * {@link Highcharts.Chart#series|series} property that is a collection of all\n * the chart's series. The point objects and axis objects also have the same\n * reference.\n *\n * Another way to reference the series programmatically is by `id`. Add an id\n * in the series configuration options, and get the series object by\n * {@link Highcharts.Chart#get}.\n *\n * Configuration options for the series are given in three levels. Options for\n * all series in a chart are given in the\n * [plotOptions.series](https://api.highcharts.com/highcharts/plotOptions.series)\n * object. Then options for all series of a specific type\n * are given in the plotOptions of that type, for example `plotOptions.line`.\n * Next, options for one single series are given in the series array, or as\n * arguments to `chart.addSeries`.\n *\n * The data in the series is stored in various arrays.\n *\n * - First, `series.options.data` contains all the original config options for\n * each point whether added by options or methods like `series.addPoint`.\n *\n * - Next, `series.data` contains those values converted to points, but in case\n * the series data length exceeds the `cropThreshold`, or if the data is\n * grouped, `series.data` doesn't contain all the points. It only contains the\n * points that have been created on demand.\n *\n * - Then there's `series.points` that contains all currently visible point\n * objects. In case of cropping, the cropped-away points are not part of this\n * array. The `series.points` array starts at `series.cropStart` compared to\n * `series.data` and `series.options.data`. If however the series data is\n * grouped, these can't be correlated one to one.\n *\n * - `series.xData` and `series.processedXData` contain clean x values,\n * equivalent to `series.data` and `series.points`.\n *\n * - `series.yData` and `series.processedYData` contain clean y values,\n * equivalent to `series.data` and `series.points`.\n *\n * @class\n * @name Highcharts.Series\n *\n * @param {Highcharts.Chart} chart\n * The chart instance.\n *\n * @param {Highcharts.SeriesOptionsType|object} options\n * The series options.\n */ /**\n * The line series is the base type and is therefor the series base prototype.\n *\n * @private\n * @class\n * @name Highcharts.seriesTypes.line\n *\n * @augments Highcharts.Series\n */\n H.Series = H.seriesType('line', \n /**\n * Series options for specific data and the data itself. In TypeScript you\n * have to cast the series options to specific series types, to get all\n * possible options for a series.\n *\n * @example\n * // TypeScript example\n * Highcharts.chart('container', {\n * series: [{\n * color: '#06C',\n * data: [[0, 1], [2, 3]]\n * } as Highcharts.SeriesLineOptions ]\n * });\n *\n * @type {Array<*>}\n * @apioption series\n */\n /**\n * An id for the series. This can be used after render time to get a pointer\n * to the series object through `chart.get()`.\n *\n * @sample {highcharts} highcharts/plotoptions/series-id/\n * Get series by id\n *\n * @type {string}\n * @since 1.2.0\n * @apioption series.id\n */\n /**\n * The index of the series in the chart, affecting the internal index in the\n * `chart.series` array, the visible Z index as well as the order in the\n * legend.\n *\n * @type {number}\n * @since 2.3.0\n * @apioption series.index\n */\n /**\n * The sequential index of the series in the legend.\n *\n * @see [legend.reversed](#legend.reversed),\n * [yAxis.reversedStacks](#yAxis.reversedStacks)\n *\n * @sample {highcharts|highstock} highcharts/series/legendindex/\n * Legend in opposite order\n *\n * @type {number}\n * @apioption series.legendIndex\n */\n /**\n * The name of the series as shown in the legend, tooltip etc.\n *\n * @sample {highcharts} highcharts/series/name/\n * Series name\n * @sample {highmaps} maps/demo/category-map/\n * Series name\n *\n * @type {string}\n * @apioption series.name\n */\n /**\n * This option allows grouping series in a stacked chart. The stack option\n * can be a string or anything else, as long as the grouped series' stack\n * options match each other after conversion into a string.\n *\n * @sample {highcharts} highcharts/series/stack/\n * Stacked and grouped columns\n *\n * @type {number|string}\n * @since 2.1\n * @product highcharts highstock\n * @apioption series.stack\n */\n /**\n * The type of series, for example `line` or `column`. By default, the\n * series type is inherited from [chart.type](#chart.type), so unless the\n * chart is a combination of series types, there is no need to set it on the\n * series level.\n *\n * @sample {highcharts} highcharts/series/type/\n * Line and column in the same chart\n * @sample highcharts/series/type-dynamic/\n * Dynamic types with button selector\n * @sample {highmaps} maps/demo/mapline-mappoint/\n * Multiple types in the same map\n *\n * @type {string}\n * @apioption series.type\n */\n /**\n * When using dual or multiple x axes, this number defines which xAxis the\n * particular series is connected to. It refers to either the\n * {@link #xAxis.id|axis id}\n * or the index of the axis in the xAxis array, with 0 being the first.\n *\n * @type {number|string}\n * @default 0\n * @product highcharts highstock\n * @apioption series.xAxis\n */\n /**\n * When using dual or multiple y axes, this number defines which yAxis the\n * particular series is connected to. It refers to either the\n * {@link #yAxis.id|axis id}\n * or the index of the axis in the yAxis array, with 0 being the first.\n *\n * @sample {highcharts} highcharts/series/yaxis/\n * Apply the column series to the secondary Y axis\n *\n * @type {number|string}\n * @default 0\n * @product highcharts highstock\n * @apioption series.yAxis\n */\n /**\n * Define the visual z index of the series.\n *\n * @sample {highcharts} highcharts/plotoptions/series-zindex-default/\n * With no z index, the series defined last are on top\n * @sample {highcharts} highcharts/plotoptions/series-zindex/\n * With a z index, the series with the highest z index is on top\n * @sample {highstock} highcharts/plotoptions/series-zindex-default/\n * With no z index, the series defined last are on top\n * @sample {highstock} highcharts/plotoptions/series-zindex/\n * With a z index, the series with the highest z index is on top\n *\n * @type {number}\n * @product highcharts highstock\n * @apioption series.zIndex\n */\n null, \n /**\n * General options for all series types.\n *\n * @optionparent plotOptions.series\n */\n {\n /**\n * The SVG value used for the `stroke-linecap` and `stroke-linejoin`\n * of a line graph. Round means that lines are rounded in the ends and\n * bends.\n *\n * @type {Highcharts.SeriesLinecapValue}\n * @default round\n * @since 3.0.7\n * @apioption plotOptions.line.linecap\n */\n /**\n * Pixel width of the graph line.\n *\n * @see In styled mode, the line stroke-width can be set with the\n * `.highcharts-graph` class name.\n *\n * @sample {highcharts} highcharts/plotoptions/series-linewidth-general/\n * On all series\n * @sample {highcharts} highcharts/plotoptions/series-linewidth-specific/\n * On one single series\n *\n * @product highcharts highstock\n *\n * @private\n */\n lineWidth: 2,\n /**\n * For some series, there is a limit that shuts down initial animation\n * by default when the total number of points in the chart is too high.\n * For example, for a column chart and its derivatives, animation does\n * not run if there is more than 250 points totally. To disable this\n * cap, set `animationLimit` to `Infinity`.\n *\n * @type {number}\n * @apioption plotOptions.series.animationLimit\n */\n /**\n * Allow this series' points to be selected by clicking on the graphic\n * (columns, point markers, pie slices, map areas etc).\n *\n * The selected points can be handled by point select and unselect\n * events, or collectively by the [getSelectedPoints](\n * Highcharts.Chart#getSelectedPoints) function.\n *\n * And alternative way of selecting points is through dragging.\n *\n * @sample {highcharts} highcharts/plotoptions/series-allowpointselect-line/\n * Line\n * @sample {highcharts} highcharts/plotoptions/series-allowpointselect-column/\n * Column\n * @sample {highcharts} highcharts/plotoptions/series-allowpointselect-pie/\n * Pie\n * @sample {highcharts} highcharts/chart/events-selection-points/\n * Select a range of points through a drag selection\n * @sample {highmaps} maps/plotoptions/series-allowpointselect/\n * Map area\n * @sample {highmaps} maps/plotoptions/mapbubble-allowpointselect/\n * Map bubble\n *\n * @since 1.2.0\n *\n * @private\n */\n allowPointSelect: false,\n /**\n * If true, a checkbox is displayed next to the legend item to allow\n * selecting the series. The state of the checkbox is determined by\n * the `selected` option.\n *\n * @productdesc {highmaps}\n * Note that if a `colorAxis` is defined, the color axis is represented\n * in the legend, not the series.\n *\n * @sample {highcharts} highcharts/plotoptions/series-showcheckbox-true/\n * Show select box\n *\n * @since 1.2.0\n *\n * @private\n */\n showCheckbox: false,\n /**\n * Enable or disable the initial animation when a series is displayed.\n * The animation can also be set as a configuration object. Please\n * note that this option only applies to the initial animation of the\n * series itself. For other animations, see [chart.animation](\n * #chart.animation) and the animation parameter under the API methods.\n * The following properties are supported:\n *\n * - `duration`: The duration of the animation in milliseconds.\n *\n * - `easing`: Can be a string reference to an easing function set on\n * the `Math` object or a function. See the _Custom easing function_\n * demo below.\n *\n * Due to poor performance, animation is disabled in old IE browsers\n * for several chart types.\n *\n * @sample {highcharts} highcharts/plotoptions/series-animation-disabled/\n * Animation disabled\n * @sample {highcharts} highcharts/plotoptions/series-animation-slower/\n * Slower animation\n * @sample {highcharts} highcharts/plotoptions/series-animation-easing/\n * Custom easing function\n * @sample {highstock} stock/plotoptions/animation-slower/\n * Slower animation\n * @sample {highstock} stock/plotoptions/animation-easing/\n * Custom easing function\n * @sample {highmaps} maps/plotoptions/series-animation-true/\n * Animation enabled on map series\n * @sample {highmaps} maps/plotoptions/mapbubble-animation-false/\n * Disabled on mapbubble series\n *\n * @type {boolean|Highcharts.AnimationOptionsObject}\n * @default {highcharts} true\n * @default {highstock} true\n * @default {highmaps} false\n *\n * @private\n */\n animation: {\n /**\n * @type {number}\n * @default 1000\n * @apioption plotOptions.series.animation.duration\n */\n duration: 1000\n },\n /**\n * An additional class name to apply to the series' graphical elements.\n * This option does not replace default class names of the graphical\n * element.\n *\n * @type {string}\n * @since 5.0.0\n * @apioption plotOptions.series.className\n */\n /**\n * Disable this option to allow series rendering in the whole plotting\n * area.\n *\n * **Note:** Clipping should be always enabled when\n * [chart.zoomType](#chart.zoomType) is set\n *\n * @sample {highcharts} highcharts/plotoptions/series-clip/\n * Disabled clipping\n *\n * @default true\n * @type {boolean}\n * @since 3.0.0\n * @apioption plotOptions.series.clip\n */\n /**\n * The main color of the series. In line type series it applies to the\n * line and the point markers unless otherwise specified. In bar type\n * series it applies to the bars unless a color is specified per point.\n * The default value is pulled from the `options.colors` array.\n *\n * In styled mode, the color can be defined by the\n * [colorIndex](#plotOptions.series.colorIndex) option. Also, the series\n * color can be set with the `.highcharts-series`,\n * `.highcharts-color-{n}`, `.highcharts-{type}-series` or\n * `.highcharts-series-{n}` class, or individual classes given by the\n * `className` option.\n *\n * @productdesc {highmaps}\n * In maps, the series color is rarely used, as most choropleth maps use\n * the color to denote the value of each point. The series color can\n * however be used in a map with multiple series holding categorized\n * data.\n *\n * @sample {highcharts} highcharts/plotoptions/series-color-general/\n * General plot option\n * @sample {highcharts} highcharts/plotoptions/series-color-specific/\n * One specific series\n * @sample {highcharts} highcharts/plotoptions/series-color-area/\n * Area color\n * @sample {highcharts} highcharts/series/infographic/\n * Pattern fill\n * @sample {highmaps} maps/demo/category-map/\n * Category map by multiple series\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @apioption plotOptions.series.color\n */\n /**\n * Styled mode only. A specific color index to use for the series, so\n * its graphic representations are given the class name\n * `highcharts-color-{n}`.\n *\n * @type {number}\n * @since 5.0.0\n * @apioption plotOptions.series.colorIndex\n */\n /**\n * Whether to connect a graph line across null points, or render a gap\n * between the two points on either side of the null.\n *\n * @sample {highcharts} highcharts/plotoptions/series-connectnulls-false/\n * False by default\n * @sample {highcharts} highcharts/plotoptions/series-connectnulls-true/\n * True\n *\n * @type {boolean}\n * @default false\n * @product highcharts highstock\n * @apioption plotOptions.series.connectNulls\n */\n /**\n * You can set the cursor to \"pointer\" if you have click events attached\n * to the series, to signal to the user that the points and lines can\n * be clicked.\n *\n * In styled mode, the series cursor can be set with the same classes\n * as listed under [series.color](#plotOptions.series.color).\n *\n * @sample {highcharts} highcharts/plotoptions/series-cursor-line/\n * On line graph\n * @sample {highcharts} highcharts/plotoptions/series-cursor-column/\n * On columns\n * @sample {highcharts} highcharts/plotoptions/series-cursor-scatter/\n * On scatter markers\n * @sample {highstock} stock/plotoptions/cursor/\n * Pointer on a line graph\n * @sample {highmaps} maps/plotoptions/series-allowpointselect/\n * Map area\n * @sample {highmaps} maps/plotoptions/mapbubble-allowpointselect/\n * Map bubble\n *\n * @type {string|Highcharts.CursorValue}\n * @apioption plotOptions.series.cursor\n */\n /**\n * A name for the dash style to use for the graph, or for some series\n * types the outline of each shape.\n *\n * In styled mode, the\n * [stroke dash-array](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/series-dashstyle/)\n * can be set with the same classes as listed under\n * [series.color](#plotOptions.series.color).\n *\n * @sample {highcharts} highcharts/plotoptions/series-dashstyle-all/\n * Possible values demonstrated\n * @sample {highcharts} highcharts/plotoptions/series-dashstyle/\n * Chart suitable for printing in black and white\n * @sample {highstock} highcharts/plotoptions/series-dashstyle-all/\n * Possible values demonstrated\n * @sample {highmaps} highcharts/plotoptions/series-dashstyle-all/\n * Possible values demonstrated\n * @sample {highmaps} maps/plotoptions/series-dashstyle/\n * Dotted borders on a map\n *\n * @type {Highcharts.DashStyleValue}\n * @default Solid\n * @since 2.1\n * @apioption plotOptions.series.dashStyle\n */\n /**\n * A description of the series to add to the screen reader information\n * about the series.\n *\n * @type {string}\n * @since 5.0.0\n * @requires modules/accessibility\n * @apioption plotOptions.series.description\n */\n /**\n * Enable or disable the mouse tracking for a specific series. This\n * includes point tooltips and click events on graphs and points. For\n * large datasets it improves performance.\n *\n * @sample {highcharts} highcharts/plotoptions/series-enablemousetracking-false/\n * No mouse tracking\n * @sample {highmaps} maps/plotoptions/series-enablemousetracking-false/\n * No mouse tracking\n *\n * @type {boolean}\n * @default true\n * @apioption plotOptions.series.enableMouseTracking\n */\n /**\n * Whether to use the Y extremes of the total chart width or only the\n * zoomed area when zooming in on parts of the X axis. By default, the\n * Y axis adjusts to the min and max of the visible data. Cartesian\n * series only.\n *\n * @type {boolean}\n * @default false\n * @since 4.1.6\n * @product highcharts highstock gantt\n * @apioption plotOptions.series.getExtremesFromAll\n */\n /**\n * An array specifying which option maps to which key in the data point\n * array. This makes it convenient to work with unstructured data arrays\n * from different sources.\n *\n * @see [series.data](#series.line.data)\n *\n * @sample {highcharts|highstock} highcharts/series/data-keys/\n * An extended data array with keys\n * @sample {highcharts|highstock} highcharts/series/data-nested-keys/\n * Nested keys used to access object properties\n *\n * @type {Array}\n * @since 4.1.6\n * @apioption plotOptions.series.keys\n */\n /**\n * The line cap used for line ends and line joins on the graph.\n *\n * @type {Highcharts.SeriesLinecapValue}\n * @default round\n * @product highcharts highstock\n * @apioption plotOptions.series.linecap\n */\n /**\n * The [id](#series.id) of another series to link to. Additionally,\n * the value can be \":previous\" to link to the previous series. When\n * two series are linked, only the first one appears in the legend.\n * Toggling the visibility of this also toggles the linked series.\n *\n * @sample {highcharts|highstock} highcharts/demo/arearange-line/\n * Linked series\n *\n * @type {string}\n * @since 3.0\n * @product highcharts highstock gantt\n * @apioption plotOptions.series.linkedTo\n */\n /**\n * Options for the corresponding navigator series if `showInNavigator`\n * is `true` for this series. Available options are the same as any\n * series, documented at [plotOptions](#plotOptions.series) and\n * [series](#series).\n *\n * These options are merged with options in [navigator.series](\n * #navigator.series), and will take precedence if the same option is\n * defined both places.\n *\n * @see [navigator.series](#navigator.series)\n *\n * @type {Highcharts.PlotSeriesOptions}\n * @since 5.0.0\n * @product highstock\n * @apioption plotOptions.series.navigatorOptions\n */\n /**\n * The color for the parts of the graph or points that are below the\n * [threshold](#plotOptions.series.threshold).\n *\n * @see In styled mode, a negative color is applied by setting this option\n * to `true` combined with the `.highcharts-negative` class name.\n *\n * @sample {highcharts} highcharts/plotoptions/series-negative-color/\n * Spline, area and column\n * @sample {highcharts} highcharts/plotoptions/arearange-negativecolor/\n * Arearange\n * @sample {highcharts} highcharts/css/series-negative-color/\n * Styled mode\n * @sample {highstock} highcharts/plotoptions/series-negative-color/\n * Spline, area and column\n * @sample {highstock} highcharts/plotoptions/arearange-negativecolor/\n * Arearange\n * @sample {highmaps} highcharts/plotoptions/series-negative-color/\n * Spline, area and column\n * @sample {highmaps} highcharts/plotoptions/arearange-negativecolor/\n * Arearange\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @since 3.0\n * @apioption plotOptions.series.negativeColor\n */\n /**\n * Same as\n * [accessibility.pointDescriptionFormatter](#accessibility.pointDescriptionFormatter),\n * but for an individual series. Overrides the chart wide configuration.\n *\n * @type {Function}\n * @since 5.0.12\n * @apioption plotOptions.series.pointDescriptionFormatter\n */\n /**\n * If no x values are given for the points in a series, `pointInterval`\n * defines the interval of the x values. For example, if a series\n * contains one value every decade starting from year 0, set\n * `pointInterval` to `10`. In true `datetime` axes, the `pointInterval`\n * is set in milliseconds.\n *\n * It can be also be combined with `pointIntervalUnit` to draw irregular\n * time intervals.\n *\n * Please note that this options applies to the _series data_, not the\n * interval of the axis ticks, which is independent.\n *\n * @sample {highcharts} highcharts/plotoptions/series-pointstart-datetime/\n * Datetime X axis\n * @sample {highstock} stock/plotoptions/pointinterval-pointstart/\n * Using pointStart and pointInterval\n *\n * @type {number}\n * @default 1\n * @product highcharts highstock gantt\n * @apioption plotOptions.series.pointInterval\n */\n /**\n * On datetime series, this allows for setting the\n * [pointInterval](#plotOptions.series.pointInterval) to irregular time\n * units, `day`, `month` and `year`. A day is usually the same as 24\n * hours, but `pointIntervalUnit` also takes the DST crossover into\n * consideration when dealing with local time. Combine this option with\n * `pointInterval` to draw weeks, quarters, 6 months, 10 years etc.\n *\n * Please note that this options applies to the _series data_, not the\n * interval of the axis ticks, which is independent.\n *\n * @sample {highcharts} highcharts/plotoptions/series-pointintervalunit/\n * One point a month\n * @sample {highstock} highcharts/plotoptions/series-pointintervalunit/\n * One point a month\n *\n * @type {string}\n * @since 4.1.0\n * @product highcharts highstock gantt\n * @validvalue [\"day\", \"month\", \"year\"]\n * @apioption plotOptions.series.pointIntervalUnit\n */\n /**\n * Possible values: `\"on\"`, `\"between\"`, `number`.\n *\n * In a column chart, when pointPlacement is `\"on\"`, the point will not\n * create any padding of the X axis. In a polar column chart this means\n * that the first column points directly north. If the pointPlacement is\n * `\"between\"`, the columns will be laid out between ticks. This is\n * useful for example for visualising an amount between two points in\n * time or in a certain sector of a polar chart.\n *\n * Since Highcharts 3.0.2, the point placement can also be numeric,\n * where 0 is on the axis value, -0.5 is between this value and the\n * previous, and 0.5 is between this value and the next. Unlike the\n * textual options, numeric point placement options won't affect axis\n * padding.\n *\n * Note that pointPlacement needs a [pointRange](\n * #plotOptions.series.pointRange) to work. For column series this is\n * computed, but for line-type series it needs to be set.\n *\n * For the `xrange` series type and gantt charts, if the Y axis is a\n * category axis, the `pointPlacement` applies to the Y axis rather than\n * the (typically datetime) X axis.\n *\n * Defaults to `undefined` in cartesian charts, `\"between\"` in polar\n * charts.\n *\n * @see [xAxis.tickmarkPlacement](#xAxis.tickmarkPlacement)\n *\n * @sample {highcharts|highstock} highcharts/plotoptions/series-pointplacement-between/\n * Between in a column chart\n * @sample {highcharts|highstock} highcharts/plotoptions/series-pointplacement-numeric/\n * Numeric placement for custom layout\n * @sample {highcharts|highstock} maps/plotoptions/heatmap-pointplacement/\n * Placement in heatmap\n *\n * @type {string|number}\n * @since 2.3.0\n * @product highcharts highstock gantt\n * @apioption plotOptions.series.pointPlacement\n */\n /**\n * If no x values are given for the points in a series, pointStart\n * defines on what value to start. For example, if a series contains one\n * yearly value starting from 1945, set pointStart to 1945.\n *\n * @sample {highcharts} highcharts/plotoptions/series-pointstart-linear/\n * Linear\n * @sample {highcharts} highcharts/plotoptions/series-pointstart-datetime/\n * Datetime\n * @sample {highstock} stock/plotoptions/pointinterval-pointstart/\n * Using pointStart and pointInterval\n *\n * @type {number}\n * @default 0\n * @product highcharts highstock gantt\n * @apioption plotOptions.series.pointStart\n */\n /**\n * Whether to select the series initially. If `showCheckbox` is true,\n * the checkbox next to the series name in the legend will be checked\n * for a selected series.\n *\n * @sample {highcharts} highcharts/plotoptions/series-selected/\n * One out of two series selected\n *\n * @type {boolean}\n * @default false\n * @since 1.2.0\n * @apioption plotOptions.series.selected\n */\n /**\n * Whether to apply a drop shadow to the graph line. Since 2.3 the\n * shadow can be an object configuration containing `color`, `offsetX`,\n * `offsetY`, `opacity` and `width`.\n *\n * @sample {highcharts} highcharts/plotoptions/series-shadow/\n * Shadow enabled\n *\n * @type {boolean|Highcharts.ShadowOptionsObject}\n * @default false\n * @apioption plotOptions.series.shadow\n */\n /**\n * Whether to display this particular series or series type in the\n * legend. Standalone series are shown in legend by default, and linked\n * series are not. Since v7.2.0 it is possible to show series that use\n * colorAxis by setting this option to `true`.\n *\n * @sample {highcharts} highcharts/plotoptions/series-showinlegend/\n * One series in the legend, one hidden\n *\n * @type {boolean}\n * @apioption plotOptions.series.showInLegend\n */\n /**\n * Whether or not to show the series in the navigator. Takes precedence\n * over [navigator.baseSeries](#navigator.baseSeries) if defined.\n *\n * @type {boolean}\n * @since 5.0.0\n * @product highstock\n * @apioption plotOptions.series.showInNavigator\n */\n /**\n * If set to `true`, the accessibility module will skip past the points\n * in this series for keyboard navigation.\n *\n * @type {boolean}\n * @since 5.0.12\n * @apioption plotOptions.series.skipKeyboardNavigation\n */\n /**\n * Whether to stack the values of each series on top of each other.\n * Possible values are `undefined` to disable, `\"normal\"` to stack by\n * value or `\"percent\"`. When stacking is enabled, data must be sorted\n * in ascending X order. A special stacking option is with the\n * streamgraph series type, where the stacking option is set to\n * `\"stream\"`. The second one is `\"overlap\"`, which only applies to\n * waterfall series.\n *\n * @see [yAxis.reversedStacks](#yAxis.reversedStacks)\n *\n * @sample {highcharts} highcharts/plotoptions/series-stacking-line/\n * Line\n * @sample {highcharts} highcharts/plotoptions/series-stacking-column/\n * Column\n * @sample {highcharts} highcharts/plotoptions/series-stacking-bar/\n * Bar\n * @sample {highcharts} highcharts/plotoptions/series-stacking-area/\n * Area\n * @sample {highcharts} highcharts/plotoptions/series-stacking-percent-line/\n * Line\n * @sample {highcharts} highcharts/plotoptions/series-stacking-percent-column/\n * Column\n * @sample {highcharts} highcharts/plotoptions/series-stacking-percent-bar/\n * Bar\n * @sample {highcharts} highcharts/plotoptions/series-stacking-percent-area/\n * Area\n * @sample {highcharts} highcharts/plotoptions/series-waterfall-with-normal-stacking\n * Waterfall with normal stacking\n * @sample {highcharts} highcharts/plotoptions/series-waterfall-with-overlap-stacking\n * Waterfall with overlap stacking\n * @sample {highstock} stock/plotoptions/stacking/\n * Area\n *\n * @type {string}\n * @product highcharts highstock\n * @validvalue [\"normal\", \"overlap\", \"percent\", \"stream\"]\n * @apioption plotOptions.series.stacking\n */\n /**\n * Whether to apply steps to the line. Possible values are `left`,\n * `center` and `right`.\n *\n * @sample {highcharts} highcharts/plotoptions/line-step/\n * Different step line options\n * @sample {highcharts} highcharts/plotoptions/area-step/\n * Stepped, stacked area\n * @sample {highstock} stock/plotoptions/line-step/\n * Step line\n *\n * @type {string}\n * @since 1.2.5\n * @product highcharts highstock\n * @validvalue [\"left\", \"center\", \"right\"]\n * @apioption plotOptions.series.step\n */\n /**\n * The threshold, also called zero level or base level. For line type\n * series this is only used in conjunction with\n * [negativeColor](#plotOptions.series.negativeColor).\n *\n * @see [softThreshold](#plotOptions.series.softThreshold).\n *\n * @type {number}\n * @default 0\n * @since 3.0\n * @product highcharts highstock\n * @apioption plotOptions.series.threshold\n */\n /**\n * Set the initial visibility of the series.\n *\n * @sample {highcharts} highcharts/plotoptions/series-visible/\n * Two series, one hidden and one visible\n * @sample {highstock} stock/plotoptions/series-visibility/\n * Hidden series\n *\n * @type {boolean}\n * @default true\n * @apioption plotOptions.series.visible\n */\n /**\n * Defines the Axis on which the zones are applied.\n *\n * @see [zones](#plotOptions.series.zones)\n *\n * @sample {highcharts} highcharts/series/color-zones-zoneaxis-x/\n * Zones on the X-Axis\n * @sample {highstock} highcharts/series/color-zones-zoneaxis-x/\n * Zones on the X-Axis\n *\n * @type {string}\n * @default y\n * @since 4.1.0\n * @product highcharts highstock\n * @apioption plotOptions.series.zoneAxis\n */\n /**\n * General event handlers for the series items. These event hooks can\n * also be attached to the series at run time using the\n * `Highcharts.addEvent` function.\n *\n * @private\n */\n events: {},\n /**\n * Fires after the series has finished its initial animation, or in case\n * animation is disabled, immediately as the series is displayed.\n *\n * @sample {highcharts} highcharts/plotoptions/series-events-afteranimate/\n * Show label after animate\n * @sample {highstock} highcharts/plotoptions/series-events-afteranimate/\n * Show label after animate\n *\n * @type {Highcharts.SeriesAfterAnimateCallbackFunction}\n * @since 4.0\n * @product highcharts highstock gantt\n * @context Highcharts.Series\n * @apioption plotOptions.series.events.afterAnimate\n */\n /**\n * Fires when the checkbox next to the series' name in the legend is\n * clicked. One parameter, `event`, is passed to the function. The state\n * of the checkbox is found by `event.checked`. The checked item is\n * found by `event.item`. Return `false` to prevent the default action\n * which is to toggle the select state of the series.\n *\n * @sample {highcharts} highcharts/plotoptions/series-events-checkboxclick/\n * Alert checkbox status\n *\n * @type {Highcharts.SeriesCheckboxClickCallbackFunction}\n * @since 1.2.0\n * @context Highcharts.Series\n * @apioption plotOptions.series.events.checkboxClick\n */\n /**\n * Fires when the series is clicked. One parameter, `event`, is passed\n * to the function, containing common event information. Additionally,\n * `event.point` holds a pointer to the nearest point on the graph.\n *\n * @sample {highcharts} highcharts/plotoptions/series-events-click/\n * Alert click info\n * @sample {highstock} stock/plotoptions/series-events-click/\n * Alert click info\n * @sample {highmaps} maps/plotoptions/series-events-click/\n * Display click info in subtitle\n *\n * @type {Highcharts.SeriesClickCallbackFunction}\n * @context Highcharts.Series\n * @apioption plotOptions.series.events.click\n */\n /**\n * Fires when the series is hidden after chart generation time, either\n * by clicking the legend item or by calling `.hide()`.\n *\n * @sample {highcharts} highcharts/plotoptions/series-events-hide/\n * Alert when the series is hidden by clicking the legend item\n *\n * @type {Highcharts.SeriesHideCallbackFunction}\n * @since 1.2.0\n * @context Highcharts.Series\n * @apioption plotOptions.series.events.hide\n */\n /**\n * Fires when the legend item belonging to the series is clicked. One\n * parameter, `event`, is passed to the function. The default action\n * is to toggle the visibility of the series. This can be prevented\n * by returning `false` or calling `event.preventDefault()`.\n *\n * @sample {highcharts} highcharts/plotoptions/series-events-legenditemclick/\n * Confirm hiding and showing\n *\n * @type {Highcharts.SeriesLegendItemClickCallbackFunction}\n * @context Highcharts.Series\n * @apioption plotOptions.series.events.legendItemClick\n */\n /**\n * Fires when the mouse leaves the graph. One parameter, `event`, is\n * passed to the function, containing common event information. If the\n * [stickyTracking](#plotOptions.series) option is true, `mouseOut`\n * doesn't happen before the mouse enters another graph or leaves the\n * plot area.\n *\n * @sample {highcharts} highcharts/plotoptions/series-events-mouseover-sticky/\n * With sticky tracking by default\n * @sample {highcharts} highcharts/plotoptions/series-events-mouseover-no-sticky/\n * Without sticky tracking\n *\n * @type {Highcharts.SeriesMouseOutCallbackFunction}\n * @context Highcharts.Series\n * @apioption plotOptions.series.events.mouseOut\n */\n /**\n * Fires when the mouse enters the graph. One parameter, `event`, is\n * passed to the function, containing common event information.\n *\n * @sample {highcharts} highcharts/plotoptions/series-events-mouseover-sticky/\n * With sticky tracking by default\n * @sample {highcharts} highcharts/plotoptions/series-events-mouseover-no-sticky/\n * Without sticky tracking\n *\n * @type {Highcharts.SeriesMouseOverCallbackFunction}\n * @context Highcharts.Series\n * @apioption plotOptions.series.events.mouseOver\n */\n /**\n * Fires when the series is shown after chart generation time, either\n * by clicking the legend item or by calling `.show()`.\n *\n * @sample {highcharts} highcharts/plotoptions/series-events-show/\n * Alert when the series is shown by clicking the legend item.\n *\n * @type {Highcharts.SeriesShowCallbackFunction}\n * @since 1.2.0\n * @context Highcharts.Series\n * @apioption plotOptions.series.events.show\n */\n /**\n * Options for the point markers of line-like series. Properties like\n * `fillColor`, `lineColor` and `lineWidth` define the visual appearance\n * of the markers. Other series types, like column series, don't have\n * markers, but have visual options on the series level instead.\n *\n * In styled mode, the markers can be styled with the\n * `.highcharts-point`, `.highcharts-point-hover` and\n * `.highcharts-point-select` class names.\n *\n * @private\n */\n marker: {\n /**\n * The width of the point marker's outline.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-fillcolor/\n * 2px blue marker\n */\n lineWidth: 0,\n /**\n * The color of the point marker's outline. When `undefined`, the\n * series' or point's color is used.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-fillcolor/\n * Inherit from series color (undefined)\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n lineColor: '#ffffff',\n /**\n * The fill color of the point marker. When `undefined`, the series'\n * or point's color is used.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-fillcolor/\n * White fill\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @apioption plotOptions.series.marker.fillColor\n */\n /**\n * Enable or disable the point marker. If `undefined`, the markers\n * are hidden when the data is dense, and shown for more widespread\n * data points.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-enabled/\n * Disabled markers\n * @sample {highcharts} highcharts/plotoptions/series-marker-enabled-false/\n * Disabled in normal state but enabled on hover\n * @sample {highstock} stock/plotoptions/series-marker/\n * Enabled markers\n *\n * @type {boolean}\n * @default {highcharts} undefined\n * @default {highstock} false\n * @apioption plotOptions.series.marker.enabled\n */\n /**\n * Image markers only. Set the image width explicitly. When using\n * this option, a `width` must also be set.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-width-height/\n * Fixed width and height\n * @sample {highstock} highcharts/plotoptions/series-marker-width-height/\n * Fixed width and height\n *\n * @type {number}\n * @since 4.0.4\n * @apioption plotOptions.series.marker.height\n */\n /**\n * A predefined shape or symbol for the marker. When undefined, the\n * symbol is pulled from options.symbols. Other possible values are\n * \"circle\", \"square\", \"diamond\", \"triangle\" and \"triangle-down\".\n *\n * Additionally, the URL to a graphic can be given on this form:\n * \"url(graphic.png)\". Note that for the image to be applied to\n * exported charts, its URL needs to be accessible by the export\n * server.\n *\n * Custom callbacks for symbol path generation can also be added to\n * `Highcharts.SVGRenderer.prototype.symbols`. The callback is then\n * used by its method name, as shown in the demo.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-symbol/\n * Predefined, graphic and custom markers\n * @sample {highstock} highcharts/plotoptions/series-marker-symbol/\n * Predefined, graphic and custom markers\n *\n * @type {string}\n * @apioption plotOptions.series.marker.symbol\n */\n /**\n * The threshold for how dense the point markers should be before\n * they are hidden, given that `enabled` is not defined. The number\n * indicates the horizontal distance between the two closest points\n * in the series, as multiples of the `marker.radius`. In other\n * words, the default value of 2 means points are hidden if\n * overlapping horizontally.\n *\n * @sample highcharts/plotoptions/series-marker-enabledthreshold\n * A higher threshold\n *\n * @since 6.0.5\n */\n enabledThreshold: 2,\n /**\n * The radius of the point marker.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-radius/\n * Bigger markers\n *\n * @default {highstock} 2\n */\n radius: 4,\n /**\n * Image markers only. Set the image width explicitly. When using\n * this option, a `height` must also be set.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-width-height/\n * Fixed width and height\n * @sample {highstock} highcharts/plotoptions/series-marker-width-height/\n * Fixed width and height\n *\n * @type {number}\n * @since 4.0.4\n * @apioption plotOptions.series.marker.width\n */\n /**\n * States for a single point marker.\n */\n states: {\n /**\n * The normal state of a single point marker. Currently only\n * used for setting animation when returning to normal state\n * from hover.\n */\n normal: {\n /**\n * Animation when returning to normal state after hovering.\n *\n * @type {boolean|Highcharts.AnimationOptionsObject}\n */\n animation: true\n },\n /**\n * The hover state for a single point marker.\n */\n hover: {\n /**\n * Animation when hovering over the marker.\n *\n * @type {boolean|Highcharts.AnimationOptionsObject}\n * @default {\"duration\": 50}\n */\n animation: {\n /** @ignore */\n duration: 50\n },\n /**\n * Enable or disable the point marker.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-states-hover-enabled/\n * Disabled hover state\n */\n enabled: true,\n /**\n * The fill color of the marker in hover state. When\n * `undefined`, the series' or point's fillColor for normal\n * state is used.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @apioption plotOptions.series.marker.states.hover.fillColor\n */\n /**\n * The color of the point marker's outline. When\n * `undefined`, the series' or point's lineColor for normal\n * state is used.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-states-hover-linecolor/\n * White fill color, black line color\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @apioption plotOptions.series.marker.states.hover.lineColor\n */\n /**\n * The width of the point marker's outline. When\n * `undefined`, the series' or point's lineWidth for normal\n * state is used.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-states-hover-linewidth/\n * 3px line width\n *\n * @type {number}\n * @apioption plotOptions.series.marker.states.hover.lineWidth\n */\n /**\n * The radius of the point marker. In hover state, it\n * defaults to the normal state's radius + 2 as per the\n * [radiusPlus](#plotOptions.series.marker.states.hover.radiusPlus)\n * option.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-states-hover-radius/\n * 10px radius\n *\n * @type {number}\n * @apioption plotOptions.series.marker.states.hover.radius\n */\n /**\n * The number of pixels to increase the radius of the\n * hovered point.\n *\n * @sample {highcharts} highcharts/plotoptions/series-states-hover-linewidthplus/\n * 5 pixels greater radius on hover\n * @sample {highstock} highcharts/plotoptions/series-states-hover-linewidthplus/\n * 5 pixels greater radius on hover\n *\n * @since 4.0.3\n */\n radiusPlus: 2,\n /**\n * The additional line width for a hovered point.\n *\n * @sample {highcharts} highcharts/plotoptions/series-states-hover-linewidthplus/\n * 2 pixels wider on hover\n * @sample {highstock} highcharts/plotoptions/series-states-hover-linewidthplus/\n * 2 pixels wider on hover\n *\n * @since 4.0.3\n */\n lineWidthPlus: 1\n },\n /**\n * The appearance of the point marker when selected. In order to\n * allow a point to be selected, set the\n * `series.allowPointSelect` option to true.\n */\n select: {\n /**\n * The radius of the point marker. In hover state, it\n * defaults to the normal state's radius + 2.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-states-select-radius/\n * 10px radius for selected points\n *\n * @type {number}\n * @apioption plotOptions.series.marker.states.select.radius\n */\n /**\n * Enable or disable visible feedback for selection.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-states-select-enabled/\n * Disabled select state\n *\n * @type {boolean}\n * @default true\n * @apioption plotOptions.series.marker.states.select.enabled\n */\n /**\n * The fill color of the point marker.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-states-select-fillcolor/\n * Solid red discs for selected points\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n fillColor: '#cccccc',\n /**\n * The color of the point marker's outline. When\n * `undefined`, the series' or point's color is used.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-states-select-linecolor/\n * Red line color for selected points\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n lineColor: '#000000',\n /**\n * The width of the point marker's outline.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-states-select-linewidth/\n * 3px line width for selected points\n */\n lineWidth: 2\n }\n }\n },\n /**\n * Properties for each single point.\n *\n * @private\n */\n point: {\n /**\n * Fires when a point is clicked. One parameter, `event`, is passed\n * to the function, containing common event information.\n *\n * If the `series.allowPointSelect` option is true, the default\n * action for the point's click event is to toggle the point's\n * select state. Returning `false` cancels this action.\n *\n * @sample {highcharts} highcharts/plotoptions/series-point-events-click/\n * Click marker to alert values\n * @sample {highcharts} highcharts/plotoptions/series-point-events-click-column/\n * Click column\n * @sample {highcharts} highcharts/plotoptions/series-point-events-click-url/\n * Go to URL\n * @sample {highmaps} maps/plotoptions/series-point-events-click/\n * Click marker to display values\n * @sample {highmaps} maps/plotoptions/series-point-events-click-url/\n * Go to URL\n *\n * @type {Highcharts.PointClickCallbackFunction}\n * @context Highcharts.Point\n * @apioption plotOptions.series.point.events.click\n */\n /**\n * Fires when the mouse leaves the area close to the point. One\n * parameter, `event`, is passed to the function, containing common\n * event information.\n *\n * @sample {highcharts} highcharts/plotoptions/series-point-events-mouseover/\n * Show values in the chart's corner on mouse over\n *\n * @type {Highcharts.PointMouseOutCallbackFunction}\n * @context Highcharts.Point\n * @apioption plotOptions.series.point.events.mouseOut\n */\n /**\n * Fires when the mouse enters the area close to the point. One\n * parameter, `event`, is passed to the function, containing common\n * event information.\n *\n * @sample {highcharts} highcharts/plotoptions/series-point-events-mouseover/\n * Show values in the chart's corner on mouse over\n *\n * @type {Highcharts.PointMouseOverCallbackFunction}\n * @context Highcharts.Point\n * @apioption plotOptions.series.point.events.mouseOver\n */\n /**\n * Fires when the point is removed using the `.remove()` method. One\n * parameter, `event`, is passed to the function. Returning `false`\n * cancels the operation.\n *\n * @sample {highcharts} highcharts/plotoptions/series-point-events-remove/\n * Remove point and confirm\n *\n * @type {Highcharts.PointRemoveCallbackFunction}\n * @since 1.2.0\n * @context Highcharts.Point\n * @apioption plotOptions.series.point.events.remove\n */\n /**\n * Fires when the point is selected either programmatically or\n * following a click on the point. One parameter, `event`, is passed\n * to the function. Returning `false` cancels the operation.\n *\n * @sample {highcharts} highcharts/plotoptions/series-point-events-select/\n * Report the last selected point\n * @sample {highmaps} maps/plotoptions/series-allowpointselect/\n * Report select and unselect\n *\n * @type {Highcharts.PointSelectCallbackFunction}\n * @since 1.2.0\n * @context Highcharts.Point\n * @apioption plotOptions.series.point.events.select\n */\n /**\n * Fires when the point is unselected either programmatically or\n * following a click on the point. One parameter, `event`, is passed\n * to the function.\n * Returning `false` cancels the operation.\n *\n * @sample {highcharts} highcharts/plotoptions/series-point-events-unselect/\n * Report the last unselected point\n * @sample {highmaps} maps/plotoptions/series-allowpointselect/\n * Report select and unselect\n *\n * @type {Highcharts.PointUnselectCallbackFunction}\n * @since 1.2.0\n * @context Highcharts.Point\n * @apioption plotOptions.series.point.events.unselect\n */\n /**\n * Fires when the point is updated programmatically through the\n * `.update()` method. One parameter, `event`, is passed to the\n * function. The new point options can be accessed through\n * `event.options`. Returning `false` cancels the operation.\n *\n * @sample {highcharts} highcharts/plotoptions/series-point-events-update/\n * Confirm point updating\n *\n * @type {Highcharts.PointUpdateCallbackFunction}\n * @since 1.2.0\n * @context Highcharts.Point\n * @apioption plotOptions.series.point.events.update\n */\n /**\n * Events for each single point.\n */\n events: {}\n },\n /**\n * Options for the series data labels, appearing next to each data\n * point.\n *\n * Since v6.2.0, multiple data labels can be applied to each single\n * point by defining them as an array of configs.\n *\n * In styled mode, the data labels can be styled with the\n * `.highcharts-data-label-box` and `.highcharts-data-label` class names\n * ([see example](https://www.highcharts.com/samples/highcharts/css/series-datalabels)).\n *\n * @sample highcharts/plotoptions/series-datalabels-enabled\n * Data labels enabled\n * @sample highcharts/plotoptions/series-datalabels-multiple\n * Multiple data labels on a bar series\n *\n * @type {Highcharts.DataLabelsOptionsObject|Array}\n *\n * @private\n */\n dataLabels: {\n /** @internal */\n align: 'center',\n // eslint-disable-next-line valid-jsdoc\n /**\n * @internal\n * @default function () { return H.numberFormat(this.y, -1); }\n */\n formatter: function () {\n return this.y === null ? '' : H.numberFormat(this.y, -1);\n },\n /** @internal */\n padding: 5,\n /**\n * @internal\n * @type {Highcharts.CSSObject}\n */\n style: {\n /** @internal */\n fontSize: '11px',\n /** @internal */\n fontWeight: 'bold',\n /** @internal */\n color: 'contrast',\n /** @internal */\n textOutline: '1px contrast'\n },\n /**\n * above singular point\n * @internal\n */\n verticalAlign: 'bottom',\n /** @internal */\n x: 0,\n /** @internal */\n y: 0\n },\n /**\n * When the series contains less points than the crop threshold, all\n * points are drawn, even if the points fall outside the visible plot\n * area at the current zoom. The advantage of drawing all points\n * (including markers and columns), is that animation is performed on\n * updates. On the other hand, when the series contains more points than\n * the crop threshold, the series data is cropped to only contain points\n * that fall within the plot area. The advantage of cropping away\n * invisible points is to increase performance on large series.\n *\n * @since 2.2\n * @product highcharts highstock\n *\n * @private\n */\n cropThreshold: 300,\n /**\n * Opacity of a series parts: line, fill (e.g. area) and dataLabels.\n *\n * @see [states.inactive.opacity](#plotOptions.series.states.inactive.opacity)\n *\n * @since 7.1.0\n *\n * @private\n */\n opacity: 1,\n /**\n * The width of each point on the x axis. For example in a column chart\n * with one value each day, the pointRange would be 1 day (= 24 * 3600\n * * 1000 milliseconds). This is normally computed automatically, but\n * this option can be used to override the automatic value.\n *\n * @product highstock\n *\n * @private\n */\n pointRange: 0,\n /**\n * When this is true, the series will not cause the Y axis to cross\n * the zero plane (or [threshold](#plotOptions.series.threshold) option)\n * unless the data actually crosses the plane.\n *\n * For example, if `softThreshold` is `false`, a series of 0, 1, 2,\n * 3 will make the Y axis show negative values according to the\n * `minPadding` option. If `softThreshold` is `true`, the Y axis starts\n * at 0.\n *\n * @since 4.1.9\n * @product highcharts highstock\n *\n * @private\n */\n softThreshold: true,\n states: {\n /**\n * The normal state of a series, or for point items in column, pie\n * and similar series. Currently only used for setting animation\n * when returning to normal state from hover.\n */\n normal: {\n /**\n * Animation when returning to normal state after hovering.\n *\n * @type {boolean|Highcharts.AnimationOptionsObject}\n */\n animation: true\n },\n /**\n * Options for the hovered series. These settings override the\n * normal state options when a series is moused over or touched.\n */\n hover: {\n /**\n * Enable separate styles for the hovered series to visualize\n * that the user hovers either the series itself or the legend.\n *\n * @sample {highcharts} highcharts/plotoptions/series-states-hover-enabled/\n * Line\n * @sample {highcharts} highcharts/plotoptions/series-states-hover-enabled-column/\n * Column\n * @sample {highcharts} highcharts/plotoptions/series-states-hover-enabled-pie/\n * Pie\n *\n * @type {boolean}\n * @default true\n * @since 1.2\n * @apioption plotOptions.series.states.hover.enabled\n */\n /**\n * Animation setting for hovering the graph in line-type series.\n *\n * @type {boolean|Highcharts.AnimationOptionsObject}\n * @since 5.0.8\n * @product highcharts highstock\n */\n animation: {\n /**\n * The duration of the hover animation in milliseconds. By\n * default the hover state animates quickly in, and slowly\n * back to normal.\n */\n duration: 50\n },\n /**\n * Pixel width of the graph line. By default this property is\n * undefined, and the `lineWidthPlus` property dictates how much\n * to increase the linewidth from normal state.\n *\n * @sample {highcharts} highcharts/plotoptions/series-states-hover-linewidth/\n * 5px line on hover\n *\n * @type {number}\n * @product highcharts highstock\n * @apioption plotOptions.series.states.hover.lineWidth\n */\n /**\n * The additional line width for the graph of a hovered series.\n *\n * @sample {highcharts} highcharts/plotoptions/series-states-hover-linewidthplus/\n * 5 pixels wider\n * @sample {highstock} highcharts/plotoptions/series-states-hover-linewidthplus/\n * 5 pixels wider\n *\n * @since 4.0.3\n * @product highcharts highstock\n */\n lineWidthPlus: 1,\n /**\n * In Highcharts 1.0, the appearance of all markers belonging\n * to the hovered series. For settings on the hover state of the\n * individual point, see\n * [marker.states.hover](#plotOptions.series.marker.states.hover).\n *\n * @deprecated\n *\n * @extends plotOptions.series.marker\n * @excluding states\n * @product highcharts highstock\n */\n marker: {\n // lineWidth: base + 1,\n // radius: base + 1\n },\n /**\n * Options for the halo appearing around the hovered point in\n * line-type series as well as outside the hovered slice in pie\n * charts. By default the halo is filled by the current point or\n * series color with an opacity of 0.25\\. The halo can be\n * disabled by setting the `halo` option to `null`.\n *\n * In styled mode, the halo is styled with the\n * `.highcharts-halo` class, with colors inherited from\n * `.highcharts-color-{n}`.\n *\n * @sample {highcharts} highcharts/plotoptions/halo/\n * Halo options\n * @sample {highstock} highcharts/plotoptions/halo/\n * Halo options\n *\n * @type {null|*}\n * @since 4.0\n * @product highcharts highstock\n */\n halo: {\n /**\n * A collection of SVG attributes to override the appearance\n * of the halo, for example `fill`, `stroke` and\n * `stroke-width`.\n *\n * @type {Highcharts.SVGAttributes}\n * @since 4.0\n * @product highcharts highstock\n * @apioption plotOptions.series.states.hover.halo.attributes\n */\n /**\n * The pixel size of the halo. For point markers this is the\n * radius of the halo. For pie slices it is the width of the\n * halo outside the slice. For bubbles it defaults to 5 and\n * is the width of the halo outside the bubble.\n *\n * @since 4.0\n * @product highcharts highstock\n */\n size: 10,\n /**\n * Opacity for the halo unless a specific fill is overridden\n * using the `attributes` setting. Note that Highcharts is\n * only able to apply opacity to colors of hex or rgb(a)\n * formats.\n *\n * @since 4.0\n * @product highcharts highstock\n */\n opacity: 0.25\n }\n },\n /**\n * Specific options for point in selected states, after being\n * selected by\n * [allowPointSelect](#plotOptions.series.allowPointSelect)\n * or programmatically.\n *\n * @sample maps/plotoptions/series-allowpointselect/\n * Allow point select demo\n *\n * @extends plotOptions.series.states.hover\n * @excluding brightness\n */\n select: {\n animation: {\n duration: 0\n }\n },\n /**\n * The opposite state of a hover for series.\n *\n * @sample highcharts/plotoptions/series-states-inactive-opacity\n * Disabled inactive state by setting opacity\n */\n inactive: {\n /**\n * The animation for entering the inactive state.\n *\n * @type {boolean|Highcharts.AnimationOptionsObject}\n */\n animation: {\n duration: 50\n },\n /**\n * Opacity of series elements (dataLabels, line, area). Set to 1\n * to disable inactive state.\n *\n * @apioption plotOptions.series.states.inactive.opacity\n * @type {number}\n * @sample highcharts/plotoptions/series-states-inactive-opacity\n * Disabled inactive state\n */\n opacity: 0.2\n }\n },\n /**\n * Sticky tracking of mouse events. When true, the `mouseOut` event on a\n * series isn't triggered until the mouse moves over another series, or\n * out of the plot area. When false, the `mouseOut` event on a series is\n * triggered when the mouse leaves the area around the series' graph or\n * markers. This also implies the tooltip when not shared. When\n * `stickyTracking` is false and `tooltip.shared` is false, the tooltip\n * will be hidden when moving the mouse between series. Defaults to true\n * for line and area type series, but to false for columns, pies etc.\n *\n * **Note:** The boost module will force this option because of\n * technical limitations.\n *\n * @sample {highcharts} highcharts/plotoptions/series-stickytracking-true/\n * True by default\n * @sample {highcharts} highcharts/plotoptions/series-stickytracking-false/\n * False\n *\n * @default {highcharts} true\n * @default {highstock} true\n * @default {highmaps} false\n * @since 2.0\n *\n * @private\n */\n stickyTracking: true,\n /**\n * A configuration object for the tooltip rendering of each single\n * series. Properties are inherited from [tooltip](#tooltip), but only\n * the following properties can be defined on a series level.\n *\n * @since 2.3\n * @extends tooltip\n * @excluding animation, backgroundColor, borderColor, borderRadius,\n * borderWidth, className, crosshairs, enabled, formatter,\n * headerShape, hideDelay, outside, padding, positioner,\n * shadow, shape, shared, snap, split, style, useHTML\n * @apioption plotOptions.series.tooltip\n */\n /**\n * When a series contains a data array that is longer than this, only\n * one dimensional arrays of numbers, or two dimensional arrays with\n * x and y values are allowed. Also, only the first point is tested,\n * and the rest are assumed to be the same format. This saves expensive\n * data checking and indexing in long series. Set it to `0` disable.\n *\n * Note:\n * In boost mode turbo threshold is forced. Only array of numbers or\n * two dimensional arrays are allowed.\n *\n * @since 2.2\n * @product highcharts highstock gantt\n *\n * @private\n */\n turboThreshold: 1000,\n /**\n * An array defining zones within a series. Zones can be applied to the\n * X axis, Y axis or Z axis for bubbles, according to the `zoneAxis`\n * option. The zone definitions have to be in ascending order regarding\n * to the value.\n *\n * In styled mode, the color zones are styled with the\n * `.highcharts-zone-{n}` class, or custom classed from the `className`\n * option\n * ([view live demo](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/color-zones/)).\n *\n * @see [zoneAxis](#plotOptions.series.zoneAxis)\n *\n * @sample {highcharts} highcharts/series/color-zones-simple/\n * Color zones\n * @sample {highstock} highcharts/series/color-zones-simple/\n * Color zones\n *\n * @type {Array<*>}\n * @since 4.1.0\n * @product highcharts highstock\n * @apioption plotOptions.series.zones\n */\n /**\n * Styled mode only. A custom class name for the zone.\n *\n * @sample highcharts/css/color-zones/\n * Zones styled by class name\n *\n * @type {string}\n * @since 5.0.0\n * @apioption plotOptions.series.zones.className\n */\n /**\n * Defines the color of the series.\n *\n * @see [series color](#plotOptions.series.color)\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @since 4.1.0\n * @product highcharts highstock\n * @apioption plotOptions.series.zones.color\n */\n /**\n * A name for the dash style to use for the graph.\n *\n * @see [plotOptions.series.dashStyle](#plotOptions.series.dashStyle)\n *\n * @sample {highcharts|highstock} highcharts/series/color-zones-dashstyle-dot/\n * Dashed line indicates prognosis\n *\n * @type {Highcharts.DashStyleValue}\n * @since 4.1.0\n * @product highcharts highstock\n * @apioption plotOptions.series.zones.dashStyle\n */\n /**\n * Defines the fill color for the series (in area type series)\n *\n * @see [fillColor](#plotOptions.area.fillColor)\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @since 4.1.0\n * @product highcharts highstock\n * @apioption plotOptions.series.zones.fillColor\n */\n /**\n * The value up to where the zone extends, if undefined the zones\n * stretches to the last value in the series.\n *\n * @type {number}\n * @since 4.1.0\n * @product highcharts highstock\n * @apioption plotOptions.series.zones.value\n */\n /**\n * When using dual or multiple color axes, this number defines which\n * colorAxis the particular series is connected to. It refers to\n * either the\n * {@link #colorAxis.id|axis id}\n * or the index of the axis in the colorAxis array, with 0 being the\n * first. Set this option to false to prevent a series from connecting\n * to the default color axis.\n *\n * Since v7.2.0 the option can also be an axis id or an axis index\n * instead of a boolean flag.\n *\n * @sample highcharts/coloraxis/coloraxis-with-pie/\n * Color axis with pie series\n * @sample highcharts/coloraxis/multiple-coloraxis/\n * Multiple color axis\n *\n * @type {number|string|boolean}\n * @default 0\n * @product highcharts highstock highmaps\n * @apioption plotOptions.series.colorAxis\n */\n /**\n * Determines what data value should be used to calculate point color\n * if `colorAxis` is used. Requires to set `min` and `max` if some\n * custom point property is used or if approximation for data grouping\n * is set to `'sum'`.\n *\n * @sample highcharts/coloraxis/custom-color-key/\n * Custom color key\n * @sample highcharts/coloraxis/changed-default-color-key/\n * Changed default color key\n *\n * @type {string}\n * @default y\n * @since 7.2.0\n * @product highcharts highstock highmaps\n * @apioption plotOptions.series.colorKey\n */\n /**\n * Determines whether the series should look for the nearest point\n * in both dimensions or just the x-dimension when hovering the series.\n * Defaults to `'xy'` for scatter series and `'x'` for most other\n * series. If the data has duplicate x-values, it is recommended to\n * set this to `'xy'` to allow hovering over all points.\n *\n * Applies only to series types using nearest neighbor search (not\n * direct hover) for tooltip.\n *\n * @sample {highcharts} highcharts/series/findnearestpointby/\n * Different hover behaviors\n * @sample {highstock} highcharts/series/findnearestpointby/\n * Different hover behaviors\n * @sample {highmaps} highcharts/series/findnearestpointby/\n * Different hover behaviors\n *\n * @since 5.0.10\n * @validvalue [\"x\", \"xy\"]\n *\n * @private\n */\n findNearestPointBy: 'x'\n }, \n /* eslint-disable no-invalid-this, valid-jsdoc */\n /** @lends Highcharts.Series.prototype */\n {\n axisTypes: ['xAxis', 'yAxis'],\n coll: 'series',\n colorCounter: 0,\n cropShoulder: 1,\n directTouch: false,\n isCartesian: true,\n // each point's x and y values are stored in this.xData and this.yData\n parallelArrays: ['x', 'y'],\n pointClass: Point,\n requireSorting: true,\n sorted: true,\n init: function (chart, options) {\n fireEvent(this, 'init', { options: options });\n var series = this, events, chartSeries = chart.series, lastSeries;\n // A lookup over those events that are added by _options_ (not\n // programmatically). These are updated through Series.update()\n // (#10861).\n this.eventOptions = this.eventOptions || {};\n /**\n * Read only. The chart that the series belongs to.\n *\n * @name Highcharts.Series#chart\n * @type {Highcharts.Chart}\n */\n series.chart = chart;\n /**\n * Read only. The series' type, like \"line\", \"area\", \"column\" etc.\n * The type in the series options anc can be altered using\n * {@link Series#update}.\n *\n * @name Highcharts.Series#type\n * @type {string}\n */\n /**\n * Read only. The series' current options. To update, use\n * {@link Series#update}.\n *\n * @name Highcharts.Series#options\n * @type {Highcharts.SeriesOptionsType}\n */\n series.options = options = series.setOptions(options);\n series.linkedSeries = [];\n // bind the axes\n series.bindAxes();\n // set some variables\n extend(series, {\n /**\n * The series name as given in the options. Defaults to\n * \"Series {n}\".\n *\n * @name Highcharts.Series#name\n * @type {string}\n */\n name: options.name,\n state: '',\n /**\n * Read only. The series' visibility state as set by {@link\n * Series#show}, {@link Series#hide}, or in the initial\n * configuration.\n *\n * @name Highcharts.Series#visible\n * @type {boolean}\n */\n visible: options.visible !== false,\n /**\n * Read only. The series' selected state as set by {@link\n * Highcharts.Series#select}.\n *\n * @name Highcharts.Series#selected\n * @type {boolean}\n */\n selected: options.selected === true // false by default\n });\n // Register event listeners\n events = options.events;\n objectEach(events, function (event, eventType) {\n if (H.isFunction(event)) {\n // If event does not exist, or is changed by Series.update\n if (series.eventOptions[eventType] !== event) {\n // Remove existing if set by option\n if (H.isFunction(series.eventOptions[eventType])) {\n removeEvent(series, eventType, series.eventOptions[eventType]);\n }\n series.eventOptions[eventType] = event;\n addEvent(series, eventType, event);\n }\n }\n });\n if ((events && events.click) ||\n (options.point &&\n options.point.events &&\n options.point.events.click) ||\n options.allowPointSelect) {\n chart.runTrackerClick = true;\n }\n series.getColor();\n series.getSymbol();\n // Initialize the parallel data arrays\n series.parallelArrays.forEach(function (key) {\n if (!series[key + 'Data']) {\n series[key + 'Data'] = [];\n }\n });\n if (!series.points && !series.data) {\n series.setData(options.data, false);\n }\n // Mark cartesian\n if (series.isCartesian) {\n chart.hasCartesianSeries = true;\n }\n // Get the index and register the series in the chart. The index is\n // one more than the current latest series index (#5960).\n if (chartSeries.length) {\n lastSeries = chartSeries[chartSeries.length - 1];\n }\n series._i = pick(lastSeries && lastSeries._i, -1) + 1;\n // Insert the series and re-order all series above the insertion\n // point.\n chart.orderSeries(this.insert(chartSeries));\n fireEvent(this, 'afterInit');\n },\n /**\n * Insert the series in a collection with other series, either the chart\n * series or yAxis series, in the correct order according to the index\n * option. Used internally when adding series.\n *\n * @private\n * @function Highcharts.Series#insert\n * @param {Array} collection\n * A collection of series, like `chart.series` or `xAxis.series`.\n * @return {number}\n * The index of the series in the collection.\n */\n insert: function (collection) {\n var indexOption = this.options.index, i;\n // Insert by index option\n if (isNumber(indexOption)) {\n i = collection.length;\n while (i--) {\n // Loop down until the interted element has higher index\n if (indexOption >=\n pick(collection[i].options.index, collection[i]._i)) {\n collection.splice(i + 1, 0, this);\n break;\n }\n }\n if (i === -1) {\n collection.unshift(this);\n }\n i = i + 1;\n // Or just push it to the end\n }\n else {\n collection.push(this);\n }\n return pick(i, collection.length - 1);\n },\n /**\n * Set the xAxis and yAxis properties of cartesian series, and register\n * the series in the `axis.series` array.\n *\n * @private\n * @function Highcharts.Series#bindAxes\n * @return {void}\n * @exception 18\n */\n bindAxes: function () {\n var series = this, seriesOptions = series.options, chart = series.chart, axisOptions;\n fireEvent(this, 'bindAxes', null, function () {\n // repeat for xAxis and yAxis\n (series.axisTypes || []).forEach(function (AXIS) {\n // loop through the chart's axis objects\n chart[AXIS].forEach(function (axis) {\n axisOptions = axis.options;\n // apply if the series xAxis or yAxis option mathches\n // the number of the axis, or if undefined, use the\n // first axis\n if (seriesOptions[AXIS] ===\n axisOptions.index ||\n (seriesOptions[AXIS] !== undefined &&\n seriesOptions[AXIS] === axisOptions.id) ||\n (seriesOptions[AXIS] === undefined &&\n axisOptions.index === 0)) {\n // register this series in the axis.series lookup\n series.insert(axis.series);\n // set this series.xAxis or series.yAxis reference\n /**\n * Read only. The unique xAxis object associated\n * with the series.\n *\n * @name Highcharts.Series#xAxis\n * @type {Highcharts.Axis}\n */\n /**\n * Read only. The unique yAxis object associated\n * with the series.\n *\n * @name Highcharts.Series#yAxis\n * @type {Highcharts.Axis}\n */\n series[AXIS] = axis;\n // mark dirty for redraw\n axis.isDirty = true;\n }\n });\n // The series needs an X and an Y axis\n if (!series[AXIS] &&\n series.optionalAxis !== AXIS) {\n H.error(18, true, chart);\n }\n });\n });\n },\n /**\n * For simple series types like line and column, the data values are\n * held in arrays like xData and yData for quick lookup to find extremes\n * and more. For multidimensional series like bubble and map, this can\n * be extended with arrays like zData and valueData by adding to the\n * `series.parallelArrays` array.\n *\n * @private\n * @function Highcharts.Series#updateParallelArrays\n * @param {Highcharts.Point} point\n * @param {number|string} i\n * @return {void}\n */\n updateParallelArrays: function (point, i) {\n var series = point.series, args = arguments, fn = isNumber(i) ?\n // Insert the value in the given position\n function (key) {\n var val = key === 'y' && series.toYData ?\n series.toYData(point) :\n point[key];\n series[key + 'Data'][i] = val;\n } :\n // Apply the method specified in i with the following\n // arguments as arguments\n function (key) {\n Array.prototype[i].apply(series[key + 'Data'], Array.prototype.slice.call(args, 2));\n };\n series.parallelArrays.forEach(fn);\n },\n /**\n * Define hasData functions for series. These return true if there\n * are data points on this series within the plot area.\n *\n * @private\n * @function Highcharts.Series#hasData\n * @return {boolean}\n */\n hasData: function () {\n return ((this.visible &&\n this.dataMax !== undefined &&\n this.dataMin !== undefined) || ( // #3703\n this.visible &&\n this.yData &&\n this.yData.length > 0) // #9758\n );\n },\n /**\n * Return an auto incremented x value based on the pointStart and\n * pointInterval options. This is only used if an x value is not given\n * for the point that calls autoIncrement.\n *\n * @private\n * @function Highcharts.Series#autoIncrement\n * @return {number}\n */\n autoIncrement: function () {\n var options = this.options, xIncrement = this.xIncrement, date, pointInterval, pointIntervalUnit = options.pointIntervalUnit, time = this.chart.time;\n xIncrement = pick(xIncrement, options.pointStart, 0);\n this.pointInterval = pointInterval = pick(this.pointInterval, options.pointInterval, 1);\n // Added code for pointInterval strings\n if (pointIntervalUnit) {\n date = new time.Date(xIncrement);\n if (pointIntervalUnit === 'day') {\n time.set('Date', date, time.get('Date', date) + pointInterval);\n }\n else if (pointIntervalUnit === 'month') {\n time.set('Month', date, time.get('Month', date) + pointInterval);\n }\n else if (pointIntervalUnit === 'year') {\n time.set('FullYear', date, time.get('FullYear', date) + pointInterval);\n }\n pointInterval = date.getTime() - xIncrement;\n }\n this.xIncrement = xIncrement + pointInterval;\n return xIncrement;\n },\n /**\n * Set the series options by merging from the options tree. Called\n * internally on initializing and updating series. This function will\n * not redraw the series. For API usage, use {@link Series#update}.\n * @private\n * @function Highcharts.Series#setOptions\n * @param {Highcharts.SeriesOptionsType} itemOptions\n * The series options.\n * @return {Highcharts.SeriesOptionsType}\n * @fires Highcharts.Series#event:afterSetOptions\n */\n setOptions: function (itemOptions) {\n var chart = this.chart, chartOptions = chart.options, plotOptions = chartOptions.plotOptions, userOptions = chart.userOptions || {}, seriesUserOptions = merge(itemOptions), options, zones, zone, styledMode = chart.styledMode, e = {\n plotOptions: plotOptions,\n userOptions: seriesUserOptions\n };\n fireEvent(this, 'setOptions', e);\n // These may be modified by the event\n var typeOptions = e.plotOptions[this.type], userPlotOptions = (userOptions.plotOptions || {});\n // use copy to prevent undetected changes (#9762)\n this.userOptions = e.userOptions;\n options = merge(typeOptions, plotOptions.series, \n // #3881, chart instance plotOptions[type] should trump\n // plotOptions.series\n userOptions.plotOptions &&\n userOptions.plotOptions[this.type], seriesUserOptions);\n // The tooltip options are merged between global and series specific\n // options. Importance order asscendingly:\n // globals: (1)tooltip, (2)plotOptions.series,\n // (3)plotOptions[this.type]\n // init userOptions with possible later updates: 4-6 like 1-3 and\n // (7)this series options\n this.tooltipOptions = merge(defaultOptions.tooltip, // 1\n defaultOptions.plotOptions.series &&\n defaultOptions.plotOptions.series.tooltip, // 2\n defaultOptions.plotOptions[this.type].tooltip, // 3\n chartOptions.tooltip.userOptions, // 4\n plotOptions.series &&\n plotOptions.series.tooltip, // 5\n plotOptions[this.type].tooltip, // 6\n seriesUserOptions.tooltip // 7\n );\n // When shared tooltip, stickyTracking is true by default,\n // unless user says otherwise.\n this.stickyTracking = pick(seriesUserOptions.stickyTracking, userPlotOptions[this.type] &&\n userPlotOptions[this.type].stickyTracking, userPlotOptions.series && userPlotOptions.series.stickyTracking, (this.tooltipOptions.shared && !this.noSharedTooltip ?\n true :\n options.stickyTracking));\n // Delete marker object if not allowed (#1125)\n if (typeOptions.marker === null) {\n delete options.marker;\n }\n // Handle color zones\n this.zoneAxis = options.zoneAxis;\n zones = this.zones = (options.zones || []).slice();\n if ((options.negativeColor || options.negativeFillColor) &&\n !options.zones) {\n zone = {\n value: options[this.zoneAxis + 'Threshold'] ||\n options.threshold ||\n 0,\n className: 'highcharts-negative'\n };\n if (!styledMode) {\n zone.color = options.negativeColor;\n zone.fillColor = options.negativeFillColor;\n }\n zones.push(zone);\n }\n if (zones.length) { // Push one extra zone for the rest\n if (defined(zones[zones.length - 1].value)) {\n zones.push(styledMode ? {} : {\n color: this.color,\n fillColor: this.fillColor\n });\n }\n }\n fireEvent(this, 'afterSetOptions', { options: options });\n return options;\n },\n /**\n * Return series name in \"Series {Number}\" format or the one defined by\n * a user. This method can be simply overridden as series name format\n * can vary (e.g. technical indicators).\n *\n * @function Highcharts.Series#getName\n * @return {string}\n * The series name.\n */\n getName: function () {\n // #4119\n return pick(this.options.name, 'Series ' + (this.index + 1));\n },\n /**\n * @private\n * @function Highcharts.Series#getCyclic\n * @param {string} prop\n * @param {*} [value]\n * @param {Highcharts.Dictionary} [defaults]\n * @return {void}\n */\n getCyclic: function (prop, value, defaults) {\n var i, chart = this.chart, userOptions = this.userOptions, indexName = prop + 'Index', counterName = prop + 'Counter', len = defaults ? defaults.length : pick(chart.options.chart[prop + 'Count'], chart[prop + 'Count']), setting;\n if (!value) {\n // Pick up either the colorIndex option, or the _colorIndex\n // after Series.update()\n setting = pick(userOptions[indexName], userOptions['_' + indexName]);\n if (defined(setting)) { // after Series.update()\n i = setting;\n }\n else {\n // #6138\n if (!chart.series.length) {\n chart[counterName] = 0;\n }\n userOptions['_' + indexName] = i =\n chart[counterName] % len;\n chart[counterName] += 1;\n }\n if (defaults) {\n value = defaults[i];\n }\n }\n // Set the colorIndex\n if (i !== undefined) {\n this[indexName] = i;\n }\n this[prop] = value;\n },\n /**\n * Get the series' color based on either the options or pulled from\n * global options.\n *\n * @private\n * @function Highcharts.Series#getColor\n * @return {void}\n */\n getColor: function () {\n if (this.chart.styledMode) {\n this.getCyclic('color');\n }\n else if (this.options.colorByPoint) {\n // #4359, selected slice got series.color even when colorByPoint\n // was set.\n this.options.color = null;\n }\n else {\n this.getCyclic('color', this.options.color ||\n defaultPlotOptions[this.type].color, this.chart.options.colors);\n }\n },\n /**\n * Get the series' symbol based on either the options or pulled from\n * global options.\n *\n * @private\n * @function Highcharts.Series#getSymbol\n * @return {void}\n */\n getSymbol: function () {\n var seriesMarkerOption = this.options.marker;\n this.getCyclic('symbol', seriesMarkerOption.symbol, this.chart.options.symbols);\n },\n /**\n * Finds the index of an existing point that matches the given point\n * options.\n *\n * @private\n * @function Highcharts.Series#findPointIndex\n * @param {Highcharts.PointOptionsObject} optionsObject\n * The options of the point.\n * @param {number} fromIndex\n * The index to start searching from, used for optimizing\n * series with required sorting.\n * @returns {number|undefined}\n * Returns the index of a matching point, or undefined if no\n * match is found.\n */\n findPointIndex: function (optionsObject, fromIndex) {\n var id = optionsObject.id, x = optionsObject.x, oldData = this.points, matchingPoint, matchedById, pointIndex;\n if (id) {\n matchingPoint = this.chart.get(id);\n pointIndex = matchingPoint && matchingPoint.index;\n if (pointIndex !== undefined) {\n matchedById = true;\n }\n }\n // Search for the same X in the existing data set\n if (pointIndex === undefined && isNumber(x)) {\n pointIndex = this.xData.indexOf(x, fromIndex);\n }\n // Reduce pointIndex if data is cropped\n if (pointIndex !== -1 &&\n pointIndex !== undefined &&\n this.cropped) {\n pointIndex = (pointIndex >= this.cropStart) ?\n pointIndex - this.cropStart : pointIndex;\n }\n if (!matchedById &&\n oldData[pointIndex] && oldData[pointIndex].touched) {\n pointIndex = undefined;\n }\n return pointIndex;\n },\n /**\n * @private\n * @borrows LegendSymbolMixin.drawLineMarker as Highcharts.Series#drawLegendSymbol\n */\n drawLegendSymbol: LegendSymbolMixin.drawLineMarker,\n /**\n * Internal function called from setData. If the point count is the same\n * as is was, or if there are overlapping X values, just run\n * Point.update which is cheaper, allows animation, and keeps references\n * to points. This also allows adding or removing points if the X-es\n * don't match.\n *\n * @private\n * @function Highcharts.Series#updateData\n *\n * @param {Array} data\n *\n * @return {boolean}\n */\n updateData: function (data) {\n var options = this.options, oldData = this.points, pointsToAdd = [], hasUpdatedByKey, i, point, lastIndex, requireSorting = this.requireSorting, equalLength = data.length === oldData.length, succeeded = true;\n this.xIncrement = null;\n // Iterate the new data\n data.forEach(function (pointOptions, i) {\n var id, x, pointIndex, optionsObject = (defined(pointOptions) &&\n this.pointClass.prototype.optionsToObject.call({ series: this }, pointOptions)) || {};\n // Get the x of the new data point\n x = optionsObject.x;\n id = optionsObject.id;\n if (id || isNumber(x)) {\n pointIndex = this.findPointIndex(optionsObject, lastIndex);\n // Matching X not found\n // or used already due to ununique x values (#8995),\n // add point (but later)\n if (pointIndex === -1 ||\n pointIndex === undefined) {\n pointsToAdd.push(pointOptions);\n // Matching X found, update\n }\n else if (oldData[pointIndex] &&\n pointOptions !== options.data[pointIndex]) {\n oldData[pointIndex].update(pointOptions, false, null, false);\n // Mark it touched, below we will remove all points that\n // are not touched.\n oldData[pointIndex].touched = true;\n // Speed optimize by only searching after last known\n // index. Performs ~20% bettor on large data sets.\n if (requireSorting) {\n lastIndex = pointIndex + 1;\n }\n // Point exists, no changes, don't remove it\n }\n else if (oldData[pointIndex]) {\n oldData[pointIndex].touched = true;\n }\n // If the length is equal and some of the nodes had a\n // match in the same position, we don't want to remove\n // non-matches.\n if (!equalLength ||\n i !== pointIndex ||\n this.hasDerivedData) {\n hasUpdatedByKey = true;\n }\n }\n }, this);\n // Remove points that don't exist in the updated data set\n if (hasUpdatedByKey) {\n i = oldData.length;\n while (i--) {\n point = oldData[i];\n if (point && !point.touched) {\n point.remove(false);\n }\n }\n // If we did not find keys (ids or x-values), and the length is the\n // same, update one-to-one\n }\n else if (equalLength) {\n data.forEach(function (point, i) {\n // .update doesn't exist on a linked, hidden series (#3709)\n // (#10187)\n if (oldData[i].update && point !== oldData[i].y) {\n oldData[i].update(point, false, null, false);\n }\n });\n // Did not succeed in updating data\n }\n else {\n succeeded = false;\n }\n oldData.forEach(function (point) {\n if (point) {\n point.touched = false;\n }\n });\n if (!succeeded) {\n return false;\n }\n // Add new points\n pointsToAdd.forEach(function (point) {\n this.addPoint(point, false, null, null, false);\n }, this);\n return true;\n },\n /**\n * Apply a new set of data to the series and optionally redraw it. The\n * new data array is passed by reference (except in case of\n * `updatePoints`), and may later be mutated when updating the chart\n * data.\n *\n * Note the difference in behaviour when setting the same amount of\n * points, or a different amount of points, as handled by the\n * `updatePoints` parameter.\n *\n * @sample highcharts/members/series-setdata/\n * Set new data from a button\n * @sample highcharts/members/series-setdata-pie/\n * Set data in a pie\n * @sample stock/members/series-setdata/\n * Set new data in Highstock\n * @sample maps/members/series-setdata/\n * Set new data in Highmaps\n *\n * @function Highcharts.Series#setData\n *\n * @param {Array} data\n * Takes an array of data in the same format as described under\n * `series.{type}.data` for the given series type, for example a\n * line series would take data in the form described under\n * [series.line.data](https://api.highcharts.com/highcharts/series.line.data).\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after the series is altered. If\n * doing more operations on the chart, it is a good idea to set\n * redraw to false and call {@link Chart#redraw} after.\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation]\n * When the updated data is the same length as the existing data,\n * points will be updated by default, and animation visualizes\n * how the points are changed. Set false to disable animation, or\n * a configuration object to set duration or easing.\n *\n * @param {boolean} [updatePoints=true]\n * When this is true, points will be updated instead of replaced\n * whenever possible. This occurs a) when the updated data is the\n * same length as the existing data, b) when points are matched\n * by their id's, or c) when points can be matched by X values.\n * This allows updating with animation and performs better. In\n * this case, the original array is not passed by reference. Set\n * `false` to prevent.\n *\n * @return {void}\n */\n setData: function (data, redraw, animation, updatePoints) {\n var series = this, oldData = series.points, oldDataLength = (oldData && oldData.length) || 0, dataLength, options = series.options, chart = series.chart, firstPoint = null, xAxis = series.xAxis, i, turboThreshold = options.turboThreshold, pt, xData = this.xData, yData = this.yData, pointArrayMap = series.pointArrayMap, valueCount = pointArrayMap && pointArrayMap.length, keys = options.keys, indexOfX = 0, indexOfY = 1, updatedData;\n data = data || [];\n dataLength = data.length;\n redraw = pick(redraw, true);\n // First try to run Point.update which is cheaper, allows animation,\n // and keeps references to points.\n if (updatePoints !== false &&\n dataLength &&\n oldDataLength &&\n !series.cropped &&\n !series.hasGroupedData &&\n series.visible &&\n // Soft updating has no benefit in boost, and causes JS error\n // (#8355)\n !series.isSeriesBoosting) {\n updatedData = this.updateData(data);\n }\n if (!updatedData) {\n // Reset properties\n series.xIncrement = null;\n series.colorCounter = 0; // for series with colorByPoint (#1547)\n // Update parallel arrays\n this.parallelArrays.forEach(function (key) {\n series[key + 'Data'].length = 0;\n });\n // In turbo mode, only one- or twodimensional arrays of numbers\n // are allowed. The first value is tested, and we assume that\n // all the rest are defined the same way. Although the 'for'\n // loops are similar, they are repeated inside each if-else\n // conditional for max performance.\n if (turboThreshold && dataLength > turboThreshold) {\n firstPoint = series.getFirstValidPoint(data);\n if (isNumber(firstPoint)) { // assume all points are numbers\n for (i = 0; i < dataLength; i++) {\n xData[i] = this.autoIncrement();\n yData[i] = data[i];\n }\n // Assume all points are arrays when first point is\n }\n else if (isArray(firstPoint)) {\n if (valueCount) { // [x, low, high] or [x, o, h, l, c]\n for (i = 0; i < dataLength; i++) {\n pt = data[i];\n xData[i] = pt[0];\n yData[i] =\n pt.slice(1, valueCount + 1);\n }\n }\n else { // [x, y]\n if (keys) {\n indexOfX = keys.indexOf('x');\n indexOfY = keys.indexOf('y');\n indexOfX = indexOfX >= 0 ? indexOfX : 0;\n indexOfY = indexOfY >= 0 ? indexOfY : 1;\n }\n for (i = 0; i < dataLength; i++) {\n pt = data[i];\n xData[i] = pt[indexOfX];\n yData[i] = pt[indexOfY];\n }\n }\n }\n else {\n // Highcharts expects configs to be numbers or arrays in\n // turbo mode\n H.error(12, false, chart);\n }\n }\n else {\n for (i = 0; i < dataLength; i++) {\n if (data[i] !== undefined) { // stray commas in oldIE\n pt = { series: series };\n series.pointClass.prototype.applyOptions.apply(pt, [data[i]]);\n series.updateParallelArrays(pt, i);\n }\n }\n }\n // Forgetting to cast strings to numbers is a common caveat when\n // handling CSV or JSON\n if (yData && isString(yData[0])) {\n H.error(14, true, chart);\n }\n series.data = [];\n series.options.data = series.userOptions.data = data;\n // destroy old points\n i = oldDataLength;\n while (i--) {\n if (oldData[i] && oldData[i].destroy) {\n oldData[i].destroy();\n }\n }\n // reset minRange (#878)\n if (xAxis) {\n xAxis.minRange = xAxis.userMinRange;\n }\n // redraw\n series.isDirty = chart.isDirtyBox = true;\n series.isDirtyData = !!oldData;\n animation = false;\n }\n // Typically for pie series, points need to be processed and\n // generated prior to rendering the legend\n if (options.legendType === 'point') {\n this.processData();\n this.generatePoints();\n }\n if (redraw) {\n chart.redraw(animation);\n }\n },\n /**\n * Internal function to process the data by cropping away unused data\n * points if the series is longer than the crop threshold. This saves\n * computing time for large series. In Highstock, this function is\n * extended to provide data grouping.\n *\n * @private\n * @function Highcharts.Series#processData\n * @param {boolean} [force]\n * Force data grouping.\n * @return {boolean|undefined}\n */\n processData: function (force) {\n var series = this, \n // copied during slice operation:\n processedXData = series.xData, processedYData = series.yData, dataLength = processedXData.length, croppedData, cropStart = 0, cropped, distance, closestPointRange, xAxis = series.xAxis, i, // loop variable\n options = series.options, cropThreshold = options.cropThreshold, getExtremesFromAll = series.getExtremesFromAll ||\n options.getExtremesFromAll, // #4599\n isCartesian = series.isCartesian, xExtremes, val2lin = xAxis && xAxis.val2lin, isLog = xAxis && xAxis.isLog, throwOnUnsorted = series.requireSorting, min, max;\n // If the series data or axes haven't changed, don't go through\n // this. Return false to pass the message on to override methods\n // like in data grouping.\n if (isCartesian &&\n !series.isDirty &&\n !xAxis.isDirty &&\n !series.yAxis.isDirty &&\n !force) {\n return false;\n }\n if (xAxis) {\n // corrected for log axis (#3053)\n xExtremes = xAxis.getExtremes();\n min = xExtremes.min;\n max = xExtremes.max;\n }\n // optionally filter out points outside the plot area\n if (isCartesian &&\n series.sorted &&\n !getExtremesFromAll &&\n (!cropThreshold ||\n dataLength > cropThreshold ||\n series.forceCrop)) {\n // it's outside current extremes\n if (processedXData[dataLength - 1] < min ||\n processedXData[0] > max) {\n processedXData = [];\n processedYData = [];\n // only crop if it's actually spilling out\n }\n else if (series.yData && (processedXData[0] < min ||\n processedXData[dataLength - 1] > max)) {\n croppedData = this.cropData(series.xData, series.yData, min, max);\n processedXData = croppedData.xData;\n processedYData = croppedData.yData;\n cropStart = croppedData.start;\n cropped = true;\n }\n }\n // Find the closest distance between processed points\n i = processedXData.length || 1;\n while (--i) {\n distance = (isLog ?\n (val2lin(processedXData[i]) -\n val2lin(processedXData[i - 1])) :\n (processedXData[i] -\n processedXData[i - 1]));\n if (distance > 0 &&\n (closestPointRange === undefined ||\n distance < closestPointRange)) {\n closestPointRange = distance;\n // Unsorted data is not supported by the line tooltip, as well\n // as data grouping and navigation in Stock charts (#725) and\n // width calculation of columns (#1900)\n }\n else if (distance < 0 && throwOnUnsorted) {\n H.error(15, false, series.chart);\n throwOnUnsorted = false; // Only once\n }\n }\n // Record the properties\n series.cropped = cropped; // undefined or true\n series.cropStart = cropStart;\n series.processedXData = processedXData;\n series.processedYData = processedYData;\n series.closestPointRange =\n series.basePointRange = closestPointRange;\n },\n /**\n * Iterate over xData and crop values between min and max. Returns\n * object containing crop start/end cropped xData with corresponding\n * part of yData, dataMin and dataMax within the cropped range.\n *\n * @private\n * @function Highcharts.Series#cropData\n * @param {Array} xData\n * @param {Array} yData\n * @param {number} min\n * @param {number} max\n * @param {number} [cropShoulder]\n * @return {Highcharts.SeriesCropDataObject}\n */\n cropData: function (xData, yData, min, max, cropShoulder) {\n var dataLength = xData.length, cropStart = 0, cropEnd = dataLength, i, j;\n // line-type series need one point outside\n cropShoulder = pick(cropShoulder, this.cropShoulder);\n // iterate up to find slice start\n for (i = 0; i < dataLength; i++) {\n if (xData[i] >= min) {\n cropStart = Math.max(0, i - cropShoulder);\n break;\n }\n }\n // proceed to find slice end\n for (j = i; j < dataLength; j++) {\n if (xData[j] > max) {\n cropEnd = j + cropShoulder;\n break;\n }\n }\n return {\n xData: xData.slice(cropStart, cropEnd),\n yData: yData.slice(cropStart, cropEnd),\n start: cropStart,\n end: cropEnd\n };\n },\n /**\n * Generate the data point after the data has been processed by cropping\n * away unused points and optionally grouped in Highcharts Stock.\n *\n * @private\n * @function Highcharts.Series#generatePoints\n * @return {void}\n */\n generatePoints: function () {\n var series = this, options = series.options, dataOptions = options.data, data = series.data, dataLength, processedXData = series.processedXData, processedYData = series.processedYData, PointClass = series.pointClass, processedDataLength = processedXData.length, cropStart = series.cropStart || 0, cursor, hasGroupedData = series.hasGroupedData, keys = options.keys, point, points = [], i;\n if (!data && !hasGroupedData) {\n var arr = [];\n arr.length = dataOptions.length;\n data = series.data = arr;\n }\n if (keys && hasGroupedData) {\n // grouped data has already applied keys (#6590)\n series.options.keys = false;\n }\n for (i = 0; i < processedDataLength; i++) {\n cursor = cropStart + i;\n if (!hasGroupedData) {\n point = data[cursor];\n // #970:\n if (!point && dataOptions[cursor] !== undefined) {\n data[cursor] = point = (new PointClass()).init(series, dataOptions[cursor], processedXData[i]);\n }\n }\n else {\n // splat the y data in case of ohlc data array\n point = (new PointClass()).init(series, [processedXData[i]].concat(splat(processedYData[i])));\n /**\n * Highstock only. If a point object is created by data\n * grouping, it doesn't reflect actual points in the raw\n * data. In this case, the `dataGroup` property holds\n * information that points back to the raw data.\n *\n * - `dataGroup.start` is the index of the first raw data\n * point in the group.\n *\n * - `dataGroup.length` is the amount of points in the\n * group.\n *\n * @product highstock\n *\n * @name Highcharts.Point#dataGroup\n * @type {Highcharts.DataGroupingInfoObject|undefined}\n */\n point.dataGroup = series.groupMap[i];\n if (point.dataGroup.options) {\n point.options = point.dataGroup.options;\n extend(point, point.dataGroup.options);\n // Collision of props and options (#9770)\n delete point.dataLabels;\n }\n }\n if (point) { // #6279\n point.index = cursor; // For faster access in Point.update\n points[i] = point;\n }\n }\n // restore keys options (#6590)\n series.options.keys = keys;\n // Hide cropped-away points - this only runs when the number of\n // points is above cropThreshold, or when swithching view from\n // non-grouped data to grouped data (#637)\n if (data &&\n (processedDataLength !== (dataLength = data.length) ||\n hasGroupedData)) {\n for (i = 0; i < dataLength; i++) {\n // when has grouped data, clear all points\n if (i === cropStart && !hasGroupedData) {\n i += processedDataLength;\n }\n if (data[i]) {\n data[i].destroyElements();\n data[i].plotX = undefined; // #1003\n }\n }\n }\n /**\n * Read only. An array containing those values converted to points.\n * In case the series data length exceeds the `cropThreshold`, or if\n * the data is grouped, `series.data` doesn't contain all the\n * points. Also, in case a series is hidden, the `data` array may be\n * empty. To access raw values, `series.options.data` will always be\n * up to date. `Series.data` only contains the points that have been\n * created on demand. To modify the data, use\n * {@link Highcharts.Series#setData} or\n * {@link Highcharts.Point#update}.\n *\n * @see Series.points\n *\n * @name Highcharts.Series#data\n * @type {Array}\n */\n series.data = data;\n /**\n * An array containing all currently visible point objects. In case\n * of cropping, the cropped-away points are not part of this array.\n * The `series.points` array starts at `series.cropStart` compared\n * to `series.data` and `series.options.data`. If however the series\n * data is grouped, these can't be correlated one to one. To modify\n * the data, use {@link Highcharts.Series#setData} or\n * {@link Highcharts.Point#update}.\n *\n * @name Highcharts.Series#points\n * @type {Array}\n */\n series.points = points;\n fireEvent(this, 'afterGeneratePoints');\n },\n /**\n * Get current X extremes for the visible data.\n *\n * @private\n * @function Highcharts.Series#getExtremes\n *\n * @param {Array} xData\n * The data to inspect. Defaults to the current data within the\n * visible range.\n * @return {Highcharts.RangeObject}\n */\n getXExtremes: function (xData) {\n return {\n min: arrayMin(xData),\n max: arrayMax(xData)\n };\n },\n /**\n * Calculate Y extremes for the visible data. The result is set as\n * `dataMin` and `dataMax` on the Series item.\n *\n * @private\n * @function Highcharts.Series#getExtremes\n * @param {Array} [yData]\n * The data to inspect. Defaults to the current data within the\n * visible range.\n * @return {void}\n */\n getExtremes: function (yData) {\n var xAxis = this.xAxis, yAxis = this.yAxis, xData = this.processedXData || this.xData, yDataLength, activeYData = [], activeCounter = 0, \n // #2117, need to compensate for log X axis\n xExtremes, xMin = 0, xMax = 0, validValue, withinRange, \n // Handle X outside the viewed area. This does not work with\n // non-sorted data like scatter (#7639).\n shoulder = this.requireSorting ? this.cropShoulder : 0, positiveValuesOnly = yAxis ? yAxis.positiveValuesOnly : false, x, y, i, j;\n yData = yData || this.stackedYData || this.processedYData || [];\n yDataLength = yData.length;\n if (xAxis) {\n xExtremes = xAxis.getExtremes();\n xMin = xExtremes.min;\n xMax = xExtremes.max;\n }\n for (i = 0; i < yDataLength; i++) {\n x = xData[i];\n y = yData[i];\n // For points within the visible range, including the first\n // point outside the visible range (#7061), consider y extremes.\n validValue = ((isNumber(y) || isArray(y)) &&\n ((y.length || y > 0) || !positiveValuesOnly));\n withinRange = (this.getExtremesFromAll ||\n this.options.getExtremesFromAll ||\n this.cropped ||\n !xAxis || // for colorAxis support\n ((xData[i + shoulder] || x) >= xMin &&\n (xData[i - shoulder] || x) <= xMax));\n if (validValue && withinRange) {\n j = y.length;\n if (j) { // array, like ohlc or range data\n while (j--) {\n if (isNumber(y[j])) { // #7380, #11513\n activeYData[activeCounter++] = y[j];\n }\n }\n }\n else {\n activeYData[activeCounter++] = y;\n }\n }\n }\n this.dataMin = arrayMin(activeYData);\n this.dataMax = arrayMax(activeYData);\n fireEvent(this, 'afterGetExtremes');\n },\n /**\n * Find and return the first non null point in the data\n *\n * @private\n * @function Highcharts.Series.getFirstValidPoint\n * @param {Array} data\n * Array of options for points\n *\n * @return {Highcharts.PointOptionsType}\n */\n getFirstValidPoint: function (data) {\n var firstPoint = null, dataLength = data.length, i = 0;\n while (firstPoint === null && i < dataLength) {\n firstPoint = data[i];\n i++;\n }\n return firstPoint;\n },\n /**\n * Translate data points from raw data values to chart specific\n * positioning data needed later in the `drawPoints` and `drawGraph`\n * functions. This function can be overridden in plugins and custom\n * series type implementations.\n *\n * @function Highcharts.Series#translate\n * @return {void}\n * @fires Highcharts.Series#events:translate\n */\n translate: function () {\n if (!this.processedXData) { // hidden series\n this.processData();\n }\n this.generatePoints();\n var series = this, options = series.options, stacking = options.stacking, xAxis = series.xAxis, categories = xAxis.categories, yAxis = series.yAxis, points = series.points, dataLength = points.length, hasModifyValue = !!series.modifyValue, i, pointPlacement = series.pointPlacementToXValue(), // #7860\n dynamicallyPlaced = isNumber(pointPlacement), threshold = options.threshold, stackThreshold = options.startFromThreshold ? threshold : 0, plotX, plotY, lastPlotX, stackIndicator, zoneAxis = this.zoneAxis || 'y', closestPointRangePx = Number.MAX_VALUE;\n /**\n * Plotted coordinates need to be within a limited range. Drawing\n * too far outside the viewport causes various rendering issues\n * (#3201, #3923, #7555).\n * @private\n */\n function limitedRange(val) {\n return Math.min(Math.max(-1e5, val), 1e5);\n }\n // Translate each point\n for (i = 0; i < dataLength; i++) {\n var point = points[i], xValue = point.x, yValue = point.y, yBottom = point.low, stack = stacking && yAxis.stacks[(series.negStacks &&\n yValue <\n (stackThreshold ? 0 : threshold) ?\n '-' :\n '') + series.stackKey], pointStack, stackValues;\n // Discard disallowed y values for log axes (#3434)\n if (yAxis.positiveValuesOnly &&\n yValue !== null &&\n yValue <= 0) {\n point.isNull = true;\n }\n // Get the plotX translation\n point.plotX = plotX = correctFloat(// #5236\n limitedRange(xAxis.translate(// #3923\n xValue, 0, 0, 0, 1, pointPlacement, this.type === 'flags')) // #3923\n );\n // Calculate the bottom y value for stacked series\n if (stacking &&\n series.visible &&\n stack &&\n stack[xValue]) {\n stackIndicator = series.getStackIndicator(stackIndicator, xValue, series.index);\n if (!point.isNull) {\n pointStack = stack[xValue];\n stackValues =\n pointStack.points[stackIndicator.key];\n }\n }\n if (isArray(stackValues)) {\n yBottom = stackValues[0];\n yValue = stackValues[1];\n if (yBottom === stackThreshold &&\n stackIndicator.key ===\n stack[xValue].base) {\n yBottom = pick((isNumber(threshold) && threshold), yAxis.min);\n }\n // #1200, #1232\n if (yAxis.positiveValuesOnly && yBottom <= 0) {\n yBottom = null;\n }\n point.total = point.stackTotal = pointStack.total;\n point.percentage =\n pointStack.total &&\n (point.y / pointStack.total * 100);\n point.stackY = yValue;\n // Place the stack label\n // in case of variwide series (where widths of points are\n // different in most cases), stack labels are positioned\n // wrongly, so the call of the setOffset is omited here and\n // labels are correctly positioned later, at the end of the\n // variwide's translate function (#10962)\n if (!series.irregularWidths) {\n pointStack.setOffset(series.pointXOffset || 0, series.barW || 0);\n }\n }\n // Set translated yBottom or remove it\n point.yBottom = defined(yBottom) ?\n limitedRange(yAxis.translate(yBottom, 0, 1, 0, 1)) :\n null;\n // general hook, used for Highstock compare mode\n if (hasModifyValue) {\n yValue = series.modifyValue(yValue, point);\n }\n // Set the the plotY value, reset it for redraws\n // #3201\n point.plotY = plotY = ((typeof yValue === 'number' && yValue !== Infinity) ?\n limitedRange(yAxis.translate(yValue, 0, 1, 0, 1)) :\n undefined);\n point.isInside =\n plotY !== undefined &&\n plotY >= 0 &&\n plotY <= yAxis.len && // #3519\n plotX >= 0 &&\n plotX <= xAxis.len;\n // Set client related positions for mouse tracking\n point.clientX = dynamicallyPlaced ?\n correctFloat(xAxis.translate(xValue, 0, 0, 0, 1, pointPlacement)) :\n plotX; // #1514, #5383, #5518\n // Negative points. For bubble charts, this means negative z\n // values (#9728)\n point.negative = point[zoneAxis] < (options[zoneAxis + 'Threshold'] ||\n threshold ||\n 0);\n // some API data\n point.category = (categories &&\n categories[point.x] !== undefined ?\n categories[point.x] :\n point.x);\n // Determine auto enabling of markers (#3635, #5099)\n if (!point.isNull) {\n if (lastPlotX !== undefined) {\n closestPointRangePx = Math.min(closestPointRangePx, Math.abs(plotX - lastPlotX));\n }\n lastPlotX = plotX;\n }\n // Find point zone\n point.zone = (this.zones.length && point.getZone());\n }\n series.closestPointRangePx = closestPointRangePx;\n fireEvent(this, 'afterTranslate');\n },\n /**\n * Return the series points with null points filtered out.\n *\n * @function Highcharts.Series#getValidPoints\n *\n * @param {Array} [points]\n * The points to inspect, defaults to {@link Series.points}.\n *\n * @param {boolean} [insideOnly=false]\n * Whether to inspect only the points that are inside the visible\n * view.\n *\n * @param {boolean} [allowNull=false]\n * Whether to allow null points to pass as valid points.\n *\n * @return {Array}\n * The valid points.\n */\n getValidPoints: function (points, insideOnly, allowNull) {\n var chart = this.chart;\n // #3916, #5029, #5085\n return (points || this.points || []).filter(function isValidPoint(point) {\n if (insideOnly && !chart.isInsidePlot(point.plotX, point.plotY, chart.inverted)) {\n return false;\n }\n return allowNull || !point.isNull;\n });\n },\n /**\n * Get the clipping for the series. Could be called for a series to\n * initiate animating the clip or to set the final clip (only width\n * and x).\n *\n * @private\n * @function Highcharts.Series#getClip\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation]\n * Initialize the animation.\n * @param {boolean} [finalBox]\n * Final size for the clip - end state for the animation.\n * @return {Highcharts.Dictionary}\n */\n getClipBox: function (animation, finalBox) {\n var series = this, options = series.options, chart = series.chart, inverted = chart.inverted, xAxis = series.xAxis, yAxis = xAxis && series.yAxis, clipBox;\n if (animation && options.clip === false && yAxis) {\n // support for not clipped series animation (#10450)\n clipBox = inverted ? {\n y: -chart.chartWidth + yAxis.len + yAxis.pos,\n height: chart.chartWidth,\n width: chart.chartHeight,\n x: -chart.chartHeight + xAxis.len + xAxis.pos\n } : {\n y: -yAxis.pos,\n height: chart.chartHeight,\n width: chart.chartWidth,\n x: -xAxis.pos\n };\n // x and width will be changed later when setting for animation\n // initial state in Series.setClip\n }\n else {\n clipBox = series.clipBox || chart.clipBox;\n if (finalBox) {\n clipBox.width = chart.plotSizeX;\n clipBox.x = 0;\n }\n }\n return !finalBox ? clipBox : {\n width: clipBox.width,\n x: clipBox.x\n };\n },\n /**\n * Set the clipping for the series. For animated series it is called\n * twice, first to initiate animating the clip then the second time\n * without the animation to set the final clip.\n *\n * @private\n * @function Highcharts.Series#setClip\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation]\n * @return {void}\n */\n setClip: function (animation) {\n var chart = this.chart, options = this.options, renderer = chart.renderer, inverted = chart.inverted, seriesClipBox = this.clipBox, clipBox = this.getClipBox(animation), sharedClipKey = this.sharedClipKey ||\n [\n '_sharedClip',\n animation && animation.duration,\n animation && animation.easing,\n clipBox.height,\n options.xAxis,\n options.yAxis\n ].join(','), // #4526\n clipRect = chart[sharedClipKey], markerClipRect = chart[sharedClipKey + 'm'];\n // If a clipping rectangle with the same properties is currently\n // present in the chart, use that.\n if (!clipRect) {\n // When animation is set, prepare the initial positions\n if (animation) {\n clipBox.width = 0;\n if (inverted) {\n clipBox.x = chart.plotSizeX +\n (options.clip !== false ? 0 : chart.plotTop);\n }\n chart[sharedClipKey + 'm'] = markerClipRect =\n renderer.clipRect(\n // include the width of the first marker\n inverted ? chart.plotSizeX + 99 : -99, inverted ? -chart.plotLeft : -chart.plotTop, 99, inverted ? chart.chartWidth : chart.chartHeight);\n }\n chart[sharedClipKey] = clipRect =\n renderer.clipRect(clipBox);\n // Create hashmap for series indexes\n clipRect.count = { length: 0 };\n }\n if (animation) {\n if (!clipRect.count[this.index]) {\n clipRect.count[this.index] = true;\n clipRect.count.length += 1;\n }\n }\n if (options.clip !== false || animation) {\n this.group.clip(animation || seriesClipBox ? clipRect : chart.clipRect);\n this.markerGroup.clip(markerClipRect);\n this.sharedClipKey = sharedClipKey;\n }\n // Remove the shared clipping rectangle when all series are shown\n if (!animation) {\n if (clipRect.count[this.index]) {\n delete clipRect.count[this.index];\n clipRect.count.length -= 1;\n }\n if (clipRect.count.length === 0 &&\n sharedClipKey &&\n chart[sharedClipKey]) {\n if (!seriesClipBox) {\n chart[sharedClipKey] =\n chart[sharedClipKey].destroy();\n }\n if (chart[sharedClipKey + 'm']) {\n chart[sharedClipKey + 'm'] =\n chart[sharedClipKey + 'm'].destroy();\n }\n }\n }\n },\n /**\n * Animate in the series. Called internally twice. First with the `init`\n * parameter set to true, which sets up the initial state of the\n * animation. Then when ready, it is called with the `init` parameter\n * undefined, in order to perform the actual animation. After the\n * second run, the function is removed.\n *\n * @function Highcharts.Series#animate\n *\n * @param {boolean} [init]\n * Initialize the animation.\n *\n * @return {void}\n */\n animate: function (init) {\n var series = this, chart = series.chart, animation = animObject(series.options.animation), clipRect, sharedClipKey, finalBox;\n // Initialize the animation. Set up the clipping rectangle.\n if (init) {\n series.setClip(animation);\n // Run the animation\n }\n else {\n sharedClipKey = this.sharedClipKey;\n clipRect = chart[sharedClipKey];\n finalBox = series.getClipBox(animation, true);\n if (clipRect) {\n clipRect.animate(finalBox, animation);\n }\n if (chart[sharedClipKey + 'm']) {\n chart[sharedClipKey + 'm'].animate({\n width: finalBox.width + 99,\n x: finalBox.x - (chart.inverted ? 0 : 99)\n }, animation);\n }\n // Delete this function to allow it only once\n series.animate = null;\n }\n },\n /**\n * This runs after animation to land on the final plot clipping.\n *\n * @private\n * @function Highcharts.Series#afterAnimate\n * @return {void}\n * @fires Highcharts.Series#event:afterAnimate\n */\n afterAnimate: function () {\n this.setClip();\n fireEvent(this, 'afterAnimate');\n this.finishedAnimating = true;\n },\n /**\n * Draw the markers for line-like series types, and columns or other\n * graphical representation for {@link Point} objects for other series\n * types. The resulting element is typically stored as\n * {@link Point.graphic}, and is created on the first call and updated\n * and moved on subsequent calls.\n *\n * @function Highcharts.Series#drawPoints\n */\n drawPoints: function () {\n var series = this, points = series.points, chart = series.chart, i, point, graphic, verb, options = series.options, seriesMarkerOptions = options.marker, pointMarkerOptions, hasPointMarker, enabled, isInside, markerGroup = (series[series.specialGroup] ||\n series.markerGroup), xAxis = series.xAxis, markerAttribs, globallyEnabled = pick(seriesMarkerOptions.enabled, !xAxis || xAxis.isRadial ? true : null, \n // Use larger or equal as radius is null in bubbles (#6321)\n series.closestPointRangePx >= (seriesMarkerOptions.enabledThreshold *\n seriesMarkerOptions.radius));\n if (seriesMarkerOptions.enabled !== false ||\n series._hasPointMarkers) {\n for (i = 0; i < points.length; i++) {\n point = points[i];\n graphic = point.graphic;\n verb = graphic ? 'animate' : 'attr';\n pointMarkerOptions = point.marker || {};\n hasPointMarker = !!point.marker;\n enabled = (globallyEnabled &&\n pointMarkerOptions.enabled === undefined) || pointMarkerOptions.enabled;\n isInside = point.isInside !== false;\n // only draw the point if y is defined\n if (enabled && !point.isNull) {\n // Shortcuts\n var symbol = pick(pointMarkerOptions.symbol, series.symbol);\n markerAttribs = series.markerAttribs(point, (point.selected && 'select'));\n if (graphic) { // update\n // Since the marker group isn't clipped, each\n // individual marker must be toggled\n graphic[isInside ? 'show' : 'hide'](isInside)\n .animate(markerAttribs);\n }\n else if (isInside &&\n (markerAttribs.width > 0 || point.hasImage)) {\n /**\n * The graphic representation of the point.\n * Typically this is a simple shape, like a `rect`\n * for column charts or `path` for line markers, but\n * for some complex series types like boxplot or 3D\n * charts, the graphic may be a `g` element\n * containing other shapes. The graphic is generated\n * the first time {@link Series#drawPoints} runs,\n * and updated and moved on subsequent runs.\n *\n * @name Point#graphic\n * @type {SVGElement}\n */\n point.graphic = graphic = chart.renderer\n .symbol(symbol, markerAttribs.x, markerAttribs.y, markerAttribs.width, markerAttribs.height, hasPointMarker ?\n pointMarkerOptions :\n seriesMarkerOptions)\n .add(markerGroup);\n }\n // Presentational attributes\n if (graphic && !chart.styledMode) {\n graphic[verb](series.pointAttribs(point, (point.selected && 'select')));\n }\n if (graphic) {\n graphic.addClass(point.getClassName(), true);\n }\n }\n else if (graphic) {\n point.graphic = graphic.destroy(); // #1269\n }\n }\n }\n },\n /**\n * Get non-presentational attributes for a point. Used internally for\n * both styled mode and classic. Can be overridden for different series\n * types.\n *\n * @see Series#pointAttribs\n *\n * @function Highcharts.Series#markerAttribs\n *\n * @param {Highcharts.Point} point\n * The Point to inspect.\n *\n * @param {string} [state]\n * The state, can be either `hover`, `select` or undefined.\n *\n * @return {Highcharts.SVGAttributes}\n * A hash containing those attributes that are not settable from\n * CSS.\n */\n markerAttribs: function (point, state) {\n var seriesMarkerOptions = this.options.marker, seriesStateOptions, pointMarkerOptions = point.marker || {}, symbol = (pointMarkerOptions.symbol ||\n seriesMarkerOptions.symbol), pointStateOptions, radius = pick(pointMarkerOptions.radius, seriesMarkerOptions.radius), attribs;\n // Handle hover and select states\n if (state) {\n seriesStateOptions = seriesMarkerOptions.states[state];\n pointStateOptions = pointMarkerOptions.states &&\n pointMarkerOptions.states[state];\n radius = pick(pointStateOptions && pointStateOptions.radius, seriesStateOptions && seriesStateOptions.radius, radius + (seriesStateOptions && seriesStateOptions.radiusPlus ||\n 0));\n }\n point.hasImage = symbol && symbol.indexOf('url') === 0;\n if (point.hasImage) {\n radius = 0; // and subsequently width and height is not set\n }\n attribs = {\n // Math.floor for #1843:\n x: Math.floor(point.plotX) - radius,\n y: point.plotY - radius\n };\n if (radius) {\n attribs.width = attribs.height = 2 * radius;\n }\n return attribs;\n },\n /**\n * Internal function to get presentational attributes for each point.\n * Unlike {@link Series#markerAttribs}, this function should return\n * those attributes that can also be set in CSS. In styled mode,\n * `pointAttribs` won't be called.\n *\n * @private\n * @function Highcharts.Series#pointAttribs\n *\n * @param {Highcharts.Point} [point]\n * The point instance to inspect.\n *\n * @param {string} [state]\n * The point state, can be either `hover`, `select` or 'normal'.\n * If undefined, normal state is assumed.\n *\n * @return {Highcharts.SVGAttributes}\n * The presentational attributes to be set on the point.\n */\n pointAttribs: function (point, state) {\n var seriesMarkerOptions = this.options.marker, seriesStateOptions, pointOptions = point && point.options, pointMarkerOptions = ((pointOptions && pointOptions.marker) || {}), pointStateOptions, color = this.color, pointColorOption = pointOptions && pointOptions.color, pointColor = point && point.color, strokeWidth = pick(pointMarkerOptions.lineWidth, seriesMarkerOptions.lineWidth), zoneColor = point && point.zone && point.zone.color, fill, stroke, opacity = 1;\n color = (pointColorOption ||\n zoneColor ||\n pointColor ||\n color);\n fill = (pointMarkerOptions.fillColor ||\n seriesMarkerOptions.fillColor ||\n color);\n stroke = (pointMarkerOptions.lineColor ||\n seriesMarkerOptions.lineColor ||\n color);\n // Handle hover and select states\n state = state || 'normal';\n if (state) {\n seriesStateOptions = seriesMarkerOptions.states[state];\n pointStateOptions = (pointMarkerOptions.states &&\n pointMarkerOptions.states[state]) || {};\n strokeWidth = pick(pointStateOptions.lineWidth, seriesStateOptions.lineWidth, strokeWidth + pick(pointStateOptions.lineWidthPlus, seriesStateOptions.lineWidthPlus, 0));\n fill = (pointStateOptions.fillColor ||\n seriesStateOptions.fillColor ||\n fill);\n stroke = (pointStateOptions.lineColor ||\n seriesStateOptions.lineColor ||\n stroke);\n opacity = pick(pointStateOptions.opacity, seriesStateOptions.opacity, opacity);\n }\n return {\n 'stroke': stroke,\n 'stroke-width': strokeWidth,\n 'fill': fill,\n 'opacity': opacity\n };\n },\n /**\n * Clear DOM objects and free up memory.\n *\n * @private\n * @function Highcharts.Series#destroy\n * @param {boolean} [keepEvents]\n * @return {void}\n * @fires Highcharts.Series#event:destroy\n */\n destroy: function (keepEvents) {\n var series = this, chart = series.chart, issue134 = /AppleWebKit\\/533/.test(win.navigator.userAgent), destroy, i, data = series.data || [], point, axis;\n // add event hook\n fireEvent(series, 'destroy');\n // remove all events\n if (!keepEvents) {\n removeEvent(series);\n }\n // erase from axes\n (series.axisTypes || []).forEach(function (AXIS) {\n axis = series[AXIS];\n if (axis && axis.series) {\n erase(axis.series, series);\n axis.isDirty = axis.forceRedraw = true;\n }\n });\n // remove legend items\n if (series.legendItem) {\n series.chart.legend.destroyItem(series);\n }\n // destroy all points with their elements\n i = data.length;\n while (i--) {\n point = data[i];\n if (point && point.destroy) {\n point.destroy();\n }\n }\n series.points = null;\n // Clear the animation timeout if we are destroying the series\n // during initial animation\n H.clearTimeout(series.animationTimeout);\n // Destroy all SVGElements associated to the series\n objectEach(series, function (val, prop) {\n // Survive provides a hook for not destroying\n if (val instanceof SVGElement && !val.survive) {\n // issue 134 workaround\n destroy = issue134 && prop === 'group' ?\n 'hide' :\n 'destroy';\n val[destroy]();\n }\n });\n // remove from hoverSeries\n if (chart.hoverSeries === series) {\n chart.hoverSeries = null;\n }\n erase(chart.series, series);\n chart.orderSeries();\n // clear all members\n objectEach(series, function (val, prop) {\n if (!keepEvents || prop !== 'hcEvents') {\n delete series[prop];\n }\n });\n },\n /**\n * Get the graph path.\n *\n * @private\n * @function Highcharts.Series#getGraphPath\n * @param {Array} points\n * @param {boolean} [nullsAsZeroes]\n * @param {boolean} [connectCliffs]\n * @return {Highcharts.SVGPathArray}\n */\n getGraphPath: function (points, nullsAsZeroes, connectCliffs) {\n var series = this, options = series.options, step = options.step, reversed, graphPath = [], xMap = [], gap;\n points = points || series.points;\n // Bottom of a stack is reversed\n reversed = points.reversed;\n if (reversed) {\n points.reverse();\n }\n // Reverse the steps (#5004)\n step = {\n right: 1,\n center: 2\n }[step] || (step && 3);\n if (step && reversed) {\n step = 4 - step;\n }\n // Remove invalid points, especially in spline (#5015)\n if (options.connectNulls && !nullsAsZeroes && !connectCliffs) {\n points = this.getValidPoints(points);\n }\n // Build the line\n points.forEach(function (point, i) {\n var plotX = point.plotX, plotY = point.plotY, lastPoint = points[i - 1], \n // the path to this point from the previous\n pathToPoint;\n if ((point.leftCliff || (lastPoint && lastPoint.rightCliff)) &&\n !connectCliffs) {\n gap = true; // ... and continue\n }\n // Line series, nullsAsZeroes is not handled\n if (point.isNull && !defined(nullsAsZeroes) && i > 0) {\n gap = !options.connectNulls;\n // Area series, nullsAsZeroes is set\n }\n else if (point.isNull && !nullsAsZeroes) {\n gap = true;\n }\n else {\n if (i === 0 || gap) {\n pathToPoint = [\n 'M',\n point.plotX,\n point.plotY\n ];\n // Generate the spline as defined in the SplineSeries object\n }\n else if (series.getPointSpline) {\n pathToPoint = series.getPointSpline(points, point, i);\n }\n else if (step) {\n if (step === 1) { // right\n pathToPoint = [\n 'L',\n lastPoint.plotX,\n plotY\n ];\n }\n else if (step === 2) { // center\n pathToPoint = [\n 'L',\n (lastPoint.plotX + plotX) / 2,\n lastPoint.plotY,\n 'L',\n (lastPoint.plotX + plotX) / 2,\n plotY\n ];\n }\n else {\n pathToPoint = [\n 'L',\n plotX,\n lastPoint.plotY\n ];\n }\n pathToPoint.push('L', plotX, plotY);\n }\n else {\n // normal line to next point\n pathToPoint = [\n 'L',\n plotX,\n plotY\n ];\n }\n // Prepare for animation. When step is enabled, there are\n // two path nodes for each x value.\n xMap.push(point.x);\n if (step) {\n xMap.push(point.x);\n if (step === 2) { // step = center (#8073)\n xMap.push(point.x);\n }\n }\n graphPath.push.apply(graphPath, pathToPoint);\n gap = false;\n }\n });\n graphPath.xMap = xMap;\n series.graphPath = graphPath;\n return graphPath;\n },\n /**\n * Draw the graph. Called internally when rendering line-like series\n * types. The first time it generates the `series.graph` item and\n * optionally other series-wide items like `series.area` for area\n * charts. On subsequent calls these items are updated with new\n * positions and attributes.\n *\n * @function Highcharts.Series#drawGraph\n *\n * @return {void}\n */\n drawGraph: function () {\n var series = this, options = this.options, graphPath = (this.gappedPath || this.getGraphPath).call(this), styledMode = this.chart.styledMode, props = [[\n 'graph',\n 'highcharts-graph'\n ]];\n // Presentational properties\n if (!styledMode) {\n props[0].push((options.lineColor ||\n this.color ||\n '#cccccc' // when colorByPoint = true\n ), options.dashStyle);\n }\n props = series.getZonesGraphs(props);\n // Draw the graph\n props.forEach(function (prop, i) {\n var graphKey = prop[0], graph = series[graphKey], verb = graph ? 'animate' : 'attr', attribs;\n if (graph) {\n graph.endX = series.preventGraphAnimation ?\n null :\n graphPath.xMap;\n graph.animate({ d: graphPath });\n }\n else if (graphPath.length) { // #1487\n /**\n * SVG element of area-based charts. Can be used for styling\n * purposes. If zones are configured, this element will be\n * hidden and replaced by multiple zone areas, accessible\n * via `series['zone-area-x']` (where x is a number,\n * starting with 0).\n *\n * @name Highcharts.Series#area\n * @type {Highcharts.SVGElement|undefined}\n */\n /**\n * SVG element of line-based charts. Can be used for styling\n * purposes. If zones are configured, this element will be\n * hidden and replaced by multiple zone lines, accessible\n * via `series['zone-graph-x']` (where x is a number,\n * starting with 0).\n *\n * @name Highcharts.Series#graph\n * @type {Highcharts.SVGElement|undefined}\n */\n series[graphKey] = graph = series.chart.renderer\n .path(graphPath)\n .addClass(prop[1])\n .attr({ zIndex: 1 }) // #1069\n .add(series.group);\n }\n if (graph && !styledMode) {\n attribs = {\n 'stroke': prop[2],\n 'stroke-width': options.lineWidth,\n // Polygon series use filled graph\n 'fill': (series.fillGraph && series.color) || 'none'\n };\n if (prop[3]) {\n attribs.dashstyle = prop[3];\n }\n else if (options.linecap !== 'square') {\n attribs['stroke-linecap'] =\n attribs['stroke-linejoin'] = 'round';\n }\n graph[verb](attribs)\n // Add shadow to normal series (0) or to first\n // zone (1) #3932\n .shadow((i < 2) && options.shadow);\n }\n // Helpers for animation\n if (graph) {\n graph.startX = graphPath.xMap;\n graph.isArea = graphPath.isArea; // For arearange animation\n }\n });\n },\n /**\n * Get zones properties for building graphs. Extendable by series with\n * multiple lines within one series.\n *\n * @private\n * @function Highcharts.Series#getZonesGraphs\n *\n * @param {Array>} props\n *\n * @return {Array>}\n */\n getZonesGraphs: function (props) {\n // Add the zone properties if any\n this.zones.forEach(function (zone, i) {\n var propset = [\n 'zone-graph-' + i,\n 'highcharts-graph highcharts-zone-graph-' + i + ' ' +\n (zone.className || '')\n ];\n if (!this.chart.styledMode) {\n propset.push((zone.color || this.color), (zone.dashStyle || this.options.dashStyle));\n }\n props.push(propset);\n }, this);\n return props;\n },\n /**\n * Clip the graphs into zones for colors and styling.\n *\n * @private\n * @function Highcharts.Series#applyZones\n * @return {void}\n */\n applyZones: function () {\n var series = this, chart = this.chart, renderer = chart.renderer, zones = this.zones, translatedFrom, translatedTo, clips = (this.clips || []), clipAttr, graph = this.graph, area = this.area, chartSizeMax = Math.max(chart.chartWidth, chart.chartHeight), axis = this[(this.zoneAxis || 'y') + 'Axis'], extremes, reversed, inverted = chart.inverted, horiz, pxRange, pxPosMin, pxPosMax, ignoreZones = false;\n if (zones.length &&\n (graph || area) &&\n axis &&\n axis.min !== undefined) {\n reversed = axis.reversed;\n horiz = axis.horiz;\n // The use of the Color Threshold assumes there are no gaps\n // so it is safe to hide the original graph and area\n // unless it is not waterfall series, then use showLine property\n // to set lines between columns to be visible (#7862)\n if (graph && !this.showLine) {\n graph.hide();\n }\n if (area) {\n area.hide();\n }\n // Create the clips\n extremes = axis.getExtremes();\n zones.forEach(function (threshold, i) {\n translatedFrom = reversed ?\n (horiz ? chart.plotWidth : 0) :\n (horiz ? 0 : (axis.toPixels(extremes.min) || 0));\n translatedFrom = Math.min(Math.max(pick(translatedTo, translatedFrom), 0), chartSizeMax);\n translatedTo = Math.min(Math.max(Math.round(axis.toPixels(pick(threshold.value, extremes.max), true) || 0), 0), chartSizeMax);\n if (ignoreZones) {\n translatedFrom = translatedTo =\n axis.toPixels(extremes.max);\n }\n pxRange = Math.abs(translatedFrom - translatedTo);\n pxPosMin = Math.min(translatedFrom, translatedTo);\n pxPosMax = Math.max(translatedFrom, translatedTo);\n if (axis.isXAxis) {\n clipAttr = {\n x: inverted ? pxPosMax : pxPosMin,\n y: 0,\n width: pxRange,\n height: chartSizeMax\n };\n if (!horiz) {\n clipAttr.x = chart.plotHeight - clipAttr.x;\n }\n }\n else {\n clipAttr = {\n x: 0,\n y: inverted ? pxPosMax : pxPosMin,\n width: chartSizeMax,\n height: pxRange\n };\n if (horiz) {\n clipAttr.y = chart.plotWidth - clipAttr.y;\n }\n }\n // VML SUPPPORT\n if (inverted && renderer.isVML) {\n if (axis.isXAxis) {\n clipAttr = {\n x: 0,\n y: reversed ? pxPosMin : pxPosMax,\n height: clipAttr.width,\n width: chart.chartWidth\n };\n }\n else {\n clipAttr = {\n x: (clipAttr.y -\n chart.plotLeft -\n chart.spacingBox.x),\n y: 0,\n width: clipAttr.height,\n height: chart.chartHeight\n };\n }\n }\n // END OF VML SUPPORT\n if (clips[i]) {\n clips[i].animate(clipAttr);\n }\n else {\n clips[i] = renderer.clipRect(clipAttr);\n }\n // when no data, graph zone is not applied and after setData\n // clip was ignored. As a result, it should be applied each\n // time.\n if (graph) {\n series['zone-graph-' + i].clip(clips[i]);\n }\n if (area) {\n series['zone-area-' + i].clip(clips[i]);\n }\n // if this zone extends out of the axis, ignore the others\n ignoreZones = threshold.value > extremes.max;\n // Clear translatedTo for indicators\n if (series.resetZones && translatedTo === 0) {\n translatedTo = undefined;\n }\n });\n this.clips = clips;\n }\n else if (series.visible) {\n // If zones were removed, restore graph and area\n if (graph) {\n graph.show(true);\n }\n if (area) {\n area.show(true);\n }\n }\n },\n /**\n * Initialize and perform group inversion on series.group and\n * series.markerGroup.\n *\n * @private\n * @function Highcharts.Series#invertGroups\n * @param {boolean} [inverted]\n * @return {void}\n */\n invertGroups: function (inverted) {\n var series = this, chart = series.chart, remover;\n /**\n * @private\n */\n function setInvert() {\n ['group', 'markerGroup'].forEach(function (groupName) {\n if (series[groupName]) {\n // VML/HTML needs explicit attributes for flipping\n if (chart.renderer.isVML) {\n series[groupName].attr({\n width: series.yAxis.len,\n height: series.xAxis.len\n });\n }\n series[groupName].width = series.yAxis.len;\n series[groupName].height = series.xAxis.len;\n series[groupName].invert(inverted);\n }\n });\n }\n // Pie, go away (#1736)\n if (!series.xAxis) {\n return;\n }\n // A fixed size is needed for inversion to work\n remover = addEvent(chart, 'resize', setInvert);\n addEvent(series, 'destroy', remover);\n // Do it now\n setInvert(inverted); // do it now\n // On subsequent render and redraw, just do setInvert without\n // setting up events again\n series.invertGroups = setInvert;\n },\n /**\n * General abstraction for creating plot groups like series.group,\n * series.dataLabelsGroup and series.markerGroup. On subsequent calls,\n * the group will only be adjusted to the updated plot size.\n *\n * @private\n * @function Highcharts.Series#plotGroup\n * @param {string} prop\n * @param {string} name\n * @param {string} visibility\n * @param {number} [zIndex]\n * @param {Highcharts.SVGElement} [parent]\n * @return {Highcharts.SVGElement}\n */\n plotGroup: function (prop, name, visibility, zIndex, parent) {\n var group = this[prop], isNew = !group;\n // Generate it on first call\n if (isNew) {\n this[prop] = group = this.chart.renderer\n .g()\n .attr({\n zIndex: zIndex || 0.1 // IE8 and pointer logic use this\n })\n .add(parent);\n }\n // Add the class names, and replace existing ones as response to\n // Series.update (#6660)\n group.addClass(('highcharts-' + name +\n ' highcharts-series-' + this.index +\n ' highcharts-' + this.type + '-series ' +\n (defined(this.colorIndex) ?\n 'highcharts-color-' + this.colorIndex + ' ' :\n '') +\n (this.options.className || '') +\n (group.hasClass('highcharts-tracker') ?\n ' highcharts-tracker' :\n '')), true);\n // Place it on first and subsequent (redraw) calls\n group.attr({ visibility: visibility })[isNew ? 'attr' : 'animate'](this.getPlotBox());\n return group;\n },\n /**\n * Get the translation and scale for the plot area of this series.\n *\n * @function Highcharts.Series#getPlotBox\n *\n * @return {Highcharts.SeriesPlotBoxObject}\n */\n getPlotBox: function () {\n var chart = this.chart, xAxis = this.xAxis, yAxis = this.yAxis;\n // Swap axes for inverted (#2339)\n if (chart.inverted) {\n xAxis = yAxis;\n yAxis = this.xAxis;\n }\n return {\n translateX: xAxis ? xAxis.left : chart.plotLeft,\n translateY: yAxis ? yAxis.top : chart.plotTop,\n scaleX: 1,\n scaleY: 1\n };\n },\n /**\n * Render the graph and markers. Called internally when first rendering\n * and later when redrawing the chart. This function can be extended in\n * plugins, but normally shouldn't be called directly.\n *\n * @function Highcharts.Series#render\n *\n * @return {void}\n *\n * @fires Highcharts.Series#event:afterRender\n */\n render: function () {\n var series = this, chart = series.chart, group, options = series.options, \n // Animation doesn't work in IE8 quirks when the group div is\n // hidden, and looks bad in other oldIE\n animDuration = (!!series.animate &&\n chart.renderer.isSVG &&\n animObject(options.animation).duration), visibility = series.visible ? 'inherit' : 'hidden', // #2597\n zIndex = options.zIndex, hasRendered = series.hasRendered, chartSeriesGroup = chart.seriesGroup, inverted = chart.inverted;\n fireEvent(this, 'render');\n // the group\n group = series.plotGroup('group', 'series', visibility, zIndex, chartSeriesGroup);\n series.markerGroup = series.plotGroup('markerGroup', 'markers', visibility, zIndex, chartSeriesGroup);\n // initiate the animation\n if (animDuration) {\n series.animate(true);\n }\n // SVGRenderer needs to know this before drawing elements (#1089,\n // #1795)\n group.inverted = series.isCartesian || series.invertable ?\n inverted : false;\n // Draw the graph if any\n if (series.drawGraph) {\n series.drawGraph();\n series.applyZones();\n }\n // Draw the points\n if (series.visible) {\n series.drawPoints();\n }\n /* series.points.forEach(function (point) {\n if (point.redraw) {\n point.redraw();\n }\n }); */\n // Draw the data labels\n if (series.drawDataLabels) {\n series.drawDataLabels();\n }\n // In pie charts, slices are added to the DOM, but actual rendering\n // is postponed until labels reserved their space\n if (series.redrawPoints) {\n series.redrawPoints();\n }\n // draw the mouse tracking area\n if (series.drawTracker &&\n series.options.enableMouseTracking !== false) {\n series.drawTracker();\n }\n // Handle inverted series and tracker groups\n series.invertGroups(inverted);\n // Initial clipping, must be defined after inverting groups for VML.\n // Applies to columns etc. (#3839).\n if (options.clip !== false &&\n !series.sharedClipKey &&\n !hasRendered) {\n group.clip(chart.clipRect);\n }\n // Run the animation\n if (animDuration) {\n series.animate();\n }\n // Call the afterAnimate function on animation complete (but don't\n // overwrite the animation.complete option which should be available\n // to the user).\n if (!hasRendered) {\n series.animationTimeout = syncTimeout(function () {\n series.afterAnimate();\n }, animDuration || 0);\n }\n // Means data is in accordance with what you see\n series.isDirty = false;\n // (See #322) series.isDirty = series.isDirtyData = false; // means\n // data is in accordance with what you see\n series.hasRendered = true;\n fireEvent(series, 'afterRender');\n },\n /**\n * Redraw the series. This function is called internally from\n * `chart.redraw` and normally shouldn't be called directly.\n *\n * @private\n * @function Highcharts.Series#redraw\n * @return {void}\n */\n redraw: function () {\n var series = this, chart = series.chart, \n // cache it here as it is set to false in render, but used after\n wasDirty = series.isDirty || series.isDirtyData, group = series.group, xAxis = series.xAxis, yAxis = series.yAxis;\n // reposition on resize\n if (group) {\n if (chart.inverted) {\n group.attr({\n width: chart.plotWidth,\n height: chart.plotHeight\n });\n }\n group.animate({\n translateX: pick(xAxis && xAxis.left, chart.plotLeft),\n translateY: pick(yAxis && yAxis.top, chart.plotTop)\n });\n }\n series.translate();\n series.render();\n if (wasDirty) { // #3868, #3945\n delete this.kdTree;\n }\n },\n kdAxisArray: ['clientX', 'plotY'],\n /**\n * @private\n * @function Highcharts.Series#searchPoint\n * @param {Highcharts.PointerEventObject} e\n * @param {boolean} [compareX]\n * @return {Highcharts.Point}\n */\n searchPoint: function (e, compareX) {\n var series = this, xAxis = series.xAxis, yAxis = series.yAxis, inverted = series.chart.inverted;\n return this.searchKDTree({\n clientX: inverted ?\n xAxis.len - e.chartY + xAxis.pos :\n e.chartX - xAxis.pos,\n plotY: inverted ?\n yAxis.len - e.chartX + yAxis.pos :\n e.chartY - yAxis.pos\n }, compareX, e);\n },\n /**\n * Build the k-d-tree that is used by mouse and touch interaction to get\n * the closest point. Line-like series typically have a one-dimensional\n * tree where points are searched along the X axis, while scatter-like\n * series typically search in two dimensions, X and Y.\n *\n * @private\n * @function Highcharts.Series#buildKDTree\n * @param {Highcharts.PointerEventObject} [e]\n * @return {void}\n */\n buildKDTree: function (e) {\n // Prevent multiple k-d-trees from being built simultaneously\n // (#6235)\n this.buildingKdTree = true;\n var series = this, dimensions = series.options.findNearestPointBy\n .indexOf('y') > -1 ? 2 : 1;\n /**\n * Internal function\n * @private\n */\n function _kdtree(points, depth, dimensions) {\n var axis, median, length = points && points.length;\n if (length) {\n // alternate between the axis\n axis = series.kdAxisArray[depth % dimensions];\n // sort point array\n points.sort(function (a, b) {\n return a[axis] - b[axis];\n });\n median = Math.floor(length / 2);\n // build and return nod\n return {\n point: points[median],\n left: _kdtree(points.slice(0, median), depth + 1, dimensions),\n right: _kdtree(points.slice(median + 1), depth + 1, dimensions)\n };\n }\n }\n /**\n * Start the recursive build process with a clone of the points\n * array and null points filtered out. (#3873)\n * @private\n */\n function startRecursive() {\n series.kdTree = _kdtree(series.getValidPoints(null, \n // For line-type series restrict to plot area, but\n // column-type series not (#3916, #4511)\n !series.directTouch), dimensions, dimensions);\n series.buildingKdTree = false;\n }\n delete series.kdTree;\n // For testing tooltips, don't build async. Also if touchstart, we\n // may be dealing with click events on mobile, so don't delay\n // (#6817).\n syncTimeout(startRecursive, series.options.kdNow || (e && e.type === 'touchstart') ? 0 : 1);\n },\n /**\n * @private\n * @function Highcharts.Series#searchKDTree\n * @param {Highcharts.KDPointSearchObject} point\n * @param {boolean} [compareX]\n * @param {Highcharts.PointerEventObject} [e]\n * @return {Highcharts.Point|undefined}\n */\n searchKDTree: function (point, compareX, e) {\n var series = this, kdX = this.kdAxisArray[0], kdY = this.kdAxisArray[1], kdComparer = compareX ? 'distX' : 'dist', kdDimensions = series.options.findNearestPointBy\n .indexOf('y') > -1 ? 2 : 1;\n /**\n * Set the one and two dimensional distance on the point object.\n * @private\n */\n function setDistance(p1, p2) {\n var x = (defined(p1[kdX]) &&\n defined(p2[kdX])) ?\n Math.pow(p1[kdX] - p2[kdX], 2) :\n null, y = (defined(p1[kdY]) &&\n defined(p2[kdY])) ?\n Math.pow(p1[kdY] - p2[kdY], 2) :\n null, r = (x || 0) + (y || 0);\n p2.dist = defined(r) ? Math.sqrt(r) : Number.MAX_VALUE;\n p2.distX = defined(x) ? Math.sqrt(x) : Number.MAX_VALUE;\n }\n /**\n * @private\n */\n function _search(search, tree, depth, dimensions) {\n var point = tree.point, axis = series.kdAxisArray[depth % dimensions], tdist, sideA, sideB, ret = point, nPoint1, nPoint2;\n setDistance(search, point);\n // Pick side based on distance to splitting point\n tdist = search[axis] - point[axis];\n sideA = tdist < 0 ? 'left' : 'right';\n sideB = tdist < 0 ? 'right' : 'left';\n // End of tree\n if (tree[sideA]) {\n nPoint1 = _search(search, tree[sideA], depth + 1, dimensions);\n ret = (nPoint1[kdComparer] <\n ret[kdComparer] ?\n nPoint1 :\n point);\n }\n if (tree[sideB]) {\n // compare distance to current best to splitting point to\n // decide wether to check side B or not\n if (Math.sqrt(tdist * tdist) < ret[kdComparer]) {\n nPoint2 = _search(search, tree[sideB], depth + 1, dimensions);\n ret = (nPoint2[kdComparer] <\n ret[kdComparer] ?\n nPoint2 :\n ret);\n }\n }\n return ret;\n }\n if (!this.kdTree && !this.buildingKdTree) {\n this.buildKDTree(e);\n }\n if (this.kdTree) {\n return _search(point, this.kdTree, kdDimensions, kdDimensions);\n }\n },\n /**\n * @private\n * @function Highcharts.Series#pointPlacementToXValue\n * @return {number}\n */\n pointPlacementToXValue: function () {\n var series = this, axis = series.xAxis, pointPlacement = series.options.pointPlacement;\n // Point placement is relative to each series pointRange (#5889)\n if (pointPlacement === 'between') {\n pointPlacement = axis.reversed ? -0.5 : 0.5; // #11955\n }\n if (isNumber(pointPlacement)) {\n pointPlacement *=\n pick(series.options.pointRange || axis.pointRange);\n }\n return pointPlacement;\n }\n }); // end Series prototype\n /**\n * A line series displays information as a series of data points connected by\n * straight line segments.\n *\n * @sample {highcharts} highcharts/demo/line-basic/\n * Line chart\n * @sample {highstock} stock/demo/basic-line/\n * Line chart\n *\n * @extends plotOptions.series\n * @product highcharts highstock\n * @apioption plotOptions.line\n */\n /**\n * The SVG value used for the `stroke-linecap` and `stroke-linejoin`\n * of a line graph. Round means that lines are rounded in the ends and\n * bends.\n *\n * @type {Highcharts.SeriesLinecapValue}\n * @default round\n * @since 3.0.7\n * @apioption plotOptions.line.linecap\n */\n /**\n * A `line` series. If the [type](#series.line.type) option is not\n * specified, it is inherited from [chart.type](#chart.type).\n *\n * @extends series,plotOptions.line\n * @excluding dataParser,dataURL\n * @product highcharts highstock\n * @apioption series.line\n */\n /**\n * An array of data points for the series. For the `line` series type,\n * points can be given in the following ways:\n *\n * 1. An array of numerical values. In this case, the numerical values will be\n * interpreted as `y` options. The `x` values will be automatically\n * calculated, either starting at 0 and incremented by 1, or from\n * `pointStart` and `pointInterval` given in the series options. If the axis\n * has categories, these will be used. Example:\n * ```js\n * data: [0, 5, 3, 5]\n * ```\n *\n * 2. An array of arrays with 2 values. In this case, the values correspond to\n * `x,y`. If the first value is a string, it is applied as the name of the\n * point, and the `x` value is inferred.\n * ```js\n * data: [\n * [0, 1],\n * [1, 2],\n * [2, 8]\n * ]\n * ```\n *\n * 3. An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of\n * data points exceeds the series'\n * [turboThreshold](#series.line.turboThreshold),\n * this option is not available.\n * ```js\n * data: [{\n * x: 1,\n * y: 9,\n * name: \"Point2\",\n * color: \"#00FF00\"\n * }, {\n * x: 1,\n * y: 6,\n * name: \"Point1\",\n * color: \"#FF00FF\"\n * }]\n * ```\n *\n * @sample {highcharts} highcharts/chart/reflow-true/\n * Numerical values\n * @sample {highcharts} highcharts/series/data-array-of-arrays/\n * Arrays of numeric x and y\n * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/\n * Arrays of datetime x and y\n * @sample {highcharts} highcharts/series/data-array-of-name-value/\n * Arrays of point.name and y\n * @sample {highcharts} highcharts/series/data-array-of-objects/\n * Config objects\n *\n * @type {Array|null|*>}\n * @apioption series.line.data\n */\n /**\n * An additional, individual class name for the data point's graphic\n * representation.\n *\n * @type {string}\n * @since 5.0.0\n * @product highcharts gantt\n * @apioption series.line.data.className\n */\n /**\n * Individual color for the point. By default the color is pulled from\n * the global `colors` array.\n *\n * In styled mode, the `color` option doesn't take effect. Instead, use\n * `colorIndex`.\n *\n * @sample {highcharts} highcharts/point/color/\n * Mark the highest point\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highcharts highstock gantt\n * @apioption series.line.data.color\n */\n /**\n * A specific color index to use for the point, so its graphic representations\n * are given the class name `highcharts-color-{n}`. In styled mode this will\n * change the color of the graphic. In non-styled mode, the color by is set by\n * the `fill` attribute, so the change in class name won't have a visual effect\n * by default.\n *\n * @type {number}\n * @since 5.0.0\n * @product highcharts gantt\n * @apioption series.line.data.colorIndex\n */\n /**\n * Individual data label for each point. The options are the same as\n * the ones for [plotOptions.series.dataLabels](\n * #plotOptions.series.dataLabels).\n *\n * @sample highcharts/point/datalabels/\n * Show a label for the last value\n *\n * @type {Highcharts.DataLabelsOptionsObject|Array}\n * @product highcharts highstock gantt\n * @apioption series.line.data.dataLabels\n */\n /**\n * A description of the point to add to the screen reader information\n * about the point.\n *\n * @type {string}\n * @since 5.0.0\n * @requires modules/accessibility\n * @apioption series.line.data.description\n */\n /**\n * An id for the point. This can be used after render time to get a\n * pointer to the point object through `chart.get()`.\n *\n * @sample {highcharts} highcharts/point/id/\n * Remove an id'd point\n *\n * @type {string}\n * @since 1.2.0\n * @product highcharts highstock gantt\n * @apioption series.line.data.id\n */\n /**\n * The rank for this point's data label in case of collision. If two\n * data labels are about to overlap, only the one with the highest `labelrank`\n * will be drawn.\n *\n * @type {number}\n * @apioption series.line.data.labelrank\n */\n /**\n * The name of the point as shown in the legend, tooltip, dataLabels\n * etc.\n *\n * @see [xAxis.uniqueNames](#xAxis.uniqueNames)\n *\n * @sample {highcharts} highcharts/series/data-array-of-objects/\n * Point names\n *\n * @type {string}\n * @apioption series.line.data.name\n */\n /**\n * Whether the data point is selected initially.\n *\n * @type {boolean}\n * @default false\n * @product highcharts highstock gantt\n * @apioption series.line.data.selected\n */\n /**\n * The x value of the point. For datetime axes, the X value is the timestamp\n * in milliseconds since 1970.\n *\n * @type {number}\n * @product highcharts highstock\n * @apioption series.line.data.x\n */\n /**\n * The y value of the point.\n *\n * @type {number|null}\n * @product highcharts highstock\n * @apioption series.line.data.y\n */\n /**\n * Individual point events\n *\n * @extends plotOptions.series.point.events\n * @product highcharts highstock gantt\n * @apioption series.line.data.events\n */\n /**\n * @extends plotOptions.series.marker\n * @product highcharts highstock\n * @apioption series.line.data.marker\n */\n ''; // include precedent doclets in transpilat\n\n });\n _registerModule(_modules, 'parts/Stacking.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * Stack of data points\n *\n * @product highcharts\n *\n * @interface Highcharts.StackItemObject\n */ /**\n * Alignment settings\n * @name Highcharts.StackItemObject#alignOptions\n * @type {Highcharts.AlignObject}\n */ /**\n * Related axis\n * @name Highcharts.StackItemObject#axis\n * @type {Highcharts.Axis}\n */ /**\n * Cumulative value of the stacked data points\n * @name Highcharts.StackItemObject#cumulative\n * @type {number}\n */ /**\n * True if on the negative side\n * @name Highcharts.StackItemObject#isNegative\n * @type {boolean}\n */ /**\n * Related SVG element\n * @name Highcharts.StackItemObject#label\n * @type {Highcharts.SVGElement}\n */ /**\n * Related stack options\n * @name Highcharts.StackItemObject#options\n * @type {Highcharts.YAxisStackLabelsOptions}\n */ /**\n * Total value of the stacked data points\n * @name Highcharts.StackItemObject#total\n * @type {number}\n */ /**\n * Shared x value of the stack\n * @name Highcharts.StackItemObject#x\n * @type {number}\n */\n var defined = U.defined, destroyObjectProperties = U.destroyObjectProperties, objectEach = U.objectEach, pick = U.pick;\n var Axis = H.Axis, Chart = H.Chart, correctFloat = H.correctFloat, format = H.format, Series = H.Series;\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * The class for stacks. Each stack, on a specific X value and either negative\n * or positive, has its own stack item.\n *\n * @private\n * @class\n * @name Highcharts.StackItem\n * @param {Highcharts.Axis} axis\n * @param {Highcharts.YAxisStackLabelsOptions} options\n * @param {boolean} isNegative\n * @param {number} x\n * @param {Highcharts.OptionsStackingValue} [stackOption]\n */\n H.StackItem = function (axis, options, isNegative, x, stackOption) {\n var inverted = axis.chart.inverted;\n this.axis = axis;\n // Tells if the stack is negative\n this.isNegative = isNegative;\n // Save the options to be able to style the label\n this.options = options = options || {};\n // Save the x value to be able to position the label later\n this.x = x;\n // Initialize total value\n this.total = null;\n // This will keep each points' extremes stored by series.index and point\n // index\n this.points = {};\n // Save the stack option on the series configuration object, and whether to\n // treat it as percent\n this.stack = stackOption;\n this.leftCliff = 0;\n this.rightCliff = 0;\n // The align options and text align varies on whether the stack is negative\n // and if the chart is inverted or not.\n // First test the user supplied value, then use the dynamic.\n this.alignOptions = {\n align: options.align ||\n (inverted ? (isNegative ? 'left' : 'right') : 'center'),\n verticalAlign: options.verticalAlign ||\n (inverted ? 'middle' : (isNegative ? 'bottom' : 'top')),\n y: options.y,\n x: options.x\n };\n this.textAlign = options.textAlign ||\n (inverted ? (isNegative ? 'right' : 'left') : 'center');\n };\n H.StackItem.prototype = {\n /**\n * @private\n * @function Highcharts.StackItem#destroy\n * @return {void}\n */\n destroy: function () {\n destroyObjectProperties(this, this.axis);\n },\n /**\n * Renders the stack total label and adds it to the stack label group.\n *\n * @private\n * @function Highcharts.StackItem#render\n * @param {Highcharts.SVGElement} group\n * @return {void}\n */\n render: function (group) {\n var chart = this.axis.chart, options = this.options, formatOption = options.format, attr = {}, str = formatOption ? // format the text in the label\n format(formatOption, this, chart.time) :\n options.formatter.call(this);\n // Change the text to reflect the new total and set visibility to hidden\n // in case the serie is hidden\n if (this.label) {\n this.label.attr({ text: str, visibility: 'hidden' });\n }\n else {\n // Create new label\n this.label = chart.renderer\n .label(str, null, null, options.shape, null, null, options.useHTML, false, 'stack-labels');\n attr = {\n text: str,\n align: this.textAlign,\n rotation: options.rotation,\n padding: pick(options.padding, 0),\n visibility: 'hidden' // hidden until setOffset is called\n };\n this.label.attr(attr);\n if (!chart.styledMode) {\n this.label.css(options.style);\n }\n if (!this.label.added) {\n this.label.add(group); // add to the labels-group\n }\n }\n // Rank it higher than data labels (#8742)\n this.label.labelrank = chart.plotHeight;\n },\n /**\n * Sets the offset that the stack has from the x value and repositions the\n * label.\n *\n * @private\n * @function Highcarts.StackItem#setOffset\n * @param {number} xOffset\n * @param {number} xWidth\n * @param {number} [boxBottom]\n * @param {number} [boxTop]\n * @param {number} [defaultX]\n * @return {void}\n */\n setOffset: function (xOffset, xWidth, boxBottom, boxTop, defaultX) {\n var stackItem = this, axis = stackItem.axis, chart = axis.chart, \n // stack value translated mapped to chart coordinates\n y = axis.translate(axis.usePercentage ?\n 100 :\n (boxTop ?\n boxTop :\n stackItem.total), 0, 0, 0, 1), yZero = axis.translate(boxBottom ? boxBottom : 0), // stack origin\n // stack height:\n h = defined(y) && Math.abs(y - yZero), \n // x position:\n x = pick(defaultX, chart.xAxis[0].translate(stackItem.x)) +\n xOffset, stackBox = defined(y) && stackItem.getStackBox(chart, stackItem, x, y, xWidth, h, axis), label = stackItem.label, isNegative = stackItem.isNegative, isJustify = pick(stackItem.options.overflow, 'justify') === 'justify', visible, alignAttr;\n if (label && stackBox) {\n var bBox = label.getBBox(), boxOffsetX = chart.inverted ?\n (isNegative ? bBox.width : 0) : bBox.width / 2, boxOffsetY = chart.inverted ?\n bBox.height / 2 : (isNegative ? -4 : bBox.height + 4);\n stackItem.alignOptions.x = pick(stackItem.options.x, 0);\n // Align the label to the box\n label.align(stackItem.alignOptions, null, stackBox);\n // Set visibility (#678)\n alignAttr = label.alignAttr;\n label.show();\n // Set label above/under stackBox\n alignAttr.y -= boxOffsetY;\n if (isJustify) {\n // Set label x position for justifyDataLabel function\n alignAttr.x -= boxOffsetX;\n Series.prototype.justifyDataLabel.call(this.axis, label, stackItem.alignOptions, alignAttr, bBox, stackBox);\n alignAttr.x += boxOffsetX;\n }\n alignAttr.x = label.alignAttr.x;\n label.attr({\n x: alignAttr.x,\n y: alignAttr.y\n });\n if (pick(!isJustify && stackItem.options.crop, true)) {\n visible = chart.isInsidePlot(label.x +\n (chart.inverted ? 0 : -bBox.width / 2), label.y) &&\n chart.isInsidePlot(label.x + (chart.inverted ?\n (isNegative ? -bBox.width : bBox.width) :\n bBox.width / 2), label.y + bBox.height);\n if (!visible) {\n label.hide();\n }\n }\n }\n },\n /**\n * @private\n * @function Highcharts.StackItem#getStackBox\n *\n * @param {Highcharts.Chart} chart\n *\n * @param {Highcharts.StackItem} stackItem\n *\n * @param {number} x\n *\n * @param {number} y\n *\n * @param {number} xWidth\n *\n * @param {number} h\n *\n * @param {Highcharts.Axis} axis\n *\n * @return {Highcharts.BBoxObject}\n */\n getStackBox: function (chart, stackItem, x, y, xWidth, h, axis) {\n var reversed = stackItem.axis.reversed, inverted = chart.inverted, axisPos = axis.height + axis.pos -\n (inverted ? chart.plotLeft : chart.plotTop), neg = (stackItem.isNegative && !reversed) ||\n (!stackItem.isNegative && reversed); // #4056\n return {\n x: inverted ? (neg ? y : y - h) : x,\n y: inverted ?\n axisPos - x - xWidth :\n (neg ?\n (axisPos - y - h) :\n axisPos - y),\n width: inverted ? h : xWidth,\n height: inverted ? xWidth : h\n };\n }\n };\n /**\n * Generate stacks for each series and calculate stacks total values\n *\n * @private\n * @function Highcharts.Chart#getStacks\n * @return {void}\n */\n Chart.prototype.getStacks = function () {\n var chart = this, inverted = chart.inverted;\n // reset stacks for each yAxis\n chart.yAxis.forEach(function (axis) {\n if (axis.stacks && axis.hasVisibleSeries) {\n axis.oldStacks = axis.stacks;\n }\n });\n chart.series.forEach(function (series) {\n var xAxisOptions = series.xAxis && series.xAxis.options || {};\n if (series.options.stacking &&\n (series.visible === true ||\n chart.options.chart.ignoreHiddenSeries === false)) {\n series.stackKey = [\n series.type,\n pick(series.options.stack, ''),\n inverted ? xAxisOptions.top : xAxisOptions.left,\n inverted ? xAxisOptions.height : xAxisOptions.width\n ].join(',');\n }\n });\n };\n // Stacking methods defined on the Axis prototype\n /**\n * Build the stacks from top down\n *\n * @private\n * @function Highcharts.Axis#buildStacks\n * @return {void}\n */\n Axis.prototype.buildStacks = function () {\n var axisSeries = this.series, reversedStacks = pick(this.options.reversedStacks, true), len = axisSeries.length, i;\n if (!this.isXAxis) {\n this.usePercentage = false;\n i = len;\n while (i--) {\n axisSeries[reversedStacks ? i : len - i - 1].setStackedPoints();\n }\n // Loop up again to compute percent and stream stack\n for (i = 0; i < len; i++) {\n axisSeries[i].modifyStacks();\n }\n }\n };\n /**\n * @private\n * @function Highcharts.Axis#renderStackTotals\n * @return {vopid}\n */\n Axis.prototype.renderStackTotals = function () {\n var axis = this, chart = axis.chart, renderer = chart.renderer, stacks = axis.stacks, stackTotalGroup = axis.stackTotalGroup;\n // Create a separate group for the stack total labels\n if (!stackTotalGroup) {\n axis.stackTotalGroup = stackTotalGroup =\n renderer\n .g('stack-labels')\n .attr({\n visibility: 'visible',\n zIndex: 6\n })\n .add();\n }\n // plotLeft/Top will change when y axis gets wider so we need to translate\n // the stackTotalGroup at every render call. See bug #506 and #516\n stackTotalGroup.translate(chart.plotLeft, chart.plotTop);\n // Render each stack total\n objectEach(stacks, function (type) {\n objectEach(type, function (stack) {\n stack.render(stackTotalGroup);\n });\n });\n };\n /**\n * Set all the stacks to initial states and destroy unused ones.\n *\n * @private\n * @function Highcharts.Axis#resetStacks\n * @return {void}\n */\n Axis.prototype.resetStacks = function () {\n var axis = this, stacks = axis.stacks;\n if (!axis.isXAxis) {\n objectEach(stacks, function (type) {\n objectEach(type, function (stack, key) {\n // Clean up memory after point deletion (#1044, #4320)\n if (stack.touched < axis.stacksTouched) {\n stack.destroy();\n delete type[key];\n // Reset stacks\n }\n else {\n stack.total = null;\n stack.cumulative = null;\n }\n });\n });\n }\n };\n /**\n * @private\n * @function Highcharts.Axis#cleanStacks\n * @return {void}\n */\n Axis.prototype.cleanStacks = function () {\n var stacks;\n if (!this.isXAxis) {\n if (this.oldStacks) {\n stacks = this.stacks = this.oldStacks;\n }\n // reset stacks\n objectEach(stacks, function (type) {\n objectEach(type, function (stack) {\n stack.cumulative = stack.total;\n });\n });\n }\n };\n // Stacking methods defnied for Series prototype\n /**\n * Adds series' points value to corresponding stack\n *\n * @private\n * @function Highcharts.Series#setStackedPoints\n * @return {void}\n */\n Series.prototype.setStackedPoints = function () {\n if (!this.options.stacking ||\n (this.visible !== true &&\n this.chart.options.chart.ignoreHiddenSeries !== false)) {\n return;\n }\n var series = this, xData = series.processedXData, yData = series.processedYData, stackedYData = [], yDataLength = yData.length, seriesOptions = series.options, threshold = seriesOptions.threshold, stackThreshold = pick(seriesOptions.startFromThreshold && threshold, 0), stackOption = seriesOptions.stack, stacking = seriesOptions.stacking, stackKey = series.stackKey, negKey = '-' + stackKey, negStacks = series.negStacks, yAxis = series.yAxis, stacks = yAxis.stacks, oldStacks = yAxis.oldStacks, stackIndicator, isNegative, stack, other, key, pointKey, i, x, y;\n yAxis.stacksTouched += 1;\n // loop over the non-null y values and read them into a local array\n for (i = 0; i < yDataLength; i++) {\n x = xData[i];\n y = yData[i];\n stackIndicator = series.getStackIndicator(stackIndicator, x, series.index);\n pointKey = stackIndicator.key;\n // Read stacked values into a stack based on the x value,\n // the sign of y and the stack key. Stacking is also handled for null\n // values (#739)\n isNegative = negStacks && y < (stackThreshold ? 0 : threshold);\n key = isNegative ? negKey : stackKey;\n // Create empty object for this stack if it doesn't exist yet\n if (!stacks[key]) {\n stacks[key] =\n {};\n }\n // Initialize StackItem for this x\n if (!stacks[key][x]) {\n if (oldStacks[key] &&\n oldStacks[key][x]) {\n stacks[key][x] = oldStacks[key][x];\n stacks[key][x].total = null;\n }\n else {\n stacks[key][x] = new H.StackItem(yAxis, yAxis.options.stackLabels, isNegative, x, stackOption);\n }\n }\n // If the StackItem doesn't exist, create it first\n stack = stacks[key][x];\n if (y !== null) {\n stack.points[pointKey] = stack.points[series.index] =\n [pick(stack.cumulative, stackThreshold)];\n // Record the base of the stack\n if (!defined(stack.cumulative)) {\n stack.base = pointKey;\n }\n stack.touched = yAxis.stacksTouched;\n // In area charts, if there are multiple points on the same X value,\n // let the area fill the full span of those points\n if (stackIndicator.index > 0 && series.singleStacks === false) {\n stack.points[pointKey][0] =\n stack.points[series.index + ',' + x + ',0'][0];\n }\n // When updating to null, reset the point stack (#7493)\n }\n else {\n stack.points[pointKey] = stack.points[series.index] =\n null;\n }\n // Add value to the stack total\n if (stacking === 'percent') {\n // Percent stacked column, totals are the same for the positive and\n // negative stacks\n other = isNegative ? stackKey : negKey;\n if (negStacks && stacks[other] && stacks[other][x]) {\n other = stacks[other][x];\n stack.total = other.total =\n Math.max(other.total, stack.total) +\n Math.abs(y) ||\n 0;\n // Percent stacked areas\n }\n else {\n stack.total =\n correctFloat(stack.total + (Math.abs(y) || 0));\n }\n }\n else {\n stack.total = correctFloat(stack.total + (y || 0));\n }\n stack.cumulative =\n pick(stack.cumulative, stackThreshold) + (y || 0);\n if (y !== null) {\n stack.points[pointKey].push(stack.cumulative);\n stackedYData[i] = stack.cumulative;\n }\n }\n if (stacking === 'percent') {\n yAxis.usePercentage = true;\n }\n this.stackedYData = stackedYData; // To be used in getExtremes\n // Reset old stacks\n yAxis.oldStacks = {};\n };\n /**\n * Iterate over all stacks and compute the absolute values to percent\n *\n * @private\n * @function Highcharts.Series#modifyStacks\n * @return {void}\n */\n Series.prototype.modifyStacks = function () {\n var series = this, stackKey = series.stackKey, stacks = series.yAxis.stacks, processedXData = series.processedXData, stackIndicator, stacking = series.options.stacking;\n if (series[stacking + 'Stacker']) { // Modifier function exists\n [stackKey, '-' + stackKey].forEach(function (key) {\n var i = processedXData.length, x, stack, pointExtremes;\n while (i--) {\n x = processedXData[i];\n stackIndicator = series.getStackIndicator(stackIndicator, x, series.index, key);\n stack = stacks[key] && stacks[key][x];\n pointExtremes =\n stack && stack.points[stackIndicator.key];\n if (pointExtremes) {\n series[stacking + 'Stacker'](pointExtremes, stack, i);\n }\n }\n });\n }\n };\n /**\n * Modifier function for percent stacks. Blows up the stack to 100%.\n *\n * @private\n * @function Highcharts.Series#percentStacker\n * @param {Array} pointExtremes\n * @param {Highcharts.StackItem} stack\n * @param {number} i\n * @return {void}\n */\n Series.prototype.percentStacker = function (pointExtremes, stack, i) {\n var totalFactor = stack.total ? 100 / stack.total : 0;\n // Y bottom value\n pointExtremes[0] = correctFloat(pointExtremes[0] * totalFactor);\n // Y value\n pointExtremes[1] = correctFloat(pointExtremes[1] * totalFactor);\n this.stackedYData[i] = pointExtremes[1];\n };\n /**\n * Get stack indicator, according to it's x-value, to determine points with the\n * same x-value\n *\n * @private\n * @function Highcharts.Series#getStackIndicator\n * @param {Highcharts.StackItemIndicatorObject|undefined} stackIndicator\n * @param {number} x\n * @param {number} index\n * @param {string} [key]\n * @return {Highcharts.StackItemIndicatorObject}\n */\n Series.prototype.getStackIndicator = function (stackIndicator, x, index, key) {\n // Update stack indicator, when:\n // first point in a stack || x changed || stack type (negative vs positive)\n // changed:\n if (!defined(stackIndicator) ||\n stackIndicator.x !== x ||\n (key && stackIndicator.key !== key)) {\n stackIndicator = {\n x: x,\n index: 0,\n key: key\n };\n }\n else {\n stackIndicator.index++;\n }\n stackIndicator.key =\n [index, x, stackIndicator.index].join(',');\n return stackIndicator;\n };\n\n });\n _registerModule(_modules, 'parts/Dynamics.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n var defined = U.defined, erase = U.erase, extend = U.extend, isArray = U.isArray, isNumber = U.isNumber, isObject = U.isObject, isString = U.isString, objectEach = U.objectEach, pick = U.pick, setAnimation = U.setAnimation, splat = U.splat;\n var addEvent = H.addEvent, animate = H.animate, Axis = H.Axis, Chart = H.Chart, createElement = H.createElement, css = H.css, fireEvent = H.fireEvent, merge = H.merge, Point = H.Point, Series = H.Series, seriesTypes = H.seriesTypes;\n /* eslint-disable valid-jsdoc */\n /**\n * Remove settings that have not changed, to avoid unnecessary rendering or\n * computing (#9197).\n * @private\n */\n H.cleanRecursively = function (newer, older) {\n var result = {};\n objectEach(newer, function (val, key) {\n var ob;\n // Dive into objects (except DOM nodes)\n if (isObject(newer[key], true) &&\n !newer.nodeType && // #10044\n older[key]) {\n ob = H.cleanRecursively(newer[key], older[key]);\n if (Object.keys(ob).length) {\n result[key] = ob;\n }\n // Arrays, primitives and DOM nodes are copied directly\n }\n else if (isObject(newer[key]) ||\n newer[key] !== older[key]) {\n result[key] = newer[key];\n }\n });\n return result;\n };\n // Extend the Chart prototype for dynamic methods\n extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {\n /**\n * Add a series to the chart after render time. Note that this method should\n * never be used when adding data synchronously at chart render time, as it\n * adds expense to the calculations and rendering. When adding data at the\n * same time as the chart is initialized, add the series as a configuration\n * option instead. With multiple axes, the `offset` is dynamically adjusted.\n *\n * @sample highcharts/members/chart-addseries/\n * Add a series from a button\n * @sample stock/members/chart-addseries/\n * Add a series in Highstock\n *\n * @function Highcharts.Chart#addSeries\n *\n * @param {Highcharts.SeriesOptionsType} options\n * The config options for the series.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after adding.\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation]\n * Whether to apply animation, and optionally animation\n * configuration.\n *\n * @return {Highcharts.Series}\n * The newly created series object.\n *\n * @fires Highcharts.Chart#event:addSeries\n * @fires Highcharts.Chart#event:afterAddSeries\n */\n addSeries: function (options, redraw, animation) {\n var series, chart = this;\n if (options) { // <- not necessary\n redraw = pick(redraw, true); // defaults to true\n fireEvent(chart, 'addSeries', { options: options }, function () {\n series = chart.initSeries(options);\n chart.isDirtyLegend = true;\n chart.linkSeries();\n fireEvent(chart, 'afterAddSeries', { series: series });\n if (redraw) {\n chart.redraw(animation);\n }\n });\n }\n return series;\n },\n /**\n * Add an axis to the chart after render time. Note that this method should\n * never be used when adding data synchronously at chart render time, as it\n * adds expense to the calculations and rendering. When adding data at the\n * same time as the chart is initialized, add the axis as a configuration\n * option instead.\n *\n * @sample highcharts/members/chart-addaxis/\n * Add and remove axes\n *\n * @function Highcharts.Chart#addAxis\n *\n * @param {Highcharts.AxisOptions} options\n * The axis options.\n *\n * @param {boolean} [isX=false]\n * Whether it is an X axis or a value axis.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after adding.\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation=true]\n * Whether and how to apply animation in the redraw.\n *\n * @return {Highcharts.Axis}\n * The newly generated Axis object.\n */\n addAxis: function (options, isX, redraw, animation) {\n return this.createAxis(isX ? 'xAxis' : 'yAxis', { axis: options, redraw: redraw, animation: animation });\n },\n /**\n * Add a color axis to the chart after render time. Note that this method\n * should never be used when adding data synchronously at chart render time,\n * as it adds expense to the calculations and rendering. When adding data at\n * the same time as the chart is initialized, add the axis as a\n * configuration option instead.\n *\n * @sample highcharts/members/chart-addaxis/\n * Add and remove axes\n *\n * @function Highcharts.Chart#addColorAxis\n *\n * @param {Highcharts.ColorAxisOptions} options\n * The axis options.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after adding.\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation=true]\n * Whether and how to apply animation in the redraw.\n *\n * @return {Highcharts.ColorAxis}\n * The newly generated Axis object.\n */\n addColorAxis: function (options, redraw, animation) {\n return this.createAxis('colorAxis', { axis: options, redraw: redraw, animation: animation });\n },\n /**\n * Factory for creating different axis types.\n *\n * @private\n * @function Highcharts.Chart#createAxis\n *\n * @param {string} type\n * An axis type.\n *\n * @param {...Array<*>} arguments\n * All arguments for the constructor.\n *\n * @return {Highcharts.Axis | Highcharts.ColorAxis}\n * The newly generated Axis object.\n */\n createAxis: function (type, options) {\n var chartOptions = this.options, isColorAxis = type === 'colorAxis', axisOptions = options.axis, redraw = options.redraw, animation = options.animation, userOptions = merge(axisOptions, {\n index: this[type].length,\n isX: type === 'xAxis'\n }), axis;\n if (isColorAxis) {\n axis = new H.ColorAxis(this, userOptions);\n }\n else {\n axis = new Axis(this, userOptions);\n }\n // Push the new axis options to the chart options\n chartOptions[type] = splat(chartOptions[type] || {});\n chartOptions[type].push(userOptions);\n if (isColorAxis) {\n this.isDirtyLegend = true;\n // Clear before 'bindAxes' (#11924)\n this.axes.forEach(function (axis) {\n axis.series = [];\n });\n this.series.forEach(function (series) {\n series.bindAxes();\n series.isDirtyData = true;\n });\n }\n if (pick(redraw, true)) {\n this.redraw(animation);\n }\n return axis;\n },\n /**\n * Dim the chart and show a loading text or symbol. Options for the loading\n * screen are defined in {@link\n * https://api.highcharts.com/highcharts/loading|the loading options}.\n *\n * @sample highcharts/members/chart-hideloading/\n * Show and hide loading from a button\n * @sample highcharts/members/chart-showloading/\n * Apply different text labels\n * @sample stock/members/chart-show-hide-loading/\n * Toggle loading in Highstock\n *\n * @function Highcharts.Chart#showLoading\n *\n * @param {string} [str]\n * An optional text to show in the loading label instead of the\n * default one. The default text is set in\n * [lang.loading](http://api.highcharts.com/highcharts/lang.loading).\n *\n * @return {void}\n */\n showLoading: function (str) {\n var chart = this, options = chart.options, loadingDiv = chart.loadingDiv, loadingOptions = options.loading, setLoadingSize = function () {\n if (loadingDiv) {\n css(loadingDiv, {\n left: chart.plotLeft + 'px',\n top: chart.plotTop + 'px',\n width: chart.plotWidth + 'px',\n height: chart.plotHeight + 'px'\n });\n }\n };\n // create the layer at the first call\n if (!loadingDiv) {\n chart.loadingDiv = loadingDiv = createElement('div', {\n className: 'highcharts-loading highcharts-loading-hidden'\n }, null, chart.container);\n chart.loadingSpan = createElement('span', { className: 'highcharts-loading-inner' }, null, loadingDiv);\n addEvent(chart, 'redraw', setLoadingSize); // #1080\n }\n loadingDiv.className = 'highcharts-loading';\n // Update text\n chart.loadingSpan.innerHTML =\n pick(str, options.lang.loading, '');\n if (!chart.styledMode) {\n // Update visuals\n css(loadingDiv, extend(loadingOptions.style, {\n zIndex: 10\n }));\n css(chart.loadingSpan, loadingOptions.labelStyle);\n // Show it\n if (!chart.loadingShown) {\n css(loadingDiv, {\n opacity: 0,\n display: ''\n });\n animate(loadingDiv, {\n opacity: loadingOptions.style.opacity || 0.5\n }, {\n duration: loadingOptions.showDuration || 0\n });\n }\n }\n chart.loadingShown = true;\n setLoadingSize();\n },\n /**\n * Hide the loading layer.\n *\n * @see Highcharts.Chart#showLoading\n *\n * @sample highcharts/members/chart-hideloading/\n * Show and hide loading from a button\n * @sample stock/members/chart-show-hide-loading/\n * Toggle loading in Highstock\n *\n * @function Highcharts.Chart#hideLoading\n *\n * @return {void}\n */\n hideLoading: function () {\n var options = this.options, loadingDiv = this.loadingDiv;\n if (loadingDiv) {\n loadingDiv.className =\n 'highcharts-loading highcharts-loading-hidden';\n if (!this.styledMode) {\n animate(loadingDiv, {\n opacity: 0\n }, {\n duration: options.loading.hideDuration || 100,\n complete: function () {\n css(loadingDiv, { display: 'none' });\n }\n });\n }\n }\n this.loadingShown = false;\n },\n /**\n * These properties cause isDirtyBox to be set to true when updating. Can be\n * extended from plugins.\n */\n propsRequireDirtyBox: [\n 'backgroundColor',\n 'borderColor',\n 'borderWidth',\n 'borderRadius',\n 'plotBackgroundColor',\n 'plotBackgroundImage',\n 'plotBorderColor',\n 'plotBorderWidth',\n 'plotShadow',\n 'shadow'\n ],\n /**\n * These properties require a full reflow of chart elements, best\n * implemented through running `Chart.setSize` internally (#8190).\n * @type {Array}\n */\n propsRequireReflow: [\n 'margin',\n 'marginTop',\n 'marginRight',\n 'marginBottom',\n 'marginLeft',\n 'spacing',\n 'spacingTop',\n 'spacingRight',\n 'spacingBottom',\n 'spacingLeft'\n ],\n /**\n * These properties cause all series to be updated when updating. Can be\n * extended from plugins.\n */\n propsRequireUpdateSeries: [\n 'chart.inverted',\n 'chart.polar',\n 'chart.ignoreHiddenSeries',\n 'chart.type',\n 'colors',\n 'plotOptions',\n 'time',\n 'tooltip'\n ],\n /**\n * These collections (arrays) implement update() methods with support for\n * one-to-one option.\n */\n collectionsWithUpdate: [\n 'xAxis',\n 'yAxis',\n 'zAxis',\n 'colorAxis',\n 'series',\n 'pane'\n ],\n /**\n * A generic function to update any element of the chart. Elements can be\n * enabled and disabled, moved, re-styled, re-formatted etc.\n *\n * A special case is configuration objects that take arrays, for example\n * [xAxis](https://api.highcharts.com/highcharts/xAxis),\n * [yAxis](https://api.highcharts.com/highcharts/yAxis) or\n * [series](https://api.highcharts.com/highcharts/series). For these\n * collections, an `id` option is used to map the new option set to an\n * existing object. If an existing object of the same id is not found, the\n * corresponding item is updated. So for example, running `chart.update`\n * with a series item without an id, will cause the existing chart's series\n * with the same index in the series array to be updated. When the\n * `oneToOne` parameter is true, `chart.update` will also take care of\n * adding and removing items from the collection. Read more under the\n * parameter description below.\n *\n * Note that when changing series data, `chart.update` may mutate the passed\n * data options.\n *\n * See also the\n * [responsive option set](https://api.highcharts.com/highcharts/responsive).\n * Switching between `responsive.rules` basically runs `chart.update` under\n * the hood.\n *\n * @sample highcharts/members/chart-update/\n * Update chart geometry\n *\n * @function Highcharts.Chart#update\n *\n * @param {Highcharts.Options} options\n * A configuration object for the new chart options.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart.\n *\n * @param {boolean} [oneToOne=false]\n * When `true`, the `series`, `xAxis`, `yAxis` and `annotations`\n * collections will be updated one to one, and items will be either\n * added or removed to match the new updated options. For example,\n * if the chart has two series and we call `chart.update` with a\n * configuration containing three series, one will be added. If we\n * call `chart.update` with one series, one will be removed. Setting\n * an empty `series` array will remove all series, but leaving out\n * the`series` property will leave all series untouched. If the\n * series have id's, the new series options will be matched by id,\n * and the remaining ones removed.\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation=true]\n * Whether to apply animation, and optionally animation\n * configuration.\n *\n * @return {void}\n *\n * @fires Highcharts.Chart#event:update\n * @fires Highcharts.Chart#event:afterUpdate\n */\n update: function (options, redraw, oneToOne, animation) {\n var chart = this, adders = {\n credits: 'addCredits',\n title: 'setTitle',\n subtitle: 'setSubtitle',\n caption: 'setCaption'\n }, optionsChart, updateAllAxes, updateAllSeries, newWidth, newHeight, runSetSize, isResponsiveOptions = options.isResponsiveOptions, itemsForRemoval = [];\n fireEvent(chart, 'update', { options: options });\n // If there are responsive rules in action, undo the responsive rules\n // before we apply the updated options and replay the responsive rules\n // on top from the chart.redraw function (#9617).\n if (!isResponsiveOptions) {\n chart.setResponsive(false, true);\n }\n options = H.cleanRecursively(options, chart.options);\n merge(true, chart.userOptions, options);\n // If the top-level chart option is present, some special updates are\n // required\n optionsChart = options.chart;\n if (optionsChart) {\n merge(true, chart.options.chart, optionsChart);\n // Setter function\n if ('className' in optionsChart) {\n chart.setClassName(optionsChart.className);\n }\n if ('reflow' in optionsChart) {\n chart.setReflow(optionsChart.reflow);\n }\n if ('inverted' in optionsChart ||\n 'polar' in optionsChart ||\n 'type' in optionsChart) {\n // Parse options.chart.inverted and options.chart.polar together\n // with the available series.\n chart.propFromSeries();\n updateAllAxes = true;\n }\n if ('alignTicks' in optionsChart) { // #6452\n updateAllAxes = true;\n }\n objectEach(optionsChart, function (val, key) {\n if (chart.propsRequireUpdateSeries.indexOf('chart.' + key) !==\n -1) {\n updateAllSeries = true;\n }\n // Only dirty box\n if (chart.propsRequireDirtyBox.indexOf(key) !== -1) {\n chart.isDirtyBox = true;\n }\n // Chart setSize\n if (!isResponsiveOptions &&\n chart.propsRequireReflow.indexOf(key) !== -1) {\n runSetSize = true;\n }\n });\n if (!chart.styledMode && 'style' in optionsChart) {\n chart.renderer.setStyle(optionsChart.style);\n }\n }\n // Moved up, because tooltip needs updated plotOptions (#6218)\n if (!chart.styledMode && options.colors) {\n this.options.colors = options.colors;\n }\n if (options.plotOptions) {\n merge(true, this.options.plotOptions, options.plotOptions);\n }\n // Maintaining legacy global time. If the chart is instanciated first\n // with global time, then updated with time options, we need to create a\n // new Time instance to avoid mutating the global time (#10536).\n if (options.time && this.time === H.time) {\n this.time = new H.Time(options.time);\n }\n // Some option stuctures correspond one-to-one to chart objects that\n // have update methods, for example\n // options.credits => chart.credits\n // options.legend => chart.legend\n // options.title => chart.title\n // options.tooltip => chart.tooltip\n // options.subtitle => chart.subtitle\n // options.mapNavigation => chart.mapNavigation\n // options.navigator => chart.navigator\n // options.scrollbar => chart.scrollbar\n objectEach(options, function (val, key) {\n if (chart[key] &&\n typeof chart[key].update === 'function') {\n chart[key].update(val, false);\n // If a one-to-one object does not exist, look for an adder function\n }\n else if (typeof chart[adders[key]] === 'function') {\n chart[adders[key]](val);\n }\n if (key !== 'chart' &&\n chart.propsRequireUpdateSeries.indexOf(key) !== -1) {\n updateAllSeries = true;\n }\n });\n // Setters for collections. For axes and series, each item is referred\n // by an id. If the id is not found, it defaults to the corresponding\n // item in the collection, so setting one series without an id, will\n // update the first series in the chart. Setting two series without\n // an id will update the first and the second respectively (#6019)\n // chart.update and responsive.\n this.collectionsWithUpdate.forEach(function (coll) {\n var indexMap;\n if (options[coll]) {\n // In stock charts, the navigator series are also part of the\n // chart.series array, but those series should not be handled\n // here (#8196).\n if (coll === 'series') {\n indexMap = [];\n chart[coll].forEach(function (s, i) {\n if (!s.options.isInternal) {\n indexMap.push(pick(s.options.index, i));\n }\n });\n }\n splat(options[coll]).forEach(function (newOptions, i) {\n var item = (defined(newOptions.id) &&\n chart.get(newOptions.id)) || chart[coll][indexMap ? indexMap[i] : i];\n if (item && item.coll === coll) {\n item.update(newOptions, false);\n if (oneToOne) {\n item.touched = true;\n }\n }\n // If oneToOne and no matching item is found, add one\n if (!item && oneToOne && chart.collectionsWithInit[coll]) {\n chart.collectionsWithInit[coll][0].apply(chart, \n // [newOptions, ...extraArguments, redraw=false]\n [\n newOptions\n ].concat(\n // Not all initializers require extra args\n chart.collectionsWithInit[coll][1] || []).concat([\n false\n ])).touched = true;\n }\n });\n // Add items for removal\n if (oneToOne) {\n chart[coll].forEach(function (item) {\n if (!item.touched && !item.options.isInternal) {\n itemsForRemoval.push(item);\n }\n else {\n delete item.touched;\n }\n });\n }\n }\n });\n itemsForRemoval.forEach(function (item) {\n if (item.remove) {\n item.remove(false);\n }\n });\n if (updateAllAxes) {\n chart.axes.forEach(function (axis) {\n axis.update({}, false);\n });\n }\n // Certain options require the whole series structure to be thrown away\n // and rebuilt\n if (updateAllSeries) {\n chart.series.forEach(function (series) {\n series.update({}, false);\n });\n }\n // For loading, just update the options, do not redraw\n if (options.loading) {\n merge(true, chart.options.loading, options.loading);\n }\n // Update size. Redraw is forced.\n newWidth = optionsChart && optionsChart.width;\n newHeight = optionsChart && optionsChart.height;\n if (isString(newHeight)) {\n newHeight = H.relativeLength(newHeight, newWidth || chart.chartWidth);\n }\n if (\n // In this case, run chart.setSize with newWidth and newHeight which\n // are undefined, only for reflowing chart elements because margin\n // or spacing has been set (#8190)\n runSetSize ||\n // In this case, the size is actually set\n (isNumber(newWidth) && newWidth !== chart.chartWidth) ||\n (isNumber(newHeight) && newHeight !== chart.chartHeight)) {\n chart.setSize(newWidth, newHeight, animation);\n }\n else if (pick(redraw, true)) {\n chart.redraw(animation);\n }\n fireEvent(chart, 'afterUpdate', {\n options: options,\n redraw: redraw,\n animation: animation\n });\n },\n /**\n * Shortcut to set the subtitle options. This can also be done from {@link\n * Chart#update} or {@link Chart#setTitle}.\n *\n * @function Highcharts.Chart#setSubtitle\n *\n * @param {Highcharts.SubtitleOptions} options\n * New subtitle options. The subtitle text itself is set by the\n * `options.text` property.\n *\n * @return {void}\n */\n setSubtitle: function (options, redraw) {\n this.applyDescription('subtitle', options);\n this.layOutTitles(redraw);\n },\n /**\n * Set the caption options. This can also be done from {@link\n * Chart#update}.\n *\n * @function Highcharts.Chart#setCaption\n *\n * @param {Highcharts.CaptionOptions} options\n * New caption options. The caption text itself is set by the\n * `options.text` property.\n *\n * @return {void}\n */\n setCaption: function (options, redraw) {\n this.applyDescription('caption', options);\n this.layOutTitles(redraw);\n }\n });\n /**\n * These collections (arrays) implement `Chart.addSomethig` method used in\n * chart.update() to create new object in the collection. Equivalent for\n * deleting is resolved by simple `Somethig.remove()`.\n *\n * Note: We need to define these references after initializers are bound to\n * chart's prototype.\n */\n Chart.prototype.collectionsWithInit = {\n // collectionName: [ initializingMethod, [extraArguments] ]\n xAxis: [Chart.prototype.addAxis, [true]],\n yAxis: [Chart.prototype.addAxis, [false]],\n colorAxis: [Chart.prototype.addColorAxis, [false]],\n series: [Chart.prototype.addSeries]\n };\n // extend the Point prototype for dynamic methods\n extend(Point.prototype, /** @lends Highcharts.Point.prototype */ {\n /**\n * Update point with new options (typically x/y data) and optionally redraw\n * the series.\n *\n * @sample highcharts/members/point-update-column/\n * Update column value\n * @sample highcharts/members/point-update-pie/\n * Update pie slice\n * @sample maps/members/point-update/\n * Update map area value in Highmaps\n *\n * @function Highcharts.Point#update\n *\n * @param {Highcharts.PointOptionsType} options\n * The point options. Point options are handled as described under\n * the `series.type.data` item for each series type. For example\n * for a line series, if options is a single number, the point will\n * be given that number as the marin y value. If it is an array, it\n * will be interpreted as x and y values respectively. If it is an\n * object, advanced options are applied.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after the point is updated. If doing\n * more operations on the chart, it is best practice to set\n * `redraw` to false and call `chart.redraw()` after.\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation=true]\n * Whether to apply animation, and optionally animation\n * configuration.\n *\n * @return {void}\n *\n * @fires Highcharts.Point#event:update\n */\n update: function (options, redraw, animation, runEvent) {\n var point = this, series = point.series, graphic = point.graphic, i, chart = series.chart, seriesOptions = series.options;\n redraw = pick(redraw, true);\n /**\n * @private\n */\n function update() {\n point.applyOptions(options);\n // Update visuals\n if (point.y === null && graphic) { // #4146\n point.graphic = graphic.destroy();\n }\n if (isObject(options, true)) {\n // Destroy so we can get new elements\n if (graphic && graphic.element) {\n // \"null\" is also a valid symbol\n if (options &&\n options.marker &&\n options.marker.symbol !== undefined) {\n point.graphic = graphic.destroy();\n }\n }\n if (options && options.dataLabels && point.dataLabel) {\n point.dataLabel = point.dataLabel.destroy(); // #2468\n }\n if (point.connector) {\n point.connector = point.connector.destroy(); // #7243\n }\n }\n // record changes in the parallel arrays\n i = point.index;\n series.updateParallelArrays(point, i);\n // Record the options to options.data. If the old or the new config\n // is an object, use point options, otherwise use raw options\n // (#4701, #4916).\n seriesOptions.data[i] = (isObject(seriesOptions.data[i], true) ||\n isObject(options, true)) ?\n point.options :\n pick(options, seriesOptions.data[i]);\n // redraw\n series.isDirty = series.isDirtyData = true;\n if (!series.fixedBox && series.hasCartesianSeries) { // #1906, #2320\n chart.isDirtyBox = true;\n }\n if (seriesOptions.legendType === 'point') { // #1831, #1885\n chart.isDirtyLegend = true;\n }\n if (redraw) {\n chart.redraw(animation);\n }\n }\n // Fire the event with a default handler of doing the update\n if (runEvent === false) { // When called from setData\n update();\n }\n else {\n point.firePointEvent('update', { options: options }, update);\n }\n },\n /**\n * Remove a point and optionally redraw the series and if necessary the axes\n *\n * @sample highcharts/plotoptions/series-point-events-remove/\n * Remove point and confirm\n * @sample highcharts/members/point-remove/\n * Remove pie slice\n * @sample maps/members/point-remove/\n * Remove selected points in Highmaps\n *\n * @function Highcharts.Point#remove\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart or wait for an explicit call. When\n * doing more operations on the chart, for example running\n * `point.remove()` in a loop, it is best practice to set `redraw`\n * to false and call `chart.redraw()` after.\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation=false]\n * Whether to apply animation, and optionally animation\n * configuration.\n *\n * @return {void}\n */\n remove: function (redraw, animation) {\n this.series.removePoint(this.series.data.indexOf(this), redraw, animation);\n }\n });\n // Extend the series prototype for dynamic methods\n extend(Series.prototype, /** @lends Series.prototype */ {\n /**\n * Add a point to the series after render time. The point can be added at\n * the end, or by giving it an X value, to the start or in the middle of the\n * series.\n *\n * @sample highcharts/members/series-addpoint-append/\n * Append point\n * @sample highcharts/members/series-addpoint-append-and-shift/\n * Append and shift\n * @sample highcharts/members/series-addpoint-x-and-y/\n * Both X and Y values given\n * @sample highcharts/members/series-addpoint-pie/\n * Append pie slice\n * @sample stock/members/series-addpoint/\n * Append 100 points in Highstock\n * @sample stock/members/series-addpoint-shift/\n * Append and shift in Highstock\n * @sample maps/members/series-addpoint/\n * Add a point in Highmaps\n *\n * @function Highcharts.Series#addPoint\n *\n * @param {Highcharts.PointOptionsType} options\n * The point options. If options is a single number, a point with\n * that y value is appended to the series. If it is an array, it will\n * be interpreted as x and y values respectively. If it is an\n * object, advanced options as outlined under `series.data` are\n * applied.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after the point is added. When adding\n * more than one point, it is highly recommended that the redraw\n * option be set to false, and instead {@link Chart#redraw} is\n * explicitly called after the adding of points is finished.\n * Otherwise, the chart will redraw after adding each point.\n *\n * @param {boolean} [shift=false]\n * If true, a point is shifted off the start of the series as one is\n * appended to the end.\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation]\n * Whether to apply animation, and optionally animation\n * configuration.\n *\n * @param {boolean} [withEvent=true]\n * Used internally, whether to fire the series `addPoint` event.\n *\n * @return {void}\n *\n * @fires Highcharts.Series#event:addPoint\n */\n addPoint: function (options, redraw, shift, animation, withEvent) {\n var series = this, seriesOptions = series.options, data = series.data, chart = series.chart, xAxis = series.xAxis, names = xAxis && xAxis.hasNames && xAxis.names, dataOptions = seriesOptions.data, point, xData = series.xData, isInTheMiddle, i, x;\n // Optional redraw, defaults to true\n redraw = pick(redraw, true);\n // Get options and push the point to xData, yData and series.options. In\n // series.generatePoints the Point instance will be created on demand\n // and pushed to the series.data array.\n point = { series: series };\n series.pointClass.prototype.applyOptions.apply(point, [options]);\n x = point.x;\n // Get the insertion point\n i = xData.length;\n if (series.requireSorting && x < xData[i - 1]) {\n isInTheMiddle = true;\n while (i && xData[i - 1] > x) {\n i--;\n }\n }\n // Insert undefined item\n series.updateParallelArrays(point, 'splice', i, 0, 0);\n // Update it\n series.updateParallelArrays(point, i);\n if (names && point.name) {\n names[x] = point.name;\n }\n dataOptions.splice(i, 0, options);\n if (isInTheMiddle) {\n series.data.splice(i, 0, null);\n series.processData();\n }\n // Generate points to be added to the legend (#1329)\n if (seriesOptions.legendType === 'point') {\n series.generatePoints();\n }\n // Shift the first point off the parallel arrays\n if (shift) {\n if (data[0] && data[0].remove) {\n data[0].remove(false);\n }\n else {\n data.shift();\n series.updateParallelArrays(point, 'shift');\n dataOptions.shift();\n }\n }\n // Fire event\n if (withEvent !== false) {\n fireEvent(series, 'addPoint', { point: point });\n }\n // redraw\n series.isDirty = true;\n series.isDirtyData = true;\n if (redraw) {\n chart.redraw(animation); // Animation is set anyway on redraw, #5665\n }\n },\n /**\n * Remove a point from the series. Unlike the\n * {@link Highcharts.Point#remove} method, this can also be done on a point\n * that is not instanciated because it is outside the view or subject to\n * Highstock data grouping.\n *\n * @sample highcharts/members/series-removepoint/\n * Remove cropped point\n *\n * @function Highcharts.Series#removePoint\n *\n * @param {number} i\n * The index of the point in the {@link Highcharts.Series.data|data}\n * array.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after the point is added. When\n * removing more than one point, it is highly recommended that the\n * `redraw` option be set to `false`, and instead {@link\n * Highcharts.Chart#redraw} is explicitly called after the adding of\n * points is finished.\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation]\n * Whether and optionally how the series should be animated.\n *\n * @return {void}\n *\n * @fires Highcharts.Point#event:remove\n */\n removePoint: function (i, redraw, animation) {\n var series = this, data = series.data, point = data[i], points = series.points, chart = series.chart, remove = function () {\n if (points && points.length === data.length) { // #4935\n points.splice(i, 1);\n }\n data.splice(i, 1);\n series.options.data.splice(i, 1);\n series.updateParallelArrays(point || { series: series }, 'splice', i, 1);\n if (point) {\n point.destroy();\n }\n // redraw\n series.isDirty = true;\n series.isDirtyData = true;\n if (redraw) {\n chart.redraw();\n }\n };\n setAnimation(animation, chart);\n redraw = pick(redraw, true);\n // Fire the event with a default handler of removing the point\n if (point) {\n point.firePointEvent('remove', null, remove);\n }\n else {\n remove();\n }\n },\n /**\n * Remove a series and optionally redraw the chart.\n *\n * @sample highcharts/members/series-remove/\n * Remove first series from a button\n *\n * @function Highcharts.Series#remove\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart or wait for an explicit call to\n * {@link Highcharts.Chart#redraw}.\n *\n * @param {boolean|Highcharts.AnimationOptionsObject} [animation]\n * Whether to apply animation, and optionally animation\n * configuration.\n *\n * @param {boolean} [withEvent=true]\n * Used internally, whether to fire the series `remove` event.\n *\n * @return {void}\n *\n * @fires Highcharts.Series#event:remove\n */\n remove: function (redraw, animation, withEvent, keepEvents) {\n var series = this, chart = series.chart;\n /**\n * @private\n */\n function remove() {\n // Destroy elements\n series.destroy(keepEvents);\n series.remove = null; // Prevent from doing again (#9097)\n // Redraw\n chart.isDirtyLegend = chart.isDirtyBox = true;\n chart.linkSeries();\n if (pick(redraw, true)) {\n chart.redraw(animation);\n }\n }\n // Fire the event with a default handler of removing the point\n if (withEvent !== false) {\n fireEvent(series, 'remove', null, remove);\n }\n else {\n remove();\n }\n },\n /**\n * Update the series with a new set of options. For a clean and precise\n * handling of new options, all methods and elements from the series are\n * removed, and it is initialized from scratch. Therefore, this method is\n * more performance expensive than some other utility methods like {@link\n * Series#setData} or {@link Series#setVisible}.\n *\n * Note that `Series.update` may mutate the passed `data` options.\n *\n * @sample highcharts/members/series-update/\n * Updating series options\n * @sample maps/members/series-update/\n * Update series options in Highmaps\n *\n * @function Highcharts.Series#update\n *\n * @param {Highcharts.SeriesOptionsType} options\n * New options that will be merged with the series' existing options.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after the series is altered. If doing\n * more operations on the chart, it is a good idea to set redraw to\n * false and call {@link Chart#redraw} after.\n *\n * @return {void}\n *\n * @fires Highcharts.Series#event:update\n * @fires Highcharts.Series#event:afterUpdate\n */\n update: function (options, redraw) {\n options = H.cleanRecursively(options, this.userOptions);\n fireEvent(this, 'update', { options: options });\n var series = this, chart = series.chart, \n // must use user options when changing type because series.options\n // is merged in with type specific plotOptions\n oldOptions = series.userOptions, seriesOptions, initialType = series.initialType || series.type, newType = (options.type ||\n oldOptions.type ||\n chart.options.chart.type), keepPoints = !(\n // Indicators, histograms etc recalculate the data. It should be\n // possible to omit this.\n this.hasDerivedData ||\n // Changes to data grouping requires new points in new groups\n options.dataGrouping ||\n // New type requires new point classes\n (newType && newType !== this.type) ||\n // New options affecting how the data points are built\n options.pointStart !== undefined ||\n options.pointInterval ||\n options.pointIntervalUnit ||\n options.keys), initialSeriesProto = seriesTypes[initialType].prototype, n, groups = [\n 'group',\n 'markerGroup',\n 'dataLabelsGroup',\n 'transformGroup'\n ], preserve = [\n 'eventOptions',\n 'navigatorSeries',\n 'baseSeries'\n ], \n // Animation must be enabled when calling update before the initial\n // animation has first run. This happens when calling update\n // directly after chart initialization, or when applying responsive\n // rules (#6912).\n animation = series.finishedAnimating && { animation: false }, kinds = {};\n if (keepPoints) {\n preserve.push('data', 'isDirtyData', 'points', 'processedXData', 'processedYData', 'xIncrement', '_hasPointMarkers', '_hasPointLabels', \n // Map specific, consider moving it to series-specific preserve-\n // properties (#10617)\n 'mapMap', 'mapData', 'minY', 'maxY', 'minX', 'maxX');\n if (options.visible !== false) {\n preserve.push('area', 'graph');\n }\n series.parallelArrays.forEach(function (key) {\n preserve.push(key + 'Data');\n });\n if (options.data) {\n this.setData(options.data, false);\n }\n }\n // Do the merge, with some forced options\n options = merge(oldOptions, animation, {\n // When oldOptions.index is null it should't be cleared.\n // Otherwise navigator series will have wrong indexes (#10193).\n index: oldOptions.index === undefined ?\n series.index : oldOptions.index,\n pointStart: pick(\n // when updating from blank (#7933)\n oldOptions.pointStart, \n // when updating after addPoint\n series.xData[0])\n }, (!keepPoints && { data: series.options.data }), options);\n // Merge does not merge arrays, but replaces them. Since points were\n // updated, `series.options.data` has correct merged options, use it:\n if (keepPoints && options.data) {\n options.data = series.options.data;\n }\n // Make sure preserved properties are not destroyed (#3094)\n preserve = groups.concat(preserve);\n preserve.forEach(function (prop) {\n preserve[prop] = series[prop];\n delete series[prop];\n });\n // Destroy the series and delete all properties. Reinsert all\n // methods and properties from the new type prototype (#2270,\n // #3719).\n series.remove(false, null, false, true);\n for (n in initialSeriesProto) { // eslint-disable-line guard-for-in\n series[n] = undefined;\n }\n if (seriesTypes[newType || initialType]) {\n extend(series, seriesTypes[newType || initialType].prototype);\n }\n else {\n H.error(17, true, chart, { missingModuleFor: (newType || initialType) });\n }\n // Re-register groups (#3094) and other preserved properties\n preserve.forEach(function (prop) {\n series[prop] = preserve[prop];\n });\n series.init(chart, options);\n // Remove particular elements of the points. Check `series.options`\n // because we need to consider the options being set on plotOptions as\n // well.\n if (keepPoints && this.points) {\n seriesOptions = series.options;\n // What kind of elements to destroy\n if (seriesOptions.visible === false) {\n kinds.graphic = 1;\n kinds.dataLabel = 1;\n }\n else if (!series._hasPointLabels) {\n var marker = seriesOptions.marker, dataLabels = seriesOptions.dataLabels;\n if (marker && (marker.enabled === false ||\n 'symbol' in marker // #10870\n )) {\n kinds.graphic = 1;\n }\n if (dataLabels &&\n dataLabels.enabled === false) {\n kinds.dataLabel = 1;\n }\n }\n this.points.forEach(function (point) {\n if (point && point.series) {\n point.resolveColor();\n // Destroy elements in order to recreate based on updated\n // series options.\n if (Object.keys(kinds).length) {\n point.destroyElements(kinds);\n }\n if (seriesOptions.showInLegend === false &&\n point.legendItem) {\n chart.legend.destroyItem(point);\n }\n }\n }, this);\n }\n // Update the Z index of groups (#3380, #7397)\n if (options.zIndex !== oldOptions.zIndex) {\n groups.forEach(function (groupName) {\n if (series[groupName]) {\n series[groupName].attr({\n zIndex: options.zIndex\n });\n }\n });\n }\n series.initialType = initialType;\n chart.linkSeries(); // Links are lost in series.remove (#3028)\n fireEvent(this, 'afterUpdate');\n if (pick(redraw, true)) {\n chart.redraw(keepPoints ? undefined : false);\n }\n },\n /**\n * Used from within series.update\n *\n * @private\n * @function Highcharts.Series#setName\n *\n * @param {string} name\n *\n * @return {void}\n */\n setName: function (name) {\n this.name = this.options.name = this.userOptions.name = name;\n this.chart.isDirtyLegend = true;\n }\n });\n // Extend the Axis.prototype for dynamic methods\n extend(Axis.prototype, /** @lends Highcharts.Axis.prototype */ {\n /**\n * Update an axis object with a new set of options. The options are merged\n * with the existing options, so only new or altered options need to be\n * specified.\n *\n * @sample highcharts/members/axis-update/\n * Axis update demo\n *\n * @function Highcharts.Axis#update\n *\n * @param {Highcharts.AxisOptions} options\n * The new options that will be merged in with existing options on\n * the axis.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after the axis is altered. If doing\n * more operations on the chart, it is a good idea to set redraw to\n * false and call {@link Chart#redraw} after.\n *\n * @return {void}\n */\n update: function (options, redraw) {\n var chart = this.chart, newEvents = ((options && options.events) || {});\n options = merge(this.userOptions, options);\n // Color Axis is not an array,\n // This change is applied in the ColorAxis wrapper\n if (chart.options[this.coll].indexOf) {\n // Don't use this.options.index,\n // StockChart has Axes in navigator too\n chart.options[this.coll][chart.options[this.coll].indexOf(this.userOptions)] = options;\n }\n // Remove old events, if no new exist (#8161)\n objectEach(chart.options[this.coll].events, function (fn, ev) {\n if (typeof newEvents[ev] === 'undefined') {\n newEvents[ev] = undefined;\n }\n });\n this.destroy(true);\n this.init(chart, extend(options, { events: newEvents }));\n chart.isDirtyBox = true;\n if (pick(redraw, true)) {\n chart.redraw();\n }\n },\n /**\n * Remove the axis from the chart.\n *\n * @sample highcharts/members/chart-addaxis/\n * Add and remove axes\n *\n * @function Highcharts.Axis#remove\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart following the remove.\n *\n * @return {void}\n */\n remove: function (redraw) {\n var chart = this.chart, key = this.coll, // xAxis or yAxis\n axisSeries = this.series, i = axisSeries.length;\n // Remove associated series (#2687)\n while (i--) {\n if (axisSeries[i]) {\n axisSeries[i].remove(false);\n }\n }\n // Remove the axis\n erase(chart.axes, this);\n erase(chart[key], this);\n if (isArray(chart.options[key])) {\n chart.options[key].splice(this.options.index, 1);\n }\n else { // color axis, #6488\n delete chart.options[key];\n }\n chart[key].forEach(function (axis, i) {\n // Re-index, #1706, #8075\n axis.options.index = axis.userOptions.index = i;\n });\n this.destroy();\n chart.isDirtyBox = true;\n if (pick(redraw, true)) {\n chart.redraw();\n }\n },\n /**\n * Update the axis title by options after render time.\n *\n * @sample highcharts/members/axis-settitle/\n * Set a new Y axis title\n *\n * @function Highcharts.Axis#setTitle\n *\n * @param {Highcharts.AxisTitleOptions} titleOptions\n * The additional title options.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after setting the title.\n *\n * @return {void}\n */\n setTitle: function (titleOptions, redraw) {\n this.update({ title: titleOptions }, redraw);\n },\n /**\n * Set new axis categories and optionally redraw.\n *\n * @sample highcharts/members/axis-setcategories/\n * Set categories by click on a button\n *\n * @function Highcharts.Axis#setCategories\n *\n * @param {Array} categories\n * The new categories.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart.\n *\n * @return {void}\n */\n setCategories: function (categories, redraw) {\n this.update({ categories: categories }, redraw);\n }\n });\n\n });\n _registerModule(_modules, 'parts/AreaSeries.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n var objectEach = U.objectEach, pick = U.pick;\n var color = H.color, LegendSymbolMixin = H.LegendSymbolMixin, Series = H.Series, seriesType = H.seriesType;\n /**\n * Area series type.\n *\n * @private\n * @class\n * @name Highcharts.seriesTypes.area\n *\n * @augments Highcharts.Series\n */\n seriesType('area', 'line', \n /**\n * The area series type.\n *\n * @sample {highcharts} highcharts/demo/area-basic/\n * Area chart\n * @sample {highstock} stock/demo/area/\n * Area chart\n *\n * @extends plotOptions.line\n * @excluding useOhlcData\n * @product highcharts highstock\n * @optionparent plotOptions.area\n */\n {\n /**\n * Fill color or gradient for the area. When `null`, the series' `color`\n * is used with the series' `fillOpacity`.\n *\n * In styled mode, the fill color can be set with the `.highcharts-area`\n * class name.\n *\n * @sample {highcharts} highcharts/plotoptions/area-fillcolor-default/\n * Null by default\n * @sample {highcharts} highcharts/plotoptions/area-fillcolor-gradient/\n * Gradient\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highcharts highstock\n * @apioption plotOptions.area.fillColor\n */\n /**\n * Fill opacity for the area. When you set an explicit `fillColor`,\n * the `fillOpacity` is not applied. Instead, you should define the\n * opacity in the `fillColor` with an rgba color definition. The\n * `fillOpacity` setting, also the default setting, overrides the alpha\n * component of the `color` setting.\n *\n * In styled mode, the fill opacity can be set with the\n * `.highcharts-area` class name.\n *\n * @sample {highcharts} highcharts/plotoptions/area-fillopacity/\n * Automatic fill color and fill opacity of 0.1\n *\n * @type {number}\n * @default {highcharts} 0.75\n * @default {highstock} 0.75\n * @product highcharts highstock\n * @apioption plotOptions.area.fillOpacity\n */\n /**\n * A separate color for the graph line. By default the line takes the\n * `color` of the series, but the lineColor setting allows setting a\n * separate color for the line without altering the `fillColor`.\n *\n * In styled mode, the line stroke can be set with the\n * `.highcharts-graph` class name.\n *\n * @sample {highcharts} highcharts/plotoptions/area-linecolor/\n * Dark gray line\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highcharts highstock\n * @apioption plotOptions.area.lineColor\n */\n /**\n * A separate color for the negative part of the area.\n *\n * In styled mode, a negative color is set with the\n * `.highcharts-negative` class name.\n *\n * @see [negativeColor](#plotOptions.area.negativeColor)\n *\n * @sample {highcharts} highcharts/css/series-negative-color/\n * Negative color in styled mode\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @since 3.0\n * @product highcharts\n * @apioption plotOptions.area.negativeFillColor\n */\n /**\n * Whether the whole area or just the line should respond to mouseover\n * tooltips and other mouse or touch events.\n *\n * @sample {highcharts|highstock} highcharts/plotoptions/area-trackbyarea/\n * Display the tooltip when the area is hovered\n *\n * @type {boolean}\n * @default false\n * @since 1.1.6\n * @product highcharts highstock\n * @apioption plotOptions.area.trackByArea\n */\n /**\n * When this is true, the series will not cause the Y axis to cross\n * the zero plane (or [threshold](#plotOptions.series.threshold) option)\n * unless the data actually crosses the plane.\n *\n * For example, if `softThreshold` is `false`, a series of 0, 1, 2,\n * 3 will make the Y axis show negative values according to the\n * `minPadding` option. If `softThreshold` is `true`, the Y axis starts\n * at 0.\n *\n * @since 4.1.9\n * @product highcharts highstock\n */\n softThreshold: false,\n /**\n * The Y axis value to serve as the base for the area, for\n * distinguishing between values above and below a threshold. The area\n * between the graph and the threshold is filled.\n *\n * * If a number is given, the Y axis will scale to the threshold.\n * * If `null`, the scaling behaves like a line series with fill between\n * the graph and the Y axis minimum.\n * * If `Infinity` or `-Infinity`, the area between the graph and the\n * corresponing Y axis extreme is filled (since v6.1.0).\n *\n * @sample {highcharts} highcharts/plotoptions/area-threshold/\n * A threshold of 100\n * @sample {highcharts} highcharts/plotoptions/area-threshold-infinity/\n * A threshold of Infinity\n *\n * @since 2.0\n * @product highcharts highstock\n */\n threshold: 0\n }, \n /* eslint-disable valid-jsdoc */\n /**\n * @lends seriesTypes.area.prototype\n */\n {\n singleStacks: false,\n /**\n * Return an array of stacked points, where null and missing points are\n * replaced by dummy points in order for gaps to be drawn correctly in\n * stacks.\n * @private\n */\n getStackPoints: function (points) {\n var series = this, segment = [], keys = [], xAxis = this.xAxis, yAxis = this.yAxis, stack = yAxis.stacks[this.stackKey], pointMap = {}, seriesIndex = series.index, yAxisSeries = yAxis.series, seriesLength = yAxisSeries.length, visibleSeries, upOrDown = pick(yAxis.options.reversedStacks, true) ? 1 : -1, i;\n points = points || this.points;\n if (this.options.stacking) {\n for (i = 0; i < points.length; i++) {\n // Reset after point update (#7326)\n points[i].leftNull = points[i].rightNull = undefined;\n // Create a map where we can quickly look up the points by\n // their X values.\n pointMap[points[i].x] = points[i];\n }\n // Sort the keys (#1651)\n objectEach(stack, function (stackX, x) {\n // nulled after switching between\n // grouping and not (#1651, #2336)\n if (stackX.total !== null) {\n keys.push(x);\n }\n });\n keys.sort(function (a, b) {\n return a - b;\n });\n visibleSeries = yAxisSeries.map(function (s) {\n return s.visible;\n });\n keys.forEach(function (x, idx) {\n var y = 0, stackPoint, stackedValues;\n if (pointMap[x] && !pointMap[x].isNull) {\n segment.push(pointMap[x]);\n // Find left and right cliff. -1 goes left, 1 goes\n // right.\n [-1, 1].forEach(function (direction) {\n var nullName = direction === 1 ?\n 'rightNull' :\n 'leftNull', cliffName = direction === 1 ?\n 'rightCliff' :\n 'leftCliff', cliff = 0, otherStack = stack[keys[idx + direction]];\n // If there is a stack next to this one,\n // to the left or to the right...\n if (otherStack) {\n i = seriesIndex;\n // Can go either up or down,\n // depending on reversedStacks\n while (i >= 0 && i < seriesLength) {\n stackPoint = otherStack.points[i];\n if (!stackPoint) {\n // If the next point in this series\n // is missing, mark the point\n // with point.leftNull or\n // point.rightNull = true.\n if (i === seriesIndex) {\n pointMap[x][nullName] =\n true;\n // If there are missing points in\n // the next stack in any of the\n // series below this one, we need\n // to substract the missing values\n // and add a hiatus to the left or\n // right.\n }\n else if (visibleSeries[i]) {\n stackedValues =\n stack[x].points[i];\n if (stackedValues) {\n cliff -=\n stackedValues[1] -\n stackedValues[0];\n }\n }\n }\n // When reversedStacks is true, loop up,\n // else loop down\n i += upOrDown;\n }\n }\n pointMap[x][cliffName] = cliff;\n });\n // There is no point for this X value in this series, so we\n // insert a dummy point in order for the areas to be drawn\n // correctly.\n }\n else {\n // Loop down the stack to find the series below this\n // one that has a value (#1991)\n i = seriesIndex;\n while (i >= 0 && i < seriesLength) {\n stackPoint = stack[x].points[i];\n if (stackPoint) {\n y = stackPoint[1];\n break;\n }\n // When reversedStacks is true, loop up, else loop\n // down\n i += upOrDown;\n }\n y = yAxis.translate(// #6272\n y, 0, 1, 0, 1);\n segment.push({\n isNull: true,\n plotX: xAxis.translate(// #6272\n x, 0, 0, 0, 1),\n x: x,\n plotY: y,\n yBottom: y\n });\n }\n });\n }\n return segment;\n },\n /**\n * @private\n */\n getGraphPath: function (points) {\n var getGraphPath = Series.prototype.getGraphPath, graphPath, options = this.options, stacking = options.stacking, yAxis = this.yAxis, topPath, bottomPath, bottomPoints = [], graphPoints = [], seriesIndex = this.index, i, areaPath, plotX, stacks = yAxis.stacks[this.stackKey], threshold = options.threshold, translatedThreshold = Math.round(// #10909\n yAxis.getThreshold(options.threshold)), isNull, yBottom, connectNulls = pick(// #10574\n options.connectNulls, stacking === 'percent'), \n // To display null points in underlying stacked series, this\n // series graph must be broken, and the area also fall down to\n // fill the gap left by the null point. #2069\n addDummyPoints = function (i, otherI, side) {\n var point = points[i], stackedValues = stacking &&\n stacks[point.x].points[seriesIndex], nullVal = point[side + 'Null'] || 0, cliffVal = point[side + 'Cliff'] || 0, top, bottom, isNull = true;\n if (cliffVal || nullVal) {\n top = (nullVal ?\n stackedValues[0] :\n stackedValues[1]) + cliffVal;\n bottom = stackedValues[0] + cliffVal;\n isNull = !!nullVal;\n }\n else if (!stacking &&\n points[otherI] &&\n points[otherI].isNull) {\n top = bottom = threshold;\n }\n // Add to the top and bottom line of the area\n if (top !== undefined) {\n graphPoints.push({\n plotX: plotX,\n plotY: top === null ?\n translatedThreshold :\n yAxis.getThreshold(top),\n isNull: isNull,\n isCliff: true\n });\n bottomPoints.push({\n plotX: plotX,\n plotY: bottom === null ?\n translatedThreshold :\n yAxis.getThreshold(bottom),\n doCurve: false // #1041, gaps in areaspline areas\n });\n }\n };\n // Find what points to use\n points = points || this.points;\n // Fill in missing points\n if (stacking) {\n points = this.getStackPoints(points);\n }\n for (i = 0; i < points.length; i++) {\n // Reset after series.update of stacking property (#12033)\n if (!stacking) {\n points[i].leftCliff = points[i].rightCliff =\n points[i].leftNull = points[i].rightNull = undefined;\n }\n isNull = points[i].isNull;\n plotX = pick(points[i].rectPlotX, points[i].plotX);\n yBottom = pick(points[i].yBottom, translatedThreshold);\n if (!isNull || connectNulls) {\n if (!connectNulls) {\n addDummyPoints(i, i - 1, 'left');\n }\n // Skip null point when stacking is false and connectNulls\n // true\n if (!(isNull && !stacking && connectNulls)) {\n graphPoints.push(points[i]);\n bottomPoints.push({\n x: i,\n plotX: plotX,\n plotY: yBottom\n });\n }\n if (!connectNulls) {\n addDummyPoints(i, i + 1, 'right');\n }\n }\n }\n topPath = getGraphPath.call(this, graphPoints, true, true);\n bottomPoints.reversed = true;\n bottomPath = getGraphPath.call(this, bottomPoints, true, true);\n if (bottomPath.length) {\n bottomPath[0] = 'L';\n }\n areaPath = topPath.concat(bottomPath);\n // TODO: don't set leftCliff and rightCliff when connectNulls?\n graphPath = getGraphPath\n .call(this, graphPoints, false, connectNulls);\n areaPath.xMap = topPath.xMap;\n this.areaPath = areaPath;\n return graphPath;\n },\n /**\n * Draw the graph and the underlying area. This method calls the Series\n * base function and adds the area. The areaPath is calculated in the\n * getSegmentPath method called from Series.prototype.drawGraph.\n * @private\n */\n drawGraph: function () {\n // Define or reset areaPath\n this.areaPath = [];\n // Call the base method\n Series.prototype.drawGraph.apply(this);\n // Define local variables\n var series = this, areaPath = this.areaPath, options = this.options, zones = this.zones, props = [[\n 'area',\n 'highcharts-area',\n this.color,\n options.fillColor\n ]]; // area name, main color, fill color\n zones.forEach(function (zone, i) {\n props.push([\n 'zone-area-' + i,\n 'highcharts-area highcharts-zone-area-' + i + ' ' +\n zone.className,\n zone.color || series.color,\n zone.fillColor || options.fillColor\n ]);\n });\n props.forEach(function (prop) {\n var areaKey = prop[0], area = series[areaKey], verb = area ? 'animate' : 'attr', attribs = {};\n // Create or update the area\n if (area) { // update\n area.endX = series.preventGraphAnimation ?\n null :\n areaPath.xMap;\n area.animate({ d: areaPath });\n }\n else { // create\n attribs.zIndex = 0; // #1069\n area = series[areaKey] = series.chart.renderer\n .path(areaPath)\n .addClass(prop[1])\n .add(series.group);\n area.isArea = true;\n }\n if (!series.chart.styledMode) {\n attribs.fill = pick(prop[3], color(prop[2])\n .setOpacity(pick(options.fillOpacity, 0.75))\n .get());\n }\n area[verb](attribs);\n area.startX = areaPath.xMap;\n area.shiftUnit = options.step ? 2 : 1;\n });\n },\n drawLegendSymbol: LegendSymbolMixin.drawRectangle\n });\n /* eslint-enable valid-jsdoc */\n /**\n * A `area` series. If the [type](#series.area.type) option is not\n * specified, it is inherited from [chart.type](#chart.type).\n *\n * @extends series,plotOptions.area\n * @excluding dataParser, dataURL, useOhlcData\n * @product highcharts highstock\n * @apioption series.area\n */\n /**\n * An array of data points for the series. For the `area` series type,\n * points can be given in the following ways:\n *\n * 1. An array of numerical values. In this case, the numerical values will be\n * interpreted as `y` options. The `x` values will be automatically\n * calculated, either starting at 0 and incremented by 1, or from\n * `pointStart` * and `pointInterval` given in the series options. If the\n * axis has categories, these will be used. Example:\n * ```js\n * data: [0, 5, 3, 5]\n * ```\n *\n * 2. An array of arrays with 2 values. In this case, the values correspond to\n * `x,y`. If the first value is a string, it is applied as the name of the\n * point, and the `x` value is inferred.\n * ```js\n * data: [\n * [0, 9],\n * [1, 7],\n * [2, 6]\n * ]\n * ```\n *\n * 3. An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of\n * data points exceeds the series'\n * [turboThreshold](#series.area.turboThreshold), this option is not\n * available.\n * ```js\n * data: [{\n * x: 1,\n * y: 9,\n * name: \"Point2\",\n * color: \"#00FF00\"\n * }, {\n * x: 1,\n * y: 6,\n * name: \"Point1\",\n * color: \"#FF00FF\"\n * }]\n * ```\n *\n * @sample {highcharts} highcharts/chart/reflow-true/\n * Numerical values\n * @sample {highcharts} highcharts/series/data-array-of-arrays/\n * Arrays of numeric x and y\n * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/\n * Arrays of datetime x and y\n * @sample {highcharts} highcharts/series/data-array-of-name-value/\n * Arrays of point.name and y\n * @sample {highcharts} highcharts/series/data-array-of-objects/\n * Config objects\n *\n * @type {Array|null|*>}\n * @extends series.line.data\n * @product highcharts highstock\n * @apioption series.area.data\n */\n ''; // adds doclets above to transpilat\n\n });\n _registerModule(_modules, 'parts/SplineSeries.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n var pick = U.pick;\n var seriesType = H.seriesType;\n /**\n * Spline series type.\n *\n * @private\n * @class\n * @name Highcharts.seriesTypes.spline\n *\n * @augments Highcarts.Series\n */\n seriesType('spline', 'line', \n /**\n * A spline series is a special type of line series, where the segments\n * between the data points are smoothed.\n *\n * @sample {highcharts} highcharts/demo/spline-irregular-time/\n * Spline chart\n * @sample {highstock} stock/demo/spline/\n * Spline chart\n *\n * @extends plotOptions.series\n * @excluding step\n * @product highcharts highstock\n * @optionparent plotOptions.spline\n */\n {}, \n /**\n * @lends seriesTypes.spline.prototype\n */\n {\n /* eslint-disable valid-jsdoc */\n /**\n * Get the spline segment from a given point's previous neighbour to the\n * given point.\n *\n * @private\n * @function Highcharts.seriesTypes.spline#getPointSpline\n *\n * @param {Array}\n *\n * @param {Highcharts.Point} point\n *\n * @param {number} i\n *\n * @return {Highcharts.SVGPathArray}\n */\n getPointSpline: function (points, point, i) {\n var \n // 1 means control points midway between points, 2 means 1/3\n // from the point, 3 is 1/4 etc\n smoothing = 1.5, denom = smoothing + 1, plotX = point.plotX, plotY = point.plotY, lastPoint = points[i - 1], nextPoint = points[i + 1], leftContX, leftContY, rightContX, rightContY, ret;\n /**\n * @private\n */\n function doCurve(otherPoint) {\n return otherPoint &&\n !otherPoint.isNull &&\n otherPoint.doCurve !== false &&\n // #6387, area splines next to null:\n !point.isCliff;\n }\n // Find control points\n if (doCurve(lastPoint) && doCurve(nextPoint)) {\n var lastX = lastPoint.plotX, lastY = lastPoint.plotY, nextX = nextPoint.plotX, nextY = nextPoint.plotY, correction = 0;\n leftContX =\n (smoothing * plotX + lastX) / denom;\n leftContY =\n (smoothing * plotY + lastY) / denom;\n rightContX =\n (smoothing * plotX + nextX) / denom;\n rightContY =\n (smoothing * plotY + nextY) / denom;\n // Have the two control points make a straight line through main\n // point\n if (rightContX !== leftContX) { // #5016, division by zero\n correction = (((rightContY - leftContY) *\n (rightContX - plotX)) /\n (rightContX - leftContX) + plotY - rightContY);\n }\n leftContY += correction;\n rightContY += correction;\n // to prevent false extremes, check that control points are\n // between neighbouring points' y values\n if (leftContY > lastY && leftContY > plotY) {\n leftContY = Math.max(lastY, plotY);\n // mirror of left control point\n rightContY = 2 * plotY - leftContY;\n }\n else if (leftContY < lastY &&\n leftContY < plotY) {\n leftContY = Math.min(lastY, plotY);\n rightContY = 2 * plotY - leftContY;\n }\n if (rightContY > nextY &&\n rightContY > plotY) {\n rightContY = Math.max(nextY, plotY);\n leftContY = 2 * plotY - rightContY;\n }\n else if (rightContY < nextY &&\n rightContY < plotY) {\n rightContY = Math.min(nextY, plotY);\n leftContY = 2 * plotY - rightContY;\n }\n // record for drawing in next point\n point.rightContX = rightContX;\n point.rightContY = rightContY;\n }\n // Visualize control points for debugging\n /*\n if (leftContX) {\n this.chart.renderer.circle(\n leftContX + this.chart.plotLeft,\n leftContY + this.chart.plotTop,\n 2\n )\n .attr({\n stroke: 'red',\n 'stroke-width': 2,\n fill: 'none',\n zIndex: 9\n })\n .add();\n this.chart.renderer.path(['M', leftContX + this.chart.plotLeft,\n leftContY + this.chart.plotTop,\n 'L', plotX + this.chart.plotLeft, plotY + this.chart.plotTop])\n .attr({\n stroke: 'red',\n 'stroke-width': 2,\n zIndex: 9\n })\n .add();\n }\n if (rightContX) {\n this.chart.renderer.circle(\n rightContX + this.chart.plotLeft,\n rightContY + this.chart.plotTop,\n 2\n )\n .attr({\n stroke: 'green',\n 'stroke-width': 2,\n fill: 'none',\n zIndex: 9\n })\n .add();\n this.chart.renderer.path(['M', rightContX + this.chart.plotLeft,\n rightContY + this.chart.plotTop,\n 'L', plotX + this.chart.plotLeft, plotY + this.chart.plotTop])\n .attr({\n stroke: 'green',\n 'stroke-width': 2,\n zIndex: 9\n })\n .add();\n }\n // */\n ret = [\n 'C',\n pick(lastPoint.rightContX, lastPoint.plotX),\n pick(lastPoint.rightContY, lastPoint.plotY),\n pick(leftContX, plotX),\n pick(leftContY, plotY),\n plotX,\n plotY\n ];\n // reset for updating series later\n lastPoint.rightContX = lastPoint.rightContY = null;\n return ret;\n }\n /* eslint-enable valid-jsdoc */\n });\n /**\n * A `spline` series. If the [type](#series.spline.type) option is\n * not specified, it is inherited from [chart.type](#chart.type).\n *\n * @extends series,plotOptions.spline\n * @excluding dataParser, dataURL, step\n * @product highcharts highstock\n * @apioption series.spline\n */\n /**\n * An array of data points for the series. For the `spline` series type,\n * points can be given in the following ways:\n *\n * 1. An array of numerical values. In this case, the numerical values will be\n * interpreted as `y` options. The `x` values will be automatically\n * calculated, either starting at 0 and incremented by 1, or from\n * `pointStart` and `pointInterval` given in the series options. If the axis\n * has categories, these will be used. Example:\n * ```js\n * data: [0, 5, 3, 5]\n * ```\n *\n * 2. An array of arrays with 2 values. In this case, the values correspond to\n * `x,y`. If the first value is a string, it is applied as the name of the\n * point, and the `x` value is inferred.\n * ```js\n * data: [\n * [0, 9],\n * [1, 2],\n * [2, 8]\n * ]\n * ```\n *\n * 3. An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of\n * data points exceeds the series'\n * [turboThreshold](#series.spline.turboThreshold),\n * this option is not available.\n * ```js\n * data: [{\n * x: 1,\n * y: 9,\n * name: \"Point2\",\n * color: \"#00FF00\"\n * }, {\n * x: 1,\n * y: 0,\n * name: \"Point1\",\n * color: \"#FF00FF\"\n * }]\n * ```\n *\n * @sample {highcharts} highcharts/chart/reflow-true/\n * Numerical values\n * @sample {highcharts} highcharts/series/data-array-of-arrays/\n * Arrays of numeric x and y\n * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/\n * Arrays of datetime x and y\n * @sample {highcharts} highcharts/series/data-array-of-name-value/\n * Arrays of point.name and y\n * @sample {highcharts} highcharts/series/data-array-of-objects/\n * Config objects\n *\n * @type {Array|null|*>}\n * @extends series.line.data\n * @product highcharts highstock\n * @apioption series.spline.data\n */\n ''; // adds doclets above intro transpilat\n\n });\n _registerModule(_modules, 'parts/AreaSplineSeries.js', [_modules['parts/Globals.js']], function (H) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n var areaProto = H.seriesTypes.area.prototype, defaultPlotOptions = H.defaultPlotOptions, LegendSymbolMixin = H.LegendSymbolMixin, seriesType = H.seriesType;\n /**\n * AreaSpline series type.\n *\n * @private\n * @class\n * @name Highcharts.seriesTypes.areaspline\n *\n * @augments Highcharts.Series\n */\n seriesType('areaspline', 'spline', \n /**\n * The area spline series is an area series where the graph between the\n * points is smoothed into a spline.\n *\n * @sample {highcharts} highcharts/demo/areaspline/\n * Area spline chart\n * @sample {highstock} stock/demo/areaspline/\n * Area spline chart\n *\n * @extends plotOptions.area\n * @excluding step\n * @product highcharts highstock\n * @apioption plotOptions.areaspline\n */\n defaultPlotOptions.area, {\n getStackPoints: areaProto.getStackPoints,\n getGraphPath: areaProto.getGraphPath,\n drawGraph: areaProto.drawGraph,\n drawLegendSymbol: LegendSymbolMixin.drawRectangle\n });\n /**\n * A `areaspline` series. If the [type](#series.areaspline.type) option\n * is not specified, it is inherited from [chart.type](#chart.type).\n *\n *\n * @extends series,plotOptions.areaspline\n * @excluding dataParser, dataURL\n * @product highcharts highstock\n * @apioption series.areaspline\n */\n /**\n * An array of data points for the series. For the `areaspline` series\n * type, points can be given in the following ways:\n *\n * 1. An array of numerical values. In this case, the numerical values will be\n * interpreted as `y` options. The `x` values will be automatically\n * calculated, either starting at 0 and incremented by 1, or from\n * `pointStart` and `pointInterval` given in the series options. If the axis\n * has categories, these will be used. Example:\n * ```js\n * data: [0, 5, 3, 5]\n * ```\n *\n * 2. An array of arrays with 2 values. In this case, the values correspond to\n * `x,y`. If the first value is a string, it is applied as the name of the\n * point, and the `x` value is inferred.\n * ```js\n * data: [\n * [0, 10],\n * [1, 9],\n * [2, 3]\n * ]\n * ```\n *\n * 3. An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of\n * data points exceeds the series'\n * [turboThreshold](#series.areaspline.turboThreshold), this option is not\n * available.\n * ```js\n * data: [{\n * x: 1,\n * y: 4,\n * name: \"Point2\",\n * color: \"#00FF00\"\n * }, {\n * x: 1,\n * y: 4,\n * name: \"Point1\",\n * color: \"#FF00FF\"\n * }]\n * ```\n *\n * @sample {highcharts} highcharts/chart/reflow-true/\n * Numerical values\n * @sample {highcharts} highcharts/series/data-array-of-arrays/\n * Arrays of numeric x and y\n * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/\n * Arrays of datetime x and y\n * @sample {highcharts} highcharts/series/data-array-of-name-value/\n * Arrays of point.name and y\n * @sample {highcharts} highcharts/series/data-array-of-objects/\n * Config objects\n *\n * @type {Array|null|*>}\n * @extends series.line.data\n * @product highcharts highstock\n * @apioption series.areaspline.data\n */\n ''; // adds doclets above into transpilat\n\n });\n _registerModule(_modules, 'parts/ColumnSeries.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * Adjusted width and x offset of the columns for grouping.\n *\n * @private\n * @interface Highcharts.ColumnMetricsObject\n */ /**\n * Width of the columns.\n * @name Highcharts.ColumnMetricsObject#width\n * @type {number}\n */ /**\n * Offset of the columns.\n * @name Highcharts.ColumnMetricsObject#offset\n * @type {number}\n */\n /* *\n * @interface Highcharts.PointOptionsObject in parts/Point.ts\n */ /**\n * A name for the dash style to use for the column or bar. Overrides dashStyle\n * on the series. In styled mode, the stroke dash-array can be set with the same\n * classes as listed under {@link Highcharts.PointOptionsObject#color}.\n * @name Highcharts.PointOptionsObject#dashStyle\n * @type {Highcharts.DashStyleValue|undefined}\n */ /**\n\n * A pixel value specifying a fixed width for the column or bar. Overrides\n * pointWidth on the series.\n * @name Highcharts.PointOptionsObject#pointWidth\n * @type {number|undefined}\n */\n var defined = U.defined, extend = U.extend, isNumber = U.isNumber, pick = U.pick;\n var animObject = H.animObject, color = H.color, LegendSymbolMixin = H.LegendSymbolMixin, merge = H.merge, noop = H.noop, Series = H.Series, seriesType = H.seriesType, svg = H.svg;\n /**\n * The column series type.\n *\n * @private\n * @class\n * @name Highcharts.seriesTypes.column\n *\n * @augments Highcharts.Series\n */\n seriesType('column', 'line', \n /**\n * Column series display one column per value along an X axis.\n *\n * @sample {highcharts} highcharts/demo/column-basic/\n * Column chart\n * @sample {highstock} stock/demo/column/\n * Column chart\n *\n * @extends plotOptions.line\n * @excluding connectNulls, dashStyle, gapSize, gapUnit, linecap,\n * lineWidth, marker, connectEnds, step, useOhlcData\n * @product highcharts highstock\n * @optionparent plotOptions.column\n */\n {\n /**\n * The corner radius of the border surrounding each column or bar.\n *\n * @sample {highcharts} highcharts/plotoptions/column-borderradius/\n * Rounded columns\n *\n * @product highcharts highstock gantt\n *\n * @private\n */\n borderRadius: 0,\n /**\n * When using automatic point colors pulled from the global\n * [colors](colors) or series-specific\n * [plotOptions.column.colors](series.colors) collections, this option\n * determines whether the chart should receive one color per series or\n * one color per point.\n *\n * In styled mode, the `colors` or `series.colors` arrays are not\n * supported, and instead this option gives the points individual color\n * class names on the form `highcharts-color-{n}`.\n *\n * @see [series colors](#plotOptions.column.colors)\n *\n * @sample {highcharts} highcharts/plotoptions/column-colorbypoint-false/\n * False by default\n * @sample {highcharts} highcharts/plotoptions/column-colorbypoint-true/\n * True\n *\n * @type {boolean}\n * @default false\n * @since 2.0\n * @product highcharts highstock gantt\n * @apioption plotOptions.column.colorByPoint\n */\n /**\n * A series specific or series type specific color set to apply instead\n * of the global [colors](#colors) when [colorByPoint](\n * #plotOptions.column.colorByPoint) is true.\n *\n * @type {Array}\n * @since 3.0\n * @product highcharts highstock gantt\n * @apioption plotOptions.column.colors\n */\n /**\n * When true, each column edge is rounded to its nearest pixel in order\n * to render sharp on screen. In some cases, when there are a lot of\n * densely packed columns, this leads to visible difference in column\n * widths or distance between columns. In these cases, setting `crisp`\n * to `false` may look better, even though each column is rendered\n * blurry.\n *\n * @sample {highcharts} highcharts/plotoptions/column-crisp-false/\n * Crisp is false\n *\n * @since 5.0.10\n * @product highcharts highstock gantt\n *\n * @private\n */\n crisp: true,\n /**\n * Padding between each value groups, in x axis units.\n *\n * @sample {highcharts} highcharts/plotoptions/column-grouppadding-default/\n * 0.2 by default\n * @sample {highcharts} highcharts/plotoptions/column-grouppadding-none/\n * No group padding - all columns are evenly spaced\n *\n * @product highcharts highstock gantt\n *\n * @private\n */\n groupPadding: 0.2,\n /**\n * Whether to group non-stacked columns or to let them render\n * independent of each other. Non-grouped columns will be laid out\n * individually and overlap each other.\n *\n * @sample {highcharts} highcharts/plotoptions/column-grouping-false/\n * Grouping disabled\n * @sample {highstock} highcharts/plotoptions/column-grouping-false/\n * Grouping disabled\n *\n * @type {boolean}\n * @default true\n * @since 2.3.0\n * @product highcharts highstock gantt\n * @apioption plotOptions.column.grouping\n */\n /**\n * @ignore-option\n * @private\n */\n marker: null,\n /**\n * The maximum allowed pixel width for a column, translated to the\n * height of a bar in a bar chart. This prevents the columns from\n * becoming too wide when there is a small number of points in the\n * chart.\n *\n * @see [pointWidth](#plotOptions.column.pointWidth)\n *\n * @sample {highcharts} highcharts/plotoptions/column-maxpointwidth-20/\n * Limited to 50\n * @sample {highstock} highcharts/plotoptions/column-maxpointwidth-20/\n * Limited to 50\n *\n * @type {number}\n * @since 4.1.8\n * @product highcharts highstock gantt\n * @apioption plotOptions.column.maxPointWidth\n */\n /**\n * Padding between each column or bar, in x axis units.\n *\n * @sample {highcharts} highcharts/plotoptions/column-pointpadding-default/\n * 0.1 by default\n * @sample {highcharts} highcharts/plotoptions/column-pointpadding-025/\n * 0.25\n * @sample {highcharts} highcharts/plotoptions/column-pointpadding-none/\n * 0 for tightly packed columns\n *\n * @product highcharts highstock gantt\n *\n * @private\n */\n pointPadding: 0.1,\n /**\n * A pixel value specifying a fixed width for each column or bar. When\n * `null`, the width is calculated from the `pointPadding` and\n * `groupPadding`.\n *\n * @see [maxPointWidth](#plotOptions.column.maxPointWidth)\n *\n * @sample {highcharts} highcharts/plotoptions/column-pointwidth-20/\n * 20px wide columns regardless of chart width or the amount of\n * data points\n *\n * @type {number}\n * @since 1.2.5\n * @product highcharts highstock gantt\n * @apioption plotOptions.column.pointWidth\n */\n /**\n * A pixel value specifying a fixed width for the column or bar.\n * Overrides pointWidth on the series.\n *\n * @see [series.pointWidth](#plotOptions.column.pointWidth)\n *\n * @type {number}\n * @default undefined\n * @since 7.0.0\n * @product highcharts highstock gantt\n * @apioption series.column.data.pointWidth\n */\n /**\n * The minimal height for a column or width for a bar. By default,\n * 0 values are not shown. To visualize a 0 (or close to zero) point,\n * set the minimal point length to a pixel value like 3\\. In stacked\n * column charts, minPointLength might not be respected for tightly\n * packed values.\n *\n * @sample {highcharts} highcharts/plotoptions/column-minpointlength/\n * Zero base value\n * @sample {highcharts} highcharts/plotoptions/column-minpointlength-pos-and-neg/\n * Positive and negative close to zero values\n *\n * @product highcharts highstock gantt\n *\n * @private\n */\n minPointLength: 0,\n /**\n * When the series contains less points than the crop threshold, all\n * points are drawn, event if the points fall outside the visible plot\n * area at the current zoom. The advantage of drawing all points\n * (including markers and columns), is that animation is performed on\n * updates. On the other hand, when the series contains more points than\n * the crop threshold, the series data is cropped to only contain points\n * that fall within the plot area. The advantage of cropping away\n * invisible points is to increase performance on large series.\n *\n * @product highcharts highstock gantt\n *\n * @private\n */\n cropThreshold: 50,\n /**\n * The X axis range that each point is valid for. This determines the\n * width of the column. On a categorized axis, the range will be 1\n * by default (one category unit). On linear and datetime axes, the\n * range will be computed as the distance between the two closest data\n * points.\n *\n * The default `null` means it is computed automatically, but this\n * option can be used to override the automatic value.\n *\n * @sample {highcharts} highcharts/plotoptions/column-pointrange/\n * Set the point range to one day on a data set with one week\n * between the points\n *\n * @type {number|null}\n * @since 2.3\n * @product highcharts highstock gantt\n *\n * @private\n */\n pointRange: null,\n states: {\n /**\n * Options for the hovered point. These settings override the normal\n * state options when a point is moused over or touched.\n *\n * @extends plotOptions.series.states.hover\n * @excluding halo, lineWidth, lineWidthPlus, marker\n * @product highcharts highstock gantt\n */\n hover: {\n /** @ignore-option */\n halo: false,\n /**\n * A specific border color for the hovered point. Defaults to\n * inherit the normal state border color.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highcharts gantt\n * @apioption plotOptions.column.states.hover.borderColor\n */\n /**\n * A specific color for the hovered point.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highcharts gantt\n * @apioption plotOptions.column.states.hover.color\n */\n /**\n * How much to brighten the point on interaction. Requires the\n * main color to be defined in hex or rgb(a) format.\n *\n * In styled mode, the hover brightening is by default replaced\n * with a fill-opacity set in the `.highcharts-point:hover`\n * rule.\n *\n * @sample {highcharts} highcharts/plotoptions/column-states-hover-brightness/\n * Brighten by 0.5\n *\n * @product highcharts highstock gantt\n */\n brightness: 0.1\n },\n /**\n * Options for the selected point. These settings override the\n * normal state options when a point is selected.\n *\n * @extends plotOptions.series.states.select\n * @excluding halo, lineWidth, lineWidthPlus, marker\n * @product highcharts highstock gantt\n */\n select: {\n /**\n * A specific color for the selected point.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #cccccc\n * @product highcharts highstock gantt\n */\n color: '#cccccc',\n /**\n * A specific border color for the selected point.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #000000\n * @product highcharts highstock gantt\n */\n borderColor: '#000000'\n }\n },\n dataLabels: {\n /**\n * @internal\n */\n align: null,\n /**\n * @internal\n */\n verticalAlign: null,\n /** @internal */\n y: null\n },\n /**\n * When this is true, the series will not cause the Y axis to cross\n * the zero plane (or [threshold](#plotOptions.series.threshold) option)\n * unless the data actually crosses the plane.\n *\n * For example, if `softThreshold` is `false`, a series of 0, 1, 2,\n * 3 will make the Y axis show negative values according to the\n * `minPadding` option. If `softThreshold` is `true`, the Y axis starts\n * at 0.\n *\n * @since 4.1.9\n * @product highcharts highstock\n *\n * @private\n */\n softThreshold: false,\n // false doesn't work well: https://jsfiddle.net/highcharts/hz8fopan/14/\n /**\n * @ignore-option\n * @private\n */\n startFromThreshold: true,\n stickyTracking: false,\n tooltip: {\n distance: 6\n },\n /**\n * The Y axis value to serve as the base for the columns, for\n * distinguishing between values above and below a threshold. If `null`,\n * the columns extend from the padding Y axis minimum.\n *\n * @since 2.0\n * @product highcharts\n *\n * @private\n */\n threshold: 0,\n /**\n * The width of the border surrounding each column or bar. Defaults to\n * `1` when there is room for a border, but to `0` when the columns are\n * so dense that a border would cover the next column.\n *\n * In styled mode, the stroke width can be set with the\n * `.highcharts-point` rule.\n *\n * @sample {highcharts} highcharts/plotoptions/column-borderwidth/\n * 2px black border\n *\n * @type {number}\n * @default undefined\n * @product highcharts highstock gantt\n * @apioption plotOptions.column.borderWidth\n */\n /**\n * The color of the border surrounding each column or bar.\n *\n * In styled mode, the border stroke can be set with the\n * `.highcharts-point` rule.\n *\n * @sample {highcharts} highcharts/plotoptions/column-bordercolor/\n * Dark gray border\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #ffffff\n * @product highcharts highstock gantt\n *\n * @private\n */\n borderColor: '#ffffff'\n }, \n /**\n * @lends seriesTypes.column.prototype\n */\n {\n cropShoulder: 0,\n // When tooltip is not shared, this series (and derivatives) requires\n // direct touch/hover. KD-tree does not apply.\n directTouch: true,\n trackerGroups: ['group', 'dataLabelsGroup'],\n // use separate negative stacks, unlike area stacks where a negative\n // point is substracted from previous (#1910)\n negStacks: true,\n /* eslint-disable valid-jsdoc */\n /**\n * Initialize the series. Extends the basic Series.init method by\n * marking other series of the same type as dirty.\n *\n * @private\n * @function Highcharts.seriesTypes.column#init\n * @return {void}\n */\n init: function () {\n Series.prototype.init.apply(this, arguments);\n var series = this, chart = series.chart;\n // if the series is added dynamically, force redraw of other\n // series affected by a new column\n if (chart.hasRendered) {\n chart.series.forEach(function (otherSeries) {\n if (otherSeries.type === series.type) {\n otherSeries.isDirty = true;\n }\n });\n }\n },\n /**\n * Return the width and x offset of the columns adjusted for grouping,\n * groupPadding, pointPadding, pointWidth etc.\n *\n * @private\n * @function Highcharts.seriesTypes.column#getColumnMetrics\n * @return {Highcharts.ColumnMetricsObject}\n */\n getColumnMetrics: function () {\n var series = this, options = series.options, xAxis = series.xAxis, yAxis = series.yAxis, reversedStacks = xAxis.options.reversedStacks, \n // Keep backward compatibility: reversed xAxis had reversed\n // stacks\n reverseStacks = (xAxis.reversed && !reversedStacks) ||\n (!xAxis.reversed && reversedStacks), stackKey, stackGroups = {}, columnCount = 0;\n // Get the total number of column type series. This is called on\n // every series. Consider moving this logic to a chart.orderStacks()\n // function and call it on init, addSeries and removeSeries\n if (options.grouping === false) {\n columnCount = 1;\n }\n else {\n series.chart.series.forEach(function (otherSeries) {\n var otherYAxis = otherSeries.yAxis, otherOptions = otherSeries.options, columnIndex;\n if (otherSeries.type === series.type &&\n (otherSeries.visible ||\n !series.chart.options.chart\n .ignoreHiddenSeries) &&\n yAxis.len === otherYAxis.len &&\n yAxis.pos === otherYAxis.pos) { // #642, #2086\n if (otherOptions.stacking) {\n stackKey = otherSeries.stackKey;\n if (stackGroups[stackKey] === undefined) {\n stackGroups[stackKey] = columnCount++;\n }\n columnIndex = stackGroups[stackKey];\n }\n else if (otherOptions.grouping !== false) { // #1162\n columnIndex = columnCount++;\n }\n otherSeries.columnIndex = columnIndex;\n }\n });\n }\n var categoryWidth = Math.min(Math.abs(xAxis.transA) * (xAxis.ordinalSlope ||\n options.pointRange ||\n xAxis.closestPointRange ||\n xAxis.tickInterval ||\n 1), // #2610\n xAxis.len // #1535\n ), groupPadding = categoryWidth * options.groupPadding, groupWidth = categoryWidth - 2 * groupPadding, pointOffsetWidth = groupWidth / (columnCount || 1), pointWidth = Math.min(options.maxPointWidth || xAxis.len, pick(options.pointWidth, pointOffsetWidth * (1 - 2 * options.pointPadding))), pointPadding = (pointOffsetWidth - pointWidth) / 2, \n // #1251, #3737\n colIndex = (series.columnIndex || 0) + (reverseStacks ? 1 : 0), pointXOffset = pointPadding +\n (groupPadding +\n colIndex * pointOffsetWidth -\n (categoryWidth / 2)) * (reverseStacks ? -1 : 1);\n // Save it for reading in linked series (Error bars particularly)\n series.columnMetrics = {\n width: pointWidth,\n offset: pointXOffset\n };\n return series.columnMetrics;\n },\n /**\n * Make the columns crisp. The edges are rounded to the nearest full\n * pixel.\n *\n * @private\n * @function Highcharts.seriesTypes.column#crispCol\n * @param {number} x\n * @param {number} y\n * @param {number} w\n * @param {number} h\n * @return {Highcharts.BBoxObject}\n */\n crispCol: function (x, y, w, h) {\n var chart = this.chart, borderWidth = this.borderWidth, xCrisp = -(borderWidth % 2 ? 0.5 : 0), yCrisp = borderWidth % 2 ? 0.5 : 1, right, bottom, fromTop;\n if (chart.inverted && chart.renderer.isVML) {\n yCrisp += 1;\n }\n // Horizontal. We need to first compute the exact right edge, then\n // round it and compute the width from there.\n if (this.options.crisp) {\n right = Math.round(x + w) + xCrisp;\n x = Math.round(x) + xCrisp;\n w = right - x;\n }\n // Vertical\n bottom = Math.round(y + h) + yCrisp;\n fromTop = Math.abs(y) <= 0.5 && bottom > 0.5; // #4504, #4656\n y = Math.round(y) + yCrisp;\n h = bottom - y;\n // Top edges are exceptions\n if (fromTop && h) { // #5146\n y -= 1;\n h += 1;\n }\n return {\n x: x,\n y: y,\n width: w,\n height: h\n };\n },\n /**\n * Translate each point to the plot area coordinate system and find\n * shape positions\n *\n * @private\n * @function Highcharts.seriesTypes.column#translate\n */\n translate: function () {\n var series = this, chart = series.chart, options = series.options, dense = series.dense =\n series.closestPointRange * series.xAxis.transA < 2, borderWidth = series.borderWidth = pick(options.borderWidth, dense ? 0 : 1 // #3635\n ), yAxis = series.yAxis, threshold = options.threshold, translatedThreshold = series.translatedThreshold =\n yAxis.getThreshold(threshold), minPointLength = pick(options.minPointLength, 5), metrics = series.getColumnMetrics(), seriesPointWidth = metrics.width, \n // postprocessed for border width\n seriesBarW = series.barW =\n Math.max(seriesPointWidth, 1 + 2 * borderWidth), seriesXOffset = series.pointXOffset = metrics.offset, dataMin = series.dataMin, dataMax = series.dataMax;\n if (chart.inverted) {\n translatedThreshold -= 0.5; // #3355\n }\n // When the pointPadding is 0, we want the columns to be packed\n // tightly, so we allow individual columns to have individual sizes.\n // When pointPadding is greater, we strive for equal-width columns\n // (#2694).\n if (options.pointPadding) {\n seriesBarW = Math.ceil(seriesBarW);\n }\n Series.prototype.translate.apply(series);\n // Record the new values\n series.points.forEach(function (point) {\n var yBottom = pick(point.yBottom, translatedThreshold), safeDistance = 999 + Math.abs(yBottom), pointWidth = seriesPointWidth, \n // Don't draw too far outside plot area (#1303, #2241,\n // #4264)\n plotY = Math.min(Math.max(-safeDistance, point.plotY), yAxis.len + safeDistance), barX = point.plotX + seriesXOffset, barW = seriesBarW, barY = Math.min(plotY, yBottom), up, barH = Math.max(plotY, yBottom) - barY;\n // Handle options.minPointLength\n if (minPointLength && Math.abs(barH) < minPointLength) {\n barH = minPointLength;\n up = (!yAxis.reversed && !point.negative) ||\n (yAxis.reversed && point.negative);\n // Reverse zeros if there's no positive value in the series\n // in visible range (#7046)\n if (point.y === threshold &&\n series.dataMax <= threshold &&\n // and if there's room for it (#7311)\n yAxis.min < threshold &&\n // if all points are the same value (i.e zero) not draw\n // as negative points (#10646)\n dataMin !== dataMax) {\n up = !up;\n }\n // If stacked...\n barY = (Math.abs(barY - translatedThreshold) > minPointLength ?\n // ...keep position\n yBottom - minPointLength :\n // #1485, #4051\n translatedThreshold -\n (up ? minPointLength : 0));\n }\n // Handle point.options.pointWidth\n // @todo Handle grouping/stacking too. Calculate offset properly\n if (defined(point.options.pointWidth)) {\n pointWidth = barW =\n Math.ceil(point.options.pointWidth);\n barX -= Math.round((pointWidth - seriesPointWidth) / 2);\n }\n // Cache for access in polar\n point.barX = barX;\n point.pointWidth = pointWidth;\n // Fix the tooltip on center of grouped columns (#1216, #424,\n // #3648)\n point.tooltipPos = chart.inverted ?\n [\n yAxis.len + yAxis.pos - chart.plotLeft - plotY,\n series.xAxis.len - barX - barW / 2, barH\n ] :\n [barX + barW / 2, plotY + yAxis.pos -\n chart.plotTop, barH];\n // Register shape type and arguments to be used in drawPoints\n // Allow shapeType defined on pointClass level\n point.shapeType =\n series.pointClass.prototype.shapeType || 'rect';\n point.shapeArgs = series.crispCol.apply(series, point.isNull ?\n // #3169, drilldown from null must have a position to work\n // from #6585, dataLabel should be placed on xAxis, not\n // floating in the middle of the chart\n [barX, translatedThreshold, barW, 0] :\n [barX, barY, barW, barH]);\n });\n },\n getSymbol: noop,\n /**\n * Use a solid rectangle like the area series types\n *\n * @private\n * @function Highcharts.seriesTypes.column#drawLegendSymbol\n *\n * @param {Highcharts.Legend} legend\n * The legend object\n *\n * @param {Highcharts.Series|Highcharts.Point} item\n * The series (this) or point\n */\n drawLegendSymbol: LegendSymbolMixin.drawRectangle,\n /**\n * Columns have no graph\n *\n * @private\n * @function Highcharts.seriesTypes.column#drawGraph\n */\n drawGraph: function () {\n this.group[this.dense ? 'addClass' : 'removeClass']('highcharts-dense-data');\n },\n /**\n * Get presentational attributes\n *\n * @private\n * @function Highcharts.seriesTypes.column#pointAttribs\n *\n * @param {Highcharts.ColumnPoint} point\n *\n * @param {string} state\n *\n * @return {Highcharts.SVGAttributes}\n */\n pointAttribs: function (point, state) {\n var options = this.options, stateOptions, ret, p2o = this.pointAttrToOptions || {}, strokeOption = p2o.stroke || 'borderColor', strokeWidthOption = p2o['stroke-width'] || 'borderWidth', fill = (point && point.color) || this.color, \n // set to fill when borderColor null:\n stroke = ((point && point[strokeOption]) ||\n options[strokeOption] ||\n this.color ||\n fill), strokeWidth = (point && point[strokeWidthOption]) ||\n options[strokeWidthOption] ||\n this[strokeWidthOption] || 0, dashstyle = (point && point.options.dashStyle) || options.dashStyle, opacity = pick(options.opacity, 1), zone, brightness;\n // Handle zone colors\n if (point && this.zones.length) {\n zone = point.getZone();\n // When zones are present, don't use point.color (#4267).\n // Changed order (#6527), added support for colorAxis (#10670)\n fill = (point.options.color ||\n (zone && (zone.color || point.nonZonedColor)) ||\n this.color);\n if (zone) {\n stroke = zone.borderColor || stroke;\n dashstyle = zone.dashStyle || dashstyle;\n strokeWidth = zone.borderWidth || strokeWidth;\n }\n }\n // Select or hover states\n if (state) {\n stateOptions = merge(options.states[state], \n // #6401\n point.options.states &&\n point.options.states[state] ||\n {});\n brightness = stateOptions.brightness;\n fill =\n stateOptions.color || (brightness !== undefined &&\n color(fill)\n .brighten(stateOptions.brightness)\n .get()) || fill;\n stroke = stateOptions[strokeOption] || stroke;\n strokeWidth =\n stateOptions[strokeWidthOption] || strokeWidth;\n dashstyle = stateOptions.dashStyle || dashstyle;\n opacity = pick(stateOptions.opacity, opacity);\n }\n ret = {\n fill: fill,\n stroke: stroke,\n 'stroke-width': strokeWidth,\n opacity: opacity\n };\n if (dashstyle) {\n ret.dashstyle = dashstyle;\n }\n return ret;\n },\n /**\n * Draw the columns. For bars, the series.group is rotated, so the same\n * coordinates apply for columns and bars. This method is inherited by\n * scatter series.\n *\n * @private\n * @function Highcharts.seriesTypes.column#drawPoints\n */\n drawPoints: function () {\n var series = this, chart = this.chart, options = series.options, renderer = chart.renderer, animationLimit = options.animationLimit || 250, shapeArgs;\n // draw the columns\n series.points.forEach(function (point) {\n var plotY = point.plotY, graphic = point.graphic, verb = graphic && chart.pointCount < animationLimit ?\n 'animate' : 'attr';\n if (isNumber(plotY) && point.y !== null) {\n shapeArgs = point.shapeArgs;\n // When updating a series between 2d and 3d or cartesian and\n // polar, the shape type changes.\n if (graphic && point.hasNewShapeType()) {\n graphic = graphic.destroy();\n }\n if (graphic) { // update\n graphic[verb](merge(shapeArgs));\n }\n else {\n point.graphic = graphic =\n renderer[point.shapeType](shapeArgs)\n .add(point.group || series.group);\n }\n // Border radius is not stylable (#6900)\n if (options.borderRadius) {\n graphic[verb]({\n r: options.borderRadius\n });\n }\n // Presentational\n if (!chart.styledMode) {\n graphic[verb](series.pointAttribs(point, (point.selected && 'select')))\n .shadow(point.allowShadow !== false && options.shadow, null, options.stacking && !options.borderRadius);\n }\n graphic.addClass(point.getClassName(), true);\n }\n else if (graphic) {\n point.graphic = graphic.destroy(); // #1269\n }\n });\n },\n /**\n * Animate the column heights one by one from zero.\n *\n * @private\n * @function Highcharts.seriesTypes.column#animate\n *\n * @param {boolean} init\n * Whether to initialize the animation or run it\n */\n animate: function (init) {\n var series = this, yAxis = this.yAxis, options = series.options, inverted = this.chart.inverted, attr = {}, translateProp = inverted ? 'translateX' : 'translateY', translateStart, translatedThreshold;\n if (svg) { // VML is too slow anyway\n if (init) {\n attr.scaleY = 0.001;\n translatedThreshold = Math.min(yAxis.pos + yAxis.len, Math.max(yAxis.pos, yAxis.toPixels(options.threshold)));\n if (inverted) {\n attr.translateX = translatedThreshold - yAxis.len;\n }\n else {\n attr.translateY = translatedThreshold;\n }\n // apply finnal clipping (used in Highstock) (#7083)\n // animation is done by scaleY, so cliping is for panes\n if (series.clipBox) {\n series.setClip();\n }\n series.group.attr(attr);\n }\n else { // run the animation\n translateStart = series.group.attr(translateProp);\n series.group.animate({ scaleY: 1 }, extend(animObject(series.options.animation), {\n // Do the scale synchronously to ensure smooth\n // updating (#5030, #7228)\n step: function (val, fx) {\n attr[translateProp] =\n translateStart +\n fx.pos * (yAxis.pos - translateStart);\n series.group.attr(attr);\n }\n }));\n // delete this function to allow it only once\n series.animate = null;\n }\n }\n },\n /**\n * Remove this series from the chart\n *\n * @private\n * @function Highcharts.seriesTypes.column#remove\n */\n remove: function () {\n var series = this, chart = series.chart;\n // column and bar series affects other series of the same type\n // as they are either stacked or grouped\n if (chart.hasRendered) {\n chart.series.forEach(function (otherSeries) {\n if (otherSeries.type === series.type) {\n otherSeries.isDirty = true;\n }\n });\n }\n Series.prototype.remove.apply(series, arguments);\n }\n });\n /* eslint-enable valid-jsdoc */\n /**\n * A `column` series. If the [type](#series.column.type) option is\n * not specified, it is inherited from [chart.type](#chart.type).\n *\n * @extends series,plotOptions.column\n * @excluding connectNulls, dataParser, dataURL, gapSize, gapUnit, linecap,\n * lineWidth, marker, connectEnds, step\n * @product highcharts highstock\n * @apioption series.column\n */\n /**\n * An array of data points for the series. For the `column` series type,\n * points can be given in the following ways:\n *\n * 1. An array of numerical values. In this case, the numerical values will be\n * interpreted as `y` options. The `x` values will be automatically\n * calculated, either starting at 0 and incremented by 1, or from\n * `pointStart` and `pointInterval` given in the series options. If the axis\n * has categories, these will be used. Example:\n * ```js\n * data: [0, 5, 3, 5]\n * ```\n *\n * 2. An array of arrays with 2 values. In this case, the values correspond to\n * `x,y`. If the first value is a string, it is applied as the name of the\n * point, and the `x` value is inferred.\n * ```js\n * data: [\n * [0, 6],\n * [1, 2],\n * [2, 6]\n * ]\n * ```\n *\n * 3. An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of\n * data points exceeds the series'\n * [turboThreshold](#series.column.turboThreshold), this option is not\n * available.\n * ```js\n * data: [{\n * x: 1,\n * y: 9,\n * name: \"Point2\",\n * color: \"#00FF00\"\n * }, {\n * x: 1,\n * y: 6,\n * name: \"Point1\",\n * color: \"#FF00FF\"\n * }]\n * ```\n *\n * @sample {highcharts} highcharts/chart/reflow-true/\n * Numerical values\n * @sample {highcharts} highcharts/series/data-array-of-arrays/\n * Arrays of numeric x and y\n * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/\n * Arrays of datetime x and y\n * @sample {highcharts} highcharts/series/data-array-of-name-value/\n * Arrays of point.name and y\n * @sample {highcharts} highcharts/series/data-array-of-objects/\n * Config objects\n *\n * @type {Array|null|*>}\n * @extends series.line.data\n * @excluding marker\n * @product highcharts highstock\n * @apioption series.column.data\n */\n /**\n * The color of the border surrounding the column or bar.\n *\n * In styled mode, the border stroke can be set with the `.highcharts-point`\n * rule.\n *\n * @sample {highcharts} highcharts/plotoptions/column-bordercolor/\n * Dark gray border\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highcharts highstock\n * @apioption series.column.data.borderColor\n */\n /**\n * The width of the border surrounding the column or bar.\n *\n * In styled mode, the stroke width can be set with the `.highcharts-point`\n * rule.\n *\n * @sample {highcharts} highcharts/plotoptions/column-borderwidth/\n * 2px black border\n *\n * @type {number}\n * @product highcharts highstock\n * @apioption series.column.data.borderWidth\n */\n /**\n * A name for the dash style to use for the column or bar. Overrides\n * dashStyle on the series.\n *\n * In styled mode, the stroke dash-array can be set with the same classes as\n * listed under [data.color](#series.column.data.color).\n *\n * @see [series.pointWidth](#plotOptions.column.dashStyle)\n *\n * @type {Highcharts.DashStyleValue}\n * @apioption series.column.data.dashStyle\n */\n /**\n * A pixel value specifying a fixed width for the column or bar. Overrides\n * pointWidth on the series.\n *\n * @see [series.pointWidth](#plotOptions.column.pointWidth)\n *\n * @type {number}\n * @apioption series.column.data.pointWidth\n */\n /**\n * @excluding halo, lineWidth, lineWidthPlus, marker\n * @product highcharts highstock\n * @apioption series.column.states.hover\n */\n /**\n * @excluding halo, lineWidth, lineWidthPlus, marker\n * @product highcharts highstock\n * @apioption series.column.states.select\n */\n ''; // includes above doclets in transpilat\n\n });\n _registerModule(_modules, 'parts/BarSeries.js', [_modules['parts/Globals.js']], function (H) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n var seriesType = H.seriesType;\n /**\n * Bar series type.\n *\n * @private\n * @class\n * @name Highcharts.seriesTypes.bar\n *\n * @augments Highcharts.Series\n */\n seriesType('bar', 'column', \n /**\n * A bar series is a special type of column series where the columns are\n * horizontal.\n *\n * @sample highcharts/demo/bar-basic/\n * Bar chart\n *\n * @extends plotOptions.column\n * @product highcharts\n * @apioption plotOptions.bar\n */\n /**\n * @ignore\n */\n null, {\n inverted: true\n });\n /**\n * A `bar` series. If the [type](#series.bar.type) option is not specified,\n * it is inherited from [chart.type](#chart.type).\n *\n * @extends series,plotOptions.bar\n * @excluding connectNulls, dashStyle, dataParser, dataURL, gapSize, gapUnit,\n * linecap, lineWidth, marker, connectEnds, step\n * @product highcharts\n * @apioption series.bar\n */\n /**\n * An array of data points for the series. For the `bar` series type,\n * points can be given in the following ways:\n *\n * 1. An array of numerical values. In this case, the numerical values will be\n * interpreted as `y` options. The `x` values will be automatically\n * calculated, either starting at 0 and incremented by 1, or from\n * `pointStart` and `pointInterval` given in the series options. If the axis\n * has categories, these will be used. Example:\n * ```js\n * data: [0, 5, 3, 5]\n * ```\n *\n * 2. An array of arrays with 2 values. In this case, the values correspond to\n * `x,y`. If the first value is a string, it is applied as the name of the\n * point, and the `x` value is inferred.\n * ```js\n * data: [\n * [0, 5],\n * [1, 10],\n * [2, 3]\n * ]\n * ```\n *\n * 3. An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of\n * data points exceeds the series'\n * [turboThreshold](#series.bar.turboThreshold), this option is not\n * available.\n * ```js\n * data: [{\n * x: 1,\n * y: 1,\n * name: \"Point2\",\n * color: \"#00FF00\"\n * }, {\n * x: 1,\n * y: 10,\n * name: \"Point1\",\n * color: \"#FF00FF\"\n * }]\n * ```\n *\n * @sample {highcharts} highcharts/chart/reflow-true/\n * Numerical values\n * @sample {highcharts} highcharts/series/data-array-of-arrays/\n * Arrays of numeric x and y\n * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/\n * Arrays of datetime x and y\n * @sample {highcharts} highcharts/series/data-array-of-name-value/\n * Arrays of point.name and y\n * @sample {highcharts} highcharts/series/data-array-of-objects/\n * Config objects\n *\n * @type {Array|null|*>}\n * @extends series.column.data\n * @product highcharts\n * @apioption series.bar.data\n */\n /**\n * @excluding halo,lineWidth,lineWidthPlus,marker\n * @product highcharts highstock\n * @apioption series.bar.states.hover\n */\n /**\n * @excluding halo,lineWidth,lineWidthPlus,marker\n * @product highcharts highstock\n * @apioption series.bar.states.select\n */\n ''; // gets doclets above into transpilat\n\n });\n _registerModule(_modules, 'parts/ScatterSeries.js', [_modules['parts/Globals.js']], function (H) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n var Series = H.Series, seriesType = H.seriesType;\n /**\n * Scatter series type.\n *\n * @private\n * @class\n * @name Highcharts.seriesTypes.scatter\n *\n * @augments Highcharts.Series\n */\n seriesType('scatter', 'line', \n /**\n * A scatter plot uses cartesian coordinates to display values for two\n * variables for a set of data.\n *\n * @sample {highcharts} highcharts/demo/scatter/\n * Scatter plot\n *\n * @extends plotOptions.line\n * @excluding pointPlacement, shadow, useOhlcData\n * @product highcharts highstock\n * @optionparent plotOptions.scatter\n */\n {\n /**\n * The width of the line connecting the data points.\n *\n * @sample {highcharts} highcharts/plotoptions/scatter-linewidth-none/\n * 0 by default\n * @sample {highcharts} highcharts/plotoptions/scatter-linewidth-1/\n * 1px\n *\n * @product highcharts highstock\n */\n lineWidth: 0,\n findNearestPointBy: 'xy',\n /**\n * Apply a jitter effect for the rendered markers. When plotting\n * discrete values, a little random noise may help telling the points\n * apart. The jitter setting applies a random displacement of up to `n`\n * axis units in either direction. So for example on a horizontal X\n * axis, setting the `jitter.x` to 0.24 will render the point in a\n * random position between 0.24 units to the left and 0.24 units to the\n * right of the true axis position. On a category axis, setting it to\n * 0.5 will fill up the bin and make the data appear continuous.\n *\n * When rendered on top of a box plot or a column series, a jitter value\n * of 0.24 will correspond to the underlying series' default\n * [groupPadding](\n * https://api.highcharts.com/highcharts/plotOptions.column.groupPadding)\n * and [pointPadding](\n * https://api.highcharts.com/highcharts/plotOptions.column.pointPadding)\n * settings.\n *\n * @sample {highcharts} highcharts/series-scatter/jitter\n * Jitter on a scatter plot\n *\n * @sample {highcharts} highcharts/series-scatter/jitter-boxplot\n * Jittered scatter plot on top of a box plot\n *\n * @product highcharts highstock\n * @since 7.0.2\n */\n jitter: {\n /**\n * The maximal X offset for the random jitter effect.\n */\n x: 0,\n /**\n * The maximal Y offset for the random jitter effect.\n */\n y: 0\n },\n marker: {\n enabled: true // Overrides auto-enabling in line series (#3647)\n },\n /**\n * Sticky tracking of mouse events. When true, the `mouseOut` event\n * on a series isn't triggered until the mouse moves over another\n * series, or out of the plot area. When false, the `mouseOut` event on\n * a series is triggered when the mouse leaves the area around the\n * series' graph or markers. This also implies the tooltip. When\n * `stickyTracking` is false and `tooltip.shared` is false, the tooltip\n * will be hidden when moving the mouse between series.\n *\n * @type {boolean}\n * @default false\n * @product highcharts highstock\n * @apioption plotOptions.scatter.stickyTracking\n */\n /**\n * A configuration object for the tooltip rendering of each single\n * series. Properties are inherited from [tooltip](#tooltip).\n * Overridable properties are `headerFormat`, `pointFormat`,\n * `yDecimals`, `xDateFormat`, `yPrefix` and `ySuffix`. Unlike other\n * series, in a scatter plot the series.name by default shows in the\n * headerFormat and point.x and point.y in the pointFormat.\n *\n * @product highcharts highstock\n */\n tooltip: {\n headerFormat: '\\u25CF ' +\n ' {series.name}
',\n pointFormat: 'x: {point.x}
y: {point.y}
'\n }\n // Prototype members\n }, {\n sorted: false,\n requireSorting: false,\n noSharedTooltip: true,\n trackerGroups: ['group', 'markerGroup', 'dataLabelsGroup'],\n takeOrdinalPosition: false,\n /* eslint-disable valid-jsdoc */\n /**\n * @private\n * @function Highcharts.seriesTypes.scatter#drawGraph\n */\n drawGraph: function () {\n if (this.options.lineWidth) {\n Series.prototype.drawGraph.call(this);\n }\n },\n // Optionally add the jitter effect\n applyJitter: function () {\n var series = this, jitter = this.options.jitter, len = this.points.length;\n /**\n * Return a repeatable, pseudo-random number based on an integer\n * seed.\n * @private\n */\n function unrandom(seed) {\n var rand = Math.sin(seed) * 10000;\n return rand - Math.floor(rand);\n }\n if (jitter) {\n this.points.forEach(function (point, i) {\n ['x', 'y'].forEach(function (dim, j) {\n var axis, plotProp = 'plot' + dim.toUpperCase(), min, max, translatedJitter;\n if (jitter[dim] && !point.isNull) {\n axis = series[dim + 'Axis'];\n translatedJitter =\n jitter[dim] * axis.transA;\n if (axis && !axis.isLog) {\n // Identify the outer bounds of the jitter range\n min = Math.max(0, point[plotProp] - translatedJitter);\n max = Math.min(axis.len, point[plotProp] + translatedJitter);\n // Find a random position within this range\n point[plotProp] = min +\n (max - min) * unrandom(i + j * len);\n // Update clientX for the tooltip k-d-tree\n if (dim === 'x') {\n point.clientX = point.plotX;\n }\n }\n }\n });\n });\n }\n }\n /* eslint-enable valid-jsdoc */\n });\n /* eslint-disable no-invalid-this */\n H.addEvent(Series, 'afterTranslate', function () {\n if (this.applyJitter) {\n this.applyJitter();\n }\n });\n /* eslint-enable no-invalid-this */\n /**\n * A `scatter` series. If the [type](#series.scatter.type) option is\n * not specified, it is inherited from [chart.type](#chart.type).\n *\n * @extends series,plotOptions.scatter\n * @excluding dataParser, dataURL, useOhlcData\n * @product highcharts highstock\n * @apioption series.scatter\n */\n /**\n * An array of data points for the series. For the `scatter` series\n * type, points can be given in the following ways:\n *\n * 1. An array of numerical values. In this case, the numerical values will be\n * interpreted as `y` options. The `x` values will be automatically\n * calculated, either starting at 0 and incremented by 1, or from\n * `pointStart` and `pointInterval` given in the series options. If the axis\n * has categories, these will be used. Example:\n * ```js\n * data: [0, 5, 3, 5]\n * ```\n *\n * 2. An array of arrays with 2 values. In this case, the values correspond to\n * `x,y`. If the first value is a string, it is applied as the name of the\n * point, and the `x` value is inferred.\n * ```js\n * data: [\n * [0, 0],\n * [1, 8],\n * [2, 9]\n * ]\n * ```\n *\n * 3. An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of\n * data points exceeds the series'\n * [turboThreshold](#series.scatter.turboThreshold), this option is not\n * available.\n * ```js\n * data: [{\n * x: 1,\n * y: 2,\n * name: \"Point2\",\n * color: \"#00FF00\"\n * }, {\n * x: 1,\n * y: 4,\n * name: \"Point1\",\n * color: \"#FF00FF\"\n * }]\n * ```\n *\n * @sample {highcharts} highcharts/chart/reflow-true/\n * Numerical values\n * @sample {highcharts} highcharts/series/data-array-of-arrays/\n * Arrays of numeric x and y\n * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/\n * Arrays of datetime x and y\n * @sample {highcharts} highcharts/series/data-array-of-name-value/\n * Arrays of point.name and y\n * @sample {highcharts} highcharts/series/data-array-of-objects/\n * Config objects\n *\n * @type {Array|null|*>}\n * @extends series.line.data\n * @product highcharts highstock\n * @apioption series.scatter.data\n */\n ''; // adds doclets above to transpilat\n\n });\n _registerModule(_modules, 'mixins/centered-series.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * @private\n * @interface Highcharts.RadianAngles\n */ /**\n * @name Highcharts.RadianAngles#end\n * @type {number}\n */ /**\n * @name Highcharts.RadianAngles#start\n * @type {number}\n */\n var isNumber = U.isNumber, pick = U.pick;\n var deg2rad = H.deg2rad, relativeLength = H.relativeLength;\n /* eslint-disable valid-jsdoc */\n /**\n * @private\n * @mixin Highcharts.CenteredSeriesMixin\n */\n H.CenteredSeriesMixin = {\n /**\n * Get the center of the pie based on the size and center options relative\n * to the plot area. Borrowed by the polar and gauge series types.\n *\n * @private\n * @function Highcharts.CenteredSeriesMixin.getCenter\n *\n * @return {Array}\n */\n getCenter: function () {\n var options = this.options, chart = this.chart, slicingRoom = 2 * (options.slicedOffset || 0), handleSlicingRoom, plotWidth = chart.plotWidth - 2 * slicingRoom, plotHeight = chart.plotHeight - 2 * slicingRoom, centerOption = options.center, positions = [\n pick(centerOption[0], '50%'),\n pick(centerOption[1], '50%'),\n options.size || '100%',\n options.innerSize || 0\n ], smallestSize = Math.min(plotWidth, plotHeight), i, value;\n for (i = 0; i < 4; ++i) {\n value = positions[i];\n handleSlicingRoom = i < 2 || (i === 2 && /%$/.test(value));\n // i == 0: centerX, relative to width\n // i == 1: centerY, relative to height\n // i == 2: size, relative to smallestSize\n // i == 3: innerSize, relative to size\n positions[i] = relativeLength(value, [plotWidth, plotHeight, smallestSize, positions[2]][i]) + (handleSlicingRoom ? slicingRoom : 0);\n }\n // innerSize cannot be larger than size (#3632)\n if (positions[3] > positions[2]) {\n positions[3] = positions[2];\n }\n return positions;\n },\n /**\n * getStartAndEndRadians - Calculates start and end angles in radians.\n * Used in series types such as pie and sunburst.\n *\n * @private\n * @function Highcharts.CenteredSeriesMixin.getStartAndEndRadians\n *\n * @param {number} [start]\n * Start angle in degrees.\n *\n * @param {number} [end]\n * Start angle in degrees.\n *\n * @return {Highcharts.RadianAngles}\n * Returns an object containing start and end angles as radians.\n */\n getStartAndEndRadians: function (start, end) {\n var startAngle = isNumber(start) ? start : 0, // must be a number\n endAngle = ((isNumber(end) && // must be a number\n end > startAngle && // must be larger than the start angle\n // difference must be less than 360 degrees\n (end - startAngle) < 360) ?\n end :\n startAngle + 360), correction = -90;\n return {\n start: deg2rad * (startAngle + correction),\n end: deg2rad * (endAngle + correction)\n };\n }\n };\n\n });\n _registerModule(_modules, 'parts/PieSeries.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /* *\n * @interface Highcharts.PointOptionsObject in parts/Point.ts\n */ /**\n * Pie series only. Whether to display a slice offset from the center.\n * @name Highcharts.PointOptionsObject#sliced\n * @type {boolean|undefined}\n */\n /**\n * Options for the series data labels, appearing next to each data point.\n *\n * Since v6.2.0, multiple data labels can be applied to each single point by\n * defining them as an array of configs.\n *\n * In styled mode, the data labels can be styled with the\n * `.highcharts-data-label-box` and `.highcharts-data-label` class names.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-enabled|Highcharts-Demo:}\n * Data labels enabled\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-multiple|Highcharts-Demo:}\n * Multiple data labels on a bar series\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/series-datalabels|Highcharts-Demo:}\n * Style mode example\n *\n * @interface Highcharts.SeriesPieDataLabelsOptionsObject\n * @extends Highcharts.DataLabelsOptionsObject\n */ /**\n * Alignment method for data labels. Possible values are:\n *\n * - `toPlotEdges`: each label touches the nearest vertical edge of the plot\n * area\n *\n * - `connectors`: connectors have the same x position and the widest label of\n * each half (left & right) touches the nearest vertical edge of the plot\n * area.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-alignto-connectors/|Highcharts-Demo:}\n * alignTo: connectors\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-alignto-plotedges/|Highcharts-Demo:}\n * alignTo: plotEdges\n *\n * @name Highcharts.SeriesPieDataLabelsOptionsObject#alignTo\n * @type {string|undefined}\n * @since 7.0.0\n * @product highcharts\n */ /**\n * The color of the line connecting the data label to the pie slice. The default\n * color is the same as the point's color.\n *\n * In styled mode, the connector stroke is given in the\n * `.highcharts-data-label-connector` class.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-connectorcolor/|Highcharts-Demo:}\n * Blue connectors\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/pie-point/|Highcharts-Demo:}\n * Styled connectors\n *\n * @name Highcharts.SeriesPieDataLabelsOptionsObject#connectorColor\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject|undefined}\n * @since 2.1\n * @product highcharts\n */ /**\n * The distance from the data label to the connector. Note that data labels also\n * have a default `padding`, so in order for the connector to touch the text,\n * the `padding` must also be 0.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-connectorpadding/|Highcharts-Demo:}\n * No padding\n *\n * @name Highcharts.SeriesPieDataLabelsOptionsObject#connectorPadding\n * @type {number|undefined}\n * @default 5\n * @since 2.1\n * @product highcharts\n */ /**\n * Specifies the method that is used to generate the connector path. Highcharts\n * provides 3 built-in connector shapes: `'fixedOffset'` (default), `'straight'`\n * and `'crookedLine'`. Using `'crookedLine'` has the most sense (in most of the\n * cases) when `'alignTo'` is set.\n *\n * Users can provide their own method by passing a function instead of a String.\n * 3 arguments are passed to the callback:\n *\n * - Object that holds the information about the coordinates of the label (`x` &\n * `y` properties) and how the label is located in relation to the pie\n * (`alignment` property). `alignment` can by one of the following:\n * `'left'` (pie on the left side of the data label),\n * `'right'` (pie on the right side of the data label) or\n * `'center'` (data label overlaps the pie).\n *\n * - Object that holds the information about the position of the connector. Its\n * `touchingSliceAt` porperty tells the position of the place where the\n * connector touches the slice.\n *\n * - Data label options\n *\n * The function has to return an SVG path definition in array form\n * (see the example).\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-connectorshape-string/|Highcharts-Demo:}\n * connectorShape is a String\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-connectorshape-function/|Highcharts-Demo:}\n * connectorShape is a function\n *\n * @name Highcharts.SeriesPieDataLabelsOptionsObject#connectorShape\n * @type {string|Function|undefined}\n * @default fixedOffset\n * @since 7.0.0\n * @product highcharts\n */ /**\n * The width of the line connecting the data label to the pie\n * slice.\n *\n *\n * In styled mode, the connector stroke width is given in the\n * `.highcharts-data-label-connector` class.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-connectorwidth-disabled/|Highcharts-Demo:}\n * Disable the connector\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/pie-point/|Highcharts-Demo:}\n * Styled connectors\n *\n * @name Highcharts.SeriesPieDataLabelsOptionsObject#connectorWidth\n * @type {number|undefined}\n * @default 1\n * @since 2.1\n * @product highcharts\n */ /**\n * Works only if `connectorShape` is `'crookedLine'`. It defines how\n * far from the vertical plot edge the coonnector path should be\n * crooked.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-crookdistance/|Highcharts-Demo:}\n * crookDistance set to 90%\n *\n * @name Highcharts.SeriesPieDataLabelsOptionsObject#crookDistance\n * @type {string|undefined}\n * @default 70%\n * @since 7.0.0\n * @product highcharts\n */ /**\n * The distance of the data label from the pie's edge. Negative numbers put the\n * data label on top of the pie slices. Can also be defined as a percentage of\n * pie's radius. Connectors are only shown for data labels outside the pie.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-distance/|Highcharts-Demo:}\n * Data labels on top of the pie\n *\n * @name Highcharts.SeriesPieDataLabelsOptionsObject#distance\n * @type {number|undefined}\n * @default 30\n * @since 2.1\n * @product highcharts\n */ /**\n * Whether to render the connector as a soft arc or a line with sharp break.\n * Works only if `connectorShape` equals to `fixedOffset`.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-softconnector-true/|Highcharts-Demo:}\n * Soft\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-datalabels-softconnector-false/|Highcharts-Demo:}\n * Non soft\n *\n * @name Highcharts.SeriesPieDataLabelsOptionsObject#softConnector\n * @type {boolean|undefined}\n * @default true\n * @since 2.1.7\n * @product highcharts\n */\n var defined = U.defined, isNumber = U.isNumber, pick = U.pick, setAnimation = U.setAnimation;\n var addEvent = H.addEvent, CenteredSeriesMixin = H.CenteredSeriesMixin, getStartAndEndRadians = CenteredSeriesMixin.getStartAndEndRadians, LegendSymbolMixin = H.LegendSymbolMixin, merge = H.merge, noop = H.noop, Point = H.Point, Series = H.Series, seriesType = H.seriesType, seriesTypes = H.seriesTypes, fireEvent = H.fireEvent;\n /**\n * Pie series type.\n *\n * @private\n * @class\n * @name Highcharts.seriesTypes.pie\n *\n * @augments Highcharts.Series\n */\n seriesType('pie', 'line', \n /**\n * A pie chart is a circular graphic which is divided into slices to\n * illustrate numerical proportion.\n *\n * @sample highcharts/demo/pie-basic/\n * Pie chart\n *\n * @extends plotOptions.line\n * @excluding animationLimit, boostThreshold, connectEnds, connectNulls,\n * cropThreshold, dashStyle, dragDrop, findNearestPointBy,\n * getExtremesFromAll, label, lineWidth, marker,\n * negativeColor, pointInterval, pointIntervalUnit,\n * pointPlacement, pointStart, softThreshold, stacking, step,\n * threshold, turboThreshold, zoneAxis, zones\n * @product highcharts\n * @optionparent plotOptions.pie\n */\n {\n /**\n * @excluding legendItemClick\n * @apioption plotOptions.pie.events\n */\n /**\n * Fires when the checkbox next to the point name in the legend is\n * clicked. One parameter, event, is passed to the function. The state\n * of the checkbox is found by event.checked. The checked item is found\n * by event.item. Return false to prevent the default action which is to\n * toggle the select state of the series.\n *\n * @sample {highcharts} highcharts/plotoptions/series-events-checkboxclick/\n * Alert checkbox status\n *\n * @type {Function}\n * @since 1.2.0\n * @product highcharts\n * @context Highcharts.Point\n * @apioption plotOptions.pie.events.checkboxClick\n */\n /**\n * Fires when the legend item belonging to the pie point (slice) is\n * clicked. The `this` keyword refers to the point itself. One\n * parameter, `event`, is passed to the function, containing common\n * event information. The default action is to toggle the visibility of\n * the point. This can be prevented by calling `event.preventDefault()`.\n *\n * @sample {highcharts} highcharts/plotoptions/pie-point-events-legenditemclick/\n * Confirm toggle visibility\n *\n * @type {Highcharts.PointLegendItemClickCallbackFunction}\n * @since 1.2.0\n * @product highcharts\n * @apioption plotOptions.pie.point.events.legendItemClick\n */\n /**\n * The center of the pie chart relative to the plot area. Can be\n * percentages or pixel values. The default behaviour (as of 3.0) is to\n * center the pie so that all slices and data labels are within the plot\n * area. As a consequence, the pie may actually jump around in a chart\n * with dynamic values, as the data labels move. In that case, the\n * center should be explicitly set, for example to `[\"50%\", \"50%\"]`.\n *\n * @sample {highcharts} highcharts/plotoptions/pie-center/\n * Centered at 100, 100\n *\n * @type {Array<(number|string|null),(number|string|null)>}\n * @default [null, null]\n * @product highcharts\n *\n * @private\n */\n center: [null, null],\n /**\n * The color of the pie series. A pie series is represented as an empty\n * circle if the total sum of its values is 0. Use this property to\n * define the color of its border.\n *\n * In styled mode, the color can be defined by the\n * [colorIndex](#plotOptions.series.colorIndex) option. Also, the series\n * color can be set with the `.highcharts-series`,\n * `.highcharts-color-{n}`, `.highcharts-{type}-series` or\n * `.highcharts-series-{n}` class, or individual classes given by the\n * `className` option.\n *\n * @sample {highcharts} highcharts/plotoptions/pie-emptyseries/\n * Empty pie series\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #cccccc\n * @apioption plotOptions.pie.color\n */\n /**\n * @product highcharts\n *\n * @private\n */\n clip: false,\n /**\n * @ignore-option\n *\n * @private\n */\n colorByPoint: true,\n /**\n * A series specific or series type specific color set to use instead\n * of the global [colors](#colors).\n *\n * @sample {highcharts} highcharts/demo/pie-monochrome/\n * Set default colors for all pies\n *\n * @type {Array}\n * @since 3.0\n * @product highcharts\n * @apioption plotOptions.pie.colors\n */\n /**\n * @type {Highcharts.SeriesPieDataLabelsOptionsObject}\n * @default {\"allowOverlap\": true, \"connectorPadding\": 5, \"distance\": 30, \"enabled\": true, \"formatter\": function () { return this.point.name; }, \"softConnector\": true, \"x\": 0, \"connectorShape\": \"fixedOffset\", \"crookDistance\": \"70%\"}\n *\n * @private\n */\n dataLabels: {\n /** @ignore-option */\n allowOverlap: true,\n /** @ignore-option */\n connectorPadding: 5,\n /** @ignore-option */\n distance: 30,\n /** @ignore-option */\n enabled: true,\n /* eslint-disable valid-jsdoc */\n /** @ignore-option */\n formatter: function () {\n return this.point.isNull ? undefined : this.point.name;\n /* eslint-enable valid-jsdoc */\n },\n /** @ignore-option */\n softConnector: true,\n /** @ignore-option */\n x: 0,\n /** @ignore-option */\n connectorShape: 'fixedOffset',\n /** @ignore-option */\n crookDistance: '70%'\n },\n /**\n * If the total sum of the pie's values is 0, the series is represented\n * as an empty circle . The `fillColor` option defines the color of that\n * circle. Use [pie.borderWidth](#plotOptions.pie.borderWidth) to set\n * the border thickness.\n *\n * @sample {highcharts} highcharts/plotoptions/pie-emptyseries/\n * Empty pie series\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @private\n */\n fillColor: undefined,\n /**\n * The end angle of the pie in degrees where 0 is top and 90 is right.\n * Defaults to `startAngle` plus 360.\n *\n * @sample {highcharts} highcharts/demo/pie-semi-circle/\n * Semi-circle donut\n *\n * @type {number}\n * @since 1.3.6\n * @product highcharts\n * @apioption plotOptions.pie.endAngle\n */\n /**\n * Equivalent to [chart.ignoreHiddenSeries](#chart.ignoreHiddenSeries),\n * this option tells whether the series shall be redrawn as if the\n * hidden point were `null`.\n *\n * The default value changed from `false` to `true` with Highcharts\n * 3.0.\n *\n * @sample {highcharts} highcharts/plotoptions/pie-ignorehiddenpoint/\n * True, the hiddden point is ignored\n *\n * @since 2.3.0\n * @product highcharts\n *\n * @private\n */\n ignoreHiddenPoint: true,\n /**\n * @ignore-option\n *\n * @private\n */\n inactiveOtherPoints: true,\n /**\n * The size of the inner diameter for the pie. A size greater than 0\n * renders a donut chart. Can be a percentage or pixel value.\n * Percentages are relative to the pie size. Pixel values are given as\n * integers.\n *\n *\n * Note: in Highcharts < 4.1.2, the percentage was relative to the plot\n * area, not the pie size.\n *\n * @sample {highcharts} highcharts/plotoptions/pie-innersize-80px/\n * 80px inner size\n * @sample {highcharts} highcharts/plotoptions/pie-innersize-50percent/\n * 50% of the plot area\n * @sample {highcharts} highcharts/demo/3d-pie-donut/\n * 3D donut\n *\n * @type {number|string}\n * @default 0\n * @since 2.0\n * @product highcharts\n * @apioption plotOptions.pie.innerSize\n */\n /**\n * @ignore-option\n *\n * @private\n */\n legendType: 'point',\n /**\n * @ignore-option\n *\n * @private\n */\n marker: null,\n /**\n * The minimum size for a pie in response to auto margins. The pie will\n * try to shrink to make room for data labels in side the plot area,\n * but only to this size.\n *\n * @type {number|string}\n * @default 80\n * @since 3.0\n * @product highcharts\n * @apioption plotOptions.pie.minSize\n */\n /**\n * The diameter of the pie relative to the plot area. Can be a\n * percentage or pixel value. Pixel values are given as integers. The\n * default behaviour (as of 3.0) is to scale to the plot area and give\n * room for data labels within the plot area.\n * [slicedOffset](#plotOptions.pie.slicedOffset) is also included in the\n * default size calculation. As a consequence, the size of the pie may\n * vary when points are updated and data labels more around. In that\n * case it is best to set a fixed value, for example `\"75%\"`.\n *\n * @sample {highcharts} highcharts/plotoptions/pie-size/\n * Smaller pie\n *\n * @type {number|string|null}\n * @product highcharts\n *\n * @private\n */\n size: null,\n /**\n * Whether to display this particular series or series type in the\n * legend. Since 2.1, pies are not shown in the legend by default.\n *\n * @sample {highcharts} highcharts/plotoptions/series-showinlegend/\n * One series in the legend, one hidden\n *\n * @product highcharts\n *\n * @private\n */\n showInLegend: false,\n /**\n * If a point is sliced, moved out from the center, how many pixels\n * should it be moved?.\n *\n * @sample {highcharts} highcharts/plotoptions/pie-slicedoffset-20/\n * 20px offset\n *\n * @product highcharts\n *\n * @private\n */\n slicedOffset: 10,\n /**\n * The start angle of the pie slices in degrees where 0 is top and 90\n * right.\n *\n * @sample {highcharts} highcharts/plotoptions/pie-startangle-90/\n * Start from right\n *\n * @type {number}\n * @default 0\n * @since 2.3.4\n * @product highcharts\n * @apioption plotOptions.pie.startAngle\n */\n /**\n * Sticky tracking of mouse events. When true, the `mouseOut` event\n * on a series isn't triggered until the mouse moves over another\n * series, or out of the plot area. When false, the `mouseOut` event on\n * a series is triggered when the mouse leaves the area around the\n * series' graph or markers. This also implies the tooltip. When\n * `stickyTracking` is false and `tooltip.shared` is false, the tooltip\n * will be hidden when moving the mouse between series.\n *\n * @product highcharts\n *\n * @private\n */\n stickyTracking: false,\n tooltip: {\n followPointer: true\n },\n /**\n * The color of the border surrounding each slice. When `null`, the\n * border takes the same color as the slice fill. This can be used\n * together with a `borderWidth` to fill drawing gaps created by\n * antialiazing artefacts in borderless pies.\n *\n * In styled mode, the border stroke is given in the `.highcharts-point`\n * class.\n *\n * @sample {highcharts} highcharts/plotoptions/pie-bordercolor-black/\n * Black border\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #ffffff\n * @product highcharts\n *\n * @private\n */\n borderColor: '#ffffff',\n /**\n * The width of the border surrounding each slice.\n *\n * When setting the border width to 0, there may be small gaps between\n * the slices due to SVG antialiasing artefacts. To work around this,\n * keep the border width at 0.5 or 1, but set the `borderColor` to\n * `null` instead.\n *\n * In styled mode, the border stroke width is given in the\n * `.highcharts-point` class.\n *\n * @sample {highcharts} highcharts/plotoptions/pie-borderwidth/\n * 3px border\n *\n * @product highcharts\n *\n * @private\n */\n borderWidth: 1,\n /** @ignore-options */\n lineWidth: undefined,\n states: {\n /**\n * @extends plotOptions.series.states.hover\n * @excluding marker, lineWidth, lineWidthPlus\n * @product highcharts\n */\n hover: {\n /**\n * How much to brighten the point on interaction. Requires the\n * main color to be defined in hex or rgb(a) format.\n *\n * In styled mode, the hover brightness is by default replaced\n * by a fill-opacity given in the `.highcharts-point-hover`\n * class.\n *\n * @sample {highcharts} highcharts/plotoptions/pie-states-hover-brightness/\n * Brightened by 0.5\n *\n * @product highcharts\n */\n brightness: 0.1\n }\n }\n }, \n /* eslint-disable valid-jsdoc */\n /**\n * @lends seriesTypes.pie.prototype\n */\n {\n isCartesian: false,\n requireSorting: false,\n directTouch: true,\n noSharedTooltip: true,\n trackerGroups: ['group', 'dataLabelsGroup'],\n axisTypes: [],\n pointAttribs: seriesTypes.column.prototype.pointAttribs,\n /**\n * Animate the pies in\n *\n * @private\n * @function Highcharts.seriesTypes.pie#animate\n *\n * @param {boolean} [init=false]\n */\n animate: function (init) {\n var series = this, points = series.points, startAngleRad = series.startAngleRad;\n if (!init) {\n points.forEach(function (point) {\n var graphic = point.graphic, args = point.shapeArgs;\n if (graphic) {\n // start values\n graphic.attr({\n // animate from inner radius (#779)\n r: point.startR || (series.center[3] / 2),\n start: startAngleRad,\n end: startAngleRad\n });\n // animate\n graphic.animate({\n r: args.r,\n start: args.start,\n end: args.end\n }, series.options.animation);\n }\n });\n // delete this function to allow it only once\n series.animate = null;\n }\n },\n // Define hasData function for non-cartesian series.\n // Returns true if the series has points at all.\n hasData: function () {\n return !!this.processedXData.length; // != 0\n },\n /**\n * Recompute total chart sum and update percentages of points.\n *\n * @private\n * @function Highcharts.seriesTypes.pie#updateTotals\n * @return {void}\n */\n updateTotals: function () {\n var i, total = 0, points = this.points, len = points.length, point, ignoreHiddenPoint = this.options.ignoreHiddenPoint;\n // Get the total sum\n for (i = 0; i < len; i++) {\n point = points[i];\n total += (ignoreHiddenPoint && !point.visible) ?\n 0 :\n point.isNull ?\n 0 :\n point.y;\n }\n this.total = total;\n // Set each point's properties\n for (i = 0; i < len; i++) {\n point = points[i];\n point.percentage =\n (total > 0 && (point.visible || !ignoreHiddenPoint)) ?\n point.y / total * 100 :\n 0;\n point.total = total;\n }\n },\n /**\n * Extend the generatePoints method by adding total and percentage\n * properties to each point\n *\n * @private\n * @function Highcharts.seriesTypes.pie#generatePoints\n * @return {void}\n */\n generatePoints: function () {\n Series.prototype.generatePoints.call(this);\n this.updateTotals();\n },\n /**\n * Utility for getting the x value from a given y, used for\n * anticollision logic in data labels. Added point for using specific\n * points' label distance.\n * @private\n */\n getX: function (y, left, point) {\n var center = this.center, \n // Variable pie has individual radius\n radius = this.radii ?\n this.radii[point.index] :\n center[2] / 2, angle, x;\n angle = Math.asin(Math.max(Math.min(((y - center[1]) /\n (radius + point.labelDistance)), 1), -1));\n x = center[0] +\n (left ? -1 : 1) *\n (Math.cos(angle) * (radius + point.labelDistance)) +\n (point.labelDistance > 0 ?\n (left ? -1 : 1) * this.options.dataLabels.padding :\n 0);\n return x;\n },\n /**\n * Do translation for pie slices\n *\n * @private\n * @function Highcharts.seriesTypes.pie#translate\n * @param {Array} [positions]\n * @return {void}\n */\n translate: function (positions) {\n this.generatePoints();\n var series = this, cumulative = 0, precision = 1000, // issue #172\n options = series.options, slicedOffset = options.slicedOffset, connectorOffset = slicedOffset + (options.borderWidth || 0), finalConnectorOffset, start, end, angle, radians = getStartAndEndRadians(options.startAngle, options.endAngle), startAngleRad = series.startAngleRad = radians.start, endAngleRad = series.endAngleRad = radians.end, circ = endAngleRad - startAngleRad, // 2 * Math.PI,\n points = series.points, \n // the x component of the radius vector for a given point\n radiusX, radiusY, labelDistance = options.dataLabels.distance, ignoreHiddenPoint = options.ignoreHiddenPoint, i, len = points.length, point;\n // Get positions - either an integer or a percentage string must be\n // given. If positions are passed as a parameter, we're in a\n // recursive loop for adjusting space for data labels.\n if (!positions) {\n series.center = positions = series.getCenter();\n }\n // Calculate the geometry for each point\n for (i = 0; i < len; i++) {\n point = points[i];\n // set start and end angle\n start = startAngleRad + (cumulative * circ);\n if (!ignoreHiddenPoint || point.visible) {\n cumulative += point.percentage / 100;\n }\n end = startAngleRad + (cumulative * circ);\n // set the shape\n point.shapeType = 'arc';\n point.shapeArgs = {\n x: positions[0],\n y: positions[1],\n r: positions[2] / 2,\n innerR: positions[3] / 2,\n start: Math.round(start * precision) / precision,\n end: Math.round(end * precision) / precision\n };\n // Used for distance calculation for specific point.\n point.labelDistance = pick((point.options.dataLabels &&\n point.options.dataLabels.distance), labelDistance);\n // Compute point.labelDistance if it's defined as percentage\n // of slice radius (#8854)\n point.labelDistance = H.relativeLength(point.labelDistance, point.shapeArgs.r);\n // Saved for later dataLabels distance calculation.\n series.maxLabelDistance = Math.max(series.maxLabelDistance || 0, point.labelDistance);\n // The angle must stay within -90 and 270 (#2645)\n angle = (end + start) / 2;\n if (angle > 1.5 * Math.PI) {\n angle -= 2 * Math.PI;\n }\n else if (angle < -Math.PI / 2) {\n angle += 2 * Math.PI;\n }\n // Center for the sliced out slice\n point.slicedTranslation = {\n translateX: Math.round(Math.cos(angle) * slicedOffset),\n translateY: Math.round(Math.sin(angle) * slicedOffset)\n };\n // set the anchor point for tooltips\n radiusX = Math.cos(angle) * positions[2] / 2;\n radiusY = Math.sin(angle) * positions[2] / 2;\n point.tooltipPos = [\n positions[0] + radiusX * 0.7,\n positions[1] + radiusY * 0.7\n ];\n point.half = angle < -Math.PI / 2 || angle > Math.PI / 2 ?\n 1 :\n 0;\n point.angle = angle;\n // Set the anchor point for data labels. Use point.labelDistance\n // instead of labelDistance // #1174\n // finalConnectorOffset - not override connectorOffset value.\n finalConnectorOffset = Math.min(connectorOffset, point.labelDistance / 5); // #1678\n point.labelPosition = {\n natural: {\n // initial position of the data label - it's utilized for\n // finding the final position for the label\n x: positions[0] + radiusX + Math.cos(angle) *\n point.labelDistance,\n y: positions[1] + radiusY + Math.sin(angle) *\n point.labelDistance\n },\n 'final': {\n // used for generating connector path -\n // initialized later in drawDataLabels function\n // x: undefined,\n // y: undefined\n },\n // left - pie on the left side of the data label\n // right - pie on the right side of the data label\n // center - data label overlaps the pie\n alignment: point.labelDistance < 0 ?\n 'center' : point.half ? 'right' : 'left',\n connectorPosition: {\n breakAt: {\n x: positions[0] + radiusX + Math.cos(angle) *\n finalConnectorOffset,\n y: positions[1] + radiusY + Math.sin(angle) *\n finalConnectorOffset\n },\n touchingSliceAt: {\n x: positions[0] + radiusX,\n y: positions[1] + radiusY\n }\n }\n };\n }\n fireEvent(series, 'afterTranslate');\n },\n /**\n * Called internally to draw auxiliary graph in pie-like series in\n * situtation when the default graph is not sufficient enough to present\n * the data well. Auxiliary graph is saved in the same object as\n * regular graph.\n *\n * @private\n * @function Highcharts.seriesTypes.pie#drawEmpty\n */\n drawEmpty: function () {\n var centerX, centerY, options = this.options;\n // Draw auxiliary graph if there're no visible points.\n if (this.total === 0) {\n centerX = this.center[0];\n centerY = this.center[1];\n if (!this.graph) { // Auxiliary graph doesn't exist yet.\n this.graph = this.chart.renderer.circle(centerX, centerY, 0)\n .addClass('highcharts-graph')\n .add(this.group);\n }\n this.graph.animate({\n 'stroke-width': options.borderWidth,\n cx: centerX,\n cy: centerY,\n r: this.center[2] / 2,\n fill: options.fillColor || 'none',\n stroke: options.color ||\n '#cccccc'\n });\n }\n else if (this.graph) { // Destroy the graph object.\n this.graph = this.graph.destroy();\n }\n },\n /**\n * Draw the data points\n *\n * @private\n * @function Highcharts.seriesTypes.pie#drawPoints\n * @return {void}\n */\n redrawPoints: function () {\n var series = this, chart = series.chart, renderer = chart.renderer, groupTranslation, graphic, pointAttr, shapeArgs, shadow = series.options.shadow;\n this.drawEmpty();\n if (shadow && !series.shadowGroup && !chart.styledMode) {\n series.shadowGroup = renderer.g('shadow')\n .attr({ zIndex: -1 })\n .add(series.group);\n }\n // draw the slices\n series.points.forEach(function (point) {\n var animateTo = {};\n graphic = point.graphic;\n if (!point.isNull && graphic) {\n shapeArgs = point.shapeArgs;\n // If the point is sliced, use special translation, else use\n // plot area translation\n groupTranslation = point.getTranslate();\n if (!chart.styledMode) {\n // Put the shadow behind all points\n var shadowGroup = point.shadowGroup;\n if (shadow && !shadowGroup) {\n shadowGroup = point.shadowGroup = renderer\n .g('shadow')\n .add(series.shadowGroup);\n }\n if (shadowGroup) {\n shadowGroup.attr(groupTranslation);\n }\n pointAttr = series.pointAttribs(point, (point.selected && 'select'));\n }\n // Draw the slice\n if (!point.delayedRendering) {\n graphic\n .setRadialReference(series.center);\n if (!chart.styledMode) {\n merge(true, animateTo, pointAttr);\n }\n merge(true, animateTo, shapeArgs, groupTranslation);\n graphic.animate(animateTo);\n }\n else {\n graphic\n .setRadialReference(series.center)\n .attr(shapeArgs)\n .attr(groupTranslation);\n if (!chart.styledMode) {\n graphic\n .attr(pointAttr)\n .attr({ 'stroke-linejoin': 'round' })\n .shadow(shadow, shadowGroup);\n }\n point.delayedRendering = false;\n }\n graphic.attr({\n visibility: point.visible ? 'inherit' : 'hidden'\n });\n graphic.addClass(point.getClassName());\n }\n else if (graphic) {\n point.graphic = graphic.destroy();\n }\n });\n },\n /**\n * Slices in pie chart are initialized in DOM, but it's shapes and\n * animations are normally run in `drawPoints()`.\n * @private\n */\n drawPoints: function () {\n var renderer = this.chart.renderer;\n this.points.forEach(function (point) {\n if (!point.graphic) {\n point.graphic = renderer[point.shapeType](point.shapeArgs)\n .add(point.series.group);\n point.delayedRendering = true;\n }\n });\n },\n /**\n * @private\n * @deprecated\n * @function Highcharts.seriesTypes.pie#searchPoint\n */\n searchPoint: noop,\n /**\n * Utility for sorting data labels\n *\n * @private\n * @function Highcharts.seriesTypes.pie#sortByAngle\n * @param {Array} points\n * @param {number} sign\n * @return {void}\n */\n sortByAngle: function (points, sign) {\n points.sort(function (a, b) {\n return ((a.angle !== undefined) &&\n (b.angle - a.angle) * sign);\n });\n },\n /**\n * Use a simple symbol from LegendSymbolMixin.\n *\n * @private\n * @borrows Highcharts.LegendSymbolMixin.drawRectangle as Highcharts.seriesTypes.pie#drawLegendSymbol\n */\n drawLegendSymbol: LegendSymbolMixin.drawRectangle,\n /**\n * Use the getCenter method from drawLegendSymbol.\n *\n * @private\n * @borrows Highcharts.CenteredSeriesMixin.getCenter as Highcharts.seriesTypes.pie#getCenter\n */\n getCenter: CenteredSeriesMixin.getCenter,\n /**\n * Pies don't have point marker symbols.\n *\n * @deprecated\n * @private\n * @function Highcharts.seriesTypes.pie#getSymbol\n */\n getSymbol: noop,\n /**\n * @private\n * @type {null}\n */\n drawGraph: null\n }, \n /**\n * @lends seriesTypes.pie.prototype.pointClass.prototype\n */\n {\n /**\n * Initialize the pie slice\n *\n * @private\n * @function Highcharts.seriesTypes.pie#pointClass#init\n * @return {Highcharts.Point}\n */\n init: function () {\n Point.prototype.init.apply(this, arguments);\n var point = this, toggleSlice;\n point.name = pick(point.name, 'Slice');\n // add event listener for select\n toggleSlice = function (e) {\n point.slice(e.type === 'select');\n };\n addEvent(point, 'select', toggleSlice);\n addEvent(point, 'unselect', toggleSlice);\n return point;\n },\n /**\n * Negative points are not valid (#1530, #3623, #5322)\n *\n * @private\n * @function Highcharts.seriesTypes.pie#pointClass#isValid\n * @return {boolean}\n */\n isValid: function () {\n return isNumber(this.y) && this.y >= 0;\n },\n /**\n * Toggle the visibility of the pie slice\n *\n * @private\n * @function Highcharts.seriesTypes.pie#pointClass#setVisible\n * @param {boolean} vis\n * Whether to show the slice or not. If undefined, the visibility\n * is toggled.\n * @param {boolean} [redraw=false]\n * @return {void}\n */\n setVisible: function (vis, redraw) {\n var point = this, series = point.series, chart = series.chart, ignoreHiddenPoint = series.options.ignoreHiddenPoint;\n redraw = pick(redraw, ignoreHiddenPoint);\n if (vis !== point.visible) {\n // If called without an argument, toggle visibility\n point.visible = point.options.visible = vis =\n vis === undefined ? !point.visible : vis;\n // update userOptions.data\n series.options.data[series.data.indexOf(point)] =\n point.options;\n // Show and hide associated elements. This is performed\n // regardless of redraw or not, because chart.redraw only\n // handles full series.\n ['graphic', 'dataLabel', 'connector', 'shadowGroup'].forEach(function (key) {\n if (point[key]) {\n point[key][vis ? 'show' : 'hide'](true);\n }\n });\n if (point.legendItem) {\n chart.legend.colorizeItem(point, vis);\n }\n // #4170, hide halo after hiding point\n if (!vis && point.state === 'hover') {\n point.setState('');\n }\n // Handle ignore hidden slices\n if (ignoreHiddenPoint) {\n series.isDirty = true;\n }\n if (redraw) {\n chart.redraw();\n }\n }\n },\n /**\n * Set or toggle whether the slice is cut out from the pie\n *\n * @private\n * @function Highcharts.seriesTypes.pie#pointClass#slice\n * @param {boolean} sliced\n * When undefined, the slice state is toggled.\n * @param {boolean} redraw\n * Whether to redraw the chart. True by default.\n * @param {boolean|Highcharts.AnimationOptionsObject}\n * Animation options.\n * @return {void}\n */\n slice: function (sliced, redraw, animation) {\n var point = this, series = point.series, chart = series.chart;\n setAnimation(animation, chart);\n // redraw is true by default\n redraw = pick(redraw, true);\n /**\n * Pie series only. Whether to display a slice offset from the\n * center.\n * @name Highcharts.Point#sliced\n * @type {boolean|undefined}\n */\n // if called without an argument, toggle\n point.sliced = point.options.sliced = sliced =\n defined(sliced) ? sliced : !point.sliced;\n // update userOptions.data\n series.options.data[series.data.indexOf(point)] =\n point.options;\n point.graphic.animate(this.getTranslate());\n if (point.shadowGroup) {\n point.shadowGroup.animate(this.getTranslate());\n }\n },\n /**\n * @private\n * @function Highcharts.seriesTypes.pie#pointClass#getTranslate\n * @return {Highcharts.TranslationAttributes}\n */\n getTranslate: function () {\n return this.sliced ? this.slicedTranslation : {\n translateX: 0,\n translateY: 0\n };\n },\n /**\n * @private\n * @function Highcharts.seriesTypes.pie#pointClass#haloPath\n * @param {number} size\n * @return {Highcharts.SVGPathArray}\n */\n haloPath: function (size) {\n var shapeArgs = this.shapeArgs;\n return this.sliced || !this.visible ?\n [] :\n this.series.chart.renderer.symbols.arc(shapeArgs.x, shapeArgs.y, shapeArgs.r + size, shapeArgs.r + size, {\n // Substract 1px to ensure the background is not bleeding\n // through between the halo and the slice (#7495).\n innerR: shapeArgs.r - 1,\n start: shapeArgs.start,\n end: shapeArgs.end\n });\n },\n connectorShapes: {\n // only one available before v7.0.0\n fixedOffset: function (labelPosition, connectorPosition, options) {\n var breakAt = connectorPosition.breakAt, touchingSliceAt = connectorPosition.touchingSliceAt, linePath = options.softConnector ? [\n 'C',\n // 1st control point (of the curve)\n labelPosition.x +\n // 5 gives the connector a little horizontal bend\n (labelPosition.alignment === 'left' ? -5 : 5),\n labelPosition.y,\n 2 * breakAt.x - touchingSliceAt.x,\n 2 * breakAt.y - touchingSliceAt.y,\n breakAt.x,\n breakAt.y //\n ] : [\n 'L',\n breakAt.x,\n breakAt.y\n ];\n // assemble the path\n return [\n 'M',\n labelPosition.x,\n labelPosition.y\n ]\n .concat(linePath)\n .concat([\n 'L',\n touchingSliceAt.x,\n touchingSliceAt.y\n ]);\n },\n straight: function (labelPosition, connectorPosition) {\n var touchingSliceAt = connectorPosition.touchingSliceAt;\n // direct line to the slice\n return [\n 'M',\n labelPosition.x,\n labelPosition.y,\n 'L',\n touchingSliceAt.x,\n touchingSliceAt.y\n ];\n },\n crookedLine: function (labelPosition, connectorPosition, options) {\n var touchingSliceAt = connectorPosition.touchingSliceAt, series = this.series, pieCenterX = series.center[0], plotWidth = series.chart.plotWidth, plotLeft = series.chart.plotLeft, alignment = labelPosition.alignment, radius = this.shapeArgs.r, crookDistance = H.relativeLength(// % to fraction\n options.crookDistance, 1), crookX = alignment === 'left' ?\n pieCenterX + radius + (plotWidth + plotLeft -\n pieCenterX - radius) * (1 - crookDistance) :\n plotLeft + (pieCenterX - radius) * crookDistance, segmentWithCrook = [\n 'L',\n crookX,\n labelPosition.y\n ];\n // crookedLine formula doesn't make sense if the path overlaps\n // the label - use straight line instead in that case\n if (alignment === 'left' ?\n (crookX > labelPosition.x || crookX < touchingSliceAt.x) :\n (crookX < labelPosition.x || crookX > touchingSliceAt.x)) {\n segmentWithCrook = []; // remove the crook\n }\n // assemble the path\n return [\n 'M',\n labelPosition.x,\n labelPosition.y\n ]\n .concat(segmentWithCrook)\n .concat([\n 'L',\n touchingSliceAt.x,\n touchingSliceAt.y\n ]);\n }\n },\n /**\n * Extendable method for getting the path of the connector between the\n * data label and the pie slice.\n */\n getConnectorPath: function () {\n var labelPosition = this.labelPosition, options = this.series.options.dataLabels, connectorShape = options.connectorShape, predefinedShapes = this.connectorShapes;\n // find out whether to use the predefined shape\n if (predefinedShapes[connectorShape]) {\n connectorShape = predefinedShapes[connectorShape];\n }\n return connectorShape.call(this, {\n // pass simplified label position object for user's convenience\n x: labelPosition.final.x,\n y: labelPosition.final.y,\n alignment: labelPosition.alignment\n }, labelPosition.connectorPosition, options);\n }\n }\n /* eslint-enable valid-jsdoc */\n );\n /**\n * A `pie` series. If the [type](#series.pie.type) option is not specified,\n * it is inherited from [chart.type](#chart.type).\n *\n * @extends series,plotOptions.pie\n * @excluding dataParser, dataURL, stack, xAxis, yAxis\n * @product highcharts\n * @apioption series.pie\n */\n /**\n * An array of data points for the series. For the `pie` series type,\n * points can be given in the following ways:\n *\n * 1. An array of numerical values. In this case, the numerical values will be\n * interpreted as `y` options. Example:\n * ```js\n * data: [0, 5, 3, 5]\n * ```\n *\n * 2. An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of\n * data points exceeds the series'\n * [turboThreshold](#series.pie.turboThreshold),\n * this option is not available.\n * ```js\n * data: [{\n * y: 1,\n * name: \"Point2\",\n * color: \"#00FF00\"\n * }, {\n * y: 7,\n * name: \"Point1\",\n * color: \"#FF00FF\"\n * }]\n * ```\n *\n * @sample {highcharts} highcharts/chart/reflow-true/\n * Numerical values\n * @sample {highcharts} highcharts/series/data-array-of-arrays/\n * Arrays of numeric x and y\n * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/\n * Arrays of datetime x and y\n * @sample {highcharts} highcharts/series/data-array-of-name-value/\n * Arrays of point.name and y\n * @sample {highcharts} highcharts/series/data-array-of-objects/\n * Config objects\n *\n * @type {Array|null|*>}\n * @extends series.line.data\n * @excluding marker, x\n * @product highcharts\n * @apioption series.pie.data\n */\n /**\n * @type {Highcharts.SeriesPieDataLabelsOptionsObject}\n * @product highcharts\n * @apioption series.pie.data.dataLabels\n */\n /**\n * The sequential index of the data point in the legend.\n *\n * @type {number}\n * @product highcharts\n * @apioption series.pie.data.legendIndex\n */\n /**\n * Whether to display a slice offset from the center.\n *\n * @sample {highcharts} highcharts/point/sliced/\n * One sliced point\n *\n * @type {boolean}\n * @product highcharts\n * @apioption series.pie.data.sliced\n */\n /**\n * @excluding legendItemClick\n * @product highcharts\n * @apioption series.pie.events\n */\n ''; // placeholder for transpiled doclets above\n\n });\n _registerModule(_modules, 'parts/DataLabels.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * The operator to compare by in the filter.\n *\n * @typedef {\">\"|\"<\"|\">=\"|\"<=\"|\"==\"|\"===\"} Highcharts.DataLabelsFilterOperatorValue\n */\n /**\n * A declarative filter to control of which data labels to display. The\n * declarative filter is designed for use when callback functions are not\n * available, like when the chart options require a pure JSON structure or for\n * use with graphical editors. For programmatic control, use the `formatter`\n * instead, and return `undefined` to disable a single data label.\n *\n * @example\n * filter: {\n * property: 'percentage',\n * operator: '>',\n * value: 4\n * }\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/demo/pie-monochrome|Highcharts-Demo:}\n * Data labels filtered by percentage\n *\n * @since 6.0.3\n * @interface Highcharts.DataLabelsFilterOptionsObject\n */ /**\n * The operator to compare by. Can be one of `>`, `<`, `>=`, `<=`, `==`, and\n * `===`.\n * @name Highcharts.DataLabelsFilterOptionsObject#operator\n * @type {Highcharts.DataLabelsFilterOperatorValue}\n */ /**\n * The point property to filter by. Point options are passed directly to\n * properties, additionally there are `y` value, `percentage` and others listed\n * under {@link Highcharts.Point} members.\n * @name Highcharts.DataLabelsFilterOptionsObject#property\n * @type {string}\n */ /**\n * The value to compare against.\n * @name Highcharts.DataLabelsFilterOptionsObject#value\n * @type {number|null}\n */\n /**\n * Callback JavaScript function to format the data label as a string. Note that\n * if a `format` is defined, the format takes precedence and the formatter is\n * ignored.\n *\n * @callback Highcharts.DataLabelsFormatterCallbackFunction\n *\n * @param {Highcharts.DataLabelsFormatterContextObject} this\n * Data label context to format\n *\n * @return {number|string|null|undefined}\n * Formatted data label text\n */\n /**\n * Context for the callback function to format the data label.\n *\n * @interface Highcharts.DataLabelsFormatterContextObject\n */ /**\n * Stacked series and pies only. The point's percentage of the total.\n * @name Highcharts.DataLabelsFormatterContextObject#percentage\n * @type {number|undefined}\n */ /**\n * The point object. The point name, if defined, is available through\n * `this.point.name`.\n * @name Highcharts.DataLabelsFormatterContextObject#point\n * @type {Highcharts.Point}\n */ /**\n * The series object. The series name is available through `this.series.name`.\n * @name Highcharts.DataLabelsFormatterContextObject#series\n * @type {Highcharts.Series}\n */ /**\n * Stacked series only. The total value at this point's x value.\n * @name Highcharts.DataLabelsFormatterContextObject#total\n * @type {number|undefined}\n */ /**\n * The x value.\n * @name Highcharts.DataLabelsFormatterContextObject#x\n * @type {number}\n */ /**\n * The y value.\n * @name Highcharts.DataLabelsFormatterContextObject#y\n * @type {number|null}\n */\n /**\n * Options for the series data labels, appearing next to each data point.\n *\n * Since v6.2.0, multiple data labels can be applied to each single point by\n * defining them as an array of configs.\n *\n * In styled mode, the data labels can be styled with the\n * `.highcharts-data-label-box` and `.highcharts-data-label` class names.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-enabled|Highcharts-Demo:}\n * Data labels enabled\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-multiple|Highcharts-Demo:}\n * Multiple data labels on a bar series\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/series-datalabels|Highcharts-Demo:}\n * Style mode example\n *\n * @interface Highcharts.DataLabelsOptionsObject\n */ /**\n * The alignment of the data label compared to the point. If `right`, the right\n * side of the label should be touching the point. For points with an extent,\n * like columns, the alignments also dictates how to align it inside the box, as\n * given with the\n * [inside](/highcharts/plotOptions.column.dataLabels.inside)\n * option. Can be one of `left`, `center` or `right`.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-align-left/|Highcharts-Demo:}\n * Left aligned\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/bar-datalabels-align-inside-bar/|Highcharts-Demo:}\n * Data labels inside the bar\n *\n * @name Highcharts.DataLabelsOptionsObject#align\n * @type {Highcharts.AlignValue|null|undefined}\n * @default center\n */ /**\n * Whether to allow data labels to overlap. To make the labels less sensitive\n * for overlapping, the\n * [dataLabels.padding](/highcharts/#plotOptions.series.dataLabels.padding) can\n * be set to 0.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-allowoverlap-false/|Highcharts-Demo:}\n * Don't allow overlap\n *\n * @name Highcharts.DataLabelsOptionsObject#allowOverlap\n * @type {boolean|undefined}\n * @since 4.1.0\n * @default false\n */ /**\n * The background color or gradient for the data label.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-box/|Highcharts-Demo:}\n * Data labels box options\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/maps/plotoptions/series-datalabels-box/|Highmaps-Demo:}\n * Data labels box options\n *\n * @name Highcharts.DataLabelsOptionsObject#backgroundColor\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject|undefined}\n * @since 2.2.1\n */ /**\n * The border color for the data label. Defaults to `undefined`.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-box/|Highcharts-Demo:}\n * Data labels box options\n *\n * @name Highcharts.DataLabelsOptionsObject#borderColor\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject|undefined}\n * @since 2.2.1\n */ /**\n * The border radius in pixels for the data label.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-box/|Highcharts-Demo:}\n * Data labels box options\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/maps/plotoptions/series-datalabels-box/|Highmaps-Demo:}\n * Data labels box options\n *\n * @name Highcharts.DataLabelsOptionsObject#borderRadius\n * @type {number|undefined}\n * @since 2.2.1\n * @default 0\n */ /**\n * The border width in pixels for the data label.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-box/|Highcharts-Demo:}\n * Data labels box options\n *\n * @name Highcharts.DataLabelsOptionsObject#borderWidth\n * @type {number|undefined}\n * @since 2.2.1\n * @default 0\n */ /**\n * A class name for the data label. Particularly in styled mode, this can be\n * used to give each series' or point's data label unique styling. In addition\n * to this option, a default color class name is added so that we can give the\n * labels a contrast text shadow.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/data-label-contrast/|Highcharts-Demo:}\n * Contrast text shadow\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/series-datalabels/|Highcharts-Demo:}\n * Styling by CSS\n *\n * @name Highcharts.DataLabelsOptionsObject#className\n * @type {string|undefined}\n * @since 5.0.0\n */ /**\n * The text color for the data labels. Defaults to `undefined`. For certain\n * series types, like column or map, the data labels can be drawn inside the\n * points. In this case the data label will be drawn with maximum contrast by\n * default. Additionally, it will be given a `text-outline` style with the\n * opposite color, to further increase the contrast. This can be overridden by\n * setting the `text-outline` style to `none` in the `dataLabels.style` option.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-color/|Highcharts-Demo:}\n * Red data labels\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/maps/demo/color-axis/|Highmaps-Demo:}\n * White data labels\n *\n * @name Highcharts.DataLabelsOptionsObject#color\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject|undefined}\n */ /**\n * Whether to hide data labels that are outside the plot area. By default, the\n * data label is moved inside the plot area according to the\n * [overflow](/highcharts/#plotOptions.series.dataLabels.overflow) option.\n *\n * @name Highcharts.DataLabelsOptionsObject#crop\n * @type {boolean|undefined}\n * @default true\n * @since 2.3.3\n */ /**\n * Whether to defer displaying the data labels until the initial series\n * animation has finished.\n *\n * @name Highcharts.DataLabelsOptionsObject#defer\n * @type {boolean|undefined}\n * @default true\n * @since 4.0.0\n * @product highcharts highstock gantt\n */ /**\n * Enable or disable the data labels.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-enabled/|Highcharts-Demo:}\n * Data labels enabled\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/maps/demo/color-axis/|Highmaps-Demo:}\n * Data labels enabled\n *\n * @name Highcharts.DataLabelsOptionsObject#enabled\n * @type {boolean|undefined}\n * @default false\n */ /**\n * A declarative filter to control of which data labels to display. The\n * declarative filter is designed for use when callback functions are not\n * available, like when the chart options require a pure JSON structure or for\n * use with graphical editors. For programmatic control, use the `formatter`\n * instead, and return `undefined` to disable a single data label.\n *\n * @example\n * filter: {\n * property: 'percentage',\n * operator: '>',\n * value: 4\n * }\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/demo/pie-monochrome|Highcharts-Demo:}\n * Data labels filtered by percentage\n *\n * @name Highcharts.DataLabelsOptionsObject#filter\n * @type {Highcharts.DataLabelsFilterOptionsObject|undefined}\n * @since 6.0.3\n */ /**\n * Callback JavaScript function to format the data label. Note that if a\n * `format` is defined, the format takes precedence and the formatter is\n * ignored.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/maps/plotoptions/series-datalabels-format/|Highmaps-Demo:}\n * Formatted value\n *\n * @name Highcharts.DataLabelsOptionsObject#formatter\n * @type {Highcharts.DataLabelsFormatterCallbackFunction|undefined}\n * @default function () { return this.y; }\n */ /**\n * A\n * [format string](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting)\n * for the data label. Available variables are the same as for `formatter`.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-format/|Highcharts-Demo:}\n * Add a unit\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/maps/plotoptions/series-datalabels-format/|Highmaps-Demo:}\n * Formatted value in the data label\n *\n * @name Highcharts.DataLabelsOptionsObject#format\n * @type {string|undefined}\n * @default y\n * @default point.value\n * @since 3.0\n */ /**\n * For points with an extent, like columns or map areas, whether to align the\n * data label inside the box or to the actual value point. Defaults to `false`\n * in most cases, `true` in stacked columns.\n *\n * @name Highcharts.DataLabelsOptionsObject#inside\n * @type {boolean|undefined}\n * @since 3.0\n */ /**\n * Format for points with the value of null. Works analogously to\n * [format](#plotOptions.series.dataLabels.format).\n * `nullFormat` can be applied only to series which support\n * displaying null points.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-format/|Highmaps-Demo:}\n * Format data label and tooltip for null point.\n *\n * @name Highcharts.DataLabelsOptionsObject#nullFormat\n * @type {string|boolean|undefined}\n * @since 7.1.0\n */ /**\n * Callback JavaScript function that defines formatting for points\n * with the value of null. Works analogously to\n * [formatter](#plotOptions.series.dataLabels.formatter).\n * `nullPointFormatter` can be applied only to series which support\n * displaying null points.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-format/|Highmaps-Demo:}\n * Format data label and tooltip for null point.\n *\n * @name Highcharts.DataLabelsOptionsObject#nullFormatter\n * @type {Highcharts.DataLabelsFormatterCallbackFunction|undefined}\n * @since 7.1.0\n */ /**\n * How to handle data labels that flow outside the plot area. The default is\n * `\"justify\"`, which aligns them inside the plot area. For columns and bars,\n * this means it will be moved inside the bar. To display data labels outside\n * the plot area, set `crop` to `false` and `overflow` to `\"allow\"`.\n *\n * @name Highcharts.DataLabelsOptionsObject#overflow\n * @type {Highcharts.DataLabelsOverflowValue|undefined}\n * @default justify\n * @since 3.0.6\n */ /**\n * When either the `borderWidth` or the `backgroundColor` is set, this is the\n * padding within the box.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-box/|Highcharts-Demo:}\n * Data labels box options\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/maps/plotoptions/series-datalabels-box/|Highmaps-Demo:}\n * Data labels box options\n *\n * @name Highcharts.DataLabelsOptionsObject#padding\n * @type {number|undefined}\n * @since 2.2.1\n */ /**\n * Text rotation in degrees. Note that due to a more complex structure,\n * backgrounds, borders and padding will be lost on a rotated data label.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-rotation/|Highcharts-Demo:}\n * Vertical labels\n *\n * @name Highcharts.DataLabelsOptionsObject#rotation\n * @type {number|undefined}\n * @default 0\n */ /**\n * The shadow of the box. Works best with `borderWidth` or\n * `backgroundColor`. Since 2.3 the shadow can be an object\n * configuration containing `color`, `offsetX`, `offsetY`, `opacity`\n * and `width`.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-box/|Highcharts-Demo:}\n * Data labels box options\n *\n * @name Highcharts.DataLabelsOptionsObject#shadow\n * @type {boolean|Highcharts.ShadowOptionsObject|undefined}\n * @default false\n * @since 2.2.1\n */ /**\n * The name of a symbol to use for the border around the label.\n * Symbols are predefined functions on the Renderer object.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-shape/|Highcharts-Demo:}\n * A callout for annotations\n *\n * @name Highcharts.DataLabelsOptionsObject#shape\n * @type {string|undefined}\n * @default square\n * @since 4.1.2\n */ /**\n * Styles for the label. The default `color` setting is `\"contrast\"`, which is a\n * pseudo color that Highcharts picks up and applies the maximum contrast to the\n * underlying point item, for example the bar in a bar chart.\n *\n * The `textOutline` is a pseudo property that applies an outline of the given\n * width with the given color, which by default is the maximum contrast to the\n * text. So a bright text color will result in a black text outline for maximum\n * readability on a mixed background. In some cases, especially with grayscale\n * text, the text outline doesn't work well, in which cases it can be disabled\n * by setting it to `\"none\"`. When `useHTML` is true, the `textOutline` will not\n * be picked up. In this, case, the same effect can be acheived through the\n * `text-shadow` CSS property.\n *\n * For some series types, where each point has an extent, like for example tree\n * maps, the data label may overflow the point. There are two strategies for\n * handling overflow. By default, the text will wrap to multiple lines. The\n * other strategy is to set `style.textOverflow` to `ellipsis`, which will keep\n * the text on one line plus it will break inside long words.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-style/|Highcharts-Demo:}\n * Bold labels\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotOptions/pie-datalabels-overflow|Highcharts-Demo:}\n * Long labels truncated with an ellipsis in a pie\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotOptions/pie-datalabels-overflow-wrap|Highcharts-Demo:}\n * Long labels are wrapped in a pie\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/maps/demo/color-axis/|Highmaps-Demo:}\n * Bold labels\n *\n * @name Highcharts.DataLabelsOptionsObject#style\n * @type {Highcharts.CSSObject|undefined}\n * @default {\"color\": \"contrast\", \"fontSize\": \"11px\", \"fontWeight\": \"bold\", \"textOutline\": \"1px contrast\" }\n * @since 4.1.0\n */ /**\n * Options for a label text which should follow marker's shape. Border and\n * background are disabled for a label that follows a path.\n * **Note:** Only SVG-based renderer supports this option. Setting `useHTML` to\n * true will disable this option.\n * @name Highcharts.DataLabelsOptionsObject#textPath\n * @type {Highcharts.DataLabelsTextPathOptionsObject|undefined}\n * @since 7.1.0\n */ /**\n * Whether to\n * [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)\n * to render the labels.\n *\n * @name Highcharts.DataLabelsOptionsObject#useHTML\n * @type {boolean|undefined}\n * @default false\n */ /**\n * The vertical alignment of a data label. Can be one of `top`, `middle` or\n * `bottom`. The default value depends on the data, for instance in a column\n * chart, the label is above positive values and below negative values.\n *\n * @name Highcharts.DataLabelsOptionsObject#verticalAlign\n * @type {Highcharts.VerticalAlignValue|null|undefined}\n * @since 2.3.3\n */ /**\n * The x position offset of the label relative to the point in pixels.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-rotation/|Highcharts-Demo:}\n * Vertical and positioned\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/bar-datalabels-align-inside-bar/|Highcharts-Demo:}\n * Data labels inside the bar\n *\n * @name Highcharts.DataLabelsOptionsObject#x\n * @type {number|undefined}\n */ /**\n * The y position offset of the label relative to the point in pixels.\n *\n * @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-rotation/|Highcharts-Demo:}\n * Vertical and positioned\n *\n * @name Highcharts.DataLabelsOptionsObject#y\n * @type {number|undefined}\n */ /**\n * The Z index of the data labels. The default Z index puts it above\n * the series. Use a Z index of 2 to display it behind the series.\n *\n * @name Highcharts.DataLabelsOptionsObject#zIndex\n * @type {number|undefined}\n * @default 6\n * @since 2.3.5\n */\n /**\n * Values for handling data labels that flow outside the plot area.\n *\n * @typedef {\"allow\"|\"justify\"} Highcharts.DataLabelsOverflowValue\n */\n /**\n * Options for a label text which should follow marker's shape.\n * **Note:** Only SVG-based renderer supports this option.\n *\n * @see {@link Highcharts.SeriesNetworkDataLabelsTextPath#linkTextPath}\n * @see {@link Highcharts.SeriesNetworkDataLabelsTextPath#textPath}\n *\n * @interface Highcharts.DataLabelsTextPathOptionsObject\n * @since 7.1.0\n */ /**\n * Presentation attributes for the text path.\n * @name Highcharts.DataLabelsTextPathOptionsObject#attributes\n * @type {Highcharts.SVGAttributes|undefined}\n * @since 7.1.0\n */ /**\n * Enable or disable `textPath` option for link's or marker's data labels.\n * @name Highcharts.DataLabelsTextPathOptionsObject#enabled\n * @type {boolean|undefined}\n * @since 7.1.0\n */\n /* *\n * @interface Highcharts.PointOptionsObject in parts/Point.ts\n */ /**\n * Individual data labels for each point.\n * @name Highcharts.PointOptionsObject#dataLabels\n * @type {Highcharts.DataLabelsOptionsObject|Array|undefined}\n */ /**\n * The rank for this point's data label in case of collision. If two data labels\n * are about to overlap, only the one with the highest labelrank will be drawn.\n * @name Highcharts.PointOptionsObject#labelrank\n * @type {number|undefined}\n */\n var arrayMax = U.arrayMax, defined = U.defined, extend = U.extend, isArray = U.isArray, objectEach = U.objectEach, pick = U.pick, splat = U.splat;\n var format = H.format, merge = H.merge, noop = H.noop, relativeLength = H.relativeLength, Series = H.Series, seriesTypes = H.seriesTypes, stableSort = H.stableSort;\n /* eslint-disable valid-jsdoc */\n /**\n * General distribution algorithm for distributing labels of differing size\n * along a confined length in two dimensions. The algorithm takes an array of\n * objects containing a size, a target and a rank. It will place the labels as\n * close as possible to their targets, skipping the lowest ranked labels if\n * necessary.\n *\n * @private\n * @function Highcharts.distribute\n * @param {Highcharts.DataLabelsBoxArray} boxes\n * @param {number} len\n * @param {number} maxDistance\n * @return {void}\n */\n H.distribute = function (boxes, len, maxDistance) {\n var i, overlapping = true, origBoxes = boxes, // Original array will be altered with added .pos\n restBoxes = [], // The outranked overshoot\n box, target, total = 0, reducedLen = origBoxes.reducedLen || len;\n /**\n * @private\n */\n function sortByTarget(a, b) {\n return a.target - b.target;\n }\n // If the total size exceeds the len, remove those boxes with the lowest\n // rank\n i = boxes.length;\n while (i--) {\n total += boxes[i].size;\n }\n // Sort by rank, then slice away overshoot\n if (total > reducedLen) {\n stableSort(boxes, function (a, b) {\n return (b.rank || 0) - (a.rank || 0);\n });\n i = 0;\n total = 0;\n while (total <= reducedLen) {\n total += boxes[i].size;\n i++;\n }\n restBoxes = boxes.splice(i - 1, boxes.length);\n }\n // Order by target\n stableSort(boxes, sortByTarget);\n // So far we have been mutating the original array. Now\n // create a copy with target arrays\n boxes = boxes.map(function (box) {\n return {\n size: box.size,\n targets: [box.target],\n align: pick(box.align, 0.5)\n };\n });\n while (overlapping) {\n // Initial positions: target centered in box\n i = boxes.length;\n while (i--) {\n box = boxes[i];\n // Composite box, average of targets\n target = (Math.min.apply(0, box.targets) +\n Math.max.apply(0, box.targets)) / 2;\n box.pos = Math.min(Math.max(0, target - box.size * box.align), len - box.size);\n }\n // Detect overlap and join boxes\n i = boxes.length;\n overlapping = false;\n while (i--) {\n // Overlap\n if (i > 0 &&\n boxes[i - 1].pos + boxes[i - 1].size >\n boxes[i].pos) {\n // Add this size to the previous box\n boxes[i - 1].size += boxes[i].size;\n boxes[i - 1].targets = boxes[i - 1]\n .targets\n .concat(boxes[i].targets);\n boxes[i - 1].align = 0.5;\n // Overlapping right, push left\n if (boxes[i - 1].pos + boxes[i - 1].size > len) {\n boxes[i - 1].pos = len - boxes[i - 1].size;\n }\n boxes.splice(i, 1); // Remove this item\n overlapping = true;\n }\n }\n }\n // Add the rest (hidden boxes)\n origBoxes.push.apply(origBoxes, restBoxes);\n // Now the composite boxes are placed, we need to put the original boxes\n // within them\n i = 0;\n boxes.some(function (box) {\n var posInCompositeBox = 0;\n if (box.targets.some(function () {\n origBoxes[i].pos = box.pos + posInCompositeBox;\n // If the distance between the position and the target exceeds\n // maxDistance, abort the loop and decrease the length in increments\n // of 10% to recursively reduce the number of visible boxes by\n // rank. Once all boxes are within the maxDistance, we're good.\n if (Math.abs(origBoxes[i].pos - origBoxes[i].target) >\n maxDistance) {\n // Reset the positions that are already set\n origBoxes.slice(0, i + 1).forEach(function (box) {\n delete box.pos;\n });\n // Try with a smaller length\n origBoxes.reducedLen =\n (origBoxes.reducedLen || len) - (len * 0.1);\n // Recurse\n if (origBoxes.reducedLen > len * 0.1) {\n H.distribute(origBoxes, len, maxDistance);\n }\n // Exceeded maxDistance => abort\n return true;\n }\n posInCompositeBox += origBoxes[i].size;\n i++;\n })) {\n // Exceeded maxDistance => abort\n return true;\n }\n });\n // Add the rest (hidden) boxes and sort by target\n stableSort(origBoxes, sortByTarget);\n };\n /**\n * Draw the data labels\n *\n * @private\n * @function Highcharts.Series#drawDataLabels\n * @return {void}\n * @fires Highcharts.Series#event:afterDrawDataLabels\n */\n Series.prototype.drawDataLabels = function () {\n var series = this, chart = series.chart, seriesOptions = series.options, seriesDlOptions = seriesOptions.dataLabels, points = series.points, pointOptions, hasRendered = series.hasRendered || 0, dataLabelsGroup, seriesAnimDuration = H.animObject(seriesOptions.animation).duration, fadeInDuration = Math.min(seriesAnimDuration, 200), defer = !chart.renderer.forExport && pick(seriesDlOptions.defer, fadeInDuration > 0), renderer = chart.renderer;\n /**\n * Handle the dataLabels.filter option.\n * @private\n */\n function applyFilter(point, options) {\n var filter = options.filter, op, prop, val;\n if (filter) {\n op = filter.operator;\n prop = point[filter.property];\n val = filter.value;\n if ((op === '>' && prop > val) ||\n (op === '<' && prop < val) ||\n (op === '>=' && prop >= val) ||\n (op === '<=' && prop <= val) ||\n (op === '==' && prop == val) || // eslint-disable-line eqeqeq\n (op === '===' && prop === val)) {\n return true;\n }\n return false;\n }\n return true;\n }\n /**\n * Merge two objects that can be arrays. If one of them is an array, the\n * other is merged into each element. If both are arrays, each element is\n * merged by index. If neither are arrays, we use normal merge.\n * @private\n */\n function mergeArrays(one, two) {\n var res = [], i;\n if (isArray(one) && !isArray(two)) {\n res = one.map(function (el) {\n return merge(el, two);\n });\n }\n else if (isArray(two) && !isArray(one)) {\n res = two.map(function (el) {\n return merge(one, el);\n });\n }\n else if (!isArray(one) && !isArray(two)) {\n res = merge(one, two);\n }\n else {\n i = Math.max(one.length, two.length);\n while (i--) {\n res[i] = merge(one[i], two[i]);\n }\n }\n return res;\n }\n // Merge in plotOptions.dataLabels for series\n seriesDlOptions = mergeArrays(mergeArrays(chart.options.plotOptions &&\n chart.options.plotOptions.series &&\n chart.options.plotOptions.series.dataLabels, chart.options.plotOptions &&\n chart.options.plotOptions[series.type] &&\n chart.options.plotOptions[series.type].dataLabels), seriesDlOptions);\n H.fireEvent(this, 'drawDataLabels');\n if (isArray(seriesDlOptions) ||\n seriesDlOptions.enabled ||\n series._hasPointLabels) {\n // Create a separate group for the data labels to avoid rotation\n dataLabelsGroup = series.plotGroup('dataLabelsGroup', 'data-labels', defer && !hasRendered ? 'hidden' : 'inherit', // #5133, #10220\n seriesDlOptions.zIndex || 6);\n if (defer) {\n dataLabelsGroup.attr({ opacity: +hasRendered }); // #3300\n if (!hasRendered) {\n setTimeout(function () {\n var group = series.dataLabelsGroup;\n if (group) {\n if (series.visible) { // #2597, #3023, #3024\n dataLabelsGroup.show(true);\n }\n group[seriesOptions.animation ? 'animate' : 'attr']({ opacity: 1 }, { duration: fadeInDuration });\n }\n }, seriesAnimDuration - fadeInDuration);\n }\n }\n // Make the labels for each point\n points.forEach(function (point) {\n // Merge in series options for the point.\n // @note dataLabelAttribs (like pointAttribs) would eradicate\n // the need for dlOptions, and simplify the section below.\n pointOptions = splat(mergeArrays(seriesDlOptions, point.dlOptions || // dlOptions is used in treemaps\n (point.options && point.options.dataLabels)));\n // Handle each individual data label for this point\n pointOptions.forEach(function (labelOptions, i) {\n // Options for one datalabel\n var labelEnabled = (labelOptions.enabled &&\n // #2282, #4641, #7112, #10049\n (!point.isNull || point.dataLabelOnNull) &&\n applyFilter(point, labelOptions)), labelConfig, formatString, labelText, style, rotation, attr, dataLabel = point.dataLabels ? point.dataLabels[i] :\n point.dataLabel, connector = point.connectors ? point.connectors[i] :\n point.connector, labelDistance = pick(labelOptions.distance, point.labelDistance), isNew = !dataLabel;\n if (labelEnabled) {\n // Create individual options structure that can be extended\n // without affecting others\n labelConfig = point.getLabelConfig();\n formatString = pick(labelOptions[point.formatPrefix + 'Format'], labelOptions.format);\n labelText = defined(formatString) ?\n format(formatString, labelConfig, chart.time) :\n (labelOptions[point.formatPrefix + 'Formatter'] ||\n labelOptions.formatter).call(labelConfig, labelOptions);\n style = labelOptions.style;\n rotation = labelOptions.rotation;\n if (!chart.styledMode) {\n // Determine the color\n style.color = pick(labelOptions.color, style.color, series.color, '#000000');\n // Get automated contrast color\n if (style.color === 'contrast') {\n point.contrastColor = renderer.getContrast((point.color || series.color));\n style.color = (!defined(labelDistance) &&\n labelOptions.inside) ||\n labelDistance < 0 ||\n !!seriesOptions.stacking ?\n point.contrastColor :\n '#000000';\n }\n if (seriesOptions.cursor) {\n style.cursor = seriesOptions.cursor;\n }\n }\n attr = {\n r: labelOptions.borderRadius || 0,\n rotation: rotation,\n padding: labelOptions.padding,\n zIndex: 1\n };\n if (!chart.styledMode) {\n attr.fill = labelOptions.backgroundColor;\n attr.stroke = labelOptions.borderColor;\n attr['stroke-width'] = labelOptions.borderWidth;\n }\n // Remove unused attributes (#947)\n objectEach(attr, function (val, name) {\n if (val === undefined) {\n delete attr[name];\n }\n });\n }\n // If the point is outside the plot area, destroy it. #678, #820\n if (dataLabel && (!labelEnabled || !defined(labelText))) {\n point.dataLabel =\n point.dataLabel && point.dataLabel.destroy();\n if (point.dataLabels) {\n // Remove point.dataLabels if this was the last one\n if (point.dataLabels.length === 1) {\n delete point.dataLabels;\n }\n else {\n delete point.dataLabels[i];\n }\n }\n if (!i) {\n delete point.dataLabel;\n }\n if (connector) {\n point.connector = point.connector.destroy();\n if (point.connectors) {\n // Remove point.connectors if this was the last one\n if (point.connectors.length === 1) {\n delete point.connectors;\n }\n else {\n delete point.connectors[i];\n }\n }\n }\n // Individual labels are disabled if the are explicitly disabled\n // in the point options, or if they fall outside the plot area.\n }\n else if (labelEnabled && defined(labelText)) {\n if (!dataLabel) {\n // Create new label element\n point.dataLabels = point.dataLabels || [];\n dataLabel = point.dataLabels[i] = rotation ?\n // Labels don't rotate, use text element\n renderer.text(labelText, 0, -9999)\n .addClass('highcharts-data-label') :\n // We can use label\n renderer.label(labelText, 0, -9999, labelOptions.shape, null, null, labelOptions.useHTML, null, 'data-label');\n // Store for backwards compatibility\n if (!i) {\n point.dataLabel = dataLabel;\n }\n dataLabel.addClass(' highcharts-data-label-color-' + point.colorIndex +\n ' ' + (labelOptions.className || '') +\n ( // #3398\n labelOptions.useHTML ?\n ' highcharts-tracker' :\n ''));\n }\n else {\n // Use old element and just update text\n attr.text = labelText;\n }\n // Store data label options for later access\n dataLabel.options = labelOptions;\n dataLabel.attr(attr);\n if (!chart.styledMode) {\n // Styles must be applied before add in order to read\n // text bounding box\n dataLabel.css(style).shadow(labelOptions.shadow);\n }\n if (!dataLabel.added) {\n dataLabel.add(dataLabelsGroup);\n }\n if (labelOptions.textPath && !labelOptions.useHTML) {\n dataLabel.setTextPath((point.getDataLabelPath &&\n point.getDataLabelPath(dataLabel)) || point.graphic, labelOptions.textPath);\n }\n // Now the data label is created and placed at 0,0, so we\n // need to align it\n series.alignDataLabel(point, dataLabel, labelOptions, null, isNew);\n }\n });\n });\n }\n H.fireEvent(this, 'afterDrawDataLabels');\n };\n /**\n * Align each individual data label.\n *\n * @private\n * @function Highcharts.Series#alignDataLabel\n * @param {Highcharts.Point} point\n * @param {Highcharts.SVGElement} dataLabel\n * @param {Highcharts.DataLabelsOptionsObject} options\n * @param {Highcharts.BBoxObject} alignTo\n * @param {boolean} [isNew]\n * @return {void}\n */\n Series.prototype.alignDataLabel = function (point, dataLabel, options, alignTo, isNew) {\n var chart = this.chart, inverted = this.isCartesian && chart.inverted, plotX = pick(point.dlBox && point.dlBox.centerX, point.plotX, -9999), plotY = pick(point.plotY, -9999), bBox = dataLabel.getBBox(), baseline, rotation = options.rotation, normRotation, negRotation, align = options.align, rotCorr, // rotation correction\n // Math.round for rounding errors (#2683), alignTo to allow column\n // labels (#2700)\n visible = this.visible &&\n (point.series.forceDL ||\n chart.isInsidePlot(plotX, Math.round(plotY), inverted) ||\n (alignTo && chart.isInsidePlot(plotX, inverted ?\n alignTo.x + 1 :\n alignTo.y + alignTo.height - 1, inverted))), alignAttr, // the final position;\n justify = pick(options.overflow, 'justify') === 'justify';\n if (visible) {\n baseline = chart.renderer.fontMetrics(chart.styledMode ? undefined : options.style.fontSize, dataLabel).b;\n // The alignment box is a singular point\n alignTo = extend({\n x: inverted ? this.yAxis.len - plotY : plotX,\n y: Math.round(inverted ? this.xAxis.len - plotX : plotY),\n width: 0,\n height: 0\n }, alignTo);\n // Add the text size for alignment calculation\n extend(options, {\n width: bBox.width,\n height: bBox.height\n });\n // Allow a hook for changing alignment in the last moment, then do the\n // alignment\n if (rotation) {\n justify = false; // Not supported for rotated text\n rotCorr = chart.renderer.rotCorr(baseline, rotation); // #3723\n alignAttr = {\n x: (alignTo.x +\n options.x +\n alignTo.width / 2 +\n rotCorr.x),\n y: (alignTo.y +\n options.y +\n { top: 0, middle: 0.5, bottom: 1 }[options.verticalAlign] *\n alignTo.height)\n };\n dataLabel[isNew ? 'attr' : 'animate'](alignAttr)\n .attr({\n align: align\n });\n // Compensate for the rotated label sticking out on the sides\n normRotation = (rotation + 720) % 360;\n negRotation = normRotation > 180 && normRotation < 360;\n if (align === 'left') {\n alignAttr.y -= negRotation ? bBox.height : 0;\n }\n else if (align === 'center') {\n alignAttr.x -= bBox.width / 2;\n alignAttr.y -= bBox.height / 2;\n }\n else if (align === 'right') {\n alignAttr.x -= bBox.width;\n alignAttr.y -= negRotation ? 0 : bBox.height;\n }\n dataLabel.placed = true;\n dataLabel.alignAttr = alignAttr;\n }\n else {\n dataLabel.align(options, null, alignTo);\n alignAttr = dataLabel.alignAttr;\n }\n // Handle justify or crop\n if (justify && alignTo.height >= 0) { // #8830\n this.justifyDataLabel(dataLabel, options, alignAttr, bBox, alignTo, isNew);\n // Now check that the data label is within the plot area\n }\n else if (pick(options.crop, true)) {\n visible =\n chart.isInsidePlot(alignAttr.x, alignAttr.y) &&\n chart.isInsidePlot(alignAttr.x + bBox.width, alignAttr.y + bBox.height);\n }\n // When we're using a shape, make it possible with a connector or an\n // arrow pointing to thie point\n if (options.shape && !rotation) {\n dataLabel[isNew ? 'attr' : 'animate']({\n anchorX: inverted ?\n chart.plotWidth - point.plotY :\n point.plotX,\n anchorY: inverted ?\n chart.plotHeight - point.plotX :\n point.plotY\n });\n }\n }\n // Show or hide based on the final aligned position\n if (!visible) {\n dataLabel.hide(true);\n dataLabel.placed = false; // don't animate back in\n }\n };\n /**\n * If data labels fall partly outside the plot area, align them back in, in a\n * way that doesn't hide the point.\n *\n * @private\n * @function Highcharts.Series#justifyDataLabel\n * @param {Highcharts.SVGElement} dataLabel\n * @param {Highcharts.DataLabelsOptionsObject} options\n * @param {Highcharts.SVGAttributes} alignAttr\n * @param {Highcharts.BBoxObject} bBox\n * @param {Highcharts.BBoxObject} [alignTo]\n * @param {boolean} [isNew]\n * @return {boolean|undefined}\n */\n Series.prototype.justifyDataLabel = function (dataLabel, options, alignAttr, bBox, alignTo, isNew) {\n var chart = this.chart, align = options.align, verticalAlign = options.verticalAlign, off, justified, padding = dataLabel.box ? 0 : (dataLabel.padding || 0);\n // Off left\n off = alignAttr.x + padding;\n if (off < 0) {\n if (align === 'right') {\n options.align = 'left';\n options.inside = true;\n }\n else {\n options.x = -off;\n }\n justified = true;\n }\n // Off right\n off = alignAttr.x + bBox.width - padding;\n if (off > chart.plotWidth) {\n if (align === 'left') {\n options.align = 'right';\n options.inside = true;\n }\n else {\n options.x = chart.plotWidth - off;\n }\n justified = true;\n }\n // Off top\n off = alignAttr.y + padding;\n if (off < 0) {\n if (verticalAlign === 'bottom') {\n options.verticalAlign = 'top';\n options.inside = true;\n }\n else {\n options.y = -off;\n }\n justified = true;\n }\n // Off bottom\n off = alignAttr.y + bBox.height - padding;\n if (off > chart.plotHeight) {\n if (verticalAlign === 'top') {\n options.verticalAlign = 'bottom';\n options.inside = true;\n }\n else {\n options.y = chart.plotHeight - off;\n }\n justified = true;\n }\n if (justified) {\n dataLabel.placed = !isNew;\n dataLabel.align(options, null, alignTo);\n }\n return justified;\n };\n if (seriesTypes.pie) {\n seriesTypes.pie.prototype.dataLabelPositioners = {\n // Based on the value computed in Highcharts' distribute algorithm.\n radialDistributionY: function (point) {\n return point.top + point.distributeBox.pos;\n },\n // get the x - use the natural x position for labels near the\n // top and bottom, to prevent the top and botton slice\n // connectors from touching each other on either side\n // Based on the value computed in Highcharts' distribute algorithm.\n radialDistributionX: function (series, point, y, naturalY) {\n return series.getX(y < point.top + 2 || y > point.bottom - 2 ?\n naturalY :\n y, point.half, point);\n },\n // dataLabels.distance determines the x position of the label\n justify: function (point, radius, seriesCenter) {\n return seriesCenter[0] + (point.half ? -1 : 1) *\n (radius + point.labelDistance);\n },\n // Left edges of the left-half labels touch the left edge of the plot\n // area. Right edges of the right-half labels touch the right edge of\n // the plot area.\n alignToPlotEdges: function (dataLabel, half, plotWidth, plotLeft) {\n var dataLabelWidth = dataLabel.getBBox().width;\n return half ? dataLabelWidth + plotLeft :\n plotWidth - dataLabelWidth - plotLeft;\n },\n // Connectors of each side end in the same x position. Labels are\n // aligned to them. Left edge of the widest left-half label touches the\n // left edge of the plot area. Right edge of the widest right-half label\n // touches the right edge of the plot area.\n alignToConnectors: function (points, half, plotWidth, plotLeft) {\n var maxDataLabelWidth = 0, dataLabelWidth;\n // find widest data label\n points.forEach(function (point) {\n dataLabelWidth = point.dataLabel.getBBox().width;\n if (dataLabelWidth > maxDataLabelWidth) {\n maxDataLabelWidth = dataLabelWidth;\n }\n });\n return half ? maxDataLabelWidth + plotLeft :\n plotWidth - maxDataLabelWidth - plotLeft;\n }\n };\n /**\n * Override the base drawDataLabels method by pie specific functionality\n *\n * @private\n * @function Highcharts.seriesTypes.pie#drawDataLabels\n * @return {void}\n */\n seriesTypes.pie.prototype.drawDataLabels = function () {\n var series = this, data = series.data, point, chart = series.chart, options = series.options.dataLabels, connectorPadding = options.connectorPadding, connectorWidth, plotWidth = chart.plotWidth, plotHeight = chart.plotHeight, plotLeft = chart.plotLeft, maxWidth = Math.round(chart.chartWidth / 3), connector, seriesCenter = series.center, radius = seriesCenter[2] / 2, centerY = seriesCenter[1], dataLabel, dataLabelWidth, \n // labelPos,\n labelPosition, labelHeight, \n // divide the points into right and left halves for anti collision\n halves = [\n [],\n [] // left\n ], x, y, visibility, j, overflow = [0, 0, 0, 0], // top, right, bottom, left\n dataLabelPositioners = series.dataLabelPositioners, pointDataLabelsOptions;\n // get out if not enabled\n if (!series.visible ||\n (!options.enabled &&\n !series._hasPointLabels)) {\n return;\n }\n // Reset all labels that have been shortened\n data.forEach(function (point) {\n if (point.dataLabel && point.visible && point.dataLabel.shortened) {\n point.dataLabel\n .attr({\n width: 'auto'\n }).css({\n width: 'auto',\n textOverflow: 'clip'\n });\n point.dataLabel.shortened = false;\n }\n });\n // run parent method\n Series.prototype.drawDataLabels.apply(series);\n data.forEach(function (point) {\n if (point.dataLabel) {\n if (point.visible) { // #407, #2510\n // Arrange points for detection collision\n halves[point.half].push(point);\n // Reset positions (#4905)\n point.dataLabel._pos = null;\n // Avoid long labels squeezing the pie size too far down\n if (!defined(options.style.width) &&\n !defined(point.options.dataLabels &&\n point.options.dataLabels.style &&\n point.options.dataLabels.style.width)) {\n if (point.dataLabel.getBBox().width > maxWidth) {\n point.dataLabel.css({\n // Use a fraction of the maxWidth to avoid\n // wrapping close to the end of the string.\n width: maxWidth * 0.7\n });\n point.dataLabel.shortened = true;\n }\n }\n }\n else {\n point.dataLabel = point.dataLabel.destroy();\n // Workaround to make pies destroy multiple datalabels\n // correctly. This logic needs rewriting to support multiple\n // datalabels fully.\n if (point.dataLabels && point.dataLabels.length === 1) {\n delete point.dataLabels;\n }\n }\n }\n });\n /* Loop over the points in each half, starting from the top and bottom\n * of the pie to detect overlapping labels.\n */\n halves.forEach(function (points, i) {\n var top, bottom, length = points.length, positions = [], naturalY, sideOverflow, size, distributionLength;\n if (!length) {\n return;\n }\n // Sort by angle\n series.sortByAngle(points, i - 0.5);\n // Only do anti-collision when we have dataLabels outside the pie\n // and have connectors. (#856)\n if (series.maxLabelDistance > 0) {\n top = Math.max(0, centerY - radius - series.maxLabelDistance);\n bottom = Math.min(centerY + radius + series.maxLabelDistance, chart.plotHeight);\n points.forEach(function (point) {\n // check if specific points' label is outside the pie\n if (point.labelDistance > 0 && point.dataLabel) {\n // point.top depends on point.labelDistance value\n // Used for calculation of y value in getX method\n point.top = Math.max(0, centerY - radius - point.labelDistance);\n point.bottom = Math.min(centerY + radius + point.labelDistance, chart.plotHeight);\n size = point.dataLabel.getBBox().height || 21;\n // point.positionsIndex is needed for getting index of\n // parameter related to specific point inside positions\n // array - not every point is in positions array.\n point.distributeBox = {\n target: point.labelPosition.natural.y -\n point.top + size / 2,\n size: size,\n rank: point.y\n };\n positions.push(point.distributeBox);\n }\n });\n distributionLength = bottom + size - top;\n H.distribute(positions, distributionLength, distributionLength / 5);\n }\n // Now the used slots are sorted, fill them up sequentially\n for (j = 0; j < length; j++) {\n point = points[j];\n // labelPos = point.labelPos;\n labelPosition = point.labelPosition;\n dataLabel = point.dataLabel;\n visibility = point.visible === false ? 'hidden' : 'inherit';\n naturalY = labelPosition.natural.y;\n y = naturalY;\n if (positions && defined(point.distributeBox)) {\n if (point.distributeBox.pos === undefined) {\n visibility = 'hidden';\n }\n else {\n labelHeight = point.distributeBox.size;\n // Find label's y position\n y = dataLabelPositioners\n .radialDistributionY(point);\n }\n }\n // It is needed to delete point.positionIndex for\n // dynamically added points etc.\n delete point.positionIndex; // @todo unused\n // Find label's x position\n // justify is undocumented in the API - preserve support for it\n if (options.justify) {\n x = dataLabelPositioners.justify(point, radius, seriesCenter);\n }\n else {\n switch (options.alignTo) {\n case 'connectors':\n x = dataLabelPositioners.alignToConnectors(points, i, plotWidth, plotLeft);\n break;\n case 'plotEdges':\n x = dataLabelPositioners.alignToPlotEdges(dataLabel, i, plotWidth, plotLeft);\n break;\n default:\n x = dataLabelPositioners.radialDistributionX(series, point, y, naturalY);\n }\n }\n // Record the placement and visibility\n dataLabel._attr = {\n visibility: visibility,\n align: labelPosition.alignment\n };\n dataLabel._pos = {\n x: (x +\n options.x +\n ({\n left: connectorPadding,\n right: -connectorPadding\n }[labelPosition.alignment] || 0)),\n // 10 is for the baseline (label vs text)\n y: y + options.y - 10\n };\n // labelPos.x = x;\n // labelPos.y = y;\n labelPosition.final.x = x;\n labelPosition.final.y = y;\n // Detect overflowing data labels\n if (pick(options.crop, true)) {\n dataLabelWidth = dataLabel.getBBox().width;\n sideOverflow = null;\n // Overflow left\n if (x - dataLabelWidth < connectorPadding &&\n i === 1 // left half\n ) {\n sideOverflow = Math.round(dataLabelWidth - x + connectorPadding);\n overflow[3] = Math.max(sideOverflow, overflow[3]);\n // Overflow right\n }\n else if (x + dataLabelWidth > plotWidth - connectorPadding &&\n i === 0 // right half\n ) {\n sideOverflow = Math.round(x + dataLabelWidth - plotWidth + connectorPadding);\n overflow[1] = Math.max(sideOverflow, overflow[1]);\n }\n // Overflow top\n if (y - labelHeight / 2 < 0) {\n overflow[0] = Math.max(Math.round(-y + labelHeight / 2), overflow[0]);\n // Overflow left\n }\n else if (y + labelHeight / 2 > plotHeight) {\n overflow[2] = Math.max(Math.round(y + labelHeight / 2 - plotHeight), overflow[2]);\n }\n dataLabel.sideOverflow = sideOverflow;\n }\n } // for each point\n }); // for each half\n // Do not apply the final placement and draw the connectors until we\n // have verified that labels are not spilling over.\n if (arrayMax(overflow) === 0 ||\n this.verifyDataLabelOverflow(overflow)) {\n // Place the labels in the final position\n this.placeDataLabels();\n this.points.forEach(function (point) {\n // #8864: every connector can have individual options\n pointDataLabelsOptions =\n merge(options, point.options.dataLabels);\n connectorWidth =\n pick(pointDataLabelsOptions.connectorWidth, 1);\n // Draw the connector\n if (connectorWidth) {\n var isNew;\n connector = point.connector;\n dataLabel = point.dataLabel;\n if (dataLabel &&\n dataLabel._pos &&\n point.visible &&\n point.labelDistance > 0) {\n visibility = dataLabel._attr.visibility;\n isNew = !connector;\n if (isNew) {\n point.connector = connector = chart.renderer\n .path()\n .addClass('highcharts-data-label-connector ' +\n ' highcharts-color-' + point.colorIndex +\n (point.className ?\n ' ' + point.className :\n ''))\n .add(series.dataLabelsGroup);\n if (!chart.styledMode) {\n connector.attr({\n 'stroke-width': connectorWidth,\n 'stroke': (pointDataLabelsOptions.connectorColor ||\n point.color ||\n '#666666')\n });\n }\n }\n connector[isNew ? 'attr' : 'animate']({\n d: point.getConnectorPath()\n });\n connector.attr('visibility', visibility);\n }\n else if (connector) {\n point.connector = connector.destroy();\n }\n }\n });\n }\n };\n /**\n * Extendable method for getting the path of the connector between the data\n * label and the pie slice.\n *\n * @private\n * @function Highcharts.seriesTypes.pie#connectorPath\n *\n * @param {*} labelPos\n *\n * @return {Highcharts.SVGPathArray}\n */\n // TODO: depracated - remove it\n /*\n seriesTypes.pie.prototype.connectorPath = function (labelPos) {\n var x = labelPos.x,\n y = labelPos.y;\n return pick(this.options.dataLabels.softConnector, true) ? [\n 'M',\n // end of the string at the label\n x + (labelPos[6] === 'left' ? 5 : -5), y,\n 'C',\n x, y, // first break, next to the label\n 2 * labelPos[2] - labelPos[4], 2 * labelPos[3] - labelPos[5],\n labelPos[2], labelPos[3], // second break\n 'L',\n labelPos[4], labelPos[5] // base\n ] : [\n 'M',\n // end of the string at the label\n x + (labelPos[6] === 'left' ? 5 : -5), y,\n 'L',\n labelPos[2], labelPos[3], // second break\n 'L',\n labelPos[4], labelPos[5] // base\n ];\n };\n */\n /**\n * Perform the final placement of the data labels after we have verified\n * that they fall within the plot area.\n *\n * @private\n * @function Highcharts.seriesTypes.pie#placeDataLabels\n * @return {void}\n */\n seriesTypes.pie.prototype.placeDataLabels = function () {\n this.points.forEach(function (point) {\n var dataLabel = point.dataLabel, _pos;\n if (dataLabel && point.visible) {\n _pos = dataLabel._pos;\n if (_pos) {\n // Shorten data labels with ellipsis if they still overflow\n // after the pie has reached minSize (#223).\n if (dataLabel.sideOverflow) {\n dataLabel._attr.width =\n Math.max(dataLabel.getBBox().width -\n dataLabel.sideOverflow, 0);\n dataLabel.css({\n width: dataLabel._attr.width + 'px',\n textOverflow: ((this.options.dataLabels.style || {})\n .textOverflow ||\n 'ellipsis')\n });\n dataLabel.shortened = true;\n }\n dataLabel.attr(dataLabel._attr);\n dataLabel[dataLabel.moved ? 'animate' : 'attr'](_pos);\n dataLabel.moved = true;\n }\n else if (dataLabel) {\n dataLabel.attr({ y: -9999 });\n }\n }\n // Clear for update\n delete point.distributeBox;\n }, this);\n };\n seriesTypes.pie.prototype.alignDataLabel = noop;\n /**\n * Verify whether the data labels are allowed to draw, or we should run more\n * translation and data label positioning to keep them inside the plot area.\n * Returns true when data labels are ready to draw.\n *\n * @private\n * @function Highcharts.seriesTypes.pie#verifyDataLabelOverflow\n * @param {Array} overflow\n * @return {boolean}\n */\n seriesTypes.pie.prototype.verifyDataLabelOverflow = function (overflow) {\n var center = this.center, options = this.options, centerOption = options.center, minSize = options.minSize || 80, newSize = minSize, \n // If a size is set, return true and don't try to shrink the pie\n // to fit the labels.\n ret = options.size !== null;\n if (!ret) {\n // Handle horizontal size and center\n if (centerOption[0] !== null) { // Fixed center\n newSize = Math.max(center[2] -\n Math.max(overflow[1], overflow[3]), minSize);\n }\n else { // Auto center\n newSize = Math.max(\n // horizontal overflow\n center[2] - overflow[1] - overflow[3], minSize);\n // horizontal center\n center[0] += (overflow[3] - overflow[1]) / 2;\n }\n // Handle vertical size and center\n if (centerOption[1] !== null) { // Fixed center\n newSize = Math.max(Math.min(newSize, center[2] -\n Math.max(overflow[0], overflow[2])), minSize);\n }\n else { // Auto center\n newSize = Math.max(Math.min(newSize, \n // vertical overflow\n center[2] - overflow[0] - overflow[2]), minSize);\n // vertical center\n center[1] += (overflow[0] - overflow[2]) / 2;\n }\n // If the size must be decreased, we need to run translate and\n // drawDataLabels again\n if (newSize < center[2]) {\n center[2] = newSize;\n center[3] = Math.min(// #3632\n relativeLength(options.innerSize || 0, newSize), newSize);\n this.translate(center);\n if (this.drawDataLabels) {\n this.drawDataLabels();\n }\n // Else, return true to indicate that the pie and its labels is\n // within the plot area\n }\n else {\n ret = true;\n }\n }\n return ret;\n };\n }\n if (seriesTypes.column) {\n /**\n * Override the basic data label alignment by adjusting for the position of\n * the column.\n *\n * @private\n * @function Highcharts.seriesTypes.column#alignDataLabel\n * @param {Highcharts.Point} point\n * @param {Highcharts.SVGElement} dataLabel\n * @param {Highcharts.DataLabelsOptionsObject} options\n * @param {Highcharts.BBoxObject} alignTo\n * @param {boolean} [isNew]\n * @return {void}\n */\n seriesTypes.column.prototype.alignDataLabel = function (point, dataLabel, options, alignTo, isNew) {\n var inverted = this.chart.inverted, series = point.series, \n // data label box for alignment\n dlBox = point.dlBox || point.shapeArgs, below = pick(point.below, // range series\n point.plotY >\n pick(this.translatedThreshold, series.yAxis.len)), \n // draw it inside the box?\n inside = pick(options.inside, !!this.options.stacking), overshoot;\n // Align to the column itself, or the top of it\n if (dlBox) { // Area range uses this method but not alignTo\n alignTo = merge(dlBox);\n if (alignTo.y < 0) {\n alignTo.height += alignTo.y;\n alignTo.y = 0;\n }\n overshoot = alignTo.y + alignTo.height - series.yAxis.len;\n if (overshoot > 0) {\n alignTo.height -= overshoot;\n }\n if (inverted) {\n alignTo = {\n x: series.yAxis.len - alignTo.y - alignTo.height,\n y: series.xAxis.len - alignTo.x - alignTo.width,\n width: alignTo.height,\n height: alignTo.width\n };\n }\n // Compute the alignment box\n if (!inside) {\n if (inverted) {\n alignTo.x += below ? 0 : alignTo.width;\n alignTo.width = 0;\n }\n else {\n alignTo.y += below ? alignTo.height : 0;\n alignTo.height = 0;\n }\n }\n }\n // When alignment is undefined (typically columns and bars), display the\n // individual point below or above the point depending on the threshold\n options.align = pick(options.align, !inverted || inside ? 'center' : below ? 'right' : 'left');\n options.verticalAlign = pick(options.verticalAlign, inverted || inside ? 'middle' : below ? 'top' : 'bottom');\n // Call the parent method\n Series.prototype.alignDataLabel.call(this, point, dataLabel, options, alignTo, isNew);\n // If label was justified and we have contrast, set it:\n if (options.inside && point.contrastColor) {\n dataLabel.css({\n color: point.contrastColor\n });\n }\n };\n }\n\n });\n _registerModule(_modules, 'modules/overlapping-datalabels.src.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * Highcharts module to hide overlapping data labels.\n * This module is included in Highcharts.\n *\n * (c) 2009-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n var isArray = U.isArray, objectEach = U.objectEach, pick = U.pick;\n var Chart = H.Chart, addEvent = H.addEvent, fireEvent = H.fireEvent;\n /* eslint-disable no-invalid-this */\n // Collect potensial overlapping data labels. Stack labels probably don't need\n // to be considered because they are usually accompanied by data labels that lie\n // inside the columns.\n addEvent(Chart, 'render', function collectAndHide() {\n var labels = [];\n // Consider external label collectors\n (this.labelCollectors || []).forEach(function (collector) {\n labels = labels.concat(collector());\n });\n (this.yAxis || []).forEach(function (yAxis) {\n if (yAxis.options.stackLabels &&\n !yAxis.options.stackLabels.allowOverlap) {\n objectEach(yAxis.stacks, function (stack) {\n objectEach(stack, function (stackItem) {\n labels.push(stackItem.label);\n });\n });\n }\n });\n (this.series || []).forEach(function (series) {\n var dlOptions = series.options.dataLabels;\n if (series.visible &&\n !(dlOptions.enabled === false && !series._hasPointLabels)) { // #3866\n series.points.forEach(function (point) {\n if (point.visible) {\n var dataLabels = (isArray(point.dataLabels) ?\n point.dataLabels :\n (point.dataLabel ? [point.dataLabel] : []));\n dataLabels.forEach(function (label) {\n var options = label.options;\n label.labelrank = pick(options.labelrank, point.labelrank, point.shapeArgs && point.shapeArgs.height); // #4118\n if (!options.allowOverlap) {\n labels.push(label);\n }\n });\n }\n });\n }\n });\n this.hideOverlappingLabels(labels);\n });\n /**\n * Hide overlapping labels. Labels are moved and faded in and out on zoom to\n * provide a smooth visual imression.\n *\n * @private\n * @function Highcharts.Chart#hideOverlappingLabels\n * @param {Array} labels\n * Rendered data labels\n * @return {void}\n * @requires modules/overlapping-datalabels\n */\n Chart.prototype.hideOverlappingLabels = function (labels) {\n var chart = this, len = labels.length, ren = chart.renderer, label, i, j, label1, label2, box1, box2, isIntersectRect = function (box1, box2) {\n return !(box2.x > box1.x + box1.width ||\n box2.x + box2.width < box1.x ||\n box2.y > box1.y + box1.height ||\n box2.y + box2.height < box1.y);\n }, \n // Get the box with its position inside the chart, as opposed to getBBox\n // that only reports the position relative to the parent.\n getAbsoluteBox = function (label) {\n var pos, parent, bBox, \n // Substract the padding if no background or border (#4333)\n padding = label.box ? 0 : (label.padding || 0), lineHeightCorrection = 0;\n if (label &&\n (!label.alignAttr || label.placed)) {\n var x = label.attr('x');\n var y = label.attr('y');\n if (typeof x === 'number' && typeof y === 'number') {\n pos = { x: x, y: y };\n }\n else {\n pos = label.alignAttr;\n }\n parent = label.parentGroup;\n // Get width and height if pure text nodes (stack labels)\n if (!label.width) {\n bBox = label.getBBox();\n label.width = bBox.width;\n label.height = bBox.height;\n // Labels positions are computed from top left corner, so\n // we need to substract the text height from text nodes too.\n lineHeightCorrection = ren\n .fontMetrics(null, label.element).h;\n }\n return {\n x: pos.x + (parent.translateX || 0) + padding,\n y: pos.y + (parent.translateY || 0) + padding -\n lineHeightCorrection,\n width: label.width - 2 * padding,\n height: label.height - 2 * padding\n };\n }\n };\n for (i = 0; i < len; i++) {\n label = labels[i];\n if (label) {\n // Mark with initial opacity\n label.oldOpacity = label.opacity;\n label.newOpacity = 1;\n label.absoluteBox = getAbsoluteBox(label);\n }\n }\n // Prevent a situation in a gradually rising slope, that each label will\n // hide the previous one because the previous one always has lower rank.\n labels.sort(function (a, b) {\n return (b.labelrank || 0) - (a.labelrank || 0);\n });\n // Detect overlapping labels\n for (i = 0; i < len; i++) {\n label1 = labels[i];\n box1 = label1 && label1.absoluteBox;\n for (j = i + 1; j < len; ++j) {\n label2 = labels[j];\n box2 = label2 && label2.absoluteBox;\n if (box1 &&\n box2 &&\n label1 !== label2 && // #6465, polar chart with connectEnds\n label1.newOpacity !== 0 &&\n label2.newOpacity !== 0) {\n if (isIntersectRect(box1, box2)) {\n (label1.labelrank < label2.labelrank ? label1 : label2)\n .newOpacity = 0;\n }\n }\n }\n }\n // Hide or show\n labels.forEach(function (label) {\n var complete, newOpacity;\n if (label) {\n newOpacity = label.newOpacity;\n if (label.oldOpacity !== newOpacity) {\n // Make sure the label is completely hidden to avoid catching\n // clicks (#4362)\n if (label.alignAttr && label.placed) { // data labels\n if (newOpacity) {\n label.show(true);\n }\n else {\n complete = function () {\n label.hide(true);\n label.placed = false; // avoid animation from top\n };\n }\n // Animate or set the opacity\n label.alignAttr.opacity = newOpacity;\n label[label.isOld ? 'animate' : 'attr'](label.alignAttr, null, complete);\n fireEvent(chart, 'afterHideOverlappingLabels');\n }\n else { // other labels, tick labels\n label.attr({\n opacity: newOpacity\n });\n }\n }\n label.isOld = true;\n }\n });\n };\n\n });\n _registerModule(_modules, 'parts/Interaction.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * @interface Highcharts.PointEventsOptionsObject\n */ /**\n * Fires when the point is selected either programmatically or following a click\n * on the point. One parameter, `event`, is passed to the function. Returning\n * `false` cancels the operation.\n * @name Highcharts.PointEventsOptionsObject#select\n * @type {Highcharts.PointSelectCallbackFunction|undefined}\n */ /**\n * Fires when the point is unselected either programmatically or following a\n * click on the point. One parameter, `event`, is passed to the function.\n * Returning `false` cancels the operation.\n * @name Highcharts.PointEventsOptionsObject#unselect\n * @type {Highcharts.PointUnselectCallbackFunction|undefined}\n */\n /**\n * Information about the select/unselect event.\n *\n * @interface Highcharts.PointInteractionEventObject\n * @extends global.Event\n */ /**\n * @name Highcharts.PointInteractionEventObject#accumulate\n * @type {boolean}\n */\n /**\n * Gets fired when the point is selected either programmatically or following a\n * click on the point.\n *\n * @callback Highcharts.PointSelectCallbackFunction\n *\n * @param {Highcharts.Point} this\n * Point where the event occured.\n *\n * @param {Highcharts.PointInteractionEventObject} event\n * Event that occured.\n */\n /**\n * Fires when the point is unselected either programmatically or following a\n * click on the point.\n *\n * @callback Highcharts.PointUnselectCallbackFunction\n *\n * @param {Highcharts.Point} this\n * Point where the event occured.\n *\n * @param {Highcharts.PointInteractionEventObject} event\n * Event that occured.\n */\n var defined = U.defined, extend = U.extend, isArray = U.isArray, isObject = U.isObject, objectEach = U.objectEach, pick = U.pick;\n var addEvent = H.addEvent, Chart = H.Chart, createElement = H.createElement, css = H.css, defaultOptions = H.defaultOptions, defaultPlotOptions = H.defaultPlotOptions, fireEvent = H.fireEvent, hasTouch = H.hasTouch, Legend = H.Legend, merge = H.merge, Point = H.Point, Series = H.Series, seriesTypes = H.seriesTypes, svg = H.svg, TrackerMixin;\n /* eslint-disable valid-jsdoc */\n /**\n * TrackerMixin for points and graphs.\n *\n * @private\n * @mixin Highcharts.TrackerMixin\n */\n TrackerMixin = H.TrackerMixin = {\n /**\n * Draw the tracker for a point.\n *\n * @private\n * @function Highcharts.TrackerMixin.drawTrackerPoint\n * @param {Highcharts.Series} this\n * @return {void}\n * @fires Highcharts.Series#event:afterDrawTracker\n */\n drawTrackerPoint: function () {\n var series = this, chart = series.chart, pointer = chart.pointer, onMouseOver = function (e) {\n var point = pointer.getPointFromEvent(e);\n // undefined on graph in scatterchart\n if (point !== undefined) {\n pointer.isDirectTouch = true;\n point.onMouseOver(e);\n }\n }, dataLabels;\n // Add reference to the point\n series.points.forEach(function (point) {\n dataLabels = (isArray(point.dataLabels) ?\n point.dataLabels :\n (point.dataLabel ? [point.dataLabel] : []));\n if (point.graphic) {\n point.graphic.element.point = point;\n }\n dataLabels.forEach(function (dataLabel) {\n if (dataLabel.div) {\n dataLabel.div.point = point;\n }\n else {\n dataLabel.element.point = point;\n }\n });\n });\n // Add the event listeners, we need to do this only once\n if (!series._hasTracking) {\n series.trackerGroups.forEach(function (key) {\n if (series[key]) {\n // we don't always have dataLabelsGroup\n series[key]\n .addClass('highcharts-tracker')\n .on('mouseover', onMouseOver)\n .on('mouseout', function (e) {\n pointer.onTrackerMouseOut(e);\n });\n if (hasTouch) {\n series[key].on('touchstart', onMouseOver);\n }\n if (!chart.styledMode && series.options.cursor) {\n series[key]\n .css(css)\n .css({ cursor: series.options.cursor });\n }\n }\n });\n series._hasTracking = true;\n }\n fireEvent(this, 'afterDrawTracker');\n },\n /**\n * Draw the tracker object that sits above all data labels and markers to\n * track mouse events on the graph or points. For the line type charts\n * the tracker uses the same graphPath, but with a greater stroke width\n * for better control.\n *\n * @private\n * @function Highcharts.TrackerMixin.drawTrackerGraph\n * @param {Highcharts.Series} this\n * @return {void}\n * @fires Highcharts.Series#event:afterDrawTracker\n */\n drawTrackerGraph: function () {\n var series = this, options = series.options, trackByArea = options.trackByArea, trackerPath = [].concat(trackByArea ?\n series.areaPath :\n series.graphPath), trackerPathLength = trackerPath.length, chart = series.chart, pointer = chart.pointer, renderer = chart.renderer, snap = chart.options.tooltip.snap, tracker = series.tracker, i, onMouseOver = function () {\n if (chart.hoverSeries !== series) {\n series.onMouseOver();\n }\n }, \n /*\n * Empirical lowest possible opacities for TRACKER_FILL for an\n * element to stay invisible but clickable\n * IE6: 0.002\n * IE7: 0.002\n * IE8: 0.002\n * IE9: 0.00000000001 (unlimited)\n * IE10: 0.0001 (exporting only)\n * FF: 0.00000000001 (unlimited)\n * Chrome: 0.000001\n * Safari: 0.000001\n * Opera: 0.00000000001 (unlimited)\n */\n TRACKER_FILL = 'rgba(192,192,192,' + (svg ? 0.0001 : 0.002) + ')';\n // Extend end points. A better way would be to use round linecaps,\n // but those are not clickable in VML.\n if (trackerPathLength && !trackByArea) {\n i = trackerPathLength + 1;\n while (i--) {\n if (trackerPath[i] === 'M') {\n // extend left side\n trackerPath.splice(i + 1, 0, trackerPath[i + 1] - snap, trackerPath[i + 2], 'L');\n }\n if ((i && trackerPath[i] === 'M') ||\n i === trackerPathLength) {\n // extend right side\n trackerPath.splice(i, 0, 'L', trackerPath[i - 2] + snap, trackerPath[i - 1]);\n }\n }\n }\n // draw the tracker\n if (tracker) {\n tracker.attr({ d: trackerPath });\n }\n else if (series.graph) { // create\n series.tracker = renderer.path(trackerPath)\n .attr({\n visibility: series.visible ? 'visible' : 'hidden',\n zIndex: 2\n })\n .addClass(trackByArea ?\n 'highcharts-tracker-area' :\n 'highcharts-tracker-line')\n .add(series.group);\n if (!chart.styledMode) {\n series.tracker.attr({\n 'stroke-linejoin': 'round',\n stroke: TRACKER_FILL,\n fill: trackByArea ? TRACKER_FILL : 'none',\n 'stroke-width': series.graph.strokeWidth() +\n (trackByArea ? 0 : 2 * snap)\n });\n }\n // The tracker is added to the series group, which is clipped, but\n // is covered by the marker group. So the marker group also needs to\n // capture events.\n [series.tracker, series.markerGroup].forEach(function (tracker) {\n tracker.addClass('highcharts-tracker')\n .on('mouseover', onMouseOver)\n .on('mouseout', function (e) {\n pointer.onTrackerMouseOut(e);\n });\n if (options.cursor && !chart.styledMode) {\n tracker.css({ cursor: options.cursor });\n }\n if (hasTouch) {\n tracker.on('touchstart', onMouseOver);\n }\n });\n }\n fireEvent(this, 'afterDrawTracker');\n }\n };\n /* End TrackerMixin */\n // Add tracking event listener to the series group, so the point graphics\n // themselves act as trackers\n if (seriesTypes.column) {\n /**\n * @private\n * @borrows Highcharts.TrackerMixin.drawTrackerPoint as Highcharts.seriesTypes.column#drawTracker\n */\n seriesTypes.column.prototype.drawTracker = TrackerMixin.drawTrackerPoint;\n }\n if (seriesTypes.pie) {\n /**\n * @private\n * @borrows Highcharts.TrackerMixin.drawTrackerPoint as Highcharts.seriesTypes.pie#drawTracker\n */\n seriesTypes.pie.prototype.drawTracker = TrackerMixin.drawTrackerPoint;\n }\n if (seriesTypes.scatter) {\n /**\n * @private\n * @borrows Highcharts.TrackerMixin.drawTrackerPoint as Highcharts.seriesTypes.scatter#drawTracker\n */\n seriesTypes.scatter.prototype.drawTracker = TrackerMixin.drawTrackerPoint;\n }\n // Extend Legend for item events.\n extend(Legend.prototype, {\n /**\n * @private\n * @function Highcharts.Legend#setItemEvents\n * @param {Highcharts.BubbleLegend|Highcharts.Point|Highcharts.Series} item\n * @param {Highcharts.SVGElement} legendItem\n * @param {boolean} [useHTML=false]\n * @return {void}\n * @fires Highcharts.Point#event:legendItemClick\n * @fires Highcharts.Series#event:legendItemClick\n */\n setItemEvents: function (item, legendItem, useHTML) {\n var legend = this, boxWrapper = legend.chart.renderer.boxWrapper, isPoint = item instanceof Point, activeClass = 'highcharts-legend-' +\n (isPoint ? 'point' : 'series') + '-active', styledMode = legend.chart.styledMode;\n // Set the events on the item group, or in case of useHTML, the item\n // itself (#1249)\n (useHTML ? legendItem : item.legendGroup)\n .on('mouseover', function () {\n if (item.visible) {\n legend.allItems.forEach(function (inactiveItem) {\n if (item !== inactiveItem) {\n inactiveItem.setState('inactive', !isPoint);\n }\n });\n }\n item.setState('hover');\n // A CSS class to dim or hide other than the hovered series.\n // Works only if hovered series is visible (#10071).\n if (item.visible) {\n boxWrapper.addClass(activeClass);\n }\n if (!styledMode) {\n legendItem.css(legend.options.itemHoverStyle);\n }\n })\n .on('mouseout', function () {\n if (!legend.chart.styledMode) {\n legendItem.css(merge(item.visible ?\n legend.itemStyle :\n legend.itemHiddenStyle));\n }\n legend.allItems.forEach(function (inactiveItem) {\n if (item !== inactiveItem) {\n inactiveItem.setState('', !isPoint);\n }\n });\n // A CSS class to dim or hide other than the hovered series\n boxWrapper.removeClass(activeClass);\n item.setState();\n })\n .on('click', function (event) {\n var strLegendItemClick = 'legendItemClick', fnLegendItemClick = function () {\n if (item.setVisible) {\n item.setVisible();\n }\n // Reset inactive state\n legend.allItems.forEach(function (inactiveItem) {\n if (item !== inactiveItem) {\n inactiveItem.setState(item.visible ? 'inactive' : '', !isPoint);\n }\n });\n };\n // A CSS class to dim or hide other than the hovered series.\n // Event handling in iOS causes the activeClass to be added\n // prior to click in some cases (#7418).\n boxWrapper.removeClass(activeClass);\n // Pass over the click/touch event. #4.\n event = {\n browserEvent: event\n };\n // click the name or symbol\n if (item.firePointEvent) { // point\n item.firePointEvent(strLegendItemClick, event, fnLegendItemClick);\n }\n else {\n fireEvent(item, strLegendItemClick, event, fnLegendItemClick);\n }\n });\n },\n /**\n * @private\n * @function Highcharts.Legend#createCheckboxForItem\n * @param {Highcharts.BubbleLegend|Highcharts.Point|Highcharts.Series} item\n * @return {void}\n * @fires Highcharts.Series#event:checkboxClick\n */\n createCheckboxForItem: function (item) {\n var legend = this;\n item.checkbox = createElement('input', {\n type: 'checkbox',\n className: 'highcharts-legend-checkbox',\n checked: item.selected,\n defaultChecked: item.selected // required by IE7\n }, legend.options.itemCheckboxStyle, legend.chart.container);\n addEvent(item.checkbox, 'click', function (event) {\n var target = event.target;\n fireEvent(item.series || item, 'checkboxClick', {\n checked: target.checked,\n item: item\n }, function () {\n item.select();\n });\n });\n }\n });\n // Extend the Chart object with interaction\n extend(Chart.prototype, /** @lends Chart.prototype */ {\n /**\n * Display the zoom button.\n *\n * @private\n * @function Highcharts.Chart#showResetZoom\n * @return {void}\n * @fires Highcharts.Chart#event:beforeShowResetZoom\n */\n showResetZoom: function () {\n var chart = this, lang = defaultOptions.lang, btnOptions = chart.options.chart.resetZoomButton, theme = btnOptions.theme, states = theme.states, alignTo = (btnOptions.relativeTo === 'chart' ||\n btnOptions.relativeTo === 'spaceBox' ?\n null :\n 'plotBox');\n /**\n * @private\n */\n function zoomOut() {\n chart.zoomOut();\n }\n fireEvent(this, 'beforeShowResetZoom', null, function () {\n chart.resetZoomButton = chart.renderer\n .button(lang.resetZoom, null, null, zoomOut, theme, states && states.hover)\n .attr({\n align: btnOptions.position.align,\n title: lang.resetZoomTitle\n })\n .addClass('highcharts-reset-zoom')\n .add()\n .align(btnOptions.position, false, alignTo);\n });\n fireEvent(this, 'afterShowResetZoom');\n },\n /**\n * Zoom the chart out after a user has zoomed in. See also\n * [Axis.setExtremes](/class-reference/Highcharts.Axis#setExtremes).\n *\n * @function Highcharts.Chart#zoomOut\n * @return {void}\n * @fires Highcharts.Chart#event:selection\n */\n zoomOut: function () {\n fireEvent(this, 'selection', { resetSelection: true }, this.zoom);\n },\n /**\n * Zoom into a given portion of the chart given by axis coordinates.\n *\n * @private\n * @function Highcharts.Chart#zoom\n * @param {Highcharts.SelectEventObject} event\n * @return {void}\n */\n zoom: function (event) {\n var chart = this, hasZoomed, pointer = chart.pointer, displayButton = false, mouseDownPos = chart.inverted ? pointer.mouseDownX : pointer.mouseDownY, resetZoomButton;\n // If zoom is called with no arguments, reset the axes\n if (!event || event.resetSelection) {\n chart.axes.forEach(function (axis) {\n hasZoomed = axis.zoom();\n });\n pointer.initiated = false; // #6804\n }\n else { // else, zoom in on all axes\n event.xAxis.concat(event.yAxis).forEach(function (axisData) {\n var axis = axisData.axis, axisStartPos = chart.inverted ? axis.left : axis.top, axisEndPos = chart.inverted ?\n axisStartPos + axis.width : axisStartPos + axis.height, isXAxis = axis.isXAxis, isWithinPane = false;\n // Check if zoomed area is within the pane (#1289).\n // In case of multiple panes only one pane should be zoomed.\n if ((!isXAxis &&\n mouseDownPos >= axisStartPos &&\n mouseDownPos <= axisEndPos) ||\n isXAxis ||\n !defined(mouseDownPos)) {\n isWithinPane = true;\n }\n // don't zoom more than minRange\n if (pointer[isXAxis ? 'zoomX' : 'zoomY'] && isWithinPane) {\n hasZoomed = axis.zoom(axisData.min, axisData.max);\n if (axis.displayBtn) {\n displayButton = true;\n }\n }\n });\n }\n // Show or hide the Reset zoom button\n resetZoomButton = chart.resetZoomButton;\n if (displayButton && !resetZoomButton) {\n chart.showResetZoom();\n }\n else if (!displayButton && isObject(resetZoomButton)) {\n chart.resetZoomButton = resetZoomButton.destroy();\n }\n // Redraw\n if (hasZoomed) {\n chart.redraw(pick(chart.options.chart.animation, event && event.animation, chart.pointCount < 100));\n }\n },\n /**\n * Pan the chart by dragging the mouse across the pane. This function is\n * called on mouse move, and the distance to pan is computed from chartX\n * compared to the first chartX position in the dragging operation.\n *\n * @private\n * @function Highcharts.Chart#pan\n * @param {Highcharts.PointerEventObject} e\n * @param {string} panning\n * @return {void}\n */\n pan: function (e, panning) {\n var chart = this, hoverPoints = chart.hoverPoints, doRedraw;\n fireEvent(this, 'pan', { originalEvent: e }, function () {\n // remove active points for shared tooltip\n if (hoverPoints) {\n hoverPoints.forEach(function (point) {\n point.setState();\n });\n }\n // xy is used in maps\n (panning === 'xy' ? [1, 0] : [1]).forEach(function (isX) {\n var axis = chart[isX ? 'xAxis' : 'yAxis'][0], horiz = axis.horiz, mousePos = e[horiz ? 'chartX' : 'chartY'], mouseDown = horiz ? 'mouseDownX' : 'mouseDownY', startPos = chart[mouseDown], halfPointRange = (axis.pointRange || 0) / 2, pointRangeDirection = (axis.reversed && !chart.inverted) ||\n (!axis.reversed && chart.inverted) ?\n -1 :\n 1, extremes = axis.getExtremes(), panMin = axis.toValue(startPos - mousePos, true) +\n halfPointRange * pointRangeDirection, panMax = axis.toValue(startPos + axis.len - mousePos, true) -\n halfPointRange * pointRangeDirection, flipped = panMax < panMin, newMin = flipped ? panMax : panMin, newMax = flipped ? panMin : panMax, paddedMin = Math.min(extremes.dataMin, halfPointRange ?\n extremes.min :\n axis.toValue(axis.toPixels(extremes.min) -\n axis.minPixelPadding)), paddedMax = Math.max(extremes.dataMax, halfPointRange ?\n extremes.max :\n axis.toValue(axis.toPixels(extremes.max) +\n axis.minPixelPadding)), spill;\n // If the new range spills over, either to the min or max,\n // adjust the new range.\n spill = paddedMin - newMin;\n if (spill > 0) {\n newMax += spill;\n newMin = paddedMin;\n }\n spill = newMax - paddedMax;\n if (spill > 0) {\n newMax = paddedMax;\n newMin -= spill;\n }\n // Set new extremes if they are actually new\n if (axis.series.length &&\n newMin !== extremes.min &&\n newMax !== extremes.max) {\n axis.setExtremes(newMin, newMax, false, false, { trigger: 'pan' });\n doRedraw = true;\n }\n // set new reference for next run:\n chart[mouseDown] = mousePos;\n });\n if (doRedraw) {\n chart.redraw(false);\n }\n css(chart.container, { cursor: 'move' });\n });\n }\n });\n // Extend the Point object with interaction\n extend(Point.prototype, /** @lends Highcharts.Point.prototype */ {\n /**\n * Toggle the selection status of a point.\n *\n * @see Highcharts.Chart#getSelectedPoints\n *\n * @sample highcharts/members/point-select/\n * Select a point from a button\n * @sample highcharts/chart/events-selection-points/\n * Select a range of points through a drag selection\n * @sample maps/series/data-id/\n * Select a point in Highmaps\n *\n * @function Highcharts.Point#select\n *\n * @param {boolean} [selected]\n * When `true`, the point is selected. When `false`, the point is\n * unselected. When `null` or `undefined`, the selection state is\n * toggled.\n *\n * @param {boolean} [accumulate=false]\n * When `true`, the selection is added to other selected points.\n * When `false`, other selected points are deselected. Internally in\n * Highcharts, when\n * [allowPointSelect](http://api.highcharts.com/highcharts/plotOptions.series.allowPointSelect)\n * is `true`, selected points are accumulated on Control, Shift or\n * Cmd clicking the point.\n *\n * @return {void}\n *\n * @fires Highcharts.Point#event:select\n * @fires Highcharts.Point#event:unselect\n */\n select: function (selected, accumulate) {\n var point = this, series = point.series, chart = series.chart;\n selected = pick(selected, !point.selected);\n this.selectedStaging = selected;\n // fire the event with the default handler\n point.firePointEvent(selected ? 'select' : 'unselect', { accumulate: accumulate }, function () {\n /**\n * Whether the point is selected or not.\n *\n * @see Point#select\n * @see Chart#getSelectedPoints\n *\n * @name Highcharts.Point#selected\n * @type {boolean}\n */\n point.selected = point.options.selected = selected;\n series.options.data[series.data.indexOf(point)] =\n point.options;\n point.setState(selected && 'select');\n // unselect all other points unless Ctrl or Cmd + click\n if (!accumulate) {\n chart.getSelectedPoints().forEach(function (loopPoint) {\n var loopSeries = loopPoint.series;\n if (loopPoint.selected && loopPoint !== point) {\n loopPoint.selected = loopPoint.options.selected =\n false;\n loopSeries.options.data[loopSeries.data.indexOf(loopPoint)] = loopPoint.options;\n // Programatically selecting a point should restore\n // normal state, but when click happened on other\n // point, set inactive state to match other points\n loopPoint.setState(chart.hoverPoints &&\n loopSeries.options.inactiveOtherPoints ?\n 'inactive' : '');\n loopPoint.firePointEvent('unselect');\n }\n });\n }\n });\n delete this.selectedStaging;\n },\n /**\n * Runs on mouse over the point. Called internally from mouse and touch\n * events.\n *\n * @function Highcharts.Point#onMouseOver\n *\n * @param {Highcharts.PointerEventObject} [e]\n * The event arguments.\n *\n * @return {void}\n */\n onMouseOver: function (e) {\n var point = this, series = point.series, chart = series.chart, pointer = chart.pointer;\n e = e ?\n pointer.normalize(e) :\n // In cases where onMouseOver is called directly without an event\n pointer.getChartCoordinatesFromPoint(point, chart.inverted);\n pointer.runPointActions(e, point);\n },\n /**\n * Runs on mouse out from the point. Called internally from mouse and touch\n * events.\n *\n * @function Highcharts.Point#onMouseOut\n * @return {void}\n * @fires Highcharts.Point#event:mouseOut\n */\n onMouseOut: function () {\n var point = this, chart = point.series.chart;\n point.firePointEvent('mouseOut');\n if (!point.series.options.inactiveOtherPoints) {\n (chart.hoverPoints || []).forEach(function (p) {\n p.setState();\n });\n }\n chart.hoverPoints = chart.hoverPoint = null;\n },\n /**\n * Import events from the series' and point's options. Only do it on\n * demand, to save processing time on hovering.\n *\n * @private\n * @function Highcharts.Point#importEvents\n * @return {void}\n */\n importEvents: function () {\n if (!this.hasImportedEvents) {\n var point = this, options = merge(point.series.options.point, point.options), events = options.events;\n point.events = events;\n objectEach(events, function (event, eventType) {\n if (H.isFunction(event)) {\n addEvent(point, eventType, event);\n }\n });\n this.hasImportedEvents = true;\n }\n },\n /**\n * Set the point's state.\n *\n * @function Highcharts.Point#setState\n *\n * @param {string} [state]\n * The new state, can be one of `''` (an empty string), `hover`,\n * `select` or `inactive`.\n * @param {boolean} [move]\n * State for animation.\n *\n * @fires Highcharts.Point#event:afterSetState\n */\n setState: function (state, move) {\n var point = this, series = point.series, previousState = point.state, stateOptions = (series.options.states[state || 'normal'] ||\n {}), markerOptions = (defaultPlotOptions[series.type].marker &&\n series.options.marker), normalDisabled = (markerOptions && markerOptions.enabled === false), markerStateOptions = ((markerOptions &&\n markerOptions.states &&\n markerOptions.states[state || 'normal']) || {}), stateDisabled = markerStateOptions.enabled === false, stateMarkerGraphic = series.stateMarkerGraphic, pointMarker = point.marker || {}, chart = series.chart, halo = series.halo, haloOptions, markerAttribs, pointAttribs, pointAttribsAnimation, hasMarkers = (markerOptions && series.markerAttribs), newSymbol;\n state = state || ''; // empty string\n if (\n // already has this state\n (state === point.state && !move) ||\n // selected points don't respond to hover\n (point.selected && state !== 'select') ||\n // series' state options is disabled\n (stateOptions.enabled === false) ||\n // general point marker's state options is disabled\n (state && (stateDisabled ||\n (normalDisabled &&\n markerStateOptions.enabled === false))) ||\n // individual point marker's state options is disabled\n (state &&\n pointMarker.states &&\n pointMarker.states[state] &&\n pointMarker.states[state].enabled === false) // #1610\n ) {\n return;\n }\n point.state = state;\n if (hasMarkers) {\n markerAttribs = series.markerAttribs(point, state);\n }\n // Apply hover styles to the existing point\n if (point.graphic) {\n if (previousState) {\n point.graphic.removeClass('highcharts-point-' + previousState);\n }\n if (state) {\n point.graphic.addClass('highcharts-point-' + state);\n }\n if (!chart.styledMode) {\n pointAttribs = series.pointAttribs(point, state);\n pointAttribsAnimation = pick(chart.options.chart.animation, stateOptions.animation);\n // Some inactive points (e.g. slices in pie) should apply\n // oppacity also for it's labels\n if (series.options.inactiveOtherPoints) {\n (point.dataLabels || []).forEach(function (label) {\n if (label) {\n label.animate({\n opacity: pointAttribs.opacity\n }, pointAttribsAnimation);\n }\n });\n if (point.connector) {\n point.connector.animate({\n opacity: pointAttribs.opacity\n }, pointAttribsAnimation);\n }\n }\n point.graphic.animate(pointAttribs, pointAttribsAnimation);\n }\n if (markerAttribs) {\n point.graphic.animate(markerAttribs, pick(\n // Turn off globally:\n chart.options.chart.animation, markerStateOptions.animation, markerOptions.animation));\n }\n // Zooming in from a range with no markers to a range with markers\n if (stateMarkerGraphic) {\n stateMarkerGraphic.hide();\n }\n }\n else {\n // if a graphic is not applied to each point in the normal state,\n // create a shared graphic for the hover state\n if (state && markerStateOptions) {\n newSymbol = pointMarker.symbol || series.symbol;\n // If the point has another symbol than the previous one, throw\n // away the state marker graphic and force a new one (#1459)\n if (stateMarkerGraphic &&\n stateMarkerGraphic.currentSymbol !== newSymbol) {\n stateMarkerGraphic = stateMarkerGraphic.destroy();\n }\n // Add a new state marker graphic\n if (markerAttribs) {\n if (!stateMarkerGraphic) {\n if (newSymbol) {\n series.stateMarkerGraphic = stateMarkerGraphic =\n chart.renderer\n .symbol(newSymbol, markerAttribs.x, markerAttribs.y, markerAttribs.width, markerAttribs.height)\n .add(series.markerGroup);\n stateMarkerGraphic.currentSymbol = newSymbol;\n }\n // Move the existing graphic\n }\n else {\n stateMarkerGraphic[move ? 'animate' : 'attr']({\n x: markerAttribs.x,\n y: markerAttribs.y\n });\n }\n }\n if (!chart.styledMode && stateMarkerGraphic) {\n stateMarkerGraphic.attr(series.pointAttribs(point, state));\n }\n }\n if (stateMarkerGraphic) {\n stateMarkerGraphic[state && point.isInside ? 'show' : 'hide'](); // #2450\n stateMarkerGraphic.element.point = point; // #4310\n }\n }\n // Show me your halo\n haloOptions = stateOptions.halo;\n var markerGraphic = (point.graphic || stateMarkerGraphic);\n var markerVisibility = (markerGraphic && markerGraphic.visibility || 'inherit');\n if (haloOptions &&\n haloOptions.size &&\n markerGraphic &&\n markerVisibility !== 'hidden') {\n if (!halo) {\n series.halo = halo = chart.renderer.path()\n // #5818, #5903, #6705\n .add(markerGraphic.parentGroup);\n }\n halo.show()[move ? 'animate' : 'attr']({\n d: point.haloPath(haloOptions.size)\n });\n halo.attr({\n 'class': 'highcharts-halo highcharts-color-' +\n pick(point.colorIndex, series.colorIndex) +\n (point.className ? ' ' + point.className : ''),\n 'visibility': markerVisibility,\n 'zIndex': -1 // #4929, #8276\n });\n halo.point = point; // #6055\n if (!chart.styledMode) {\n halo.attr(extend({\n 'fill': point.color || series.color,\n 'fill-opacity': haloOptions.opacity\n }, haloOptions.attributes));\n }\n }\n else if (halo && halo.point && halo.point.haloPath) {\n // Animate back to 0 on the current halo point (#6055)\n halo.animate({ d: halo.point.haloPath(0) }, null, \n // Hide after unhovering. The `complete` callback runs in the\n // halo's context (#7681).\n halo.hide);\n }\n fireEvent(point, 'afterSetState');\n },\n /**\n * Get the path definition for the halo, which is usually a shadow-like\n * circle around the currently hovered point.\n *\n * @function Highcharts.Point#haloPath\n *\n * @param {number} size\n * The radius of the circular halo.\n *\n * @return {Highcharts.SVGElement}\n * The path definition.\n */\n haloPath: function (size) {\n var series = this.series, chart = series.chart;\n return chart.renderer.symbols.circle(Math.floor(this.plotX) - size, this.plotY - size, size * 2, size * 2);\n }\n });\n // Extend the Series object with interaction\n extend(Series.prototype, /** @lends Highcharts.Series.prototype */ {\n /**\n * Runs on mouse over the series graphical items.\n *\n * @function Highcharts.Series#onMouseOver\n * @return {void}\n * @fires Highcharts.Series#event:mouseOver\n */\n onMouseOver: function () {\n var series = this, chart = series.chart, hoverSeries = chart.hoverSeries;\n // set normal state to previous series\n if (hoverSeries && hoverSeries !== series) {\n hoverSeries.onMouseOut();\n }\n // trigger the event, but to save processing time,\n // only if defined\n if (series.options.events.mouseOver) {\n fireEvent(series, 'mouseOver');\n }\n // hover this\n series.setState('hover');\n /**\n * Contains the original hovered series.\n *\n * @name Highcharts.Chart#hoverSeries\n * @type {Highcharts.Series|null}\n */\n chart.hoverSeries = series;\n },\n /**\n * Runs on mouse out of the series graphical items.\n *\n * @function Highcharts.Series#onMouseOut\n *\n * @fires Highcharts.Series#event:mouseOut\n */\n onMouseOut: function () {\n // trigger the event only if listeners exist\n var series = this, options = series.options, chart = series.chart, tooltip = chart.tooltip, hoverPoint = chart.hoverPoint;\n // #182, set to null before the mouseOut event fires\n chart.hoverSeries = null;\n // trigger mouse out on the point, which must be in this series\n if (hoverPoint) {\n hoverPoint.onMouseOut();\n }\n // fire the mouse out event\n if (series && options.events.mouseOut) {\n fireEvent(series, 'mouseOut');\n }\n // hide the tooltip\n if (tooltip &&\n !series.stickyTracking &&\n (!tooltip.shared || series.noSharedTooltip)) {\n tooltip.hide();\n }\n // Reset all inactive states\n chart.series.forEach(function (s) {\n s.setState('', true);\n });\n },\n /**\n * Set the state of the series. Called internally on mouse interaction\n * operations, but it can also be called directly to visually\n * highlight a series.\n *\n * @function Highcharts.Series#setState\n *\n * @param {string} [state]\n * Can be either `hover` or undefined to set to normal state.\n * @param {boolean} [inherit]\n * Determines if state should be inherited by points too.\n */\n setState: function (state, inherit) {\n var series = this, options = series.options, graph = series.graph, inactiveOtherPoints = options.inactiveOtherPoints, stateOptions = options.states, lineWidth = options.lineWidth, opacity = options.opacity, \n // By default a quick animation to hover/inactive,\n // slower to un-hover\n stateAnimation = pick((stateOptions[state || 'normal'] &&\n stateOptions[state || 'normal'].animation), series.chart.options.chart.animation), attribs, i = 0;\n state = state || '';\n if (series.state !== state) {\n // Toggle class names\n [\n series.group,\n series.markerGroup,\n series.dataLabelsGroup\n ].forEach(function (group) {\n if (group) {\n // Old state\n if (series.state) {\n group.removeClass('highcharts-series-' + series.state);\n }\n // New state\n if (state) {\n group.addClass('highcharts-series-' + state);\n }\n }\n });\n series.state = state;\n if (!series.chart.styledMode) {\n if (stateOptions[state] &&\n stateOptions[state].enabled === false) {\n return;\n }\n if (state) {\n lineWidth = (stateOptions[state].lineWidth ||\n lineWidth + (stateOptions[state].lineWidthPlus || 0)); // #4035\n opacity = pick(stateOptions[state].opacity, opacity);\n }\n if (graph && !graph.dashstyle) {\n attribs = {\n 'stroke-width': lineWidth\n };\n // Animate the graph stroke-width.\n graph.animate(attribs, stateAnimation);\n while (series['zone-graph-' + i]) {\n series['zone-graph-' + i].attr(attribs);\n i = i + 1;\n }\n }\n // For some types (pie, networkgraph, sankey) opacity is\n // resolved on a point level\n if (!inactiveOtherPoints) {\n [\n series.group,\n series.markerGroup,\n series.dataLabelsGroup,\n series.labelBySeries\n ].forEach(function (group) {\n if (group) {\n group.animate({\n opacity: opacity\n }, stateAnimation);\n }\n });\n }\n }\n }\n // Don't loop over points on a series that doesn't apply inactive state\n // to siblings markers (e.g. line, column)\n if (inherit && inactiveOtherPoints && series.points) {\n series.setAllPointsToState(state);\n }\n },\n /**\n * Set the state for all points in the series.\n *\n * @function Highcharts.Series#setAllPointsToState\n *\n * @private\n *\n * @param {string} [state]\n * Can be either `hover` or undefined to set to normal state.\n */\n setAllPointsToState: function (state) {\n this.points.forEach(function (point) {\n if (point.setState) {\n point.setState(state);\n }\n });\n },\n /**\n * Show or hide the series.\n *\n * @function Highcharts.Series#setVisible\n *\n * @param {boolean} [visible]\n * True to show the series, false to hide. If undefined, the\n * visibility is toggled.\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart after the series is altered. If doing\n * more operations on the chart, it is a good idea to set redraw to\n * false and call {@link Chart#redraw|chart.redraw()} after.\n *\n * @return {void}\n *\n * @fires Highcharts.Series#event:hide\n * @fires Highcharts.Series#event:show\n */\n setVisible: function (vis, redraw) {\n var series = this, chart = series.chart, legendItem = series.legendItem, showOrHide, ignoreHiddenSeries = chart.options.chart.ignoreHiddenSeries, oldVisibility = series.visible;\n // if called without an argument, toggle visibility\n series.visible =\n vis =\n series.options.visible =\n series.userOptions.visible =\n vis === undefined ? !oldVisibility : vis; // #5618\n showOrHide = vis ? 'show' : 'hide';\n // show or hide elements\n [\n 'group',\n 'dataLabelsGroup',\n 'markerGroup',\n 'tracker',\n 'tt'\n ].forEach(function (key) {\n if (series[key]) {\n series[key][showOrHide]();\n }\n });\n // hide tooltip (#1361)\n if (chart.hoverSeries === series ||\n (chart.hoverPoint && chart.hoverPoint.series) === series) {\n series.onMouseOut();\n }\n if (legendItem) {\n chart.legend.colorizeItem(series, vis);\n }\n // rescale or adapt to resized chart\n series.isDirty = true;\n // in a stack, all other series are affected\n if (series.options.stacking) {\n chart.series.forEach(function (otherSeries) {\n if (otherSeries.options.stacking && otherSeries.visible) {\n otherSeries.isDirty = true;\n }\n });\n }\n // show or hide linked series\n series.linkedSeries.forEach(function (otherSeries) {\n otherSeries.setVisible(vis, false);\n });\n if (ignoreHiddenSeries) {\n chart.isDirtyBox = true;\n }\n fireEvent(series, showOrHide);\n if (redraw !== false) {\n chart.redraw();\n }\n },\n /**\n * Show the series if hidden.\n *\n * @sample highcharts/members/series-hide/\n * Toggle visibility from a button\n *\n * @function Highcharts.Series#show\n * @return {void}\n * @fires Highcharts.Series#event:show\n */\n show: function () {\n this.setVisible(true);\n },\n /**\n * Hide the series if visible. If the {@link\n * https://api.highcharts.com/highcharts/chart.ignoreHiddenSeries|\n * chart.ignoreHiddenSeries} option is true, the chart is redrawn without\n * this series.\n *\n * @sample highcharts/members/series-hide/\n * Toggle visibility from a button\n *\n * @function Highcharts.Series#hide\n * @return {void}\n * @fires Highcharts.Series#event:hide\n */\n hide: function () {\n this.setVisible(false);\n },\n /**\n * Select or unselect the series. This means its\n * {@link Highcharts.Series.selected|selected}\n * property is set, the checkbox in the legend is toggled and when selected,\n * the series is returned by the\n * {@link Highcharts.Chart#getSelectedSeries}\n * function.\n *\n * @sample highcharts/members/series-select/\n * Select a series from a button\n *\n * @function Highcharts.Series#select\n *\n * @param {boolean} [selected]\n * True to select the series, false to unselect. If undefined, the\n * selection state is toggled.\n *\n * @return {void}\n *\n * @fires Highcharts.Series#event:select\n * @fires Highcharts.Series#event:unselect\n */\n select: function (selected) {\n var series = this;\n series.selected =\n selected =\n this.options.selected = (selected === undefined ?\n !series.selected :\n selected);\n if (series.checkbox) {\n series.checkbox.checked = selected;\n }\n fireEvent(series, selected ? 'select' : 'unselect');\n },\n /**\n * @private\n * @borrows Highcharts.TrackerMixin.drawTrackerGraph as Highcharts.Series#drawTracker\n */\n drawTracker: TrackerMixin.drawTrackerGraph\n });\n\n });\n _registerModule(_modules, 'parts/Responsive.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {\n /* *\n *\n * (c) 2010-2019 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n /**\n * A callback function to gain complete control on when the responsive rule\n * applies.\n *\n * @callback Highcharts.ResponsiveCallbackFunction\n *\n * @param {Highcharts.Chart} this\n * Chart context.\n *\n * @return {boolean}\n * Return `true` if it applies.\n */\n var isArray = U.isArray, isObject = U.isObject, objectEach = U.objectEach, pick = U.pick, splat = U.splat;\n var Chart = H.Chart;\n /**\n * Allows setting a set of rules to apply for different screen or chart\n * sizes. Each rule specifies additional chart options.\n *\n * @sample {highstock} stock/demo/responsive/\n * Stock chart\n * @sample highcharts/responsive/axis/\n * Axis\n * @sample highcharts/responsive/legend/\n * Legend\n * @sample highcharts/responsive/classname/\n * Class name\n *\n * @since 5.0.0\n * @apioption responsive\n */\n /**\n * A set of rules for responsive settings. The rules are executed from\n * the top down.\n *\n * @sample {highcharts} highcharts/responsive/axis/\n * Axis changes\n * @sample {highstock} highcharts/responsive/axis/\n * Axis changes\n * @sample {highmaps} highcharts/responsive/axis/\n * Axis changes\n *\n * @type {Array<*>}\n * @since 5.0.0\n * @apioption responsive.rules\n */\n /**\n * A full set of chart options to apply as overrides to the general\n * chart options. The chart options are applied when the given rule\n * is active.\n *\n * A special case is configuration objects that take arrays, for example\n * [xAxis](#xAxis), [yAxis](#yAxis) or [series](#series). For these\n * collections, an `id` option is used to map the new option set to\n * an existing object. If an existing object of the same id is not found,\n * the item of the same indexupdated. So for example, setting `chartOptions`\n * with two series items without an `id`, will cause the existing chart's\n * two series to be updated with respective options.\n *\n * @sample {highstock} stock/demo/responsive/\n * Stock chart\n * @sample highcharts/responsive/axis/\n * Axis\n * @sample highcharts/responsive/legend/\n * Legend\n * @sample highcharts/responsive/classname/\n * Class name\n *\n * @type {Highcharts.Options}\n * @since 5.0.0\n * @apioption responsive.rules.chartOptions\n */\n /**\n * Under which conditions the rule applies.\n *\n * @since 5.0.0\n * @apioption responsive.rules.condition\n */\n /**\n * A callback function to gain complete control on when the responsive\n * rule applies. Return `true` if it applies. This opens for checking\n * against other metrics than the chart size, for example the document\n * size or other elements.\n *\n * @type {Highcharts.ResponsiveCallbackFunction}\n * @since 5.0.0\n * @context Highcharts.Chart\n * @apioption responsive.rules.condition.callback\n */\n /**\n * The responsive rule applies if the chart height is less than this.\n *\n * @type {number}\n * @since 5.0.0\n * @apioption responsive.rules.condition.maxHeight\n */\n /**\n * The responsive rule applies if the chart width is less than this.\n *\n * @sample highcharts/responsive/axis/\n * Max width is 500\n *\n * @type {number}\n * @since 5.0.0\n * @apioption responsive.rules.condition.maxWidth\n */\n /**\n * The responsive rule applies if the chart height is greater than this.\n *\n * @type {number}\n * @default 0\n * @since 5.0.0\n * @apioption responsive.rules.condition.minHeight\n */\n /**\n * The responsive rule applies if the chart width is greater than this.\n *\n * @type {number}\n * @default 0\n * @since 5.0.0\n * @apioption responsive.rules.condition.minWidth\n */\n /* eslint-disable no-invalid-this, valid-jsdoc */\n /**\n * Update the chart based on the current chart/document size and options for\n * responsiveness.\n *\n * @private\n * @function Highcharts.Chart#setResponsive\n * @param {boolean} [redraw=true]\n * @param {boolean} [reset=false]\n * Reset by un-applying all rules. Chart.update resets all rules before\n * applying updated options.\n * @return {void}\n */\n Chart.prototype.setResponsive = function (redraw, reset) {\n var options = this.options.responsive, ruleIds = [], currentResponsive = this.currentResponsive, currentRuleIds, undoOptions;\n if (!reset && options && options.rules) {\n options.rules.forEach(function (rule) {\n if (rule._id === undefined) {\n rule._id = H.uniqueKey();\n }\n this.matchResponsiveRule(rule, ruleIds /* , redraw */);\n }, this);\n }\n // Merge matching rules\n var mergedOptions = H.merge.apply(0, ruleIds.map(function (ruleId) {\n return H.find(options.rules, function (rule) {\n return rule._id === ruleId;\n }).chartOptions;\n }));\n mergedOptions.isResponsiveOptions = true;\n // Stringified key for the rules that currently apply.\n ruleIds = (ruleIds.toString() || undefined);\n currentRuleIds = currentResponsive && currentResponsive.ruleIds;\n // Changes in what rules apply\n if (ruleIds !== currentRuleIds) {\n // Undo previous rules. Before we apply a new set of rules, we need to\n // roll back completely to base options (#6291).\n if (currentResponsive) {\n this.update(currentResponsive.undoOptions, redraw, true);\n }\n if (ruleIds) {\n // Get undo-options for matching rules\n undoOptions = this.currentOptions(mergedOptions);\n undoOptions.isResponsiveOptions = true;\n this.currentResponsive = {\n ruleIds: ruleIds,\n mergedOptions: mergedOptions,\n undoOptions: undoOptions\n };\n this.update(mergedOptions, redraw, true);\n }\n else {\n this.currentResponsive = undefined;\n }\n }\n };\n /**\n * Handle a single responsiveness rule.\n *\n * @private\n * @function Highcharts.Chart#matchResponsiveRule\n * @param {Highcharts.ResponsiveRulesOptions} rule\n * @param {Array} matches\n * @return {void}\n */\n Chart.prototype.matchResponsiveRule = function (rule, matches) {\n var condition = rule.condition, fn = condition.callback || function () {\n return (this.chartWidth <= pick(condition.maxWidth, Number.MAX_VALUE) &&\n this.chartHeight <=\n pick(condition.maxHeight, Number.MAX_VALUE) &&\n this.chartWidth >= pick(condition.minWidth, 0) &&\n this.chartHeight >= pick(condition.minHeight, 0));\n };\n if (fn.call(this)) {\n matches.push(rule._id);\n }\n };\n /**\n * Get the current values for a given set of options. Used before we update\n * the chart with a new responsiveness rule.\n * TODO: Restore axis options (by id?)\n *\n * @private\n * @function Highcharts.Chart#currentOptions\n * @param {Highcharts.Options} options\n * @return {Highcharts.Options}\n */\n Chart.prototype.currentOptions = function (options) {\n var chart = this, ret = {};\n /**\n * Recurse over a set of options and its current values,\n * and store the current values in the ret object.\n */\n function getCurrent(options, curr, ret, depth) {\n var i;\n objectEach(options, function (val, key) {\n if (!depth &&\n chart.collectionsWithUpdate.indexOf(key) > -1) {\n val = splat(val);\n ret[key] = [];\n // Iterate over collections like series, xAxis or yAxis and map\n // the items by index.\n for (i = 0; i < val.length; i++) {\n if (curr[key][i]) { // Item exists in current data (#6347)\n ret[key][i] = {};\n getCurrent(val[i], curr[key][i], ret[key][i], depth + 1);\n }\n }\n }\n else if (isObject(val)) {\n ret[key] = isArray(val) ? [] : {};\n getCurrent(val, curr[key] || {}, ret[key], depth + 1);\n }\n else if (curr[key] === undefined) { // #10286\n ret[key] = null;\n }\n else {\n ret[key] = curr[key];\n }\n });\n }\n getCurrent(options, this.options, ret, 0);\n return ret;\n };\n\n });\n _registerModule(_modules, 'masters/highcharts.src.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (Highcharts, U) {\n\n var extend = U.extend;\n\n\n extend(Highcharts, {\n arrayMax: U.arrayMax,\n arrayMin: U.arrayMin,\n attr: U.attr,\n defined: U.defined,\n erase: U.erase,\n extend: U.extend,\n isArray: U.isArray,\n isClass: U.isClass,\n isDOMElement: U.isDOMElement,\n isNumber: U.isNumber,\n isObject: U.isObject,\n isString: U.isString,\n objectEach: U.objectEach,\n pick: U.pick,\n pInt: U.pInt,\n setAnimation: U.setAnimation,\n splat: U.splat,\n syncTimeout: U.syncTimeout\n });\n\n\n return Highcharts;\n });\n _modules['masters/highcharts.src.js']._modules = _modules;\n return _modules['masters/highcharts.src.js'];\n}));"}])},"1BIS":function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},"1DEc":function(e,t,n){"use strict";var r=n("+sR0"),i=n("gdlE"),o=n("Y4pH");function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=a,a.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},a.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length=0);return i},o.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},o.prototype.test=function(e,t,n){var i=e.bitLength(),o=r.mont(e),a=new r(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),l=0;!s.testn(l);l++);for(var c=e.shrn(l),u=s.toRed(o);t>0;t--){var d=this._randrange(new r(2),s);n&&n(d);var h=d.toRed(o).redPow(c);if(0!==h.cmp(a)&&0!==h.cmp(u)){for(var p=1;p0;t--){var u=this._randrange(new r(2),a),d=e.gcd(u);if(0!==d.cmpn(1))return d;var h=u.toRed(i).redPow(l);if(0!==h.cmp(o)&&0!==h.cmp(c)){for(var p=1;p=0}))},e.getDiffEditorContributions=function(){return C.INSTANCE.getDiffEditorContributions()}}(i||(i={}));var C=function(){function e(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return e.prototype.registerEditorContribution=function(e,t){this.editorContributions.push({id:e,ctor:t})},e.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},e.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},e.prototype.registerEditorAction=function(e){e.register(),this.editorActions.push(e)},e.prototype.getEditorActions=function(){return this.editorActions.slice(0)},e.prototype.registerEditorCommand=function(e){e.register(),this.editorCommands[e.id]=e},e.prototype.getEditorCommand=function(e){return this.editorCommands[e]||null},e.INSTANCE=new e,e}();m.a.add("editor.contributions",C.INSTANCE)},"1Pcy":function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},"1QPV":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=87)}([function(e,t){e.exports=n("ERkP")},function(e,t){e.exports=n("P+pW")},function(e,t){e.exports=n("J45V")},function(e,t){e.exports=n("aWzz")},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var y={elementRef:a.a.func,screenReaderText:a.a.string},_={screenReaderText:Object(s._)("Close")};function v(e){var t=e.elementRef,n=e.screenReaderText,r=b(e,["elementRef","screenReaderText"]);return i.a.createElement(m,g({appearance:"pill"},Object(u.ref)(t),r),i.a.createElement(c.a,{inline:!1,size:"13px",screenReaderText:n}))}v.propTypes=y,v.defaultProps=_,n.d(t,"default",(function(){return v}))},2:function(e,t){e.exports=n("ERkP")},3:function(e,t){e.exports=n("j/s1")},34:function(e,t){e.exports=n("echX")},57:function(e,t){e.exports=n("XuAV")},7:function(e,t){e.exports=n("J45V")}})},"1ZDE":function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r,i=n("vB0K"),o=n.n(i),a=n("XarG"),s={insert:"head",singleton:!1},l=(o()(a.a,s),a.a.locals,n("IQ2W")),c=n("icmZ"),u=n("cCap"),d=n("hVGM"),h=n("pmNi"),p=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(){function e(e){this._element=e}return Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{set:function(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{set:function(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this.disposed||e===this._title||(this._title=e,this._title?this._element.title=e:this._element.removeAttribute("title"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{set:function(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposed=!0},e}(),m=function(e){function t(t,n){var r=e.call(this)||this;r.domNode=r._register(new f(l.q(t,l.a(".monaco-icon-label"))));var i=l.q(r.domNode.element,l.a(".monaco-icon-label-container")),o=l.q(i,l.a("span.monaco-icon-name-container"));return r.descriptionContainer=r._register(new f(l.q(i,l.a("span.monaco-icon-description-container")))),(null==n?void 0:n.supportHighlights)?r.nameNode=new b(o,!!n.supportCodicons):r.nameNode=new g(o),(null==n?void 0:n.supportDescriptionHighlights)?r.descriptionNodeFactory=function(){return new c.a(l.q(r.descriptionContainer.element,l.a("span.label-description")),!!n.supportCodicons)}:r.descriptionNodeFactory=function(){return r._register(new f(l.q(r.descriptionContainer.element,l.a("span.label-description"))))},r}return p(t,e),t.prototype.setLabel=function(e,t,n){var r=["monaco-icon-label"];n&&(n.extraClasses&&r.push.apply(r,n.extraClasses),n.italic&&r.push("italic")),this.domNode.className=r.join(" "),this.domNode.title=(null==n?void 0:n.title)||"",this.nameNode.setLabel(e,n),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof c.a?(this.descriptionNode.set(t||"",n?n.descriptionMatches:void 0),(null==n?void 0:n.descriptionTitle)?this.descriptionNode.element.title=n.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=t||"",this.descriptionNode.title=(null==n?void 0:n.descriptionTitle)||"",this.descriptionNode.empty=!t))},t}(u.a),g=function(){function e(e){this.container=e,this.label=void 0,this.singleLabel=void 0}return e.prototype.setLabel=function(e,t){if(this.label!==e||!Object(h.e)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerHTML="",l.P(this.container,"multiple"),this.singleLabel=l.q(this.container,l.a("a.label-name",{id:null==t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerHTML="",l.f(this.container,"multiple"),this.singleLabel=void 0;for(var n=0;n-1?s[l?t[c]:c]:void 0}}},"1ad3":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=110)}({0:function(e,t){e.exports=n("mwAw")},1:function(e,t){e.exports=n("Cbaw")},110:function(e,t,n){"use strict";n.r(t);var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(5),l=n(3),c=n.n(l),u=n(0),d=n(8),h=n(7),p=n(27),f=n.n(p);function m(){return(m=Object.assign||function(e){for(var t=1;t &{width:",";}[data-size='large'] > &{width:",";}&[data-position='last']{right:0;}&[data-position='first']{left:0;}"],Object(u.variable)("Number","controlsBorder"),M,"16px","30px"),A=Object(l.css)(["background-color:",";position:absolute;padding:3px;font-size:inherit;min-width:0;min-height:0;height:calc(50% + 0.5px);width:100%;&:not([disabled]){color:",";border-color:",";&:hover{color:",";background-color:",";&:active{color:",";border-color:",";background-color:",";}}&:focus{background-color:",";}}&[disabled]{border-color:",";color:",";}"],Object(u.variable)("Number","incrementorBackgroundColor"),Object(u.variable)("Number","incrementorColor"),Object(u.variable)("Number","incrementorBorderColor"),Object(u.variable)("Number","incrementorHoverColor"),Object(u.variable)("Number","incrementorBackgroundColor"),Object(u.variable)("Number","incrementorActiveColor"),Object(u.variable)("Number","incrementorBorderColor"),Object(u.variable)("Number","incrementorActiveBackgroundColor"),Object(u.variable)("Number","incrementorBackgroundColor"),Object(u.variable)("Number","incrementorDisabledBorderColor"),Object(u.variable)("Number","incrementorDisabledColor")),k=c()(y.a).withConfig({displayName:"NumberStyles__StyledPlusButton",componentId:"sc-2ekj9s-2"})(["",";top:0;border-bottom-left-radius:0;border-bottom-right-radius:0;&[data-append]{border-right:1px solid ",";}"],A,Object(u.variable)("Number","plusButtonBorderRightColor")),L=c()(y.a).withConfig({displayName:"NumberStyles__StyledMinusButton",componentId:"sc-2ekj9s-3"})(["",";bottom:0;border-top-left-radius:0;border-top-right-radius:0;&[data-append]{border-right:1px solid ",";}"],A,Object(u.variable)("Number","minusButtonBorderRightColor"));function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(){return(T=Object.assign||function(e){for(var t=1;t1?i-1:0),a=1;a=0)&&e.preventDefault(),Object(d.isDecimal)(e)&&(r.props.roundTo<=0||r.state.stringValue.indexOf(".")>=0)&&e.preventDefault()),"up"===Object(d.keycode)(e)?(r.increment(e,r.props.step),e.preventDefault()):"down"===Object(d.keycode)(e)&&(r.increment(e,-r.props.step),e.preventDefault()),r.props.onKeyDown(e)})),N(z(z(r)),"handleKeyUp",(function(e){"enter"===Object(d.keycode)(e)&&r.updateString(),r.props.onKeyUp(e)})),N(z(z(r)),"handleIncrement",(function(e){r.increment(e,r.props.step)})),N(z(z(r)),"handleDecrement",(function(e){r.increment(e,-r.props.step)})),r.controlledExternally=Object(s.has)(e,"value");var l=r.isControlled()?e.value:e.defaultValue;return r.state={value:r.isControlled()?null:l,prevValueProp:r.isControlled()?l:null,stringValue:Object(s.isFinite)(l)?l.toString():""},t.validatePrependAppend(r.props.append,r.props.prepend),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(t,e),P(t,null,[{key:"validatePrependAppend",value:function(e,t){0}},{key:"stringToNumber",value:function(e,n){var r=e;if(Object(s.isString)(r)&&""!==r){r=r.replace(/^[^\d.-]/,"");var i=t.limitValue(parseFloat(r),n);return Object(s.isFinite)(i)?i:void 0}}},{key:"limitValue",value:function(e,t){var n=t.min,r=t.max,i=t.roundTo,o=e;if(!Object(s.isFinite)(e))return o;Object(s.isFinite)(n)&&(o=Math.max(n,o)),Object(s.isFinite)(r)&&(o=Math.min(r,o));var a=Math.pow(10,i);return Math.round(o*a)/a}},{key:"getDerivedStateFromProps",value:function(e,n){if(Object(s.has)(e,"value")&&e.value!==n.prevValueProp){var r=t.stringToNumber(n.stringValue,e);return e.value!==r?{prevValueProp:e.value,stringValue:Object(s.isFinite)(e.value)?e.value.toString():""}:{prevValueProp:e.value}}return null}}]),P(t,[{key:"componentDidUpdate",value:function(e){t.validatePrependAppend(this.props.append,this.props.prepend)}},{key:"getValue",value:function(){return this.isControlled()?this.props.value:this.state.value}},{key:"setValueFromString",value:function(e,n){var r=this,i=t.stringToNumber(n,this.props),o=this.props.name;this.setState({value:this.isControlled()?null:i,stringValue:n},(function(){r.getValue()===i&&r.isControlled()||r.props.onChange(e,{value:i,name:o})}))}},{key:"setValue",value:function(e,t){var n=this,r=this.props.name;this.setState({value:this.isControlled()?null:t,stringValue:t.toString()},(function(){n.getValue()===t&&n.isControlled()||n.props.onChange(e,{value:t,name:r})}))}},{key:"focus",value:function(){this.text&&this.text.focus()}},{key:"isControlled",value:function(){return this.controlledExternally}},{key:"updateString",value:function(){var e=this.getValue();this.setState({stringValue:Object(s.isFinite)(e)?e.toString():""})}},{key:"increment",value:function(e,n){var r,i=t.stringToNumber(this.state.stringValue,this.props);r=Object(s.isFinite)(i)?i+n:Object(s.isFinite)(this.props.defaultValue)?this.props.defaultValue+n:n>0?this.props.max||this.props.step:this.props.min||0,this.setValue(e,t.limitValue(r,this.props))}},{key:"preventNegativeNumbers",value:function(){return Object(s.isFinite)(this.props.min)&&this.props.min>=0}},{key:"render",value:function(){var e=this,t=this.props,n=t.append,r=t.describedBy,o=t.disabled,a=t.error,l=t.hideStepButtons,c=t.value,d=void 0===c?this.state.value:c,p=t.max,f=t.min,m=t.prepend,b=t.size,y=t.theme,_=Object(s.omit)(this.props,["defaultValue","hideStepButtons","min","max","roundTo","step"]),v=Object(s.isFinite)(d)&&Object(s.isFinite)(p)&&d>=p,M=Object(s.isFinite)(d)&&Object(s.isFinite)(f)&&d<=f,A=Object(u.variable)("Number","incrementorWidth")({theme:y}),S=Object(u.variable)("Number","incrementorErrorBackgroundColor")({theme:y}),O={small:"16px",medium:A,large:"30px"},C=n&&!m?{paddingLeft:"".concat(O[b])}:{paddingRight:"".concat(O[b])},D={small:{height:"4px",width:"6px"},medium:{height:"4px",width:"6px"},large:{height:"6px",width:"8px"}};return i.a.createElement(w,T({autoComplete:!1,"data-test":"number"},Object(u.ref)((function(t){e.text=t})),_,{inputStyle:l?null:C,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,value:this.state.stringValue,"aria-describedby":r,size:b,error:a,"data-test-value":d}),!o&&!l&&i.a.createElement(x,{"data-position":n&&!m?"first":"last","data-size":b},i.a.createElement(k,{appearance:"toggle",onClick:this.handleIncrement,disabled:v,error:S&&a,append:n,prepend:!n,inline:!1,"data-test":"increment",tabIndex:"-1"},i.a.createElement(g,{width:D[b].width,height:D[b].height,screenReaderText:Object(h._)("Increment")})),i.a.createElement(L,{appearance:"toggle",onClick:this.handleDecrement,disabled:M,error:S&&a,append:n,prepend:!n,inline:!1,"data-test":"decrement",tabIndex:"-1"},i.a.createElement(g,{width:D[b].width,height:D[b].height,screenReaderText:Object(h._)("Decrement"),style:{transform:"rotateX(180deg)"}}))))}}]),t}(r.Component);N(Y,"propTypes",{append:a.a.bool,children:a.a.node,defaultValue:a.a.number,describedBy:a.a.string,disabled:a.a.bool,elementRef:a.a.func,error:a.a.bool,inputId:a.a.string,inline:a.a.bool,hideStepButtons:a.a.bool,roundTo:a.a.number,labelledBy:a.a.string,min:a.a.number,max:a.a.number,name:a.a.string,onBlur:a.a.func,onChange:a.a.func,onFocus:a.a.func,onKeyDown:a.a.func,onKeyUp:a.a.func,onSelect:a.a.func,placeholder:a.a.string,prepend:a.a.bool,size:a.a.oneOf(["small","medium","large"]),step:a.a.number,theme:a.a.object,useSyntheticPlaceholder:a.a.bool,value:a.a.number}),N(Y,"defaultProps",{append:!1,disabled:!1,error:!1,inline:!1,hideStepButtons:!1,onChange:function(){},onKeyDown:function(){},onKeyUp:function(){},onSelect:function(){},onBlur:function(){},onFocus:function(){},placeholder:"",prepend:!1,roundTo:5,size:"medium",step:1,theme:null,useSyntheticPlaceholder:!1});var I=Object(l.withTheme)(Y);I.propTypes=Y.propTypes;var H=I;n.d(t,"default",(function(){return H}))},16:function(e,t){e.exports=n("hPiZ")},2:function(e,t){e.exports=n("ERkP")},22:function(e,t){e.exports=n("NMjM")},27:function(e,t){e.exports=n("P+pW")},3:function(e,t){e.exports=n("j/s1")},5:function(e,t){e.exports=n("nsO7")},7:function(e,t){e.exports=n("J45V")},8:function(e,t){e.exports=n("vIQw")}})},"1coV":function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},"1cu4":function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},i=n("l1F0"),o=n("uHbu"),a=function(e){function t(t){e.call(this),this._value=t}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(i.Subject);t.BehaviorSubject=a},"1i9e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToKeywords=i,t.testPhrase=o,t.keywordLocationsAll=a,t.keywordLocations=function(e,t){var n=a(e,t);if(!n||n.length!==t.length)return!1;var r=n[0],i=r.start,o=r.end,s=[];function l(){s.push({start:i,end:o})}return n.slice(1).forEach((function(e){e.start>o?(l(),i=e.start,o=e.end):e.end>o&&(o=e.end)})),l(),s},t.filterByKeywords=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r=i(t);return e.filter((function(e){return o(n(e),r)}))};var r=n("nsO7");function i(e){return(0,r.isString)(e)?(e.match(/(?:[^\s"]+|"[^"]*")+/g)||[]).map((function(e){return e.replace(/^"(.*)"$/,"$1").toLowerCase()})):[]}function o(e,t){if(!(0,r.isString)(e))return!1;var n=e.toLowerCase();return t.every((function(e){return(0,r.includes)(n,e)}))}function a(e,t){if(!(0,r.isString)(e)||!t||!t.length)return!1;var n=e.toLowerCase();return t.reduce((function(e,t){var r=n.indexOf(t);return r>=0&&e.push({keyword:t,start:r,end:r+t.length}),e}),[]).sort((function(e,t){return e.start!==t.start?e.start>t.start?1:-1:e.end>t.end?1:-1}))}},"1ilC":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return r})),n.d(t,"language",(function(){return i}));var r={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},i={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}},"1ivX":function(e,t,n){var r=n("sdc/"),i=n("fEzw");r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},"1jzS":function(e,t,n){e.exports=n("4xop")()},"1k4L":function(e,t,n){var r=n("tUbk")(!0);e.exports=r},"1lCi":function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.family,n=e.colorScheme,r=e.density,a=e.additionalThemeProperties,l=e.customizeTheme,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["family","colorScheme","density","additionalThemeProperties","customizeTheme"]),d=((0,i.useContext)(o.ThemeContext)||{}).splunkThemeV1,h=void 0===d?{}:d,p=c(c({},a),{},{splunkThemeV1:{family:t||h.family||"prisma",colorScheme:n||h.colorScheme||"dark",density:r||h.density||"comfortable",customizer:l||h.customizer}});return i.default.createElement(o.ThemeProvider,s({theme:p},u))};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("ERkP")),o=n("j/s1");function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=120&&b.length>=120)?new r(p&&b):void 0}b=e[0];var y=-1,_=f[0];e:for(;++y0&&void 0!==arguments[0]?arguments[0]:10,t=arguments[1],n=new Array(e),r=0,o=0,a=0,s=function(t){n[o]=t,o=(o+1)%e,r++},l=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+1)%e,t}},c=function(){for(var e=[];r;)e.push(l());return e};return{isEmpty:function(){return 0==r},put:function(l){if(r=31)return r.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[n||"universal"]<<6}(e,t,n,this.reporter);if(r.length<128)return(o=new i(2))[0]=a,o[1]=r.length,this._createEncoderBuffer([o,r]);for(var l=1,c=r.length;c>=256;c>>=8)l++;(o=new i(2+l))[0]=a,o[1]=128|l;c=1+l;for(var u=r.length;u>0;c--,u>>=8)o[c]=255&u;return this._createEncoderBuffer([o,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new i(2*e.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(r=0;r=128;a>>=7)o++}var s=new i(o),l=s.length-1;for(r=e.length-1;r>=0;r--){a=e[r];for(s[l--]=127&a;(a>>=7)>0;)s[l--]=128|127&a}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[u(r.getFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[u(r.getFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new i(n)}if(i.isBuffer(e)){var r=e.length;0===e.length&&r++;var o=new i(r);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var a=e;a>=256;a>>=8)r++;for(a=(o=new Array(r)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r=2&&(r=arguments[1]);var o=Number.POSITIVE_INFINITY;return t>=3&&(o=arguments[2]),function(t){return t.lift(new s(e,r,o,n))}};var s=function(){function e(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),l=function(){this.buffer=[]},c=function(e){function t(t,n,r,i,o){e.call(this,t),this.bufferTimeSpan=n,this.bufferCreationInterval=r,this.maxBufferSize=i,this.scheduler=o,this.contexts=[];var a=this.openContext();if(this.timespanOnly=null==r||r<0,this.timespanOnly){var s={subscriber:this,context:a,bufferTimeSpan:n};this.add(a.closeAction=o.schedule(u,n,s))}else{var l={subscriber:this,context:a},c={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:this,scheduler:o};this.add(a.closeAction=o.schedule(h,n,l)),this.add(o.schedule(d,r,c))}}return r(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,r=n.length,i=0;i0;){var r=t.shift();n.next(r.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(u,n,r))}},t.prototype.openContext=function(){var e=new l;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(o.Subscriber);function u(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function d(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(h,n,{subscriber:r,context:o})),this.schedule(e,t))}function h(e){var t=e.subscriber,n=e.context;t.closeContext(n)}},"1vIs":function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},i=n("lLRD");t.dematerialize=function(){return function(e){return e.lift(new o)}};var o=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new a(e))},e}(),a=function(e){function t(t){e.call(this,t)}return r(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(i.Subscriber)},"1wKA":function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function o(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(o(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(o(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(o(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(o(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(o(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(o(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("ROmd"))},"1wwL":function(e,t,n){"use strict";var r=n("vEzi");t.mergeAll=function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),r.mergeAll(e)(this)}},"1x0w":function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return a[e];var n,o=String(e);return(n=r[o.toLowerCase()])?n:(n=i[o.toLowerCase()])||(1===o.length?o.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var o;if(o=r[t.toLowerCase()])return o===n;if(o=i[t.toLowerCase()])return o===n}else if("number"==typeof t)return t===n;return!1}};var r=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(o=97;o<123;o++)r[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)r[o-48]=o;for(o=1;o<13;o++)r["f"+o]=o+111;for(o=0;o<10;o++)r["numpad "+o]=o+96;var a=t.names=t.title={};for(o in r)a[r[o]]=o;for(var s in i)r[s]=i[s]},"1xCb":function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n("ROmd"))},"1xil":function(e,t,n){var r=n("YpBQ");e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},"1z7s":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sprintf=s,t.abbreviateNumber=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-us",n=(0,r.toNumber)(e);if(n<=1e3)return n.toLocaleString(t);if(n<1e4)return s((0,i._)("%sK"),(0,o.roundToDecimal)(n/1e3,-2).toLocaleString(t));if(n<1e5)return s((0,i._)("%sK"),(0,o.roundToDecimal)(n/1e3,-1).toLocaleString(t));if(n<999500)return s((0,i._)("%sK"),(0,o.roundToDecimal)(n/1e3,0).toLocaleString(t));if(n<1e7)return s((0,i._)("%sM"),(0,o.roundToDecimal)(n/1e6,-2).toLocaleString(t));if(n<1e8)return s((0,i._)("%sM"),(0,o.roundToDecimal)(n/1e6,-1).toLocaleString(t));if(n<9995e5)return s((0,i._)("%sM"),(0,o.roundToDecimal)(n/1e6,0).toLocaleString(t));if(n<1e10)return s((0,i._)("%sB"),(0,o.roundToDecimal)(n/1e9,-2).toLocaleString(t));if(n<1e11)return s((0,i._)("%sB"),(0,o.roundToDecimal)(n/1e9,-1).toLocaleString(t));return s((0,i._)("%sB"),(0,o.roundToDecimal)(n/1e9,0).toLocaleString(t))},t.bytesToFileSize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-us",n=(e||0)/1024;if(n<0)throw new RangeError("bytes must be >= 0");if(0===Math.floor(n))return s((0,i._)("%s B"),e.toLocaleString(t));var r=n/1024;if(0===Math.floor(r))return s((0,i._)("%s KB"),(0,o.roundToDecimal)(n,-2).toLocaleString(t));var a=r/1024;if(0===Math.floor(a))return s((0,i._)("%s MB"),(0,o.roundToDecimal)(r,-2).toLocaleString(t));var l=a/1024;if(0===Math.floor(l))return s((0,i._)("%s GB"),(0,o.roundToDecimal)(a,-2).toLocaleString(t));return s((0,i._)("%s TB"),(0,o.roundToDecimal)(l,-2).toLocaleString(t))},t.smartTrim=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.precomposed,i=void 0!==r&&r;if(!e||t<1||e.length<=t)return e;var o=i?"…":"...";if(1===t)return"".concat(e[0]).concat(o);var a=Math.ceil(e.length/2),s=e.length-t,l=Math.ceil(s/2),c=s-l;return"".concat(e.substring(0,a-l)).concat(o).concat(e.substring(a+c))};var r=n("nsO7"),i=n("J45V"),o=n("PHRs"),a=n("xPpM");function s(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r')))},l.prototype.emph=function(e,t){this.tag(t?"em":"/em")},l.prototype.strong=function(e,t){this.tag(t?"strong":"/strong")},l.prototype.paragraph=function(e,t){var n=e.parent.parent,r=this.attrs(e);null!==n&&"list"===n.type&&n.listTight||(t?(this.cr(),this.tag("p",r)):(this.tag("/p"),this.cr()))},l.prototype.heading=function(e,t){var n="h"+e.level,r=this.attrs(e);t?(this.cr(),this.tag(n,r)):(this.tag("/"+n),this.cr())},l.prototype.code=function(e){this.tag("code"),this.out(e.literal),this.tag("/code")},l.prototype.code_block=function(e){var t=e.info?e.info.split(/\s+/):[],n=this.attrs(e);t.length>0&&t[0].length>0&&n.push(["class","language-"+i(t[0],!0)]),this.cr(),this.tag("pre"),this.tag("code",n),this.out(e.literal),this.tag("/code"),this.tag("/pre"),this.cr()},l.prototype.thematic_break=function(e){var t=this.attrs(e);this.cr(),this.tag("hr",t,!0),this.cr()},l.prototype.block_quote=function(e,t){var n=this.attrs(e);t?(this.cr(),this.tag("blockquote",n),this.cr()):(this.cr(),this.tag("/blockquote"),this.cr())},l.prototype.list=function(e,t){var n="bullet"===e.listType?"ul":"ol",r=this.attrs(e);if(t){var i=e.listStart;null!==i&&1!==i&&r.push(["start",i.toString()]),this.cr(),this.tag(n,r),this.cr()}else this.cr(),this.tag("/"+n),this.cr()},l.prototype.item=function(e,t){var n=this.attrs(e);t?this.tag("li",n):(this.tag("/li"),this.cr())},l.prototype.custom_inline=function(e,t){t&&e.onEnter?this.lit(e.onEnter):!t&&e.onExit&&this.lit(e.onExit)},l.prototype.custom_block=function(e,t){this.cr(),t&&e.onEnter?this.lit(e.onEnter):!t&&e.onExit&&this.lit(e.onExit),this.cr()},l.prototype.out=function(e){this.lit(i(e,!1))},l.prototype.tag=function(e,t,n){if(!(this.disableTags>0)){if(this.buffer+="<"+e,t&&t.length>0)for(var r,i=0;void 0!==(r=t[i]);)this.buffer+=" "+r[0]+'="'+r[1]+'"',i++;n&&(this.buffer+=" /"),this.buffer+=">",this.lastOut=">"}},l.prototype.attrs=function(e){var t=[];if(this.options.sourcepos){var n=e.sourcepos;n&&t.push(["data-sourcepos",String(n[0][0])+":"+String(n[0][1])+"-"+String(n[1][0])+":"+String(n[1][1])])}return t},e.exports=l},"22C3":function(e,t,n){"use strict";var r=n("iTuU");t.distinct=function(e,t){return r.distinct(e,t)(this)}},"22MU":function(e,t,n){var r=n("OS4k"),i=n("I3Lk")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},"22Wu":function(e,t,n){"use strict";var r=n("O7pv");t.count=function(e){return r.count(e)(this)}},"23sQ":function(e,t,n){"use strict";t.isDate=function(e){return e instanceof Date&&!isNaN(+e)}},"25nH":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=40)}({0:function(e,t){e.exports=n("ERkP")},1:function(e,t){e.exports=n("J45V")},2:function(e,t){e.exports=n("2OuC")},40:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c}));var r=n(0),i=n.n(r),o=n(1),a=n(2),s=n.n(a);function l(){return(l=Object.assign||function(e){for(var t=1;t\/\?\s]+)/g,comments:{lineComment:"#",blockComment:["<#","#>"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},i={defaultToken:"",ignoreCase:!0,tokenPostfix:".ps1",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["begin","break","catch","class","continue","data","define","do","dynamicparam","else","elseif","end","exit","filter","finally","for","foreach","from","function","if","in","param","process","return","switch","throw","trap","try","until","using","var","while","workflow","parallel","sequence","inlinescript","configuration"],helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=>/,"comment","@pop"],[/(\.)(@helpKeywords)(?!\w)/,{token:"comment.keyword.$2"}],[/[\.#]/,"comment"]]}}},"27zd":function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},i=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n}return r(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(n("oaw7").AsyncAction);t.QueueAction=i},"284h":function(e,t,n){var r=n("cDf5").default;function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n},e.exports.default=e.exports,e.exports.__esModule=!0},"28aW":function(e,t,n){var r=n("5jQf"),i=n("sdc/"),o=n("9tx4");i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},"2B5r":function(e,t,n){"use strict";var r=n("PBB4"),i=n.n(r)()((function(e){return e[1]}));i.push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-list .monaco-list-row.focused.selected .outline-element .monaco-highlighted-label,\r\n.monaco-list .monaco-list-row.focused.selected .outline-element-decoration {\r\n\t/* make sure selection color wins when a label is being selected */\r\n\tcolor: inherit !important;\r\n}\r\n\r\n.monaco-list .outline-element {\r\n\tdisplay: flex;\r\n\tflex: 1;\r\n\tflex-flow: row nowrap;\r\n\talign-items: center;\r\n}\r\n\r\n.monaco-list .outline-element .monaco-highlighted-label {\r\n\tcolor: var(--outline-element-color);\r\n}\r\n\r\n.monaco-tree .monaco-tree-row.focused .outline-element .outline-element-detail {\r\n\tvisibility: inherit;\r\n}\r\n\r\n.monaco-list .outline-element .outline-element-decoration {\r\n\topacity: 0.75;\r\n\tfont-size: 90%;\r\n\tfont-weight: 600;\r\n\tpadding: 0 12px 0 5px;\r\n\tmargin-left: auto;\r\n\ttext-align: center;\r\n\tcolor: var(--outline-element-color);\r\n}\r\n\r\n.monaco-list .outline-element .outline-element-decoration.bubble {\r\n\tfont-family: codicon;\r\n\tfont-size: 14px;\r\n\topacity: 0.4;\r\n}\r\n\r\n.monaco-list .outline-element .outline-element-icon {\r\n\tmargin-right: 4px;\r\n}\r\n",""]),t.a=i},"2B8G":function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n("wgY5"))},"2Bfe":function(e,t,n){"use strict";e.exports=n("Pms2")},"2E9s":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"2FUs":function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}},e.exports.default=e.exports,e.exports.__esModule=!0},"2Fbm":function(e,t,n){var r=n("5pfJ");e.exports=function(){this.__data__=r?r(null):{},this.size=0}},"2FhQ":function(e,t){function n(e,t){for(var n=0;n=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n("wgY5"))},"2Jo5":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=99)}({0:function(e,t){e.exports=n("mwAw")},1:function(e,t){e.exports=n("Cbaw")},10:function(e,t){e.exports=n("IsaA")},16:function(e,t){e.exports=n("hPiZ")},17:function(e,t){e.exports=n("TH2X")},18:function(e,t){e.exports=n("cado")},2:function(e,t){e.exports=n("ERkP")},20:function(e,t){e.exports=n("lTQA")},21:function(e,t){e.exports=n("1i9e")},22:function(e,t){e.exports=n("NMjM")},25:function(e,t){e.exports=n("vYXe")},28:function(e,t){e.exports=n("Tk8r")},3:function(e,t){e.exports=n("j/s1")},5:function(e,t){e.exports=n("nsO7")},7:function(e,t){e.exports=n("J45V")},72:function(e,t){e.exports=n("E8sZ")},8:function(e,t){e.exports=n("vIQw")},9:function(e,t){e.exports=n("Hil8")},99:function(e,t,n){"use strict";n.r(t);var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(5),l=n(7),c=n(17),u=n(21),d=n(10),h=n(8),p=n(16),f=n.n(p),m=n(28),g=n.n(m),b=n(18),y=n.n(b),_=n(22),v=n.n(_),M=n(0);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(){return(x=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var n=0;n &{border-bottom:",";}[data-placement='above'] > &{border-top:",";}"],Object(M.variable)("Multiselect","Compact","filterPadding"),Object(M.variable)("Multiselect","Compact","filterBorderBottom"),Object(M.variable)("Multiselect","Compact","filterBorderTop")),R=z.a.span.withConfig({displayName:"CompactStyles__StyledCount",componentId:"sc-1ebm9az-2"})(["padding-right:",";"],Object(M.variable)("spacingQuarter")),B=z.a.div.withConfig({displayName:"CompactStyles__StyledToggleAllControls",componentId:"sc-1ebm9az-3"})(["padding:",";&:not([data-placement='above']){border-bottom:",";}&[data-placement='above']{border-top:",";}"],Object(M.variable)("Multiselect","Compact","toggleAllControlsPadding"),Object(M.variable)("Multiselect","Compact","toggleAllControlsBorderBottom"),Object(M.variable)("Multiselect","Compact","toggleAllControlsBorderTop"));function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function q(){return(q=Object.assign||function(e){for(var t=1;t1?a-1:0),c=1;c=0,compact:!0,role:"option"});return p&&p.indexOf(n.props.value)>=0?(0===_&&e.splice(_,0,i.a.createElement(y.a.Divider,{key:"topDivider"})),e.splice(_,0,s),_+=1):e.push(s),e}),[]);Object(s.forEachRight)(b,(function(e){if(!Object(s.find)(M,(function(t){return t.props&&t.props.value===e}))){e===o.state.filterKeyword&&(t=!0);var n=p&&p.indexOf(e)>=0;M.splice(n?0:_+1,0,i.a.createElement(P,{label:String(e),value:e,key:"missing-value-".concat(e),onClick:o.handleMenuOptionClick,compact:!0,selected:!0})),n&&(_+=1)}}));var w=Object(u.stringToKeywords)(d);return M=g?M:M.filter((function(e){return!v(e)||Object(u.testPhrase)(e.props.label,w)})).map((function(e){if(!v(e))return e;var t=w&&Object(u.keywordLocations)(e.props.label,w);return Object(r.cloneElement)(e,{matchRanges:t||void 0})})),m&&!t&&d&&M.splice(_,0,i.a.createElement(P,{label:"".concat(d," (new value)"),value:d,key:"newValue",compact:!0,onClick:o.handleMenuOptionClick})),M=M.reduce((function(e,t){if(!v(t))return e.push(t),e;if(t.props&&t.props.hidden)return e;var n=o.availableOptionCount===o.state.activeIndex;if(o.availableOptionCount+=1,o.selectedOptionCount+=t.props.selected?1:0,!n||!h)return e.push(t),e;t.props.disabled||(o.activeValue=t.props.value);var i=Object(r.cloneElement)(t,{active:n,id:o.activeItemId,ref:o.handleActiveOptionMount});return e.push(i),e}),[]),o.displayedValues=M.reduce((function(e,t){return t.props&&t.props.value&&e.push(t.props.value),e}),[]),i.a.createElement(y.a,q({childrenStart:o.renderControls({placement:l,hasChildren:!!M.length}),placement:l,maxHeight:a,onScrollBottom:o.props.onScrollBottom?o.handleScrollBottom:void 0,"data-test":"results-menu",isLoading:o.props.isLoadingOptions},Object(s.pick)(o.props,"noOptionsMessage","footerMessage","animateLoading","loadingMessage"),{style:Object(s.extend)({width:Math.max(n,200)},o.props.menuStyle)}),M)})),o.controlledExternally=Object(s.has)(e,"values"),o.state={open:!1,textHasFocus:!1,values:e.defaultValues||[],activeIndex:0,filterKeyword:""},o.activeItemId=Object(d.createDOMID)("active-item"),o}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(e){}},{key:"getCurrentValues",value:function(){return this.isControlled()?this.props.values:this.state.values}},{key:"isControlled",value:function(){return this.controlledExternally}},{key:"focus",value:function(){this.state.dropdown&&this.state.dropdown.focus()}},{key:"toggleValue",value:function(e,t){var n,r=this.getCurrentValues(),i=this.getCurrentValues().indexOf(t),o=this.props.name;n=i>=0?U(r.slice(0,i)).concat(U(r.slice(i+1))):r.concat([t]),this.isControlled()||this.setState({values:n,open:!0}),this.props.onChange(e,{values:n,name:o})}},{key:"removeValue",value:function(e,t){var n=Object(s.without)(this.getCurrentValues(),t),r=this.props.name;this.isControlled()||this.setState({values:n}),this.props.onChange(e,{values:n,name:r})}},{key:"renderControls",value:function(e){var t=e.placement,n=e.hasChildren,r=i.a.createElement(B,{"data-placement":t,key:"selectAll"},i.a.createElement(g.a,{onClick:this.handleSelectAll,disabled:!(this.availableOptionCount-this.selectedOptionCount),"data-test":"select-all",style:{marginRight:20}},this.state.filterKeyword?Object(l._)("Select All Matches"):Object(l._)("Select All")),i.a.createElement(g.a,{onClick:this.handleClearAll,disabled:!this.selectedOptionCount,"data-test":"clear-all"},this.state.filterKeyword?Object(l._)("Clear All Matches"):Object(l._)("Clear All")));return i.a.createElement("div",{key:"controls"},"above"===t&&n&&r,i.a.createElement(H,{key:"filter","data-test":"filter","data-placement":t},i.a.createElement(v.a,{autoComplete:!1,value:this.state.filterKeyword,appearance:"search",onChange:this.handleTextChange,onKeyDown:this.handleTextKeyDown,onKeyUp:this.handleTextKeyUp,onFocus:this.handleTextFocus,onBlur:this.handleTextBlur,placeholder:Object(l._)("filter"),tabIndex:1,"aria-label":Object(l._)("Filter"),"aria-activedescendant":this.activeItemId,ref:this.handleInputMount})),"above"!==t&&n&&r)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.defaultPlacement,o=e.describedBy,a=e.disabled,c=e.error,u=e.inline,d=e.labelledBy,h=e.placeholder,p=e.scrollContainer,m=e.size,g=W(e,["children","defaultPlacement","describedBy","disabled","error","inline","labelledBy","placeholder","scrollContainer","size"]),b=this.getCurrentValues(),y=r.Children.toArray(t),_=b.reduce((function(e,t,n,r){var i=Object(s.find)(y,(function(e){return e.props.value===t}));return i?e.push(i.props.children||i.props.label):e.push(t),n0?_:h,error:c,inline:u,size:m,disabled:a||null,isMenu:!0,role:"listbox","aria-labelledby":d,"aria-describedby":o,"aria-multiselectable":"true"},!!b.length&&i.a.createElement(R,{"data-role":"count"},"(",b.length,")"));return i.a.createElement(I,q({"data-test-values":JSON.stringify(b),closeReasons:["clickAway","escapeKey","offScreen","toggleClick"],inline:u,toggle:v},Object(s.omit)(g,"allowNewValues","animateLoading","controlledFilter","defaultValues","footerMessage","inputRef","isLoadingOptions","menuStyle","noOptionsMessage","onChange","onFilterChange","onScrollBottom","values","useClickawayOverlay"),{onClick:a?null:this.handleClick,onRequestOpen:this.handleRequestOpen,onRequestClose:this.handleRequestClose,open:this.state.open,repositionMode:"flip",scrollContainer:p,defaultPlacement:n,canCoverAnchor:window.innerHeight<500},Object(M.ref)(this.handleMount)),this.renderMenu)}}])&&X(n.prototype,o),a&&X(n,a),t}(r.Component);J(Z,"propTypes",{animateLoading:a.a.bool,allowNewValues:a.a.bool,children:a.a.node,controlledFilter:a.a.bool,defaultPlacement:a.a.oneOf(["above","below","vertical"]),defaultValues:a.a.array,describedBy:a.a.string,disabled:a.a.bool,elementRef:a.a.func,error:a.a.bool,footerMessage:a.a.node,inline:a.a.bool,inputRef:a.a.func,isLoadingOptions:a.a.bool,labelledBy:a.a.string,loadingMessage:a.a.node,menuStyle:a.a.object,name:a.a.string,noOptionsMessage:a.a.node,onChange:a.a.func,onScrollBottom:a.a.func,onFilterChange:a.a.func,placeholder:a.a.string,scrollContainer:a.a.oneOfType([a.a.object,a.a.string]),size:a.a.oneOf(["small","medium"]),tabConfirmsNewValue:a.a.bool,values:a.a.array}),J(Z,"defaultProps",{animateLoading:!1,allowNewValues:!1,defaultPlacement:"vertical",disabled:!1,inline:!1,inputRef:function(){},isLoadingOptions:!1,menuStyle:{},noOptionsMessage:Object(l._)("No matches"),onChange:function(){},onFilterChange:function(){},placeholder:Object(l._)("Select..."),scrollContainer:"window",size:"medium",tabConfirmsNewValue:!1}),J(Z,"Option",P),J(Z,"Divider",y.a.Divider),J(Z,"Heading",y.a.Heading);var ee=Z,te=n(72),ne=n.n(te),re=n(20),ie=n.n(re),oe=n(9),ae=n.n(oe),se=z()(ae.a).withConfig({displayName:"NormalStyles__StyledBox",componentId:"sc-1uwwpco-0"})(["border:",";border-radius:",";align-items:flex-start;flex-wrap:wrap;padding:",";min-height:",";background-color:",";max-height:300px;overflow-y:auto;[data-inline='true'] + &{margin-left:",";}&[data-hasfocus]{box-shadow:",";border-color:",";}&[aria-disabled]{cursor:not-allowed;background-color:",";border-color:",";}&[data-error]{border-color:",";color:",";}&[data-size='small']{min-height:",";}&[data-inline]{width:400px;}&[data-popoveropen='true']{position:relative;z-index:",";}"],Object(M.variable)("border"),Object(M.variable)("borderRadius"),Object(M.variable)("Multiselect","Normal","boxPadding"),Object(M.variable)("inputHeight"),Object(M.variable)("Multiselect","Normal","boxBackgroundColor"),Object(M.variable)("spacingHalf"),Object(M.variable)("Multiselect","Normal","boxFocusShadow"),Object(M.variable)("Multiselect","Normal","boxFocusBorderColor"),Object(M.variable)("Multiselect","Normal","boxDisabledBackgroundColor"),Object(M.variable)("Multiselect","Normal","boxDisabledBorderColor"),Object(M.variable)("Multiselect","Normal","boxInvalidBorderColor"),Object(M.variable)("Multiselect","Normal","boxInvalidColor"),Object(M.variable)("inputHeightSmall"),(function(e){return Object(M.variable)("zindexFixedNavbar")(e)-1})),le=z.a.div.withConfig({displayName:"NormalStyles__StyledInputWrapper",componentId:"sc-1uwwpco-1"})(["flex:1 0 auto;max-width:100%;"]),ce=z.a.input.withConfig({displayName:"NormalStyles__StyledInput",componentId:"sc-1uwwpco-2"})(["",";min-width:100%;max-width:100%;line-height:12px;padding:",";&[data-size='small']{padding:3px;font-size:",";}"],Object(M.mixin)("reset")("block"),Object(M.variable)("Multiselect","Normal","inputPadding"),Object(M.variable)("fontSizeSmall")),ue=z.a.div.withConfig({displayName:"NormalStyles__StyledOverlay",componentId:"sc-1uwwpco-3"})(["&[data-popoveropen='true']{position:fixed;top:0;left:0;width:100%;height:100%;z-index:",";}"],(function(e){return Object(M.variable)("zindexFixedNavbar")(e)-2}));function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fe(){return(fe=Object.assign||function(e){for(var t=1;t1?o-1:0),l=1;l=0;w&&w.length&&r.Children.forEach(o,(function(e){if(Object(r.isValidElement)(e)){var t=w.indexOf(e.props.value);-1!==t&&(x[t]=e)}}));var k=Object(u.stringToKeywords)(this.state.filterKeyword),L=a?r.Children.toArray(o):r.Children.toArray(o).filter((function(e){return!Object(s.get)(e,["props","label"],!1)||Object(u.testPhrase)(e.props.label,k)}));this.availableOptionCount=0,this.activeValue=void 0,this.children=r.Children.map(L,(function(t,n){if(!t.props||!Object(s.has)(t.props,"value"))return t;if(t.props.value===e.state.filterKeyword&&(A=!0),w.indexOf(t.props.value)>=0)return null;var i=t.props,o=i.label,l=i.matchRanges,c=!a&&!l&&k&&Object(u.keywordLocations)(o,k);return Object(r.cloneElement)(t,{key:n,onClick:e.handleMenuOptionClick,matchRanges:l||c||void 0})})),n&&!A&&this.state.filterKeyword&&this.children.unshift(i.a.createElement(P,{label:"".concat(this.state.filterKeyword," (new value)"),value:this.state.filterKeyword,key:"newValue",onClick:this.handleMenuOptionClick})),this.state.open&&(this.children=r.Children.map(this.children,(function(t){if(!t.props||!Object(s.has)(t.props,"value"))return t;var n=e.availableOptionCount===e.state.activeIndex;return e.availableOptionCount+=1,n?(t.props.disabled||(e.activeValue=t.props.value),Object(r.cloneElement)(t,{active:n,id:e.activeItemId,ref:e.handleActiveOptionMount})):t})));var S="".concat(.8*this.state.filterKeyword.length,"em");return[i.a.createElement(se,fe({key:"control","data-test-values":JSON.stringify(w),inline:p,"data-hasfocus":this.state.hasFocus||null},s.omit.apply(void 0,[_,"animateLoading","controlledFilter","defaultValues","footerMessage","inputRef","isLoadingOptions","labelledBy","menuStyle","noOptionsMessage","onChange","onFilterChange","onScrollBottom","values","useClickawayOverlay"].concat(he(Object(s.keys)(v)))),{onClick:d?null:this.handleClick,"data-disabled":d||null,"data-error":h||null,"data-size":b,"data-test-popover-id":this.popoverId,"data-popoveropen":this.state.open,flex:!0,elementRef:this.handleMount,role:"listbox","aria-disabled":d||null}),this.renderButtons(x),!d&&i.a.createElement(le,{role:"combobox","aria-owns":this.state.open?this.popoverId:null,"aria-haspopup":!0,"aria-expanded":this.state.open},i.a.createElement(ce,fe({"data-test":"textbox"},Object(M.ref)(this.handleInputMount),{onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onKeyDown:this.handleInputKeyDown,value:this.state.filterKeyword,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,"aria-autocomplete":"list",style:{flexBasis:S,width:S},placeholder:w.length?"":m,"data-size":b,"aria-activedescendant":this.state.open&&this.availableOptionCount>0?this.activeItemId:null,"aria-controls":this.state.open?this.popoverId:null},v))),!d&&i.a.createElement(ie.a,{open:this.state.open&&!!this.state.el,autoCloseWhenOffScreen:!0,anchor:this.state.el,appearance:"light",onRequestClose:this.handleRequestClose,scrollContainer:g,canCoverAnchor:!1,defaultPlacement:l,repositionMode:"flip",id:this.popoverId},this.renderMenu)),y&&this.state.open?i.a.createElement(ue,fe({key:"overlay","data-popoveropen":this.state.open,"data-test":"overlay"},Object(M.ref)(this.handleOverlayMount))):null]}}])&&ge(n.prototype,o),a&&ge(n,a),t}(r.Component);Me(we,"propTypes",{animateLoading:a.a.bool,allowNewValues:a.a.bool,children:a.a.node,controlledFilter:a.a.bool,defaultPlacement:a.a.oneOf(["above","below","vertical"]),defaultValues:a.a.array,describedBy:a.a.string,disabled:a.a.bool,elementRef:a.a.func,error:a.a.bool,footerMessage:a.a.node,inline:a.a.bool,inputRef:a.a.func,isLoadingOptions:a.a.bool,labelledBy:a.a.string,loadingMessage:a.a.node,menuStyle:a.a.object,name:a.a.string,noOptionsMessage:a.a.node,onChange:a.a.func,onScrollBottom:a.a.func,onFilterChange:a.a.func,placeholder:a.a.string,scrollContainer:a.a.oneOfType([a.a.object,a.a.string]),size:a.a.oneOf(["small","medium"]),tabConfirmsNewValue:a.a.bool,useClickawayOverlay:a.a.bool,values:a.a.array}),Me(we,"defaultProps",{animateLoading:!1,allowNewValues:!1,defaultPlacement:"vertical",disabled:!1,elementRef:function(){},inline:!1,inputRef:function(){},isLoadingOptions:!1,menuStyle:{},noOptionsMessage:Object(l._)("No matches"),onChange:function(){},onFilterChange:function(){},placeholder:Object(l._)("Select..."),scrollContainer:"window",size:"medium",tabConfirmsNewValue:!1,useClickawayOverlay:!1}),Me(we,"Option",P),Me(we,"Divider",y.a.Divider),Me(we,"Heading",y.a.Heading);var xe=we;function Ae(e){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ke(){return(ke=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"id";if(e.match(/^[a-zA-Z][\w-]*$/))return"".concat(e,"-").concat(r());throw new Error("createDOMID: Prefix must start with a letter and may only contain letters, digits, hyphens and underscores")}},"2PwL":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=91)}({0:function(e,t){e.exports=n("mwAw")},1:function(e,t){e.exports=n("Cbaw")},15:function(e,t){e.exports=n("Enqy")},16:function(e,t){e.exports=n("hPiZ")},2:function(e,t){e.exports=n("ERkP")},23:function(e,t){e.exports=n("i9yO")},26:function(e,t){e.exports=n("iw7d")},3:function(e,t){e.exports=n("j/s1")},45:function(e,t){e.exports=n("1Xpd")},47:function(e,t){e.exports=n("QeYF")},5:function(e,t){e.exports=n("nsO7")},7:function(e,t){e.exports=n("J45V")},8:function(e,t){e.exports=n("vIQw")},9:function(e,t){e.exports=n("Hil8")},91:function(e,t,n){"use strict";n.r(t);var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(15),l=n(5),c=n(3),u=n.n(c),d=n(47),h=n.n(d),p=n(0),f=n(23),m=n(8),g=n(9),b=n.n(g),y=u()(b.a).withConfig({displayName:"BodyStyles__StyledBox",componentId:"lv54z7-0"})(["background-color:",";padding:calc("," * 2);flex:0 1 auto;overflow:auto;@media all and (-ms-high-contrast:none){*::-ms-backdrop,&{max-height:calc(100vh - 180px);}}"],Object(p.variable)("Modal","Body","boxBackgroundColor"),Object(p.variable)("fontSize"));function _(){return(_=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var M={children:a.a.node};function w(e){var t=e.children,n=v(e,["children"]);return i.a.createElement(y,_({"data-test":"body"},n),t)}w.propTypes=M;var x=w,A=u()(b.a).withConfig({displayName:"FooterStyles__StyledBox",componentId:"yszcmv-0"})(["flex:0 0 auto;padding:",";text-align:right;background-color:",";border-top:1px solid ",";& > button{min-width:80px;}"],Object(p.variable)("spacing"),Object(p.variable)("Modal","Footer","boxBackgroundColor"),Object(p.variable)("Modal","Footer","boxBorderTopColor"));function k(){return(k=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var S={children:a.a.node};function T(e){var t=e.children,n=L(e,["children"]);return i.a.createElement(A,k({"data-test":"footer"},n),t)}T.propTypes=S;var O=T,C=n(7),D=n(16),E=n.n(D),P=n(45),j=n.n(P),z=n(26),N=n.n(z);function Y(){return i.a.createElement("svg",{viewBox:"0 0 24 24",focusable:"false",style:{display:"block",height:"16px",width:"16px",fill:"currentColor",margin:"2px auto 0 auto"}},i.a.createElement("title",null,Object(C._)("Peek behind modal")),i.a.createElement("path",{d:"M7 1h4v3H7zM13 1h4v3h-4zM3 3H1v2h4V1H3M1 7h3v4H1zM1 13h3v4H1zM1 19v2h2v2h2v-4H3M7 20h4v3H7zM13 20h4v3h-4zM19 19v4h2v-2h2v-2h-2M20 13h3v4h-3zM20 7h3v4h-3zM21 3V1h-2v4h4V3"}))}var I=u()(b.a).withConfig({displayName:"HeaderStyles__StyledBox",componentId:"sc-1y722ut-0"})(["flex:0 0 auto;display:flex;border-bottom:1px solid ",";position:relative;min-height:30px;background-color:",";padding:",";align-items:center;padding-right:",";"],Object(p.variable)("Modal","Header","boxBorderBottomColor"),Object(p.variable)("Modal","Header","boxBackgroundColor"),Object(p.variable)("Modal","Header","boxPadding"),(function(e){var t=e.close,n=e.peek;return t&&n?Object(p.variable)("Modal","Header","closeAndPeekPaddingRight"):(n||t)&&Object(p.variable)("Modal","Header","closeOrPeekPaddingRight")})),H=u.a.div.withConfig({displayName:"HeaderStyles__StyledTitleWrapper",componentId:"sc-1y722ut-1"})(["flex-direction:column;"]),R=u.a.svg.withConfig({displayName:"HeaderStyles__StyledIcon",componentId:"sc-1y722ut-2"})(["margin-right:16px;background-color:",";width:40px;height:40px;padding:16px;border-radius:4px;"],Object(p.variable)("Modal","Header","iconBackgroundColor")),B=u.a.h1.withConfig({displayName:"HeaderStyles__StyledTitle",componentId:"sc-1y722ut-3"})(["",";color:",";font-size:20px;margin:0;line-height:",";overflow-wrap:break-word;font-weight:",";"],Object(p.mixin)("reset")("block"),Object(p.variable)("Modal","Header","titleColor"),Object(p.variable)("Modal","Header","titleLineHeight"),Object(p.variable)("Modal","Header","titleFontWeightSemiBold")),F=u.a.h3.withConfig({displayName:"HeaderStyles__StyledSubtitle",componentId:"sc-1y722ut-4"})(["",";font-size:14px;line-height:",";overflow-wrap:break-word;"],Object(p.mixin)("reset")("block"),Object(p.variable)("Modal","Header","subTitleLineHeight")),W=u.a.div.withConfig({displayName:"HeaderStyles__StyledCloseWrapper",componentId:"sc-1y722ut-5"})(["position:absolute;top:0;right:0;bottom:50%;width:0;max-height:35px;transform-origin:bottom right;transform:rotate(-90deg) translateX(100%);"]),q=u.a.div.withConfig({displayName:"HeaderStyles__StyledClose",componentId:"sc-1y722ut-6"})(["position:absolute;right:0;top:0;transform:rotate(90deg) translate(-50%,-50%);"]);function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(){return(V=Object.assign||function(e){for(var t=1;t200)return e;if("object"==typeof e){switch(e.$mid){case 1:return r.a.revive(e);case 2:return new RegExp(e.source,e.flags)}for(var n in e)Object.hasOwnProperty.call(e,n)&&(e[n]=o(e[n],t+1))}return e}},"2jf8":function(e,t,n){"use strict";var r=n("sdc/"),i=n("EEm6"),o=n("tzoE"),a="endsWith",s="".endsWith;r(r.P+r.F*n("Tnky")(a),"String",{endsWith:function(e){var t=o(this,e,a),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),l=void 0===n?r:Math.min(i(n),r),c=String(e);return s?s.call(t,c,l):t.slice(l-c.length,l)===c}})},"2m54":function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},"2nMj":function(e,t,n){var r=n("rpVN");r(r.G,{global:n("10y7")})},"2q8g":function(e,t,n){var r=n("Dhk8"),i=n("tQYX");e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"2rr+":function(e,t,n){"use strict";n.r(t),n.d(t,"MoveWordCommand",(function(){return b})),n.d(t,"WordLeftCommand",(function(){return y})),n.d(t,"WordRightCommand",(function(){return _})),n.d(t,"CursorWordStartLeft",(function(){return v})),n.d(t,"CursorWordEndLeft",(function(){return M})),n.d(t,"CursorWordLeft",(function(){return w})),n.d(t,"CursorWordStartLeftSelect",(function(){return x})),n.d(t,"CursorWordEndLeftSelect",(function(){return A})),n.d(t,"CursorWordLeftSelect",(function(){return k})),n.d(t,"CursorWordAccessibilityLeft",(function(){return L})),n.d(t,"CursorWordAccessibilityLeftSelect",(function(){return S})),n.d(t,"CursorWordStartRight",(function(){return T})),n.d(t,"CursorWordEndRight",(function(){return O})),n.d(t,"CursorWordRight",(function(){return C})),n.d(t,"CursorWordStartRightSelect",(function(){return D})),n.d(t,"CursorWordEndRightSelect",(function(){return E})),n.d(t,"CursorWordRightSelect",(function(){return P})),n.d(t,"CursorWordAccessibilityRight",(function(){return j})),n.d(t,"CursorWordAccessibilityRightSelect",(function(){return z})),n.d(t,"DeleteWordCommand",(function(){return N})),n.d(t,"DeleteWordLeftCommand",(function(){return Y})),n.d(t,"DeleteWordRightCommand",(function(){return I})),n.d(t,"DeleteWordStartLeft",(function(){return H})),n.d(t,"DeleteWordEndLeft",(function(){return R})),n.d(t,"DeleteWordLeft",(function(){return B})),n.d(t,"DeleteWordStartRight",(function(){return F})),n.d(t,"DeleteWordEndRight",(function(){return W})),n.d(t,"DeleteWordRight",(function(){return q}));var r,i=n("1MHj"),o=n("A4Zs"),a=n("Iagv"),s=n("wF5P"),l=n("rAPR"),c=n("CVC9"),u=n("uofm"),d=n("UKR2"),h=n("YNG1"),p=n("IsIL"),f=n("C/Fj"),m=n("q64L"),g=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n._wordNavigationType=t.wordNavigationType,n}return g(t,e),t.prototype.runEditorCommand=function(e,t,n){var r=this;if(t.hasModel()){var i=Object(l.a)(t.getOption(96)),o=t.getModel(),s=t.getSelections().map((function(e){var t=new c.a(e.positionLineNumber,e.positionColumn),n=r._move(i,o,t,r._wordNavigationType);return r._moveTo(e,n,r._inSelectionMode)}));if(t._getCursors().setStates("moveWordCommand",0,s.map((function(e){return a.d.fromModelSelection(e)}))),1===s.length){var u=new c.a(s[0].positionLineNumber,s[0].positionColumn);t.revealPosition(u,0)}}},t.prototype._moveTo=function(e,t,n){return n?new d.a(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new d.a(t.lineNumber,t.column,t.lineNumber,t.column)},t}(i.c),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype._move=function(e,t,n,r){return s.a.moveWordLeft(e,t,n,r)},t}(b),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype._move=function(e,t,n,r){return s.a.moveWordRight(e,t,n,r)},t}(b),v=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0,kbOpts:{kbExpr:h.a.textInputFocus,primary:2063,mac:{primary:527},weight:100}})||this}return g(t,e),t}(y),M=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})||this}return g(t,e),t}(y),w=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0})||this}return g(t,e),t}(y),x=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0,kbOpts:{kbExpr:h.a.textInputFocus,primary:3087,mac:{primary:1551},weight:100}})||this}return g(t,e),t}(y),A=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})||this}return g(t,e),t}(y),k=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0})||this}return g(t,e),t}(y),L=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:f.a.and(h.a.textInputFocus,p.a),win:{primary:2063},weight:101}})||this}return g(t,e),t.prototype._move=function(t,n,r,i){return e.prototype._move.call(this,Object(l.a)(m.e.wordSeparators.defaultValue),n,r,i)},t}(y),S=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:f.a.and(h.a.textInputFocus,p.a),win:{primary:3087},weight:101}})||this}return g(t,e),t.prototype._move=function(t,n,r,i){return e.prototype._move.call(this,Object(l.a)(m.e.wordSeparators.defaultValue),n,r,i)},t}(y),T=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})||this}return g(t,e),t}(_),O=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:h.a.textInputFocus,primary:2065,mac:{primary:529},weight:100}})||this}return g(t,e),t}(_),C=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})||this}return g(t,e),t}(_),D=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})||this}return g(t,e),t}(_),E=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:h.a.textInputFocus,primary:3089,mac:{primary:1553},weight:100}})||this}return g(t,e),t}(_),P=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})||this}return g(t,e),t}(_),j=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:f.a.and(h.a.textInputFocus,p.a),win:{primary:2065},weight:101}})||this}return g(t,e),t.prototype._move=function(t,n,r,i){return e.prototype._move.call(this,Object(l.a)(m.e.wordSeparators.defaultValue),n,r,i)},t}(_),z=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:f.a.and(h.a.textInputFocus,p.a),win:{primary:3089},weight:101}})||this}return g(t,e),t.prototype._move=function(t,n,r,i){return e.prototype._move.call(this,Object(l.a)(m.e.wordSeparators.defaultValue),n,r,i)},t}(_),N=function(e){function t(t){var n=e.call(this,t)||this;return n._whitespaceHeuristics=t.whitespaceHeuristics,n._wordNavigationType=t.wordNavigationType,n}return g(t,e),t.prototype.runEditorCommand=function(e,t,n){var r=this;if(t.hasModel()){var i=Object(l.a)(t.getOption(96)),a=t.getModel(),s=t.getSelections().map((function(e){var t=r._delete(i,a,e,r._whitespaceHeuristics,r._wordNavigationType);return new o.a(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}},t}(i.c),Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype._delete=function(e,t,n,r,i){var o=s.a.deleteWordLeft(e,t,n,r,i);return o||new u.a(1,1,1,1)},t}(N),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype._delete=function(e,t,n,r,i){var o=s.a.deleteWordRight(e,t,n,r,i);if(o)return o;var a=t.getLineCount(),l=t.getLineMaxColumn(a);return new u.a(a,l,a,l)},t}(N),H=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:h.a.writable})||this}return g(t,e),t}(Y),R=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:h.a.writable})||this}return g(t,e),t}(Y),B=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:h.a.writable,kbOpts:{kbExpr:h.a.textInputFocus,primary:2049,mac:{primary:513},weight:100}})||this}return g(t,e),t}(Y),F=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:h.a.writable})||this}return g(t,e),t}(I),W=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:h.a.writable})||this}return g(t,e),t}(I),q=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:h.a.writable,kbOpts:{kbExpr:h.a.textInputFocus,primary:2068,mac:{primary:532},weight:100}})||this}return g(t,e),t}(I);Object(i.g)(new v),Object(i.g)(new M),Object(i.g)(new w),Object(i.g)(new x),Object(i.g)(new A),Object(i.g)(new k),Object(i.g)(new T),Object(i.g)(new O),Object(i.g)(new C),Object(i.g)(new D),Object(i.g)(new E),Object(i.g)(new P),Object(i.g)(new L),Object(i.g)(new S),Object(i.g)(new j),Object(i.g)(new z),Object(i.g)(new H),Object(i.g)(new R),Object(i.g)(new B),Object(i.g)(new F),Object(i.g)(new W),Object(i.g)(new q)},"2srY":function(e,t,n){var r=n("w2Tz");e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},"2tE1":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=function(){function e(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n}return e.compare=function(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId},e}(),i=function(){function e(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}return e.compare=function(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.colorn&&(p=n-f);var m=c.color,g=this._color2Id[m];g||(g=++this._lastAssignedId,this._color2Id[m]=g,this._id2Color[g]=m);var b=new r(p-f,p+f,g);c.setColorZone(b),a.push(b)}return this._colorZonesInvalid=!1,a.sort(r.compare),a},e}()},"2tEW":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return r})),n.d(t,"language",(function(){return i}));var r={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},i={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}}},"2tJB":function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},"2wQW":function(e,t,n){"use strict";var r=n("kqEp").Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},"2zvV":function(e,t,n){var r=n("3dpm");e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},"321D":function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},i=function(e){function t(){e.apply(this,arguments)}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n("lLRD").Subscriber);t.OuterSubscriber=i},"32lz":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=42)}({0:function(e,t){e.exports=n("ERkP")},1:function(e,t){e.exports=n("P+pW")},2:function(e,t){e.exports=n("J45V")},42:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n/g,">").replace(/"/g,""").replace(/'/g,"'")},t.escapeSVG=function(e){return(""+e).replace(//g,">")},t.filterPropsByRegex=function(e,t){if(!(t instanceof RegExp))return e;var n=void 0,r={};for(n in e)e.hasOwnProperty(n)&&t.test(n)&&(r[n]=e[n]);return r}),h=t.normalizeBoolean=function(e,t){if((0,i.default)(e).isUndefined())return!!t;switch("string"==typeof e&&(e=e.toLowerCase()),e){case!0:case 1:case"1":case"yes":case"on":case"true":return!0;case!1:case 0:case"0":case"no":case"off":case"false":return!1;default:return e}},p=t.stringToObject=function(e){if(!e)return!1;var t=void 0,n=void 0,r=void 0,o={},a=(e=s(e)).length;if("{"!==e.charAt(0)||"}"!==e.charAt(a-1))return!1;if(/^{\s*}$/.test(e))return{};e=e.substr(1,a-2);var d=c(e,",");for(t=0;t0&&t.push(n.join("")),n=[]);else{if(i){i=!1,t.push(n.join("")),n=[];continue}i=!0}else{var l=a+1;if(s>l&&("\\"===o.charAt(l)||'"'===o.charAt(l))){n.push(o.charAt(l)),a++;continue}n.push(o.charAt(a))}return n.length>0&&t.push(n.join("")),t},m=t.stringToArray=function(e){if(!e)return!1;var t=(e=s(e)).length;return"["===e.charAt(0)&&"]"===e.charAt(t-1)&&(/^\[\s*]$/.test(e)?[]:(e=e.substr(1,t-2),f(e)))},g=(t.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},function(e){return i.default.isNumber(e)?e:"#"===e.substring(0,1)?(0,o.hexFromColor)(e):parseInt(e,16)}),b=(t.stringToHexArray=function(e){var t=void 0,n=void 0,r=void 0;try{r=JSON.parse(e)}catch(t){r=m(e)}if(!r)return!1;for(t=0;t16777215)return null;var n=(16711680&e)>>16,r=(65280&e)>>8,o=255&e;return void 0===t?"rgb("+n+","+r+","+o+")":"rgba("+n+","+r+","+o+","+t+")"},s=(t.stripOutAlpha=function(e){var t=e.split(",");return"a"===t[0].charAt(3)?(t[0]=t[0].replace("rgba","rgb"),t[t.length-1]=")",t=(t=t.join()).replace(",)",")")):e},t.normalizeColor=function(e){var t,n,r=null;if("string"==typeof e&&"#"===e.charAt(0))r=4===e.length?e+e.charAt(1)+e.charAt(2)+e.charAt(3):e;else try{t=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),n=(t[1]<<16|t[2]<<8|t[3]).toString(16),r="#"+Array(6-n.length).concat([n]).toString().replace(/,/g,0)}catch(e){}return r}),l=t.hexFromColor=function(e){var t=s(e);return t?parseInt(t.replace("#","0x"),16):0};t.addAlphaToColor=function(e,t){var n="number"==typeof e?e:l(e);return a(n,t)},t.getLuminance=function(e){if("number"!=typeof e&&(e=parseInt(e,16)),isNaN(e)||e<0||e>16777215)return 0;var t=(16711680&e)>>16,n=(65280&e)>>8,r=255&e;return Math.round(.2126*t+.7152*n+.0722*r)},t.getComputedOpacity=function(e){var t=r.default.trim(e.attr("fill")),n=function(e){var t=parseFloat(e);return t>=0&&t<=1?t:1};if(!/^rgba/.test(t))return n(e.attr("fill-opacity"));var i=t.match(/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*([\d.]+)\)$/);return i&&i.length>4?n(i[4]):1},t.interpolateColors=function(e,t,n){var r=e>>16&255,i=e>>8&255,o=255&e,a=t>>16&255,s=t>>8&255,l=255&t;return r+Math.round((a-r)*n)<<16|i+Math.round((s-i)*n)<<8|o+Math.round((l-o)*n)}}})},"3C/p":function(e,t,n){"use strict";var r=n("PBB4"),i=n.n(r)()((function(e){return e[1]}));i.push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .monaco-editor-overlaymessage {\r\n\tpadding-bottom: 8px;\r\n}\r\n\r\n@keyframes fadeIn {\r\n\tfrom { opacity: 0; }\r\n\tto { opacity: 1; }\r\n}\r\n.monaco-editor .monaco-editor-overlaymessage.fadeIn {\r\n\tanimation: fadeIn 150ms ease-out;\r\n}\r\n\r\n@keyframes fadeOut {\r\n\tfrom { opacity: 1; }\r\n\tto { opacity: 0; }\r\n}\r\n.monaco-editor .monaco-editor-overlaymessage.fadeOut {\r\n\tanimation: fadeOut 100ms ease-out;\r\n}\r\n\r\n.monaco-editor .monaco-editor-overlaymessage .message {\r\n\tpadding: 1px 4px;\r\n}\r\n\r\n.monaco-editor .monaco-editor-overlaymessage .anchor {\r\n\twidth: 0 !important;\r\n\theight: 0 !important;\r\n\tborder-color: transparent;\r\n\tborder-style: solid;\r\n\tz-index: 1000;\r\n\tborder-width: 8px;\r\n\tposition: absolute;\r\n}\r\n",""]),t.a=i},"3D15":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n("9cOj")),i=l(n("2ch0")),o=l(n("6NvG")),a=l(n("IObe")),s=l(n("p2i5"));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),o(u.prototype,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&r(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),o=m(r);c(e,t,(function(e,t){f(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},"3NO+":function(e,t,n){"use strict";var r=n("+a8/"),i=n("sdc/"),o=n("UsN5"),a=n("nlQV"),s=n("22MU"),l=n("EEm6"),c=n("7JC4"),u=n("UXzN");i(i.S+i.F*!n("LDXR")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,d,h=o(e),p="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m,b=0,y=u(h);if(g&&(m=r(m,f>2?arguments[2]:void 0,2)),null==y||p==Array&&s(y))for(n=new p(t=l(h.length));t>b;b++)c(n,b,g?m(h[b],b):h[b]);else for(d=y.call(h),n=new p;!(i=d.next()).done;b++)c(n,b,g?a(d,m,[i.value,b],!0):i.value);return n.length=b,n}})},"3PQI":function(e,t,n){"use strict";var r=n("N7v9"),i=n("3hHW"),o=n("l1F0");function a(){return new o.Subject}t.share=function(){return function(e){return i.refCount()(r.multicast(a)(e))}}},"3QVH":function(e,t,n){"use strict";var r=n("yrnK"),i=n("QIgb");r.Observable.race=i.race},"3Qlq":function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},"3R6G":function(e,t,n){var r=n("3dpm"),i=n("HO5n").onFreeze;n("PIvI")("preventExtensions",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},"3Rc7":function(e,t,n){var r=n("sdc/"),i=n("gPKT"),o=n("S4te"),a=n("9tx4"),s=n("3dpm"),l=n("yi1y"),c=n("sU6a"),u=(n("3wQL").Reflect||{}).construct,d=l((function(){function e(){}return!(u((function(){}),[],e)instanceof e)})),h=!l((function(){u((function(){}))}));r(r.S+r.F*(d||h),"Reflect",{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(h&&!d)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var l=n.prototype,p=i(s(l)?l:Object.prototype),f=Function.apply.call(e,p,t);return s(f)?f:p}})},"3RiK":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=120)}({0:function(e,t){e.exports=n("mwAw")},1:function(e,t){e.exports=n("Cbaw")},120:function(e,t,n){"use strict";n.r(t);var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(3),l=n.n(s),c=n(32),u=n(7),d=n(9),h=n.n(d),p=n(0),f=n(42),m=n.n(f),g=n(24),b=n.n(g),y=n(5),_=n(34),v=n.n(_),M=l()(v.a).withConfig({displayName:"ButtonStyles__StyledButtonSimple",componentId:"sc-1neztq7-0"})(["min-width:",";min-height:",";text-align:center;padding:",";margin-left:",";font-weight:",";&[data-selected]{font-weight:",";}&[disabled]{color:",";}"],Object(p.variable)("inputHeight"),Object(p.variable)("inputHeight"),Object(p.variable)("Paginator","Button","buttonSimplePadding"),Object(p.variable)("Paginator","Button","buttonSimpleMarginLeft"),Object(p.variable)("Paginator","Button","buttonSimpleFontWeight"),Object(p.variable)("Paginator","Button","buttonSimpleSelectedFontWeight"),Object(p.variable)("Paginator","Button","buttonSimpleDisabledTextColor")),w=l.a.div.withConfig({displayName:"ButtonStyles__StyledPrevNext",componentId:"sc-1neztq7-1"})(["padding:0 3px;white-space:nowrap;"]);function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(){return(A=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var N={alwaysShowLastPageLink:a.a.bool,current:a.a.number,elementRef:a.a.func,numPageLinks:a.a.number,onChange:a.a.func,totalPages:a.a.number.isRequired,theme:a.a.object};function Y(e){var t,n,r=e.onChange,o=e.current,a=e.alwaysShowLastPageLink,s=e.numPageLinks,l=e.totalPages,d=e.theme,f=z(e,["onChange","current","alwaysShowLastPageLink","numPageLinks","totalPages","theme"]),g=Math.min(s,l),y=Math.ceil(g/2),_=Math.ceil(l-g/2),v=[];if(l<=1)return null;o<=y+1?n=(t=1)+Math.min(l,g)-1:o>y&&o<_?t=(n=Math.ceil(o+(g-2)/2))-g+2:o>=_&&(t=l-g==1?1:l-g+1,n=l),n=a&&n+1===l?l:n;var M=Object(p.variable)("Paginator","chevronLeftMargin")({theme:d}),w=Object(p.variable)("Paginator","chevronRightMargin")({theme:d});v.push(i.a.createElement(P,{"data-test":"prev",disabled:1===o,onClick:r,page:o-1,key:"prev","aria-label":Object(u._)("Go to previous page")},i.a.createElement(m.a,{screenReaderText:null,style:{margin:M}}),Object(u._)("Prev"))),o>y&&l>g&&1!==t&&(v.push(i.a.createElement(P,{label:"1",key:"first",onClick:r,page:1,"aria-label":Object(u._)("Go to first page")})),v.push(i.a.createElement(P,{label:"...",disabled:!0,key:"prevEllipsis","aria-hidden":"true"})));for(var x=t;x<=n;x+=1){var A=x===o;v.push(i.a.createElement(P,{label:String(x),selected:A,onClick:r,page:x,key:x,"aria-label":A?Object(u._)("Current page"):Object(c.sprintf)(Object(u._)("Go to page %(pageNumber)d"),{pageNumber:x})}))}return o<=_&&l>g&&n!==l&&(v.push(i.a.createElement(P,{label:"...",disabled:!0,key:"nextEllipsis","aria-hidden":"true"})),a&&v.push(i.a.createElement(P,{"data-test":"last",label:String(l),key:"last",onClick:r,page:l,"aria-label":Object(u._)("Go to last page")}))),v.push(i.a.createElement(P,{"data-test":"next",disabled:o===l,onClick:r,page:o+1,key:"next","aria-label":Object(u._)("Go to next page")},Object(u._)("Next"),i.a.createElement(b.a,{screenReaderText:null,style:{margin:w}}))),i.a.createElement(h.a,j({"data-test":"paginator","data-test-current":o,flex:!0,inline:!0,role:"navigation","aria-label":Object(u._)("Pagination navigation")},f),v)}Y.propTypes=N,Y.defaultProps={current:1,alwaysShowLastPageLink:!1,numPageLinks:5,theme:null};var I=Object(s.withTheme)(Y);n.d(t,"default",(function(){return I}))},2:function(e,t){e.exports=n("ERkP")},24:function(e,t){e.exports=n("QD5z")},3:function(e,t){e.exports=n("j/s1")},32:function(e,t){e.exports=n("1z7s")},34:function(e,t){e.exports=n("echX")},42:function(e,t){e.exports=n("IlXX")},5:function(e,t){e.exports=n("nsO7")},7:function(e,t){e.exports=n("J45V")},9:function(e,t){e.exports=n("Hil8")}})},"3S6b":function(e,t,n){(function(e){(function(){var e=function(){return this}();!e&&"undefined"!=typeof window&&(e=window);var t=function(e,n,r){"string"==typeof e?(2==arguments.length&&(r=n),t.modules[e]||(t.payloads[e]=r,t.modules[e]=null)):t.original?t.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};t.modules={},t.payloads={};var n=function(e,t,n){if("string"==typeof t){var i=o(e,t);if(null!=i)return n&&n(),i}else if("[object Array]"===Object.prototype.toString.call(t)){for(var a=[],s=0,l=t.length;s1&&i(l,"")>-1&&(n=RegExp(this.source,o.replace.call(r(this),"g","")),o.replace.call(e.slice(l.index),n,(function(){for(var e=1;el.index&&this.lastIndex--}return l},s||(RegExp.prototype.test=function(e){var t=o.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))})),ace.define("ace/lib/es5-shim",["require","exports","module"],(function(e,t,n){function r(){}function i(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(e){}}function o(e){return(e=+e)!=e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError("Function.prototype.bind called on incompatible "+t);var n=f.call(arguments,1),i=function(){if(this instanceof i){var r=t.apply(this,n.concat(f.call(arguments)));return Object(r)===r?r:this}return t.apply(e,n.concat(f.call(arguments)))};return t.prototype&&(r.prototype=t.prototype,i.prototype=new r,r.prototype=null),i});var a,s,l,c,u,d=Function.prototype.call,h=Array.prototype,p=Object.prototype,f=h.slice,m=d.bind(p.toString),g=d.bind(p.hasOwnProperty);if((u=g(p,"__defineGetter__"))&&(a=d.bind(p.__defineGetter__),s=d.bind(p.__defineSetter__),l=d.bind(p.__lookupGetter__),c=d.bind(p.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,n=[];if(n.splice.apply(n,e(20)),n.splice.apply(n,e(26)),t=n.length,n.splice(5,0,"XXX"),n.length,t+1==n.length)return!0}()){var b=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?b.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):null==e?e=0:e<0&&(e=Math.max(n+e,0)),e+ts)for(d=c;d--;)this[l+d]=this[s+d];if(o&&e===u)this.length=u,this.push.apply(this,i);else for(this.length=u+o,d=0;d>>0;if("[object Function]"!=m(e))throw new TypeError;for(;++i>>0,i=Array(r),o=arguments[1];if("[object Function]"!=m(e))throw new TypeError(e+" is not a function");for(var a=0;a>>0,o=[],a=arguments[1];if("[object Function]"!=m(e))throw new TypeError(e+" is not a function");for(var s=0;s>>0,i=arguments[1];if("[object Function]"!=m(e))throw new TypeError(e+" is not a function");for(var o=0;o>>0,i=arguments[1];if("[object Function]"!=m(e))throw new TypeError(e+" is not a function");for(var o=0;o>>0;if("[object Function]"!=m(e))throw new TypeError(e+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var i,o=0;if(arguments.length>=2)i=arguments[1];else for(;;){if(o in n){i=n[o++];break}if(++o>=r)throw new TypeError("reduce of empty array with no initial value")}for(;o>>0;if("[object Function]"!=m(e))throw new TypeError(e+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var i,o=r-1;if(arguments.length>=2)i=arguments[1];else for(;;){if(o in n){i=n[o--];break}if(--o<0)throw new TypeError("reduceRight of empty array with no initial value")}do{o in this&&(i=e.call(void 0,i,n[o],o,t))}while(o--);return i}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){var t=v&&"[object String]"==m(this)?this.split(""):D(this),n=t.length>>>0;if(!n)return-1;var r=0;for(arguments.length>1&&(r=o(arguments[1])),r=r>=0?r:Math.max(0,n+r);r>>0;if(!n)return-1;var r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r=r>=0?r:n-Math.abs(r);r>=0;r--)if(r in t&&e===t[r])return r;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:p)}),!Object.getOwnPropertyDescriptor){Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+e);if(g(e,t)){var n;if(n={enumerable:!0,configurable:!0},u){var r=e.__proto__;e.__proto__=p;var i=l(e,t),o=c(e,t);if(e.__proto__=r,i||o)return i&&(n.get=i),o&&(n.set=o),n}return n.value=e[t],n}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create)||(y=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var n;if(null===e)n=y();else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var r=function(){};r.prototype=e,(n=new r).__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n});if(Object.defineProperty){var M=i({}),w="undefined"==typeof document||i(document.createElement("div"));if(!M||!w)var x=Object.defineProperty}if(!Object.defineProperty||x){Object.defineProperty=function(e,t,n){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.defineProperty called on non-object: "+e);if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError("Property description must be an object: "+n);if(x)try{return x.call(Object,e,t,n)}catch(e){}if(g(n,"value"))if(u&&(l(e,t)||c(e,t))){var r=e.__proto__;e.__proto__=p,delete e[t],e[t]=n.value,e.__proto__=r}else e[t]=n.value;else{if(!u)throw new TypeError("getters & setters can not be defined on this javascript engine");g(n,"get")&&a(e,t,n.get),g(n,"set")&&s(e,t,n.set)}return e}}Object.defineProperties||(Object.defineProperties=function(e,t){for(var n in t)g(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze((function(){}))}catch(e){Object.freeze=function(e){return function(t){return"function"==typeof t?t:e(t)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(e){return!1}),Object.isFrozen||(Object.isFrozen=function(e){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;for(var t="";g(e,t);)t+="?";e[t]=!0;var n=g(e,t);return delete e[t],n}),!Object.keys){var A=!0,k=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],L=k.length;for(var S in{toString:null})A=!1;Object.keys=function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on a non-object");var t=[];for(var n in e)g(e,n)&&t.push(n);if(A)for(var r=0,i=L;r=0?parseFloat((i.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((i.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=i.match(/ Gecko\/\d+/),t.isOpera=window.opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(i.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(i.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(i.split(" Edge/")[1])||void 0,t.isAIR=i.indexOf("AdobeAIR")>=0,t.isIPad=i.indexOf("iPad")>=0,t.isAndroid=i.indexOf("Android")>=0,t.isChromeOS=i.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(i)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIPad||t.isAndroid}})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("./useragent");if(t.buildDom=function e(t,n,r){if("string"==typeof t&&t){var i=document.createTextNode(t);return n&&n.appendChild(i),i}if(!Array.isArray(t))return t;if("string"!=typeof t[0]||!t[0]){for(var o=[],a=0;a=1.5,"undefined"!=typeof document){var i=document.createElement("div");t.HI_DPI&&void 0!==i.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),!r.isEdge&&void 0!==i.style.animationName&&(t.HAS_CSS_ANIMATION=!0),i=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:t.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./oop"),i=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return r.mixin(n,n.MODIFIER_KEYS),r.mixin(n,n.PRINTABLE_KEYS),r.mixin(n,n.FUNCTION_KEYS),n.enter=n.return,n.escape=n.esc,n.del=n.delete,n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();r.mixin(t,i),t.keyCodeToString=function(e){var t=i[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";function r(e,t,n){var r=c(t);if(!a.isMac&&s){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(r|=8),s.altGr){if(3==(3&r))return;s.altGr=0}if(18===n||17===n){var i="location"in t?t.location:t.keyLocation;if(17===n&&1===i)1==s[n]&&(l=t.timeStamp);else if(18===n&&3===r&&2===i){t.timeStamp-l<50&&(s.altGr=!0)}}}if((n in o.MODIFIER_KEYS&&(n=-1),8&r&&n>=91&&n<=93&&(n=-1),!r&&13===n)&&(3===(i="location"in t?t.location:t.keyLocation)&&(e(t,r,-n),t.defaultPrevented)))return;if(a.isChromeOS&&8&r){if(e(t,r,n),t.defaultPrevented)return;r&=-9}return!!(r||n in o.FUNCTION_KEYS||n in o.PRINTABLE_KEYS)&&e(t,r,n)}function i(){s=Object.create(null)}var o=e("./keys"),a=e("./useragent"),s=null,l=0;t.addListener=function(e,t,n){if(e.addEventListener)return e.addEventListener(t,n,!1);if(e.attachEvent){var r=function(){n.call(e,window.event)};n._wrapper=r,e.attachEvent("on"+t,r)}},t.removeListener=function(e,t,n){if(e.removeEventListener)return e.removeEventListener(t,n,!1);e.detachEvent&&e.detachEvent("on"+t,n._wrapper||n)},t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||a.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},t.capture=function(e,n,r){function i(e){n&&n(e),r&&r(e),t.removeListener(document,"mousemove",n,!0),t.removeListener(document,"mouseup",i,!0),t.removeListener(document,"dragstart",i,!0)}return t.addListener(document,"mousemove",n,!0),t.addListener(document,"mouseup",i,!0),t.addListener(document,"dragstart",i,!0),i},t.addTouchMoveListener=function(e,n){var r,i;t.addListener(e,"touchstart",(function(e){var t=e.touches[0];r=t.clientX,i=t.clientY})),t.addListener(e,"touchmove",(function(e){var t=e.touches;if(!(t.length>1)){var o=t[0];e.wheelX=r-o.clientX,e.wheelY=i-o.clientY,r=o.clientX,i=o.clientY,n(e)}}))},t.addMouseWheelListener=function(e,n){"onmousewheel"in e?t.addListener(e,"mousewheel",(function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),n(e)})):"onwheel"in e?t.addListener(e,"wheel",(function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}n(e)})):t.addListener(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),n(e)}))},t.addMultiMouseDownListener=function(e,n,r,i){function o(e){if(0!==t.getButton(e)?d=0:e.detail>1?++d>4&&(d=1):d=1,a.isIE){var o=Math.abs(e.clientX-l)>5||Math.abs(e.clientY-c)>5;u&&!o||(d=1),u&&clearTimeout(u),u=setTimeout((function(){u=null}),n[d-1]||600),1==d&&(l=e.clientX,c=e.clientY)}if(e._clicks=d,r[i]("mousedown",e),d>4)d=0;else if(d>1)return r[i](h[d],e)}function s(e){d=2,u&&clearTimeout(u),u=setTimeout((function(){u=null}),n[d-1]||600),r[i]("mousedown",e),r[i](h[d],e)}var l,c,u,d=0,h={2:"dblclick",3:"tripleclick",4:"quadclick"};Array.isArray(e)||(e=[e]),e.forEach((function(e){t.addListener(e,"mousedown",o),a.isOldIE&&t.addListener(e,"dblclick",s)}))};var c=a.isMac&&a.isOpera&&!("KeyboardEvent"in window)?function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)}:function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};if(t.getModifierString=function(e){return o.KEY_MODS[c(e)]},t.addCommandKeyListener=function(e,n){var o=t.addListener;if(a.isOldGecko||a.isOpera&&!("KeyboardEvent"in window)){var l=null;o(e,"keydown",(function(e){l=e.keyCode})),o(e,"keypress",(function(e){return r(n,e,l)}))}else{var c=null;o(e,"keydown",(function(e){s[e.keyCode]=(s[e.keyCode]||0)+1;var t=r(n,e,e.keyCode);return c=e.defaultPrevented,t})),o(e,"keypress",(function(e){c&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),c=null)})),o(e,"keyup",(function(e){s[e.keyCode]=null})),s||(i(),o(window,"focus",i))}},"object"==typeof window&&window.postMessage&&!a.isOldIE){var u=1;t.nextTick=function(e,n){n=n||window;var r="zero-timeout-message-"+u++,i=function(o){o.data==r&&(t.stopPropagation(o),t.removeListener(n,"message",i),e())};t.addListener(n,"message",i),n.postMessage(r,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout((function n(){t.$idleBlocked?setTimeout(n,100):e()}),n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout((function(){t.$idleBlocked=!1}),e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var r=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,r=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(r.row,r.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(r.row,r.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.rowt)var i={row:t+1,column:0};else if(this.start.row0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var r=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,r=e.length;n63,u=400,d=e("../lib/keys"),h=d.KEY_MODS,p=i.isIOS,f=p?/\s/:/\n/;t.TextInput=function(e,t){function n(){x=!0,g.blur(),g.focus(),x=!1}function m(){clearTimeout(B),B=setTimeout((function(){M&&(g.style.cssText=M,M=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())}),0)}var g=o.createElement("textarea");g.className="ace_text-input",g.setAttribute("wrap","off"),g.setAttribute("autocorrect","off"),g.setAttribute("autocapitalize","off"),g.setAttribute("spellcheck",!1),g.style.opacity="0",e.insertBefore(g,e.firstChild);var b=!1,y=!1,_=!1,v=!1,M="";i.isMobile||(g.style.fontSize="1px");var w=!1,x=!1,A="",k=0,L=0;try{var S=document.activeElement===g}catch(e){}r.addListener(g,"blur",(function(e){x||(t.onBlur(e),S=!1)})),r.addListener(g,"focus",(function(e){if(!x){if(S=!0,i.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),i.isEdge?setTimeout(T):T()}})),this.$focusScroll=!1,this.focus=function(){if(M||c||"browser"==this.$focusScroll)return g.focus({preventScroll:!0});var e=g.style.top;g.style.position="fixed",g.style.top="0px";try{var t=0!=g.getBoundingClientRect().top}catch(e){return}var n=[];if(t)for(var r=g.parentElement;r&&1==r.nodeType;)n.push(r),r.setAttribute("ace_nocontext",!0),r=!r.parentElement&&r.getRootNode?r.getRootNode().host:r.parentElement;g.focus({preventScroll:!0}),t&&n.forEach((function(e){e.removeAttribute("ace_nocontext")})),setTimeout((function(){g.style.position="","0px"==g.style.top&&(g.style.top=e)}),0)},this.blur=function(){g.blur()},this.isFocused=function(){return S},t.on("beforeEndOperation",(function(){t.curOp&&"insertstring"==t.curOp.command.name||(_&&(A=g.value="",H()),T())}));var T=p?function(e){if(S&&(!b||e)&&!v){e||(e="");var n="\n ab"+e+"cde fg\n";n!=g.value&&(g.value=A=n);var r=4+(e.length||(t.selection.isEmpty()?0:1));(4!=k||L!=r)&&g.setSelectionRange(4,r),k=4,L=r}}:function(){if(!_&&!v&&(S||C)){_=!0;var e=t.selection,n=e.getRange(),r=e.cursor.row,i=n.start.column,o=n.end.column,a=t.session.getLine(r);if(n.start.row!=r){var s=t.session.getLine(r-1);i=n.start.rowr+1?l.length:o,o+=a.length+1,a=a+"\n"+l}a.length>u&&(i0&&A[u]==e[u];)u++,o--;for(s=s.slice(u),u=1;a>0&&A.length-u>k-1&&A[A.length-u]==e[e.length-u];)u++,a--;return l-=u-1,c-=u-1,s=s.slice(0,s.length-u+1),n||l!=s.length||o||a||c?(v=!0,s&&!o&&!a&&!l&&!c||w?t.onTextInput(s):t.onTextInput(s,{extendLeft:o,extendRight:a,restoreStart:l,restoreEnd:c}),v=!1,A=e,k=r,L=i,s):""},E=function(e){if(_)return I();var t=g.value,n=D(t,!0);(t.length>500||f.test(n))&&T()},P=function(e,t,n){var r=e.clipboardData||window.clipboardData;if(r&&!s){var i=l||n?"Text":"text/plain";try{return t?!1!==r.setData(i,t):r.getData(i)}catch(e){if(!n)return P(e,t,!0)}}},j=function(e,n){var i=t.getCopyText();if(!i)return r.preventDefault(e);P(e,i)?(p&&(T(i),b=i,setTimeout((function(){b=!1}),10)),n?t.onCut():t.onCopy(),r.preventDefault(e)):(b=!0,g.value=i,g.select(),setTimeout((function(){b=!1,T(),n?t.onCut():t.onCopy()})))},z=function(e){j(e,!0)},N=function(e){j(e,!1)},Y=function(e){var n=P(e);"string"==typeof n?(n&&t.onPaste(n,e),i.isIE&&setTimeout(T),r.preventDefault(e)):(g.value="",y=!0)};r.addCommandKeyListener(g,t.onCommandKey.bind(t)),r.addListener(g,"select",(function(e){_||(b?b=!1:function(e){return 0===e.selectionStart&&e.selectionEnd>=A.length&&e.value===A&&A&&e.selectionEnd!==L}(g)&&(t.selectAll(),T()))})),r.addListener(g,"input",E),r.addListener(g,"cut",z),r.addListener(g,"copy",N),r.addListener(g,"paste",Y),(!("oncut"in g)||!("oncopy"in g)||!("onpaste"in g))&&r.addListener(e,"keydown",(function(e){if((!i.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:N(e);break;case 86:Y(e);break;case 88:z(e)}}));var I=function(){if(_&&t.onCompositionUpdate&&!t.$readOnly){if(w)return n();if(_.useTextareaForIME)t.onCompositionUpdate(g.value);else{var e=g.value;D(e),_.markerRange&&(_.context&&(_.markerRange.start.column=_.selectionStart=_.context.compositionStartOffset),_.markerRange.end.column=_.markerRange.start.column+L-_.selectionStart)}}},H=function(e){t.onCompositionEnd&&!t.$readOnly&&(_=!1,t.onCompositionEnd(),t.off("mousedown",n),e&&E())},R=a.delayedCall(I,50).schedule.bind(null,null);r.addListener(g,"compositionstart",(function(e){if(!_&&t.onCompositionStart&&!t.$readOnly&&(_={},!w)){setTimeout(I,0),t.on("mousedown",n);var r=t.getSelectionRange();r.end.row=r.start.row,r.end.column=r.start.column,_.markerRange=r,_.selectionStart=k,t.onCompositionStart(_),_.useTextareaForIME?(g.value="",A="",k=0,L=0):(g.msGetInputContext&&(_.context=g.msGetInputContext()),g.getInputContext&&(_.context=g.getInputContext()))}})),r.addListener(g,"compositionupdate",I),r.addListener(g,"keyup",(function(e){27==e.keyCode&&g.value.lengthL&&"\n"==A[o]?a=d.end:rL&&A.slice(0,o).split("\n").length>2?a=d.down:o>L&&" "==A[o-1]?(a=d.right,s=h.option):(o>L||o==L&&L!=k&&r==o)&&(a=d.right),r!==o&&(s|=h.shift),a&&(t.onCommandKey(null,s,a),k=r,L=o,T(""))}};document.addEventListener("selectionchange",o),t.on("destroy",(function(){document.removeEventListener("selectionchange",o)}))}(0,t,g)}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";function r(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e)),t.setDefaultHandler("touchmove",this.onTouchMove.bind(e));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function i(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}var o=e("../lib/useragent");(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var r=this.editor,i=e.getButton();return 0!==i?((r.getSelectionRange().isEmpty()||1==i)&&r.selection.moveToPosition(n),void(2==i&&(r.textInput.onContextMenu(e.domEvent),o.isMozilla||e.preventDefault()))):(this.mousedownEvent.time=Date.now(),!t||r.isFocused()||(r.focus(),!this.$focusTimeout||this.$clickSelection||r.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e)))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(n);if(-1==r)e=this.$clickSelection.end;else if(1==r)e=this.$clickSelection.start;else{var o=i(this.$clickSelection,n);n=o.cursor,e=o.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,r=n.renderer.screenToTextCoordinates(this.x,this.y),o=n.selection[e](r.row,r.column);if(this.$clickSelection){var a=this.$clickSelection.comparePoint(o.start),s=this.$clickSelection.comparePoint(o.end);if(-1==a&&s<=0)t=this.$clickSelection.end,o.end.row==r.row&&o.end.column==r.column||(r=o.start);else if(1==s&&a>=0)t=this.$clickSelection.start,o.start.row==r.row&&o.start.column==r.column||(r=o.end);else if(-1==a&&1==s)r=o.end,t=o.start;else{var l=i(this.$clickSelection,r);r=l.cursor,t=l.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(e>0||t-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session.getBracketRange(t);r?(r.isEmpty()&&(r.start.column--,r.end.column++),this.setState("select")):(r=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=r,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var r=n.getSelectionRange();r.isMultiLine()&&r.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(r.start.row),this.$clickSelection.end=n.selection.getLineRange(r.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,r=e.domEvent.timeStamp,i=r-n.t,o=i?e.wheelX/i:n.vx,a=i?e.wheelY/i:n.vy;i<550&&(o=(o+n.vx)/2,a=(a+n.vy)/2);var s=Math.abs(o/a),l=!1;if(s>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),s<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l)n.allowed=r;else if(r-n.allowed<550){Math.abs(o)<=1.5*Math.abs(n.vx)&&Math.abs(a)<=1.5*Math.abs(n.vy)?(l=!0,n.allowed=r):n.allowed=0}return n.t=r,n.vx=o,n.vy=a,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},this.onTouchMove=function(e){this.editor._emit("mousewheel",e)}}).call(r.prototype),t.DefaultHandlers=r})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){"use strict";function r(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}e("./lib/oop");var i=e("./lib/dom");(function(){this.$init=function(){return this.$element=i.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){i.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(r.prototype),t.Tooltip=r})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";function r(e){s.call(this,e)}var i=e("../lib/dom"),o=e("../lib/oop"),a=e("../lib/event"),s=e("../tooltip").Tooltip;o.inherits(r,s),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,i=this.getWidth(),o=this.getHeight();(e+=15)+i>n&&(e-=e+i-n),(t+=15)+o>r&&(t-=20+o),s.prototype.setPosition.call(this,e,t)}}.call(r.prototype),t.GutterHandler=function(e){function t(){var t=l.getDocumentPosition().row,r=d.$annotations[t];if(!r)return n();if(t==u.session.getLength()){var i=u.renderer.pixelToScreenCoordinates(0,l.y).row,a=l.$pos;if(i>u.session.documentToScreenRow(a.row,a.column))return n()}if(c!=r)if(c=r.text.join("
"),h.setHtml(c),h.show(),u._signal("showGutterTooltip",h),u.on("mousewheel",n),e.$tooltipFollowsMouse)o(l);else{var s=l.domEvent.target.getBoundingClientRect(),p=h.getElement().style;p.left=s.right+"px",p.top=s.bottom+"px"}}function n(){s&&(s=clearTimeout(s)),c&&(h.hide(),c=null,u._signal("hideGutterTooltip",h),u.removeEventListener("mousewheel",n))}function o(e){h.setPosition(e.x,e.y)}var s,l,c,u=e.editor,d=u.renderer.$gutterLayer,h=new r(u.container);e.editor.setDefaultHandler("guttermousedown",(function(t){if(u.isFocused()&&0==t.getButton()&&"foldWidgets"!=d.getRegion(t)){var n=t.getDocumentPosition().row,r=u.session.selection;if(t.getShiftKey())r.selectTo(n,0);else{if(2==t.domEvent.detail)return u.selectAll(),t.preventDefault();e.$clickSelection=u.selection.getLineRange(n)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler("guttermousemove",(function(r){var a=r.domEvent.target||r.domEvent.srcElement;if(i.hasCssClass(a,"ace_fold-widget"))return n();c&&e.$tooltipFollowsMouse&&o(r),l=r,s||(s=setTimeout((function(){s=null,l&&!e.isMousePressed?t():n()}),50))})),a.addListener(u.renderer.$gutter,"mouseout",(function(e){l=null,c&&!s&&(s=setTimeout((function(){s=null,n()}),50))})),u.on("changeSession",n)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return r.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=i.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";function r(e){function t(){var e=M;(function(e,t){var n=Date.now(),r=!t||e.row!=t.row,o=!t||e.column!=t.column;!k||r||o?(f.moveCursorToPosition(e),k=n,L={x:b,y:y}):i(L.x,L.y,b,y)>u?k=null:n-k>=c&&(f.renderer.scrollCursorIntoView(),k=null)})(M=f.renderer.screenToTextCoordinates(b,y),e),function(e,t){var n=Date.now(),r=f.renderer.layerConfig.lineHeight,i=f.renderer.layerConfig.characterWidth,o=f.renderer.scroller.getBoundingClientRect(),a={x:{left:b-o.left,right:o.right-b},y:{top:y-o.top,bottom:o.bottom-y}},s=Math.min(a.x.left,a.x.right),c=Math.min(a.y.top,a.y.bottom),u={row:e.row,column:e.column};s/i<=2&&(u.column+=a.x.left=l&&f.renderer.scrollCursorIntoView(u):A=n:A=null}(M,e)}function n(){v=f.selection.toOrientedRange(),g=f.session.addMarker(v,"ace_selection",f.getSelectionStyle()),f.clearSelection(),f.isFocused()&&f.renderer.$cursorLayer.setBlinking(!1),clearInterval(_),t(),_=setInterval(t,20),T=0,a.addListener(document,"mousemove",d)}function r(){clearInterval(_),f.session.removeMarker(g),g=null,f.selection.fromOrientedRange(v),f.isFocused()&&!x&&f.renderer.$cursorLayer.setBlinking(!f.getReadOnly()),v=null,M=null,T=0,A=null,k=null,a.removeListener(document,"mousemove",d)}function d(){null==O&&(O=setTimeout((function(){null!=O&&g&&r()}),20))}function h(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function p(e){var t=["copy","copymove","all","uninitialized"],n=s.isMac?e.altKey:e.ctrlKey,r="uninitialized";try{r=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var i="none";return n&&t.indexOf(r)>=0?i="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(r)>=0?i="move":t.indexOf(r)>=0&&(i="copy"),i}var f=e.editor,m=o.createElement("img");m.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",s.isOpera&&(m.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),f.addEventListener("mousedown",this.onMouseDown.bind(e));var g,b,y,_,v,M,w,x,A,k,L,S=f.container,T=0;this.onDragStart=function(e){if(this.cancelDrag||!S.draggable){var t=this;return setTimeout((function(){t.startSelect(),t.captureMouse(e)}),0),e.preventDefault()}v=f.getSelectionRange();var n=e.dataTransfer;n.effectAllowed=f.getReadOnly()?"copy":"copyMove",s.isOpera&&(f.container.appendChild(m),m.scrollTop=0),n.setDragImage&&n.setDragImage(m,0,0),s.isOpera&&f.container.removeChild(m),n.clearData(),n.setData("Text",f.session.getTextRange()),x=!0,this.setState("drag")},this.onDragEnd=function(e){if(S.draggable=!1,x=!1,this.setState(null),!f.getReadOnly()){var t=e.dataTransfer.dropEffect;!w&&"move"==t&&f.session.remove(f.getSelectionRange()),f.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!f.getReadOnly()&&h(e.dataTransfer))return b=e.clientX,y=e.clientY,g||n(),T++,e.dataTransfer.dropEffect=w=p(e),a.preventDefault(e)},this.onDragOver=function(e){if(!f.getReadOnly()&&h(e.dataTransfer))return b=e.clientX,y=e.clientY,g||(n(),T++),null!==O&&(O=null),e.dataTransfer.dropEffect=w=p(e),a.preventDefault(e)},this.onDragLeave=function(e){if(--T<=0&&g)return r(),w=null,a.preventDefault(e)},this.onDrop=function(e){if(M){var t=e.dataTransfer;if(x)switch(w){case"move":v=v.contains(M.row,M.column)?{start:M,end:M}:f.moveText(v,M);break;case"copy":v=f.moveText(v,M,!0)}else{var n=t.getData("Text");v={start:M,end:f.session.insert(M,n)},f.focus(),w=null}return r(),a.preventDefault(e)}},a.addListener(S,"dragstart",this.onDragStart.bind(e)),a.addListener(S,"dragend",this.onDragEnd.bind(e)),a.addListener(S,"dragenter",this.onDragEnter.bind(e)),a.addListener(S,"dragover",this.onDragOver.bind(e)),a.addListener(S,"dragleave",this.onDragLeave.bind(e)),a.addListener(S,"drop",this.onDrop.bind(e));var O=null}function i(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}var o=e("../lib/dom"),a=e("../lib/event"),s=e("../lib/useragent"),l=200,c=200,u=5;(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=s.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;s.isIE&&"dragReady"==this.state&&(i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop());"dragWait"===this.state&&(i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),r=e.getButton();if(1===(e.domEvent.detail||1)&&0===r&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var i=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in i&&(i.unselectable="on"),t.getDragDelay()){if(s.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(r.prototype),t.DragdropHandler=r})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=r.getDocumentHead(),i=document.createElement("script");i.src=e,n.appendChild(i),i.onload=i.onreadystatechange=function(e,n){!n&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(e,t,n){"use strict";var r={},i=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(n.length||r){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=o),n=n.slice();for(var a=0;a1&&(i=n[n.length-2]);var a=c[t+"Path"];return null==a?a=c.basePath:"/"==r&&(t=r=""),a&&"/"!=a.slice(-1)&&(a+="/"),a+t+r+i+this.get("suffix")},t.setModuleUrl=function(e,t){return c.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,r){var i,o;Array.isArray(n)&&(o=n[0],n=n[1]);try{i=e(n)}catch(e){}if(i&&!t.$loading[n])return r&&r(i);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(r),!(t.$loading[n].length>1)){var s=function(){e([n],(function(e){t._emit("load.module",{name:n,module:e});var r=t.$loading[n];t.$loading[n]=null,r.forEach((function(t){t&&t(e)}))}))};if(!t.get("packaged"))return s();a.loadScript(t.moduleUrl(n,o),s),u()}};var u=function(){!c.basePath&&!c.workerPath&&!c.modePath&&!c.themePath&&!Object.keys(c.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};t.init=function(o){if(l&&l.document){c.packaged=o||e.packaged||r.packaged||l.define&&n("IU0J").packaged;for(var a={},s="",u=document.currentScript||document._currentScript,d=(u&&u.ownerDocument||document).getElementsByTagName("script"),h=0;h0)if(16==y){for(w=_;w-1){for(w=_;w=0&&r[L]==x;L--)t[L]=s}}function i(e,t,n){if(!(l=e){for(r=d+1;r=e;)r++;for(i=d,o=r-1;i=t.length||(i=n[r-1])!=b&&i!=y||(o=t[r+1])!=b&&o!=y?_:(c&&(o=y),o==i?o:_);case k:return(i=r>0?n[r-1]:v)==b&&r+10&&n[r-1]==b)return b;if(c)return _;for(l=r+1,a=t.length;l=1425&&p<=2303||64286==p;if(i=t[l],f&&(i==g||i==w))return g}return r<1||(i=t[r-1])==v?_:n[r-1];case v:return c=!1,u=!0,s;case M:return d=!0,_;case T:case O:case D:case E:case C:c=!1;case P:return _}}function a(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?m:j[t]:5==n?/[\u0591-\u05f4]/.test(e)?g:m:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?S:/[\u0660-\u0669\u066b-\u066c]/.test(e)?y:1642==t?L:/[\u06f0-\u06f9]/.test(e)?b:w:32==n&&t<=8287?z[255&t]:254==n&&t>=65136?w:_}var s=0,l=0,c=!1,u=!1,d=!1,h=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],p=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],f=1,m=0,g=1,b=2,y=3,_=4,v=5,M=6,w=7,x=8,A=9,k=10,L=11,S=12,T=13,O=14,C=15,D=16,E=17,P=18,j=[P,P,P,P,P,P,P,P,P,M,v,M,x,v,P,P,P,P,P,P,P,P,P,P,P,P,P,P,v,v,v,M,x,_,_,L,L,L,_,_,_,_,_,k,A,k,A,A,b,b,b,b,b,b,b,b,b,b,A,_,_,_,_,_,_,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,_,_,_,_,_,_,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,_,_,_,_,P,P,P,P,P,P,v,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,A,_,L,L,L,L,_,_,_,_,m,_,_,P,_,_,L,L,b,b,_,m,_,_,_,b,m,_,_,_,_,_],z=[x,x,x,x,x,x,x,x,x,x,x,P,P,P,m,g,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,x,v,T,O,C,D,E,A,L,L,L,L,L,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,A,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,x];t.L=m,t.R=g,t.EN=b,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,n,o){if(e.length<2)return{};var a=e.split(""),l=new Array(a.length),c=new Array(a.length),u=[];s=o?f:0,r(a,u,a.length,n);for(var d=0;dw&&n[d]0&&"ل"===a[d-1]&&/\u0622|\u0623|\u0625|\u0627/.test(a[d])&&(u[d-1]=u[d]=t.R_H,d++);a[a.length-1]===t.DOT&&(u[a.length-1]=t.B),"‫"===a[0]&&(u[0]=t.RLE);for(d=0;d=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,r=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===r;)r=n,e++;else e=this.currentRow;return e},this.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[e];o&&(void 0===t&&(t=this.getSplitIndex()),t>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[r.L],this.line=tt?this.session.getOverwrite()?e:e-1:t,i=r.getVisualFromLogicalIdx(n,this.bidiMap),o=this.bidiMap.bidiLevels,a=0;!this.session.getOverwrite()&&e<=t&&o[i]%2!=0&&i++;for(var s=0;st&&o[i]%2==0&&(a+=this.charWidths[o[i]]),this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(a+=this.rtlLineOffset),a},this.getSelections=function(e,t){var n,r=this.bidiMap,i=r.bidiLevels,o=[],a=0,s=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,u=!1,d=0;this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var h,p=0;p=s&&hn+o/2;){if(n+=o,r===i.length-1){o=0;break}o=this.charWidths[i[++r]]}return r>0&&i[r-1]%2!=0&&i[r]%2==0?(e0&&i[r-1]%2==0&&i[r]%2!=0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===i.length-1&&0===o&&i[r-1]%2==0||!this.isRtlDir&&0===r&&i[r]%2!=0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&i[r-1]%2!=0&&0!==o&&r--,t=this.bidiMap.logicalFromVisual[r]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(a.prototype),t.BidiHandler=a})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",(function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),!t.$isEmpty&&!t.$silent&&t._emit("changeSelection"),!t.$keepDesiredColumnOnChange&&e.old.column!=e.value.column&&(t.$desiredColumn=null)})),this.anchor.on("change",(function(){t.$anchorChanged=!0,!t.$isEmpty&&!t.$silent&&t._emit("changeSelection")}))};(function(){r.implement(this,o),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start,r=t?e.start:e.end;this.$setSelection(n.row,n.column,r.row,r.column)},this.$setSelection=function(e,t,n,r){var i=this.$isEmpty,o=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,r),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||i!=this.$isEmpty||o)&&this._emit("changeSelection")},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,r="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(r);return i?(r=i.start.row,n=i.end.row):n=r,!0===t?new a(r,0,n,this.session.getLine(n).length):new a(r,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var r=e.column,i=e.column+t;return n<0&&(r=e.column-t,i=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,i).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(t.column=r)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var i=this.session.getFoldAt(e,t,1);if(i)this.moveCursorTo(i.end.row,i.end.column);else{if(this.session.nonTokenRe.exec(r)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e0&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,r=/\s/,i=this.session.tokenRe;if(i.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&r.test(t);)n++;if(n<1)for(i.lastIndex=0;(t=e[n])&&!i.test(t);)if(i.lastIndex=0,n++,r.test(t)){if(n>2){n--;break}for(;(t=e[n])&&r.test(t);)n++;if(n>2)break}}return i.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t),i=this.session.getFoldAt(e,t,1);if(i)return this.moveCursorTo(i.end.row,i.end.column);if(t==n.length){var o=this.doc.getLength();do{e++,r=this.doc.getLine(e)}while(e0&&/^\s*$/.test(r));n=r.length,/\s+$/.test(r)||(r="")}var o=i.stringReverse(r),a=this.$shortWordEndIndex(o);return this.moveCursorTo(t,n-a)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,r=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column);var i=this.session.screenToDocumentPosition(r.row+e,r.column,n);0!==e&&0===t&&i.row===this.lead.row&&i.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[i.row]&&(i.row>0||e>0)&&i.row++,this.moveCursorTo(i.row,i.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var r=this.session.getFoldAt(e,t,1);r&&(e=r.start.row,t=r.start.column),this.$keepDesiredColumnOnChange=!0;var i=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(i.charAt(t))&&i.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var r=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(r.row,r.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(e){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(s.prototype),t.Selection=s})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){"use strict";var r=e("./config"),i=2e3,o=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],r=[],i=0,o=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],l=0;l1?this.$applyToken:c.token),d>1&&(/\\\d/.test(c.regex)?u=c.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+i+1)})):(d=1,u=this.removeCapturingGroups(c.regex)),!c.splitRegex&&"string"!=typeof c.token&&s.push(c)),o[i]=l,i+=d,r.push(u),c.onMatch||(c.onMatch=null)}}r.length||(o[0]=0,r.push("$")),s.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)}),this),this.regExps[t]=new RegExp("("+r.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){i=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var r=[],i=0,o=n.length;iu){var b=e.substring(u,g-m.length);h.type==p?h.value+=b:(h.type&&c.push(h),h={type:p,value:b})}for(var y=0;yi){for(d>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});u1&&n[0]!==r&&n.unshift("#tmp",r),{tokens:c,state:n.length?n:r}},this.reportError=r.reportError}).call(o.prototype),t.Tokenizer=o})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("../lib/lang"),i=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var r=e[n],i=0;i=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;for(n=0;t>0;)n+=e[t-=1].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new r(this.$row,t,this.$row,t+e.value.length)}}).call(i.prototype),t.TokenIterator=i})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var r,i=e("../../lib/oop"),o=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator,s=e("../../lib/lang"),l=["text","paren.rparen","punctuation.operator"],c=["text","paren.rparen","punctuation.operator","comment"],u={},d={'"':'"',"'":"'"},h=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,u.rangeCount!=e.multiSelect.rangeCount&&(u={rangeCount:e.multiSelect.rangeCount})),u[t])return r=u[t];r=u[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},p=function(e,t,n,r){var i=e.end.row-e.start.row;return{text:n+t+r,selection:[0,e.start.column+1,i,e.end.column+(i?0:1)]}},f=function(e){this.add("braces","insertion",(function(t,n,i,o,a){var l=i.getCursorPosition(),c=o.doc.getLine(l.row);if("{"==a){h(i);var u=i.getSelectionRange(),d=o.doc.getTextRange(u);if(""!==d&&"{"!==d&&i.getWrapBehavioursEnabled())return p(u,d,"{","}");if(f.isSaneInsertion(i,o))return/[\]\}\)]/.test(c[l.column])||i.inMultiSelectMode||e&&e.braces?(f.recordAutoInsert(i,o,"}"),{text:"{}",selection:[1,1]}):(f.recordMaybeInsert(i,o,"{"),{text:"{",selection:[1,1]})}else if("}"==a){if(h(i),"}"==c.substring(l.column,l.column+1))if(null!==o.$findOpeningBracket("}",{column:l.column+1,row:l.row})&&f.isAutoInsertedClosing(l,c,a))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==a||"\r\n"==a){h(i);var m="";if(f.isMaybeInsertedClosing(l,c)&&(m=s.stringRepeat("}",r.maybeInsertedBrackets),f.clearMaybeInsertedClosing()),"}"===c.substring(l.column,l.column+1)){var g=o.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!g)return null;var b=this.$getIndent(o.getLine(g.row))}else{if(!m)return void f.clearMaybeInsertedClosing();b=this.$getIndent(c)}var y=b+o.getTabString();return{text:"\n"+y+"\n"+b+m,selection:[1,y.length,1,y.length]}}f.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,i,o){var a=i.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==a){if(h(n),"}"==i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;r.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,r,i){if("("==i){h(n);var o=n.getSelectionRange(),a=r.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return p(o,a,"(",")");if(f.isSaneInsertion(n,r))return f.recordAutoInsert(n,r,")"),{text:"()",selection:[1,1]}}else if(")"==i){h(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row);if(")"==l.substring(s.column,s.column+1))if(null!==r.$findOpeningBracket(")",{column:s.column+1,row:s.row})&&f.isAutoInsertedClosing(s,l,i))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"("==o&&(h(n),")"==r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i})),this.add("brackets","insertion",(function(e,t,n,r,i){if("["==i){h(n);var o=n.getSelectionRange(),a=r.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return p(o,a,"[","]");if(f.isSaneInsertion(n,r))return f.recordAutoInsert(n,r,"]"),{text:"[]",selection:[1,1]}}else if("]"==i){h(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row);if("]"==l.substring(s.column,s.column+1))if(null!==r.$findOpeningBracket("]",{column:s.column+1,row:s.row})&&f.isAutoInsertedClosing(s,l,i))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"["==o&&(h(n),"]"==r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i})),this.add("string_dquotes","insertion",(function(e,t,n,r,i){var o=r.$mode.$quotes||d;if(1==i.length&&o[i]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(i))return;h(n);var a=i,s=n.getSelectionRange(),l=r.doc.getTextRange(s);if(""!==l&&(1!=l.length||!o[l])&&n.getWrapBehavioursEnabled())return p(s,l,a,a);if(!l){var c=n.getCursorPosition(),u=r.doc.getLine(c.row),f=u.substring(c.column-1,c.column),m=u.substring(c.column,c.column+1),g=r.getTokenAt(c.row,c.column),b=r.getTokenAt(c.row,c.column+1);if("\\"==f&&g&&/escape/.test(g.type))return null;var y,_=g&&/string|escape/.test(g.type),v=!b||/string|escape/.test(b.type);if(m==a)(y=_!==v)&&/string\.end/.test(b.type)&&(y=!1);else{if(_&&!v)return null;if(_&&v)return null;var M=r.$mode.tokenRe;M.lastIndex=0;var w=M.test(f);M.lastIndex=0;var x=M.test(f);if(w||x)return null;if(m&&!/[\s;,.})\]\\]/.test(m))return null;y=!0}return{text:y?a+a:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,r,i){var o=r.$mode.$quotes||d,a=r.doc.getTextRange(i);if(!i.isMultiLine()&&o.hasOwnProperty(a)&&(h(n),r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)==a))return i.end.column++,i}))};f.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),r=new a(t,n.row,n.column);if(!this.$matchTokenType(r.getCurrentToken()||"text",l)){var i=new a(t,n.row,n.column+1);if(!this.$matchTokenType(i.getCurrentToken()||"text",l))return!1}return r.stepForward(),r.getCurrentTokenRow()!==n.row||this.$matchTokenType(r.getCurrentToken()||"text",c)},f.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},f.recordAutoInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isAutoInsertedClosing(i,o,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=i.row,r.autoInsertedLineEnd=n+o.substr(i.column),r.autoInsertedBrackets++},f.recordMaybeInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isMaybeInsertedClosing(i,o)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=i.row,r.maybeInsertedLineStart=o.substr(0,i.column)+n,r.maybeInsertedLineEnd=o.substr(i.column),r.maybeInsertedBrackets++},f.isAutoInsertedClosing=function(e,t,n){return r.autoInsertedBrackets>0&&e.row===r.autoInsertedRow&&n===r.autoInsertedLineEnd[0]&&t.substr(e.column)===r.autoInsertedLineEnd},f.isMaybeInsertedClosing=function(e,t){return r.maybeInsertedBrackets>0&&e.row===r.maybeInsertedRow&&t.substr(e.column)===r.maybeInsertedLineEnd&&t.substr(0,e.column)==r.maybeInsertedLineStart},f.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},f.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},i.inherits(f,o),t.CstyleBehaviour=f})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";for(var r=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],i=0,o=[],a=0;a2?r%u!=u-1:r%u==0})}else{if(!this.blockComment)return!1;var f=this.blockComment.start,m=this.blockComment.end,g=new RegExp("^(\\s*)(?:"+l.escapeRegExp(f)+")"),b=new RegExp("(?:"+l.escapeRegExp(m)+")\\s*$"),y=function(e,t){v(e,t)||a&&!/\S/.test(e)||(o.insertInLine({row:t,column:e.length},m),o.insertInLine({row:t,column:c},f))},_=function(e,t){var n;(n=e.match(b))&&o.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(g))&&o.removeInLine(t,n[1].length,n[0].length)},v=function(e,n){if(g.test(e))return!0;for(var r=t.getTokens(n),i=0;ie.length&&(M=e.length)})),c==1/0&&(c=M,a=!1,s=!1),d&&c%u!=0&&(c=Math.floor(c/u)*u),i(s?_:y)},this.toggleBlockComment=function(e,t,n,r){var i=this.blockComment;if(i){!i.start&&i[0]&&(i=i[0]);var o,a,s=(m=new c(t,r.row,r.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(s&&/comment/.test(s.type)){for(var d,h;s&&/comment/.test(s.type);){if(-1!=(g=s.value.indexOf(i.start))){var p=m.getCurrentTokenRow(),f=m.getCurrentTokenColumn()+g;d=new u(p,f,p,f+i.start.length);break}s=m.stepBackward()}var m;for(s=(m=new c(t,r.row,r.column)).getCurrentToken();s&&/comment/.test(s.type);){var g;if(-1!=(g=s.value.indexOf(i.end))){p=m.getCurrentTokenRow(),f=m.getCurrentTokenColumn()+g;h=new u(p,f,p,f+i.end.length);break}s=m.stepForward()}h&&t.remove(h),d&&(t.remove(d),o=d.start.row,a=-i.start.length)}else a=i.start.length,o=n.start.row,t.insert(n.end,i.end),t.insert(n.start,i.start);l.start.row==o&&(l.start.column+=a),l.end.row==o&&(l.end.column+=a),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var n=e[t],i=n.prototype.$id,o=r.$modes[i];o||(r.$modes[i]=o=new n),r.$modes[t]||(r.$modes[t]=o),this.$embeds.push(t),this.$modes[t]=o}var a=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;tthis.row)){var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(o.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=e("./anchor").Anchor,l=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,o),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new s(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return null==t&&(t=r.length),{row:e,column:t=Math.min(Math.max(t,0),r.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))0,r=t=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof a||(e=a.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e)))},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,r=n.length-t+1,i=e.start.row,o=e.start.column,a=0,s=0;a20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==r&&(r=t),o<=r&&n.fireUpdateEvent(o,r)}}};(function(){r.implement(this,i),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens}}).call(o.prototype),t.BackgroundTokenizer=o})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),i=(e("./lib/oop"),e("./range").Range),o=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,o){if(this.regExp)for(var a=o.firstRow,s=o.lastRow,l=a;l<=s;l++){var c=this.cache[l];null==c&&((c=r.getMatchOffsets(n.getLine(l),this.regExp)).length>this.MAX_RANGES&&(c=c.slice(0,this.MAX_RANGES)),c=c.map((function(e){return new i(l,e.offset,l,e.offset+e.length)})),this.cache[l]=c.length?c:"");for(var u=c.length;u--;)t.drawSingleLineMarker(e,c[u].toScreenRange(n),this.clazz,o)}}}).call(o.prototype),t.SearchHighlight=o})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";function r(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new i(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}var i=e("../range").Range;(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var r,i,o=0,a=this.folds,s=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l0)){var l=r(e,a.start);return 0===s?t&&0!==l?-o-2:o:l>0||0===l&&!t?o:-o-1}}return-o-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var r=this.pointIndex(e.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],n=this.ranges,i=(n=n.sort((function(e,t){return r(e.start,t.start)})))[0],o=1;o=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row=r)break}if("insert"==e.action)for(var l=i-r,c=-t.column+n.column;ar)break;if(u.start.row==r&&u.start.column>=t.column&&(u.start.column!=t.column||!this.$insertRight)&&(u.start.column+=c,u.start.row+=l),u.end.row==r&&u.end.column>=t.column){if(u.end.column==t.column&&this.$insertRight)continue;u.end.column==t.column&&c>0&&au.start.column&&u.end.column==o[a+1].start.column&&(u.end.column-=c),u.end.column+=c,u.end.row+=l}}else for(l=r-i,c=t.column-n.column;ai)break;u.end.rowt.column)&&(u.end.column=t.column,u.end.row=t.row):(u.end.column+=c,u.end.row+=l):u.end.row>i&&(u.end.row+=l),u.start.rowt.column)&&(u.start.column=t.column,u.start.row=t.row):(u.start.column+=c,u.start.row+=l):u.start.row>i&&(u.start.row+=l)}if(0!=l&&a=e)return i;if(i.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0);r=e)return i}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,i=0;i=t){s=e?r-=t-s:r=0);break}a>=e&&(r-=s>=e?a-s:a-e+1)}return r},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,r=this.$foldData,a=!1;e instanceof o?n=e:(n=new o(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var s=n.start.row,l=n.start.column,c=n.end.row,u=n.end.column;if(s0&&(this.removeFolds(p),p.forEach((function(e){n.addSubFold(e)})));for(var f=0;f0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,i;if(null==e?(n=new r(0,0,this.getLength(),0),t=!0):n="number"==typeof e?new r(e,0,e,this.getLine(e).length):"row"in e?r.fromPoints(e,e):e,i=this.getFoldsInRangeList(n),t)this.removeFolds(i);else for(var o=i;o.length;)this.expandFolds(o),o=this.getFoldsInRangeList(n);if(i.length)return i},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,r,i){null==r&&(r=e.start.row),null==i&&(i=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var o=this.doc,a="";return e.walk((function(e,t,n,s){if(!(tu)break}while(o&&l.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return c.end.row=i.getCurrentTokenRow(),c.end.column=i.getCurrentTokenColumn()+o.value.length-2,c}},this.foldAll=function(e,t,n){null==n&&(n=1e5);var r=this.foldWidgets;if(r){t=t||this.getLength();for(var i=e=e||0;i=e){i=o.end.row;try{var a=this.addFold("...",o);a&&(a.collapseChildren=n)}catch(e){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var r,i=e-1;i>=0;){var o=n[i];if(null==o&&(o=n[i]=this.getFoldWidget(i)),"start"==o){var a=this.getFoldWidgetRange(i);if(r||(r=a),a&&a.end.row>=e)break}i--}return{range:-1!==i&&a,firstRange:r}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var r=t.target||t.srcElement;r&&/ace_fold-widget/.test(r.className)&&(r.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),r=this.getLine(e),i="end"===n?-1:1,o=this.getFoldAt(e,-1===i?0:r.length,i);if(o)return t.children||t.all?this.removeFold(o):this.expandFold(o),o;var a=this.getFoldWidgetRange(e,!0);if(a&&!a.isMultiLine()&&(o=this.getFoldAt(a.start.row,a.start.column,1))&&a.isEqual(o.range))return this.removeFold(o),o;if(t.siblings){var s=this.getParentFoldRangeData(e);if(s.range)var l=s.range.start.row+1,c=s.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=a?a.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):a&&(t.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var r=this.getParentFoldRangeData(t,!0);if(n=r.range||r.firstRange){t=n.start.row;var i=this.getFoldAt(t,this.getLine(t).length,1);i?this.removeFold(i):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r=e("../token_iterator").TokenIterator,i=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var r=n.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),r=!0,o=n.charAt(e.column-1),a=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(a||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},a=o&&o.match(/([\(\[\{])|([\)\]\}])/),r=!1),!a)return null;if(a[1]){if(!(s=this.$findClosingBracket(a[1],e)))return null;t=i.fromPoints(e,s),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{var s;if(!(s=this.$findOpeningBracket(a[2],e)))return null;t=i.fromPoints(s,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var i=this.$brackets[e],o=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var l=t.column-a.getCurrentTokenColumn()-2,c=s.value;;){for(;l>=0;){var u=c.charAt(l);if(u==i){if(0==(o-=1))return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else u==e&&(o+=1);l-=1}do{s=a.stepBackward()}while(s&&!n.test(s.type));if(null==s)break;l=(c=s.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var i=this.$brackets[e],o=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var l=t.column-a.getCurrentTokenColumn();;){for(var c=s.value,u=c.length;l=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}r.implement(this,s),this.setDocument=function(e){this.doc&&this.doc.removeListener("change",this.$onChange),this.doc=e,e.on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>1,o=e[i];if(t>o)n=i+1;else{if(!(t=t);o++);return(n=r[o])?(n.index=o,n.start=i-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=i.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?i.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t0&&(r=!!n.charAt(t-1).match(this.tokenRe)),r||(r=!!n.charAt(t).match(this.tokenRe)),r)var i=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))i=/\s/;else i=this.nonTokenRe;var o=t;if(o>0){do{o--}while(o>=0&&n.charAt(o).match(i));o++}for(var a=t;ae&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,i=0,o=this.$foldData[i],a=o?o.start.row:1/0,s=t.length,l=0;la){if((l=o.end.row+1)>=s)break;a=(o=this.$foldData[i++])?o.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>r&&(r=n[l])}this.screenWidth=r}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var r=e[n];"insert"==r.action||"remove"==r.action?this.doc.revertDelta(r):r.folds&&this.addFolds(r.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;ne.end.column&&(o.start.column+=c),o.end.row==e.end.row&&o.end.column>e.end.column&&(o.end.column+=c)),a&&o.start.row>=e.end.row&&(o.start.row+=a,o.end.row+=a)}if(o.end=this.insert(o.start,r),i.length){var s=e.start,l=o.start,c=(a=l.row-s.row,l.column-s.column);this.addFolds(i.map((function(e){return(e=e.clone()).start.row==s.row&&(e.start.column+=c),e.end.row==s.row&&(e.end.column+=c),e.start.row+=a,e.end.row+=a,e})))}return o},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new u(0,0,0,0),r=this.getTabSize(),i=t.start.row;i<=t.end.row;++i){var o=this.getLine(i);n.start.row=i,n.end.row=i;for(var a=0;a0){var i;if((i=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;r=i-t}else{e=this.$clipRowToDocument(e);r=(t=this.$clipRowToDocument(t))-e+1}var o=new u(e,0,t,Number.MAX_VALUE),a=this.getFoldsInRange(o).map((function(e){return(e=e.clone()).start.row+=r,e.end.row+=r,e})),s=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+r,s),a.length&&this.addFolds(a),r},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var r=this.$constrainWrapLimit(e,n.min,n.max);return r!=this.$wrapLimit&&r>1&&(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,r=e.start,i=e.end,o=r.row,a=i.row,s=a-o,l=null;if(this.$updating=!0,0!=s)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(o,s);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var u=0;if(m=this.getFoldLine(i.row)){m.addRemoveChars(i.row,i.column,r.column-i.column),m.shiftRow(-s);var d=this.getFoldLine(o);d&&d!==m&&(d.merge(m),m=d),u=c.indexOf(m)+1}for(;u=i.row&&m.shiftRow(-s)}a=o}else{var h=Array(s);h.unshift(o,0);var p=t?this.$wrapData:this.$rowLengthCache;p.splice.apply(p,h);c=this.$foldData,u=0;if(m=this.getFoldLine(o)){var f=m.range.compareInside(r.row,r.column);0==f?(m=m.split(r.row,r.column))&&(m.shiftRow(s),m.addRemoveChars(a,0,i.column-r.column)):-1==f&&(m.addRemoveChars(o,0,i.column-r.column),m.shiftRow(s)),u=c.indexOf(m)+1}for(;u=o&&m.shiftRow(s)}}else s=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),s=-s),(m=this.getFoldLine(o))&&m.addRemoveChars(o,r.column,s);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(o,a):this.$updateRowLengthCache(o,a),l},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,r){var i,o,a=this.doc.getAllLines(),s=this.getTabSize(),l=this.$wrapData,c=this.$wrapLimit,u=e;for(r=Math.min(r,a.length-1);u<=r;)(o=this.getFoldLine(u,o))?(i=[],o.walk(function(e,r,o,s){var l;if(null!=e){(l=this.$getDisplayTokens(e,i.length))[0]=t;for(var c=1;cr-f;){var m=c+r-f;if(e[m-1]>=10&&e[m]>=10)a(m);else if(e[m]!=t&&e[m]!=n){for(var g=Math.max(m-(r-(r>>2)),c-1);m>g&&e[m]g&&e[m]g&&9==e[m];)m--}else for(;m>g&&e[m]<10;)m--;m>g?a(++m):(2==e[m=c+r]&&m--,a(m-f))}else{for(;m!=c-1&&e[m]!=t;m--);if(m>c){a(m);continue}for(m=c+r;m39&&a<48||a>57&&a<64?i.push(9):a>=4352&&e(a)?i.push(1,2):i.push(1)}return i},this.$getStringScreenWidth=function(t,n,r){if(0==n)return[0,0];var i,o;for(null==n&&(n=1/0),r=r||0,o=0;o=4352&&e(i)?r+=2:r+=1,!(r>n));o++);return[r,o]},this.lineWidgets=null,this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]=0){s=c[u],o=this.$docRowCache[u];var h=e>c[d-1]}else h=!d;for(var p=this.getLength()-1,f=this.getNextFoldLine(o),m=f?f.start.row:1/0;s<=e&&!(s+(l=this.getRowLength(o))>e||o>=p);)s+=l,++o>m&&(o=f.end.row+1,m=(f=this.getNextFoldLine(o,f))?f.start.row:1/0),h&&(this.$docRowCache.push(o),this.$screenRowCache.push(s));if(f&&f.start.row<=o)r=this.getFoldDisplayLine(f),o=f.start.row;else{if(s+l<=e||o>p)return{row:p,column:this.getLine(p).length};r=this.getLine(o),f=null}var g=0,b=Math.floor(e-s);if(this.$useWrapMode){var y=this.$wrapData[o];y&&(i=y[b],b>0&&y.length&&(g=y.indent,a=y[b-1]||y[y.length-1],r=r.substring(a)))}return void 0!==n&&this.$bidiHandler.isBidiRow(s+b,o,b)&&(t=this.$bidiHandler.offsetToCol(n)),a+=this.$getStringScreenWidth(r,t-g)[1],this.$useWrapMode&&a>=i&&(a=i-1),f?f.idxToPosition(a):{row:o,column:a}},this.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var r,i=0,o=null;(r=this.getFoldAt(e,t,1))&&(e=r.start.row,t=r.start.column);var a,s=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),u=l.length;if(u&&c>=0){s=l[c],i=this.$screenRowCache[c];var d=e>l[u-1]}else d=!u;for(var h=this.getNextFoldLine(s),p=h?h.start.row:1/0;s=p){if((a=h.end.row+1)>e)break;p=(h=this.getNextFoldLine(a,h))?h.start.row:1/0}else a=s+1;i+=this.getRowLength(s),s=a,d&&(this.$docRowCache.push(s),this.$screenRowCache.push(i))}var f="";h&&s>=p?(f=this.getFoldDisplayLine(h,e,t),o=h.start.row):(f=this.getLine(e).substring(0,t),o=e);var m=0;if(this.$useWrapMode){var g=this.$wrapData[o];if(g){for(var b=0;f.length>=g[b];)i++,b++;f=f.substring(g[b-1]||0,f.length),m=b>0?g.indent:0}}return{row:i,column:m+this.$getStringScreenWidth(f)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,r=0,i=(s=0,(t=this.$foldData[s++])?t.start.row:1/0);ri&&(r=t.end.row+1,i=(t=this.$foldData[s++])?t.start.row:1/0)}else{e=this.getLength();for(var a=this.$foldData,s=0;sn);o++);return[r,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=e}.call(f.prototype),e("./edit_session/folding").Folding.call(f.prototype),e("./edit_session/bracket_match").BracketMatch.call(f.prototype),a.defineOptions(f.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){e=parseInt(e),isNaN(e)||this.$tabSize===e||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=f})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),i=e("./lib/oop"),o=e("./range").Range,a=function(){this.$options={}};(function(){this.set=function(e){return i.mixin(this.$options,e),this},this.getOptions=function(){return r.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;return n.forEach((function(e,n,i,a){return r=new o(e,n,i,a),!(n==a&&t.start&&t.start.start&&0!=t.skipCurrent&&r.isEqual(t.start))||(r=null,!1)})),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),a=[],s=t.re;if(t.$isMultiLine){var l,c=s.length,u=i.length-c;e:for(var d=s.offset||0;d<=u;d++){for(var h=0;hm||(a.push(l=new o(d,m,d+c-1,g)),c>2&&(d=d+c-2))}}else for(var b=0;bM&&a[h].end.row==n.end.row;)h--;for(a=a.slice(b,h+1),b=0,h=a.length;b=s;n--)if(d(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,s=a.row;n>=s;n--)if(d(n,Number.MAX_VALUE,e))return}};else c=function(e){var n=a.row;if(!d(n,a.column,e)){for(n+=1;n<=l;n++)if(d(n,0,e))return;if(0!=t.wrap)for(n=s,l=a.row;n<=l;n++)if(d(n,0,e))return}};if(t.$isMultiLine)var u=n.length,d=function(t,i,o){var a=r?t-u+1:t;if(!(a<0)){var s=e.getLine(a),l=s.search(n[0]);if(!(!r&&li))return!!o(a,l,a+u-1,d)||void 0}}};else if(r)d=function(t,r,i){var o,a=e.getLine(t),s=[],l=0;for(n.lastIndex=0;o=n.exec(a);){var c=o[0].length;if(l=o.index,!c){if(l>=a.length)break;n.lastIndex=l+=1}if(o.index+c>r)break;s.push(o.index,c)}for(var u=s.length-1;u>=0;u-=2){var d=s[u-1];if(i(t,d,t,d+(c=s[u])))return!0}};else d=function(t,r,i){var o,a,s=e.getLine(t);for(n.lastIndex=r;a=n.exec(s);){var l=a[0].length;if(i(t,o=a.index,t,o+l))return!0;if(!l&&(n.lastIndex=o+=1,o>=s.length))return!1}};return{forEach:c}}}).call(a.prototype),t.Search=a})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";function r(e,t){this.platform=t||(a.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function i(e,t){r.call(this,e,t),this.$singleCommand=!1}var o=e("../lib/keys"),a=e("../lib/useragent"),s=o.KEY_MODS;i.prototype=r.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var r=this.commandKeyBinding;for(var i in r){var o=r[i];if(o==e)delete r[i];else if(Array.isArray(o)){var a=o.indexOf(e);-1!=a&&(o.splice(a,1),1==o.length&&(r[i]=o[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var r="";if(-1!=e.indexOf(" ")){var i=e.split(/\s+/);e=i.pop(),i.forEach((function(e){var t=this.parseKeys(e),n=s[t.hashId]+t.key;r+=(r?" ":"")+n,this._addCommandToBinding(r,"chainKeys")}),this),r+=" "}var o=this.parseKeys(e),a=s[o.hashId]+o.key;this._addCommandToBinding(r+a,t,n)}),this)},this._addCommandToBinding=function(t,n,r){var i,o=this.commandKeyBinding;if(n)if(!o[t]||this.$singleCommand)o[t]=n;else{Array.isArray(o[t])?-1!=(i=o[t].indexOf(n))&&o[t].splice(i,1):o[t]=[o[t]],"number"!=typeof r&&(r=e(n));var a=o[t];for(i=0;ir)break}a.splice(i,0,n)}else delete o[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"function"==typeof n&&(n={exec:n}),"object"==typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),r=o[n];if(o.FUNCTION_KEYS[r])n=o.FUNCTION_KEYS[r].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var i=0,a=t.length;a--;){var s=o.KEY_MODS[t[a]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+t[a]+" in "+e),!1;i|=s}return{key:n,hashId:i}},this.findKeyCommand=function(e,t){var n=s[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,r){if(!(r<0)){var i=s[t]+n,o=this.commandKeyBinding[i];return e.$keyChain&&(e.$keyChain+=" "+i,o=this.commandKeyBinding[e.$keyChain]||o),!o||"chainKeys"!=o&&"chainKeys"!=o[o.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||r>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-i.length-1)),{command:o}):(e.$keyChain=e.$keyChain||i,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(r.prototype),t.HashHandler=r,t.MultiHashHandler=i})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../keyboard/hash_handler").MultiHashHandler,o=e("../lib/event_emitter").EventEmitter,a=function(e,t){i.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))};r.inherits(a,i),function(){r.implement(this,o),this.exec=function(e,t,n){if(Array.isArray(e)){for(var r=e.length;r--;)if(this.exec(e[r],t,n))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var i={editor:t,command:e,args:n};return i.returnValue=this._emit("exec",i),this._signal("afterExec",i),!1!==i.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(a.prototype),t.CommandManager=a})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";function r(e,t){return{win:e,mac:t}}var i=e("../lib/lang"),o=e("../config"),a=e("../range").Range;t.commands=[{name:"showSettingsMenu",bindKey:r("Ctrl-,","Command-,"),exec:function(e){o.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:r("Alt-E","F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:r("Alt-Shift-E","Shift-F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:r("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:r(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:r("Ctrl-L","Command-L"),exec:function(e,t){"number"==typeof t&&!isNaN(t)&&e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:r("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:r("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:r("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:r("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:r(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:r("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:r("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:r("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:r("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:r("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:r("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:r("Ctrl-F","Command-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:r("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:r("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:r("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:r("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:r("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:r("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:r("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:r("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:r("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:r("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:r("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:r("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:r("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:r("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:r("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:r("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:r("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:r("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:r("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:r("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:r(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:r("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:r(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:r("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:r("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:r("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:r("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:r("Ctrl-P","Ctrl-P"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:r("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:r("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:r(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:r("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:r("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:r("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:r("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:r("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:r("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:r("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:r("Ctrl-H","Command-Option-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",description:"Undo",bindKey:r("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:r("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:r("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:r("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:r("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:r("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:r("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:r("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:r("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:r("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:r("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:r("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:r("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:r("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:r("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:r("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:r("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:r("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:r("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(i.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:r(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:r("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:r("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:r("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",description:"Expand to line",bindKey:r("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:r(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),r=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),o=e.session.doc.getLine(n.row).length,s=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,l=e.session.doc.getLine(n.row),c=n.row+1;c<=r.row+1;c++){var u=i.stringTrimLeft(i.stringTrimRight(e.session.doc.getLine(c)));0!==u.length&&(u=" "+u),l+=u}r.row+10?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+s)):(o=e.session.doc.getLine(n.row).length>o?o+1:o,e.selection.moveCursorTo(n.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:r(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,i=[];r.length<1&&(r=[e.selection.getRange()]);for(var o=0;o=i.lastRow||r.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var o=this.selection.toJSON();this.curOp.selectionAfter=o,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(o),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,r=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var i=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\s/.test(i)||/\s/.test(t.args)),this.mergeNextCommand=!0}else r=r&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;b.loadModule(["keybinding",e],(function(r){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(r&&r.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||i.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=t.findMatchingBracket(e.getCursorPosition());if(n)var r=new p(n.row,n.column,n.row,n.column+1);else if(t.$mode.getMatching)r=t.$mode.getMatching(e.session);r&&(t.$bracketHighlight=t.addMarker(r,"ace_bracket","text"))}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),r=new y(e.session,n.row,n.column),i=r.getCurrentToken();if(!i||!/\b(?:tag-open|tag-name)/.test(i.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1==i.type.indexOf("tag-open")||(i=r.stepForward())){var o=i.value,a=0,s=r.stepBackward();if("<"==s.value)do{s=i,(i=r.stepForward())&&i.value===o&&-1!==i.type.indexOf("tag-name")&&("<"===s.value?a++:"=0);else{do{i=s,s=r.stepBackward(),i&&i.value===o&&-1!==i.type.indexOf("tag-name")&&("<"===s.value?a++:"1)&&(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new p(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),r=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",r)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,r=t.end.column,i=e.getLine(t.start.row),o=i.substring(n,r);if(!(o.length>5e3)&&/[\w\d]/.test(o)){var a=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:o}),s=i.substring(n-1,r+1);if(a.test(s))return a}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var r=this.selection.getAllRanges(),i=0;io.length||i.length<2||!i[1])return this.commands.exec("insertstring",this,t);for(var a=o.length;a--;){var s=o[a];s.isEmpty()||r.remove(s),r.insert(s.start,i[a])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,r=n.getMode(),i=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var o=r.transformAction(n.getState(i.row),"insertion",this,n,e);o&&(e!==o.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),e=o.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){(a=new p.fromPoints(i,i)).end.column+=e.length,this.session.remove(a)}}else{var a=this.getSelectionRange();i=this.session.remove(a),this.clearSelection()}if("\n"==e||"\r\n"==e){var s=n.getLine(i.row);if(i.column>s.search(/\S|$/)){var l=s.substr(i.column).search(/\S|$/);n.doc.removeInLine(i.row,i.column,i.column+l)}}this.clearSelection();var c=i.column,u=n.getState(i.row),d=(s=n.getLine(i.row),r.checkOutdent(u,s,e));n.insert(i,e);if(o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new p(i.row,c+o.selection[0],i.row,c+o.selection[1])):this.selection.setSelectionRange(new p(i.row+o.selection[0],o.selection[1],i.row+o.selection[2],o.selection[3]))),n.getDocument().isNewLine(e)){var h=r.getNextLineIndent(u,s.slice(0,i.column),n.getTabString());n.insert({row:i.row+1,column:0},h)}d&&r.autoOutdent(u,n,i.row)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(e,t){var n;(t.extendLeft||t.extendRight)&&((n=this.selection.getRange()).start.column-=t.extendLeft,n.end.column+=t.extendRight,this.selection.setRange(n),!e&&!n.isEmpty()&&this.remove());((e||!this.selection.isEmpty())&&this.insert(e,!0),t.restoreStart||t.restoreEnd)&&((n=this.selection.getRange()).start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},this.onCommandKey=function(e,t,n){this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),i=n.getMode().transformAction(r,"deletion",this,n,t);if(0===t.end.column){var o=n.getTextRange(t);if("\n"==o[o.length-1]){var a=n.getLine(t.end.row);/^\s+$/.test(a)&&(t.end.column=a.length)}}i&&(t=i)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,r,i=this.session.getLine(e.row);tt.toLowerCase()?1:0}));var i=new p(0,0,0,0);for(r=e.first;r<=e.last;r++){var o=t.getLine(r);i.start.row=r,i.end.row=r,i.end.column=o.length,t.replace(i,n[r-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var r=this.session.getLine(e);n.lastIndex=t)return{value:i[0],start:i.index,end:i.index+i[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,r=new p(t,n-1,t,n),i=this.session.getTextRange(r);if(!isNaN(parseFloat(i))&&isFinite(i)){var o=this.getNumberAt(t,n);if(o){var a=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,s=o.start+o.value.length-a,l=parseFloat(o.value);l*=Math.pow(10,s),a!==o.end&&n=s&&a<=l&&(n=t,c.selection.clearSelection(),c.moveCursorTo(e,s+r),c.selection.selectTo(e,l+r)),s=l}));for(var u,d=this.$toggleWordPairs,h=0;hp+1)break;p=f.last}for(u--,s=this.session.$moveLines(h,p,t?0:e),t&&-1==e&&(d=u+1);d<=u;)a[d].moveBy(s,0),d++;t||(s=0),l+=s}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,i=e*Math.floor(r.height/r.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(i,0)})):!1===t&&(this.selection.moveCursorBy(i,0),this.selection.clearSelection());var o=n.scrollTop;n.scrollBy(0,i*r.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new y(this.session,n.row,n.column),i=r.getCurrentToken(),o=i||r.stepForward();if(o){var a,s,l=!1,c={},u=n.column-o.start,d={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;u=0;--o)this.$tryReplace(n[o],e)&&r++;return this.selection.setSelectionRange(i),r},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&r.mixin(t,e);var i=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(i)||this.$search.$options.needle)||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i});var o=this.$search.find(this.session);return t.preventScroll?o:o?(this.revealRange(o,n),o):(t.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var i=this.$scrollAnchor;i.style.cssText="position:absolute",this.container.insertBefore(i,this.container.firstChild);var o=this.on("changeSelection",(function(){r=!0})),a=this.renderer.on("beforeRender",(function(){r&&(t=n.renderer.container.getBoundingClientRect())})),s=this.renderer.on("afterRender",(function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,o=e.$cursorLayer.$pixelPos,a=e.layerConfig,s=o.top-a.offset;null!=(r=o.top>=0&&s+t.top<0||!(o.topwindow.innerHeight)&&null)&&(i.style.top=s+"px",i.style.left=o.left+"px",i.style.height=a.lineHeight+"px",i.scrollIntoView(r)),r=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",a))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,i.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,n){var r=this;b.loadModule("./ext/prompt",(function(i){i.prompt(r,e,t,n)}))}}.call(v.prototype),b.defineOptions(v.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?M.attach(this):M.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?M.attach(this):M.detach(this)}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var M={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=v})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(e,t,n){"use strict";function r(e){return{row:e.row,column:e.column}}function i(e){if(e=e||this,Array.isArray(e))return e.map(i).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(o).join("\n"):o(e.value)),e.start&&(t+=o(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function o(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function a(e,t){var n="insert"==e.action,r="insert"==t.action;if(n&&r)if(m(t.start,e.end)>=0)c(t,e,-1);else{if(!(m(t.start,e.start)<=0))return null;c(e,t,1)}else if(n&&!r)if(m(t.start,e.end)>=0)c(t,e,-1);else{if(!(m(t.end,e.start)<=0))return null;c(e,t,-1)}else if(!n&&r)if(m(t.start,e.start)>=0)c(t,e,1);else{if(!(m(t.start,e.start)<=0))return null;c(e,t,1)}else if(!n&&!r)if(m(t.start,e.start)>=0)c(t,e,1);else{if(!(m(t.end,e.start)<=0))return null;c(e,t,-1)}return[t,e]}function s(e,t){for(var n=e.length;n--;)for(var r=0;r=0?c(e,t,-1):(m(e.start,t.start)<=0||c(e,f.fromPoints(t.start,e.start),-1),c(t,e,1));else if(!n&&r)m(t.start,e.end)>=0?c(t,e,-1):(m(t.start,e.start)<=0||c(t,f.fromPoints(e.start,t.start),-1),c(e,t,1));else if(!n&&!r)if(m(t.start,e.end)>=0)c(t,e,-1);else{var i,o;if(!(m(t.end,e.start)<=0))return m(e.start,t.start)<0&&(i=e,e=d(e,t.start)),m(e.end,t.end)>0&&(o=d(e,t.end)),u(t.end,e.start,e.end,-1),o&&!i&&(e.lines=o.lines,e.start=o.start,e.end=o.end,o=e),[t,i,o].filter(Boolean);c(e,t,-1)}return[t,e]}function c(e,t,n){u(e.start,t.start,t.end,n),u(e.end,t.start,t.end,n)}function u(e,t,n,r){e.row==(1==r?t:n).row&&(e.column+=r*(n.column-t.column)),e.row+=r*(n.row-t.row)}function d(e,t){var n=e.lines,i=e.end;e.end=r(t);var o=e.end.row-e.start.row,a=n.splice(o,n.length),s=o?t.column:t.column-e.start.column;return n.push(a[0].substring(0,s)),a[0]=a[0].substr(s),{start:r(t),end:i,lines:a,action:e.action}}function h(e,t){t=function(e){return{start:r(e.start),end:r(e.end),action:e.action,lines:e.lines.slice()}}(t);for(var n=e.length;n--;){for(var i=e[n],o=0;o0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?i(e):i(this.$undoStack)+"\n---\n"+i(this.$redoStack)}}).call(p.prototype);var f=e("./range").Range,m=f.comparePoints;f.comparePoints;t.UndoManager=p})),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=function(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(e){r.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},this.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},this.computeLineTop=function(e,t,n){var r=t.firstRowScreen*t.lineHeight,i=Math.floor(r/this.canvasHeight);return n.documentToScreenRow(e,0)*t.lineHeight-i*this.canvasHeight},this.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLength(e)},this.getLength=function(){return this.cells.length},this.get=function(e){return this.cells[e]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=r.createFragment(this.element),n=0;na&&(c=o.end.row+1,a=(o=t.getNextFoldLine(c,o))?o.start.row:1/0),c>i){for(;this.$lines.getLength()>l+1;)this.$lines.pop();break}(s=this.$lines.get(++l))?s.row=c:(s=this.$lines.createCell(c,e,this.session,r),this.$lines.push(s)),this.$renderCell(s,e,o,c),c++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,r=t.$firstLineNumber,i=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(i=t.getLength()+r-1);var o=n?n.getWidth(t,i,e):i.toString().length*e.characterWidth,a=this.$padding||this.$computePadding();(o+=a.left+a.right)!==this.gutterWidth&&!isNaN(o)&&(this.gutterWidth=o,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",o))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n=this.$cursorRow){if(r.row>this.$cursorRow){var i=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&i&&i.start.row==t[n-1].row))break;r=t[n-1]}r.element.className="ace_gutter-active-line "+r.element.className,this.$cursorCell=r;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),r=this.oldLastRow;if(this.oldLastRow=n,!t||r0;i--)this.$lines.shift();if(r>n)for(i=this.session.getFoldedRowCount(n+1,r);i>0;i--)this.$lines.pop();e.firstRowr&&this.$lines.push(this.$renderLines(e,r+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){for(var i=[],o=t,a=this.session.getNextFoldLine(o),s=a?a.start.row:1/0;o>s&&(o=a.end.row+1,s=(a=this.session.getNextFoldLine(o,a))?a.start.row:1/0),!(o>n);){var l=this.$lines.createCell(o,e,this.session,r);this.$renderCell(l,e,a,o),i.push(l),o++}return i},this.$renderCell=function(e,t,n,r){var o=e.element,a=this.session,s=o.childNodes[0],l=o.childNodes[1],c=a.$firstLineNumber,u=a.$breakpoints,d=a.$decorations,h=a.gutterRenderer||this.$renderer,p=this.$showFoldWidgets&&a.foldWidgets,f=n?n.start.row:Number.MAX_VALUE,m="ace_gutter-cell ";if(this.$highlightGutterLine&&(r==this.$cursorRow||n&&r=f&&this.$cursorRow<=n.end.row)&&(m+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),u[r]&&(m+=u[r]),d[r]&&(m+=d[r]),this.$annotations[r]&&(m+=this.$annotations[r].className),o.className!=m&&(o.className=m),p){var g=p[r];null==g&&(g=p[r]=a.getFoldWidget(r))}if(g){m="ace_fold-widget ace_"+g;"start"==g&&r==f&&rn.right-t.right?"foldWidgets":void 0}}).call(c.prototype),t.Gutter=c})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../range").Range,i=e("../lib/dom"),o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){function e(e,t,n,r){return(e?1:0)|(t?2:0)|(n?4:0)|(r?8:0)}this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var r=this.markers[n];if(r.range){var i=r.range.clipRows(e.firstRow,e.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),r.renderer){var o=this.$getTop(i.start.row,e),a=this.$padding+i.start.column*e.characterWidth;r.renderer(t,i,a,o,e)}else"fullLine"==r.type?this.drawFullLineMarker(t,i,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,i,r.clazz,e):i.isMultiLine()?"text"==r.type?this.drawTextMarker(t,i,r.clazz,e):this.drawMultiLineMarker(t,i,r.clazz,e):this.drawSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",e)}else r.update(t,this,this.session,e)}if(-1!=this.i)for(;this.ip,u==c),o,u==c?0:1,a)},this.drawMultiLineMarker=function(e,t,n,r,i){var o=this.$padding,a=r.lineHeight,s=this.$getTop(t.start.row,r),l=o+t.start.column*r.characterWidth;(i=i||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((c=t.clone()).end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+" ace_br1 ace_start",r,null,i)):this.elt(n+" ace_br1 ace_start","height:"+a+"px;right:0;top:"+s+"px;left:"+l+"px;"+(i||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var c;(c=t.clone()).start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+" ace_br12",r,null,i)}else{s=this.$getTop(t.end.row,r);var u=t.end.column*r.characterWidth;this.elt(n+" ace_br12","height:"+a+"px;width:"+u+"px;top:"+s+"px;left:"+o+"px;"+(i||""))}if(!((a=(t.end.row-t.start.row-1)*r.lineHeight)<=0)){s=this.$getTop(t.start.row+1,r);var d=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(d?" ace_br"+d:""),"height:"+a+"px;right:0;top:"+s+"px;left:"+o+"px;"+(i||""))}},this.drawSingleLineMarker=function(e,t,n,r,i,o){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,r,i,o);var a=r.lineHeight,s=(t.end.column+(i||0)-t.start.column)*r.characterWidth,l=this.$getTop(t.start.row,r),c=this.$padding+t.start.column*r.characterWidth;this.elt(n,"height:"+a+"px;width:"+s+"px;top:"+l+"px;left:"+c+"px;"+(o||""))},this.drawBidiSingleLineMarker=function(e,t,n,r,i,o){var a=r.lineHeight,s=this.$getTop(t.start.row,r),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach((function(e){this.elt(n,"height:"+a+"px;width:"+e.width+(i||0)+"px;top:"+s+"px;left:"+(l+e.left)+"px;"+(o||""))}),this)},this.drawFullLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,r)-o),this.elt(n,"height:"+a+"px;top:"+o+"px;left:0;right:0;"+(i||""))},this.drawScreenLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;this.elt(n,"height:"+a+"px;top:"+o+"px;left:0;right:0;"+(i||""))}}).call(o.prototype),t.Marker=o})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),a=e("./lines").Lines,s=e("../lib/event_emitter").EventEmitter,l=function(e){this.dom=i,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)};(function(){r.implement(this,s),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;nu&&(s=l.end.row+1,u=(l=this.session.getNextFoldLine(s,l))?l.start.row:1/0),!(s>i);){var d=o[a++];if(d){this.dom.removeChildren(d),this.$renderLine(d,s,s==u&&l);var h=e.lineHeight*this.session.getRowLength(s)+"px";d.style.height!=h&&(c=!0,d.style.height=h)}s++}if(c)for(;a0;i--)this.$lines.shift();if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);i>0;i--)this.$lines.pop();e.firstRowt.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,n){for(var r=[],o=t,a=this.session.getNextFoldLine(o),s=a?a.start.row:1/0;o>s&&(o=a.end.row+1,s=(a=this.session.getNextFoldLine(o,a))?a.start.row:1/0),!(o>n);){var l=this.$lines.createCell(o,e,this.session),c=l.element;this.dom.removeChildren(c),i.setStyle(c.style,"height",this.$lines.computeLineHeight(o,e,this.session)+"px"),i.setStyle(c.style,"top",this.$lines.computeLineTop(o,e,this.session)+"px"),this.$renderLine(c,o,o==s&&a),this.$useLineGroups()?c.className="ace_line_group":c.className="ace_line",r.push(l),o++}return r},this.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var t=e.firstRow,n=e.lastRow,r=this.$lines;r.getLength();)r.pop();r.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,r){for(var i,a=this,s=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,l=this.dom.createFragment(this.element),c=0;i=s.exec(r);){var u=i[1],d=i[2],h=i[3],p=i[4],f=i[5];if(a.showInvisibles||!d){var m=c!=i.index?r.slice(c,i.index):"";if(c=i.index+i[0].length,m&&l.appendChild(this.dom.createTextNode(m,this.element)),u){var g=a.session.getScreenTabSize(t+i.index);l.appendChild(a.$tabStrings[g].cloneNode(!0)),t+=g-1}else if(d)if(a.showInvisibles){(y=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",y.textContent=o.stringRepeat(a.SPACE_CHAR,d.length),l.appendChild(y)}else l.appendChild(this.com.createTextNode(d,this.element));else if(h){(y=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",y.textContent=o.stringRepeat(a.SPACE_CHAR,h.length),l.appendChild(y)}else if(p){a.showInvisibles&&a.SPACE_CHAR;t+=1,(y=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",y.className=a.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",y.textContent=a.showInvisibles?a.SPACE_CHAR:"",l.appendChild(y)}else if(f){t+=1,(y=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",y.className="ace_cjk",y.textContent=f,l.appendChild(y)}}}if(l.appendChild(this.dom.createTextNode(c?r.slice(c):r,this.element)),this.$textToken[n.type])e.appendChild(l);else{var b="ace_"+n.type.replace(/\./g," ace_"),y=this.dom.createElement("span");"fold"==n.type&&(y.style.width=n.value.length*this.config.characterWidth+"px"),y.className=b,y.appendChild(l),e.appendChild(y)}return t+r.length},this.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);if(r<=0||r>=n)return t;if(" "==t[0]){for(var i=(r-=r%this.tabSize)/this.tabSize,o=0;o=a;)s=this.$renderToken(l,s,u,d.substring(0,a-r)),d=d.substring(a-r),r=a,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(o.stringRepeat(" ",n.indent),this.element)),s=0,a=n[++i]||Number.MAX_VALUE;0!=d.length&&(r+=d.length,s=this.$renderToken(l,s,u,d))}}},this.$renderSimpleLine=function(e,t){var n=0,r=t[0],i=r.value;this.displayIndentGuides&&(i=this.renderIndentGuide(e,i)),i&&(n=this.$renderToken(e,n,r,i));for(var o=1;othis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,r,i);n=this.$renderToken(e,n,r,i)}},this.$renderOverflowMessage=function(e,t,n,r){this.$renderToken(e,t,n,r.slice(0,this.MAX_LINE_LENGTH-t));var i=this.dom.createElement("span");i.className="ace_inline_button ace_keyword ace_toggle_wrap",i.style.position="absolute",i.style.right="0",i.textContent="",e.appendChild(i)},this.$renderLine=function(e,t,n){if(!n&&0!=n&&(n=this.session.getFoldLine(t)),n)var r=this.$getFoldLineTokens(t,n);else r=this.session.getTokens(t);var i=e;if(r.length){var o=this.session.getRowSplitData(t);if(o&&o.length){this.$renderWrappedLine(e,r,o);i=e.lastChild}else{i=e;this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i)),this.$renderSimpleLine(i,r)}}else this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i));if(this.showInvisibles&&i){n&&(t=n.end.row);var a=this.dom.createElement("span");a.className="ace_invisible ace_invisible_eol",a.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,i.appendChild(a)}},this.$getFoldLineTokens=function(e,t){var n=this.session,r=[],i=n.getTokens(e);return t.walk((function(e,t,o,a,s){null!=e?r.push({type:"fold",value:e}):(s&&(i=n.getTokens(t)),i.length&&function(e,t,n){for(var i=0,o=0;o+e[i].value.lengthn-t&&(a=a.substring(0,n-t)),r.push({type:e[i].type,value:a}),o=t+a.length,i+=1);on?r.push({type:e[i].type,value:a.substring(0,n-o)}):r.push(e[i]),o+=a.length,i+=1}}(i,a,o))}),t.end.row,this.session.getLine(t.end.row).length),r},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(l.prototype),t.Text=l})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)r.setStyle(t[n].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){r.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){r.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&r.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&setTimeout(function(){r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this)),r.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(e,t){return e.top>=0&&e.tope.height+e.offset||a.top<0)&&n>1)){var s=this.cursors[i++]||this.addCursor(),l=s.style;this.drawCursor?this.drawCursor(s,a,e,t[n],this.session):this.isCursorInView(a,e)?(r.setStyle(l,"display","block"),r.translate(s,a.left,a.top),r.setStyle(l,"width",Math.round(e.characterWidth)+"px"),r.setStyle(l,"height",e.lineHeight+"px")):r.setStyle(l,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=a,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(i.prototype),t.Cursor=i})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/event"),a=e("./lib/event_emitter").EventEmitter,s=32768,l=function(e){this.element=i.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=i.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){r.implement(this,a),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(l.prototype);var c=function(e,t){l.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=i.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};r.inherits(c,l),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>s?(this.coeff=s/e,e=s):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(c.prototype);var u=function(e,t){l.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};r.inherits(u,l),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(u.prototype),t.ScrollBar=c,t.ScrollBarV=c,t.ScrollBarH=u,t.VScrollBar=c,t.HScrollBar=u})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var r=e("./lib/event"),i=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;if(t&&(r.blockIdle(100),n.changes=0,n.onRender(t)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(i.prototype),t.RenderLoop=i})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),a=e("../lib/event"),s=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,c=256,u="function"==typeof ResizeObserver,d=200,h=t.FontMetrics=function(e){this.el=i.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.innerHTML=o.stringRepeat("X",c),this.$characterSize={width:0,height:0},u?this.$addObserver():this.checkForSizeChanges()};(function(){r.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(t){var n=t[0].contentRect;e.checkForSizeChanges({height:n.height,width:n.width/c})})),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=a.onIdle((function t(){e.checkForSizeChanges(),a.onIdle(t,500)}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/c};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.innerHTML=o.stringRepeat(e,c),this.$main.getBoundingClientRect().width/c},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=i.buildDom([e(0,0),e(d,0),e(0,d),e(d,d)],this.el)},this.transformCoordinates=function(e,t){function n(e,t,n){var r=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/r,(+e[1]*n[0]-e[0]*n[1])/r]}function r(e,t){return[e[0]-t[0],e[1]-t[1]]}function i(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e*t[0],e*t[1]]}function a(e){var t=e.getBoundingClientRect();return[t.left,t.top]}e&&(e=o(1/this.$getZoom(this.el),e));this.els||this.$initTransformMeasureNodes();var s=a(this.els[0]),l=a(this.els[1]),c=a(this.els[2]),u=a(this.els[3]),h=n(r(u,l),r(u,c),r(i(l,c),i(u,s))),p=o(1+h[0],r(l,s)),f=o(1+h[1],r(c,s));if(t){var m=t,g=h[0]*m[0]/d+h[1]*m[1]/d+1,b=i(o(m[0],p),o(m[1],f));return i(o(1/g/d,b),s)}var y=r(e,s),_=n(r(p,o(h[0],y)),r(f,o(h[1],y)),y);return o(d,_)}}).call(h.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./config"),a=e("./layer/gutter").Gutter,s=e("./layer/marker").Marker,l=e("./layer/text").Text,c=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,d=e("./scrollbar").VScrollBar,h=e("./renderloop").RenderLoop,p=e("./layer/font_metrics").FontMetrics,f=e("./lib/event_emitter").EventEmitter,m='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;perspective: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}',g=e("./lib/useragent"),b=g.isIE;i.importCssString(m,"ace_editor.css");var y=function(e,t){var n=this;this.container=e||i.createElement("div"),i.addCssClass(this.container,"ace_editor"),i.HI_DPI&&i.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),this.$gutter=i.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=i.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=i.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var r=this.$textLayer=new l(this.content);this.canvas=r.element,this.$markerFront=new s(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new p(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!g.isIOS,this.$loop=new h(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,f),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,r){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var i=this.container;r||(r=i.clientHeight||i.scrollHeight),n||(n=i.clientWidth||i.scrollWidth);var o=this.$updateCachedSize(e,t,n,r);if(!this.$size.scrollerHeight||!n&&!r)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,r){r-=this.$extraHeight||0;var o=0,a=this.$size,s={width:a.width,height:a.height,scrollerHeight:a.scrollerHeight,scrollerWidth:a.scrollerWidth};if(r&&(e||a.height!=r)&&(a.height=r,o|=this.CHANGE_SIZE,a.scrollerHeight=a.height,this.$horizScroll&&(a.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),n&&(e||a.width!=n)){o|=this.CHANGE_SIZE,a.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,i.setStyle(this.scrollBarH.element.style,"left",t+"px"),i.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),a.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),i.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";i.setStyle(this.scrollBarH.element.style,"right",l),i.setStyle(this.scroller.style,"right",l),i.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(o|=this.CHANGE_FULL)}return a.$dirty=!n||!r,o&&this._signal("resize",s),o},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=i.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=i.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){var e=this.textarea.style;if(this.$keepTextAreaAtCursor){var t=this.$cursorLayer.$pixelPos;if(t){var n=this.$composition;n&&n.markerRange&&(t=this.$cursorLayer.getPixelPosition(n.markerRange.start,!0));var r=this.layerConfig,o=t.top,a=t.left;o-=r.offset;var s=n&&n.useTextareaForIME?this.lineHeight:b?0:1;if(o<0||o>r.height-s)i.translate(this.textarea,0,0);else{var l=1;if(n)if(n.useTextareaForIME){var c=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(c)[0],s+=2}else o+=this.lineHeight+2;else o+=this.lineHeight;(a-=this.scrollLeft)>this.$size.scrollerWidth-l&&(a=this.$size.scrollerWidth-l),a+=this.gutterWidth+this.margin.left,i.setStyle(e,"height",s+"px"),i.setStyle(e,"width",l+"px"),i.translate(this.textarea,Math.min(a,this.$size.scrollerWidth-l),Math.min(o,this.$size.height-s))}}}else i.translate(this.textarea,-100,0)},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,r){var i=this.scrollMargin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,i.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-i.top),this.updateFull()},this.setMargin=function(e,t,n,r){var i=this.margin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;r>0&&(this.scrollTop=r,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),i.translate(this.content,-this.scrollLeft,-n.offset);var o=n.width+2*this.$padding+"px",a=n.minHeight+"px";i.setStyle(this.content.style,"width",o),i.setStyle(this.content.style,"height",a)}return e&this.CHANGE_H_SCROLL&&(i.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL?(this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender")):e&this.CHANGE_SCROLL?(e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender")):(e&this.CHANGE_TEXT?(this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(n):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),void this._signal("afterRender"))}this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var r=!(n<=2*this.lineHeight)&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||r!=this.$vScroll){r!=this.$vScroll&&(this.$vScroll=r,this.scrollBarV.setVisible(r));var i=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,i,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,r=this.session.getScreenLength()*this.lineHeight,i=this.$getLongestLine(),o=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-i-2*this.$padding<0),a=this.$horizScroll!==o;a&&(this.$horizScroll=o,this.scrollBarH.setVisible(o));var s=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var l=t.scrollerHeight+this.lineHeight,c=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;r+=c;var u=this.scrollMargin;this.session.setScrollTop(Math.max(-u.top,Math.min(this.scrollTop,r-t.scrollerHeight+u.bottom))),this.session.setScrollLeft(Math.max(-u.left,Math.min(this.scrollLeft,i+2*this.$padding-t.scrollerWidth+u.right)));var d=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-r+c<0||this.scrollTop>u.top),h=s!==d;h&&(this.$vScroll=d,this.scrollBarV.setVisible(d));var p,f,m=this.scrollTop%this.lineHeight,g=Math.ceil(l/this.lineHeight)-1,b=Math.max(0,Math.round((this.scrollTop-m)/this.lineHeight)),y=b+g,_=this.lineHeight;b=e.screenToDocumentRow(b,0);var v=e.getFoldLine(b);v&&(b=v.start.row),p=e.documentToScreenRow(b,0),f=e.getRowLength(b)*_,y=Math.min(e.screenToDocumentRow(y,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(y)*_+f,m=this.scrollTop-p*_;var M=0;return(this.layerConfig.width!=i||a)&&(M=this.CHANGE_H_SCROLL),(a||h)&&(M|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),h&&(i=this.$getLongestLine())),this.layerConfig={width:i,padding:this.$padding,firstRow:b,firstRowScreen:p,lastRow:y,lineHeight:_,characterWidth:this.characterWidth,minHeight:l,maxHeight:r,offset:m,gutterOffset:_?Math.max(0,Math.ceil((m+t.height-t.scrollerHeight)/_)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(i-this.$padding),M},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||tthis.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var r=this.$cursorLayer.getPixelPosition(e),i=r.left,o=r.top,a=n&&n.top||0,s=n&&n.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+a>o?(t&&l+a>o+this.lineHeight&&(o-=t*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):l+this.$size.scrollerHeight-si?(i=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,o=i/this.characterWidth,a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),s=this.$blockCursor?Math.floor(o):Math.round(o);return{row:a,column:s,side:o-s>0?1:-1,offsetX:i}},this.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,o=i/this.characterWidth,a=this.$blockCursor?Math.floor(o):Math.round(o),s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(s,Math.max(a,0),i)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(e,t),i=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,e)?this.session.$bidiHandler.getPosLeft(r.column):Math.round(r.column*this.characterWidth)),o=r.row*this.lineHeight;return{pageX:n.left+i-this.scrollLeft,pageY:n.top+o-this.scrollTop}},this.visualizeFocus=function(){i.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){i.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText,e.keepTextAreaAtCursor=this.$keepTextAreaAtCursor),e.useTextareaForIME=this.$useTextareaForIME,this.$useTextareaForIME?(this.$keepTextAreaAtCursor=!0,i.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),i.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null,this.$cursorLayer.element.style.display="")},this.addToken=function(e,t,n,r){var i=this.session;i.bgTokenizer.lines[n]=null;var o={type:t,value:e},a=i.getTokens(n);if(null==r)a.push(o);else for(var s=0,l=0;l50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype);t.UIWorkerClient=function(e,t,n){var r=null,i=!1,o=Object.create(a),c=[],u=new l({messageBuffer:c,terminate:function(){},postMessage:function(e){c.push(e),r&&(i?setTimeout(d):d())}});u.setEmitSync=function(e){i=e};var d=function(){var e=c.shift();e.command?r[e.command].apply(r,e.args):e.event&&o._signal(e.event,e.data)};return o.postMessage=function(e){u.onMessage({data:e})},o.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},o.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},s.loadModule(["worker",t],(function(e){for(r=new e[n](o);c.length;)d()})),u},t.WorkerClient=l,t.createWorker=r})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop"),a=function(e,t,n,r,i,o){var a=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=i,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=r,this.$onCursorChange=function(){setTimeout((function(){a.onCursorChange()}))},this.$pos=n;var s=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){o.implement(this,i),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=n.addMarker(new r(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0,r.detach(),e.others.push(r)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===e.action)for(var a=this.others.length-1;a>=0;a--){var s={row:(l=this.others[a]).row,column:l.column+o};this.doc.insertMergedLines(s,e.lines)}else if("remove"===e.action)for(a=this.others.length-1;a>=0;a--){var l;s={row:(l=this.others[a]).row,column:l.column+o};this.doc.remove(new r(s.row,s.column,s.row,s.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,i){t.removeMarker(n.markerId),n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),i,null,!1)};n(this.pos,this.mainClass);for(var i=this.others.length;i--;)n(this.others[i],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var r=this.ranges.indexOf(e[n]);this.ranges.splice(r,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new o,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=a.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{n=this.getRange();var r=this.isBackwards(),i=n.start.row,o=n.end.row;if(i==o){if(r)var s=n.end,l=n.start;else s=n.start,l=n.end;return this.addRange(a.fromPoints(l,l)),void this.addRange(a.fromPoints(s,s))}var c=[],u=this.getLineRange(i,!0);u.start.column=n.start.column,c.push(u);for(var d=i+1;d1){var e=this.rangeList.ranges,t=e[e.length-1],n=a.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var r=this.session.documentToScreenPosition(this.cursor),i=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(r,i).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var i=[],o=e.column0;)b--;if(b>0)for(var y=0;i[y].isEmpty();)y++;for(var _=b;_>=y;_--)i[_].isEmpty()&&i.splice(_,1)}return i}}.call(s.prototype);var f=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var r=e[n];if(r.marker){this.session.removeMarker(r.marker);var i=t.indexOf(r);-1!=i&&t.splice(i,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(d.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(d.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?r=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?r=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),r=t.exec(n,e.args||{})):r=t.multiSelectAction(n,e.args||{});else{var r=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return r}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var r,i=n&&n.keepOrder,o=1==n||n&&n.$byLines,a=this.session,l=this.selection,c=l.rangeList,u=(i?l:c).ranges;if(!u.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var d=l._eventRegistry;l._eventRegistry={};var h=new s(a);this.inVirtualSelectionMode=!0;for(var p=u.length;p--;){if(o)for(;p>0&&u[p].start.row==u[p-1].end.row;)p--;h.fromOrientedRange(u[p]),h.index=p,this.selection=a.selection=h;var f=e.exec?e.exec(this,t||{}):e(this,t||{});!r&&void 0!==f&&(r=f),h.toOrientedRange(u[p])}h.detach(),this.selection=a.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=d,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var m=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),m&&m.from==m.to&&this.renderer.animateScrolling(m.from),r}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],r=0;ro&&(o=n.column),rc?e.insert(r,u.stringRepeat(" ",i-c)):e.remove(new a(r.row,r.column,r.row,r.column-i+c)),t.start.column=t.end.column=o,t.start.row=t.end.row=r.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var c=this.selection.getRange(),d=c.start.row,h=c.end.row,p=d==h;if(p){var f,m=this.session.getLength();do{f=this.session.getLine(h)}while(/[=:]/.test(f)&&++h0);d<0&&(d=0),h>=m&&(h=m-1)}var g=this.session.removeFullLines(d,h);g=this.$reAlignText(g,p),this.session.insert({row:d,column:0},g.join("\n")+"\n"),p||(c.start.column=0,c.end.column=g[g.length-1].length),this.selection.setRange(c)}},this.$reAlignText=function(e,t){function n(e){return u.stringRepeat(" ",e)}function r(e){return e[2]?n(i)+e[2]+n(o-e[2].length+a)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}var i,o,a,s=!0,l=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==i?(i=t[1].length,o=t[2].length,a=t[3].length,t):(i+o+a!=t[1].length+t[2].length+t[3].length&&(l=!1),i!=t[1].length&&(s=!1),i>t[1].length&&(i=t[1].length),ot[3].length&&(a=t[3].length),t):[e]})).map(t?r:s?l?function(e){return e[2]?n(i+o-e[2].length)+e[2]+n(a)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:r:function(e){return e[2]?n(i)+e[2]+n(a)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]})}}).call(f.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=i,e("./config").defineOptions(f.prototype,"editor",{enableMultiselect:{set:function(e){i(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",l)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",l))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../../range").Range,i=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var i=/\S/,o=e.getLine(t),a=o.search(i);if(-1!=a){for(var s=n||o.length,l=e.getLength(),c=t,u=t;++tc){var h=e.getLine(u).length;return new r(c,s,u,h)}}},this.openingBracketBlock=function(e,t,n,i,o){var a={row:n,column:i+1},s=e.$findClosingBracket(t,a,o);if(s){var l=e.foldWidgets[s.row];return null==l&&(l=e.getFoldWidget(s.row)),"start"==l&&s.row>a.row&&(s.row--,s.column=e.getLine(s.row).length),r.fromPoints(a,s)}},this.closingBracketBlock=function(e,t,n,i,o){var a={row:n,column:i},s=e.$findOpeningBracket(t,a);if(s)return s.column++,a.column--,r.fromPoints(s,a)}}).call(i.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";function r(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}e("./lib/oop");var i=e("./lib/dom");e("./range").Range;(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var r=e.data,i=r.start.row,o=r.end.row,a="add"==e.action,s=i+1;s0&&!r[i];)i--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var a=i;a<=o;a++){var s=r[a];if(s&&s.el)if(s.hidden)s.el.style.top=-100-(s.pixelHeight||0)+"px";else{s._inDocument||(s._inDocument=!0,t.container.appendChild(s.el));var l=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;s.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=l-n.offset+"px";var c=s.coverGutter?0:t.gutterWidth;s.fixedWidth||(c-=t.scrollLeft),s.el.style.left=c+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=n.width+2*n.padding+"px"),s.fixedWidth?s.el.style.right=t.scrollBar.getWidth()+"px":s.el.style.right=""}}}}}).call(r.prototype),t.LineWidgets=r})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";function r(e,t,n){var r=e.getAnnotations().sort(a.comparePoints);if(r.length){var i=function(e,t,n){for(var r=0,i=e.length-1;r<=i;){var o=r+i>>1,a=n(t,e[o]);if(a>0)r=o+1;else{if(!(a<0))return o;i=o-1}}return-(r+1)}(r,{row:t,column:-1},a.comparePoints);i<0&&(i=-i-1),i>=r.length?i=n>0?0:r.length-1:0===i&&n<0&&(i=r.length-1);var o=r[i];if(o&&n){if(o.row===t){do{o=r[i+=n]}while(o&&o.row===t);if(!o)return r.slice()}var s=[];t=o.row;do{s[n<0?"unshift":"push"](o),o=r[i+=n]}while(o&&o.row==t);return s.length&&s}}}var i=e("../line_widgets").LineWidgets,o=e("../lib/dom"),a=e("../range").Range;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new i(n),n.widgetManager.attach(e));var a=e.getCursorPosition(),s=a.row,l=n.widgetManager.getWidgetsAtRow(s).filter((function(e){return"errorMarker"==e.type}))[0];l?l.destroy():s-=t;var c,u=r(n,s,t);if(u){var d=u[0];a.column=(d.pos&&"number"!=typeof d.column?d.pos.sc:d.column)||0,a.row=d.row,c=e.renderer.$gutterLayer.$annotations[a.row]}else{if(l)return;c={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(a.row),e.selection.moveToPosition(a);var h={row:a.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},p=h.el.appendChild(o.createElement("div")),f=h.el.appendChild(o.createElement("div"));f.className="error_widget_arrow "+c.className;var m=e.renderer.$cursorLayer.getPixelPosition(a).left;f.style.left=m+e.renderer.gutterWidth-5+"px",h.el.className="error_widget_wrapper",p.className="error_widget "+c.className,p.innerHTML=c.text.join("
"),p.appendChild(o.createElement("div"));var g=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return h.destroy(),{command:"null"}};h.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(g),n.widgetManager.removeLineWidget(h),e.off("changeSelection",h.destroy),e.off("changeSession",h.destroy),e.off("mouseup",h.destroy),e.off("change",h.destroy))},e.keyBinding.addKeyboardHandler(g),e.on("changeSelection",h.destroy),e.on("changeSession",h.destroy),e.on("mouseup",h.destroy),e.on("change",h.destroy),e.session.widgetManager.addLineWidget(h),h.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:h.el.offsetHeight})},o.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,r){"use strict";e("./lib/fixoldbrowsers");var i=e("./lib/dom"),o=e("./lib/event"),a=e("./range").Range,s=e("./editor").Editor,l=e("./edit_session").EditSession,c=e("./undomanager").UndoManager,u=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.require=e,t.define=n("IU0J"),t.edit=function(e,n){if("string"==typeof e){var r=e;if(!(e=document.getElementById(r)))throw new Error("ace.edit can't find div #"+r)}if(e&&e.env&&e.env.editor instanceof s)return e.env.editor;var a="";if(e&&/input|textarea/i.test(e.tagName)){var l=e;a=l.value,e=i.createElement("pre"),l.parentNode.replaceChild(e,l)}else e&&(a=e.textContent,e.innerHTML="");var c=t.createEditSession(a),d=new s(new u(e),c,n),h={document:c,editor:d,onResize:d.resize.bind(d,null)};return l&&(h.textarea=l),o.addListener(window,"resize",h.onResize),d.on("destroy",(function(){o.removeListener(window,"resize",h.onResize),h.editor.container.env=null})),d.container.env=d.env=h,d},t.createEditSession=function(e,t){var n=new l(e,t);return n.setUndoManager(new c),n},t.Range=a,t.Editor=s,t.EditSession=l,t.UndoManager=c,t.VirtualRenderer=u,t.version="1.4.4"})),ace.require(["ace/ace"],(function(t){for(var n in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(n)&&(window.ace[n]=t[n]);window.ace.default=window.ace,e&&(e.exports=window.ace)}))}).call(this,n("aYSr")(e))},"3VYZ":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=32)}({32:function(e,t,n){"use strict";n.r(t);n(33),n(34),n(36),n(37);var r=window.ace;r.acerequire=r.require,t.default=r},33:function(e,t){e.exports=n("3S6b")},34:function(e,t,n){(function(e){ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/lib/dom","ace/editor"],(function(e,t,n){"use strict";function r(e){var t=(new Date).toLocaleString("en-us",e);return 1==t.length?"0"+t:t}var i=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,a=e("./lib/lang"),s=e("./range").Range,l=e("./range_list").RangeList,c=e("./keyboard/hash_handler").HashHandler,u=e("./tokenizer").Tokenizer,d=e("./clipboard"),h={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var r=e.session.getTextRange();return n?r.replace(/\n\r?([ \t]*\S)/g,"\n"+n+"$1"):r},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return d.getText&&d.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:r.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:r.bind(null,{year:"2-digit"}),CURRENT_MONTH:r.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:r.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:r.bind(null,{month:"short"}),CURRENT_DATE:r.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:r.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:r.bind(null,{weekday:"short"}),CURRENT_HOUR:r.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:r.bind(null,{minute:"2-digit"}),CURRENT_SECOND:r.bind(null,{second:"2-digit"})};h.SELECTED_TEXT=h.SELECTION;var p=function(){this.snippetMap={},this.snippetNameMap={}};(function(){i.implement(this,o),this.getTokenizer=function(){return p.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function e(e){return e=e.substr(1),/^\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var n={regex:"/("+t("/")+"+)/",onMatch:function(e,t,n){var r=n[0];return r.fmtString=!0,r.guard=e.slice(1,-1),r.flag="",""},next:"formatString"};return p.$tokenizer=new u({start:[{regex:/\\./,onMatch:function(e,t,n){var r=e[1];return("}"==r&&n.length||-1!="`$\\".indexOf(r))&&(e=r),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,r){var i=e(t.substr(1));return r.unshift(i[0]),i},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){var r=e.slice(1,-1).replace(/\\[,|\\]|,/g,(function(e){return 2==e.length?e[1]:"\0"})).split("\0");return n[0].choices=r,[r[0]]},next:"start"},n,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,n){var r=e[1];return"}"==r&&n.length||-1!="`$\\".indexOf(r)?e=r:"n"==r?e="\n":"t"==r?e="\t":-1!="ulULE".indexOf(r)&&(e={changeCase:r,local:r>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,n){var r=n.shift();return r&&(r.flag=e.slice(1,-1)),this.next=r&&r.tabstopId?"start":"",[r||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e,t,n){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,n){var r={text:e.slice(2)};return n.unshift(r),[r]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,n){var r=n.shift();return this.next=r&&r.tabstopId?"start":"",[r||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,n){return n[0].formatFunction=e.slice(2,-1),[n.shift()]},next:"formatString"},n,{regex:/:[\?\-+]?/,onMatch:function(e,t,n){"+"==e[1]&&(n[0].ifEnd=n[0]),"?"==e[1]&&(n[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]})},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.getVariableValue=function(e,t,n){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var r=this.variables[t];return"function"==typeof r&&(r=this.variables[t](e,t,n)),null==r?"":r},this.variables=h,this.tmStrFormat=function(e,t,n){if(!t.fmt)return e;var r=t.flag||"",i=t.guard;i=new RegExp(i,r.replace(/[^gim]/g,""));var o="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,a=this;return e.replace(i,(function(){var e=a.variables.__;a.variables.__=[].slice.call(arguments);for(var t=a.resolveVariables(o,n),r="E",i=0;i1?(y=t[t.length-1].length,b+=t.length-1):y+=e.length,_+=e}else e&&(e.start?e.end={row:b,column:y}:e.start={row:b,column:y})}));var v=e.getSelectionRange(),M=e.session.replace(v,_),w=new f(e),x=e.inVirtualSelectionMode&&e.selection.index;w.addTabstops(l,v.start,M,x)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if("html"===(t=t.split("/").pop())||"php"===t){"php"===t&&!e.session.$mode.inlinePhp&&(t="html");var n=e.getCursorPosition(),r=e.session.getState(n.row);"object"==typeof r&&(r=r[0]),r.substring&&("js-"==r.substring(0,3)?t="javascript":"css-"==r.substring(0,4)?t="css":"php-"==r.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],r=this.snippetMap;return r[t]&&r[t].includeScopes&&n.push.apply(n,r[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,r=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return r&&e.tabstopManager&&e.tabstopManager.tabNext(),r},this.expandSnippetForSelection=function(e,t){var n,r=e.getCursorPosition(),i=e.session.getLine(r.row),o=i.substring(0,r.column),a=i.substr(r.column),s=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=s[e];return t&&(n=this.findMatchingSnippet(t,o,a)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(r.row,r.column-n.replaceBefore.length,r.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var r=e.length;r--;){var i=e[r];if((!i.startRe||i.startRe.test(t))&&((!i.endRe||i.endRe.test(n))&&(i.startRe||i.endRe)))return i.matchBefore=i.startRe?i.startRe.exec(t):[""],i.matchAfter=i.endRe?i.endRe.exec(n):[""],i.replaceBefore=i.triggerRe?i.triggerRe.exec(t)[0]:"",i.replaceAfter=i.endTriggerRe?i.endTriggerRe.exec(n)[0]:"",i}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){function n(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function r(e,t,r){return e=n(e),t=n(t),r?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function i(e){e.scope||(e.scope=t||"_"),t=e.scope,o[t]||(o[t]=[],s[t]={});var n=s[t];if(e.name){var i=n[e.name];i&&l.unregister(i),n[e.name]=e}o[t].push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join("\n"):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=a.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=r(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=r(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}var o=this.snippetMap,s=this.snippetNameMap,l=this;e||(e=[]),Array.isArray(e)?e.forEach(i):Object.keys(e).forEach((function(t){i(e[t])})),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){function n(e){var n=i[e.scope||t];if(n&&n[e.name]){delete n[e.name];var o=r[e.scope||t],a=o&&o.indexOf(e);a>=0&&o.splice(a,1)}}var r=this.snippetMap,i=this.snippetNameMap;e.content?n(e):Array.isArray(e)&&e.forEach(n)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],r={},i=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=i.exec(e);){if(t[1])try{r=JSON.parse(t[1]),n.push(r)}catch(e){}if(t[4])r.content=t[4].replace(/^\t/gm,""),n.push(r),r={};else{var o=t[2],a=t[3];if("regex"==o){var s=/\/((?:[^\/\\]|\\.)*)|$/g;r.guard=s.exec(a)[1],r.trigger=s.exec(a)[1],r.endTrigger=s.exec(a)[1],r.endGuard=s.exec(a)[1]}else"snippet"==o?(r.tabTrigger=a.match(/^\S*/)[0],r.name||(r.name=a)):o&&(r[o]=a)}}return n},this.getSnippetByName=function(e,t){var n,r=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var i=r[t];return i&&(n=i[e]),!!n}),this),n}}).call(p.prototype);var f=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=a.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){for(var t="r"==e.action[0],n=this.selectedTabstop||{},r=n.parents||{},i=(this.tabstops||[]).slice(),o=0;o2&&(this.tabstops.length&&o.push(o.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,o))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new c,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}})}).call(f.prototype);var m=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},g=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new p;var b=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(b.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../virtual_renderer").VirtualRenderer,i=e("../editor").Editor,o=e("../range").Range,a=e("../lib/event"),s=e("../lib/lang"),l=e("../lib/dom"),c=function(e){var t=new r(e);t.$maxLines=4;var n=new i(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusTimeout=0,n.$highlightTagPending=!0,n};l.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #3a674e;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4); position: absolute; z-index: 2;}.ace_dark.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid rgba(109, 150, 13, 0.8); background: rgba(58, 103, 78, 0.62);}.ace_completion-meta { opacity: 0.5; margin: 0.9em;}.ace_completion-message { color: blue;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #2d69c7;}.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #93ca12;}.ace_editor.ace_autocomplete { width: 300px; z-index: 200000; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4; background: #fefefe; color: #111;}.ace_dark.ace_editor.ace_autocomplete { border: 1px #484747 solid; box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); line-height: 1.4; background: #25282c; color: #c1c1c1;}","autocompletion.css"),t.AcePopup=function(e){var t=l.createElement("div"),n=new c(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var r=function(){};n.focus=r,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=r,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",(function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),d.start.row=d.end.row=t.row,e.stop()}));var i,u=new o(-1,0,-1,1/0),d=new o(-1,0,-1,1/0);d.id=n.session.addMarker(d,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?u.id&&(n.session.removeMarker(u.id),u.id=null):u.id=n.session.addMarker(u,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",(function(e){if(i){if(i.x!=e.x||i.y!=e.y){(i=e).scrollTop=n.renderer.scrollTop;var t=i.getDocumentPosition().row;u.start.row!=t&&(u.id||n.setRow(t),p(t))}}else i=e})),n.renderer.on("beforeRender",(function(){if(i&&-1!=u.start.row){i.$pos=null;var e=i.getDocumentPosition().row;u.id||n.setRow(e),p(e,!0)}})),n.renderer.on("afterRender",(function(){var e=n.getRow(),t=n.renderer.$textLayer,r=t.element.childNodes[e-t.config.firstRow];r!==t.selectedNode&&t.selectedNode&&l.removeCssClass(t.selectedNode,"ace_selected"),t.selectedNode=r,r&&l.addCssClass(r,"ace_selected")}));var h=function(){p(-1)},p=function(e,t){e!==u.start.row&&(u.start.row=u.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return u.start.row},a.addListener(n.container,"mouseout",h),n.on("hide",h),n.on("changeSelection",h),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var f=n.session.bgTokenizer;return f.$tokenizeRow=function(e){function t(e,t){e&&i.push({type:(r.className||"")+(t||""),value:e})}var r=n.data[e],i=[];if(!r)return i;"string"==typeof r&&(r={value:r});for(var o=r.caption||r.value||r.name,a=o.toLowerCase(),s=(n.filterText||"").toLowerCase(),l=0,c=0,u=0;u<=s.length;u++)if(u!=c&&(r.matchMask&1<a/2&&!r&&u+t+c>a?(l.$maxPixelHeight=u-2*this.$borderSize,o.style.top="",o.style.bottom=a-u+"px",n.isTopdown=!1):(u+=t,l.$maxPixelHeight=a-u-.2*t,o.style.top=u+"px",o.style.bottom="",n.isTopdown=!0),o.style.display="";var d=e.left;d+o.offsetWidth>s&&(d=s-o.offsetWidth),o.style.left=d+"px",this._signal("show"),i=null,n.isOpen=!0},n.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n},t.$singleLineEditor=c})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(e,t,n){"use strict";t.parForEach=function(e,t,n){var r=0,i=e.length;0===i&&n();for(var o=0;o=0&&n.test(e[o]);o--)i.push(e[o]);return i.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t;othis.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=(t=this.filterCompletions(t,this.filterText)).sort((function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)}));var n=null;t=t.filter((function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)})),this.filtered=t},this.filterCompletions=function(e,t){var n=[],r=t.toUpperCase(),i=t.toLowerCase();e:for(var o,a=0;o=e[a];a++){var s=o.caption||o.value||o.snippet;if(s){var l,c,u=-1,d=0,h=0;if(this.exactMatch){if(t!==s.substr(0,t.length))continue e}else{var p=s.toLowerCase().indexOf(i);if(p>-1)h=p;else for(var f=0;f=0&&(g<0||m0&&(-1===u&&(h+=10),h+=c,d|=1<",a.escapeHTML(e.caption),"
","
",a.escapeHTML(e.snippet)].join(""))}},d=[u,l,c];t.setCompleters=function(e){d.length=0,e&&d.push.apply(d,e)},t.addCompleter=function(e){d.push(e)},t.textCompleter=l,t.keyWordCompleter=c,t.snippetCompleter=u;var h={name:"expandSnippet",exec:function(e){return r.expandWithTab(e)},bindKey:"Tab"},p=function(e,t){f(t.session.$mode)},f=function(e){"string"==typeof e&&(e=o.$modes[e]),e&&(r.files||(r.files={}),m(e.$id,e.snippetFileId),e.modes&&e.modes.forEach(f))},m=function(e,t){t&&e&&!r.files[e]&&(r.files[e]={},o.loadModule(t,(function(t){t&&(r.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=r.parseSnippetFile(t.snippetText)),r.register(t.snippets||[],t.scope),t.includeScopes&&(r.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach((function(e){f("ace/mode/"+e)}))))})))},g=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!s.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name){if(s.getCompletionPrefix(t)&&!n){var r=i.for(t);r.autoInsert=!1,r.showPopup(t)}}},b=e("../editor").Editor;e("../config").defineOptions(b.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:d),this.commands.addCommand(i.startCommand)):this.commands.removeCommand(i.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:d),this.commands.on("afterExec",g)):this.commands.removeListener("afterExec",g)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(h),this.on("changeMode",p),p(0,this)):(this.commands.removeCommand(h),this.off("changeMode",p))},value:!1}})})),ace.require(["ace/ext/language_tools"],(function(t){e&&(e.exports=t)}))}).call(this,n(35)(e))},35:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},36:function(e,t){ace.define("ace/spl_autocomplete",["require","exports","module","ace/autocomplete","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],(function(e,t,n){"use strict";var r=e("./autocomplete").Autocomplete,i=e("./autocomplete").FilteredList,o=e("./lib/oop"),a=e("./lib/lang"),s=e("./lib/event"),l=e("./lib/keys"),c=e("./snippets").snippetManager,u=function(){r.apply(this,arguments),this.autoSelect=!1,this.changeTimer=a.delayedCall(function(){this.updateCompletions(!1),this.updating=!1}.bind(this),200),this.delayedDetach=a.delayedCall(this.detach.bind(this),200),s.addMouseWheelListener(document.body,this.delayedDetach),s.addListener(document.body,"mousedown",this.delayedDetach)};o.inherits(u,r),function(){var e={};function t(e,t){var n=e.matchMask?e.matchMask.split(" ").map((function(e){return parseInt(e,10)})):[];if(!n.length)return t;var r,i,o=0,a=0,s=0,l=0,c=0,u=0,d=!0,h=[];for(l=0;lo&&s<=a)i=r.value[s-o],d?(h.push({value:r.value.substring(0,s-o),type:r.type}),h.push({value:i,type:r.type+".matched-highlight"}),d=!1):s-u>1?(h.push({value:r.value.substring(u+1-o,s-o),type:r.type}),h.push({value:i,type:r.type+".matched-highlight"})):h[h.length-1].value+=i;else if(s>a){d?h.push(r):u!==a&&h.push({value:r.value.substring(u-o+1),type:r.type}),o+=r.value.length;break}c+1===n.length&&s!=a&&h.push({value:r.value.substring(s-o+1),type:r.type}),c++,u=s}else h.push(r);return h}function n(e,t,n){var r=Math.floor(e.renderer.$size.scrollerWidth/e.renderer.layerConfig.characterWidth+6);if(t.meta&&(r-=t.meta.length),t.caption.length<=r)return n;var i,o,a=t.caption,s=0,l=0;i=Math.ceil(a.length/2),l=(o=a.length-r)-(s=Math.ceil(o/2)),s=i-s-1,l=i+l,t.caption=a.substring(0,s+1)+"…"+a.substring(l);for(var c,u=0,d=0,h=[],p=0;p(d=u+(c=n[p]).value.length-1)||u>l?(h.push(c),u+=c.value.length):(u>s&&d=u&&l<=d?(h.push({value:c.value.substring(0,s-u+1),type:c.type}),h.push({value:"…",type:""}),h.push({value:c.value.substring(l-u),type:c.type})):s>=u&&s<=d?(h.push({value:c.value.substring(0,s-u+1),type:c.type}),h.push({value:"…",type:""})):l>=u&&l<=d&&h.push({value:c.value.substring(l-u),type:c.type})),u+=c.value.length);return h}o.mixin(e,r.prototype.commands),this.commands=o.mixin(e,{Tab:function(e){e.completer.tooltipNode&&e.completer.tooltipNode.focus()},Esc:function(e){this.handleEscapeKeyPress(e)}.bind(this)}),this.handleEscapeKeyPress=function(e){e.completer.detach(),$(e.textInput.getElement()).one("keyup",(function(e){27===e.keyCode&&s.stopEvent(e)}))},this.showPopup=function(e){this.handleExtraTooltip=e.handleExtraTooltip,r.prototype.showPopup.apply(this,arguments)},this.$init=function(){this.popup=r.prototype.$init.apply(this,arguments),this.popup.renderer.content.style.cursor="pointer";var e=this.popup.show.bind(this.popup);this.popup.show=function(t,n,r){t.left+=1,e(t,36,true)};var i=this.popup.session.bgTokenizer;i.$tokenizeRow=function(e){var r,i=this.popup.data[e],o=[];if(!i)return o;i.caption=i.value;var a=this.editor.session.bgTokenizer,s="start";return"next"===i.type||"command"===i.type?s="command":"commandArgs"===i.type&&(s=i.command.name+"-command"),r=t(i,o=a.tokenizer.getLineTokens(i.caption,s).tokens),o=n(this.popup,i,r),i.meta&&o.push({type:"rightAlignedText",value:i.meta}),o}.bind(this),this.popup.on("hide",function(){this.handleExtraTooltip&&this.handleExtraTooltip()}.bind(this));var o=this.popup.renderer.getMouseEventTarget();return s.addListener(o,"mouseout",function(){this.handleExtraTooltip&&this.handleExtraTooltip()}.bind(this)),s.addMouseWheelListener(this.popup.container,(function(e){s.stopEvent(e)})),this.popup},this.insertMatch=function(e,t){if(!this.updating){if(!(e=e||this.popup.getData(this.popup.getRow())))return!1;if(e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(this.completions.filterText){var n,r=this.editor.selection.getAllRanges(),i=r.length,o=0;for(o=0;o=0?e.getHoveredRow():e.getRow(),i=t&&t[n],o=t&&t[0],a=null;return this.handleExtraTooltip&&this.handleExtraTooltip(e,n),this.editor&&e.isOpen?i||!o||-1===o.type.indexOf("command")&&"next"!==o.type?void(!i||i.hideDocTooltip?this.hideDocTooltip():r.prototype.updateDocTooltip.apply(this,arguments)):(this.editor.completers.some((function(e){return e.getDocTooltip&&(a=e.getDocTooltip(o)),a})),(a=a||o).docHTML?this.showDocTooltip(a):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(e){var t=!this.tooltipNode;r.prototype.showDocTooltip.apply(this,arguments);var n=this.tooltipNode,i=this.popup.container.getBoundingClientRect();n.style.width=i.width+"px",n.style.top=i.bottom-1+"px",n.style.left=this.popup.container.style.left,n.style.right=this.popup.container.style.right,t&&($(n).focusin((function(e){e.stopPropagation()})),s.addListener(n,"focus",function(e){var t=n.getElementsByTagName("a");t.length>0?t[0].focus():(this.editor.focus(),s.stopEvent(e))}.bind(this)),s.addListener(n,"keydown",function(e){switch(l.keyCodeToString(e.keyCode)){case"tab":this.editor.focus(),s.stopEvent(e);break;case"up":case"down":case"right":case"left":s.stopEvent(e);break;case"esc":this.handleEscapeKeyPress(this.editor),this.editor.focus(),s.stopEvent(e)}}.bind(this)),s.addListener(n,"mousedown",(function(e){s.stopEvent(e)})),s.addMouseWheelListener(n,(function(e){s.stopEvent(e)})))},this.blurListener=function(e){e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget)||setTimeout(function(e){var t=document.activeElement;t&&this.tooltipNode&&this.tooltipNode.contains(t)||r.prototype.blurListener.apply(this,arguments)}.bind(this,e))}}.call(u.prototype),u.startCommand={name:"startSplAutocomplete",exec:function(e){e.completer||(e.completer=new u),e.completer.autoInsert=!1,e.completer.autoSelect=!1,e.completer.showPopup(e),e.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"},function(){var e={commandArgs:1,command:2,next:3,term:4,search:5};this.setFilter=function(t){var n=this.all;t.length>this.filterText&&0===t.lastIndexOf(this.filterText,0)&&(n=this.filtered),this.filterText=t,n=(n=this.filterCompletions(n,this.filterText)).sort((function(t,n){var r=n.exactMatch-t.exactMatch||n.score-t.score;return 0===r&&t.type&&n.type&&(r=e[t.type]-e[n.type]),0===r&&(r=t.value===n.value?0:t.value=0&&(m<0||f0&&(-1===u&&(h+=10),h+=c),d.push(l),u=l}o.matchMask=d.join(" "),o.exactMatch=h?0:1,o.score=(o.score||0)-h,n.push(o)}}return n}}.call(i.prototype),t.SplAutocomplete=u})),ace.define("ace/ext/spl_tools",["require","exports","module","ace/ext/language_tools","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor"],(function(e,t,n){"use strict";var r=e("./language_tools"),i=e("../autocomplete/util"),o=e("../spl_autocomplete").SplAutocomplete,a=(e("../lib/dom"),function(e){var t=e.editor,n=t.completer&&t.completer.activated;"insertstring"!==e.command.name&&"backspace"!==e.command.name&&"paste"!==e.command.name||function(e){var t,n=e.getCursorPosition(),r=e.session.getLine(n.row);return s.forEach((function(e){!t&&e&&(t=i.retrievePrecedingIdentifier(r,n.column,e))})),t}(t)&&!n&&(t.completer||(t.completer=new o),t.completer.autoInsert=!1,t.completer.showPopup(t))}),s=[/[a-zA-Z_0-9="\s\|\$\-\u00A2-\uFFFF]/];var l=[r.textCompleter,r.keyWordCompleter,r.snippetCompleter],c=e("../editor").Editor;e("../config").defineOptions(c.prototype,"editor",{enableSplLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:l),this.commands.addCommand(o.startCommand),this.commands.on("afterExec",a)):(this.commands.removeCommand(o.startCommand),this.commands.removeListener("afterExec",a))},value:!1},extraTooltipForAutoCompletion:{set:function(e){this.handleExtraTooltip=e&&"function"==typeof e?e:void 0},value:!1}})})),ace.require(["ace/ext/spl_tools"],(function(){}))},37:function(e,t){ace.define("ace/mode/spl_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(e){function t(e){for(var t in e)this[t]=e[t]}this.buildCommandTokens=function(e){var n,r=[],i=0,o=[];if(e.other.forEach(function(e){this.tokens[e]&&r.push(this.tokens[e])}.bind(this)),e.args.length){for(o=[],i=0;is.row||i.row===s.row&&i.column>=s.column)break;"subsearch"===r.type&&((u=r.value.length)>1&&i.row===s.row&&i.column+u-1>=s.column&&(u=s.column-i.column),"["===r.value[0]?c+=u:c-=u)}var h=t.getTabString();return n&&(c+=n),a.stringRepeat(h,c>0?c:0)},r.inherits(s,i),t.SPLBehaviour=s})),ace.define("ace/mode/spl",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/spl_highlight_rules","ace/mode/behaviour/spl"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./spl_highlight_rules").SPLHighlightRules,a=e("./behaviour/spl").SPLBehaviour,s=function(e){this.$highlightRules=new o(e),this.$behaviour=new a};r.inherits(s,i),function(){this.$id="ace/mode/spl"}.call(s.prototype);var l=e("../editor").Editor,c=e("../token_iterator").TokenIterator,u=e("../range").Range,d=e("../lib/lang");(function(){this.reformatSearch=function(){for(var e,t,n=this,r=n.session.getValue(),i=new c(n.session,0,0),o=new u(0,0,0,0),a={row:0,column:0},s=!0,l=[];s||i.stepForward();)if(s=!1,(e=i.getCurrentToken())&&"quoted"===e.type){o.setStart(a.row,a.column),a=i.getCurrentTokenPosition(),o.setEnd(a.row,a.column);var h=l.length>0?l[l.length-1]:void 0;!h||"quoted"!==h.type||'"'!==h.value&&/"$/.test(h.value)?(l.push({value:n.session.getTextRange(o),type:"unquoted"}),l.push({value:e.value,type:"quoted"})):h.value+=n.session.getTextRange(o)+e.value,a.column+=e.value.length}t=n.session.doc.positionToIndex(a,0),l.push({value:r.substring(t),type:"unquoted"}),l.forEach((function(e,t){if("unquoted"===e.type&&e.value){var n=e.value;n=(n=(n=(n=n.replace(/\s*(\||\[)\s*/g," $1 ")).replace(/(\r\n|\r|\n)\s+/g,"$1")).replace(/\[ +\|/g,"[|")).replace(/(\S)?[\t ]+/g,"$1 "),e.value=n}}));for(var p,f,m,g="",b=0,y="",_=0,v=/\||\[|\]|\r?\n|\r/g,M=n.session.doc.getNewLineCharacter(),w=n.session.getTabString(),x=[],A=0;A1&&"["===g[t-1])continue;y=y+M+d.stringRepeat(w,b>0?b:0)+m;break;case"[":b+=1,"|"===g[t+1]&&(m+="|"),y=y+M+d.stringRepeat(w,b>0?b:0)+m;break;case"]":b-=1,y+=m;break;case"\r\n":case"\n":case"\r":if(t>1&&"\n"===m&&"\r"===g[t-1])continue;y=y+m+d.stringRepeat(w,b>0?b+1:1)}x.push(y),_=t+m.length}x.push(g.substr(_))}else x.push(p.value);n.selectAll(),n.session.replace(n.selection.getRange(),x.join("").trim()),n.navigateFileEnd()}}).call(l.prototype),t.Mode=s}))}})},"3WqV":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n("wgY5"))},"3aLm":function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n("ROmd"))},"3ajY":function(e,t,n){(function(e){var r=n("IBsm"),i=n("DjCF"),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l}).call(this,n("aYSr")(e))},"3b4x":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t){e.exports=n("aWzz")},function(e,t){e.exports=n("ERkP")},function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(i.Subscriber)},"3hKq":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=108)}({0:function(e,t){e.exports=n("ERkP")},1:function(e,t){e.exports=n("J45V")},108:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c}));var r=n(0),i=n.n(r),o=n(1),a=n(2),s=n.n(a);function l(){return(l=Object.assign||function(e){for(var t=1;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,u,d,h,p=a(n(0)),f=l(n(1)),m=l(n(2)),g=n(3),b=l(n(39)),y=l(n(40)),_=l(n(41)),v=m.default.div(c||(c=r([""],[""]))),M=m.default.div(u||(u=r(["\n padding: 10px 15px 0px 15px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n"],["\n padding: 10px 15px 0px 15px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n"]))),w=m.default.span(d||(d=r(["\n font-weight: 500;\n font-size: 13px;\n"],["\n font-weight: 500;\n font-size: 13px;\n"]))),x=m.default.span(h||(h=r(["\n width: 20px;\n height: 20px;\n text-align: center;\n &:hover {\n cursor: pointer;\n }\n"],["\n width: 20px;\n height: 20px;\n text-align: center;\n &:hover {\n cursor: pointer;\n }\n"]))),A=function(e){var t=e.label,n=e.open,r=e["data-test"],i=e.children,o=s(p.useState(n),2),a=o[0],l=o[1],c=p.useCallback((function(){l(!a)}),[a]),u=p.useMemo((function(){return a?p.default.createElement(_.default,{screenReaderText:g._("Collapse")}):p.default.createElement(y.default,{screenReaderText:g._("Expand")})}),[a]);return p.default.createElement(v,{"data-test":r,"data-open":a},p.default.createElement(M,{"data-test":"collapsible-group-header",onClick:c},p.default.createElement(w,{"data-test":"collapsible-group-label"},t),p.default.createElement(x,null,u)),p.default.createElement(b.default,{animation:"slideFromTop",open:a},i))};A.propTypes={children:f.default.any,label:f.default.string,open:f.default.bool,"data-test":f.default.string},A.defaultProps={open:!1,"data-test":"collapsible-group"},t.default=A},39:function(e,t){e.exports=n("Ol9m")},40:function(e,t){e.exports=n("QD5z")},41:function(e,t){e.exports=n("R796")}})},"3mq1":function(e,t,n){var r=n("sdc/"),i=n("d32B"),o=n("9tx4");r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},"3nAN":function(e,t,n){"use strict";var r=n("IGGJ");Object.defineProperty(t,"__esModule",{value:!0}),t.snapUnits=t.timeUnits=void 0;var i=r(n("KEM+")),o=n("+GOF");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const s={};s.s=s.sec=s.secs=s.second=s.seconds={abbr:"s",singular:(0,o._)("second"),plural:(0,o._)("seconds")},s.m=s.min=s.mins=s.minute=s.minutes={abbr:"m",singular:(0,o._)("minute"),plural:(0,o._)("minutes")},s.h=s.hr=s.hrs=s.hour=s.hours={abbr:"h",singular:(0,o._)("hour"),plural:(0,o._)("hours")},s.d=s.day=s.days={abbr:"d",singular:(0,o._)("day"),plural:(0,o._)("days")},s.w=s.week=s.weeks={abbr:"w",singular:(0,o._)("week"),plural:(0,o._)("weeks")},s.mon=s.month=s.months={abbr:"mon",singular:(0,o._)("month"),plural:(0,o._)("months")},s.q=s.qtr=s.qtrs=s.quarter=s.quarters={abbr:"q",singular:(0,o._)("quarter"),plural:(0,o._)("quarters")},s.y=s.yr=s.yrs=s.year=s.years={abbr:"y",singular:(0,o._)("year"),plural:(0,o._)("years")};const l=s;t.timeUnits=l;const c=function(e){for(var t=1;tu)return u;return t}(e)),this.arr=e,this.idx=t,this.len=n}return e.prototype[a.iterator]=function(){return this},e.prototype.next=function(){return this.idx0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}))){var g=p.baseId;r+=" var "+h+" = errors; var "+d+" = false; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=!0;var y=a;if(y)for(var _,v=-1,M=y.length-1;v=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var d=function(e){var t=e.error,n=e.displayValue,r=u(e,["error","displayValue"]);return a.a.createElement(l.Styled,c({"data-test":"absolute-value"},r,{__self:undefined,__source:{fileName:"/build/workflow-components/packages/react-time-range/src/Dialog/AbsoluteValue.tsx",lineNumber:14,columnNumber:9}}),t&&Object(s._)("Invalid Value"),!t&&n)};d.propTypes={error:i.a.any,displayValue:i.a.string},t.default=d},"./src/Dialog/AbsoluteValueStyles.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Styled",(function(){return s}));var r=n("styled-components"),i=n.n(r),o=n("./src/themes/index.ts");function a(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n min-height: ",";\n min-width: 100px;\n border-radius: ",";\n background-color: ",";\n font-size: ",";\n margin-top: 5px;\n padding: 0 ",";\n color: ",";\n"]);return a=function(){return e},e}var s=i.a.div(a(),Object(o.variable)("lineHeight"),Object(o.variable)("borderRadius"),Object(o.variable)("AbsoluteValue","backgroundColor"),Object(o.variable)("fontSizeSmall"),Object(o.variable)("spacingQuarter"),Object(o.variable)("textGray"))},"./src/Dialog/Advanced.tsx":function(e,t,n){"use strict";n.r(t);var r=n("react"),i=n.n(r),o=n("lodash"),a=n("@splunk/ui-utils/i18n"),s=n("@splunk/ui-utils/keyboard"),l=n("@splunk/moment"),c=n.n(l),u=n("@splunk/time-range-utils/time"),d=n("@splunk/react-ui/Button"),h=n.n(d),p=n("@splunk/react-ui/ControlGroup"),f=n.n(p),m=n("@splunk/react-ui/Link"),g=n.n(m),b=n("@splunk/react-ui/Message"),y=n.n(b),_=n("@splunk/react-ui/Text"),v=n.n(_),M=n("./src/Dialog/AbsoluteValue.tsx"),w=n("./src/Dialog/Panel.tsx"),x=n("./src/Dialog/Styles.ts"),A=void 0,k="/build/workflow-components/packages/react-time-range/src/Dialog/Advanced.tsx";function L(){return(L=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var C=function e(t){var n=t.earliest,l=t.latest,d=t.onRequestParseEarliest,p=t.onRequestParseLatest,m=t.onChange,b=t.documentationURL,_=t.parseEarliest,T=t.parseLatest,C=t.momentTimeZoneName,D=t.inputTypes,E=O(t,["earliest","latest","onRequestParseEarliest","onRequestParseLatest","onChange","documentationURL","parseEarliest","parseLatest","momentTimeZoneName","inputTypes"]),P=E.open,j=E.panelId,z=S(Object(r.useState)(n),2),N=z[0],Y=z[1],I=S(Object(r.useState)(l),2),H=I[0],R=I[1],B=S(Object(r.useState)(null),2),F=B[0],W=B[1],q=Object(r.useRef)(),U=Object(r.useRef)(),V=Object(r.useRef)();P&&!V.current&&(d(n.trim()?n:"0",j),p(l.trim()?l:"now",j)),Object(r.useEffect)((function(){q.current=n,U.current=l,V.current=P})),q.current&&n!==q.current&&P&&!V.current&&d(n,j),U.current&&l!==U.current&&P&&p(l,j),P&&!V.current&&(N!==n&&Object(u.isValidTime)(N)?d(N,j):d(n,j),H!==l&&Object(u.isValidTime)(H)?p(H,j):p(l,j));var X=function(e){var t="",n=Object(u.parseTimeString)(N),r=Object(u.parseTimeString)(H),i=["iso","epoch"];!n.isFullyParsed&&N||c.a.tz(_.iso,C).valueOf()>c.a.tz(C).valueOf()?t=Object(a._)("The earliest time is invalid."):!r.isFullyParsed&&H?t=Object(a._)("The latest time is invalid."):N&&N===H?t=Object(a._)("You cannot have equivalent times."):(Object(o.includes)(D,"relative")||"realTime"===n.type||Object(o.includes)(i,r.type))&&(Object(o.includes)(D,"relative")||"realTime"===r.type||"epoch"===r.type||"iso"===r.type)?Object(o.includes)(D,"realTime")||"realTime"!==r.type&&"realTime"!==n.type?"realTime"!==r.type&&"realTime"!==n.type||r.type===n.type?Object(o.includes)(D,"dateTime")||!Object(o.includes)(i,r.type)&&!Object(o.includes)(i,n.type)?!Object(o.includes)(D,"allTime")&&Object(u.isEarliestEmpty)(N)&&Object(u.isLatestNow)(H)?t=Object(a._)("All-time searches are not supported."):_.error?t=Object(a._)("Earliest could not be validated."):T.error?t=Object(a._)("Latest could not be validated."):c.a.tz(_.iso,C).valueOf()>=c.a.tz(T.iso,C).valueOf()&&(t=Object(a._)("Earliest must be before latest.")):t=Object(a._)("Epoch and ISO times are not supported."):t=Object(a._)("You must set a rt value for both earliest and latest time."):t=Object(a._)("Real-time searches are not supported."):t=Object(a._)("Relative searches are not supported."),W(t),!t&&m&&m(e,{earliest:N,latest:H})},G=function(e){"enter"===Object(s.keycode)(e)&&X(e)},K=_&&e.parseIsValid(N,_.time,"0"),$=T&&e.parseIsValid(H,T.time,"now"),Q=!!(Object(u.isValidTime)(N)&&_&&null===_.error&&Object(u.isValidTime)(H)&&T&&null===T.error);return i.a.createElement(w.default,L({title:Object(a._)("Advanced")},E,{__self:A,__source:{fileName:k,lineNumber:216,columnNumber:9}}),F&&i.a.createElement(y.a,{type:"error","data-test":"error-message",style:{margin:"0 20px"},__self:A,__source:{fileName:k,lineNumber:218,columnNumber:17}},F),i.a.createElement(x.StyledCGWrapper,{__self:A,__source:{fileName:k,lineNumber:222,columnNumber:13}},i.a.createElement(f.a,{controlsLayout:"none",label:Object(a._)("Earliest:"),labelPosition:"top",style:{flex:1,paddingRight:10},__self:A,__source:{fileName:k,lineNumber:223,columnNumber:17}},i.a.createElement(v.a,{value:N,"data-test":"earliest",onChange:function(e,t){var r=t.value;Y((function(e){var t=r.trim(),i=Object(u.isValidTime)(t);return e.trim()!==t&&i?d(t||"0",j):i||d(n,j),r}))},onKeyDown:Q?G:void 0,__self:A,__source:{fileName:k,lineNumber:229,columnNumber:21}}),i.a.createElement(M.default,{"data-test":"earliest-absolute-value",error:K?_.error:new Error("invalid"),displayValue:K?_.displayValue:void 0,__self:A,__source:{fileName:k,lineNumber:235,columnNumber:21}})),i.a.createElement(f.a,{controlsLayout:"none",label:Object(a._)("Latest:"),labelPosition:"top",style:{flex:1},__self:A,__source:{fileName:k,lineNumber:241,columnNumber:17}},i.a.createElement(v.a,{value:H,"data-test":"latest",onChange:function(e,t){var n=t.value;R((function(e){var t=n.trim(),r=Object(u.isValidTime)(t);return e.trim()!==t&&r?p(t||"now",j):r||p(l,j),n}))},onKeyDown:Q?G:void 0,__self:A,__source:{fileName:k,lineNumber:247,columnNumber:21}}),i.a.createElement(M.default,{"data-test":"latest-absolute-value",error:$?T.error:new Error("invalid"),displayValue:$?T.displayValue:void 0,__self:A,__source:{fileName:k,lineNumber:253,columnNumber:21}}))),i.a.createElement(x.StyledApplyContainer,{__self:A,__source:{fileName:k,lineNumber:260,columnNumber:13}},!!b&&i.a.createElement(g.a,{to:b,style:{marginRight:20},openInNewContext:!0,__self:A,__source:{fileName:k,lineNumber:262,columnNumber:21}},Object(a._)("Documentation")),i.a.createElement(h.a,{disabled:!Q,label:Object(a._)("Apply"),onClick:X,"data-test":"apply",__self:A,__source:{fileName:k,lineNumber:266,columnNumber:17}})))};C.defaultProps={onChange:o.noop,open:!1},C.parseIsValid=function(e,t,n){var r=e.trim()||n;return Object(u.removeRealTime)(r)===t.trim()},t.default=C},"./src/Dialog/DateRange.tsx":function(e,t,n){"use strict";n.r(t);var r=n("prop-types"),i=n.n(r),o=n("react"),a=n.n(o),s=n("@splunk/ui-utils/i18n"),l=n("@splunk/ui-utils/keyboard"),c=n("@splunk/moment"),u=n.n(c),d=n("@splunk/time-range-utils/time"),h=n("@splunk/react-ui/Button"),p=n.n(h),f=n("@splunk/react-ui/ControlGroup"),m=n.n(f),g=n("@splunk/react-ui/Date"),b=n.n(g),y=n("@splunk/react-ui/Message"),_=n.n(y),v=n("@splunk/react-ui/Select"),M=n.n(v),w=n("@splunk/react-ui/StaticContent"),x=n.n(w),A=n("./src/Dialog/Styles.ts"),k=n("./src/Dialog/Panel.tsx"),L=void 0,S="/build/workflow-components/packages/react-time-range/src/Dialog/DateRange.tsx";function T(){return(T=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var E=function(e,t){return(t?e?u.a.tz(e,t):u.a.unix(0):e?u()(e):u.a.unix(0)).format(b.a.momentFormat)},P=function(e,t,n){var r;return r=t?e?u.a.tz(e,t):u.a.tz(void 0,t):e?u()(e):u()(void 0),n&&"between"===n&&e&&Object(d.isWholeDay)(e)&&(r=r.subtract({days:1})),r.format(b.a.momentFormat)},j=function(e){var t=e.earliest,n=e.latest,r=e.locale,i=e.momentTimeZoneName,c=e.onChange,d=D(e,["earliest","latest","locale","momentTimeZoneName","onChange"]),h=function(e,t){return!e||t&&"now"!==t?!t||e&&"0"!==e?"between":"before":"since"}(t,n),f=E(t,i),g=P(n,i,h),y=O(Object(o.useState)(f),2),v=y[0],w=y[1],C=O(Object(o.useState)(g),2),j=C[0],z=C[1],N=O(Object(o.useState)(),2),Y=N[0],I=N[1],H=O(Object(o.useState)(h),2),R=H[0],B=H[1],F=Object(o.useRef)(),W=Object(o.useRef)();Object(o.useEffect)((function(){F.current=t,W.current=n}),[t,n]),F.current!==t&&v!==f&&w(f),W.current!==n&&j!==g&&z(g),F.current===t&&W.current===n||R===h||B(h);var q=function(e,t){var n=t.value;"earliest"===t.name?w(n):z(n)},U=function(e,t,n){var r="between"===R?u.a.tz(n,i).add({days:1}).format(b.a.momentFormat):j,o="";"between"===R&&u.a.tz(t,i).valueOf()>=u.a.tz(r,i).valueOf()&&(o=Object(s._)("Earliest must be before latest.")),I(o),!o&&c&&c(e,{earliest:"before"===R?"0":"".concat(t,"T00:00:00.000"),latest:"since"===R?"now":"".concat(r,"T00:00:00.000")})},V=function(e){if("enter"===Object(l.keycode)(e)){var t=e.target,n=t.name,r=t.value;U(e,"earliest"===n?E(r,i):v,"latest"===n?P(r,i):j)}},X={flex:1};return a.a.createElement(k.default,T({title:Object(s._)("Date Range")},d,{__self:L,__source:{fileName:S,lineNumber:179,columnNumber:9}}),Y&&a.a.createElement(_.a,{type:"error","data-test":"error-message",style:{margin:"0 20px"},__self:L,__source:{fileName:S,lineNumber:181,columnNumber:17}},Y),a.a.createElement(A.StyledCGWrapper,{__self:L,__source:{fileName:S,lineNumber:185,columnNumber:13}},a.a.createElement(m.a,{controlsLayout:"none",label:"",labelPosition:"top",style:{flex:"0 1 auto",marginRight:10},__self:L,__source:{fileName:S,lineNumber:186,columnNumber:17}},a.a.createElement(M.a,{value:R,"data-test":"range-type",onChange:function(e,t){var n=t.value;B(n)},__self:L,__source:{fileName:S,lineNumber:187,columnNumber:21}},a.a.createElement(M.a.Option,{label:Object(s._)("Between"),value:"between",__self:L,__source:{fileName:S,lineNumber:188,columnNumber:25}}),a.a.createElement(M.a.Option,{label:Object(s._)("Before"),value:"before",__self:L,__source:{fileName:S,lineNumber:189,columnNumber:25}}),a.a.createElement(M.a.Option,{label:Object(s._)("Since"),value:"since",__self:L,__source:{fileName:S,lineNumber:190,columnNumber:25}}))),a.a.createElement(m.a,{controlsLayout:"none",label:"",labelPosition:"top",help:"00:00:00",style:X,__self:L,__source:{fileName:S,lineNumber:193,columnNumber:17}},a.a.createElement(b.a,{name:"before"!==R?"earliest":"latest",value:"before"!==R?v:j,onChange:q,onKeyDown:V,inline:!1,locale:r,style:X,"data-test":"before"!==R?"earliest-date":"latest-date",__self:L,__source:{fileName:S,lineNumber:200,columnNumber:21}})),"before"!==R&&a.a.createElement(m.a,{controlsLayout:"none",label:"",labelPosition:"top",__self:L,__source:{fileName:S,lineNumber:212,columnNumber:21}},a.a.createElement(x.a,{style:{marginLeft:"between"===R?0:10},__self:L,__source:{fileName:S,lineNumber:213,columnNumber:25}},"between"===R?Object(s._)("and"):Object(s._)("until now"))),"between"===R&&a.a.createElement(m.a,{controlsLayout:"none",label:"",labelPosition:"top",help:"24:00:00",style:X,__self:L,__source:{fileName:S,lineNumber:219,columnNumber:21}},a.a.createElement(b.a,{name:"latest",value:j,onChange:q,inline:!1,locale:r,onKeyDown:V,"data-test":"latest-date",__self:L,__source:{fileName:S,lineNumber:226,columnNumber:25}}))),a.a.createElement(A.StyledApplyContainer,{__self:L,__source:{fileName:S,lineNumber:238,columnNumber:13}},a.a.createElement(p.a,{label:Object(s._)("Apply"),"data-test":"apply",onClick:function(e){U(e,v,j)},__self:L,__source:{fileName:S,lineNumber:239,columnNumber:17}})))};j.propTypes={earliest:i.a.string.isRequired,latest:i.a.string.isRequired,locale:i.a.string,onChange:i.a.func,momentTimeZoneName:i.a.string,placeholder:i.a.string},j.defaultProps={placeholder:"Select..."},t.default=j},"./src/Dialog/DateTimeRange.tsx":function(e,t,n){"use strict";n.r(t);var r=n("react"),i=n.n(r),o=n("@splunk/ui-utils/i18n"),a=n("@splunk/ui-utils/keyboard"),s=n("@splunk/moment"),l=n.n(s),c=n("@splunk/react-ui/Button"),u=n.n(c),d=n("@splunk/react-ui/ControlGroup"),h=n.n(d),p=n("@splunk/react-ui/Date"),f=n.n(p),m=n("@splunk/react-ui/Message"),g=n.n(m),b=n("@splunk/react-ui/Select"),y=n.n(b),_=n("@splunk/react-ui/StaticContent"),v=n.n(_),M=n("@splunk/react-ui/Text"),w=n.n(M),x=n("./src/Dialog/Styles.ts"),A=n("./src/Dialog/Panel.tsx"),k=void 0,L="/build/workflow-components/packages/react-time-range/src/Dialog/DateTimeRange.tsx";function S(){return(S=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var D=function e(t){var n=t.earliest,s=t.latest,c=t.onChange,d=t.momentTimeZoneName,p=t.locale,m=C(t,["earliest","latest","onChange","momentTimeZoneName","locale"]),b=function(t,n){var r=n?l.a.tz(t,n):l()(t),i=t?r:l.a.unix(0);return{date:i.format(f.a.momentFormat),time:i.format(e.timeFormat)}},_=function(t,n){var r=n?l.a.tz(t||void 0,n):l()(t||void 0);return{date:r.format(f.a.momentFormat),time:r.format(e.timeFormat)}},M=b(n,d),O=_(s,d),D=e.inferType(n,s),E=T(Object(r.useState)(M.date),2),P=E[0],j=E[1],z=T(Object(r.useState)(M.time),2),N=z[0],Y=z[1],I=T(Object(r.useState)(O.date),2),H=I[0],R=I[1],B=T(Object(r.useState)(O.time),2),F=B[0],W=B[1],q=T(Object(r.useState)(D),2),U=q[0],V=q[1],X=T(Object(r.useState)(""),2),G=X[0],K=X[1],$=Object(r.useRef)(),Q=Object(r.useRef)();Object(r.useEffect)((function(){$.current=n,Q.current=s}),[n,s]),$.current!==n&&M.date!==P&&j(M.date),Q.current!==s&&O.date!==H&&R(O.date),D===U||$.current===n&&Q.current===s||V(D);var J=function(t,n,r,i,a){var s="",u="before"===U?"0":"".concat(r,"T").concat(n),h="since"===U?"now":"".concat(a,"T").concat(i);"before"===U||e.validateTime(n)&&l.a.tz(u,d).isValid()?"since"===U||e.validateTime(i)&&l.a.tz(h,d).isValid()?"between"===U&&l.a.tz(u,d).valueOf()>=l.a.tz(h,d).valueOf()&&(s=Object(o._)("Earliest must be before latest.")):s=Object(o._)("Latest time is invalid."):s=Object(o._)("Earliest time is invalid."),K(s),!s&&c&&c(t,{earliest:u,latest:h})},Z=function(e){"enter"===Object(a.keycode)(e)&&J(e,N,P,F,H)},ee=function(e){if("enter"===Object(a.keycode)(e)){var t=e.target,n=t.value,r=t.name,i="earliestDate"===r?b(n).date:P,o="latestDate"===r?_(n).date:H;J(e,N,i,F,o)}},te={flex:"1 1",marginRight:10};return i.a.createElement(A.default,S({title:Object(o._)("Date & Time Range")},m,{__self:k,__source:{fileName:L,lineNumber:203,columnNumber:9}}),G&&i.a.createElement(g.a,{type:"error","data-test":"error-message",style:{margin:"0 20px"},__self:k,__source:{fileName:L,lineNumber:205,columnNumber:17}},G),i.a.createElement(x.StyledCGWrapper,{__self:k,__source:{fileName:L,lineNumber:209,columnNumber:13}},i.a.createElement(h.a,{controlsLayout:"none",label:"","data-role":"rangetype",labelPosition:"top",style:{flex:"0 1 auto",marginRight:10},__self:k,__source:{fileName:L,lineNumber:210,columnNumber:17}},i.a.createElement(y.a,{value:U,"data-test":"range-type",onChange:function(e,t){var n=t.value;V(n)},__self:k,__source:{fileName:L,lineNumber:217,columnNumber:21}},i.a.createElement(y.a.Option,{label:Object(o._)("Between"),value:"between",__self:k,__source:{fileName:L,lineNumber:218,columnNumber:25}}),i.a.createElement(y.a.Option,{label:Object(o._)("Before"),value:"before",__self:k,__source:{fileName:L,lineNumber:219,columnNumber:25}}),i.a.createElement(y.a.Option,{label:Object(o._)("Since"),value:"since",__self:k,__source:{fileName:L,lineNumber:220,columnNumber:25}}))),"before"!==U&&i.a.createElement(h.a,{controlsLayout:"none",label:"",labelPosition:"top",style:te,__self:k,__source:{fileName:L,lineNumber:224,columnNumber:21}},i.a.createElement(f.a,{name:"earliestDate",value:P,onChange:function(e,t){var n=t.value;j(n)},onKeyDown:ee,inline:!1,locale:p,"data-test":"earliest-date",__self:k,__source:{fileName:L,lineNumber:230,columnNumber:25}})),"before"!==U&&i.a.createElement(h.a,{controlsLayout:"none",label:"",labelPosition:"top",help:"HH:MM:SS.SSS",style:{flex:1},__self:k,__source:{fileName:L,lineNumber:242,columnNumber:21}},i.a.createElement(w.a,{value:N,onChange:function(e,t){var n=t.value;Y(n)},onKeyDown:Z,"data-test":"earliest-time",__self:k,__source:{fileName:L,lineNumber:249,columnNumber:25}})),"before"!==U&&i.a.createElement(h.a,{controlsLayout:"none",label:"",labelPosition:"top",inline:!1,__self:k,__source:{fileName:L,lineNumber:258,columnNumber:21}},i.a.createElement(v.a,{style:{marginLeft:"between"===U?0:10},__self:k,__source:{fileName:L,lineNumber:259,columnNumber:25}},"between"===U?Object(o._)("and"):Object(o._)("until now"))),"since"!==U&&i.a.createElement(h.a,{controlsLayout:"none",label:"",labelPosition:"top",style:te,__self:k,__source:{fileName:L,lineNumber:265,columnNumber:21}},i.a.createElement(f.a,{name:"latestDate",value:H,onChange:function(e,t){var n=t.value;R(n)},onKeyDown:ee,inline:!1,locale:p,"data-test":"latest-date",__self:k,__source:{fileName:L,lineNumber:271,columnNumber:25}})),"since"!==U&&i.a.createElement(h.a,{controlsLayout:"none",label:"",labelPosition:"top",help:Object(o._)("HH:MM:SS.SSS"),style:{flex:1},__self:k,__source:{fileName:L,lineNumber:283,columnNumber:21}},i.a.createElement(w.a,{value:F,onChange:function(e,t){var n=t.value;W(n)},onKeyDown:Z,"data-test":"latest-time",__self:k,__source:{fileName:L,lineNumber:290,columnNumber:25}}))),i.a.createElement(x.StyledApplyContainer,{__self:k,__source:{fileName:L,lineNumber:299,columnNumber:13}},i.a.createElement(u.a,{label:Object(o._)("Apply"),"data-test":"apply",onClick:function(e){J(e,N,P,F,H)},__self:k,__source:{fileName:L,lineNumber:300,columnNumber:17}})))};D.defaultProps={placeholder:"Select..."},D.timeFormat="HH:mm:ss.SSS",D.validateTime=function(e){return e.match(/^\d\d:\d\d(:\d\d|:\d\d\.\d?\d?\d?)?$/)},D.inferType=function(e,t){return!e||t&&"now"!==t?!t||e&&"0"!==e?"between":"before":"since"},t.default=D},"./src/Dialog/Dialog.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"AdvancedInputType",(function(){return O})),n.d(t,"FormInputType",(function(){return C})),n.d(t,"possibleFormInputTypes",(function(){return P})),n.d(t,"possibleAdvancedInputTypes",(function(){return j})),n.d(t,"findPanelType",(function(){return z})),n.d(t,"convertToISO",(function(){return N}));var r=n("prop-types"),i=n.n(r),o=n("react"),a=n.n(o),s=n("lodash"),l=n("@splunk/moment"),c=n.n(l),u=n("@splunk/time-range-utils/time"),d=n("@splunk/splunk-utils/config"),h=n("@splunk/react-ui/Accordion"),p=n.n(h),f=n("./src/Dialog/Advanced.tsx"),m=n("./src/Dialog/DateRange.tsx"),g=n("./src/Dialog/DateTimeRange.tsx"),b=n("./src/Dialog/Presets.tsx"),y=n("./src/Dialog/RealTime.tsx"),_=n("./src/Dialog/Relative.tsx"),v=n("./src/Dialog/stylesAndData.ts"),M=void 0,w="/build/workflow-components/packages/react-time-range/src/Dialog/Dialog.tsx";function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2])||arguments[2];return Object(u.isISO)(e)?e:n&&Object(u.isEarliestEmpty)(e)||!n&&Object(u.isLatestNow)(e)?"":t&&t.iso?t.iso:""};function Y(e){if(e){var t=e.iso&&Object(u.isISO)(e.iso)?Object(u.removeISOTimezone)(e.iso):void 0;return{error:e.error||t?e.error:new Error("The iso time could not be converted to a JavaScript Date."),iso:t,displayValue:t?c()(t).locale(E).format("LLL"):void 0,time:e.time}}}var I=function(e){var t=e.onRequestParseEarliest,n=e.onRequestParseLatest,r=e.earliest,i=e.latest,l=e.momentTimeZone,d=e.advancedInputTypes,h=e.documentationURL,x=e.formInputTypes,k=e.onChange,T=e.presets,O=e.style,P=S(Object(o.useState)(z(e)),2),j=P[0],I=P[1],H=Object(o.useRef)(),R=Object(o.useRef)(),B=Object(o.useRef)();Object(o.useEffect)((function(){H.current=l}),[l]),Object(o.useEffect)((function(){R.current=r}),[r]),Object(o.useEffect)((function(){B.current=i}),[i]),H.current&&H.current!==l&&c.a.tz.add(c.a.tz.pack(l)),Object(o.useEffect)((function(){if(!t||!n)throw new Error("onRequestParseEarliest and onRequestParseLatest props are required\n for react-time-range");(Object(u.isEpoch)(r)||"presets"===j)&&t(r),(Object(u.isEpoch)(i)||"presets"===j)&&n(i)}),[t,n,r,i]),r!==R.current&&Object(u.isEpoch)(r)&&t(r),i!==B.current&&Object(u.isEpoch)(i)&&n(i);var F=function(e,n){if(n===j){var r=Object(u.removeRealTime)(e||"0");return t(r,n)}},W=function(e,t){if(t===j){var r=Object(u.removeRealTime)(e||"now");return n(r,t)}},q=l?l.name:"",U={earliest:r,latest:i,onChange:k},V=Y(e.parseEarliest),X=Y(e.parseLatest),G={onRequestParseEarliest:F,onRequestParseLatest:W,parseEarliest:V,parseLatest:X},K={earliest:N(r,V,!0),latest:N(i,X,!1),onChange:k,locale:E},$=[];return T&&T.length&&$.push(a.a.createElement(b.default,L({panelId:"presets",key:"presets",presets:T,onRequestParseLatest:W,onRequestParseEarliest:F},U,{__self:M,__source:{fileName:w,lineNumber:419,columnNumber:13}}))),Object(s.includes)(x,C.relative)&&$.push(a.a.createElement(_.default,L({panelId:"relative",key:"relative"},U,G,{__self:M,__source:{fileName:w,lineNumber:431,columnNumber:13}}))),Object(s.includes)(x,C.realTime)&&$.push(a.a.createElement(y.default,L({panelId:"realTime",key:"realTime"},U,G,{__self:M,__source:{fileName:w,lineNumber:436,columnNumber:13}}))),Object(s.includes)(x,C.date)&&$.push(a.a.createElement(m.default,L({panelId:"date",key:"date",momentTimeZoneName:q},K,{__self:M,__source:{fileName:w,lineNumber:441,columnNumber:13}}))),Object(s.includes)(x,C.dateTime)&&$.push(a.a.createElement(g.default,L({panelId:"dateTime",key:"dateTime",momentTimeZoneName:q},K,{__self:M,__source:{fileName:w,lineNumber:451,columnNumber:13}}))),d.length&&$.push(a.a.createElement(f.default,L({panelId:"advanced",key:"advanced",inputTypes:d,documentationURL:h,momentTimeZoneName:q},U,G,{__self:M,__source:{fileName:w,lineNumber:461,columnNumber:13}}))),a.a.createElement(p.a,L({openPanelId:j,onChange:function(e,t){var n=t.panelId;I(D[n])},"data-test":"time-range-dialog","data-test-earliest":r,"data-test-latest":i},Object(v.default)(e),{style:A({minWidth:680},O),__self:M,__source:{fileName:w,lineNumber:474,columnNumber:9}}),$)};I.propTypes={advancedInputTypes:i.a.arrayOf(i.a.oneOf(["relative","realTime","allTime","dateTime"])),describedBy:i.a.string,documentationURL:i.a.string,earliest:i.a.string.isRequired,formInputTypes:i.a.arrayOf(i.a.oneOf(["relative","realTime","date","dateTime"])),inline:i.a.bool,latest:i.a.string.isRequired,onChange:i.a.func,onRequestParseEarliest:i.a.func,onRequestParseLatest:i.a.func,placeholder:i.a.string,presets:i.a.arrayOf(i.a.shape({label:i.a.string.isRequired,earliest:i.a.string.isRequired,latest:i.a.string})),style:i.a.object,momentTimeZone:i.a.shape({name:i.a.string.isRequired})},I.defaultProps={advancedInputTypes:j,formInputTypes:P,placeholder:"Select...",onChange:s.noop},t.default=I},"./src/Dialog/Panel.tsx":function(e,t,n){"use strict";n.r(t);var r=n("prop-types"),i=n.n(r),o=n("react"),a=n.n(o),s=n("@splunk/react-ui/Accordion"),l=n.n(s),c=n("./src/Dialog/stylesAndData.ts");function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var h=new Set(["description","elementRef","panelId","title","open","onRequestOpen","onRequestClose"]),p=function(e){var t=e.children,n=d(e,["children"]);return a.a.createElement(l.a.Panel,u({},Object(c.default)(n,h),{__self:undefined,__source:{fileName:"/build/workflow-components/packages/react-time-range/src/Dialog/Panel.tsx",lineNumber:40,columnNumber:5}}),t)};p.propTypes={title:i.a.string.isRequired,panelId:i.a.string.isRequired,children:i.a.any,open:i.a.bool},t.default=p},"./src/Dialog/PresetLink.tsx":function(e,t,n){"use strict";n.r(t);var r=n("prop-types"),i=n.n(r),o=n("react"),a=n.n(o),s=n("@splunk/react-ui/Link"),l=n.n(s),c=n("./src/Dialog/stylesAndData.ts");function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function h(e){var t=e.children,n=e.earliest,r=e.latest,i=e.label,o=e.onClick,s=d(e,["children","earliest","latest","label","onClick"]);return a.a.createElement(l.a,u({style:{display:"block"},label:i,onClick:function(e){o(e,{earliest:n,latest:r})}},Object(c.default)(s),{__self:this,__source:{fileName:"/build/workflow-components/packages/react-time-range/src/Dialog/PresetLink.tsx",lineNumber:23,columnNumber:9}}),t)}h.propTypes={children:i.a.string.isRequired,earliest:i.a.string.isRequired,latest:i.a.string.isRequired,label:i.a.string,onClick:i.a.func.isRequired},t.default=h},"./src/Dialog/Presets.tsx":function(e,t,n){"use strict";n.r(t);var r=n("prop-types"),i=n.n(r),o=n("react"),a=n.n(o),s=n("@splunk/ui-utils/i18n"),l=n("@splunk/time-range-utils/time"),c=n("./src/Dialog/PresetLink.tsx"),u=n("./src/Dialog/PresetsStyles.ts"),d=n("./src/Dialog/Panel.tsx"),h="/build/workflow-components/packages/react-time-range/src/Dialog/Presets.tsx";function p(){return(p=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var E=function(e){var t=e.earliest,n=e.open,r=e.onChange,i=e.onRequestParseEarliest,l=e.parseEarliest,d=e.panelId,p=D(e,["earliest","open","onChange","onRequestParseEarliest","parseEarliest","panelId"]),m=Object(s.getFromNumber)(t),b=Object(s.getFromUnit)(t),_=O(Object(o.useState)(m),2),M=_[0],C=_[1],E=O(Object(o.useState)(b),2),P=E[0],j=E[1],z=O(Object(o.useState)(),2),N=z[0],Y=z[1],I=Object(o.useRef)(),H=Object(o.useRef)();(Object(o.useEffect)((function(){H.current=t}),[t]),Object(o.useEffect)((function(){I.current=n}),[n]),!n||!H.current||t===H.current&&I.current)||(N&&Y(!1),(!I.current||m!==M||b!==P)&&i(Object(s.getRealTimeEarliest)(M,P),d));var R=function(e){if(isFinite(M)){var t=Object(s.getRealTimeEarliest)(M,P);r(e,{earliest:t,latest:"rt"})}else Y(!0)},B=Object(s.removeRealTime)(Object(s.getRealTimeEarliest)(M,P)),F=l&&B===l.time;return a.a.createElement(k.default,T({title:Object(c._)("Real-time"),panelId:d,open:n},p,{__self:L,__source:{fileName:S,lineNumber:110,columnNumber:9}}),N&&a.a.createElement(A.StyledError,{__self:L,__source:{fileName:S,lineNumber:112,columnNumber:17}},a.a.createElement(g.a,{type:"error","data-test":"error-message",__self:L,__source:{fileName:S,lineNumber:113,columnNumber:21}},Object(c._)("A number is required for earliest."))),a.a.createElement(A.StyledCGWrapper,{__self:L,__source:{fileName:S,lineNumber:118,columnNumber:13}},a.a.createElement(f.a,{controlsLayout:"none",label:Object(c._)("Earliest:"),labelPosition:"top",style:{paddingRight:20,flex:1},__self:L,__source:{fileName:S,lineNumber:119,columnNumber:17}},a.a.createElement(A.StyledFromControl,{__self:L,__source:{fileName:S,lineNumber:125,columnNumber:21}},a.a.createElement(y.a,{onChange:function(e,t){var n=t.value;C(n),i(Object(s.getRealTimeEarliest)(n,P),d)},onKeyDown:function(e){"enter"===Object(u.keycode)(e)&&R(e)},min:1,roundTo:0,value:M,style:{flex:1},append:!0,"data-test":"earliest-number",__self:L,__source:{fileName:S,lineNumber:126,columnNumber:25}}),a.a.createElement(v.a,{value:P,onChange:function(e,t){var n=t.value;j(n),i(Object(s.getRealTimeEarliest)(M,n),d)},style:{flex:"0 1 auto"},prepend:!0,"data-test":"earliest-unit",__self:L,__source:{fileName:S,lineNumber:136,columnNumber:25}},a.a.createElement(v.a.Option,{label:Object(c._)("Seconds Ago"),value:"s",__self:L,__source:{fileName:S,lineNumber:143,columnNumber:29}}),a.a.createElement(v.a.Option,{label:Object(c._)("Minutes Ago"),value:"m",__self:L,__source:{fileName:S,lineNumber:144,columnNumber:29}}),a.a.createElement(v.a.Option,{label:Object(c._)("Hours Ago"),value:"h",__self:L,__source:{fileName:S,lineNumber:145,columnNumber:29}}),a.a.createElement(v.a.Option,{label:Object(c._)("Days Ago"),value:"d",__self:L,__source:{fileName:S,lineNumber:146,columnNumber:29}}),a.a.createElement(v.a.Option,{label:Object(c._)("Weeks Ago"),value:"w",__self:L,__source:{fileName:S,lineNumber:147,columnNumber:29}}),a.a.createElement(v.a.Option,{label:Object(c._)("Months Ago"),value:"mon",__self:L,__source:{fileName:S,lineNumber:148,columnNumber:29}}),a.a.createElement(v.a.Option,{label:Object(c._)("Quarters Ago"),value:"q",__self:L,__source:{fileName:S,lineNumber:149,columnNumber:29}}),a.a.createElement(v.a.Option,{label:Object(c._)("Years Ago"),value:"y",__self:L,__source:{fileName:S,lineNumber:150,columnNumber:29}}))),a.a.createElement(x.default,{error:F?l.error:void 0,displayValue:F?l.displayValue:void 0,__self:L,__source:{fileName:S,lineNumber:153,columnNumber:21}})),a.a.createElement(f.a,{controlsLayout:"none",label:Object(c._)("Latest:"),labelPosition:"top",style:{flex:1},__self:L,__source:{fileName:S,lineNumber:158,columnNumber:17}},a.a.createElement(w.a,{value:"now","data-test":"now",disabled:!0,__self:L,__source:{fileName:S,lineNumber:164,columnNumber:21}}))),a.a.createElement(A.StyledApplyContainer,{__self:L,__source:{fileName:S,lineNumber:167,columnNumber:13}},a.a.createElement(h.a,{label:Object(c._)("Apply"),"data-test":"apply",disabled:!F||!(!l||!l.error),onClick:R,__self:L,__source:{fileName:S,lineNumber:168,columnNumber:17}})))};E.propTypes={earliest:i.a.string.isRequired,latest:i.a.string.isRequired,onChange:i.a.func},E.defaultProps={onChange:l.noop,open:!1},t.default=E},"./src/Dialog/Relative.tsx":function(e,t,n){"use strict";n.r(t);var r=n("prop-types"),i=n.n(r),o=n("react"),a=n.n(o),s=n("lodash"),l=n("@splunk/react-ui/Button"),c=n.n(l),u=n("@splunk/react-ui/ControlGroup"),d=n.n(u),h=n("@splunk/react-ui/Message"),p=n.n(h),f=n("@splunk/react-ui/Number"),m=n.n(f),g=n("@splunk/react-ui/Select"),b=n.n(g),y=n("@splunk/react-ui/RadioList"),_=n.n(y),v=n("@splunk/time-range-utils/time"),M=n("@splunk/ui-utils/format"),w=n("@splunk/ui-utils/i18n"),x=n("@splunk/ui-utils/keyboard"),A=n("./src/Dialog/AbsoluteValue.tsx"),k=n("./src/Dialog/Styles.ts"),L=n("./src/Dialog/Panel.tsx"),S=void 0,T="/build/workflow-components/packages/react-time-range/src/Dialog/Relative.tsx";function O(){return(O=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var P=function(e){var t=e.earliest,n=e.latest,r=e.open,i=e.onChange,l=e.onRequestParseEarliest,u=e.onRequestParseLatest,h=e.parseEarliest,f=e.parseLatest,g=e.panelId,y=E(e,["earliest","latest","open","onChange","onRequestParseEarliest","onRequestParseLatest","parseEarliest","parseLatest","panelId"]),D=Object(v.getFromNumber)(t),P=Object(v.getFromSnap)(t),j=Object(v.getFromUnit)(t),z=Object(v.getToSnap)(n),N=C(Object(o.useState)(D),2),Y=N[0],I=N[1],H=C(Object(o.useState)(j),2),R=H[0],B=H[1],F=C(Object(o.useState)(P),2),W=F[0],q=F[1],U=C(Object(o.useState)(z),2),V=U[0],X=U[1],G=C(Object(o.useState)(!1),2),K=G[0],$=G[1],Q=Object(o.useRef)(),J=Object(o.useRef)(),Z=Object(o.useRef)();(Object(o.useEffect)((function(){Q.current=r}),[r]),Object(o.useEffect)((function(){J.current=t,Z.current=n}),[t,n]),r&&!Q.current&&(l(Object(v.getRelativeEarliest)(Y,W,R),g),u(Object(v.getRelativeLatest)(R,V),g)),!r||!J.current&&!Z.current||J.current===t&&Z.current===n)||(K&&$(!1),(!Q.current||Y!==D||W!==P||R!==j)&&l(Object(v.getRelativeEarliest)(Y,W,R),g),(z!==V||!Q.current)&&u(Object(v.getRelativeLatest)(R,V),g));var ee=function(e){if(Object(s.isFinite)(Y)){var t=Object(v.getRelativeEarliest)(Y,W,R),n=Object(v.getRelativeLatest)(R,V);i(e,{earliest:t,latest:n})}else $(!0)},te=Object(v.getRelativeEarliest)(Y,W,R),ne=Object(v.getRelativeLatest)(R,V),re=h&&te===h.time,ie=f&&ne===f.time,oe=Object(v.getUnitLabel)(R);return a.a.createElement(L.default,O({title:Object(w._)("Relative"),panelId:g,open:r},y,{__self:S,__source:{fileName:T,lineNumber:147,columnNumber:9}}),K&&a.a.createElement(k.StyledError,{__self:S,__source:{fileName:T,lineNumber:149,columnNumber:17}},a.a.createElement(p.a,{type:"error","data-test":"error-message",__self:S,__source:{fileName:T,lineNumber:150,columnNumber:21}},Object(w._)("A number is required for earliest."))),a.a.createElement(k.StyledCGWrapper,{__self:S,__source:{fileName:T,lineNumber:156,columnNumber:13}},a.a.createElement(d.a,{controlsLayout:"none",label:Object(w._)("Earliest:"),labelPosition:"top",style:{paddingRight:20,flex:1},__self:S,__source:{fileName:T,lineNumber:157,columnNumber:17}},a.a.createElement(k.StyledFromControl,{__self:S,__source:{fileName:T,lineNumber:163,columnNumber:21}},a.a.createElement(m.a,{style:{flex:1},onChange:function(e,t){var n=t.value;I(n),l(Object(v.getRelativeEarliest)(n,W,R),g)},onKeyDown:function(e){"enter"===Object(x.keycode)(e)&&ee(e)},min:0,roundTo:0,value:Y,append:!0,"data-test":"earliest-number",__self:S,__source:{fileName:T,lineNumber:164,columnNumber:25}}),a.a.createElement(b.a,{value:R,onChange:function(e,t){var n=t.value;B(n),l(Object(v.getRelativeEarliest)(Y,W,n),g),u(Object(v.getRelativeLatest)(n,V),g)},prepend:!0,style:{flex:"0 1 auto"},"data-test":"earliest-unit",__self:S,__source:{fileName:T,lineNumber:174,columnNumber:25}},a.a.createElement(b.a.Option,{label:Object(w._)("Seconds Ago"),value:"s",__self:S,__source:{fileName:T,lineNumber:181,columnNumber:29}}),a.a.createElement(b.a.Option,{label:Object(w._)("Minutes Ago"),value:"m",__self:S,__source:{fileName:T,lineNumber:182,columnNumber:29}}),a.a.createElement(b.a.Option,{label:Object(w._)("Hours Ago"),value:"h",__self:S,__source:{fileName:T,lineNumber:183,columnNumber:29}}),a.a.createElement(b.a.Option,{label:Object(w._)("Days Ago"),value:"d",__self:S,__source:{fileName:T,lineNumber:184,columnNumber:29}}),a.a.createElement(b.a.Option,{label:Object(w._)("Weeks Ago"),value:"w",__self:S,__source:{fileName:T,lineNumber:185,columnNumber:29}}),a.a.createElement(b.a.Option,{label:Object(w._)("Months Ago"),value:"mon",__self:S,__source:{fileName:T,lineNumber:186,columnNumber:29}}),a.a.createElement(b.a.Option,{label:Object(w._)("Quarters Ago"),value:"q",__self:S,__source:{fileName:T,lineNumber:187,columnNumber:29}}),a.a.createElement(b.a.Option,{label:Object(w._)("Years Ago"),value:"y",__self:S,__source:{fileName:T,lineNumber:188,columnNumber:29}}))),a.a.createElement(_.a,{value:W,onChange:function(e,t){var n=t.value;q(n),l(Object(v.getRelativeEarliest)(Y,n,R),g)},__self:S,__source:{fileName:T,lineNumber:192,columnNumber:21}},a.a.createElement(_.a.Option,{"data-test":"no-snap-to",value:!1,__self:S,__source:{fileName:T,lineNumber:193,columnNumber:25}},Object(w._)("No snap-to")),a.a.createElement(_.a.Option,{"data-test":"earliest-begin",value:!0,__self:S,__source:{fileName:T,lineNumber:196,columnNumber:25}},Object(M.sprintf)(Object(w._)("Beginning of %(timeUnit)s"),{timeUnit:oe}))),a.a.createElement(A.default,{"data-test":"earliest-absolute-value",error:re?h.error:void 0,displayValue:re?h.displayValue:void 0,__self:S,__source:{fileName:T,lineNumber:200,columnNumber:21}})),a.a.createElement(d.a,{controlsLayout:"none",label:Object(w._)("Latest:"),labelPosition:"top",style:{flex:1},__self:S,__source:{fileName:T,lineNumber:206,columnNumber:17}},a.a.createElement(_.a,{value:V,onChange:function(e,t){var n=t.value;X(n),u(Object(v.getRelativeLatest)(R,n),g)},__self:S,__source:{fileName:T,lineNumber:212,columnNumber:21}},a.a.createElement(_.a.Option,{"data-test":"now",value:!1,__self:S,__source:{fileName:T,lineNumber:213,columnNumber:25}},Object(w._)("Now")),a.a.createElement(_.a.Option,{"data-test":"latest-begin",value:!0,__self:S,__source:{fileName:T,lineNumber:216,columnNumber:25}},Object(M.sprintf)(Object(w._)("Beginning of current %(timeUnit)s"),{timeUnit:oe}))),a.a.createElement(A.default,{"data-test":"latest-absolute-value",error:ie?f.error:void 0,displayValue:ie?f.displayValue:void 0,__self:S,__source:{fileName:T,lineNumber:220,columnNumber:21}}))),a.a.createElement(k.StyledApplyContainer,{__self:S,__source:{fileName:T,lineNumber:227,columnNumber:13}},a.a.createElement(c.a,{label:Object(w._)("Apply"),disabled:!(re&&ie&&(!h||!h.error)&&(!h||!f.error)),"data-test":"apply",onClick:ee,__self:S,__source:{fileName:T,lineNumber:228,columnNumber:17}})))};P.propTypes={earliest:i.a.string.isRequired,latest:i.a.string.isRequired,onChange:i.a.func},P.defaultProps={onChange:s.noop,open:!1},t.default=P},"./src/Dialog/Styles.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"StyledError",(function(){return d})),n.d(t,"StyledCGWrapper",(function(){return h})),n.d(t,"StyledApplyContainer",(function(){return p})),n.d(t,"StyledFromControl",(function(){return f}));var r=n("styled-components"),i=n.n(r),o=n("./src/themes/index.ts");function a(){var e=u(["\n display: flex;\n margin-bottom: ",";\n"]);return a=function(){return e},e}function s(){var e=u(["\n text-align: right;\n padding: 0 "," ",";\n\n & > button {\n min-width: 100px;\n }\n"]);return s=function(){return e},e}function l(){var e=u(["\n display: flex;\n padding: "," "," 0;\n\n "," + & {\n padding-top: 0;\n }\n"]);return l=function(){return e},e}function c(){var e=u(["\n padding: 0 ",";\n"]);return c=function(){return e},e}function u(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=i.a.div(c(),Object(o.variable)("spacing")),h=i.a.div(l(),Object(o.variable)("spacingHalf"),Object(o.variable)("spacing"),d),p=i.a.div(s(),Object(o.variable)("spacing"),Object(o.variable)("spacing")),f=i.a.div(a(),Object(o.variable)("spacingHalf"))},"./src/Dialog/index.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/Dialog/Dialog.tsx");n.d(t,"default",(function(){return r.default})),n.d(t,"AdvancedInputType",(function(){return r.AdvancedInputType})),n.d(t,"FormInputType",(function(){return r.FormInputType})),n.d(t,"possibleFormInputTypes",(function(){return r.possibleFormInputTypes})),n.d(t,"possibleAdvancedInputTypes",(function(){return r.possibleAdvancedInputTypes})),n.d(t,"findPanelType",(function(){return r.findPanelType})),n.d(t,"convertToISO",(function(){return r.convertToISO}))},"./src/Dialog/stylesAndData.ts":function(e,t,n){"use strict";n.r(t);var r=n("lodash");t.default=function(e,t){return Object(r.pickBy)(e,function(e){return function(t,n){switch(n){case"style":case"className":return!0;default:return!(!e||!e.has(n))||n.startsWith("data-")}}}(t))}},"./src/Dropdown/Dropdown.tsx":function(e,t,n){"use strict";n.r(t);var r,i,o=n("prop-types"),a=n.n(o),s=n("react"),l=n.n(s),c=n("lodash"),u=n("@splunk/time-range-utils/time"),d=n("@splunk/react-ui/Button"),h=n.n(d),p=n("@splunk/react-ui/Dropdown"),f=n.n(p),m=n("./src/Dialog/index.ts"),g=n("./src/Dialog/stylesAndData.ts"),b=void 0,y="/build/workflow-components/packages/react-time-range/src/Dropdown/Dropdown.tsx";function _(){return(_=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n":"<")+" "+r+") { ";var p=t,f=f||[];f.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=h?"' + "+r+" + '":""+s,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+l:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var m=i;return i=f.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}},"4B/t":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=106)}([function(e,t){e.exports=n("GtyH")},function(e,t){e.exports=n("UT4o")},function(e,t){e.exports=n("bG2D")},function(e,t){e.exports=n("39NA")},function(e,t){e.exports=n("oDLU")},function(e,t){e.exports=n("eSnw")},function(e,t){e.exports=n("bTau")},function(e,t,n){var r=n(61),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=n("1AD0")},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(177),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default||function(e){for(var t=1;tr.length?(0,o.default)(n.slice(r.length)).invoke("remove",!1):n.length1.1,o=r/e.plotHeight>1.05,(i||o)&&(a(s,(function(e){(e.horiz&&i||!e.horiz&&o)&&e.setTickInterval(!0)})),e.getMargins()),e.drawChartBox(),e.hasCartesianSeries&&a(s,(function(e){e.visible&&e.render()})),e.seriesGroup||(e.seriesGroup=l.g("series-group").attr({zIndex:3}).add()),this.pendingDraw=(0,b.asyncEach)(e.series,(function(e){e.translate(),e.render()})),this.pendingDraw.done((function(){e.renderLabels(),e.addCredits(),e.setResponsive&&e.setResponsive(),e.hasRendered=!0,t()}))},initializeFields:function(){var e=this.dataSet.getFieldData();this.xFields=e.xFields,this.yFields=e.yFields;var t=i.default.extend([],this.fieldShowList),n=i.default.extend([],this.fieldHideList),r=o.default.intersection(t,n);this.showHideMode?n=o.default.difference(n,r):t=o.default.difference(t,r),this.yFields=o.default.difference(this.yFields,n),t.length>0&&(this.yFields=o.default.intersection(this.yFields,t)),this.yFields.length>0&&this.legendLabels.length>0&&(this.yFields=o.default.union(this.legendLabels,this.yFields))},isEmpty:function(){return!this.yFields||0===this.yFields.length},hasTimeXAxis:function(){return(0,o.default)(this.xFields||[]).any(this.seriesIsTimeBased,this)},hasBinnedTimeXAxis:function(){return this.hasTimeXAxis()&&this.dataSet.hasField("_span")},shouldProgressiveDraw:function(){return!this.isEmpty()&&this.yFields.length*this.dataSet.getSeries(this.yFields[0]).length>this.PROGRESSIVE_DRAW_THRESHOLD},shouldUpdateInPlace:function(){return this.hcChart&&!this.isDirty()},initializeColorPalette:function(){this.colorPalette=new A.default(this.seriesColors),this.annotationColorPalette=new A.default(this.ANNOTATION_COLORS,!0)},initializeSeriesList:function(){this.seriesList=(0,o.default)(this.initializeSeriesPropertiesList()).map((function(e){return z.default.create(e)}))},updateSeriesProperties:function(){var e=this,t=this.initializeSeriesPropertiesList(),n=!1;o.default.each(this.seriesList,(function(e,r){t[r]&&e.getType()!==t[r].type&&(n=!0)})),n?(this.seriesList=null,this._isDirty=!0,this.initializeSeriesList()):this.seriesList.length>t.length?this.seriesList=(0,o.default)(this.seriesList).filter((function(e,n){return n>=t.length?(e.destroy(),!1):(e.update(t[n]),!0)}),this):this.seriesList.length<=t.length&&(this.seriesList=(0,o.default)(t).map((function(t,n){if(n-1&&i0?parseInt(r[0],10):1;n=i>=31536e3?15:i>=86400?25:35}t.title.margin=n})),i.default.extend(!0,t,{plotOptions:{series:{enableMouseTracking:!1,shadow:!1}}})),(this.properties.hasOwnProperty("time.serializedTz")||this.properties.hasOwnProperty("time.timezoneOffset")||this.properties.hasOwnProperty("time.ianaTimezone"))&&i.default.extend(!0,t,{time:this.getTimeConfig()}),t},getSeriesConfigList:function(){return(0,o.default)(this.seriesList).chain().invoke("getConfig").flatten(!0).value()},getXAxisConfig:function(){return this.hasXAxis?(0,o.default)(this.xAxisList).map((function(e,t){var n=e.getConfig();return t>0&&(n.offset=40),n}),this):[]},getYAxisConfig:function(){return this.hasYAxis?(0,o.default)(this.yAxisList).map((function(e){return e.getConfig()})):[]},getLegendConfig:function(){return this.hasLegend&&this.legend?this.legend.getConfig():{}},getTimeConfig:function(){var e=this,t={useUTC:!1};if(this.properties.hasOwnProperty("time.serializedTz")){t.useUTC=!0;var n=(0,m.default)(this.properties["time.serializedTz"]);t.getTimezoneOffset=function(e){var t=(0,a.default)(n.untils,e);return n.offsets[t]}}else this.properties.hasOwnProperty("time.timezoneOffset")?(t.timezoneOffset=_.parseFloat(this.properties["time.timezoneOffset"]),t.useUTC=!0):this.properties.hasOwnProperty("time.ianaTimezone")&&(t.useUTC=!0,t.getTimezoneOffset=function(t){return l.default.tz.zone(e.properties["time.ianaTimezone"]).utcOffset(t)});return t},getTooltipConfig:function(){return this.tooltip?i.default.extend(this.tooltip.getConfig(),{formatter:function(){return!1}}):{}},formatTooltip:function(e,t){var n=this.getSeriesPointInfo(e,t);return this.legendMode===I?o.default.escape(n.xValueDisplay):e.getTooltipHtml(n,this.hcChart)},getChartConfig:function(){var e=this,t={type:this.type,renderTo:this.container,backgroundColor:this.backgroundColor,borderColor:this.backgroundColor,events:{redraw:function(){e.onChartRedraw(this),e.onChartLoadOrRedraw(this)},endResize:this.onChartResize.bind(this),tooltipRefresh:this.onTooltipRefresh.bind(this)}};if(this.hasXAxis&&(t.events.selection=this.onChartSelection.bind(this)),this.exportMode?(t.width=this.width||this.EXPORT_WIDTH,t.height=this.height||this.EXPORT_HEIGHT):this.$container.is(":visible")||(t.width=this.FALLBACK_WIDTH,t.height=this.FALLBACK_HEIGHT),this.isZoomable()&&"off"!==this.zoomType&&(t.zoomType=this.zoomType||"x"),this.yAxisList&&this.yAxisList.length>1){var n=o.default.find(this.yAxisList,(function(e){return e.hasExplicitMin||e.hasExplicitMax})),r=o.default.any(this.yAxisList,(function(e){return e.isLogScale()}));(n||r)&&(t.alignTicks=!1)}return t},getDataLabelConfig:function(){if("none"===this.showLabels||void 0===this.dataLabels)return{enabled:!1};var e=this;return i.default.extend(!0,{},this.dataLabels.getConfig(),{formatter:function(){for(var t=0;t=0},isZoomable:function(){return"area"===this.type||"line"===this.type||"column"===this.type},isStackable:function(){return"line"!==this.type},shouldSetSeriesZerosToNull:function(e){return"column"===this.type&&"zero"!==this.properties["chart.nullValueMode"]&&"column"===e},enableTooltip:function(e){var t=this;e.tooltip.options.formatter=function(){var e=this.points&&this.points.length?this.points[0]:this,n=e.series.splSeries;return t.formatTooltip(n,e.point)}},onTooltipRefresh:function(){var e=this;if(this.legend&&this.legendMode===I){var t=this.hcChart.hoverPoints.map((function(t){var n=e.getSeriesByName(t.series.name),r=e.getSeriesPointInfo(n,t);return{seriesIndex:t.series.index,value:r.yValue,formattedValue:r.yValueDisplay}}));this.legend.updateLegend(t)}},onChartLoad:function(e){this.legend&&this.legend.onChartLoad(e),this.dataLabels&&this.dataLabels.onChartLoad(e),(0,o.default)(this.xAxisList).invoke("onChartLoad",e),(0,o.default)(this.yAxisList).invoke("onChartLoad",e),(0,o.default)(this.seriesList).invoke("onChartLoad",e),this.isZoomable()&&this.triggerRangeSelectionEvent()},onChartRedraw:function(e){var t=this;if(this.selectionWindow)this.selectionWindow.onChartRedraw(e);else if(this.isZoomable()&&!this.isiOS){var n=this.xAxisList[0];n&&n.isZoomed?(this.resetZoomButton||(this.resetZoomButton=new E.default(this.hcChart)),this.panButtons?this.panButtons.onChartRedraw(e):(this.panButtons=new D.default(this.hcChart,this.panDistanceResolver.bind(this)),this.panButtons.on("pan",(function(){t.triggerRangeSelectionEvent()})))):(this.resetZoomButton&&(this.resetZoomButton.destroy(),this.resetZoomButton=null),this.panButtons&&(this.panButtons.destroy(),this.panButtons=null))}if(this.isZoomable()&&!this.selectionTriggeredBeforeRedraw){var r=!this.selectionWindow||this.updateHasRebinned;this.triggerRangeSelectionEvent(null,{skipNormalization:r})}this.selectionTriggeredBeforeRedraw=!1},onChartLoadOrRedraw:function(e){this.legend&&this.legend.onChartLoadOrRedraw(e),this.dataLabels&&this.dataLabels.onChartLoadOrRedraw(e),(0,o.default)(this.xAxisList).invoke("onChartLoadOrRedraw",e),(0,o.default)(this.yAxisList).invoke("onChartLoadOrRedraw",e),(0,o.default)(this.seriesList).invoke("onChartLoadOrRedraw",e)},onChartDestroy:function(){this.legend&&this.legend.destroy(),this.dataLabels&&this.dataLabels.destroy(),(0,o.default)(this.xAxisList).invoke("destroy"),(0,o.default)(this.yAxisList).invoke("destroy"),(0,o.default)(this.seriesList).invoke("destroy"),this.selectionWindow&&(this.selectionWindow.destroy(),this.selectionWindow=null),this.panButtons&&(this.panButtons.destroy(),this.panButtons=void 0),this.highlighted&&this.resetHighlight()},onChartSelection:function(e){var t=this.xAxisList[0];if(!e.resetSelection){var n=e.xAxis[0],r=this.getNormalizedAxisExtremes(n.min,n.max);if(n.min=r.min,n.max=r.max,this.hasTimeXAxis()||(n.max+=t.hasTickmarksBetween()?0:1),this.triggerRangeSelectionEvent(r).isDefaultPrevented()){if(e.preventDefault(),this.hasPendingRangeResetEvent=!1,t.getZoomed(n.min,n.max)){this.selectionWindow=new C.default(this.hcChart,this.xAxisValueSnapper.bind(this));var i=this;this.selectionWindow.on("rangeSelect",(function(){i.triggerRangeSelectionEvent()}))}}else this.selectionTriggeredBeforeRedraw=!0}},onChartResize:function(e){if(this.panButtons&&this.panButtons.onChartResize(e),this.highlighted){var t=this.highlighted;this.resetHighlight(),this.highlight(t.value,t.seriesName)}},panDistanceResolver:function(e,t){if(!this.hasTimeXAxis())return{min:1,max:1};if(!this.hasBinnedTimeXAxis()){var n=e.normalizeTimeTickInterval(e.tickInterval,e.options.units).unitRange;return{min:n,max:n}}var r=e.getExtremes(),i=this.dataSet.getSeriesAsEpochTimes(this.xFields[0]),o=this.dataSet.getSeriesAsFloats("_span"),a=this.findNearestTimeBinIndex(r.min,i),s=this.findNearestTimeBinIndex(r.max,i);return"left"===t?0===a?{min:0,max:0}:{min:1e3*o[a-1],max:1e3*o[s-1]}:"right"===t?s>=o.length?{min:0,max:0}:{min:1e3*o[a],max:1e3*o[s]}:void 0},xAxisValueSnapper:function(e,t){if(t=t||"round",!this.hasTimeXAxis())return Math[t](e);if(!this.hasBinnedTimeXAxis())return e;var n=this.dataSet.getSeriesAsEpochTimes(this.xFields[0]),r=this.findNearestTimeBinIndex(e,n),i=n[r];return"floor"===t&&e0?r--:"ceil"===t&&e>i&&r++,r===n.length?n[r-1]+1e3*this.dataSet.getSeriesAsFloats("_span")[r-1]:n[r]},getNormalizedAxisExtremes:function(e,t){var n=this.hcChart.xAxis[0],r=n.dataMax,i=n.dataMin,o=function(e){return e>r&&(e=r),ei&&o!==r&&(o-=n.hasTickmarksBetween()?0:1),l&&t-e<1&&!n.hasTickmarksBetween()&&(o=i),{min:i,max:o}},findNearestTimeBinIndex:function(e,t){var n=o.default.sortedIndex(t,e);return 0===n?0:e-t[n-1]e.max?e:{min:null,max:null};if(!this.hasBinnedTimeXAxis())return e;var n=this.dataSet.getSeriesAsEpochTimes(this.xFields[0]),r=this.dataSet.getSeriesAsFloats("_span"),i=n[0];if(o.default.last(n)+1e3*o.default.last(r)e.min)return{min:null,max:null};var a=n[this.findNearestTimeBinIndex(e.min,n)],s=n[this.findNearestTimeBinIndex(e.max,n)];return-1!==n.indexOf(e.min)&&-1!==n.indexOf(e.max)||(this.updateHasRebinned=!0),{min:a,max:s}},triggerRangeSelectionEvent:function(e,t){var n=void 0,r=this.xAxisList[0],a=!e&&!this.selectionWindow&&!r.isZoomed;if(e||(this.selectionWindow?(e=this.selectionWindow.getExtremes()).min+=r.hasTickmarksBetween()?1:0:(e=this.hcChart.xAxis[0].getExtremes(),r.isZoomed&&(e.max-=r.hasTickmarksBetween()?0:1)),t&&t.skipNormalization||(e=this.getNormalizedAxisExtremes(e.min,e.max))),this.hasTimeXAxis()){var s=this.dataSet.getSeriesAsEpochTimes(this.xFields[0]),l=0,c=o.default.sortedIndex(s,e.max);if(this.hasBinnedTimeXAxis()&&r.hasTickmarksBetween()&&!this.selectionWindow)l=this.dataSet.getSeriesAsFloats("_span")[c];else!this.hasBinnedTimeXAxis()||r.hasTickmarksBetween()&&!this.selectionWindow||c--;n=i.default.Event("chartRangeSelect",{startXIndex:o.default.sortedIndex(s,e.min),endXIndex:c,startXValue:e.min/1e3,endXValue:e.max/1e3+l,isReset:!!a})}else{var u=this.dataSet.getSeries(this.xFields[0]);n=i.default.Event("chartRangeSelect",{startXIndex:e.min,endXIndex:e.max,startXValue:u[e.min],endXValue:u[e.max],isReset:!!a})}return this.trigger(n),n},pointerDragStartPreHook:function(e,t){(this.isMouseInteractionActive=!0,this.selectionWindow)&&(this.selectionWindow.handleDragStartEvent(t)||this.destroySelectionWindow())},pointerPinchOverride:function(e,t,n){this.selectionWindow?"touchstart"===t.type?(this.hcChart.xAxis[0].zoomEnabled=!1,n.call(e,t),this.selectionWindow.handleDragStartEvent(t)||this.destroySelectionWindow(),this.hcChart.xAxis[0].zoomEnabled=!0):"touchmove"===t.type?this.selectionWindow.handleDragEvent(t):"touchend"===t.type&&this.selectionWindow.handleDropEvent(t):n.call(e,t)},destroySelectionWindow:function(){this.selectionWindow&&(this.selectionWindow.destroy(),this.selectionWindow=null,this.hasPendingRangeResetEvent=!0)},pointerDragOverride:function(e,t,n){this.selectionWindow?this.selectionWindow.handleDragEvent(t):(n.call(e,t),this.hcChart.pointer.selectionMarker&&this.hcChart.pointer.selectionMarker.attr({"stroke-width":2,stroke:this.foregroundColorSofter}))},pointerDropPreHook:function(e,t){this.selectionWindow&&this.selectionWindow.handleDropEvent(t)},pointerDropPostHook:function(){this.hasPendingRangeResetEvent&&(this.triggerRangeSelectionEvent(),this.hasPendingRangeResetEvent=!1),this.isMouseInteractionActive=!1},getSeriesByName:function(e){return(0,o.default)(this.seriesList).find((function(t){return t.hcSeries.name===e}))},getSeriesXInfo:function(e){var t=e.getXAxisIndex();return{axis:this.xAxisList[t],fieldName:this.xFields[t]}},getSeriesYInfo:function(e){return{axis:this.yAxisList[e.getYAxisIndex()],fieldName:e.getName()}},getSeriesPointInfo:function(e,t){var n=o.default.has(t,"originalIndex")?t.originalIndex:t.index,r=this.getSeriesXInfo(e),i=this.getSeriesYInfo(e),a=this.dataSet.getSeries(r.fieldName),s=this.dataSet.getSeries(i.fieldName);return{xAxisIsTime:r.axis instanceof k.default,xAxisName:r.fieldName,xValue:a[n],xValueDisplay:r.axis.formatValue(a[n],t),yAxisName:i.fieldName,yValue:s[n],yValueDisplay:i.axis.formatValue(s[n],t),shouldColorizeTooltipData:this.shouldColorizeTooltipData}},getDashStyle:function(){var e=this.properties.lineDashStyle;if(e)return p.capitalize(e)},seriesIsTimeBased:function(e){return/^_time/.test(e)},formatNumericAxisData:function(e,t,n){return this.dataSet.hasField(t)?this.dataSet.getSeriesAsFloats(t,{scale:e.isLogScale()?"log":"linear",nullValueMode:this.properties["chart.nullValueMode"],zerosToNull:this.shouldSetSeriesZerosToNull(n)}):[]},formatTimeAxisData:function(e,t){return this.dataSet.hasField(t)?this.dataSet.getSeriesAsEpochTimes(t):[]},computeFieldColor:function(e,t,n){if(this.internalFieldColors.hasOwnProperty(e))return f.colorFromHex(this.internalFieldColors[e]);var r=!this.seriesColors&&!(0,o.default)(this.externalPaletteMapping).isEmpty(),i=r?this.externalPaletteMapping[e]:t,a=r?this.externalPaletteSize:n.length;return this.colorPalette.getColorAsRgb(e,i,a)},BASE_CONFIG:{chart:{showAxes:!0,reflow:!1,selectionMarkerFill:"rgba(0,0,0,0)",spacingTop:16,style:{fontFamily:M.FONT_FAMILY,fontSize:M.FONT_SIZE}},credits:{enabled:!1},legend:{enabled:!1},plotOptions:{series:{states:{hover:{enabled:!1},inactive:{opacity:1,enabled:!1}},events:{legendItemClick:function(){return!1}},borderWidth:0,shadow:!1,turboThreshold:0}},title:{text:null},tooltip:{enabled:!1,useHTML:!0}},BASE_PLOT_OPTIONS_CONFIG:{line:{stickyTracking:!0,states:{hover:{marker:{enabled:!0,radius:6}}},marker:{enabled:!1,radius:2,symbol:"circle"}},area:{stickyTracking:!0,lineWidth:1,states:{hover:{marker:{enabled:!0,radius:6}}},marker:{symbol:"circle",radius:2,enabled:!1}},column:{markers:{enabled:!1},stickyTracking:!1,fillOpacity:1,trackByArea:!0},bar:{markers:{enabled:!1},stickyTracking:!1,fillOpacity:1,trackByArea:!0}}}),t.default=H,e.exports=t.default},function(e,t){var n=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(24),i=n(42);e.exports=n(26)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(25),i=n(181),o=n(182),a=Object.defineProperty;t.f=n(26)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(40);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(41)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};function a(e){e=e||{},this.highlightDelay=e.highlightDelay||200,this.unhighlightDelay=e.unhighlightDelay||100,this.timer=null,this.timer2=null,this.mouseStatus="over",this.isSelected=!1,this.onMouseOver=e.onMouseOver,this.onMouseOut=e.onMouseOut}o.default.extend(a.prototype,{setMouseStatus:function(e){this.mouseStatus=e},getMouseStatus:function(){return this.mouseStatus},mouseOverHappened:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;rs&&(s=t)})),o.default.each(n,(function(e){var t=r.predictTextWidth(e,i);t>l&&(l=t)})),r.destroy(),{maxLeftColWidth:s,maxRightColWidth:l}},getTooltipRows:function(e){var t=[];return e.xAxisIsTime?t.push([e.xValueDisplay]):t.push([e.xAxisName,e.xValueDisplay]),t.push([(0,r.default)({},e.shouldColorizeTooltipData&&{color:e.seriesColor},{text:e.seriesName}),e.yValueDisplay]),t},getTooltipHtml:function(e,t){e.seriesName=this.getName(),e.seriesColor=this.getColor();var n=function(e){return(0,o.default)(e).isString()?e:e.text},r=this.getTooltipRows(e),a=t.chartWidth-50,s=(0,o.default)(r).map((function(e){return n(e[0]||"")})),l=(0,o.default)(r).map((function(e){return n(e[1]||"")})),u=this.estimateMaxColumnWidths(t,s,l),d=u.maxLeftColWidth/(u.maxLeftColWidth+u.maxRightColWidth);return d>.9?d=.9:d<.1&&(d=.1),e.scaledMaxLeftColWidth=d*a+"px",e.scaledMaxRightColWidth=(1-d)*a+"px",e.willWrap=u.maxLeftColWidth+u.maxRightColWidth>a,(0,o.default)(this.tooltipTemplate).template(i.default.extend(e,{rows:r,normalizeToText:n,normalizeToColor:function(e){return(0,o.default)(e).isString()?null:e.color},getThemeProperty:c.getThemeProperty}))},handlePointMouseOut:function(){},handleLegendMouseOut:function(){},highlight:function(){},unHighlight:function(){},highlightPoint:function(){},unHighlightPoint:function(){},tooltipTemplate:'\n \n style="word-wrap: break-word; white-space: normal;"\n <% } %>>\n <% _(rows).each(function(row) { %>\n \n <% if(row.length === 1) { %>\n \n <% } else { %>\n \n \n <% } %>\n \n <% }); %>\n
<%- normalizeToText(row[0]) %><%- normalizeToText(row[0]) %>:  <%- normalizeToText(row[1]) %>
\n '}),p.Point=h,t.default=p,e.exports=t.default},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(15),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(31),i=n(33);function o(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},function(e,t){e.exports=function(){}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=function(e){return e.placeholder}},function(e,t,n){var r=n(18),i=n(16);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(3)),i=o(n(6));function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var a=["#1e93c6","#f2b827","#d6563c","#6a5c9e","#31a35f"].map(i.hexFromColor);function s(e,t){this.setColors(e),this.useInterpolation=r.normalizeBoolean(t,!1)}s.prototype={setColors:function(e){this.colors=e||a},getColor:function(e,t,n){var r=void 0,o=this.colors.length;if(0===o)return 0;if(t<0&&(t=0),!this.useInterpolation)return this.colors[t%o];n<1&&(n=1),t>n&&(t=n),r=1===n?0:t/(n-1)*(o-1);var a=Math.floor(r),s=Math.min(a+1,o-1);return r-=a,i.interpolateColors(this.colors[a],this.colors[s],r)},getColorAsRgb:function(e,t,n){var r=this.getColor(e,t,n);return i.colorFromHex(r)}},s.setBaseColors=function(e){a=e.map(i.hexFromColor)},t.default=s,e.exports=t.default},function(e,t,n){var r=n(17),i=n(22),o=n(80),a=n(23),s=function(e,t,n){var l,c,u,d=e&s.F,h=e&s.G,p=e&s.S,f=e&s.P,m=e&s.B,g=e&s.W,b=h?i:i[t]||(i[t]={}),y=b.prototype,_=h?r:p?r[t]:(r[t]||{}).prototype;for(l in h&&(n=t),n)(c=!d&&_&&void 0!==_[l])&&l in b||(u=c?_[l]:n[l],b[l]=h&&"function"!=typeof _[l]?n[l]:m&&c?o(u,r):g&&_[l]==u?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(u):f&&"function"==typeof u?o(Function.call,u):u,f&&((b.virtual||(b.virtual={}))[l]=u,e&s.R&&y&&!y[l]&&a(y,l,u)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(87)("keys"),i=n(88);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(43);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=n("z5hU")},function(e,t){e.exports=n("v2SS")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(n(9)),i=d(n(0)),o=d(n(1)),a=d(n(11)),s=u(n(3)),l=u(n(93)),c=n(4);function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}function h(e){this.properties=e||{},this.id=o.default.uniqueId("axis_"),this.isVertical="vertical"===this.properties["axis.orientation"],this.isZoomed=!1,this._titleIsDirty=!1,this.labelRotation||(this.labelRotation=this.isVertical?0:s.getRotation(this.properties["axisLabels.majorLabelStyle.rotation"]))}h.prototype={getZoomed:function(e,t,n,r){var i=this.hcAxis,o=isNaN(i.dataMax)?n:i.dataMax,a=isNaN(i.dataMin)?r:i.dataMin;return i.hasData()?void 0!==e&&e>a||void 0!==t&&t<("between"===i.options.tickmarkPlacement?o:o+1):i.categories&&i.categories.length>0?void 0!==e&&e>0||void 0!==t&&tthis.getTickLabelExtremesX(e).left;else if(t.horiz&&!t.reversed){var r=t.left+t.len+1+5;n=this.getTickLabelExtremesX(e).right>r}else{var i=t.top+t.len+1;n=this.getTickLabelExtremesY(e).bottom>i}n?l.hideTickLabel(e):l.showTickLabel(e)}},getOffsetPreHook:function(e){if(e.userOptions.title.text){var t=e.chart,n=new a.default(t.renderer),r=e.userOptions.title.text,i=void 0;i=e.horiz?n.ellipsize(r,t.chartWidth-100,12,{fontWeight:"bold"}):n.ellipsize(r,t.chartHeight-100,12,{fontWeight:"bold"}),e.options.title.text=i,e.axisTitle&&e.axisTitle.attr({text:i}),n.destroy()}},hasTickmarksBetween:function(){return"between"===this.properties["axisLabels.tickmarkPlacement"]},getTickLabelExtremesX:function(e){var t=e.label.getBBox(),n=e.axis.labelAlign,r=e.label.xy.x,i=t.width,o=void 0;return{left:o="left"===n?r:"center"===n?r-.5*i:r-i,right:o+i}},getTickLabelExtremesY:function(e){var t=e.label.xy.y;return{top:t-e.label.getBBox().height,bottom:t}},getLabelSizeOverride:function(e){if(!e.label)return 0;var t="horizontal"===this.properties["axis.orientation"];return e.labelBBox=e.label.getBBox(),t&&"on"===this.properties["axisLabels.tickmarkPlacement"]&&e.isLast&&!e.isFirst?0:e.labelBBox[t?"height":"width"]},destroy:function(){this.hcAxis=null},getVerticalConfig:function(){return{title:(0,r.default)({},this.properties["axisTitle.alignment"]&&{align:this.properties["axisTitle.alignment"]})}},getHorizontalConfig:function(){return{labels:{rotation:this.labelRotation},title:(0,r.default)({},this.properties["axisTitle.alignment"]&&{align:this.properties["axisTitle.alignment"]})}},BASE_HORIZ_CONFIG:{title:{margin:6},labels:{y:15}},BASE_VERT_CONFIG:{title:{margin:6}},CROSSHAIR_CONFIG:{snap:!1,color:"#cccccc",width:1,zIndex:1e4}},t.default=h,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=f(n(0)),i=f(n(1)),o=f(n(13)),a=f(n(11)),s=p(n(3)),l=p(n(2)),c=p(n(5)),u=p(n(197)),d=f(n(8)),h=f(n(49));function p(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function f(e){return e&&e.__esModule?e:{default:e}}function m(e){h.default.call(this,e),this.includeZero=this.determineIncludeZero(),this.hasExplicitMin=this.validateNumericProperty("axis.minimumNumber"),this.hasExplicitMax=this.validateNumericProperty("axis.maximumNumber"),this.hasExplicitMajorUnit=this.validateNumericProperty("axisLabels.majorUnit"),this.extendAxisRange=!!i.default.isUndefined(this.properties["axisLabels.extendsAxisRange"])||s.normalizeBoolean(this.properties["axisLabels.extendsAxisRange"],!0),this.startOnTick=!this.hasExplicitMin&&this.extendAxisRange,this.endOnTick=!this.hasExplicitMax&&this.extendAxisRange,e&&(this.sharedMin=e.sharedMin,this.sharedMax=e.sharedMax,this.abbreviation=e["axis.abbreviation"])}l.inherit(m,h.default),r.default.extend(m.prototype,{getConfig:function(){var e=h.default.prototype.getConfig.call(this),t="show"===this.properties["axisLabels.minorTickVisibility"],n=s.normalizeBoolean(this.properties["gridLines.showMinorLines"]);return r.default.extend(!0,e,{tickInterval:this.properties.isEmpty&&"log"===this.properties["axis.scale"]||this.properties.isEmpty?10:parseFloat(this.properties["axisLabels.majorUnit"])||null,endOnTick:this.endOnTick,startOnTick:this.startOnTick,tickWidth:"show"===this.properties["axisLabels.majorTickVisibility"]?1:0,allowDecimals:!s.normalizeBoolean(this.properties["axisLabels.integerUnits"]),minorTickColor:this.properties["axis.foregroundColorSoft"],minorTickLength:parseInt(this.properties["axisLabels.minorTickSize"],10)||10,minorTickInterval:t||n?"auto":null,minorTickWidth:t?1:0,minorGridLineWidth:n?1:0,min:this.properties.isEmpty?0:null,max:this.properties.isEmpty&&"log"===this.properties["axis.scale"]?2:this.properties.isEmpty?100:null,gridLineWidth:s.normalizeBoolean(this.properties["gridLines.showMajorLines"],!0)?1:0,setTickIntervalPreHook:(0,i.default)(this.setTickIntervalPreHook).bind(this),labels:{maxStaggerLines:1},lineWidth:"show"===this.properties["axisLabels.axisVisibility"]?1:0}),this.addMinAndMaxToConfig(e),e},validateNumericProperty:function(e){var t=this.properties[e];return 0===t||!!t&&!i.default.isNaN(parseFloat(t))},addMinAndMaxToConfig:function(e){var t=this.hasExplicitMin?parseFloat(this.properties["axis.minimumNumber"]):i.default.isUndefined(this.sharedMin)?-1/0:this.sharedMin,n=this.hasExplicitMax?parseFloat(this.properties["axis.maximumNumber"]):i.default.isUndefined(this.sharedMax)?1/0:this.sharedMax;if(t>n){var r=t;t=n,n=r}t>-1/0&&this.addMinToConfig(e,t,this.includeZero),n<1/0&&this.addMaxToConfig(e,n,this.includeZero)},addMinToConfig:function(e,t,n){n&&t>0?t=0:this.isLogScale()&&(t=c.absLogBaseTen(t)),e.min=t,e.minPadding=0,e.startOnTick=this.startOnTick},addMaxToConfig:function(e,t,n){n&&t<0?t=0:this.isLogScale()&&(t=c.absLogBaseTen(t)),e.max=t,e.maxPadding=0,e.endOnTick=this.endOnTick},getVerticalConfig:function(){var e=h.default.prototype.getVerticalConfig.call(this),t=(parseInt(this.properties["axisLabels.majorTickSize"],10)||0)+6;return r.default.extend(!0,e,{labels:{x:!0===this.properties.opposite?t:-t,y:4}})},getHorizontalConfig:function(){var e=h.default.prototype.getHorizontalConfig.call(this),t=parseInt(this.properties["axisLabels.majorTickSize"],10)||0,n=null,i=null,o=void 0;return-45===this.labelRotation?(o="right",n=5,i=10):-90===this.labelRotation?(o="right",n=4,i=6):45===this.labelRotation?(o="left",n=0,i=10):90===this.labelRotation?(o="left",n=-4,i=6):(o="center",i=14),r.default.extend(!0,e,{labels:{align:o,x:n,y:!0===this.properties.opposite?-6-t:i+t}})},formatLabel:function(e){if(this.isLogScale()&&"stacked100"!==this.properties.stackMode)return"auto"===this.abbreviation?u.abbreviateNumber(c.absPowerTen(e.value)):m.formatNumber(c.absPowerTen(e.value));var t=Math.max(e.axis.max,Math.abs(e.axis.min));if("auto"===this.abbreviation&&t>=1e3){var n=1===e.axis.tickPositions.length?0:this.calculateDecimal(t,e.axis.tickInterval.toString()),r=u.getSIUnit(t);return u.abbreviateByUnit(e.value,r,n)}return m.formatNumber(e.value)},calculateDecimal:function(e,t){if(!e||!t)return 0;var n=t.length-t.replace(/0+$/,"").length,r=u.getSIPower(e)-n;return r<0?0:r},formatValue:function(e){var t=m.formatNumber(e);return"NaN"!==t?t:o.default.format_decimal("0")},isLogScale:function(){return"log"===this.properties["axis.scale"]},getExtremes:function(e){var t=e.options,n=d.default.pick(e.userMin,t.min),r=d.default.pick(e.userMax,t.max),i=e.softThreshold,o=e.threshold,a=void 0,s=void 0;return!i&&d.default.defined(o)&&(e.dataMin>=o?a=o:e.dataMax<=o&&(s=o)),{dataMin:e.dataMin,dataMax:e.dataMax,min:d.default.pick(t.min,n,a,e.dataMin),max:d.default.pick(t.max,r,s,e.dataMax)}},setTickIntervalPreHook:function(e){var t=e.options,n=this.getExtremes(e),r=e.chart;if(this.properties.isEmpty)this.handleNoData(t);else{var o=new a.default(r.renderer),s=void 0,l=Math.abs(n.max-n.min);s=this.isVertical?t.tickInterval||t.tickPixelInterval/r.plotHeight*l:t.tickInterval||t.tickPixelInterval/r.plotWidth*l,this.isLogScale()?i.default.isNumber(n.min)&&i.default.isNumber(n.max)&&n.min>=0&&c.absPowerTen(n.max)<1?t.tickPositions=[0,c.absLogBaseTen(.01),c.absLogBaseTen(.1),c.absLogBaseTen(1)]:(t.tickPositions=void 0,t.tickInterval=1):this.checkMajorUnitFit(s,n,t,o,r),this.includeZero?this.enforceIncludeZero(t,n):this.adjustAxisRange(t,n,s),!1!==t.allowDecimals&&this.enforceIntegerMajorUnit(t,n),o.destroy()}},checkMajorUnitFit:function(e,t,n,r,i){var o=Math.abs(t.max-t.min),a=this.isVertical?i.plotHeight:i.plotWidth,s=e*a/o,l=Math.max(Math.abs(t.min),Math.abs(t.max)),c=this.isVertical?5:15,u=parseInt(n.labels.style.fontSize.split("px")[0],10),d=function(e){return e*o/a};if(this.isVertical){var h=r.predictTextHeight(this.formatValue(l),u);s2*p){var f=d(p),m=Math.pow(10,Math.floor(Math.log(f)/Math.LN10));n.tickInterval=this.fitTickIntervalToWidth(f,null,m,n.allowDecimals)}}},determineIncludeZero:function(){if(s.normalizeBoolean(this.properties["axis.includeZero"]))return!0;if(this.isLogScale()){var e=parseFloat(this.properties["axis.minimumNumber"]),t=parseFloat(this.properties["axis.maximumNumber"]);if((i.default.isNaN(e)||e<=0)&&(i.default.isNaN(t)||t>=0))return!0}return!1},enforceIncludeZero:function(e,t){t.min||t.max?t.min>=0?(e.min=0,e.minPadding=0):t.max<=0&&(e.max=0,e.maxPadding=0):this.handleNoData(e)},adjustAxisRange:function(e,t,n){!this.hasExplicitMin&&i.default.isUndefined(this.sharedMin)&&delete e.min,!this.hasExplicitMax&&i.default.isUndefined(this.sharedMax)&&delete e.max,t.dataMin||t.dataMax||this.hasExplicitMax||this.hasExplicitMin?t.min>t.dataMax&&t.min>0&&!this.hasExplicitMax?e.max=this.isLogScale()?t.min+2:2*t.min:t.max=0&&t.dataMin<=n&&(this.hasExplicitMin||(e.min=0),e.minPadding=0),t.dataMax<=0&&t.dataMax>=-1*n&&(this.hasExplicitMax||(e.max=0),e.maxPadding=0)):this.handleNoData(e)},handleNoData:function(e){var t=this.isLogScale();e.min=i.default.isUndefined(this.sharedMin)?0:this.sharedMin,e.max=i.default.isUndefined(this.sharedMax)?t?2:100:this.sharedMax,t&&(e.tickInterval=1)},enforceIntegerMajorUnit:function(e,t){t.max-t.min>=10&&(e.allowDecimals=!1)},fitTickIntervalToWidth:function(e,t,n,r){var i=e/n;if(t||(t=[1,2,2.5,5,10,20],!1===r&&(1===n?t=[1,2,5,10]:n<=.1&&(t=[1/n]))),1===t.length)e=t[0];else for(var o=0;o0&&t<1e-6)return o.default.format_scientific(e,"#.###E0");var n=c.getDecimalPrecision(e),r="#,##0.";return(0,i.default)(n).times((function(){r+="#"})),e+=Math.pow(10,-1*n-1),o.default.format_decimal(e,r)}}),t.default=m,e.exports=t.default},function(e,t,n){var r=n(201);"string"==typeof r&&(r=[[e.i,r,""]]);var i={transform:undefined};n(202)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),i=l(n(1)),o=l(n(8)),a=n(2),s=l(n(29));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){s.default.call(this,e)}(0,a.inherit)(c,s.default),r.default.extend(c.prototype,{CHARTING_PROPERTY_WHITELIST:i.default.union(["seriesSpacing"],s.default.prototype.CHARTING_PROPERTY_WHITELIST),DEFAULT_COLUMN_SPACING:.01,DEFAULT_COLUMN_GROUP_SPACING:.05,DEFAULT_BAR_SPACING:.02,DEFAULT_BAR_GROUP_SPACING:.05,getConfig:function(){for(var e=arguments.length,t=Array(e),n=0;n").addClass("highcharts-container").appendTo(this.container),this.elements={},this.hasRendered=!1,this.needsRedraw=!0}(0,l.inherit)(y,f.default),r.default.extend(y.prototype,{WINDOW_RESIZE_DELAY:100,EXPORT_HEIGHT:400,EXPORT_WIDTH:600,MIN_GAUGE_HEIGHT:25,RESIZED_GAUGE_HEIGHT:200,DEFAULT_COLORS:[h.hexFromColor(p.COLORS.SEMANTIC_SUCCESS),h.hexFromColor(p.COLORS.SEMANTIC_WARNING),h.hexFromColor(p.COLORS.SEMANTIC_ERROR)],DEFAULT_RANGES:[0,30,70,100],MAX_TICKS_PER_RANGE:10,showValueByDefault:!0,showMinorTicksByDefault:!0,getFieldList:function(){return[]},getWidth:function(){var e=f.default.prototype.getWidth.call(this);return this.exportMode?e||this.EXPORT_WIDTH:e},getHeight:function(){var e=f.default.prototype.getHeight.call(this);return this.exportMode?e||this.EXPORT_HEIGHT:e=e0?e:this.DEFAULT_COLORS},computeRanges:function(){var e=this,t=void 0,n=c.stringToArray(this.properties["chart.rangeValues"]);if(n&&n.length>1)t=n;else{var r=this.dataSet.allDataFields();t=(0,i.default)(r.slice(1)).map((function(t){return e.dataSet.getSeries(t)[0]}))}var o=-1/0,a=[];return(0,i.default)(t).each((function(e){var t=d.parseFloat(e);!(0,i.default)(t).isNaN()&&t>o&&(a.push(t),o=t)})),a.length>1?a:this.DEFAULT_RANGES},computeValue:function(){var e=this.dataSet.allDataFields();return e.length>0&&d.parseFloat(this.dataSet.getSeries(e[0])[0])||0},updateValue:function(e,t){if(e!==t){if(this.shouldAnimateTransition(e,t)&&(this.stopWobble(),this.animateTransition(e,t,(0,i.default)(this.drawIndicator).bind(this),(0,i.default)(this.onAnimationFinished).bind(this))),this.showValue){var n=this.formatValue(t);this.updateValueDisplay(n)}this.testMode&&u.gaugeUpdate(this.$container,t)}},shouldAnimateTransition:function(e,t){return this.normalizedTranslateValue(e)!==this.normalizedTranslateValue(t)},drawTicks:function(){var e=void 0,t=void 0,n=void 0,i=this.calculateTickValues(this.ranges[0],this.ranges[this.ranges.length-1],this.MAX_TICKS_PER_RANGE);for(e=0;e2&&this.tickLabelsOverlap(e);)e=this.removeEveryOtherTick(e);return e},tickLabelsOverlap:function(e){var t=void 0,n=void 0,r=void 0,i=this.renderer,o=function(e){return e.bBox?e.bBox:(i.cache={},e.getBBox())};for(t=0;tthis.ranges[this.ranges.length-1]&&(n=.005*(this.ranges[this.ranges.length-1]-this.ranges[0]),t=this.ranges[this.ranges.length-1]-n,this.wobble(t,n,this.drawIndicator))},formatValue:function(e){return this.usePercentageValue?this.formatPercent((e-this.ranges[0])/(this.ranges[this.ranges.length-1]-this.ranges[0])):this.formatNumber(e)},formatTickLabel:function(e){return this.usePercentageRange?this.formatPercent((e-this.ranges[0])/(this.ranges[this.ranges.length-1]-this.ranges[0])):this.formatNumber(e)},formatNumber:function(e){var t=parseFloat(e),n=Math.abs(t);return n>=1e9||0!==n&&n<.001?a.default.format_scientific(t,"#.###E0"):a.default.format_decimal(t)},formatPercent:function(e){return a.default.format_percent(e)},wobble:function(e,t,n){var r=this,i=0;this.wobbleInterval=setInterval((function(){var o=e+(i%3-1)*t;n.call(r,o),i=(i+1)%3}),75)},stopWobble:function(){clearInterval(this.wobbleInterval)},predictTextWidth:function(e,t){return this.formatter.predictTextWidth(e,t)},calculateTickValues:function(e,t,n){var r=void 0,i=t-e,o=i/(n-1),a=d.nearestPowerOfTen(o),s=[];if(this.usePercentageRange)for(a=this.majorUnit&&!isNaN(this.majorUnit)?Math.abs(this.majorUnit):10,r=0;r<=100;r+=a)s.push(e+r/100*i);else for(this.majorUnit&&!isNaN(this.majorUnit)?a=Math.abs(this.majorUnit):(i/a>n&&(a*=2),i/a>n&&(a*=2.5),i/a>n&&(a*=2)),r=this.usePercentageRange?e:e>=0?0:e-e%a;r<=t;r+=a)r>=e&&s.push(parseFloat(r.toFixed(14)));return s},getColorByIndex:function(e){return h.colorFromHex(this.colorPalette.getColor(null,e,this.ranges.length-1))},getChartObject:function(){return{series:[{data:[{y:this.value,onMouseOver:function(){}}]}]}},renderGauge:function(){this.updateDimensions()},translateValue:function(){},normalizedTranslateValue:function(){}}),t.default=y,e.exports=t.default},function(e,t){e.exports=n("cfIU")},function(e,t,n){var r=n(14);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(117),i=n(62)(r);e.exports=i},function(e,t,n){var r=n(120),i=n(127);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(18),i=n(15);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(7).Symbol;e.exports=r},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(121))},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(14),i=n(64),o=i?function(e,t){return i.set(e,t),e}:r;e.exports=o},function(e,t,n){var r=n(129),i=r&&new r;e.exports=i},function(e,t,n){var r=n(66),i=n(67),o=n(132),a=n(19),s=n(68),l=n(35),c=n(147),u=n(20),d=n(7);e.exports=function e(t,n,h,p,f,m,g,b,y,_){var v=128&n,M=1&n,w=2&n,x=24&n,A=512&n,k=w?void 0:a(t);return function L(){for(var S=arguments.length,T=Array(S),O=S;O--;)T[O]=arguments[O];if(x)var C=l(L),D=o(T,C);if(p&&(T=r(T,p,f,x)),m&&(T=i(T,m,g,x)),S-=D,x&&S<_){var E=u(T,C);return s(t,n,e,L.placeholder,h,T,E,b,y,_-S)}var P=M?h:this,j=w?P[t]:t;return S=T.length,b?T=c(T,b):A&&S>1&&T.reverse(),v&&y-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(59),i=n(76);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t){e.exports=n("wgY5")},function(e,t){e.exports=n("Heg0")},function(e,t,n){var r=n(180);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(40),i=n(17).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(184),i=n(89);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(84),i=n(43);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(85);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(44),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(17),i="__core-js_shared__",o=r[i]||(r[i]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports=n("zB6e")},function(e,t){e.exports=n("udwt")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(0)),i=c(n(1)),o=n(6),a=n(3),s=n(4),l=c(n(10));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){this.container=e,this.$container=(0,r.default)(e),this.properties=r.default.extend(!0,{},t),this.id=i.default.uniqueId("viz_"),this._isDirty=!1,this.updateDimensions(),this.lastDrawnWidth=null,this.lastDrawnHeight=null,this.benchmarks=[]}u.prototype=r.default.extend({},l.default,{requiresExternalColors:!1,getWidth:function(){return this.$container.width()},getHeight:function(){return this.$container.height()},getCurrentDisplayProperties:function(){return this.properties},isDirty:function(){return this._isDirty},updateDimensions:function(){this.width=this.getWidth(),this.height=this.getHeight()},cacheDrawnDimensions:function(){this.lastDrawnWidth=this.width,this.lastDrawnHeight=this.height},getClassName:function(){return this.type+"-chart"},prepare:function(e,t){var n=r.default.extend(!0,{},this.properties);t&&(r.default.extend(!0,this.properties,t),i.default.isEqual(this.properties,n)||(this._isDirty=!0)),this.dataSet=e,this.updateDimensions(),this.processProperties()},draw:function(e){var t=this,n=r.default.Deferred();return this.handleDraw((function(){t._isDirty=!1,e&&e.apply(void 0,arguments),n.resolve.apply(n,arguments)})),n},prepareAndDraw:function(e,t,n){return this.prepare(e,t),this.draw(n)},requiresExternalColorPalette:function(){return this.requiresExternalColors},processProperties:function(){this.type=this.properties.chart||"column",this.backgroundColor=this.properties["chart.backgroundColor"]||this.properties.backgroundColor||(0,s.getThemeProperty)("DEFAULT_BACKGROUND_COLOR"),this.foregroundColor=this.properties["chart.foregroundColor"]||this.properties.foregroundColor||(0,s.getThemeProperty)("DEFAULT_FOREGROUND_COLOR"),this.fontColor=this.properties["chart.fontColor"]||this.properties.fontColor||(0,s.getThemeProperty)("DEFAULT_FONT_COLOR"),this.foregroundColorSoft=(0,o.addAlphaToColor)(this.foregroundColor,.25),this.foregroundColorSofter=(0,o.addAlphaToColor)(this.foregroundColor,.15),(this.properties["chart.foregroundColor"]||this.properties.foregroundColor)&&(this.axisColorSoft=this.foregroundColorSoft,this.axisColorSofter=this.foregroundColorSofter),this.testMode=(0,a.normalizeBoolean)(this.properties["chart.testMode"])||(0,a.normalizeBoolean)(this.properties.testMode),this.exportMode=(0,a.normalizeBoolean)(this.properties["chart.exportMode"])||(0,a.normalizeBoolean)(this.properties.exportMode)},resize:function(){this.updateDimensions(),this.width&&this.height&&(this.width!==this.lastDrawnWidth||this.height!==this.lastDrawnHeight)&&this.setSize(this.width,this.height)},handleDraw:function(){},destroy:function(){},getSVG:function(){},highlight:function(){},unHighlight:function(){},benchmark:function(e){if(this.testMode)if(0===this.benchmarks.length)this.benchmarks.push([e,(new Date).getTime()]);else{var t=(0,i.default)(this.benchmarks).reduce((function(e,t){return e+t[1]}),0);this.benchmarks.push([e,(new Date).getTime()-t])}}}),t.default=u,e.exports=t.default},function(e,t){e.exports=n("gSiW")},function(e,t){e.exports=''},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=o(n(10));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return this.properties=e||{},this}a.prototype=r.default.extend({},i.default,{getConfig:function(){return{enabled:!0}}}),t.default=a,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(9)),i=u(n(0)),o=u(n(1)),a=n(2),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3)),l=n(4),c=u(n(97));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){c.default.call(this,e);var t=(0,l.getThemeProperty)("SERIES_UNHIGHLIGHT_COLOR_PALETTE");t&&t.length>0&&(this.UNHIGHLIGHTED_COLOR=t[+this.id.replace("series_","")%t.length]),this.hasHollowMarkers="hollow"===this.properties.markerStyle,this.showMarkers=s.normalizeBoolean(this.properties.showMarkers,!1)}(0,a.inherit)(d,c.default),i.default.extend(d.prototype,{CHARTING_PROPERTY_WHITELIST:o.default.union(["showMarkers"],c.default.prototype.CHARTING_PROPERTY_WHITELIST),type:"line",highlight:function(){if(c.default.prototype.highlight.call(this),this.hcSeries.graph){var e=this.getColor();this.hcSeries.graph.attr({stroke:e,"stroke-opacity":this.HIGHLIGHTED_OPACITY})}(0,o.default)(this.hcSeries.data).each(this.highlightPoint,this)},unHighlight:function(){c.default.prototype.unHighlight.call(this),this.hcSeries.graph&&this.hcSeries.graph.attr("stroke",this.UNHIGHLIGHTED_COLOR),(0,o.default)(this.hcSeries.data).each(this.unHighlightPoint,this)},highlightPoint:function(e){var t=this.getColor();e.graphic&&(this.showMarkers&&this.hasHollowMarkers?e.graphic.attr("stroke",t).attr("fill",this.properties["chart.backgroundColor"]||(0,l.getThemeProperty)("DEFAULT_BACKGROUND_COLOR")):e.graphic.attr("fill",t))},unHighlightPoint:function(e){e.graphic&&(this.showMarkers&&this.hasHollowMarkers?e.graphic.attr("stroke",this.UNHIGHLIGHTED_COLOR).attr("fill",this.properties["chart.backgroundColor"]||(0,l.getThemeProperty)("DEFAULT_BACKGROUND_COLOR")):e.graphic.attr("fill",this.UNHIGHLIGHTED_COLOR))},handlePointMouseOver:function(e){if(c.default.prototype.handlePointMouseOver.call(this),this.showMarkers&&this.hasHollowMarkers){var t=this.getColor(),n=e.index;this.hcSeries.points[n].graphic.attr("fill",t)}},bringToFront:function(){c.default.prototype.bringToFront.call(this),this.showMarkers&&this.hasHollowMarkers&&this.hcSeries.markerGroup&&this.hcSeries.markerGroup.toFront()},translatePostHook:function(){if(this.hcSeries){var e=this.hcSeries.chart,t=this.hcSeries.xAxis,n=this.hcSeries.points;if(Math.round(t.min)===Math.round(t.max)&&"line"===this.hcSeries.options.type)if(o.default.any(e.series,(function(e){return"column"===e.options.type}))){var r=Math.round(t.min);n[r-1]&&(n[r-1].plotX=n[r].plotX-t.width),n[r+1]&&(n[r+1].plotX=n[r].plotX+t.width)}}},getConfig:function(){var e=this.getName(),t=s.stringToObject(this.properties.fieldDashStyles||"{}"),n=this.getColor(),a=parseFloat(this.properties.lineWidth)||(0,l.getThemeProperty)("LINE_DEFAULT_LINE_WIDTH")||2,u=c.default.prototype.getConfig.call(this),d=(0,r.default)({enabled:this.showMarkers},this.showMarkers&&this.hasHollowMarkers&&{fillColor:this.properties["chart.backgroundColor"]||(0,l.getThemeProperty)("DEFAULT_BACKGROUND_COLOR"),lineColor:n,lineWidth:a,radius:1.25*a});return i.default.extend(u,{connectNulls:"connect"===this.properties.nullValueMode,marker:d,stacking:this.STACK_MODE_MAP.default,zIndex:2,translatePostHook:(0,o.default)(this.translatePostHook).bind(this),dashStyle:t.hasOwnProperty(e)?t[e]:this.properties.dashStyle,lineWidth:a}),u}}),t.default=d,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),i=s(n(1)),o=n(2),a=s(n(29));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){a.default.call(this,e)}(0,o.inherit)(l,a.default),r.default.extend(l.prototype,{CHARTING_PROPERTY_WHITELIST:i.default.union(["lineStyle","nullValueMode"],a.default.prototype.CHARTING_PROPERTY_WHITELIST),HIGHLIGHTED_OPACITY:1,getConfig:function(){var e=a.default.prototype.getConfig.call(this);return e.dashStyle="dashed"===this.properties.lineStyle?"Dash":"Solid",e.pointPlacement=this.properties.pointPlacement,e.drawPointsPreHook=(0,i.default)(this.drawPointsPreHook).bind(this),e},handlePointMouseOver:function(e){a.default.prototype.handlePointMouseOver.call(this,e),this.highlight()},drawPointsPreHook:function(e){if(!("zero"===this.properties.nullValueMode||e.options.marker&&e.options.marker.enabled))if(e.options.connectNulls){var t=i.default.filter(e.data,(function(e){return!e.isNull}));1===t.length&&t[0].update({marker:{enabled:!0,radius:4}},!1)}else e.data.forEach((function(t,n){if(!t.isNull){var r=e.data[n-1],i=e.data[n+1];r&&!r.isNull||i&&!i.isNull||t.update({marker:{enabled:!0,radius:4}},!1)}}))}}),t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(n(0)),i=d(n(1)),o=n(2),a=u(n(6)),s=u(n(3)),l=u(n(5)),c=d(n(97));function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}function h(e){c.default.call(this,e),this.UNHIGHLIGHTED_LINE_COLOR=a.addAlphaToColor(this.UNHIGHLIGHTED_BASE_COLOR,this.UNHIGHLIGHTED_LINE_OPACITY)}(0,o.inherit)(h,c.default),r.default.extend(h.prototype,{HIGHLIGHTED_OPACITY:.75,UNHIGHLIGHTED_LINE_OPACITY:.4,CHARTING_PROPERTY_WHITELIST:i.default.union(["showLines","areaFillOpacity"],c.default.prototype.CHARTING_PROPERTY_WHITELIST),type:"area",processProperties:function(){var e=l.parseFloat(this.properties.areaFillOpacity);this.fillOpacity=e<=1&&e>=0?e:this.HIGHLIGHTED_OPACITY,this.lineWidth=parseFloat(this.properties.areaLineWidth)||1,this.lineJoin=this.properties.areaLineCap||"round",this.lineCap=this.properties.areaLineCap||"butt"},getConfig:function(){var e=c.default.prototype.getConfig.call(this);return e.fillOpacity=this.fillOpacity,e.connectNulls="connect"===this.properties.nullValueMode,e.lineWidth=s.normalizeBoolean(this.properties.showLines,!0)?this.lineWidth:0,e.getStackPointsPreHook=(0,i.default)(this.getStackPointsPreHook).bind(this),e.setStackedPointsPostHook=(0,i.default)(this.setStackedPointsPostHook).bind(this),e},onChartLoadOrRedraw:function(e){c.default.prototype.onChartLoadOrRedraw.call(this,e),this.hasLines=this.hcSeries.options.lineWidth>0,this.hcSeries.area.attr("fill-opacity",this.fillOpacity),this.hcSeries.graph&&this.lineJoin&&this.lineCap&&this.hcSeries.graph.attr({"stroke-linejoin":this.lineJoin,"stroke-linecap":this.lineCap})},highlight:function(){c.default.prototype.highlight.call(this);var e=this.getColor();this.hcSeries.area.attr({fill:e,"fill-opacity":this.fillOpacity}),this.hcSeries.graph&&this.hasLines&&this.hcSeries.graph.attr({stroke:e,"stroke-opacity":1}),(0,i.default)(this.hcSeries.data).each(this.highlightPoint,this)},unHighlight:function(){c.default.prototype.unHighlight.call(this),this.hcSeries.area.attr({fill:this.UNHIGHLIGHTED_COLOR}),this.hcSeries.graph&&this.hasLines&&this.hcSeries.graph.attr("stroke",this.UNHIGHLIGHTED_LINE_COLOR),(0,i.default)(this.hcSeries.data).each(this.unHighlightPoint,this)},highlightPoint:function(e){var t=this.getColor();e.graphic&&e.graphic.attr("fill",t)},unHighlightPoint:function(e){e.graphic&&e.graphic.attr("fill",this.UNHIGHLIGHTED_COLOR)},getStackPointsPreHook:function(e,t){return t=t||e.points,e.options.stacking&&t.forEach((function(e){e.leftNull=null,e.rightNull=null})),t},setStackedPointsPostHook:function(e){if(void 0!==e.yAxis&&void 0!==e.yAxis.stacks&&void 0!==e.yAxis.stacks.area){var t=e.yAxis.stacks.area,n=e.processedYData,r=[];if(n.forEach((function(e,t){null===e&&r.push(t)})),0!==r.length){var i=e.processedXData,o=void 0;r.forEach((function(n){var r=i[n];o=e.getStackIndicator(o,r,e.index);var a=t[r];a.points[o.key]=null,a.points[e.index]=null}))}}}}),t.default=h,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),i=s(n(1)),o=n(2),a=s(n(29));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){a.default.call(this,e)}(0,o.inherit)(l,a.default),r.default.extend(l.prototype,{CHARTING_PROPERTY_WHITELIST:i.default.union(["seriesSpacing"],a.default.prototype.CHARTING_PROPERTY_WHITELIST),destroy:function(){this.unSelectPoint(),a.default.prototype.destroy.call(this)},handlePointMouseOver:function(e){a.default.prototype.handlePointMouseOver.call(this,e),this.selectPoint(e)},handlePointMouseOut:function(e){a.default.prototype.handlePointMouseOut.call(this,e),this.unSelectPoint(e)},selectPoint:function(e){var t=this.hcSeries.data[e.index];this.highlightPoint(t),(0,i.default)(this.hcSeries.data).chain().without(t).each(this.unHighlightPoint,this)},unSelectPoint:function(e){if(e){var t=this.hcSeries.data[e.index];(0,i.default)(this.hcSeries.data).chain().without(t).each(this.highlightPoint,this)}},highlight:function(){a.default.prototype.highlight.call(this),(0,i.default)(this.hcSeries.data).each(this.highlightPoint,this)},unHighlight:function(){a.default.prototype.unHighlight.call(this),(0,i.default)(this.hcSeries.data).each(this.unHighlightPoint,this)},highlightPoint:function(e){if(e.graphic){var t=this.getColor();e.graphic.attr({fill:t,"fill-opacity":this.HIGHLIGHTED_OPACITY,stroke:t})}},unHighlightPoint:function(e){e.graphic&&e.graphic.attr({fill:this.UNHIGHLIGHTED_COLOR,"stroke-width":1,stroke:this.UNHIGHLIGHTED_BORDER_COLOR})}}),t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(9)),i=u(n(101)),o=u(n(0)),a=u(n(1)),s=u(n(8)),l=n(2),c=u(n(52));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){c.default.call(this,e)}(0,l.inherit)(d,c.default),o.default.extend(d.prototype,{type:"scatter",getConfig:function(){for(var e=arguments.length,t=Array(e),n=0;n0){var p=t.renderer.symbols[h](o-d/2,l-d/2,d,d);n.push.apply(n,(0,i.default)(p))}}})),e.graphPath=n,n},renderPostHook:function(e){e.group&&e.group.toFront()},selectPoint:function(e){var t=this.hcSeries.data[e.index].series;t.stateMarkerGraphic&&(this.selectedPointGraphic=t.stateMarkerGraphic,t.stateMarkerGraphic=null,(0,o.default)(this.selectedPointGraphic.element).insertBefore(t.tracker.element))},getTooltipRows:function(e){var t=[];return e.isMultiSeries&&t.push([e.labelSeriesName,(0,r.default)({text:e.seriesName},e.shouldColorizeTooltipData&&{color:e.seriesColor})]),e.markName&&t.push([e.markName,e.markValue]),t.push([e.xAxisName,e.xValue],[e.yAxisName,e.yValue]),t}}),t.default=d,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(213),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);tthis.NUM_DIMENSION_FIELDS?(this.isMultiSeries=!0,this.labelField=e[0],this.xField=e[1],this.yField=e[2],this.hasLegend="none"!==this.properties["legend.placement"]):(this.isMultiSeries=!1,this.xField=e[0],this.yField=e[1],this.hasLegend=!1)},initializeDataLabels:function(){},isEmpty:function(){return(0,i.default)(this.xField).isUndefined()||(0,i.default)(this.yField).isUndefined()},hasTimeXAxis:function(){return!1},initializeSeriesPropertiesList:function(){var e=this,t=void 0;this.isMultiSeries?t=(0,i.default)(this.dataSet.getSeries(this.labelField)).chain().uniq().compact().map((function(t){return{name:t,type:e.TYPE,clickEnabled:e.chartClickEnabled}})).value():t=[{name:i.default.uniqueId(this.TYPE+"_field_"),type:this.TYPE,clickEnabled:this.chartClickEnabled}];return t},initializeXAxisList:function(){var e=r.default.extend(a.getXAxisProperties(this.properties),this.axisColorScheme,{"axis.orientation":"horizontal",isEmpty:this.isEmpty()});e["axisTitle.text"]=this._getComputedXAxisTitle(e,this.xField),e["gridLines.showMajorLines"]=!1,this.xAxisList=[new l.default(e)]},initializeYAxisList:function(){var e=r.default.extend(a.getYAxisProperties(this.properties),this.axisColorScheme,{"axis.orientation":"vertical",isEmpty:this.isEmpty()});e["axisTitle.text"]=this._getComputedYAxisTitle(e,null),this.yAxisList=[new l.default(e)]},setAllSeriesData:function(){var e=this,t=this.formatNumericAxisData(this.xAxisList[0],this.xField),n=this.formatNumericAxisData(this.yAxisList[0],this.yField);this.isMultiSeries?(0,i.default)(this.seriesList).each((function(r){var i=r.getName();r.setData({x:e.filterDataByNameMatch(t,i),y:e.filterDataByNameMatch(n,i)})})):this.seriesList[0].setData({x:t,y:n})},_getDefaultYAxisTitle:function(){return this.yField},_getDefaultXAxisTitleFromField:function(){return this.xField},getPlotOptionsConfig:function(){var e=parseInt(this.properties["chart.markerSize"],10);return{scatter:{stickyTracking:!1,fillOpacity:1,trackByArea:!0,marker:{radius:e?Math.ceil(6*e/4):6,symbol:"square"},tooltip:{followPointer:!1},cursor:this.chartClickEnabled?"pointer":"default"}}},handlePointClick:function(e,t,n){var r=t.originalIndex,i=n.getName(),o=this.dataSet.getSeries(this.xField),a=this.dataSet.getSeries(this.yField),s=this.isMultiSeries?this.filterDataByNameMatch(o,i)[r]:o[r],l=this.isMultiSeries?this.filterDataByNameMatch(a,i)[r]:a[r],c={},u=void 0;if(this.markField){var d=this.dataSet.getSeries(this.markField);u=this.isMultiSeries?this.filterDataByNameMatch(d,i)[r]:d[r],c["row."+this.markField]=u}var h={type:"pointClick",modifierKey:e.modifierKey,name:this.markField?this.markField:this.isMultiSeries?this.labelField:this.xField,value:this.markField?u:this.isMultiSeries?i:s,name2:this.markField&&this.isMultiSeries?this.labelField:this.yField,value2:this.markField&&this.isMultiSeries?i:l,rowContext:c};c["row."+this.xField]=s,c["row."+this.yField]=l,this.isMultiSeries&&(c["row."+this.labelField]=i),this.trigger(h)},handleLegendClick:function(e,t){var n={},r={type:"legendClick",modifierKey:e.modifierKey,name:this.labelField,value:t,rowContext:n};n["row."+this.labelField]=t,this.trigger(r)},getSeriesPointInfo:function(e,t){var n=t.index,i=this.xAxisList[0],o=this.yAxisList[0],a=e.getName(),s=this.dataSet.getSeries(this.xField),l=this.dataSet.getSeries(this.yField),c=this.isMultiSeries?this.filterDataByNameMatch(s,a)[n]:s[n],u=this.isMultiSeries?this.filterDataByNameMatch(l,a)[n]:l[n],d={isMultiSeries:this.isMultiSeries,xAxisName:this.xField,xValue:i.formatValue(c),yAxisName:this.yField,yValue:o.formatValue(u),markName:null,markValue:null,shouldColorizeTooltipData:this.shouldColorizeTooltipData};if(this.markField){var h=this.dataSet.getSeries(this.markField),p=this.isMultiSeries?this.filterMarkByNameMatch(a)[n]:h[n];r.default.extend(d,{markName:this.markField,markValue:p})}return this.isMultiSeries&&r.default.extend(d,{labelSeriesName:this.labelField}),d},filterDataByNameMatch:function(e,t){var n=this.dataSet.getSeries(this.labelField);return(0,i.default)(e).filter((function(e,r){return n[r]===t}))},filterMarkByNameMatch:function(e){var t=this.dataSet.getSeries(this.labelField),n=this.dataSet.getSeries(this.markField);return(0,i.default)(n).filter((function(n,r){return t[r]===e}))}}),t.default=u,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),i=n(2),o=n(5),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(6)),s=l(n(54));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){s.default.call(this,e,t),this.minorsPerMajor=5,this.minorTickWidth=1}(0,i.inherit)(c,s.default),r.default.extend(c.prototype,{processProperties:function(){s.default.prototype.processProperties.call(this)},onAnimationFinished:function(){},renderGauge:function(){s.default.prototype.renderGauge.call(this),this.tickColor=this.foregroundColor,this.tickFontColor=this.fontColor,this.defaultValueColor=this.isShiny?"black":this.fontColor,this.drawBackground(),this.drawTicks(),this.drawIndicator(this.value)},updateValue:function(e,t){var n=(0,o.getDecimalPrecision)(e,3),r=(0,o.getDecimalPrecision)(t,3);this.valueAnimationPrecision=Math.max(n,r),s.default.prototype.updateValue.call(this,e,t)},getDisplayValue:function(e){var t=Math.pow(10,this.valueAnimationPrecision);return e!==this.value?Math.round(e*t)/t:e},updateValueDisplay:function(){},shouldAnimateTransition:function(){return!0},getFillColor:function(e){var t=void 0;for(t=0;t1?t-1:0),r=1;r3?r-3:0),o=3;o1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},function(e,t,n){var r=n(74),i=n(142),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(o,(function(n){var r="_."+n[0];t&n[1]&&!i(e,r)&&e.push(r)})),e.sort()}},function(e,t,n){var r=n(143);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(144),i=n(145),o=n(146);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o-1},fieldAt:function(e){return this.fields[e]},fieldIsGroupby:function(e){return this.fieldMetadata[e]&&this.fieldMetadata[e].hasOwnProperty("groupby_rank")},getFieldData:function(){var e=this.allDataFields(),t=[e[0]];if(a.isRangeSeriesDataSet(this)){var n=a.getRangeSeriesConfig(this);(0,i.default)(n).each((function(t){e=(0,i.default)(e).without(t.lower,t.upper)}))}return{xFields:t,yFields:(0,i.default)(e).difference(t)}},seriesAt:function(e){return this.seriesList[e]},getSeries:function(e){var t=(0,i.default)(this.fields).indexOf(e);return-1===t?[]:(0,i.default)(this.seriesList[t]).map((function(e){return null===e?"":e}))},getSeriesAsFloats:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getSeries(e),r="zero"===t.nullValueMode,o="log"===t.scale,a=[],l=0;lc;)for(var h,p=s(arguments[c++]),f=u?r(p).concat(u(p)):r(p),m=f.length,g=0;m>g;)d.call(p,h=f[g++])&&(n[h]=p[h]);return n}:l},function(e,t,n){var r=n(27),i=n(83),o=n(185)(!1),a=n(45)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(83),i=n(86),o=n(186);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(44),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(190);e.exports=function(e,t){return r(e,t,!0)}},function(e,t,n){var r=n(191),i=n(14),o=n(36);e.exports=function(e,t,n){var a=0,s=null==e?a:e.length;if("number"==typeof t&&t==t&&s<=2147483647){for(;a>>1,c=e[l];null!==c&&!o(c)&&(n?c<=t:c1?n-1:0),i=1;i1&&(t=1),r.default.extend(!0,e,{labels:{align:"center"},endOnTick:!this.hasTickmarksBetween(),showLastLabel:!1,startOnTick:!0,minRange:t||-1})},processCategories:function(e){return this.originalCategories=e,e.slice(0)},getCategories:function(){return this.properties["axis.categories"]},getPreviousCategories:function(){return this.previousCategories||[]},categoriesAreDirty:function(){return this._categoriesAreDirty},setCategories:function(e){this.previousCategories=this.properties["axis.categories"],this.properties["axis.categories"]=this.processCategories(e),i.default.isEqual(this.properties["axis.categories"],this.previousCategories)||(this._categoriesAreDirty=!0)},redraw:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i0&&0===this.labelRotation)g=M,s=1,r=l=i;else{o=Math.min(y[this.MIN_FONT_SIZE]+10,100),g=this.MIN_FONT_SIZE,l=i*(s=this.skipLabelsToAvoidCollisions?Math.ceil(o/i):1);var w=2*Math.PI/360,x=this.labelRotation*w,A=Math.abs(Math.cos(x)),k=l-10,L=void 0,S=void 0;switch(this.labelRotation){case 0:break;case-45:for(r=[],L=n.chartHeight/2/Math.abs(Math.sin(x)),f=0;f1&&(e.min=Math.round(e.min),e.max=Math.round(e.max))},shouldHideTicks:function(e){var t=this.isVertical?15:20,n=e.getExtremes(),r=n.max-n.min+(this.hasTickmarksBetween()?1:0);return e.len/r0&&this.setSymbolFillOpacity(this.hcSeriesList[0])},onChartLoadOrRedraw:function(e){this.hcSeriesList=(0,i.default)(e.series).filter((function(e){return!1!==e.options.showInLegend})),this.removeEventHandlers(),this.addEventHandlers()},setSymbolFillOpacity:function(e){var t=e.legendSymbol||e.legendLine;if(t){var n=e.color!==s.stripOutAlpha(e.color),r=s.getComputedOpacity(t);this.HIGHLIGHTED_SYMBOL_OPACITY=0===r||n?1:r}},addEventHandlers:function(){var e=this,t={highlightDelay:125,unhighlightDelay:50,onMouseOver:function(t){e.selectField(t),e.trigger("mouseover",[t])},onMouseOut:function(t){e.unSelectField(t),e.trigger("mouseout",[t])}},n=new d.default(t);(0,i.default)(this.hcSeriesList).each((function(t){var o=t.name;(0,i.default)(this.getSeriesLegendObjects(t)).each((function(t){(0,r.default)(t.element).on("mouseover."+this.id,(function(){n.mouseOverHappened(o)})),(0,r.default)(t.element).on("mouseout."+this.id,(function(){n.mouseOutHappened(o)})),this.clickEnabled&&(0,r.default)(t.element).on("click."+this.id,(function(t){var n={type:"click",modifierKey:t.ctrlKey||t.metaKey};e.trigger(n,[o])}))}),this)}),this)},removeEventHandlers:function(){(0,i.default)(this.hcSeriesList).each((function(e){(0,i.default)(this.getSeriesLegendObjects(e)).each((function(e){(0,r.default)(e.element).off("."+this.id)}),this)}),this)},selectField:function(e){(0,i.default)(this.hcSeriesList).each((function(t){t.name!==e?this.unHighlightField(e,t):this.highlightField(e,t)}),this)},unSelectField:function(e){(0,i.default)(this.hcSeriesList).each((function(t){t.name!==e&&this.highlightField(e,t)}),this)},highlightField:function(e,t){t=t||this.getSeriesByFieldName(e);var n=this.getSeriesLegendObjects(t),r=t.color;n.item&&n.item.attr("fill-opacity",this.HIGHLIGHTED_OPACITY),n.line&&n.line.attr("stroke",r),n.symbol&&n.symbol.attr({fill:r,stroke:s.stripOutAlpha(r),"fill-opacity":this.HIGHLIGHTED_SYMBOL_OPACITY})},unHighlightField:function(e,t){t=t||this.getSeriesByFieldName(e);var n=this.getSeriesLegendObjects(t);n.item&&n.item.attr("fill-opacity",this.UNHIGHLIGHTED_OPACITY),n.line&&n.line.attr("stroke",this.UNHIGHLIGHTED_COLOR),n.symbol&&n.symbol.attr({fill:this.UNHIGHLIGHTED_COLOR,stroke:this.UNHIGHLIGHTED_COLOR,"fill-opacity":this.UNHIGHLIGHTED_OPACITY})},updateLegend:function(e){var t=this;t.hcSeriesList&&t.hcSeriesList.length&&e&&t.hcSeriesList.forEach((function(n,r){var i=e.filter((function(e){return e.seriesIndex===r}));if(i.length){var o=""+a.escapeSVG(n.ellipsizedName)+' '+i[0].formattedValue+"";l.setLegendItemText(n.legendItem,o)}else l.setLegendItemText(n.legendItem,a.escapeSVG(n.ellipsizedName))}))},resetLegend:function(){this.hcSeriesList&&this.hcSeriesList.forEach((function(e){l.setLegendItemText(e.legendItem,a.escapeSVG(e.ellipsizedName))}))},getSeriesByFieldName:function(e){return(0,i.default)(this.hcSeriesList).find((function(t){return t.name===e}))},getSeriesLegendObjects:function(e){var t={};return e.legendItem&&(t.item=e.legendItem),e.legendSymbol&&(t.symbol=e.legendSymbol),e.legendLine&&(t.line=e.legendLine),t},destroy:function(){this.off(),this.removeEventHandlers(),this.hcSeriesList=null},renderItemsPreHook:function(e){var t=void 0,n=void 0,r=void 0,i=e.options,s=e.itemStyle,c=e.allItems,u=e.chart,d=u.renderer,h=u.spacingBox,p="horizontal"===i.layout,f=e.symbolWidth,m=i.symbolPadding,g=e.padding||0,b=[],y=new o.default(d);for(r=p?c.length>5?Math.floor(h.width/6):Math.floor(h.width/c.length)-(f+m+10):this.isMultiSeries&&!this.isExportMode?i.itemWidth-this.POINT_VALUE_WIDTH:Math.floor(h.width/6)-(f+m+g),i.originalFormatter||(i.originalFormatter=i.labelFormatter),t=0;t5?(n=r+f+m+10,i.itemWidth=n):this.isMultiSeries&&!this.isExportMode||(i.itemWidth=void 0),t=0;te.chart.spacingBox.height-n)t.verticalAlign="top",t.y=-n,e.offsetWidth<55&&(t.width=55);else{var i=this.getConfig();r.default.extend(t,{verticalAlign:i.verticalAlign,y:i.y,width:i.width})}},renderPreHook:function(e){var t=e.chart.renderer;this._rendererForExport=t.forExport,t.forExport=!0},renderPostHook:function(e){e.chart.renderer.forExport=this._rendererForExport}}),t.default=f,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),i=a(n(1)),o=n(4);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){this.properties=e||{}}var l={seriesCompare:{positioner:function(e,t,n){var r=this.chart.plotWidth,i=this.chart.plotHeight,o=this.chart.plotLeft+r-e,a=n.plotX+this.chart.plotLeft-e/2;return{x:Math.max(this.chart.plotLeft,Math.min(a,o)),y:i+t/2+1}},shape:"square",shared:!0}};s.prototype={BASE_CONFIG:{enabled:!0,backgroundColor:(0,o.getThemeProperty)("TOOLTIP_BACKGROUND_COLOR"),borderColor:(0,o.getThemeProperty)("TOOLTIP_BORDER_COLOR"),hideDelay:0,style:{color:(0,o.getThemeProperty)("TOOLTIP_FONT_COLOR_SOFT")},positioner:function(e,t,n){var i=this.getPosition(e,t,n),o=this.chart.plotWidth,a=this.chart.plotHeight,s=(0,r.default)(this.chart.container).find('[name="reset-zoom"]');if(n.plotX>o&&(i.x=this.chart.plotLeft+o-e-8),n.plotX<0&&(i.x=this.chart.plotLeft+8),n.plotY<0&&(i.y=17),n.plotY>a&&(i.y=a-t+3),s.length>0){var l=s.position();if(l){var c=l.top+s.height();i.y0&&t-2+this.chart.plotTop>n.h&&(t+n.h>=a||t>=n.plotY)&&(i.y=n.h+n.plotY+21),i},getAnchorPostHook:function(e,t,n){return e&&!i.default.isArray(e)&&"column"===e.series.options.type&&(n[0]=e.barX),n}},getConfig:function(){var e=this.properties.mode;return r.default.extend(!0,{},this.BASE_CONFIG,{backgroundColor:(0,o.getThemeProperty)("TOOLTIP_BACKGROUND_COLOR"),borderColor:(0,o.getThemeProperty)("TOOLTIP_BORDER_COLOR"),style:{color:(0,o.getThemeProperty)("TOOLTIP_FONT_COLOR_SOFT")}},{borderColor:this.properties.borderColor},l[e])},destroy:function(){}},t.default=s,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(n(0)),i=d(n(1)),o=d(n(13)),a=n(4),s=d(n(47)),l=d(n(10)),c=d(n(51)),u=d(n(94));function d(e){return e&&e.__esModule?e:{default:e}}function h(){return"dark"===(0,a.getCurrentTheme)()?c.default.resetZoomButtonDark:c.default.resetZoomButton}function p(e,t){this.id=i.default.uniqueId("selection_window"),this.hcChart=e,this.renderer=e.renderer,this.axis=e.xAxis[0],this.axisHasTickmarksBetween="between"===this.axis.options.tickmarkPlacement,this.axisValueOffset=this.axis.tickmarkOffset,this.axisValueSnapper=t,this.isiOS=!!s.default.ios;var n=void 0,o=void 0;this.pointer=e.pointer,this.pointer.selectionMarker.renderer?(this.zIndex=this.pointer.selectionMarker.attr("zIndex"),n=this.pointer.selectionMarker.attr("x"),o=this.pointer.selectionMarker.attr("width")):(this.zIndex=7,n=this.pointer.selectionMarker.x,o=this.pointer.selectionMarker.width);var a=n,l=this.snapXValue(a+o,this.axisHasTickmarksBetween?"ceil":"round","max");this.x=this.snapXValue(a,this.axisHasTickmarksBetween?"floor":"round","min"),this.width=l-this.x,this.createResizeHandles(),this.ownedElements=[this.resizeHandleLeft.element,this.resizeHandleRight.element],this.updateExtremesValues();var c=(0,r.default)(this.hcChart.container);this.defaultContainerCursor=c.css("cursor"),c.on("mousemove."+this.id,(0,i.default)(this.onContainerMouseMove).bind(this)),this.initialized=!0}p.prototype=r.default.extend({},l.default,{handleWidth:s.default.ios?25:10,handleHeight:50,handleBorderColor:"rgb(255,255,255)",handleBgColor:"rgba(79,79,79,0.5)",handleBorderRadius:5,shadedAreaColor:"rgba(100,100,100,0.3)",handleDragStartEvent:function(e){var t=e.target;return!!(t===this.hcChart.chartBackground.element&&this.hcChart.isInsidePlot(e.chartX-this.hcChart.plotLeft,e.chartY-this.hcChart.plotTop)||(0,i.default)(this.ownedElements).contains(t))&&(this.originalTarget=t,this.mouseDownX=this.getCurrentX(),this.mouseDownWidth=this.getCurrentWidth(),this.isDragging=!0,!0)},handleDragEvent:function(e){this.originalTarget===this.hcChart.chartBackground.element&&this.dragSelectionMarker(e),this.originalTarget===this.resizeHandleLeft.element&&this.resizeSelectionLeft(e),this.originalTarget===this.resizeHandleRight.element&&this.resizeSelectionRight(e)},handleDropEvent:function(){this.isDragging&&(this.updateExtremesValues(),this.emitSelectionEvent(),this.isDragging=!1)},getExtremes:function(){return{min:this.startValue,max:this.endValue}},setExtremes:function(e){this.startValue=e.min,this.endValue=e.max},onContainerMouseMove:function(e){(e=this.pointer.normalize(e)).target===this.hcChart.chartBackground.element&&this.hcChart.isInsidePlot(e.chartX-this.hcChart.plotLeft,e.chartY-this.hcChart.plotTop)?(0,r.default)(this.hcChart.container).css("cursor","move"):(0,r.default)(this.hcChart.container).css("cursor",this.defaultContainerCursor)},onChartRedraw:function(){this.axisValueOffset=this.axis.tickmarkOffset,this.x=Math.round(this.axis.toPixels(this.startValue+this.axisValueOffset)),this.width=Math.round(this.axis.toPixels(this.endValue+this.axisValueOffset))-this.x,this.resizeHandleLeft.attr({y:this.hcChart.plotTop+this.hcChart.plotHeight/2-this.handleHeight/2}),this.resizeHandleRight.attr({y:this.hcChart.plotTop+this.hcChart.plotHeight/2-this.handleHeight/2}),this.shadedRegionLeft.attr({x:this.hcChart.plotLeft,y:this.hcChart.plotTop,height:this.hcChart.plotHeight}),this.shadedRegionRight.attr({y:this.hcChart.plotTop,height:this.hcChart.plotHeight}),this.positionResizeHandles("both")},destroy:function(){this.initialized&&(this.resizeHandleLeft.destroy(),this.resizeHandleRight.destroy(),this.handleVerticalLineLeft.destroy(),this.handleVerticalLineRight.destroy(),this.shadedRegionRight.destroy(),this.shadedRegionLeft.destroy(),this.$resetButton.remove(),this.initialized=!1),(0,r.default)(this.hcChart.container).off("mousemove."+this.id),this.off()},dragSelectionMarker:function(e){var t=this.getChartMouseDownX();this.x=this.snapXValue(this.mouseDownX+e.chartX-t,"round"),this.x=Math.max(this.x,this.hcChart.plotLeft),this.x=Math.min(this.x,this.hcChart.plotLeft+this.hcChart.plotWidth-this.getCurrentWidth()),this.positionResizeHandles("both")},resizeSelectionLeft:function(e){var t=this.getCurrentX(),n=this.getCurrentWidth(),r=this.getChartMouseDownX();this.x=this.snapXValue(this.mouseDownX+e.chartX-r,"round"),this.x=Math.max(this.x,this.hcChart.plotLeft);var i=t+n;this.x=Math.min(this.x,this.axis.toPixels(this.axis.toValue(i)-1)),this.width=n-this.x+t,this.positionResizeHandles("left")},resizeSelectionRight:function(e){this.x=this.getCurrentX();var t=this.getChartMouseDownX(),n=this.mouseDownWidth+e.chartX-t,r=this.snapXValue(this.x+n,"round");this.width=r-this.x,this.width=Math.min(this.width,this.hcChart.plotLeft+this.hcChart.plotWidth-this.x),this.width=Math.max(this.width,this.axis.toPixels(1)-this.axis.toPixels(0)),this.positionResizeHandles("right")},getChartMouseDownX:function(){return this.pointer.pinchDown[0]?this.pointer.pinchDown[0].chartX:this.pointer.mouseDownX},emitSelectionEvent:function(){var e=this.axis,t=e.toValue(this.x)+this.axisValueOffset,n=e.toValue(this.x+this.width)-this.axisValueOffset;this.trigger("rangeSelect",[t,n])},createResizeHandles:function(){var e={zIndex:this.zIndex+1,fill:{linearGradient:{x1:0,y1:.5,x2:1,y2:.5},stops:[[0,this.handleBgColor],[1/6,this.handleBorderColor],[2/6,this.handleBgColor],[.5,this.handleBorderColor],[4/6,this.handleBgColor],[5/6,this.handleBorderColor],[1,this.handleBgColor]]},"stroke-width":2,stroke:this.handleBgColor},t={"stroke-width":2,stroke:this.handleBgColor,zIndex:this.zIndex},n={zIndex:this.zIndex,fill:this.shadedAreaColor},a=this.hcChart.plotTop+this.hcChart.plotHeight/2-this.handleHeight/2;this.shadedRegionRight=this.renderer.rect(0,this.hcChart.plotTop,0,this.hcChart.plotHeight).attr(n).add(),this.handleVerticalLineRight=this.renderer.path().attr(t).add(),this.resizeHandleRight=this.renderer.rect(0,a,this.handleWidth,this.handleHeight,this.handleBorderRadius).attr(e).css({cursor:"ew-resize"}).add(),this.shadedRegionLeft=this.renderer.rect(this.hcChart.plotLeft,this.hcChart.plotTop,0,this.hcChart.plotHeight).attr(n).add(),this.handleVerticalLineLeft=this.renderer.path().attr(t).add(),this.resizeHandleLeft=this.renderer.rect(0,a,this.handleWidth,this.handleHeight,this.handleBorderRadius).attr(e).css({cursor:"ew-resize"}).add(),this.positionResizeHandles("both"),this.$resetButton=(0,r.default)((0,i.default)(this.resetButtonTemplate).template({i18n:o.default,getThemedResetZoomButtonCls:h})),this.$resetButton.on("click",(function(e){e.preventDefault()})),this.$resetButton.css({top:this.hcChart.yAxis[0].top+"px",right:this.hcChart.xAxis[0].right+"px",position:"absolute"}),this.$resetButton.appendTo(this.hcChart.container)},positionResizeHandles:function(e){var t=this.x,n=t+this.width,r=this.hcChart.plotTop,i=r+this.hcChart.plotHeight,o=this.hcChart.plotLeft,a=o+this.hcChart.plotWidth;"both"!==e&&"left"!==e||(this.shadedRegionLeft.attr({width:t-o}),this.handleVerticalLineLeft.attr({d:["M",t,r,"L",t,i]}),this.resizeHandleLeft.attr({x:t-this.handleWidth/2})),"both"!==e&&"right"!==e||(this.shadedRegionRight.attr({x:n,width:a-n}),this.handleVerticalLineRight.attr({d:["M",n,r,"L",n,i]}),this.resizeHandleRight.attr({x:n-this.handleWidth/2}))},getCurrentX:function(){return this.resizeHandleLeft.attr("x")+this.handleWidth/2},getCurrentWidth:function(){return this.resizeHandleRight.attr("x")+this.handleWidth/2-this.getCurrentX()},snapXValue:function(e,t){var n=this.axis,r=n.toValue(e);return n.toPixels(this.axisValueSnapper(r-this.axisValueOffset,t)+this.axisValueOffset)},updateExtremesValues:function(){this.startValue=Math.round(this.axis.toValue(this.x)-this.axisValueOffset),this.endValue=Math.round(this.axis.toValue(this.x+this.width)-this.axisValueOffset)},resetButtonTemplate:''}),t.default=p,e.exports=t.default},function(e,t,n){(function(e){var t={lite:".button_button-styles__guid__7d8dbc{-webkit-animation:none 0s ease 0s 1 normal none running;animation:none 0s ease 0s 1 normal none running;-webkit-backface-visibility:visible;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:medium none currentColor;border-collapse:separate;-webkit-border-image:none;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;caption-side:top;clear:none;clip:auto;color:#000;-webkit-columns:auto;columns:auto;-webkit-column-count:auto;column-count:auto;-webkit-column-fill:balance;column-fill:balance;-webkit-column-gap:normal;column-gap:normal;-webkit-column-rule:medium none currentColor;column-rule:medium none currentColor;-webkit-column-span:1;column-span:1;-webkit-column-width:auto;column-width:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;empty-cells:show;float:none;font-family:serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;line-height:normal;height:auto;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none;left:auto;letter-spacing:normal;list-style:disc outside none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;-webkit-perspective:none;perspective:none;-webkit-perspective-origin:50% 50%;perspective-origin:50% 50%;position:static;right:auto;-moz-tab-size:8;tab-size:8;table-layout:auto;text-align:left;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;-webkit-transform:none;transform:none;-webkit-transform-origin:50% 50% 0;transform-origin:50% 50% 0;-webkit-transform-style:flat;transform-style:flat;-webkit-transition:none 0s ease 0s;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;word-spacing:normal;z-index:auto;font-family:Splunk Platform Sans,Proxima Nova,Roboto,Droid,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#3c444d;box-sizing:border-box;display:inline-block;border-width:1px;visibility:inherit;outline:medium none #00a4fd;outline:medium none invert;background:rgba(60,68,77,.4);border-radius:3px;color:#fff;cursor:pointer;font-size:12px;line-height:27px;padding:0 10px;z-index:9999}.button_button-styles__guid__7d8dbc::-moz-focus-inner{border:0;padding:0}.button_button-styles__guid__7d8dbc:active,.button_button-styles__guid__7d8dbc:hover{background:rgba(60,68,77,.35);color:#fff}.button_button-styles__guid__7d8dbc:focus{border-color:rgba(0,164,253,.8);color:#00a4fd}.button_button-styles__guid__7d8dbc[disabled]{background:transparent;color:#c3cbd4;cursor:default}.button_button-styles__guid__7d8dbc[disabled]:hover{background:transparent;color:#c3cbd4;cursor:default}.button-dark-theme_button-styles__guid__7d8dbc{background:#3c444d}.button-dark-theme_button-styles__guid__7d8dbc:active,.button-dark-theme_button-styles__guid__7d8dbc:hover{background:#5c6773;color:#fff}.button-dark-theme_button-styles__guid__7d8dbc:focus{background:#2b3033;color:#006eaa}.panButton_button-styles__guid__7d8dbc{border-radius:1px;line-height:10px;padding:4px 5px}.panButtonDark_button-styles__guid__7d8dbc{border-radius:1px;line-height:10px;padding:4px 5px}.resetZoomButton_button-styles__guid__7d8dbc{margin-top:5px;margin-right:10px}.resetZoomButtonDark_button-styles__guid__7d8dbc{margin-top:5px;margin-right:10px}.resetZoomIcon_button-styles__guid__7d8dbc{margin-right:3px}",enterprise:".button_button-styles__guid__7d8dbc{-webkit-animation:none 0s ease 0s 1 normal none running;animation:none 0s ease 0s 1 normal none running;-webkit-backface-visibility:visible;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:medium none currentColor;border-collapse:separate;-webkit-border-image:none;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;caption-side:top;clear:none;clip:auto;color:#000;-webkit-columns:auto;columns:auto;-webkit-column-count:auto;column-count:auto;-webkit-column-fill:balance;column-fill:balance;-webkit-column-gap:normal;column-gap:normal;-webkit-column-rule:medium none currentColor;column-rule:medium none currentColor;-webkit-column-span:1;column-span:1;-webkit-column-width:auto;column-width:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;empty-cells:show;float:none;font-family:serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;line-height:normal;height:auto;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none;left:auto;letter-spacing:normal;list-style:disc outside none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;-webkit-perspective:none;perspective:none;-webkit-perspective-origin:50% 50%;perspective-origin:50% 50%;position:static;right:auto;-moz-tab-size:8;tab-size:8;table-layout:auto;text-align:left;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;-webkit-transform:none;transform:none;-webkit-transform-origin:50% 50% 0;transform-origin:50% 50% 0;-webkit-transform-style:flat;transform-style:flat;-webkit-transition:none 0s ease 0s;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;word-spacing:normal;z-index:auto;font-family:Splunk Platform Sans,Proxima Nova,Roboto,Droid,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#3c444d;box-sizing:border-box;display:inline-block;border-width:1px;visibility:inherit;outline:medium none #00a4fd;outline:medium none invert;background:rgba(60,68,77,.4);border-radius:3px;color:#fff;cursor:pointer;font-size:12px;line-height:27px;padding:0 10px;z-index:9999}.button_button-styles__guid__7d8dbc::-moz-focus-inner{border:0;padding:0}.button_button-styles__guid__7d8dbc:active,.button_button-styles__guid__7d8dbc:hover{background:rgba(60,68,77,.35);color:#fff}.button_button-styles__guid__7d8dbc:focus{border-color:rgba(0,164,253,.8);color:#00a4fd}.button_button-styles__guid__7d8dbc[disabled]{background:transparent;color:#c3cbd4;cursor:default}.button_button-styles__guid__7d8dbc[disabled]:hover{background:transparent;color:#c3cbd4;cursor:default}.button-dark-theme_button-styles__guid__7d8dbc{background:#3c444d}.button-dark-theme_button-styles__guid__7d8dbc:active,.button-dark-theme_button-styles__guid__7d8dbc:hover{background:#5c6773;color:#fff}.button-dark-theme_button-styles__guid__7d8dbc:focus{background:#2b3033;color:#006eaa}.panButton_button-styles__guid__7d8dbc{border-radius:1px;line-height:10px;padding:4px 5px}.panButtonDark_button-styles__guid__7d8dbc{border-radius:1px;line-height:10px;padding:4px 5px}.resetZoomButton_button-styles__guid__7d8dbc{margin-top:5px;margin-right:10px}.resetZoomButtonDark_button-styles__guid__7d8dbc{margin-top:5px;margin-right:10px}.resetZoomIcon_button-styles__guid__7d8dbc{margin-right:3px}"},n={lite:{button:"button_button-styles__guid__7d8dbc","button-dark-theme":"button-dark-theme_button-styles__guid__7d8dbc button_button-styles__guid__7d8dbc",panButton:"panButton_button-styles__guid__7d8dbc button_button-styles__guid__7d8dbc",panButtonDark:"panButtonDark_button-styles__guid__7d8dbc button-dark-theme_button-styles__guid__7d8dbc button_button-styles__guid__7d8dbc",resetZoomButton:"resetZoomButton_button-styles__guid__7d8dbc button_button-styles__guid__7d8dbc",resetZoomButtonDark:"resetZoomButtonDark_button-styles__guid__7d8dbc button-dark-theme_button-styles__guid__7d8dbc button_button-styles__guid__7d8dbc",resetZoomIcon:"resetZoomIcon_button-styles__guid__7d8dbc"},enterprise:{button:"button_button-styles__guid__7d8dbc","button-dark-theme":"button-dark-theme_button-styles__guid__7d8dbc button_button-styles__guid__7d8dbc",panButton:"panButton_button-styles__guid__7d8dbc button_button-styles__guid__7d8dbc",panButtonDark:"panButtonDark_button-styles__guid__7d8dbc button-dark-theme_button-styles__guid__7d8dbc button_button-styles__guid__7d8dbc",resetZoomButton:"resetZoomButton_button-styles__guid__7d8dbc button_button-styles__guid__7d8dbc",resetZoomButtonDark:"resetZoomButtonDark_button-styles__guid__7d8dbc button-dark-theme_button-styles__guid__7d8dbc button_button-styles__guid__7d8dbc",resetZoomIcon:"resetZoomIcon_button-styles__guid__7d8dbc"}},r=window.__splunkd_partials__&&window.__splunkd_partials__["/services/server/info"]&&window.__splunkd_partials__["/services/server/info"].entry[0].content.product_type,i=window.__splunk_ui_theme__,o=window.$C&&window.$C.SPLUNK_UI_THEME,a="lite"===(i||o||r)?"lite":"enterprise";function s(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}var l=e.guid||s()+s()+s()+s();Object.keys(n[a]).forEach((function(e){var t=n[a][e];n[a][e]=t.replace(/_guid_/g,l)})),t[a]=t[a].replace(/_guid_/g,l),e.exports=[[e.i,t[a],""]],e.exports.locals=n[a],e.guid=l}).call(t,n(37)(e))},function(e,t,n){var r={},i=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}((function(){return window&&document&&document.all&&!window.atob})),o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}((function(e){return document.querySelector(e)})),a=null,s=0,l=[],c=n(203);function u(e,t){for(var n=0;n=0&&l.splice(t,1)}function f(e){var t=document.createElement("style");return e.attrs.type="text/css",m(t,e.attrs),h(e,t),t}function m(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function g(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var l=s++;n=a||(a=f(t)),r=_.bind(null,n,l,!1),i=_.bind(null,n,l,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",m(t,e.attrs),h(e,t),t}(t),r=M.bind(null,n,t),i=function(){p(n),n.href&&URL.revokeObjectURL(n.href)}):(n=f(t),r=v.bind(null,n),i=function(){p(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=i()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=d(e,t);return u(n,t),function(e){for(var i=[],o=0;o'+c.default+"",n='";this.panRightButton||(this.panRightButton=(0,r.default)(n),("between"===this.hcChart.xAxis[0].options.tickmarkPlacement&&e.max>=e.dataMax||"on"===this.hcChart.xAxis[0].options.tickmarkPlacement&&e.max>e.dataMax)&&this.panRightButton.attr("disabled","disabled"),(0,r.default)(this.hcChart.container).append(this.panRightButton)),this.panLeftButton||(this.panLeftButton=(0,r.default)(t),e.min<=e.dataMin&&this.panLeftButton.attr("disabled","disabled"),(0,r.default)(this.hcChart.container).append(this.panLeftButton));var a=this;this.debouncedPanLeft=i.default.debounce((function(){a.handlePan("left"),a.positionButtons()})),this.debouncedPanRight=i.default.debounce((function(){a.handlePan("right"),a.positionButtons()})),this.positionButtons(),this.bindPanListeners()},positionButtons:function(){var e=this.hcChart.legend.options,t=this.hcChart.plotHeight+this.hcChart.plotTop+4,n=this.hcChart.xAxis[0].left-20,r=this.hcChart.xAxis[0].right-("right"===e.align?20:0);this.panRightButton.css({position:"absolute",top:t+"px",right:r+"px"}),this.panLeftButton.css({position:"absolute",top:t+"px",left:n+"px"})},handlePan:function(e){var t=this.hcChart.xAxis[0],n=t.getExtremes(),r=Math.round(n.min),o=Math.round(n.max),a=this.distanceResolver(t,e),s=void 0,l=void 0,c=void 0,u=void 0,d=void 0;"left"===e?(u=n.dataMin,l=Math.max(u,r-a.min),c=o-a.max,lo&&(c>=d&&this.panRightButton.attr("disabled","disabled"),this.panLeftButton.attr("disabled")&&this.panLeftButton.removeAttr("disabled"),s=!0)),t.setExtremes(l,c,!1,!1,{trigger:"pan"}),s&&this.hcChart.redraw(!1)},bindPanListeners:function(){var e=this,t=void 0,n=function(){t&&clearInterval(t)},r=this.hcChart.xAxis[0],i=void 0;this.panLeftButton&&(this.panLeftButton.on("click",(function(t){t.preventDefault(),e.debouncedPanLeft()})),this.panLeftButton.on("mousedown",(function(){n(),t=window.setInterval((function(){e.handlePan("left")}),200)})),this.panLeftButton.on("mouseup",(function(){n(),i=r.getExtremes(),e.trigger("pan",[i.min,i.max])}))),this.panRightButton&&(this.panRightButton.on("click",(function(t){t.preventDefault(),e.debouncedPanRight()})),this.panRightButton.on("mousedown",(function(){n(),t=window.setInterval((function(){e.handlePan("right")}),200)})),this.panRightButton.on("mouseup",(function(){n(),i=r.getExtremes(),e.trigger("pan",[i.min,i.max])})))},onChartResize:function(){this.panLeftButton&&this.panRightButton&&this.positionButtons()},onChartRedraw:function(){this.panLeftButton&&this.panRightButton&&this.positionButtons()},destroy:function(){this.panLeftButton&&(this.panLeftButton.remove(),this.panLeftButton=void 0),this.panRightButton&&(this.panRightButton.remove(),this.panRightButton=void 0),this.off()}}),t.default=p,e.exports=t.default},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(0)),i=u(n(1)),o=u(n(13)),a=n(4),s=u(n(10)),l=u(n(51)),c=u(n(94));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){this.hcChart=e,this.initialize(),this.debouncedZoomOut=i.default.debounce((function(){e.zoomOut()}))}d.prototype=r.default.extend({},s.default,{initialize:function(){this.hcChart.xAxis[0].getExtremes();var e='";this.zoomOutBtn||(this.zoomOutBtn=(0,r.default)(e),(0,r.default)(this.hcChart.container).append(this.zoomOutBtn));var t=this.hcChart.yAxis[0].top,n=this.hcChart.xAxis[0].right;this.zoomOutBtn.css({position:"absolute",top:t+"px",right:n+"px"}),this.addEventHandlers()},addEventHandlers:function(){var e=this;this.zoomOutBtn&&this.zoomOutBtn.on("click",(function(t){t.preventDefault(),e.debouncedZoomOut()}))},destroy:function(){this.zoomOutBtn&&(this.zoomOutBtn.remove(),this.zoomOutBtn=void 0),this.off()}}),t.default=d,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),i=l(n(1)),o=n(2),a=n(4),s=l(n(95));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){s.default.call(this,e),this.showLabels=e.showLabels,this.splitSeries=e.splitSeries}(0,o.inherit)(c,s.default),c.prototype=r.default.extend(c.prototype,{onChartLoadOrRedraw:function(e){"minmax"===this.showLabels&&this.displayMinMax(e.series),"all"===this.showLabels&&this.removeRepeatedZeroValues(e.series)},destroy:function(){this.off()},onChartLoad:function(){},displayMinMax:function(e){var t=i.default.flatten(i.default.pluck(e,"points"));i.default.each(t,(function(e){e.dataLabel&&e.dataLabel.element&&e.dataLabel.element.setAttribute("display","none")}));var n=void 0,r=void 0,o=e.length,a=[],s=[];for(n=0;n=d&&c<=h&&s.push(l);a.push(s)}for(this.splitSeries||(a=[i.default.flatten(a)]),n=0;n=0&&i.default.each(t,(function(e){0===e.y&&e.dataLabel&&e.dataLabel.element&&e.dataLabel.element.setAttribute("display","none")}))}}),t.default=c,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(n(210)),i=d(n(211)),o=d(n(96)),a=d(n(98)),s=d(n(212)),l=d(n(100)),c=d(n(232)),u=d(n(233));function d(e){return e&&e.__esModule?e:{default:e}}t.default={create:function(e){return"column"===e.type?new r.default(e):"bar"===e.type?new i.default(e):"line"===e.type?new o.default(e):"area"===e.type?new a.default(e):"pie"===e.type?new s.default(e):"scatter"===e.type?new l.default(e):"bubble"===e.type?new c.default(e):"range"===e.type?new u.default(e):new r.default(e)}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(9)),i=u(n(0)),o=u(n(1)),a=n(2),s=n(6),l=n(5),c=u(n(52));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){c.default.call(this,e)}(0,a.inherit)(d,c.default),i.default.extend(d.prototype,{CHARTING_PROPERTY_WHITELIST:o.default.union(["columnSpacing","columnFillOpacity"],c.default.prototype.CHARTING_PROPERTY_WHITELIST),type:"column",processProperties:function(){this.fillOpacity=(0,l.parseFloat)(this.properties.columnFillOpacity)||1,this.strokeWidth="overlay"===this.properties.columnGrouping&&"default"===this.properties.stacking?1:0},getConfig:function(){var e=c.default.prototype.getConfig.call(this),t=this.getColor();e.color=(0,s.addAlphaToColor)(t,this.fillOpacity);var n=this.properties.seriesSpacing;return this.strokeWidth>0&&(e.lineWidth=this.strokeWidth,n=n?(0,l.parseFloat)(n)+this.strokeWidth:this.strokeWidth),e.pointPadding=this.computeColumnSpacing(this.properties.columnSpacing),e.groupPadding=this.computeColumnGroupSpacing(n),e},onChartLoadOrRedraw:function(e){c.default.prototype.onChartLoadOrRedraw.call(this,e),this.strokeWidth>0&&(this.hcSeries.graph.attr({stroke:this.getColor()}),this.hcSeries.legendSymbol.attr({stroke:this.getColor(),"stroke-width":1}))},highlight:function(){if(this.hcSeries&&this.hcSeries.graph){var e=this.strokeWidth>0?{stroke:this.getColor()}:{"stroke-width":0};this.hcSeries.graph.attr((0,r.default)({fill:this.getColor(),"fill-opacity":this.fillOpacity},e))}},selectPoint:function(e){var t=this.hcSeries.data[e.index].shapeArgs,n=this.hcSeries.chart.renderer,i=this.hcSeries.group,o=this.strokeWidth>0?{stroke:this.getColor(),"stroke-width":this.strokeWidth,"stroke-linejoin":"round","stroke-opacity":1}:{};this.selectedPointGraphic=n.rect(t.x,t.y,t.width,t.height).attr((0,r.default)({fill:this.getColor(),"fill-opacity":this.fillOpacity,zIndex:1},o)).add(i)},bringToFront:function(){}}),t.default=d,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),i=s(n(1)),o=n(2),a=s(n(52));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){a.default.call(this,e)}(0,o.inherit)(l,a.default),r.default.extend(l.prototype,{CHARTING_PROPERTY_WHITELIST:i.default.union(["barSpacing"],a.default.prototype.CHARTING_PROPERTY_WHITELIST),type:"bar",getConfig:function(){var e=a.default.prototype.getConfig.call(this);return e.pointPadding=this.computeBarSpacing(this.properties.barSpacing),e.groupPadding=this.computeBarGroupSpacing(this.properties.seriesSpacing),e},bringToFront:function(){}}),t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(n(9)),i=d(n(0)),o=d(n(1)),a=n(2),s=u(n(3)),l=u(n(48)),c=d(n(99));function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}function h(e){c.default.call(this,e)}(0,a.inherit)(h,c.default),i.default.extend(h.prototype,{UNHIGHLIGHTED_OPACITY:1,UNHIGHLIGHTED_BASE_COLOR:"rgb(225, 225, 225)",CHARTING_PROPERTY_WHITELIST:o.default.union(["sliceCollapsingThreshold","sliceCollapsingLabel","showPercent","pieInnerSize"],c.default.prototype.CHARTING_PROPERTY_WHITELIST),type:"pie",hasPrettyData:!1,fieldList:[],processProperties:function(){if(this.collapseFieldName=this.properties.sliceCollapsingLabel||"other",this.collapsePercent=.01,this.innerSize="0%",this.properties.hasOwnProperty("pieInnerSize")){var e=parseFloat(this.properties.pieInnerSize);e>=0&&e<=1&&(this.innerSize=100*e+"%")}if(this.properties.hasOwnProperty("sliceCollapsingThreshold")){var t=parseFloat(this.properties.sliceCollapsingThreshold);t>=0&&t<=1&&(this.collapsePercent=t)}},getConfig:function(){return i.default.extend(c.default.prototype.getConfig.call(this),{translatePreHook:(0,o.default)(this.translatePreHook).bind(this),innerSize:this.innerSize})},setData:function(e){var t=this,n=this.data;this.data=[],this.prettyData=[];var r=this,i=e.names,a=e.sizes,c=e.spans,u=e.isTimeBased,d=(0,o.default)(a).reduce((function(e,t){return e+t}),0),h=a.length,p=0,f=0,m=0,g=null,b=function(e){return e>0&&e/d>r.collapsePercent};if(u&&(g=l.determineLabelGranularity(i),this.hasPrettyData=!0),this.fieldList=(0,o.default)(i).map(s.escapeSVG,s),(0,o.default)(a).each((function(e,t){b(a[t])||m++}),this),(0,o.default)(i).each((function(e,n){var r=a[n];if(b(r)||1===m||h<=10)if(u){var i=l.extractBdTime(e),s=l.formatBdTimeAsAxisLabel(i,null,g).join(" "),d=c[n];t.data.push([e,r,d]),t.prettyData.push([s,r,d])}else t.data.push([e,r]);else p+=r,f++,t.fieldList=(0,o.default)(t.fieldList).without(e)})),f>0){var y=this.collapseFieldName+" ("+f+")";this.data.push([y,p]),this.prettyData.push([y,p,null]),this.fieldList.push("__other")}o.default.isEqual(this.data,n)||(this._dataIsDirty=!0)},getFieldList:function(){return this.fieldList},getData:function(){return this.data},getPrettyData:function(){return this.prettyData},highlightPoint:function(e){if(e.graphic){var t=e.color;e.graphic.attr({fill:t,"stroke-width":0,stroke:t})}},getTooltipRows:function(e){return[[e.sliceFieldName,e.sliceName],[(0,r.default)({text:e.seriesName},e.shouldColorizeTooltipData&&{color:e.sliceColor}),e.yValue],[(0,r.default)({text:e.seriesName+"%"},e.shouldColorizeTooltipData&&{color:e.sliceColor}),e.yPercent]]},translatePreHook:function(e){var t=e.chart;e.options.dataLabels.enabled?e.options.size=Math.min(.75*t.plotHeight,t.plotWidth/3):e.options.size=Math.min(.75*t.plotHeight,.75*t.plotWidth)}}),t.default=h,e.exports=t.default},function(e,t,n){e.exports={default:n(214),__esModule:!0}},function(e,t,n){n(215),n(225),e.exports=n(22).Array.from},function(e,t,n){"use strict";var r=n(216)(!0);n(217)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(44),i=n(43);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(218),i=n(39),o=n(219),a=n(23),s=n(27),l=n(53),c=n(220),u=n(102),d=n(224),h=n(12)("iterator"),p=!([].keys&&"next"in[].keys()),f="keys",m="values",g=function(){return this};e.exports=function(e,t,n,b,y,_,v){c(n,t,b);var M,w,x,A=function(e){if(!p&&e in T)return T[e];switch(e){case f:case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",L=y==m,S=!1,T=e.prototype,O=T[h]||T["@@iterator"]||y&&T[y],C=O||A(y),D=y?L?A("entries"):C:void 0,E="Array"==t&&T.entries||O;if(E&&(x=d(E.call(new e)))!==Object.prototype&&x.next&&(u(x,k,!0),r||s(x,h)||a(x,h,g)),L&&O&&O.name!==m&&(S=!0,C=function(){return O.call(this)}),r&&!v||!p&&!S&&T[h]||a(T,h,C),l[t]=C,l[k]=g,y)if(M={values:L?C:A(m),keys:_?C:A(f),entries:D},v)for(w in M)w in T||o(T,w,M[w]);else i(i.P+i.F*(p||S),t,M);return M}},function(e,t){e.exports=!0},function(e,t,n){e.exports=n(23)},function(e,t,n){"use strict";var r=n(221),i=n(42),o=n(102),a={};n(23)(a,n(12)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(25),i=n(222),o=n(89),a=n(45)("IE_PROTO"),s=function(){},l=function(){var e,t=n(81)("iframe"),r=o.length;for(t.style.display="none",n(223).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("