(self["webpackChunkuescustomlms_ui"]=self["webpackChunkuescustomlms_ui"]||[]).push([[998],{1001:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,{Z:function(){return r}})},9662:function(e,t,n){"use strict";var r=n(614),i=n(6330),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a function")}},6077:function(e,t,n){"use strict";var r=n(614),i=String,a=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw new a("Can't set "+i(e)+" as a prototype")}},8999:function(e,t,n){"use strict";var r=n(9405).has;e.exports=function(e){return r(e),e}},5787:function(e,t,n){"use strict";var r=n(7976),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},9670:function(e,t,n){"use strict";var r=n(111),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not an object")}},3013:function(e){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},8321:function(e,t,n){"use strict";var r=n(5668),i=n(4326),a=TypeError;e.exports=r(ArrayBuffer.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==i(e))throw new a("ArrayBuffer expected");return e.byteLength}},8199:function(e,t,n){"use strict";var r=n(1702),i=n(8321),a=r(ArrayBuffer.prototype.slice);e.exports=function(e){if(0!==i(e))return!1;try{return a(e,0,0),!1}catch(t){return!0}}},8846:function(e,t,n){"use strict";var r=n(7854),i=n(1702),a=n(5668),o=n(7067),s=n(8199),l=n(8321),c=n(8645),u=n(4124),d=r.structuredClone,h=r.ArrayBuffer,f=r.DataView,p=r.TypeError,m=Math.min,g=h.prototype,v=f.prototype,b=i(g.slice),y=a(g,"resizable","get"),w=a(g,"maxByteLength","get"),x=i(v.getInt8),_=i(v.setInt8);e.exports=(u||c)&&function(e,t,n){var r,i=l(e),a=void 0===t?i:o(t),g=!y||!y(e);if(s(e))throw new p("ArrayBuffer is detached");if(u&&(e=d(e,{transfer:[e]}),i===a&&(n||g)))return e;if(i>=a&&(!n||g))r=b(e,0,a);else{var v=n&&!g&&w?{maxByteLength:w(e)}:void 0;r=new h(a,v);for(var A=new f(e),k=new f(r),S=m(a,i),T=0;Tn)a[n]=t[n++];return a}},1318:function(e,t,n){"use strict";var r=n(5656),i=n(1400),a=n(6244),o=function(e){return function(t,n,o){var s,l=r(t),c=a(l),u=i(o,c);if(e&&n!==n){while(c>u)if(s=l[u++],s!==s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},3658:function(e,t,n){"use strict";var r=n(9781),i=n(3157),a=TypeError,o=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!o(e,"length").writable)throw new a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},206:function(e,t,n){"use strict";var r=n(1702);e.exports=r([].slice)},1843:function(e,t,n){"use strict";var r=n(6244);e.exports=function(e,t){for(var n=r(e),i=new t(n),a=0;a=s||c<0)throw new a("Incorrect index");for(var u=new t(s),d=0;dn)throw t("Maximum allowed index exceeded");return e}},3678:function(e){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},7871:function(e,t,n){"use strict";var r=n(3823),i=n(5268);e.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},9363:function(e){"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},3823:function(e){"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},6833:function(e,t,n){"use strict";var r=n(8113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:function(e,t,n){"use strict";var r=n(7854),i=n(4326);e.exports="process"===i(r.process)},8113:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(e,t,n){"use strict";var r,i,a=n(7854),o=n(8113),s=a.process,l=a.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=u.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},748:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1060:function(e,t,n){"use strict";var r=n(1702),i=Error,a=r("".replace),o=function(e){return String(new i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=a(e,s,"");return e}},2109:function(e,t,n){"use strict";var r=n(7854),i=n(1236).f,a=n(8880),o=n(8052),s=n(3072),l=n(9920),c=n(4705);e.exports=function(e,t){var n,u,d,h,f,p,m=e.target,g=e.global,v=e.stat;if(u=g?r:v?r[m]||s(m,{}):(r[m]||{}).prototype,u)for(d in t){if(f=t[d],e.dontCallGetSet?(p=i(u,d),h=p&&p.value):h=u[d],n=c(g?d:m+(v?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof f==typeof h)continue;l(f,h)}(e.sham||h&&h.sham)&&a(f,"sham",!0),o(u,d,f,e)}}},7293:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},2104:function(e,t,n){"use strict";var r=n(4374),i=Function.prototype,a=i.apply,o=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},9974:function(e,t,n){"use strict";var r=n(1470),i=n(9662),a=n(4374),o=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}},4374:function(e,t,n){"use strict";var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,n){"use strict";var r=n(4374),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(e,t,n){"use strict";var r=n(9781),i=n(2597),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},5668:function(e,t,n){"use strict";var r=n(1702),i=n(9662);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(a){}}},1470:function(e,t,n){"use strict";var r=n(4326),i=n(1702);e.exports=function(e){if("Function"===r(e))return i(e)}},1702:function(e,t,n){"use strict";var r=n(4374),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);e.exports=r?o:function(e){return function(){return a.apply(e,arguments)}}},5005:function(e,t,n){"use strict";var r=n(7854),i=n(614),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},4942:function(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},8173:function(e,t,n){"use strict";var r=n(9662),i=n(8554);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},738:function(e,t,n){"use strict";var r=n(9662),i=n(9670),a=n(6916),o=n(9303),s=n(4942),l="Invalid size",c=RangeError,u=TypeError,d=Math.max,h=function(e,t,n,r){this.set=e,this.size=t,this.has=n,this.keys=r};h.prototype={getIterator:function(){return s(i(a(this.keys,this.set)))},includes:function(e){return a(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!==t)throw new u(l);var n=o(t);if(n<0)throw new c(l);return new h(e,d(n,0),r(e.has),r(e.keys))}},7854:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},2597:function(e,t,n){"use strict";var r=n(1702),i=n(7908),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},3501:function(e){"use strict";e.exports={}},490:function(e,t,n){"use strict";var r=n(5005);e.exports=r("document","documentElement")},4664:function(e,t,n){"use strict";var r=n(9781),i=n(7293),a=n(317);e.exports=!r&&!i((function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){"use strict";var r=n(1702),i=n(7293),a=n(4326),o=Object,s=r("".split);e.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===a(e)?s(e,""):o(e)}:o},9587:function(e,t,n){"use strict";var r=n(614),i=n(111),a=n(7674);e.exports=function(e,t,n){var o,s;return a&&r(o=t.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(e,s),e}},2788:function(e,t,n){"use strict";var r=n(1702),i=n(614),a=n(5465),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},9909:function(e,t,n){"use strict";var r,i,a,o=n(4811),s=n(7854),l=n(111),c=n(8880),u=n(2597),d=n(5465),h=n(6200),f=n(3501),p="Object already initialized",m=s.TypeError,g=s.WeakMap,v=function(e){return a(e)?i(e):r(e,{})},b=function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}};if(o||d.state){var y=d.state||(d.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw new m(p);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},a=function(e){return y.has(e)}}else{var w=h("state");f[w]=!0,r=function(e,t){if(u(e,w))throw new m(p);return t.facade=e,c(e,w,t),t},i=function(e){return u(e,w)?e[w]:{}},a=function(e){return u(e,w)}}e.exports={set:r,get:i,has:a,enforce:v,getterFor:b}},3157:function(e,t,n){"use strict";var r=n(4326);e.exports=Array.isArray||function(e){return"Array"===r(e)}},4067:function(e,t,n){"use strict";var r=n(648);e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},614:function(e,t,n){"use strict";var r=n(4154),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},4705:function(e,t,n){"use strict";var r=n(7293),i=n(614),a=/#|\.prototype\./,o=function(e,t){var n=l[s(e)];return n===u||n!==c&&(i(t)?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},8554:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},111:function(e,t,n){"use strict";var r=n(614),i=n(4154),a=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===a}:function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){"use strict";e.exports=!1},2190:function(e,t,n){"use strict";var r=n(5005),i=n(614),a=n(7976),o=n(3307),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&a(t.prototype,s(e))}},6333:function(e,t,n){"use strict";var r=n(6916);e.exports=function(e,t,n){var i,a,o=n?e:e.iterator,s=e.next;while(!(i=r(s,o)).done)if(a=t(i.value),void 0!==a)return a}},9212:function(e,t,n){"use strict";var r=n(6916),i=n(9670),a=n(8173);e.exports=function(e,t,n){var o,s;i(e);try{if(o=a(e,"return"),!o){if("throw"===t)throw n;return n}o=r(o,e)}catch(l){s=!0,o=l}if("throw"===t)throw n;if(s)throw o;return i(o),n}},6244:function(e,t,n){"use strict";var r=n(7466);e.exports=function(e){return r(e.length)}},6339:function(e,t,n){"use strict";var r=n(1702),i=n(7293),a=n(614),o=n(2597),s=n(9781),l=n(6530).CONFIGURABLE,c=n(2788),u=n(9909),d=u.enforce,h=u.get,f=String,p=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),b=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===m(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),b&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=d(e);return o(r,"source")||(r.source=v(y,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return a(this)&&h(this).source||c(this)}),"toString")},4758:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},6277:function(e,t,n){"use strict";var r=n(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},3070:function(e,t,n){"use strict";var r=n(9781),i=n(4664),a=n(3353),o=n(9670),s=n(4948),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";t.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=u(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){"use strict";var r=n(9781),i=n(6916),a=n(5296),o=n(9114),s=n(5656),l=n(4948),c=n(2597),u=n(4664),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(n){}if(c(e,t))return o(!i(a.f,e,t),e[t])}},8006:function(e,t,n){"use strict";var r=n(6324),i=n(748),a=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},5181:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},9518:function(e,t,n){"use strict";var r=n(2597),i=n(614),a=n(7908),o=n(6200),s=n(8544),l=o("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=a(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},7976:function(e,t,n){"use strict";var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){"use strict";var r=n(1702),i=n(2597),a=n(5656),o=n(1318).indexOf,s=n(3501),l=r([].push);e.exports=function(e,t){var n,r=a(e),c=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&l(u,n);while(t.length>c)i(r,n=t[c++])&&(~o(u,n)||l(u,n));return u}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){"use strict";var r=n(5668),i=n(9670),a=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(o){}return function(n,r){return i(n),a(r),t?e(n,r):n.__proto__=r,n}}():void 0)},2140:function(e,t,n){"use strict";var r=n(6916),i=n(614),a=n(111),o=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!a(s=r(n,e)))return s;if(i(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw new o("Can't convert object to primitive value")}},3887:function(e,t,n){"use strict";var r=n(5005),i=n(1702),a=n(8006),o=n(5181),s=n(9670),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?l(t,n(e)):t}},7066:function(e,t,n){"use strict";var r=n(9670);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},4488:function(e,t,n){"use strict";var r=n(8554),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},7152:function(e,t,n){"use strict";var r=n(7854),i=n(2104),a=n(614),o=n(9363),s=n(8113),l=n(206),c=n(8053),u=r.Function,d=/MSIE .\./.test(s)||o&&function(){var e=r.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}();e.exports=function(e,t){var n=t?2:1;return d?function(r,o){var s=c(arguments.length,1)>n,d=a(r)?r:u(r),h=s?l(arguments,n):[],f=s?function(){i(d,this,h)}:d;return t?e(f,o):e(f)}:e}},6283:function(e,t,n){"use strict";var r=n(9405),i=n(7758),a=r.Set,o=r.add;e.exports=function(e){var t=new a;return i(e,(function(e){o(t,e)})),t}},7075:function(e,t,n){"use strict";var r=n(8999),i=n(9405),a=n(6283),o=n(1043),s=n(738),l=n(7758),c=n(6333),u=i.has,d=i.remove;e.exports=function(e){var t=r(this),n=s(e),i=a(t);return o(t)<=n.size?l(t,(function(e){n.includes(e)&&d(i,e)})):c(n.getIterator(),(function(e){u(t,e)&&d(i,e)})),i}},9405:function(e,t,n){"use strict";var r=n(1702),i=Set.prototype;e.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i["delete"]),proto:i}},1920:function(e,t,n){"use strict";var r=n(8999),i=n(9405),a=n(1043),o=n(738),s=n(7758),l=n(6333),c=i.Set,u=i.add,d=i.has;e.exports=function(e){var t=r(this),n=o(e),i=new c;return a(t)>n.size?l(n.getIterator(),(function(e){d(t,e)&&u(i,e)})):s(t,(function(e){n.includes(e)&&u(i,e)})),i}},8239:function(e,t,n){"use strict";var r=n(8999),i=n(9405).has,a=n(1043),o=n(738),s=n(7758),l=n(6333),c=n(9212);e.exports=function(e){var t=r(this),n=o(e);if(a(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var u=n.getIterator();return!1!==l(u,(function(e){if(i(t,e))return c(u,"normal",!1)}))}},9180:function(e,t,n){"use strict";var r=n(8999),i=n(1043),a=n(7758),o=n(738);e.exports=function(e){var t=r(this),n=o(e);return!(i(t)>n.size)&&!1!==a(t,(function(e){if(!n.includes(e))return!1}),!0)}},107:function(e,t,n){"use strict";var r=n(8999),i=n(9405).has,a=n(1043),o=n(738),s=n(6333),l=n(9212);e.exports=function(e){var t=r(this),n=o(e);if(a(t)92||l&&a>94||o&&a>97)return!1;var e=new ArrayBuffer(8),t=c(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},6293:function(e,t,n){"use strict";var r=n(7392),i=n(7293),a=n(7854),o=a.String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},261:function(e,t,n){"use strict";var r,i,a,o,s=n(7854),l=n(2104),c=n(9974),u=n(614),d=n(2597),h=n(7293),f=n(490),p=n(206),m=n(317),g=n(8053),v=n(6833),b=n(5268),y=s.setImmediate,w=s.clearImmediate,x=s.process,_=s.Dispatch,A=s.Function,k=s.MessageChannel,S=s.String,T=0,M={},O="onreadystatechange";h((function(){r=s.location}));var L=function(e){if(d(M,e)){var t=M[e];delete M[e],t()}},C=function(e){return function(){L(e)}},D=function(e){L(e.data)},E=function(e){s.postMessage(S(e),r.protocol+"//"+r.host)};y&&w||(y=function(e){g(arguments.length,1);var t=u(e)?e:A(e),n=p(arguments,1);return M[++T]=function(){l(t,void 0,n)},i(T),T},w=function(e){delete M[e]},b?i=function(e){x.nextTick(C(e))}:_&&_.now?i=function(e){_.now(C(e))}:k&&!v?(a=new k,o=a.port2,a.port1.onmessage=D,i=c(o.postMessage,o)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(E)?(i=E,s.addEventListener("message",D,!1)):i=O in m("script")?function(e){f.appendChild(m("script"))[O]=function(){f.removeChild(this),L(e)}}:function(e){setTimeout(C(e),0)}),e.exports={set:y,clear:w}},1400:function(e,t,n){"use strict";var r=n(9303),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},4599:function(e,t,n){"use strict";var r=n(7593),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},7067:function(e,t,n){"use strict";var r=n(9303),i=n(7466),a=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw new a("Wrong length or index");return n}},5656:function(e,t,n){"use strict";var r=n(8361),i=n(4488);e.exports=function(e){return r(i(e))}},9303:function(e,t,n){"use strict";var r=n(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},7466:function(e,t,n){"use strict";var r=n(9303),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},7908:function(e,t,n){"use strict";var r=n(4488),i=Object;e.exports=function(e){return i(r(e))}},7593:function(e,t,n){"use strict";var r=n(6916),i=n(111),a=n(2190),o=n(8173),s=n(2140),l=n(5112),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,l=o(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||a(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},4948:function(e,t,n){"use strict";var r=n(7593),i=n(2190);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},1694:function(e,t,n){"use strict";var r=n(5112),i=r("toStringTag"),a={};a[i]="z",e.exports="[object z]"===String(a)},1340:function(e,t,n){"use strict";var r=n(648),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},4038:function(e,t,n){"use strict";var r=n(5268);e.exports=function(e){try{if(r)return Function('return require("'+e+'")')()}catch(t){}}},6330:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},9711:function(e,t,n){"use strict";var r=n(1702),i=0,a=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+a,36)}},3307:function(e,t,n){"use strict";var r=n(6293);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){"use strict";var r=n(9781),i=n(7293);e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(ee.length)&&(t=e.length);for(var n=0,r=new Array(t);n>16,o=n>>8&255,s=255&n;return"#"+(16777216+65536*(Math.round((r-a)*i)+a)+256*(Math.round((r-o)*i)+o)+(Math.round((r-s)*i)+s)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,n){return e.isColorHex(n)?this.shadeHexColor(t,n):this.shadeRGBColor(t,n)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&"object"===o(e)&&!Array.isArray(e)&&null!=e}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"listToArray",value:function(e){var t,n=[];for(t=0;t1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){var t=String(e).split(/[eE]/);if(1===t.length)return t[0];var n="",r=e<0?"-":"",i=t[0].replace(".",""),a=Number(t[1])+1;if(a<0){for(n=r+"0.";a++;)n+="0";return n+i.replace(/^-/,"")}for(a-=i.length;a--;)n+="0";return i+n}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),n=e.clientHeight,r=e.clientWidth;return n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[r-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),n]}},{key:"getBoundingClientRect",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce((function(e,t){return Array.isArray(t)&&(t=t.reduce((function(e,t){return e.length>t.length?e:t}))),e.length>t.length?e:t}),0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==e.substring(0,1)&&(e="#999999");var n=e.replace("#","");n=n.match(new RegExp("(.{"+n.length/3+"})","g"));for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"x",n=e.toString().slice();return n.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,n){if(n>=e.length)for(var r=n-e.length+1;r--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e.style.key=t[n])}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0&&parseInt(e.substring(r+5,e.indexOf(".",r)),10)}},{key:"getGCD",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,r=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,t))));for(e=Math.round(Math.abs(e)*r),t=Math.round(Math.abs(t)*r);t;){var i=t;t=e%t,e=i}return e/r}},{key:"getPrimeFactors",value:function(e){for(var t=[],n=2;e>=2;)e%n==0?(t.push(n),e/=n):n++;return t}},{key:"mod",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,r=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,t))));return(e=Math.round(Math.abs(e)*r))%(t=Math.round(Math.abs(t)*r))/r}}]),e}(),x=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.setEasingFunctions()}return c(e,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;case"easeinout":default:e="<>";break;case"swing":e=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1};break;case"bounce":e=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375};break;case"elastic":e=function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,n,r){e.attr(t).animate(r).attr(n)}},{key:"animateMarker",value:function(e,t,n,r){e.attr({opacity:0}).animate(t,n).attr({opacity:1}).afterAll((function(){r()}))}},{key:"animateRect",value:function(e,t,n,r,i){e.attr(t).animate(r).attr(n).afterAll((function(){return i()}))}},{key:"animatePathsGradually",value:function(e){var t=e.el,n=e.realIndex,r=e.j,i=e.fill,a=e.pathFrom,o=e.pathTo,s=e.speed,l=e.delay,c=this.w,u=0;c.config.chart.animations.animateGradually.enabled&&(u=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(u=0),this.morphSVG(t,n,r,"line"!==c.config.chart.type||c.globals.comboCharts?i:"stroke",a,o,s,l*u)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(e){var t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")}))}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof t.config.chart.events.animationEnd&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,n,r,i,a,o,s){var l=this,c=this.w;i||(i=e.attr("pathFrom")),a||(a=e.attr("pathTo"));var u=function(e){return"radar"===c.config.chart.type&&(o=1),"M 0 ".concat(c.globals.gridHeight)};(!i||i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i=u()),(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=u()),c.globals.shouldAnimate||(o=1),e.plot(i).animate(1,c.globals.easing,s).plot(i).animate(o,c.globals.easing,s).plot(a).afterAll((function(){w.isNumber(n)?n===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(e):"none"!==r&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&t===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(e),l.showDelayedElements()}))}}]),e}(),_=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"getDefaultFilter",value:function(e,t){var n=this.w;e.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==n.config.states.normal.filter?this.applyFilter(e,t,n.config.states.normal.filter.type,n.config.states.normal.filter.value):n.config.chart.dropShadow.enabled&&this.dropShadow(e,n.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var n=this.w;n.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,n.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,n){var r=this,i=this.w,a=n.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var n=i.config.chart.dropShadow;(n.enabled?r.addShadow(e,t,n):e).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:a}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,n){var r=this,i=this.w,a=n.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var n=i.config.chart.dropShadow;(n.enabled?r.addShadow(e,t,n):e).componentTransfer({rgb:{type:"linear",slope:a}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(n){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:r});break;case"darken":this.addDarkenFilter(e,t,{intensity:r})}}},{key:"addShadow",value:function(e,t,n){var r,i=this.w,a=n.blur,o=n.top,s=n.left,l=n.color,c=n.opacity;if((null===(r=i.config.chart.dropShadow.enabledOnSeries)||void 0===r?void 0:r.length)>0&&-1===i.config.chart.dropShadow.enabledOnSeries.indexOf(t))return e;var u=e.flood(Array.isArray(l)?l[t]:l,c).composite(e.sourceAlpha,"in").offset(s,o).gaussianBlur(a).merge(e.source);return e.blend(e.source,u)}},{key:"dropShadow",value:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=t.top,o=t.left,s=t.blur,l=t.color,c=t.opacity,u=t.noUserSpaceOnUse,d=this.w;return e.unfilter(!0),w.isIE()&&"radialBar"===d.config.chart.type||(null===(n=d.config.chart.dropShadow.enabledOnSeries)||void 0===n?void 0:n.length)>0&&-1===(null===(r=d.config.chart.dropShadow.enabledOnSeries)||void 0===r?void 0:r.indexOf(i))||(l=Array.isArray(l)?l[i]:l,e.filter((function(e){var t=null;t=w.isSafari()||w.isFirefox()||w.isIE()?e.flood(l,c).composite(e.sourceAlpha,"in").offset(o,a).gaussianBlur(s):e.flood(l,c).composite(e.sourceAlpha,"in").offset(o,a).gaussianBlur(s).merge(e.source),e.blend(e.source,t)})),u||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,n){var r=this.w;if(void 0!==r.globals.selectedDataPoints[t]&&r.globals.selectedDataPoints[t].indexOf(n)>-1){e.node.setAttribute("selected",!0);var i=r.config.states.active.filter;"none"!==i&&this.applyFilter(e,t,i.type,i.value)}}},{key:"_scaleFilterSize",value:function(e){!function(t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),e}(),A=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"roundPathCorners",value:function(e,t){function n(e,t,n){var i=t.x-e.x,a=t.y-e.y,o=Math.sqrt(i*i+a*a);return r(e,t,Math.min(1,n/o))}function r(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function i(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function a(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}e.indexOf("NaN")>-1&&(e="");var o=e.split(/[,\s]/).reduce((function(e,t){var n=t.match("([a-zA-Z])(.+)");return n?(e.push(n[1]),e.push(n[2])):e.push(t),e}),[]).reduce((function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e}),[]),s=[];if(o.length>1){var l=a(o[0]),c=null;"Z"==o[o.length-1][0]&&o[0].length>2&&(c=["L",l.x,l.y],o[o.length-1]=c),s.push(o[0]);for(var u=1;u2&&"L"==h[0]&&f.length>2&&"L"==f[0]){var p,m,g=a(d),v=a(h),b=a(f);p=n(v,g,t),m=n(v,b,t),i(h,p),h.origPoint=v,s.push(h);var y=r(p,v,.5),w=r(v,m,.5),x=["C",y.x,y.y,w.x,w.y,m.x,m.y];x.origPoint=v,s.push(x)}else s.push(h)}if(c){var _=a(s[s.length-1]);s.push(["Z"]),i(s[0],_)}}else s=o;return s.reduce((function(e,t){return e+t.join(" ")+" "}),"")}},{key:"drawLine",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:t,x2:n,y2:r,stroke:i,"stroke-dasharray":a,"stroke-width":o,"stroke-linecap":s})}},{key:"drawRect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,u=this.w.globals.dom.Paper.rect();return u.attr({x:e,y:t,width:n>0?n:0,height:r>0?r:0,rx:i,ry:i,opacity:o,"stroke-width":null!==s?s:0,stroke:null!==l?l:"none","stroke-dasharray":c}),u.node.setAttribute("fill",a),u}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(e).attr({fill:r,stroke:t,"stroke-width":n})}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e<0&&(e=0);var n=this.w.globals.dom.Paper.circle(2*e);return null!==t&&n.attr(t),n}},{key:"drawPath",value:function(e){var t=e.d,n=void 0===t?"":t,r=e.stroke,i=void 0===r?"#a8a8a8":r,a=e.strokeWidth,o=void 0===a?1:a,s=e.fill,l=e.fillOpacity,c=void 0===l?1:l,u=e.strokeOpacity,d=void 0===u?1:u,h=e.classes,f=e.strokeLinecap,p=void 0===f?null:f,m=e.strokeDashArray,g=void 0===m?0:m,v=this.w;return null===p&&(p=v.config.stroke.lineCap),(n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n="M 0 ".concat(v.globals.gridHeight)),v.globals.dom.Paper.path(n).attr({fill:s,"fill-opacity":c,stroke:i,"stroke-opacity":d,"stroke-linecap":p,"stroke-width":o,"stroke-dasharray":g,class:h})}},{key:"group",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w.globals.dom.Paper.group();return null!==e&&t.attr(e),t}},{key:"move",value:function(e,t){var n=["M",e,t].join(" ");return n}},{key:"line",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=null;return null===n?r=[" L",e,t].join(" "):"H"===n?r=[" H",e].join(" "):"V"===n&&(r=[" V",t].join(" ")),r}},{key:"curve",value:function(e,t,n,r,i,a){var o=["C",e,t,n,r,i,a].join(" ");return o}},{key:"quadraticCurve",value:function(e,t,n,r){return["Q",e,t,n,r].join(" ")}},{key:"arc",value:function(e,t,n,r,i,a,o){var s="A";arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(s="a");var l=[s,e,t,n,r,i,a,o].join(" ");return l}},{key:"renderPaths",value:function(e){var t,n=e.j,r=e.realIndex,i=e.pathFrom,o=e.pathTo,s=e.stroke,l=e.strokeWidth,c=e.strokeLinecap,u=e.fill,d=e.animationDelay,h=e.initialSpeed,f=e.dataChangeSpeed,p=e.className,m=e.shouldClipToGrid,g=void 0===m||m,v=e.bindEventsOnPaths,b=void 0===v||v,y=e.drawShadow,w=void 0===y||y,A=this.w,k=new _(this.ctx),S=new x(this.ctx),T=this.w.config.chart.animations.enabled,M=T&&this.w.config.chart.animations.dynamicAnimation.enabled,O=!!(T&&!A.globals.resized||M&&A.globals.dataChanged&&A.globals.shouldAnimate);O?t=i:(t=o,A.globals.animationEnded=!0);var L=A.config.stroke.dashArray,C=0;C=Array.isArray(L)?L[r]:A.config.stroke.dashArray;var D=this.drawPath({d:t,stroke:s,strokeWidth:l,fill:u,fillOpacity:1,classes:p,strokeLinecap:c,strokeDashArray:C});if(D.attr("index",r),g&&D.attr({"clip-path":"url(#gridRectMask".concat(A.globals.cuid,")")}),"none"!==A.config.states.normal.filter.type)k.getDefaultFilter(D,r);else if(A.config.chart.dropShadow.enabled&&w){var E=A.config.chart.dropShadow;k.dropShadow(D,E,r)}b&&(D.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,D)),D.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,D)),D.node.addEventListener("mousedown",this.pathMouseDown.bind(this,D))),D.attr({pathTo:o,pathFrom:i});var P={el:D,j:n,realIndex:r,pathFrom:i,pathTo:o,fill:u,strokeWidth:l,delay:d};return!T||A.globals.resized||A.globals.dataChanged?!A.globals.resized&&A.globals.dataChanged||S.showDelayedElements():S.animatePathsGradually(a(a({},P),{},{speed:h})),A.globals.dataChanged&&M&&O&&S.animatePathsGradually(a(a({},P),{},{speed:f})),D}},{key:"drawPattern",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,n,(function(a){"horizontalLines"===e?a.line(0,0,n,0).stroke({color:r,width:i+1}):"verticalLines"===e?a.line(0,0,0,t).stroke({color:r,width:i+1}):"slantedLines"===e?a.line(0,0,t,n).stroke({color:r,width:i}):"squares"===e?a.rect(t,n).fill("none").stroke({color:r,width:i}):"circles"===e&&a.circle(t).fill("none").stroke({color:r,width:i})}))}},{key:"drawGradient",value:function(e,t,n,r,i){var a,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=this.w;t.length<9&&0===t.indexOf("#")&&(t=w.hexToRgba(t,r)),n.length<9&&0===n.indexOf("#")&&(n=w.hexToRgba(n,i));var d=0,h=1,f=1,p=null;null!==s&&(d=void 0!==s[0]?s[0]/100:0,h=void 0!==s[1]?s[1]/100:1,f=void 0!==s[2]?s[2]/100:1,p=void 0!==s[3]?s[3]/100:null);var m=!("donut"!==u.config.chart.type&&"pie"!==u.config.chart.type&&"polarArea"!==u.config.chart.type&&"bubble"!==u.config.chart.type);if(a=null===l||0===l.length?u.globals.dom.Paper.gradient(m?"radial":"linear",(function(e){e.at(d,t,r),e.at(h,n,i),e.at(f,n,i),null!==p&&e.at(p,t,r)})):u.globals.dom.Paper.gradient(m?"radial":"linear",(function(e){(Array.isArray(l[c])?l[c]:l).forEach((function(t){e.at(t.offset/100,t.color,t.opacity)}))})),m){var g=u.globals.gridWidth/2,v=u.globals.gridHeight/2;"bubble"!==u.config.chart.type?a.attr({gradientUnits:"userSpaceOnUse",cx:g,cy:v,r:o}):a.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===e?a.from(0,0).to(0,1):"diagonal"===e?a.from(0,0).to(1,1):"horizontal"===e?a.from(0,1).to(1,1):"diagonal2"===e&&a.from(1,0).to(0,1);return a}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,n=e.maxWidth,r=e.fontSize,i=e.fontFamily,a=this.getTextRects(t,r,i),o=a.width/t.length,s=Math.floor(n/o);return n-1){var s=n.globals.selectedDataPoints[i].indexOf(a);n.globals.selectedDataPoints[i].splice(s,1)}}else{if(!n.config.states.active.allowMultipleDataPointsSelection&&n.globals.selectedDataPoints.length>0){n.globals.selectedDataPoints=[];var l=n.globals.dom.Paper.select(".apexcharts-series path").members,c=n.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,u=function(e){Array.prototype.forEach.call(e,(function(e){e.node.setAttribute("selected","false"),r.getDefaultFilter(e,i)}))};u(l),u(c)}e.node.setAttribute("selected","true"),o="true",void 0===n.globals.selectedDataPoints[i]&&(n.globals.selectedDataPoints[i]=[]),n.globals.selectedDataPoints[i].push(a)}if("true"===o){var d=n.config.states.active.filter;if("none"!==d)r.applyFilter(e,i,d.type,d.value);else if("none"!==n.config.states.hover.filter&&!n.globals.isTouchDevice){var h=n.config.states.hover.filter;r.applyFilter(e,i,h.type,h.value)}}else"none"!==n.config.states.active.filter.type&&("none"===n.config.states.hover.filter.type||n.globals.isTouchDevice?r.getDefaultFilter(e,i):(h=n.config.states.hover.filter,r.applyFilter(e,i,h.type,h.value)));"function"==typeof n.config.chart.events.dataPointSelection&&n.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:i,dataPointIndex:a,w:n}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:i,dataPointIndex:a,w:n}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&"function"==typeof e.getBBox&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,n,r){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.w,o=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:n,foreColor:"#fff",opacity:0});r&&o.attr("transform",r),a.globals.dom.Paper.add(o);var s=o.bbox();return i||(s=o.node.getBoundingClientRect()),o.remove(),{width:s.width,height:s.height}}},{key:"placeTextWithEllipsis",value:function(e,t,n){if("function"==typeof e.getComputedTextLength&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=n/1.1)){for(var r=t.length-3;r>0;r-=3)if(e.getSubStringLength(0,r)<=n/1.1)return void(e.textContent=t.substring(0,r)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}}]),e}(),k=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.w,n=[];if(0===t.globals.series.length)return n;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.w.config.series.reduce((function(e,t){return e+t}),0):this.w.globals.series[e].reduce((function(e,t){return e+t}),0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var e=this,t=this.w,n=[];return t.globals.seriesGroups.forEach((function(r){var i=[];t.config.series.forEach((function(e,n){r.indexOf(t.globals.seriesNames[n])>-1&&i.push(n)}));var a=t.globals.series.map((function(e,t){return-1===i.indexOf(t)?t:-1})).filter((function(e){return-1!==e}));n.push(e.getStackedSeriesTotals(a))})),n}},{key:"setSeriesYAxisMappings",value:function(){var e=this.w.globals,t=this.w.config,n=[],r=[],i=[],a=e.series.length>t.yaxis.length||t.yaxis.some((function(e){return Array.isArray(e.seriesName)}));t.series.forEach((function(e,t){i.push(t),r.push(null)})),t.yaxis.forEach((function(e,t){n[t]=[]}));var o=[];t.yaxis.forEach((function(e,r){var s=!1;if(e.seriesName){var l=[];Array.isArray(e.seriesName)?l=e.seriesName:l.push(e.seriesName),l.forEach((function(e){t.series.forEach((function(t,o){if(t.name===e){var l=o;r===o||a?!a||i.indexOf(o)>-1?n[r].push([r,o]):console.warn("Series '"+t.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(n[o].push([o,r]),l=r),s=!0,-1!==(l=i.indexOf(l))&&i.splice(l,1)}}))}))}s||o.push(r)})),n=n.map((function(e,t){var n=[];return e.forEach((function(e){r[e[1]]=e[0],n.push(e[1])})),n}));for(var s=t.yaxis.length-1,l=0;l0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===e?this.w.config.series.filter((function(e){return null!==e})):this.w.config.series[e].data.filter((function(e){return null!==e}))).length}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every((function(e,t,n){return e===n[0]}))}},{key:"getCategoryLabels",value:function(e){var t=this.w,n=e.slice();return t.config.xaxis.convertedCatToNumeric&&(n=e.map((function(e,n){return t.config.xaxis.labels.formatter(e-t.globals.minX+1)}))),n}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map((function(e){return e.length})).indexOf(Math.max.apply(Math,e.globals.series.map((function(e){return e.length}))))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach((function(e){t=Math.max(t,e)})),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach((function(e){t=Math.max(t,e.size)})),t>0&&(t+=e.config.markers.hover.sizeOffset+1),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map((function(e,t){var n=0;if(Array.isArray(e))for(var r=0;re&&n.globals.seriesX[i][o]0){var f=function(e,t){var n=i.config.yaxis[i.globals.seriesYAxisReverseMap[t]],a=e<0?-1:1;return e=Math.abs(e),n.logarithmic&&(e=r.getBaseLog(n.logBase,e)),-a*e/o[t]};if(a.isMultipleYAxis){l=[];for(var p=0;p0&&t.forEach((function(t){var o=[],s=[];e.i.forEach((function(n,r){i.config.series[n].group===t&&(o.push(e.series[r]),s.push(n))})),o.length>0&&a.push(r.draw(o,n,s))})),a}}],[{key:"checkComboSeries",value:function(e,t){var n=!1,r=0,i=0;return void 0===t&&(t="line"),e.length&&void 0!==e[0].type&&e.forEach((function(e){"bar"!==e.type&&"column"!==e.type&&"candlestick"!==e.type&&"boxPlot"!==e.type||r++,void 0!==e.type&&e.type!==t&&i++})),i>0&&(n=!0),{comboBarCount:r,comboCharts:n}}},{key:"extendArrayProps",value:function(e,t,n){var r,i,a,o,s,l;return null!==(r=t)&&void 0!==r&&r.yaxis&&(t=e.extendYAxis(t,n)),null!==(i=t)&&void 0!==i&&i.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),null!==(a=t)&&void 0!==a&&null!==(o=a.annotations)&&void 0!==o&&o.xaxis&&(t=e.extendXAxisAnnotations(t)),null!==(s=t)&&void 0!==s&&null!==(l=s.annotations)&&void 0!==l&&l.points&&(t=e.extendPointAnnotations(t))),t}}]),e}(),S=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t}return c(e,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.w;if("vertical"===e.label.orientation){var r=null!==t?t:0,i=n.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(r,"']"));if(null!==i){var a=i.getBoundingClientRect();i.setAttribute("x",parseFloat(i.getAttribute("x"))-a.height+4),"top"===e.label.position?i.setAttribute("y",parseFloat(i.getAttribute("y"))+a.width):i.setAttribute("y",parseFloat(i.getAttribute("y"))-a.width);var o=this.annoCtx.graphics.rotateAroundCenter(i),s=o.x,l=o.y;i.setAttribute("transform","rotate(-90 ".concat(s," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var n=this.w;if(!e||void 0===t.label.text||void 0!==t.label.text&&!String(t.label.text).trim())return null;var r=n.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),i=e.getBoundingClientRect(),a=t.label.style.padding.left,o=t.label.style.padding.right,s=t.label.style.padding.top,l=t.label.style.padding.bottom;"vertical"===t.label.orientation&&(s=t.label.style.padding.left,l=t.label.style.padding.right,a=t.label.style.padding.top,o=t.label.style.padding.bottom);var c=i.left-r.left-a,u=i.top-r.top-s,d=this.annoCtx.graphics.drawRect(c-n.globals.barPadForNumericAxis,u,i.width+a+o,i.height+s+l,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&d.node.classList.add(t.id),d}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,n=function(n,r,i){var a=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations .apexcharts-").concat(i,"-annotation-label[rel='").concat(r,"']"));if(a){var o=a.parentNode,s=e.addBackgroundToAnno(a,n);s&&(o.insertBefore(s.node,a),n.label.mouseEnter&&s.node.addEventListener("mouseenter",n.label.mouseEnter.bind(e,n)),n.label.mouseLeave&&s.node.addEventListener("mouseleave",n.label.mouseLeave.bind(e,n)),n.label.click&&s.node.addEventListener("click",n.label.click.bind(e,n)))}};t.config.annotations.xaxis.map((function(e,t){n(e,t,"xaxis")})),t.config.annotations.yaxis.map((function(e,t){n(e,t,"yaxis")})),t.config.annotations.points.map((function(e,t){n(e,t,"point")}))}},{key:"getY1Y2",value:function(e,t){var n,r="y1"===e?t.y:t.y2,i=!1,a=this.w;if(this.annoCtx.invertAxis){var o=a.globals.labels;a.config.xaxis.convertedCatToNumeric&&(o=a.globals.categoryLabels);var s=o.indexOf(r),l=a.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(s+1)+")");n=l?parseFloat(l.getAttribute("y")):(a.globals.gridHeight/o.length-1)*(s+1)-a.globals.barHeight,void 0!==t.seriesIndex&&a.globals.barHeight&&(n=n-a.globals.barHeight/2*(a.globals.series.length-1)+a.globals.barHeight*t.seriesIndex)}else{var c,u=a.globals.seriesYAxisMap[t.yAxisIndex][0];c=a.config.yaxis[t.yAxisIndex].logarithmic?(r=new k(this.annoCtx.ctx).getLogVal(a.config.yaxis[t.yAxisIndex].logBase,r,u))/a.globals.yLogRatio[u]:(r-a.globals.minYArr[u])/(a.globals.yRange[u]/a.globals.gridHeight),c>a.globals.gridHeight?(c=a.globals.gridHeight,i=!0):c<0&&(c=0,i=!0),n=a.globals.gridHeight-c,!t.marker||void 0!==t.y&&null!==t.y||(n=0),a.config.yaxis[t.yAxisIndex]&&a.config.yaxis[t.yAxisIndex].reversed&&(n=c)}return"string"==typeof r&&r.indexOf("px")>-1&&(n=parseFloat(r)),{yP:n,clipped:i}}},{key:"getX1X2",value:function(e,t){var n,r="x1"===e?t.x:t.x2,i=this.w,a=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,o=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,s=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,l=!1;return n=this.annoCtx.inversedReversedAxis?(o-r)/(s/i.globals.gridWidth):(r-a)/(s/i.globals.gridWidth),"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||i.config.chart.sparkline.enabled||(n=this.getStringX(r)),"string"==typeof r&&r.indexOf("px")>-1&&(n=parseFloat(r)),null==r&&t.marker&&(n=i.globals.gridWidth),void 0!==t.seriesIndex&&i.globals.barWidth&&!this.annoCtx.invertAxis&&(n=n-i.globals.barWidth/2*(i.globals.series.length-1)+i.globals.barWidth*t.seriesIndex),n>i.globals.gridWidth?(n=i.globals.gridWidth,l=!0):n<0&&(n=0,l=!0),{x:n,clipped:l}}},{key:"getStringX",value:function(e){var t=this.w,n=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var r=t.globals.labels.indexOf(e),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(r+1)+")");return i&&(n=parseFloat(i.getAttribute("x"))),n}}]),e}(),T=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new S(this.annoCtx)}return c(e,[{key:"addXaxisAnnotation",value:function(e,t,n){var r,i=this.w,a=this.helpers.getX1X2("x1",e),o=a.x,s=a.clipped,l=!0,c=e.label.text,u=e.strokeDashArray;if(w.isNumber(o)){if(null===e.x2||void 0===e.x2){if(!s){var d=this.annoCtx.graphics.drawLine(o+e.offsetX,0+e.offsetY,o+e.offsetX,i.globals.gridHeight+e.offsetY,e.borderColor,u,e.borderWidth);t.appendChild(d.node),e.id&&d.node.classList.add(e.id)}}else{var h=this.helpers.getX1X2("x2",e);if(r=h.x,l=h.clipped,!s||!l){if(r12?h-12:0===h?12:h;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+l(h))).replace(/(^|[^\\])H/g,"$1"+h)).replace(/(^|[^\\])hh+/g,"$1"+l(f))).replace(/(^|[^\\])h/g,"$1"+f);var p=r?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(p))).replace(/(^|[^\\])m/g,"$1"+p);var m=r?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(m))).replace(/(^|[^\\])s/g,"$1"+m);var g=r?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(g,3)),g=Math.round(g/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(g)),g=Math.round(g/10);var b=h<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+g)).replace(/(^|[^\\])TT+/g,"$1"+b)).replace(/(^|[^\\])T/g,"$1"+b.charAt(0));var y=b.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+y)).replace(/(^|[^\\])t/g,"$1"+y.charAt(0));var w=-e.getTimezoneOffset(),x=r||!w?"Z":w>0?"+":"-";if(!r){var _=(w=Math.abs(w))%60;x+=l(Math.floor(w/60))+":"+l(_)}t=t.replace(/(^|[^\\])K/g,"$1"+x);var A=(r?e.getUTCDay():e.getDay())+1;return(t=(t=(t=(t=t.replace(new RegExp(o[0],"g"),o[A])).replace(new RegExp(s[0],"g"),s[A])).replace(new RegExp(i[0],"g"),i[u])).replace(new RegExp(a[0],"g"),a[u])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,n){var r=this.w;void 0!==r.config.xaxis.min&&(e=r.config.xaxis.min),void 0!==r.config.xaxis.max&&(t=r.config.xaxis.max);var i=this.getDate(e),a=this.getDate(t),o=this.formatDate(i,"yyyy MM dd HH mm ss fff").split(" "),s=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(o[6],10),maxMillisecond:parseInt(s[6],10),minSecond:parseInt(o[5],10),maxSecond:parseInt(s[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(s[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(s[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(s[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(s[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(s[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,n){return this.determineDaysOfMonths(e,t)-n}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,n){var r=this.daysCntOfYear[t]+n;return t>1&&this.isLeapYear()&&r++,r}},{key:"determineDaysOfMonths",value:function(e,t){var n=30;switch(e=w.monthMod(e),!0){case this.months30.indexOf(e)>-1:2===e&&(n=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:n=31}return n}}]),e}(),O=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.tooltipKeyFormat="dd MMM"}return c(e,[{key:"xLabelFormat",value:function(e,t,n,r){var i=this.w;if("datetime"===i.config.xaxis.type&&void 0===i.config.xaxis.labels.formatter&&void 0===i.config.tooltip.x.formatter){var a=new M(this.ctx);return a.formatDate(a.getDate(t),i.config.tooltip.x.format)}return e(t,n,r)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map((function(e){return e})):e}},{key:"defaultYFormatter",value:function(e,t,n){var r=this.w;if(w.isNumber(e))if(0!==r.globals.yValueDecimal)e=e.toFixed(void 0!==t.decimalsInFloat?t.decimalsInFloat:r.globals.yValueDecimal);else{var i=e.toFixed(0);e=e==i?i:e.toFixed(1)}return e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttKeyFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttZFormatter=function(e){return e},t.globals.legendFormatter=function(t){return e.defaultGeneralFormatter(t)},void 0!==t.config.xaxis.labels.formatter?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(e){if(w.isNumber(e)){if(!t.config.xaxis.convertedCatToNumeric&&"numeric"===t.config.xaxis.type){if(w.isNumber(t.config.xaxis.decimalsInFloat))return e.toFixed(t.config.xaxis.decimalsInFloat);var n=t.globals.maxX-t.globals.minX;return n>0&&n<100?e.toFixed(1):e.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?e.toFixed(1):e.toFixed(0)}return e},"function"==typeof t.config.tooltip.x.formatter?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,"function"==typeof t.config.xaxis.tooltip.formatter&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||void 0!==t.config.tooltip.y.formatter)&&(t.globals.ttVal=t.config.tooltip.y),void 0!==t.config.tooltip.z.formatter&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach((function(n,r){void 0!==n.labels.formatter?t.globals.yLabelFormatters[r]=n.labels.formatter:t.globals.yLabelFormatters[r]=function(i){return t.globals.xyCharts?Array.isArray(i)?i.map((function(t){return e.defaultYFormatter(t,n,r)})):e.defaultYFormatter(i,n,r):i}})),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if("heatmap"===e.config.chart.type){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce((function(e,t){return e.length>t.length?e:t}),0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),e}(),L=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"getLabel",value:function(e,t,n,r){var i,a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c=this.w,u=void 0===e[r]?"":e[r],d=u,h=c.globals.xLabelFormatter,f=c.config.xaxis.labels.formatter,p=!1,m=new O(this.ctx),g=u;l&&(d=m.xLabelFormat(h,u,g,{i:r,dateFormatter:new M(this.ctx).formatDate,w:c}),void 0!==f&&(d=f(u,e[r],{i:r,dateFormatter:new M(this.ctx).formatDate,w:c}))),t.length>0?(i=t[r].unit,a=null,t.forEach((function(e){"month"===e.unit?a="year":"day"===e.unit?a="month":"hour"===e.unit?a="day":"minute"===e.unit&&(a="hour")})),p=a===i,n=t[r].position,d=t[r].value):"datetime"===c.config.xaxis.type&&void 0===f&&(d=""),void 0===d&&(d=""),d=Array.isArray(d)?d:d.toString();var v=new A(this.ctx),b={};b=c.globals.rotateXLabels&&l?v.getTextRects(d,parseInt(s,10),null,"rotate(".concat(c.config.xaxis.labels.rotate," 0 0)"),!1):v.getTextRects(d,parseInt(s,10));var y=!c.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(d)&&("NaN"===String(d)||o.indexOf(d)>=0&&y)&&(d=""),{x:n,text:d,textRect:b,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,n){var r=this.w,i=r.config.xaxis.tickAmount;return"dataPoints"===i&&(i=Math.round(r.globals.gridWidth/120)),i>n||e%Math.round(n/(i+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,n,r,i){var a=this.w;if(0===e&&a.globals.skipFirstTimelinelabel&&(t.text=""),e===n-1&&a.globals.skipLastTimelinelabel&&(t.text=""),a.config.xaxis.labels.hideOverlappingLabels&&r.length>0){var o=i[i.length-1];t.xr.length||r.some((function(e){return Array.isArray(e.seriesName)}))?e:n.seriesYAxisReverseMap[e]}},{key:"isYAxisHidden",value:function(e){var t=this.w,n=t.config.yaxis[e];if(!n.show||this.yAxisAllSeriesCollapsed(e))return!0;if(!n.showForNullSeries){var r=t.globals.seriesYAxisMap[e],i=new k(this.ctx);return r.every((function(e){return i.isSeriesNull(e)}))}return!1}},{key:"getYAxisForeColor",value:function(e,t){var n=this.w;return Array.isArray(e)&&n.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,n.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,n,r,i,a,o){var s=this.w,l=new A(this.ctx),c=s.globals.translateY+s.config.yaxis[i].labels.offsetY;if(s.globals.isBarHorizontal?c=0:"heatmap"===s.config.chart.type&&(c+=a/2),r.show&&t>0){!0===s.config.yaxis[i].opposite&&(e+=r.width);for(var u=t;u>=0;u--){var d=l.drawLine(e+n.offsetX-r.width+r.offsetX,c+r.offsetY,e+n.offsetX+r.offsetX,c+r.offsetY,r.color);o.add(d),c+=a}}}}]),e}(),C=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new S(this.annoCtx),this.axesUtils=new L(this.annoCtx)}return c(e,[{key:"addYaxisAnnotation",value:function(e,t,n){var r,i=this.w,a=e.strokeDashArray,o=this.helpers.getY1Y2("y1",e),s=o.yP,l=o.clipped,c=!0,u=!1,d=e.label.text;if(null===e.y2||void 0===e.y2){if(!l){u=!0;var h=this.annoCtx.graphics.drawLine(0+e.offsetX,s+e.offsetY,this._getYAxisAnnotationWidth(e),s+e.offsetY,e.borderColor,a,e.borderWidth);t.appendChild(h.node),e.id&&h.node.classList.add(e.id)}}else{if(r=(o=this.helpers.getY1Y2("y2",e)).yP,c=o.clipped,r>s){var f=s;s=r,r=f}if(!l||!c){u=!0;var p=this.annoCtx.graphics.drawRect(0+e.offsetX,r+e.offsetY,this._getYAxisAnnotationWidth(e),s-r,0,e.fillColor,e.opacity,1,e.borderColor,a);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(i.globals.cuid,")")),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}}if(u){var m="right"===e.label.position?i.globals.gridWidth:"center"===e.label.position?i.globals.gridWidth/2:0,g=this.annoCtx.graphics.drawText({x:m+e.label.offsetX,y:(null!=r?r:s)+e.label.offsetY-3,text:d,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});g.attr({rel:n}),t.appendChild(g.node)}}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.forEach((function(t,r){t.yAxisIndex=e.axesUtils.translateYAxisIndex(t.yAxisIndex),e.axesUtils.isYAxisHidden(t.yAxisIndex)&&e.axesUtils.yAxisAllSeriesCollapsed(t.yAxisIndex)||e.addYaxisAnnotation(t,n.node,r)})),n}}]),e}(),D=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new S(this.annoCtx)}return c(e,[{key:"addPointAnnotation",value:function(e,t,n){if(!(this.w.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)){var r=this.helpers.getX1X2("x1",e),i=r.x,a=r.clipped,o=(r=this.helpers.getY1Y2("y1",e)).yP,s=r.clipped;if(w.isNumber(i)&&!s&&!a){var l={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},c=this.annoCtx.graphics.drawMarker(i+e.marker.offsetX,o+e.marker.offsetY,l);t.appendChild(c.node);var u=e.label.text?e.label.text:"",d=this.annoCtx.graphics.drawText({x:i+e.label.offsetX,y:o+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:u,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(d.attr({rel:n}),t.appendChild(d.node),e.customSVG.SVG){var h=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});h.attr({transform:"translate(".concat(i+e.customSVG.offsetX,", ").concat(o+e.customSVG.offsetY,")")}),h.node.innerHTML=e.customSVG.SVG,t.appendChild(h.node)}if(e.image.path){var f=e.image.width?e.image.width:20,p=e.image.height?e.image.height:20;c=this.annoCtx.addImage({x:i+e.image.offsetX-f/2,y:o+e.image.offsetY-p/2,width:f,height:p,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&c.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&c.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&c.node.addEventListener("click",e.click.bind(this,e))}}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map((function(t,r){e.addPointAnnotation(t,n.node,r)})),n}}]),e}(),E={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},P=function(){function e(){s(this,e),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return c(e,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"",locales:[E],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{line:{isSlopeChart:!1},area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)/e.globals.series.length+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(e){return e},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return null!==e?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),e}(),Y=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.graphics=new A(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new S(this),this.xAxisAnnotations=new T(this),this.yAxisAnnotations=new C(this),this.pointsAnnotations=new D(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return c(e,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),n=this.xAxisAnnotations.drawXAxisAnnotations(),r=this.pointsAnnotations.drawPointAnnotations(),i=e.config.chart.animations.enabled,a=[t,n,r],o=[n.node,t.node,r.node],s=0;s<3;s++)e.globals.dom.elGraphical.add(a[s]),!i||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&o[s].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:o[s],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map((function(t,n){e.addImage(t,n)}))}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map((function(t,n){e.addText(t,n)}))}},{key:"addXaxisAnnotation",value:function(e,t,n){this.xAxisAnnotations.addXaxisAnnotation(e,t,n)}},{key:"addYaxisAnnotation",value:function(e,t,n){this.yAxisAnnotations.addYaxisAnnotation(e,t,n)}},{key:"addPointAnnotation",value:function(e,t,n){this.pointsAnnotations.addPointAnnotation(e,t,n)}},{key:"addText",value:function(e,t){var n=e.x,r=e.y,i=e.text,a=e.textAnchor,o=e.foreColor,s=e.fontSize,l=e.fontFamily,c=e.fontWeight,u=e.cssClass,d=e.backgroundColor,h=e.borderWidth,f=e.strokeDashArray,p=e.borderRadius,m=e.borderColor,g=e.appendTo,v=void 0===g?".apexcharts-svg":g,b=e.paddingLeft,y=void 0===b?4:b,w=e.paddingRight,x=void 0===w?4:w,_=e.paddingBottom,A=void 0===_?2:_,k=e.paddingTop,S=void 0===k?2:k,T=this.w,M=this.graphics.drawText({x:n,y:r,text:i,textAnchor:a||"start",fontSize:s||"12px",fontWeight:c||"regular",fontFamily:l||T.config.chart.fontFamily,foreColor:o||T.config.chart.foreColor,cssClass:u}),O=T.globals.dom.baseEl.querySelector(v);O&&O.appendChild(M.node);var L=M.bbox();if(i){var C=this.graphics.drawRect(L.x-y,L.y-S,L.width+y+x,L.height+A+S,p,d||"transparent",1,h,m,f);O.insertBefore(C.node,M.node)}}},{key:"addImage",value:function(e,t){var n=this.w,r=e.path,i=e.x,a=void 0===i?0:i,o=e.y,s=void 0===o?0:o,l=e.width,c=void 0===l?20:l,u=e.height,d=void 0===u?20:u,h=e.appendTo,f=void 0===h?".apexcharts-svg":h,p=n.globals.dom.Paper.image(r);p.size(c,d).move(a,s);var m=n.globals.dom.baseEl.querySelector(f);return m&&m.appendChild(p.node),p}},{key:"addXaxisAnnotationExternal",value:function(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"xaxis",contextMethod:n.addXaxisAnnotation}),n}},{key:"addYaxisAnnotationExternal",value:function(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"yaxis",contextMethod:n.addYaxisAnnotation}),n}},{key:"addPointAnnotationExternal",value:function(e,t,n){return void 0===this.invertAxis&&(this.invertAxis=n.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"point",contextMethod:n.addPointAnnotation}),n}},{key:"addAnnotationExternal",value:function(e){var t=e.params,n=e.pushToMemory,r=e.context,i=e.type,a=e.contextMethod,o=r,s=o.w,l=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations")),c=l.childNodes.length+1,u=new P,d=Object.assign({},"xaxis"===i?u.xAxisAnnotation:"yaxis"===i?u.yAxisAnnotation:u.pointAnnotation),h=w.extend(d,t);switch(i){case"xaxis":this.addXaxisAnnotation(h,l,c);break;case"yaxis":this.addYaxisAnnotation(h,l,c);break;case"point":this.addPointAnnotation(h,l,c)}var f=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations .apexcharts-").concat(i,"-annotation-label[rel='").concat(c,"']")),p=this.helpers.addBackgroundToAnno(f,h);return p&&l.insertBefore(p.node,f),n&&s.globals.memory.methodsToExec.push({context:o,id:h.id?h.id:w.randomId(),method:a,label:"addAnnotation",params:t}),r}},{key:"clearAnnotations",value:function(e){var t=e.w,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map((function(e,n){"addText"!==e.label&&"addAnnotation"!==e.label||t.globals.memory.methodsToExec.splice(n,1)})),n=w.listToArray(n),Array.prototype.forEach.call(n,(function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}))}},{key:"removeAnnotation",value:function(e,t){var n=e.w,r=n.globals.dom.baseEl.querySelectorAll(".".concat(t));r&&(n.globals.memory.methodsToExec.map((function(e,r){e.id===t&&n.globals.memory.methodsToExec.splice(r,1)})),Array.prototype.forEach.call(r,(function(e){e.parentElement.removeChild(e)})))}}]),e}(),j=function(e){var t,n=e.isTimeline,r=e.ctx,i=e.seriesIndex,a=e.dataPointIndex,o=e.y1,s=e.y2,l=e.w,c=l.globals.seriesRangeStart[i][a],u=l.globals.seriesRangeEnd[i][a],d=l.globals.labels[a],h=l.config.series[i].name?l.config.series[i].name:"",f=l.globals.ttKeyFormatter,p=l.config.tooltip.y.title.formatter,m={w:l,seriesIndex:i,dataPointIndex:a,start:c,end:u};"function"==typeof p&&(h=p(h,m)),null!==(t=l.config.series[i].data[a])&&void 0!==t&&t.x&&(d=l.config.series[i].data[a].x),n||"datetime"===l.config.xaxis.type&&(d=new O(r).xLabelFormat(l.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new M(r).formatDate,w:l})),"function"==typeof f&&(d=f(d,m)),Number.isFinite(o)&&Number.isFinite(s)&&(c=o,u=s);var g="",v="",b=l.globals.colors[i];if(void 0===l.config.tooltip.x.formatter)if("datetime"===l.config.xaxis.type){var y=new M(r);g=y.formatDate(y.getDate(c),l.config.tooltip.x.format),v=y.formatDate(y.getDate(u),l.config.tooltip.x.format)}else g=c,v=u;else g=l.config.tooltip.x.formatter(c),v=l.config.tooltip.x.formatter(u);return{start:c,end:u,startVal:g,endVal:v,ylabel:d,color:b,seriesName:h}},I=function(e){var t=e.color,n=e.seriesName,r=e.ylabel,i=e.start,a=e.end,o=e.seriesIndex,s=e.dataPointIndex,l=e.ctx.tooltip.tooltipLabels.getFormatters(o);i=l.yLbFormatter(i),a=l.yLbFormatter(a);var c=l.yLbFormatter(e.w.globals.series[o][s]),u='\n '.concat(i,'\n - \n ').concat(a,"\n ");return'
'+(n||"")+'
'+r+": "+(e.w.globals.comboCharts?"rangeArea"===e.w.config.series[o].type||"rangeBar"===e.w.config.series[o].type?u:"".concat(c,""):u)+"
"},R=function(){function e(t){s(this,e),this.opts=t}return c(e,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.hideYAxis(),w.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"slope",value:function(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter:function(e,t){var n=t.w.config.series[t.seriesIndex].name;return null!==e?n+": "+e:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}},markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square"}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),a(a({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var n=t.seriesIndex,r=t.dataPointIndex,i=t.w;return e._getBoxTooltip(i,n,r,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var n=t.seriesIndex,r=t.dataPointIndex,i=t.w;return e._getBoxTooltip(i,n,r,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var n=t.seriesIndex,r=t.dataPointIndex,i=t.w,a=function(){var e=i.globals.seriesRangeStart[n][r];return i.globals.seriesRangeEnd[n][r]-e};return i.globals.comboCharts?"rangeBar"===i.config.series[n].type||"rangeArea"===i.config.series[n].type?a():e:a()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(e){var t=j(a(a({},e),{},{isTimeline:!0})),n=t.color,r=t.seriesName,i=t.ylabel,o=t.startVal,s=t.endVal;return I(a(a({},e),{},{color:n,seriesName:r,ylabel:i,start:o,end:s}))}(e):function(e){var t=j(e),n=t.color,r=t.seriesName,i=t.ylabel,o=t.start,s=t.end;return I(a(a({},e),{},{color:n,seriesName:r,ylabel:i,start:o,end:s}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var t,n;return null!==(t=e.plotOptions.bar)&&void 0!==t&&t.barHeight||(e.plotOptions.bar.barHeight=2),null!==(n=e.plotOptions.bar)&&void 0!==n&&n.columnWidth||(e.plotOptions.bar.columnWidth=2),e}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return function(e){var t=j(e),n=t.color,r=t.seriesName,i=t.ylabel,o=t.start,s=t.end;return I(a(a({},e),{},{color:n,seriesName:r,ylabel:i,start:o,end:s}))}(e)}}}}},{key:"brush",value:function(e){return w.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach((function(t,n){e.yaxis[n].min=0,e.yaxis[n].max=100})),"bar"===e.chart.type&&(e.dataLabels.formatter=t||function(e){return"number"==typeof e&&e?e.toFixed(0)+"%":e}),e}},{key:"stackedBars",value:function(){var e=this.bar();return a(a({},e),{},{plotOptions:a(a({},e.plotOptions),{},{bar:a(a({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,n){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(e){return w.isNumber(e)?Math.floor(e):e};var r=e.xaxis.labels.formatter,i=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return n&&n.length&&(i=n.map((function(e){return Array.isArray(e)?e:String(e)}))),i&&i.length&&(e.xaxis.labels.formatter=function(e){return w.isNumber(e)?r(i[Math.floor(e)-1]):r(e)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square"}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{opacity:1,gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(e,t,n,r,i){var a=e.globals.seriesCandleO[t][n],o=e.globals.seriesCandleH[t][n],s=e.globals.seriesCandleM[t][n],l=e.globals.seriesCandleL[t][n],c=e.globals.seriesCandleC[t][n];return e.config.series[t].type&&e.config.series[t].type!==i?'
\n '.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": ").concat(e.globals.series[t][n],"\n
"):'
')+"
".concat(r[0],': ')+a+"
"+"
".concat(r[1],': ')+o+"
"+(s?"
".concat(r[2],': ')+s+"
":"")+"
".concat(r[3],': ')+l+"
"+"
".concat(r[4],': ')+c+"
"}}]),e}(),F=function(){function e(t){s(this,e),this.opts=t}return c(e,[{key:"init",value:function(e){var t=e.responsiveOverride,n=this.opts,r=new P,i=new R(n);this.chartType=n.chart.type,n=this.extendYAxis(n),n=this.extendAnnotations(n);var a=r.init(),s={};if(n&&"object"===o(n)){var l,c,u,d,h,f,p,m,g,v,b={};b=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(n.chart.type)?i[n.chart.type]():i.line(),null!==(l=n.plotOptions)&&void 0!==l&&null!==(c=l.bar)&&void 0!==c&&c.isFunnel&&(b=i.funnel()),n.chart.stacked&&"bar"===n.chart.type&&(b=i.stackedBars()),null!==(u=n.chart.brush)&&void 0!==u&&u.enabled&&(b=i.brush(b)),null!==(d=n.plotOptions)&&void 0!==d&&null!==(h=d.line)&&void 0!==h&&h.isSlopeChart&&(b=i.slope()),n.chart.stacked&&"100%"===n.chart.stackType&&(n=i.stacked100(n)),null!==(f=n.plotOptions)&&void 0!==f&&null!==(p=f.bar)&&void 0!==p&&p.isDumbbell&&(n=i.dumbbell(n)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(n),n.xaxis=n.xaxis||window.Apex.xaxis||{},t||(n.xaxis.convertedCatToNumeric=!1),(null!==(m=(n=this.checkForCatToNumericXAxis(this.chartType,b,n)).chart.sparkline)&&void 0!==m&&m.enabled||null!==(g=window.Apex.chart)&&void 0!==g&&null!==(v=g.sparkline)&&void 0!==v&&v.enabled)&&(b=i.sparkline(b)),s=w.extend(a,b)}var y=w.extend(s,window.Apex);return a=w.extend(y,n),this.handleUserInputErrors(a)}},{key:"checkForCatToNumericXAxis",value:function(e,t,n){var r,i,a=new R(n),o=("bar"===e||"boxPlot"===e)&&(null===(r=n.plotOptions)||void 0===r||null===(i=r.bar)||void 0===i?void 0:i.horizontal),s="pie"===e||"polarArea"===e||"donut"===e||"radar"===e||"radialBar"===e||"heatmap"===e,l="datetime"!==n.xaxis.type&&"numeric"!==n.xaxis.type,c=n.xaxis.tickPlacement?n.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return o||s||!l||"between"===c||(n=a.convertCatToNumeric(n)),n}},{key:"extendYAxis",value:function(e,t){var n=new P;(void 0===e.yaxis||!e.yaxis||Array.isArray(e.yaxis)&&0===e.yaxis.length)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=w.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[w.extend(n.yAxis,e.yaxis)]:e.yaxis=w.extendArray(e.yaxis,n.yAxis);var r=!1;e.yaxis.forEach((function(e){e.logarithmic&&(r=!0)}));var i=e.series;return t&&!i&&(i=t.config.series),r&&i.length!==e.yaxis.length&&i.length&&(e.yaxis=i.map((function(t,r){if(t.name||(i[r].name="series-".concat(r+1)),e.yaxis[r])return e.yaxis[r].seriesName=i[r].name,e.yaxis[r];var a=w.extend(n.yAxis,e.yaxis[0]);return a.show=!1,a}))),r&&i.length>1&&i.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),e}},{key:"extendAnnotations",value:function(e){return void 0===e.annotations&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new P;return e.annotations.yaxis=w.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new P;return e.annotations.xaxis=w.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new P;return e.annotations.points=w.extendArray(void 0!==e.annotations.points?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&"dark"===e.theme.mode&&(e.tooltip||(e.tooltip={}),"light"!==e.tooltip.theme&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===t.chart.type&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return"bar"!==t.chart.type&&"rangeBar"!==t.chart.type||t.tooltip.shared&&"barWidth"===t.xaxis.crosshairs.width&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t}}]),e}(),H=function(){function e(){s(this,e)}return c(e,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.barGroups=[],e.lineGroups=[],e.areaGroups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0,e.multiAxisTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:"pan"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.pan,selectionEnabled:"selection"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,isSlopeChart:e.plotOptions.line.isSlopeChart,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null,niceScaleAllowedMagMsd:[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],niceScaleDefaultTicks:[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24],seriesYAxisMap:[],seriesYAxisReverseMap:[]}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=w.extend({},e),t.initialSeries=w.clone(e.series),t.lastXAxis=w.clone(t.initialConfig.xaxis),t.lastYAxis=w.clone(t.initialConfig.yaxis),t}}]),e}(),B=function(){function e(t){s(this,e),this.opts=t}return c(e,[{key:"init",value:function(){var e=new F(this.opts).init({responsiveOverride:!1});return{config:e,globals:(new H).init(e)}}}]),e}(),N=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0}return c(e,[{key:"clippedImgArea",value:function(e){var t=this.w,n=t.config,r=parseInt(t.globals.gridWidth,10),i=parseInt(t.globals.gridHeight,10),a=r>i?r:i,o=e.image,s=0,l=0;void 0===e.width&&void 0===e.height?void 0!==n.fill.image.width&&void 0!==n.fill.image.height?(s=n.fill.image.width+1,l=n.fill.image.height):(s=a+1,l=a):(s=e.width,l=e.height);var c=document.createElementNS(t.globals.SVGNS,"pattern");A.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:s+"px",height:l+"px"});var u=document.createElementNS(t.globals.SVGNS,"image");c.appendChild(u),u.setAttributeNS(window.SVG.xlink,"href",o),A.setAttrs(u,{x:0,y:0,preserveAspectRatio:"none",width:s+"px",height:l+"px"}),u.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(e){var t=this.w,n=t.config.chart.type;return("bar"===n||"rangeBar"===n)&&t.config.plotOptions.bar.distributed||"heatmap"===n||"treemap"===n?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var n,r,i,a=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var o=this.getFillColors()[this.seriesIndex];void 0!==t.globals.seriesColors[this.seriesIndex]&&(o=t.globals.seriesColors[this.seriesIndex]),"function"==typeof o&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var s=e.fillType?e.fillType:this.getFillType(this.seriesIndex),l=Array.isArray(a.fill.opacity)?a.fill.opacity[this.seriesIndex]:a.fill.opacity;e.color&&(o=e.color),o||(o="#fff",console.warn("undefined color - ApexCharts"));var c=o;if(-1===o.indexOf("rgb")?o.length<9&&(c=w.hexToRgba(o,l)):o.indexOf("rgba")>-1&&(l=w.getOpacityFromRGBA(o)),e.opacity&&(l=e.opacity),"pattern"===s&&(r=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:r,fillColor:o,fillOpacity:l,defaultColor:c})),"gradient"===s&&(i=this.handleGradientFill({fillConfig:e.fillConfig,fillColor:o,fillOpacity:l,i:this.seriesIndex})),"image"===s){var u=a.fill.image.src,d=e.patternID?e.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(u)?e.seriesNumber-1&&(f=w.getOpacityFromRGBA(h));var p=void 0===o.gradient.opacityTo?n:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[i]:o.gradient.opacityTo;if(void 0===o.gradient.gradientToColors||0===o.gradient.gradientToColors.length)s="dark"===o.gradient.shade?u.shadeColor(-1*parseFloat(o.gradient.shadeIntensity),t.indexOf("rgb")>-1?w.rgb2hex(t):t):u.shadeColor(parseFloat(o.gradient.shadeIntensity),t.indexOf("rgb")>-1?w.rgb2hex(t):t);else if(o.gradient.gradientToColors[l.seriesNumber]){var m=o.gradient.gradientToColors[l.seriesNumber];s=m,m.indexOf("rgba")>-1&&(p=w.getOpacityFromRGBA(m))}else s=t;if(o.gradient.gradientFrom&&(h=o.gradient.gradientFrom),o.gradient.gradientTo&&(s=o.gradient.gradientTo),o.gradient.inverseColors){var g=h;h=s,s=g}return h.indexOf("rgb")>-1&&(h=w.rgb2hex(h)),s.indexOf("rgb")>-1&&(s=w.rgb2hex(s)),c.drawGradient(d,h,s,f,p,l.size,o.gradient.stops,o.gradient.colorStops,i)}}]),e}(),z=function(){function e(t,n){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length4&&void 0!==arguments[4]&&arguments[4],o=this.w,s=t,l=e,c=null,u=new A(this.ctx),d=o.config.markers.discrete&&o.config.markers.discrete.length;if((o.globals.markers.size[t]>0||a||d)&&(c=u.group({class:a||d?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(o.globals.cuid,")")),Array.isArray(l.x))for(var h=0;h0:o.config.markers.size>0)||a||d){w.isNumber(l.y[h])?p+=" w".concat(w.randomId()):p="apexcharts-nullpoint";var m=this.getMarkerConfig({cssClass:p,seriesIndex:t,dataPointIndex:f});o.config.series[s].data[f]&&(o.config.series[s].data[f].fillColor&&(m.pointFillColor=o.config.series[s].data[f].fillColor),o.config.series[s].data[f].strokeColor&&(m.pointStrokeColor=o.config.series[s].data[f].strokeColor)),void 0!==r&&(m.pSize=r),(l.x[h]<-o.globals.markers.largestSize||l.x[h]>o.globals.gridWidth+o.globals.markers.largestSize||l.y[h]<-o.globals.markers.largestSize||l.y[h]>o.globals.gridHeight+o.globals.markers.largestSize)&&(m.pSize=0),(i=u.drawMarker(l.x[h],l.y[h],m)).attr("rel",f),i.attr("j",f),i.attr("index",t),i.node.setAttribute("default-marker-size",m.pSize),new _(this.ctx).setSelectionFilter(i,t,f),this.addEvents(i),c&&c.add(i)}else void 0===o.globals.pointsArray[t]&&(o.globals.pointsArray[t]=[]),o.globals.pointsArray[t].push([l.x[h],l.y[h]])}return c}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,n=e.seriesIndex,r=e.dataPointIndex,i=void 0===r?null:r,a=e.radius,o=void 0===a?null:a,s=e.size,l=void 0===s?null:s,c=e.strokeWidth,u=void 0===c?null:c,d=this.w,h=this.getMarkerStyle(n),f=null===l?d.globals.markers.size[n]:l,p=d.config.markers;return null!==i&&p.discrete.length&&p.discrete.map((function(e){e.seriesIndex===n&&e.dataPointIndex===i&&(h.pointStrokeColor=e.strokeColor,h.pointFillColor=e.fillColor,f=e.size,h.pointShape=e.shape)})),{pSize:null===o?f:o,pRadius:null!==o?o:p.radius,pointStrokeWidth:null!==u?u:Array.isArray(p.strokeWidth)?p.strokeWidth[n]:p.strokeWidth,pointStrokeColor:h.pointStrokeColor,pointFillColor:h.pointFillColor,shape:h.pointShape||(Array.isArray(p.shape)?p.shape[n]:p.shape),class:t,pointStrokeOpacity:Array.isArray(p.strokeOpacity)?p.strokeOpacity[n]:p.strokeOpacity,pointStrokeDashArray:Array.isArray(p.strokeDashArray)?p.strokeDashArray[n]:p.strokeDashArray,pointFillOpacity:Array.isArray(p.fillOpacity)?p.fillOpacity[n]:p.fillOpacity,seriesIndex:n}}},{key:"addEvents",value:function(e){var t=this.w,n=new A(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",n.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,n=t.globals.markers.colors,r=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(r)?r[e]:r,pointFillColor:Array.isArray(n)?n[e]:n}}}]),e}(),W=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled}return c(e,[{key:"draw",value:function(e,t,n){var r=this.w,i=new A(this.ctx),a=n.realIndex,o=n.pointsPos,s=n.zRatio,l=n.elParent,c=i.group({class:"apexcharts-series-markers apexcharts-series-".concat(r.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(r.globals.cuid,")")),Array.isArray(o.x))for(var u=0;up.maxBubbleRadius&&(f=p.maxBubbleRadius)}var m=o.x[u],g=o.y[u];if(f=f||0,null!==g&&void 0!==r.globals.series[a][d]||(h=!1),h){var v=this.drawPoint(m,g,f,a,d,t);c.add(v)}l.add(c)}}},{key:"drawPoint",value:function(e,t,n,r,i,a){var o=this.w,s=r,l=new x(this.ctx),c=new _(this.ctx),u=new N(this.ctx),d=new z(this.ctx),h=new A(this.ctx),f=d.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:s,dataPointIndex:i,radius:"bubble"===o.config.chart.type||o.globals.comboCharts&&o.config.series[r]&&"bubble"===o.config.series[r].type?n:null}),p=u.fillPath({seriesNumber:r,dataPointIndex:i,color:f.pointFillColor,patternUnits:"objectBoundingBox",value:o.globals.series[r][a]}),m=h.drawMarker(e,t,f);if(o.config.series[s].data[i]&&o.config.series[s].data[i].fillColor&&(p=o.config.series[s].data[i].fillColor),m.attr({fill:p}),o.config.chart.dropShadow.enabled){var g=o.config.chart.dropShadow;c.dropShadow(m,g,r)}if(!this.initialAnim||o.globals.dataChanged||o.globals.resized)o.globals.animationEnded=!0;else{var v=o.config.chart.animations.speed;l.animateMarker(m,v,o.globals.easing,(function(){window.setTimeout((function(){l.animationCompleted(m)}),100)}))}return m.attr({rel:i,j:i,index:r,"default-marker-size":f.pSize}),c.setSelectionFilter(m,r,i),d.addEvents(m),m.node.classList.add("apexcharts-marker"),m}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),e}(),$=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"dataLabelsCorrection",value:function(e,t,n,r,i,a,o){var s=this.w,l=!1,c=new A(this.ctx).getTextRects(n,o),u=c.width,d=c.height;t<0&&(t=0),t>s.globals.gridHeight+d&&(t=s.globals.gridHeight+d/2),void 0===s.globals.dataLabelsRects[r]&&(s.globals.dataLabelsRects[r]=[]),s.globals.dataLabelsRects[r].push({x:e,y:t,width:u,height:d});var h=s.globals.dataLabelsRects[r].length-2,f=void 0!==s.globals.lastDrawnDataLabelsIndexes[r]?s.globals.lastDrawnDataLabelsIndexes[r][s.globals.lastDrawnDataLabelsIndexes[r].length-1]:0;if(void 0!==s.globals.dataLabelsRects[r][h]){var p=s.globals.dataLabelsRects[r][f];(e>p.x+p.width||t>p.y+p.height||t+dt.globals.gridWidth+v.textRects.width+30)&&(s="");var b=t.globals.dataLabels.style.colors[a];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(b=t.globals.dataLabels.style.colors[o]),"function"==typeof b&&(b=b({series:t.globals.series,seriesIndex:a,dataPointIndex:o,w:t})),h&&(b=h);var y=d.offsetX,w=d.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(y=0,w=0),t.globals.isSlopeChart&&(0!==o&&(y=-2*d.offsetX+5),0!==o&&o!==t.config.series[a].data.length-1&&(y=0)),v.drawnextLabel){if((g=n.drawText({width:100,height:parseInt(d.style.fontSize,10),x:r+y,y:i+w,foreColor:b,textAnchor:l||d.textAnchor,text:s,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"})).attr({class:m||"apexcharts-datalabel",cx:r,cy:i}),d.dropShadow.enabled){var x=d.dropShadow;new _(this.ctx).dropShadow(g,x)}u.add(g),void 0===t.globals.lastDrawnDataLabelsIndexes[a]&&(t.globals.lastDrawnDataLabelsIndexes[a]=[]),t.globals.lastDrawnDataLabelsIndexes[a].push(o)}return g}},{key:"addBackgroundToDataLabel",value:function(e,t){var n=this.w,r=n.config.dataLabels.background,i=r.padding,a=r.padding/2,o=t.width,s=t.height,l=new A(this.ctx).drawRect(t.x-i,t.y-a/2,o+2*i,s+a,r.borderRadius,"transparent"!==n.config.chart.background&&n.config.chart.background?n.config.chart.background:"#fff",r.opacity,r.borderWidth,r.borderColor);return r.dropShadow.enabled&&new _(this.ctx).dropShadow(l,r.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var e=this.w;if("bubble"!==e.config.chart.type)for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),n=0;n0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.w,i=w.clone(r.globals.initialSeries);r.globals.previousPaths=[],n?(r.globals.collapsedSeries=[],r.globals.ancillaryCollapsedSeries=[],r.globals.collapsedSeriesIndices=[],r.globals.ancillaryCollapsedSeriesIndices=[]):i=this.emptyCollapsedSeries(i),r.config.series=i,e&&(t&&(r.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(i,r.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,n=0;n-1&&(e[n].data=[]);return e}},{key:"toggleSeriesOnHover",value:function(e,t){var n=this.w;t||(t=e.target);var r=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if("mousemove"===e.type){var i=parseInt(t.getAttribute("rel"),10)-1,a=null,o=null,s=null;if(n.globals.axisCharts||"radialBar"===n.config.chart.type)if(n.globals.axisCharts){a=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(i,"']")),o=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(i,"']"));var l=n.globals.seriesYAxisReverseMap[i];s=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(l,"']"))}else a=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(i+1,"']"));else a=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(i+1,"'] path"));for(var c=0;c=e.from&&r<=e.to&&i[t].classList.remove(n.legendInactiveClass)}}(r.config.plotOptions.heatmap.colorScale.ranges[o])}else"mouseout"===e.type&&a("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.w,r=0;if(n.config.series.length>1)for(var i=n.config.series.map((function(e,r){return e.data&&e.data.length>0&&-1===n.globals.collapsedSeriesIndices.indexOf(r)&&(!n.globals.comboCharts||0===t.length||t.length&&t.indexOf(n.config.series[r].type)>-1)?r:-1})),a="asc"===e?0:i.length-1;"asc"===e?a=0;"asc"===e?a++:a--)if(-1!==i[a]){r=i[a];break}return r}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map((function(e,t){return"bar"===e.type||"column"===e.type?t:-1})).filter((function(e){return-1!==e})):this.w.config.series.map((function(e,t){return t}))}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(t,n,r){for(var i=t[n].childNodes,a={type:r,paths:[],realIndex:t[n].getAttribute("data:realIndex")},o=0;o0)for(var r=function(t){for(var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(t,"'] rect")),r=[],i=function(e){var t=function(t){return n[e].getAttribute(t)},i={x:parseFloat(t("x")),y:parseFloat(t("y")),width:parseFloat(t("width")),height:parseFloat(t("height"))};r.push({rect:i,color:n[e].getAttribute("color")})},a=0;a0)for(var r=0;r0?e:[]}));return e}}]),e}(),U=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new k(this.ctx)}return c(e,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new V(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&null!==e[this.activeSeriesIndex].data[0]&&void 0!==e[this.activeSeriesIndex].data[0].x&&null!==e[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new V(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&void 0!==e[this.activeSeriesIndex].data[0]&&null!==e[this.activeSeriesIndex].data[0]&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var n=this.w.config,r=this.w.globals,i="boxPlot"===n.chart.type||"boxPlot"===n.series[t].type,a=0;a=5?this.twoDSeries.push(w.parseNumber(e[t].data[a][4])):this.twoDSeries.push(w.parseNumber(e[t].data[a][1])),r.dataFormatXNumeric=!0),"datetime"===n.xaxis.type){var o=new Date(e[t].data[a][0]);o=new Date(o).getTime(),this.twoDSeriesX.push(o)}else this.twoDSeriesX.push(e[t].data[a][0]);for(var s=0;s-1&&(a=this.activeSeriesIndex);for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:this.ctx,r=this.w.config,i=this.w.globals,a=new M(n),o=r.labels.length>0?r.labels.slice():r.xaxis.categories.slice();i.isRangeBar="rangeBar"===r.chart.type&&i.isBarHorizontal,i.hasXaxisGroups="category"===r.xaxis.type&&r.xaxis.group.groups.length>0,i.hasXaxisGroups&&(i.groups=r.xaxis.group.groups),e.forEach((function(e,t){void 0!==e.name?i.seriesNames.push(e.name):i.seriesNames.push("series-"+parseInt(t+1,10))})),this.coreUtils.setSeriesYAxisMappings();var s=[],l=v(new Set(r.series.map((function(e){return e.group}))));r.series.forEach((function(e,t){var n=l.indexOf(e.group);s[n]||(s[n]=[]),s[n].push(i.seriesNames[t])})),i.seriesGroups=s;for(var c=function(){for(var e=0;e0&&(this.twoDSeriesX=o,i.seriesX.push(this.twoDSeriesX))),i.labels.push(this.twoDSeriesX);var d=e[u].data.map((function(e){return w.parseNumber(e)}));i.series.push(d)}i.seriesZ.push(this.threeDSeries),void 0!==e[u].color?i.seriesColors.push(e[u].color):i.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,n=this.w.config;t.series=e.slice(),t.seriesNames=n.labels.slice();for(var r=0;r0?n.labels=t.xaxis.categories:t.labels.length>0?n.labels=t.labels.slice():this.fallbackToCategory?(n.labels=n.labels[0],n.seriesRange.length&&(n.seriesRange.map((function(e){e.forEach((function(e){n.labels.indexOf(e.x)<0&&e.x&&n.labels.push(e.x)}))})),n.labels=Array.from(new Set(n.labels.map(JSON.stringify)),JSON.parse)),t.xaxis.convertedCatToNumeric&&(new R(t).convertCatToNumericXaxis(t,this.ctx,n.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,n=this.w.config,r=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var i=n.series.map((function(e,t){return e.data.filter((function(e,t,n){return n.findIndex((function(t){return t.x===e.x}))===t}))})),a=i.reduce((function(e,t,n,r){return r[e].length>t.length?e:n}),0),o=0;o0&&i==n.length&&t.push(r)})),e.globals.ignoreYAxisIndexes=t.map((function(e){return e}))}}]),e}(),X=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"scaleSvgNode",value:function(e,t){var n=parseFloat(e.getAttributeNS(null,"width")),r=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",n*t),e.setAttributeNS(null,"height",r*t),e.setAttributeNS(null,"viewBox","0 0 "+n+" "+r)}},{key:"fixSvgStringForIe11",value:function(e){if(!w.isIE11())return e.replace(/ /g," ");var t=0,n=e.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,(function(e){return 2===++t?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':e}));return(n=n.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(e){null==e&&(e=1);var t=this.w.globals.dom.Paper.svg();if(1!==e){var n=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(n,e),t=(new XMLSerializer).serializeToString(n)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),n=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(r,(function(e){e.setAttribute("width",0)})),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),n&&n[0]&&(n[0].setAttribute("y",-100),n[0].setAttribute("y1",-100),n[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var e=this.getSvgString(),t=new Blob([e],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(t)}},{key:"dataURI",value:function(e){var t=this;return new Promise((function(n){var r=t.w,i=e?e.scale||e.width/r.globals.svgWidth:1;t.cleanup();var a=document.createElement("canvas");a.width=r.globals.svgWidth*i,a.height=parseInt(r.globals.dom.elWrap.style.height,10)*i;var o="transparent"!==r.config.chart.background&&r.config.chart.background?r.config.chart.background:"#fff",s=a.getContext("2d");s.fillStyle=o,s.fillRect(0,0,a.width*i,a.height*i);var l=t.getSvgString(i);if(window.canvg&&w.isIE11()){var c=window.canvg.Canvg.fromString(s,l,{ignoreClear:!0,ignoreDimensions:!0});c.start();var u=a.msToBlob();c.stop(),n({blob:u})}else{var d="data:image/svg+xml,"+encodeURIComponent(l),h=new Image;h.crossOrigin="anonymous",h.onload=function(){if(s.drawImage(h,0,0),a.msToBlob){var e=a.msToBlob();n({blob:e})}else{var t=a.toDataURL("image/png");n({imgURI:t})}},h.src=d}}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var e=this;this.dataURI().then((function(t){var n=t.imgURI,r=t.blob;r?navigator.msSaveOrOpenBlob(r,e.w.globals.chartID+".png"):e.triggerDownload(n,e.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(e){var t=this,n=e.series,r=e.fileName,i=e.columnDelimiter,a=void 0===i?",":i,o=e.lineDelimiter,s=void 0===o?"\n":o,l=this.w;n||(n=l.config.series);var c,u,d=[],h=[],f="",p=l.globals.series.map((function(e,t){return-1===l.globals.collapsedSeriesIndices.indexOf(t)?e:[]})),m=function(e){return"function"==typeof l.config.chart.toolbar.export.csv.categoryFormatter?l.config.chart.toolbar.export.csv.categoryFormatter(e):"datetime"===l.config.xaxis.type&&String(e).length>=10?new Date(e).toDateString():w.isNumber(e)?e:e.split(a).join("")},g=function(e){return"function"==typeof l.config.chart.toolbar.export.csv.valueFormatter?l.config.chart.toolbar.export.csv.valueFormatter(e):e},b=Math.max.apply(Math,v(n.map((function(e){return e.data?e.data.length:0})))),y=new U(this.ctx),x=new L(this.ctx),_=function(e){var n="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var r=l.globals.yLabelFormatters[0],i=new V(t.ctx).getActiveConfigSeriesIndex();n=r(l.globals.labels[e],{seriesIndex:i,dataPointIndex:e,w:l})}else n=x.getLabel(l.globals.labels,l.globals.timescaleLabels,0,e).text;"datetime"===l.config.xaxis.type&&(l.config.xaxis.categories.length?n=l.config.xaxis.categories[e]:l.config.labels.length&&(n=l.config.labels[e]))}else n=l.config.labels[e];return null===n?"nullvalue":(Array.isArray(n)&&(n=n.join(" ")),w.isNumber(n)?n:n.split(a).join(""))},A=function(e,t){if(d.length&&0===t&&h.push(d.join(a)),e.data){e.data=e.data.length&&e.data||v(Array(b)).map((function(){return""}));for(var r=0;r0&&!r.globals.isBarHorizontal&&(this.xaxisLabels=r.globals.timescaleLabels.slice()),r.config.xaxis.overwriteCategories&&(this.xaxisLabels=r.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===r.config.xaxis.position?this.offY=0:this.offY=r.globals.gridHeight,this.offY=this.offY+r.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===r.config.chart.type&&r.config.plotOptions.bar.horizontal,this.xaxisFontSize=r.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=r.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=r.config.xaxis.labels.style.colors,this.xaxisBorderWidth=r.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=r.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=r.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=r.config.xaxis.axisBorder.height,this.yaxis=r.config.yaxis[0]}return c(e,[{key:"drawXaxis",value:function(){var e=this.w,t=new A(this.ctx),n=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),r=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});n.add(r);for(var i=[],a=0;a6&&void 0!==arguments[6]?arguments[6]:{},c=[],u=[],d=this.w,h=l.xaxisFontSize||this.xaxisFontSize,f=l.xaxisFontFamily||this.xaxisFontFamily,p=l.xaxisForeColors||this.xaxisForeColors,m=l.fontWeight||d.config.xaxis.labels.style.fontWeight,g=l.cssClass||d.config.xaxis.labels.style.cssClass,v=d.globals.padHorizontal,b=r.length,y="category"===d.config.xaxis.type?d.globals.dataPoints:b;if(0===y&&b>y&&(y=b),i){var w=y>1?y-1:y;o=d.globals.gridWidth/Math.min(w,b-1),v=v+a(0,o)/2+d.config.xaxis.labels.offsetX}else o=d.globals.gridWidth/y,v=v+a(0,o)+d.config.xaxis.labels.offsetX;for(var x=function(i){var l=v-a(i,o)/2+d.config.xaxis.labels.offsetX;0===i&&1===b&&o/2===v&&1===y&&(l=d.globals.gridWidth/2);var w=s.axesUtils.getLabel(r,d.globals.timescaleLabels,l,i,c,h,e),x=28;if(d.globals.rotateXLabels&&e&&(x=22),d.config.xaxis.title.text&&"top"===d.config.xaxis.position&&(x+=parseFloat(d.config.xaxis.title.style.fontSize)+2),e||(x=x+parseFloat(h)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),w=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?s.axesUtils.checkLabelBasedOnTickamount(i,w,b):s.axesUtils.checkForOverflowingLabels(i,w,b,c,u),d.config.xaxis.labels.show){var _=t.drawText({x:w.x,y:s.offY+d.config.xaxis.labels.offsetY+x-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:w.text,textAnchor:"middle",fontWeight:w.isBold?600:m,fontSize:h,fontFamily:f,foreColor:Array.isArray(p)?e&&d.config.xaxis.convertedCatToNumeric?p[d.globals.minX+i-1]:p[i]:p,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+g});if(n.add(_),_.on("click",(function(e){if("function"==typeof d.config.chart.events.xAxisLabelClick){var t=Object.assign({},d,{labelIndex:i});d.config.chart.events.xAxisLabelClick(e,s.ctx,t)}})),e){var A=document.createElementNS(d.globals.SVGNS,"title");A.textContent=Array.isArray(w.text)?w.text.join(" "):w.text,_.node.appendChild(A),""!==w.text&&(c.push(w.text),u.push(w))}}ir.globals.gridWidth)){var a=this.offY+r.config.xaxis.axisTicks.offsetY;if(t=t+a+r.config.xaxis.axisTicks.height,"top"===r.config.xaxis.position&&(t=a-r.config.xaxis.axisTicks.height),r.config.xaxis.axisTicks.show){var o=new A(this.ctx).drawLine(e+r.config.xaxis.axisTicks.offsetX,a+r.config.xaxis.offsetY,i+r.config.xaxis.axisTicks.offsetX,t+r.config.xaxis.offsetY,r.config.xaxis.axisTicks.color);n.add(o),o.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],n=this.xaxisLabels.length,r=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var i=0;i0){var c=i[i.length-1].getBBox(),u=i[0].getBBox();c.x<-20&&i[i.length-1].parentNode.removeChild(i[i.length-1]),u.x+u.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&i[0].parentNode.removeChild(i[0]);for(var d=0;d0&&(this.xaxisLabels=n.globals.timescaleLabels.slice())}return c(e,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,n=new A(this.ctx);null===e&&(e=n.group({class:"apexcharts-grid"}));var r=n.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),i=n.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(i),e.add(r),e}},{key:"drawGrid",value:function(){var e=null;return this.w.globals.axisCharts&&(e=this.renderGrid(),this.drawGridArea(e.el)),e}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,n=new A(this.ctx),r=Array.isArray(e.config.stroke.width)?0:e.config.stroke.width;if(Array.isArray(e.config.stroke.width)){var i=0;e.config.stroke.width.forEach((function(e){i=Math.max(i,e)})),r=i}t.dom.elGridRectMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elForecastMask.setAttribute("id","forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(t.cuid));var a=e.config.chart.type,o=0,s=0;("bar"===a||"rangeBar"===a||"candlestick"===a||"boxPlot"===a||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(o=e.config.grid.padding.left,s=e.config.grid.padding.right,t.barPadForNumericAxis>o&&(o=t.barPadForNumericAxis,s=t.barPadForNumericAxis)),t.dom.elGridRect=n.drawRect(-r/2-o-2,-r/2-2,t.gridWidth+r+s+o+4,t.gridHeight+r+4,0,"#fff");var l=e.globals.markers.largestSize+1;t.dom.elGridRectMarker=n.drawRect(2*-l,2*-l,t.gridWidth+4*l,t.gridHeight+4*l,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var c=t.dom.baseEl.querySelector("defs");c.appendChild(t.dom.elGridRectMask),c.appendChild(t.dom.elForecastMask),c.appendChild(t.dom.elNonForecastMask),c.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.xCount,s=e.parent,l=this.w;if(!(0===t&&l.globals.skipFirstTimelinelabel||t===o-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:n,y1:r,x2:i,y2:a,xCount:o,parent:s});var c=0;if(l.globals.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){var u=l.globals.groups;if(u){for(var d=0,h=0;d0&&"datetime"!==e.config.xaxis.type&&(i=t.yAxisScale[r].result.length-1)),this._drawXYLines({xCount:i,tickAmount:l})):(i=l,l=t.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:l}));return this.drawGridBands(i,l),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:t.gridWidth/i}}},{key:"drawGridBands",value:function(e,t){var n=this.w;if(void 0!==n.config.grid.row.colors&&n.config.grid.row.colors.length>0)for(var r=0,i=n.globals.gridHeight/t,a=n.globals.gridWidth,o=0,s=0;o=n.config.grid.row.colors.length&&(s=0),this._drawGridBandRect({c:s,x1:0,y1:r,x2:a,y2:i,type:"row"}),r+=n.globals.gridHeight/t;if(void 0!==n.config.grid.column.colors&&n.config.grid.column.colors.length>0)for(var l=n.globals.isBarHorizontal||"on"!==n.config.xaxis.tickPlacement||"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric?e:e-1,c=n.globals.padHorizontal,u=n.globals.padHorizontal+n.globals.gridWidth/l,d=n.globals.gridHeight,h=0,f=0;h=n.config.grid.column.colors.length&&(f=0),this._drawGridBandRect({c:f,x1:c,y1:0,x2:u,y2:d,type:"column"}),c+=n.globals.gridWidth/l}}]),e}(),Q=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"niceScale",value:function(e,t){var n,r,i,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=1e-11,l=this.w,c=l.globals;c.isBarHorizontal?(n=l.config.xaxis,r=Math.max((c.svgWidth-100)/25,2)):(n=l.config.yaxis[o],r=Math.max((c.svgHeight-100)/15,2)),i=void 0!==n.min&&null!==n.min,a=void 0!==n.max&&null!==n.min;var u=void 0!==n.stepSize&&null!==n.stepSize,d=void 0!==n.tickAmount&&null!==n.tickAmount,h=d?n.tickAmount:n.forceNiceScale?c.niceScaleDefaultTicks[Math.min(Math.round(r/2),c.niceScaleDefaultTicks.length-1)]:10;if(c.isMultipleYAxis&&!d&&c.multiAxisTickAmount>0&&(h=c.multiAxisTickAmount,d=!0),h="dataPoints"===h?c.dataPoints-1:Math.abs(Math.round(h)),(e===Number.MIN_VALUE&&0===t||!w.isNumber(e)&&!w.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)&&(e=w.isNumber(n.min)?n.min:0,t=w.isNumber(n.max)?n.max:e+h,c.allSeriesCollapsed=!1),e>t){console.warn("axis.min cannot be greater than axis.max: swapping min and max");var f=t;t=e,e=f}else e===t&&(e=0===e?0:e-1,t=0===t?2:t+1);var p=[];h<1&&(h=1);var m=h,g=Math.abs(t-e);n.forceNiceScale&&(!i&&e>0&&e/g<.15&&(e=0,i=!0),!a&&t<0&&-t/g<.15&&(t=0,a=!0),g=Math.abs(t-e));var v=g/m,b=v,y=Math.floor(Math.log10(b)),x=Math.pow(10,y),_=Math.ceil(b/x);if(v=b=(_=c.niceScaleAllowedMagMsd[0===c.yValueDecimal?0:1][_])*x,c.isBarHorizontal&&n.stepSize&&"datetime"!==n.type?(v=n.stepSize,u=!0):u&&(v=n.stepSize),u&&n.forceNiceScale){var A=Math.floor(Math.log10(v));v*=Math.pow(10,y-A)}if(i&&a){var k=g/m;if(d)if(u)if(0!=w.mod(g,v)){var S=w.getGCD(v,k);v=k/S<10?S:k}else 0==w.mod(v,k)?v=k:(k=v,d=!1);else v=k;else if(u)0==w.mod(g,v)?k=v:v=k;else if(0==w.mod(g,v))k=v;else{k=g/(m=Math.ceil(g/v));var T=w.getGCD(g,v);g/Tr&&(e=t-v*h,e+=v*Math.floor((M-e)/v))}else if(i)if(d)t=e+v*m;else{var O=t;t=v*Math.ceil(t/v),Math.abs(t-e)/w.getGCD(g,v)>r&&(t=e+v*h,t+=v*Math.ceil((O-t)/v))}}else if(d){var L=v/(t-e>t?1:2),C=L*Math.floor(e/L);Math.abs(C-e)<=L/2?t=(e=C)+v*m:e=(t=L*Math.ceil(t/L))-v*m}else e=v*Math.floor(e/v),t=v*Math.ceil(t/v);g=Math.abs(t-e),v=w.getGCD(g,v),m=Math.round(g/v)}if(d||i||a||(m=Math.ceil((g-s)/(v+s)))>16&&w.getPrimeFactors(m).length<2&&m++,!d&&n.forceNiceScale&&0===c.yValueDecimal&&m>g&&(m=g,v=Math.round(g/m)),m>r&&(!d&&!u||n.forceNiceScale)){var D=w.getPrimeFactors(m),E=D.length-1,P=m;e:for(var Y=0;YN);return{result:p,niceMin:p[0],niceMax:p[p.length-1]}}},{key:"linearScale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,a=Math.abs(t-e);"dataPoints"===(n=this._adjustTicksForSmallRange(n,r,a))&&(n=this.w.globals.dataPoints-1),i||(i=a/n),n===Number.MAX_VALUE&&(n=5,i=1);for(var o=[],s=e;n>=0;)o.push(s),s+=i,n-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,n){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));for(var r=[],i=Math.ceil(Math.log(t)/Math.log(n)+1),a=Math.floor(Math.log(e)/Math.log(n));a5?(r.allSeriesCollapsed=!1,r.yAxisScale[e]=a.forceNiceScale?this.logarithmicScaleNice(t,n,a.logBase):this.logarithmicScale(t,n,a.logBase)):n!==-Number.MAX_VALUE&&w.isNumber(n)&&t!==Number.MAX_VALUE&&w.isNumber(t)?(r.allSeriesCollapsed=!1,r.yAxisScale[e]=this.niceScale(t,n,e)):r.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e)}},{key:"setXScale",value:function(e,t){var n=this.w,r=n.globals,i=Math.abs(t-e);return t!==-Number.MAX_VALUE&&w.isNumber(t)?r.xAxisScale=this.linearScale(e,t,n.config.xaxis.tickAmount?n.config.xaxis.tickAmount:i<10&&i>1?i+1:10,0,n.config.xaxis.stepSize):r.xAxisScale=this.linearScale(0,10,10),r.xAxisScale}},{key:"setSeriesYAxisMappings",value:function(){var e=this.w.globals,t=this.w.config,n=[],r=[],i=[],a=e.series.length>t.yaxis.length||t.yaxis.some((function(e){return Array.isArray(e.seriesName)}));t.series.forEach((function(e,t){i.push(t),r.push(null)})),t.yaxis.forEach((function(e,t){n[t]=[]}));var o=[];t.yaxis.forEach((function(e,r){var s=!1;if(e.seriesName){var l=[];Array.isArray(e.seriesName)?l=e.seriesName:l.push(e.seriesName),l.forEach((function(e){t.series.forEach((function(t,o){if(t.name===e){var l=o;r===o||a?!a||i.indexOf(o)>-1?n[r].push([r,o]):console.warn("Series '"+t.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(n[o].push([o,r]),l=r),s=!0,-1!==(l=i.indexOf(l))&&i.splice(l,1)}}))}))}s||o.push(r)})),n=n.map((function(e,t){var n=[];return e.forEach((function(e){r[e[1]]=e[0],n.push(e[1])})),n}));for(var s=t.yaxis.length-1,l=0;l0?function(){var l,c,u=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=u,f=d;if(t.chart.stacked)!function(){var e=n.seriesX[r[0]],i=[],a=[],p=[];s.forEach((function(){i.push(e.map((function(){return Number.MIN_VALUE}))),a.push(e.map((function(){return Number.MIN_VALUE}))),p.push(e.map((function(){return Number.MIN_VALUE})))}));for(var m=function(e){!l&&t.series[r[e]].type&&(l=t.series[r[e]].type);var u=r[e];c=t.series[u].group?t.series[u].group:"axis-".concat(o),!(n.collapsedSeriesIndices.indexOf(u)<0&&n.ancillaryCollapsedSeriesIndices.indexOf(u)<0)||(n.allSeriesCollapsed=!1,s.forEach((function(e,r){if(t.series[u].group===e)for(var o=0;o=0?a[r][o]+=s:p[r][o]+=s,i[r][o]+=s,h=Math.min(h,s),f=Math.max(f,s)}}))),"bar"!==l&&"column"!==l||n.barGroups.push(c)},g=0;g1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.w.config,a=this.w.globals,o=-Number.MAX_VALUE,s=Number.MIN_VALUE;null===r&&(r=e+1);var l=a.series,c=l,u=l;"candlestick"===i.chart.type?(c=a.seriesCandleL,u=a.seriesCandleH):"boxPlot"===i.chart.type?(c=a.seriesCandleO,u=a.seriesCandleC):a.isRangeData&&(c=a.seriesRangeStart,u=a.seriesRangeEnd);var d=!1;if(a.seriesX.length>=r){var h,f=null===(h=a.brushSource)||void 0===h?void 0:h.w.config.chart.brush;(i.chart.zoom.enabled&&i.chart.zoom.autoScaleYaxis||null!=f&&f.enabled&&null!=f&&f.autoScaleYaxis)&&(d=!0)}for(var p=e;pg&&a.seriesX[p][v]>i.xaxis.max;v--);}for(var b=g;b<=v&&bc[p][b]&&c[p][b]<0&&(s=c[p][b])}else a.hasNullValues=!0}"bar"!==m&&"column"!==m||(s<0&&o<0&&(o=0,n=Math.max(n,0)),s===Number.MIN_VALUE&&(s=0,t=Math.min(t,0)))}return"rangeBar"===i.chart.type&&a.seriesRangeStart.length&&a.isBarHorizontal&&(s=t),"bar"===i.chart.type&&(s<0&&o<0&&(o=0),s===Number.MIN_VALUE&&(s=0)),{minY:s,maxY:o,lowestY:t,highestY:n}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var n,r=Number.MAX_VALUE;if(e.isMultipleYAxis){r=Number.MAX_VALUE;for(var i=0;ie.dataPoints&&0!==e.dataPoints&&(r=e.dataPoints-1)):"dataPoints"===t.xaxis.tickAmount?(e.series.length>1&&(r=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric&&(r=e.maxX-e.minX-1)):r=t.xaxis.tickAmount,e.xTickAmount=r,void 0!==t.xaxis.max&&"number"==typeof t.xaxis.max&&(e.maxX=t.xaxis.max),void 0!==t.xaxis.min&&"number"==typeof t.xaxis.min&&(e.minX=t.xaxis.min),void 0!==t.xaxis.range&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var i=[],a=e.minX-1;a0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,r-1,0,t.xaxis.stepSize),e.seriesX=e.labels.slice());n&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ)for(var t=0;t0){var i=t-r[n-1];i>0&&(e.minXDiff=Math.min(i,e.minXDiff))}})),1!==e.dataPoints&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var e=this,t=this.w.globals;if(t.series.length){var n=t.seriesGroups;n.length||(n=[this.w.globals.seriesNames.map((function(e){return e}))]);var r={},i={};n.forEach((function(n){r[n]=[],i[n]=[],e.w.config.series.map((function(e,r){return n.indexOf(t.seriesNames[r])>-1?r:null})).filter((function(e){return null!==e})).forEach((function(a){for(var o=0;o0?r[n][o]+=parseFloat(t.series[a][o])+1e-4:i[n][o]+=parseFloat(t.series[a][o]))}}))})),Object.entries(r).forEach((function(e){var n=g(e,1)[0];r[n].forEach((function(e,a){t.maxY=Math.max(t.maxY,r[n][a]),t.minY=Math.min(t.minY,i[n][a])}))}))}}}]),e}(),Z=function(){function e(t,n){s(this,e),this.ctx=t,this.elgrid=n,this.w=t.w;var r=this.w;this.xaxisFontSize=r.config.xaxis.labels.style.fontSize,this.axisFontFamily=r.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=r.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===r.config.chart.type&&r.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===r.config.xaxis.position&&(this.xAxisoffX=r.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new L(t)}return c(e,[{key:"drawYaxis",value:function(e){var t=this,n=this.w,r=new A(this.ctx),i=n.config.yaxis[e].labels.style,a=i.fontSize,o=i.fontFamily,s=i.fontWeight,l=r.group({class:"apexcharts-yaxis",rel:e,transform:"translate("+n.globals.translateYAxisX[e]+", 0)"});if(this.axesUtils.isYAxisHidden(e))return l;var c=r.group({class:"apexcharts-yaxis-texts-g"});l.add(c);var u=n.globals.yAxisScale[e].result.length-1,d=n.globals.gridHeight/u,h=n.globals.yLabelFormatters[e],f=n.globals.yAxisScale[e].result.slice();f=this.axesUtils.checkForReversedLabels(e,f);var p="";if(n.config.yaxis[e].labels.show){var m=n.globals.translateY+n.config.yaxis[e].labels.offsetY;n.globals.isBarHorizontal?m=0:"heatmap"===n.config.chart.type&&(m-=d/2),m+=parseInt(n.config.yaxis[e].labels.style.fontSize,10)/3;for(var g=function(l){var g=f[l];g=h(g,l,n);var v=n.config.yaxis[e].labels.padding;n.config.yaxis[e].opposite&&0!==n.config.yaxis.length&&(v*=-1);var b="end";n.config.yaxis[e].opposite&&(b="start"),"left"===n.config.yaxis[e].labels.align?b="start":"center"===n.config.yaxis[e].labels.align?b="middle":"right"===n.config.yaxis[e].labels.align&&(b="end");var y=t.axesUtils.getYAxisForeColor(i.colors,e),x=w.listToArray(n.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-label tspan"))).map((function(e){return e.textContent})),_=r.drawText({x:v,y:m,text:x.indexOf(g)>=0?"":g,textAnchor:b,fontSize:a,fontFamily:o,fontWeight:s,maxWidth:n.config.yaxis[e].labels.maxWidth,foreColor:Array.isArray(y)?y[l]:y,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+i.cssClass});l===u&&(p=_),c.add(_);var A=document.createElementNS(n.globals.SVGNS,"title");if(A.textContent=Array.isArray(g)?g.join(" "):g,_.node.appendChild(A),0!==n.config.yaxis[e].labels.rotate){var k=r.rotateAroundCenter(p.node),S=r.rotateAroundCenter(_.node);_.node.setAttribute("transform","rotate(".concat(n.config.yaxis[e].labels.rotate," ").concat(k.x," ").concat(S.y,")"))}m+=d},v=u;v>=0;v--)g(v)}if(void 0!==n.config.yaxis[e].title.text){var b=r.group({class:"apexcharts-yaxis-title"}),y=0;n.config.yaxis[e].opposite&&(y=n.globals.translateYAxisX[e]);var x=r.drawText({x:y,y:n.globals.gridHeight/2+n.globals.translateY+n.config.yaxis[e].title.offsetY,text:n.config.yaxis[e].title.text,textAnchor:"end",foreColor:n.config.yaxis[e].title.style.color,fontSize:n.config.yaxis[e].title.style.fontSize,fontWeight:n.config.yaxis[e].title.style.fontWeight,fontFamily:n.config.yaxis[e].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+n.config.yaxis[e].title.style.cssClass});b.add(x),l.add(b)}var _=n.config.yaxis[e].axisBorder,k=31+_.offsetX;if(n.config.yaxis[e].opposite&&(k=-31-_.offsetX),_.show){var S=r.drawLine(k,n.globals.translateY+_.offsetY-2,k,n.globals.gridHeight+n.globals.translateY+_.offsetY+2,_.color,0,_.width);l.add(S)}return n.config.yaxis[e].axisTicks.show&&this.axesUtils.drawYAxisTicks(k,u,_,n.config.yaxis[e].axisTicks,e,d,l),l}},{key:"drawYaxisInversed",value:function(e){var t=this.w,n=new A(this.ctx),r=n.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),i=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});r.add(i);var a=t.globals.yAxisScale[e].result.length-1,o=t.globals.gridWidth/a+.1,s=o+t.config.xaxis.labels.offsetX,l=t.globals.xLabelFormatter,c=t.globals.yAxisScale[e].result.slice(),u=t.globals.timescaleLabels;u.length>0&&(this.xaxisLabels=u.slice(),a=(c=u.slice()).length),c=this.axesUtils.checkForReversedLabels(e,c);var d=u.length;if(t.config.xaxis.labels.show)for(var h=d?0:a;d?h=0;d?h++:h--){var f=c[h];f=l(f,h,t);var p=t.globals.gridWidth+t.globals.padHorizontal-(s-o+t.config.xaxis.labels.offsetX);if(u.length){var m=this.axesUtils.getLabel(c,u,p,h,this.drawnLabels,this.xaxisFontSize);p=m.x,f=m.text,this.drawnLabels.push(m.text),0===h&&t.globals.skipFirstTimelinelabel&&(f=""),h===c.length-1&&t.globals.skipLastTimelinelabel&&(f="")}var g=n.drawText({x:p,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-("top"===t.config.xaxis.position?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:f,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+t.config.xaxis.labels.style.cssClass});i.add(g),g.tspan(f);var v=document.createElementNS(t.globals.SVGNS,"title");v.textContent=f,g.node.appendChild(v),s+=o}return this.inversedYAxisTitleText(r),this.inversedYAxisBorder(r),r}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,n=new A(this.ctx),r=t.config.xaxis.axisBorder;if(r.show){var i=0;"bar"===t.config.chart.type&&t.globals.isXNumeric&&(i-=15);var a=n.drawLine(t.globals.padHorizontal+i+r.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,r.color,0,r.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(a):e.add(a)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,n=new A(this.ctx);if(void 0!==t.config.xaxis.title.text){var r=n.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),i=n.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});r.add(i),e.add(r)}}},{key:"yAxisTitleRotate",value:function(e,t){var n=this.w,r=new A(this.ctx),i={width:0,height:0},a={width:0,height:0},o=n.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g"));null!==o&&(i=o.getBoundingClientRect());var s=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text"));if(null!==s&&(a=s.getBoundingClientRect()),null!==s){var l=this.xPaddingForYAxisTitle(e,i,a,t);s.setAttribute("x",l.xPos-(t?10:0))}if(null!==s){var c=r.rotateAroundCenter(s);s.setAttribute("transform","rotate(".concat(t?-1*n.config.yaxis[e].title.rotate:n.config.yaxis[e].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,n,r){var i=this.w,a=0,o=0,s=10;return void 0===i.config.yaxis[e].title.text||e<0?{xPos:o,padd:0}:(r?(o=t.width+i.config.yaxis[e].title.offsetX+n.width/2+s/2,0===(a+=1)&&(o-=s/2)):(o=-1*t.width+i.config.yaxis[e].title.offsetX+s/2+n.width/2,i.globals.isBarHorizontal&&(s=25,o=-1*t.width-i.config.yaxis[e].title.offsetX-s)),{xPos:o,padd:s})}},{key:"setYAxisXPosition",value:function(e,t){var n=this.w,r=0,i=0,a=18,o=1;n.config.yaxis.length>1&&(this.multipleYs=!0),n.config.yaxis.map((function(s,l){var c=n.globals.ignoreYAxisIndexes.indexOf(l)>-1||!s.show||s.floating||0===e[l].width,u=e[l].width+t[l].width;s.opposite?n.globals.isBarHorizontal?(i=n.globals.gridWidth+n.globals.translateX-1,n.globals.translateYAxisX[l]=i-s.labels.offsetX):(i=n.globals.gridWidth+n.globals.translateX+o,c||(o=o+u+20),n.globals.translateYAxisX[l]=i-s.labels.offsetX+20):(r=n.globals.translateX-a,c||(a=a+u+20),n.globals.translateYAxisX[l]=r+s.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=w.listToArray(t)).forEach((function(t,n){var r=e.config.yaxis[n];if(r&&!r.floating&&void 0!==r.labels.align){var i=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-texts-g")),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-label"));a=w.listToArray(a);var o=i.getBoundingClientRect();"left"===r.labels.align?(a.forEach((function(e,t){e.setAttribute("text-anchor","start")})),r.opposite||i.setAttribute("transform","translate(-".concat(o.width,", 0)"))):"center"===r.labels.align?(a.forEach((function(e,t){e.setAttribute("text-anchor","middle")})),i.setAttribute("transform","translate(".concat(o.width/2*(r.opposite?1:-1),", 0)"))):"right"===r.labels.align&&(a.forEach((function(e,t){e.setAttribute("text-anchor","end")})),r.opposite&&i.setAttribute("transform","translate(".concat(o.width,", 0)")))}}))}}]),e}(),J=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.documentEvent=w.bind(this.documentEvent,this)}return c(e,[{key:"addEventListener",value:function(e,t){var n=this.w;n.globals.events.hasOwnProperty(e)?n.globals.events[e].push(t):n.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){var r=n.globals.events[e].indexOf(t);-1!==r&&n.globals.events[e].splice(r,1)}}},{key:"fireEvent",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var r=n.globals.events[e],i=r.length,a=0;a0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var n=t.filter((function(t){return t.name===e}))[0];if(!n)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var r=w.extend(E,n);this.w.globals.locale=r.options}}]),e}(),te=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"drawAxis",value:function(e,t){var n,r,i=this,a=this.w.globals,o=this.w.config,s=new G(this.ctx,t),l=new Z(this.ctx,t);a.axisCharts&&"radar"!==e&&(a.isBarHorizontal?(r=l.drawYaxisInversed(0),n=s.drawXaxisInversed(0),a.dom.elGraphical.add(n),a.dom.elGraphical.add(r)):(n=s.drawXaxis(),a.dom.elGraphical.add(n),o.yaxis.map((function(e,t){if(-1===a.ignoreYAxisIndexes.indexOf(t)&&(r=l.drawYaxis(t),a.dom.Paper.add(r),"back"===i.w.config.grid.position)){var n=a.dom.Paper.children()[1];n.remove(),a.dom.Paper.add(n)}}))))}}]),e}(),ne=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new A(this.ctx),n=new _(this.ctx),r=e.config.xaxis.crosshairs.fill.gradient,i=e.config.xaxis.crosshairs.dropShadow,a=e.config.xaxis.crosshairs.fill.type,o=r.colorFrom,s=r.colorTo,l=r.opacityFrom,c=r.opacityTo,u=r.stops,d=i.enabled,h=i.left,f=i.top,p=i.blur,m=i.color,g=i.opacity,v=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){"gradient"===a&&(v=t.drawGradient("vertical",o,s,l,c,null,u,null));var b=t.drawRect();1===e.config.xaxis.crosshairs.width&&(b=t.drawLine());var y=e.globals.gridHeight;(!w.isNumber(y)||y<0)&&(y=0);var x=e.config.xaxis.crosshairs.width;(!w.isNumber(x)||x<0)&&(x=0),b.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:y,width:x,height:y,fill:v,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),d&&(b=n.dropShadow(b,{left:h,top:f,blur:p,color:m,opacity:g})),e.globals.dom.elGraphical.add(b)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new A(this.ctx),n=e.config.yaxis[0].crosshairs,r=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var i=t.drawLine(-r,0,e.globals.gridWidth+r,0,n.stroke.color,n.stroke.dashArray,n.stroke.width);i.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(i)}var a=t.drawLine(-r,0,e.globals.gridWidth+r,0,n.stroke.color,0,0);a.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(a)}}]),e}(),re=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"checkResponsiveConfig",value:function(e){var t=this,n=this.w,r=n.config;if(0!==r.responsive.length){var i=r.responsive.slice();i.sort((function(e,t){return e.breakpoint>t.breakpoint?1:t.breakpoint>e.breakpoint?-1:0})).reverse();var a=new F({}),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i[0].breakpoint,o=window.innerWidth>0?window.innerWidth:screen.width;if(o>r){var s=w.clone(n.globals.initialConfig);s.series=w.clone(n.config.series);var l=k.extendArrayProps(a,s,n);e=w.extend(l,e),e=w.extend(n.config,e),t.overrideResponsiveOptions(e)}else for(var c=0;c0&&"function"==typeof n.config.colors[0]&&(n.globals.colors=n.config.series.map((function(e,r){var i=n.config.colors[r];return i||(i=n.config.colors[0]),"function"==typeof i?(t.isColorFn=!0,i({value:n.globals.axisCharts?n.globals.series[r][0]?n.globals.series[r][0]:0:n.globals.series[r],seriesIndex:r,dataPointIndex:r,w:n})):i})))),n.globals.seriesColors.map((function(e,t){e&&(n.globals.colors[t]=e)})),n.config.theme.monochrome.enabled){var i=[],a=n.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(a=n.globals.series[0].length*n.globals.series.length);for(var o=n.config.theme.monochrome.color,s=1/(a/n.config.theme.monochrome.shadeIntensity),l=n.config.theme.monochrome.shadeTo,c=0,u=0;u2&&void 0!==arguments[2]?arguments[2]:null,r=this.w,i=t||r.globals.series.length;if(null===n&&(n=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===r.config.chart.type&&r.config.plotOptions.heatmap.colorScale.inverse),n&&r.globals.series.length&&(i=r.globals.series[r.globals.maxValsInArrayIndex].length*r.globals.series.length),e.lengthe.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getDatalabelsRect",value:function(){var e=this,t=this.w,n=[];t.config.series.forEach((function(i,a){i.data.forEach((function(i,o){var s;s=t.globals.series[a][o],r=t.config.dataLabels.formatter(s,{ctx:e.dCtx.ctx,seriesIndex:a,dataPointIndex:o,w:t}),n.push(r)}))}));var r=w.getLargestStringFromArr(n),i=new A(this.dCtx.ctx),a=t.config.dataLabels.style,o=i.getTextRects(r,parseInt(a.fontSize),a.fontFamily);return{width:1.05*o.width,height:o.height}}},{key:"getLargestStringFromMultiArr",value:function(e,t){var n=e;if(this.w.globals.isMultiLineX){var r=t.map((function(e,t){return Array.isArray(e)?e.length:1})),i=Math.max.apply(Math,v(r));n=t[r.indexOf(i)]}return n}}]),e}(),se=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return c(e,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,n=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&0===n.length&&(n=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var r=this.getxAxisTimeScaleLabelsCoords();e={width:r.width,height:r.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==t.config.legend.position&&"right"!==t.config.legend.position||t.config.legend.floating?0:this.dCtx.lgRect.width;var i=t.globals.xLabelFormatter,a=w.getLargestStringFromArr(n),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,n);t.globals.isBarHorizontal&&(o=a=t.globals.yAxisScale[0].result.reduce((function(e,t){return e.length>t.length?e:t}),0));var s=new O(this.dCtx.ctx),l=a;a=s.xLabelFormat(i,a,l,{i:void 0,dateFormatter:new M(this.dCtx.ctx).formatDate,w:t}),o=s.xLabelFormat(i,o,l,{i:void 0,dateFormatter:new M(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&void 0===a||""===String(a).trim())&&(o=a="1");var c=new A(this.dCtx.ctx),u=c.getTextRects(a,t.config.xaxis.labels.style.fontSize),d=u;if(a!==o&&(d=c.getTextRects(o,t.config.xaxis.labels.style.fontSize)),(e={width:u.width>=d.width?u.width:d.width,height:u.height>=d.height?u.height:d.height}).width*n.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==t.config.xaxis.labels.rotate||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var h=function(e){return c.getTextRects(e,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};u=h(a),a!==o&&(d=h(o)),e.height=(u.height>d.height?u.height:d.height)/1.5,e.width=u.width>d.width?u.width:d.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasXaxisGroups)return{width:0,height:0};var n,r=(null===(e=t.config.xaxis.group.style)||void 0===e?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,i=t.globals.groups.map((function(e){return e.title})),a=w.getLargestStringFromArr(i),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,i),s=new A(this.dCtx.ctx),l=s.getTextRects(a,r),c=l;return a!==o&&(c=s.getTextRects(o,r)),n={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},t.config.xaxis.labels.show||(n={width:0,height:0}),{width:n.width,height:n.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,n=0;if(void 0!==e.config.xaxis.title.text){var r=new A(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=r.width,n=r.height}return{width:t,height:n}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var n=this.dCtx.timescaleLabels.map((function(e){return e.value})),r=n.reduce((function(e,t){return void 0===e?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):e.length>t.length?e:t}),0);return 1.05*(e=new A(this.dCtx.ctx).getTextRects(r,t.config.xaxis.labels.style.fontSize)).width*n.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,n=this.w,r=n.globals,i=n.config,a=i.xaxis.type,o=e.width;r.skipLastTimelinelabel=!1,r.skipFirstTimelinelabel=!1;var s=n.config.yaxis[0].opposite&&n.globals.isBarHorizontal,l=function(e,s){i.yaxis.length>1&&function(e){return-1!==r.collapsedSeriesIndices.indexOf(e)}(s)||function(e){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var s=t.dCtx.timescaleLabels[0],l=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+o/1.75-t.dCtx.yAxisWidthRight,c=s.position-o/1.75+t.dCtx.yAxisWidthLeft,u="right"===n.config.legend.position&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;l>r.svgWidth-r.translateX-u&&(r.skipLastTimelinelabel=!0),c<-(e.show&&!e.floating||"bar"!==i.chart.type&&"candlestick"!==i.chart.type&&"rangeBar"!==i.chart.type&&"boxPlot"!==i.chart.type?10:o/1.75)&&(r.skipFirstTimelinelabel=!0)}else"datetime"===a?t.dCtx.gridPad.right(null===(r=String(u(t,s)))||void 0===r?void 0:r.length)?e:t}),d),f=h=u(h,s);if(void 0!==h&&0!==h.length||(h=l.niceMax),t.globals.isBarHorizontal){r=0;var p=t.globals.labels.slice();h=w.getLargestStringFromArr(p),h=u(h,{seriesIndex:o,dataPointIndex:-1,w:t}),f=e.dCtx.dimHelpers.getLargestStringFromMultiArr(h,p)}var m=new A(e.dCtx.ctx),g="rotate(".concat(a.labels.rotate," 0 0)"),v=m.getTextRects(h,a.labels.style.fontSize,a.labels.style.fontFamily,g,!1),b=v;h!==f&&(b=m.getTextRects(f,a.labels.style.fontSize,a.labels.style.fontFamily,g,!1)),n.push({width:(c>b.width||c>v.width?c:b.width>v.width?b.width:v.width)+r,height:b.height>v.height?b.height:v.height})}else n.push({width:0,height:0})})),n}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,n=[];return t.config.yaxis.map((function(t,r){if(t.show&&void 0!==t.title.text){var i=new A(e.dCtx.ctx),a="rotate(".concat(t.title.rotate," 0 0)"),o=i.getTextRects(t.title.text,t.title.style.fontSize,t.title.style.fontFamily,a,!1);n.push({width:o.width,height:o.height})}else n.push({width:0,height:0})})),n}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,n=0,r=0,i=e.globals.yAxisScale.length>1?10:0,a=new L(this.dCtx.ctx),o=function(o,s){var l=e.config.yaxis[s].floating,c=0;o.width>0&&!l?(c=o.width+i,function(t){return e.globals.ignoreYAxisIndexes.indexOf(t)>-1}(s)&&(c=c-o.width-i)):c=l||a.isYAxisHidden(s)?0:5,e.config.yaxis[s].opposite?r+=c:n+=c,t+=c};return e.globals.yLabelsCoords.map((function(e,t){o(e,t)})),e.globals.yTitleCoords.map((function(e,t){o(e,t)})),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=n,this.dCtx.yAxisWidthRight=r,t}}]),e}(),ce=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return c(e,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w,n=t.config,r=t.globals;if(r.noData||r.collapsedSeries.length+r.ancillaryCollapsedSeries.length===n.series.length)return 0;var i=function(e){return"bar"===e||"rangeBar"===e||"candlestick"===e||"boxPlot"===e},a=n.chart.type,o=0,s=i(a)?n.series.length:1;r.comboBarCount>0&&(s=r.comboBarCount),r.collapsedSeries.forEach((function(e){i(e.type)&&(s-=1)})),n.chart.stacked&&(s=1);var l,c,u=i(a)||r.comboBarCount>0,d=Math.abs(r.initialMaxX-r.initialMinX);u&&r.isXNumeric&&!r.isBarHorizontal&&s>0&&0!==d&&(d<=3&&(d=r.dataPoints),l=d/e,r.minXDiff&&r.minXDiff/l>0&&(c=r.minXDiff/l),c>e/2&&(c/=2),(o=c*parseInt(n.plotOptions.bar.columnWidth,10)/100)<1&&(o=1),r.barPadForNumericAxis=o);return o}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,n=t.globals,r=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach((function(n){void 0!==t.config[n].text?r+=t.config[n].margin:r+=e.dCtx.isSparkline||!t.globals.axisCharts?0:5})),!t.config.legend.show||"bottom"!==t.config.legend.position||t.config.legend.floating||t.globals.axisCharts||(r+=10);var i=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),a=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");n.gridHeight=n.gridHeight-i.height-a.height-r,n.translateY=n.translateY+i.height+a.height+r}},{key:"setGridXPosForDualYAxis",value:function(e,t){var n=this.w,r=new L(this.dCtx.ctx);n.config.yaxis.map((function(i,a){-1!==n.globals.ignoreYAxisIndexes.indexOf(a)||i.floating||r.isYAxisHidden(a)||(i.opposite&&(n.globals.translateX=n.globals.translateX-(t[a].width+e[a].width)-parseInt(n.config.yaxis[a].labels.style.fontSize,10)/1.2-12),n.globals.translateX<2&&(n.globals.translateX=2))}))}}]),e}(),ue=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new oe(this),this.dimYAxis=new le(this),this.dimXAxis=new se(this),this.dimGrid=new ce(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return c(e,[{key:"plotCoords",value:function(){var e=this,t=this.w,n=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};var r=Array.isArray(t.config.stroke.width)?Math.max.apply(Math,v(t.config.stroke.width)):t.config.stroke.width;this.isSparkline&&((t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach((function(t){var n=g(t,2),r=n[0],i=n[1];e.gridPad[r]=Math.max(i,e.w.globals.markers.largestSize/1.5)})),this.gridPad.top=Math.max(r/2,this.gridPad.top),this.gridPad.bottom=Math.max(r/2,this.gridPad.bottom)),n.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),n.gridHeight=n.gridHeight-this.gridPad.top-this.gridPad.bottom,n.gridWidth=n.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var i=this.dimGrid.gridPadForColumnsInNumericAxis(n.gridWidth);n.gridWidth=n.gridWidth-2*i,n.translateX=n.translateX+this.gridPad.left+this.xPadLeft+(i>0?i:0),n.translateY=n.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,n=t.globals,r=this.dimYAxis.getyAxisLabelsCoords(),i=this.dimYAxis.getyAxisTitleCoords();n.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map((function(e,n){t.globals.yLabelsCoords.push({width:r[n].width,index:n}),t.globals.yTitleCoords.push({width:i[n].width,index:n})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var a=this.dimXAxis.getxAxisLabelsCoords(),o=this.dimXAxis.getxAxisGroupLabelsCoords(),s=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(a,s,o),n.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,n.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(n.rotateXLabels=!1,n.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),n.translateXAxisY=n.translateXAxisY+t.config.xaxis.labels.offsetY,n.translateXAxisX=n.translateXAxisX+t.config.xaxis.labels.offsetX;var l=this.yAxisWidth,c=this.xAxisHeight;n.xAxisLabelsHeight=this.xAxisHeight-s.height,n.xAxisGroupLabelsHeight=n.xAxisLabelsHeight-a.height,n.xAxisLabelsWidth=this.xAxisWidth,n.xAxisHeight=this.xAxisHeight;var u=10;("radar"===t.config.chart.type||this.isSparkline)&&(l=0,c=n.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===t.config.chart.type)&&(l=0,c=0,u=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(a);var d=function(){n.translateX=l+e.datalabelsCoords.width,n.gridHeight=n.svgHeight-e.lgRect.height-c-(e.isSparkline||"treemap"===t.config.chart.type?0:t.globals.rotateXLabels?10:15),n.gridWidth=n.svgWidth-l-2*e.datalabelsCoords.width};switch("top"===t.config.xaxis.position&&(u=n.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":n.translateY=u,d();break;case"top":n.translateY=this.lgRect.height+u,d();break;case"left":n.translateY=u,n.translateX=this.lgRect.width+l+this.datalabelsCoords.width,n.gridHeight=n.svgHeight-c-12,n.gridWidth=n.svgWidth-this.lgRect.width-l-2*this.datalabelsCoords.width;break;case"right":n.translateY=u,n.translateX=l+this.datalabelsCoords.width,n.gridHeight=n.svgHeight-c-12,n.gridWidth=n.svgWidth-this.lgRect.width-l-2*this.datalabelsCoords.width-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(i,r),new Z(this.ctx).setYAxisXPosition(r,i)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=e.config,r=0;e.config.legend.show&&!e.config.legend.floating&&(r=20);var i="pie"===n.chart.type||"polarArea"===n.chart.type||"donut"===n.chart.type?"pie":"radialBar",a=n.plotOptions[i].offsetY,o=n.plotOptions[i].offsetX;if(!n.legend.show||n.legend.floating){t.gridHeight=t.svgHeight-n.grid.padding.top-n.grid.padding.bottom;var s=t.dom.elWrap.getBoundingClientRect().width;return t.gridWidth=Math.min(s,t.gridHeight)-n.grid.padding.left-n.grid.padding.right,t.translateY=a,void(t.translateX=o+(t.svgWidth-t.gridWidth)/2)}switch(n.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=a-10,t.translateX=o+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+a+10,t.translateX=o+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-r,t.gridHeight="auto"!==n.chart.height?t.svgHeight:t.gridWidth,t.translateY=a,t.translateX=o+this.lgRect.width+r;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-r-5,t.gridHeight="auto"!==n.chart.height?t.svgHeight:t.gridWidth,t.translateY=a,t.translateX=o+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,n){var r=this.w,i=r.globals.hasXaxisGroups?2:1,a=n.height+e.height+t.height,o=r.globals.isMultiLineX?1.2:r.globals.LINE_HEIGHT_RATIO,s=r.globals.rotateXLabels?22:10,l=r.globals.rotateXLabels&&"bottom"===r.config.legend.position?10:0;this.xAxisHeight=a*o+i*s+l,this.xAxisWidth=e.width,this.xAxisHeight-t.height>r.config.xaxis.labels.maxHeight&&(this.xAxisHeight=r.config.xaxis.labels.maxHeight),r.config.xaxis.labels.minHeight&&this.xAxisHeightu&&(this.yAxisWidth=u)}}]),e}(),de=function(){function e(t){s(this,e),this.w=t.w,this.lgCtx=t}return c(e,[{key:"getLegendStyles",value:function(){var e,t,n,r=document.createElement("style");r.setAttribute("type","text/css");var i=(null===(e=this.lgCtx.ctx)||void 0===e||null===(t=e.opts)||void 0===t||null===(n=t.chart)||void 0===n?void 0:n.nonce)||this.w.config.chart.nonce;i&&r.setAttribute("nonce",i);var a=document.createTextNode("\n .apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n }\n .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n flex-direction: column;\n bottom: 0;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n justify-content: flex-start;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n justify-content: center;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\n justify-content: flex-end;\n }\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n display: flex;\n align-items: center;\n }\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n .apexcharts-legend-marker {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin-right: 1px;\n }\n\n .apexcharts-legend-series.apexcharts-no-click {\n cursor: auto;\n }\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n .apexcharts-inactive-legend {\n opacity: 0.45;\n }");return r.appendChild(a),r}},{key:"getLegendDimensions",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend"),t=e.offsetWidth;return{clwh:e.offsetHeight,clww:t}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(e,t){var n=this,r=this.w;if(r.globals.axisCharts||"radialBar"===r.config.chart.type){r.globals.resized=!0;var i=null,a=null;r.globals.risingSeries=[],r.globals.axisCharts?(i=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),a=parseInt(i.getAttribute("data:realIndex"),10)):(i=r.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),a=parseInt(i.getAttribute("rel"),10)-1),t?[{cs:r.globals.collapsedSeries,csi:r.globals.collapsedSeriesIndices},{cs:r.globals.ancillaryCollapsedSeries,csi:r.globals.ancillaryCollapsedSeriesIndices}].forEach((function(e){n.riseCollapsedSeries(e.cs,e.csi,a)})):this.hideSeries({seriesEl:i,realIndex:a})}else{var o=r.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),s=r.config.chart.type;if("pie"===s||"polarArea"===s||"donut"===s){var l=r.config.plotOptions.pie.donut.labels;new A(this.lgCtx.ctx).pathMouseDown(o.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(o.members[0].node,l)}o.fire("click")}}},{key:"hideSeries",value:function(e){var t=e.seriesEl,n=e.realIndex,r=this.w,i=r.globals,a=w.clone(r.config.series);if(i.axisCharts){var o=r.config.yaxis[i.seriesYAxisReverseMap[n]];if(o&&o.show&&o.showAlways)i.ancillaryCollapsedSeriesIndices.indexOf(n)<0&&(i.ancillaryCollapsedSeries.push({index:n,data:a[n].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),i.ancillaryCollapsedSeriesIndices.push(n));else if(i.collapsedSeriesIndices.indexOf(n)<0){i.collapsedSeries.push({index:n,data:a[n].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),i.collapsedSeriesIndices.push(n);var s=i.risingSeries.indexOf(n);i.risingSeries.splice(s,1)}}else i.collapsedSeries.push({index:n,data:a[n]}),i.collapsedSeriesIndices.push(n);for(var l=t.childNodes,c=0;c0){for(var a=0;a1||!t.axisCharts)&&n.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),w.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===n.legend.position||"top"===n.legend.position?this.legendAlignHorizontal():"right"!==n.legend.position&&"left"!==n.legend.position||this.legendAlignVertical()}}},{key:"createLegendMarker",value:function(e){var t=e.i,n=e.fillcolor,r=this.w,i=document.createElement("span");i.classList.add("apexcharts-legend-marker");var o=r.config.legend.markers.shape||r.config.markers.shape,s=o;Array.isArray(o)&&(s=o[t]);var l=Array.isArray(r.config.legend.markers.size)?parseFloat(r.config.legend.markers.size[t]):parseFloat(r.config.legend.markers.size),c=Array.isArray(r.config.legend.markers.offsetX)?parseFloat(r.config.legend.markers.offsetX[t]):parseFloat(r.config.legend.markers.offsetX),u=Array.isArray(r.config.legend.markers.offsetY)?parseFloat(r.config.legend.markers.offsetY[t]):parseFloat(r.config.legend.markers.offsetY),d=Array.isArray(r.config.legend.markers.strokeWidth)?parseFloat(r.config.legend.markers.strokeWidth[t]):parseFloat(r.config.legend.markers.strokeWidth),h=i.style;if(h.height=2*(l+d)+"px",h.width=2*(l+d)+"px",h.left=c+"px",h.top=u+"px",r.config.legend.markers.customHTML)h.background="transparent",h.color=n[t],Array.isArray(r.config.legend.markers.customHTML)?r.config.legend.markers.customHTML[t]&&(i.innerHTML=r.config.legend.markers.customHTML[t]()):i.innerHTML=r.config.legend.markers.customHTML();else{var f=new z(this.ctx).getMarkerConfig({cssClass:"apexcharts-legend-marker apexcharts-marker apexcharts-marker-".concat(s),seriesIndex:t,strokeWidth:d,size:l}),p=SVG(i).size("100%","100%"),m=new A(this.ctx).drawMarker(0,0,a(a({},f),{},{pointFillColor:Array.isArray(r.config.legend.markers.fillColors)?n[t]:f.pointFillColor,shape:s}));SVG.select(".apexcharts-legend-marker.apexcharts-marker").members.forEach((function(e){e.node.classList.contains("apexcharts-marker-triangle")?e.node.style.transform="translate(50%, 45%)":e.node.style.transform="translate(50%, 50%)"})),p.add(m)}return i}},{key:"drawLegends",value:function(){var e=this,t=this.w,n=t.config.legend.fontFamily,r=t.globals.seriesNames,i=t.config.legend.markers.fillColors?t.config.legend.markers.fillColors.slice():t.globals.colors.slice();if("heatmap"===t.config.chart.type){var a=t.config.plotOptions.heatmap.colorScale.ranges;r=a.map((function(e){return e.name?e.name:e.from+" - "+e.to})),i=a.map((function(e){return e.color}))}else this.isBarsDistributed&&(r=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(r=t.config.legend.customLegendItems);for(var o=t.globals.legendFormatter,s=t.config.legend.inverseOrder,l=s?r.length-1:0;s?l>=0:l<=r.length-1;s?l--:l++){var c,u=o(r[l],{seriesIndex:l,w:t}),d=!1,h=!1;if(t.globals.collapsedSeries.length>0)for(var f=0;f0)for(var p=0;p0?l-10:0)+(c>0?c-10:0)}r.style.position="absolute",a=a+e+n.config.legend.offsetX,o=o+t+n.config.legend.offsetY,r.style.left=a+"px",r.style.top=o+"px","bottom"===n.config.legend.position?(r.style.top="auto",r.style.bottom=5-n.config.legend.offsetY+"px"):"right"===n.config.legend.position&&(r.style.left="auto",r.style.right=25+n.config.legend.offsetX+"px"),["width","height"].forEach((function(e){r.style[e]&&(r.style[e]=parseInt(n.config.legend[e],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.elLegendWrap.style.right=0;var t=this.legendHelpers.getLegendDimensions(),n=new ue(this.ctx),r=n.dimHelpers.getTitleSubtitleCoords("title"),i=n.dimHelpers.getTitleSubtitleCoords("subtitle"),a=0;"bottom"===e.config.legend.position?a=-t.clwh/1.8:"top"===e.config.legend.position&&(a=r.height+i.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,a)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendDimensions(),n=0;"left"===e.config.legend.position&&(n=20),"right"===e.config.legend.position&&(n=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(n,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,n=e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if("heatmap"===t.config.chart.type||this.isBarsDistributed){if(n){var r=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,r,this.w]),new V(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&n&&new V(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var n=parseInt(e.target.getAttribute("rel"),10)-1,r="true"===e.target.getAttribute("data:collapsed"),i=this.w.config.chart.events.legendClick;"function"==typeof i&&i(this.ctx,n,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,n,this.w]);var a=this.w.config.legend.markers.onClick;"function"==typeof a&&e.target.classList.contains("apexcharts-legend-marker")&&(a(this.ctx,n,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,n,this.w])),"treemap"!==t.config.chart.type&&"heatmap"!==t.config.chart.type&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(n,r)}}}]),e}(),fe=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=n.globals.minX,this.maxX=n.globals.maxX}return c(e,[{key:"createToolbar",value:function(){var e=this,t=this.w,n=function(){return document.createElement("div")},r=n();if(r.setAttribute("class","apexcharts-toolbar"),r.style.top=t.config.chart.toolbar.offsetY+"px",r.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(r),this.elZoom=n(),this.elZoomIn=n(),this.elZoomOut=n(),this.elPan=n(),this.elSelection=n(),this.elZoomReset=n(),this.elMenuIcon=n(),this.elMenu=n(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var i=0;i\n \n \n\n'),o("zoomOut",this.elZoomOut,'\n \n \n\n');var s=function(n){e.t[n]&&t.config.chart[n].enabled&&a.push({el:"zoom"===n?e.elZoom:e.elSelection,icon:"string"==typeof e.t[n]?e.t[n]:"zoom"===n?'\n \n \n \n':'\n \n \n',title:e.localeValues["zoom"===n?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(n,"-icon")})};s("zoom"),s("selection"),this.t.pan&&t.config.chart.zoom.enabled&&a.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'\n \n \n \n \n \n \n \n',title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),o("reset",this.elZoomReset,'\n \n \n'),this.t.download&&a.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l0&&t.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:e.globals.gridWidth,maxY:e.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var e=this.w,t=this.xyRatios;if(!e.globals.zoomEnabled)if(void 0!==e.globals.selection&&null!==e.globals.selection)this.drawSelectionRect(e.globals.selection);else if(void 0!==e.config.chart.selection.xaxis.min&&void 0!==e.config.chart.selection.xaxis.max){var n=(e.config.chart.selection.xaxis.min-e.globals.minX)/t.xRatio,r=e.globals.gridWidth-(e.globals.maxX-e.config.chart.selection.xaxis.max)/t.xRatio-n;e.globals.isRangeBar&&(n=(e.config.chart.selection.xaxis.min-e.globals.yAxisScale[0].niceMin)/t.invertedYRatio,r=(e.config.chart.selection.xaxis.max-e.config.chart.selection.xaxis.min)/t.invertedYRatio);var i={x:n,y:0,width:r,height:e.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(i),this.makeSelectionRectDraggable(),"function"==typeof e.config.chart.events.selection&&e.config.chart.events.selection(this.ctx,{xaxis:{min:e.config.chart.selection.xaxis.min,max:e.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.translateX,o=void 0===a?0:a,s=e.translateY,l=void 0===s?0:s,c=this.w,u=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==c.globals.selection){var h={transform:"translate("+o+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(r<0&&(r=1),u.attr({x:t,y:n,width:r,height:i,fill:c.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":c.config.chart.zoom.zoomedArea.fill.opacity,stroke:c.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":c.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":c.config.chart.zoom.zoomedArea.stroke.opacity}),A.setAttrs(u.node,h)),c.globals.selectionEnabled&&(d.attr({x:t,y:n,width:r>0?r:0,height:i>0?i:0,fill:c.config.chart.selection.fill.color,"fill-opacity":c.config.chart.selection.fill.opacity,stroke:c.config.chart.selection.stroke.color,"stroke-width":c.config.chart.selection.stroke.width,"stroke-dasharray":c.config.chart.selection.stroke.dashArray,"stroke-opacity":c.config.chart.selection.stroke.opacity}),A.setAttrs(d.node,h))}}},{key:"hideSelectionRect",value:function(e){e&&e.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(e){var t=e.context,n=e.zoomtype,r=this.w,i=t,a=this.gridRect.getBoundingClientRect(),o=i.startX-1,s=i.startY,l=!1,c=!1,u=i.clientX-a.left-o,d=i.clientY-a.top-s,h={};return Math.abs(u+o)>r.globals.gridWidth?u=r.globals.gridWidth-o:i.clientX-a.left<0&&(u=o),o>i.clientX-a.left&&(l=!0,u=Math.abs(u)),s>i.clientY-a.top&&(c=!0,d=Math.abs(d)),h="x"===n?{x:l?o-u:o,y:0,width:u,height:r.globals.gridHeight}:"y"===n?{x:0,y:c?s-d:s,width:r.globals.gridWidth,height:d}:{x:l?o-u:o,y:c?s-d:s,width:u,height:d},i.drawSelectionRect(h),i.selectionDragging("resizing"),h}},{key:"selectionDragging",value:function(e,t){var n=this,r=this.w,i=this.xyRatios,a=this.selectionRect,o=0;"resizing"===e&&(o=30);var s=function(e){return parseFloat(a.node.getAttribute(e))},l={x:s("x"),y:s("y"),width:s("width"),height:s("height")};r.globals.selection=l,"function"==typeof r.config.chart.events.selection&&r.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var e,t,o,s,l=n.gridRect.getBoundingClientRect(),c=a.node.getBoundingClientRect();r.globals.isRangeBar?(e=r.globals.yAxisScale[0].niceMin+(c.left-l.left)*i.invertedYRatio,t=r.globals.yAxisScale[0].niceMin+(c.right-l.left)*i.invertedYRatio,o=0,s=1):(e=r.globals.xAxisScale.niceMin+(c.left-l.left)*i.xRatio,t=r.globals.xAxisScale.niceMin+(c.right-l.left)*i.xRatio,o=r.globals.yAxisScale[0].niceMin+(l.bottom-c.bottom)*i.yRatio[0],s=r.globals.yAxisScale[0].niceMax-(c.top-l.top)*i.yRatio[0]);var u={xaxis:{min:e,max:t},yaxis:{min:o,max:s}};r.config.chart.events.selection(n.ctx,u),r.config.chart.brush.enabled&&void 0!==r.config.chart.events.brushScrolled&&r.config.chart.events.brushScrolled(n.ctx,u)}),o))}},{key:"selectionDrawn",value:function(e){var t=e.context,n=e.zoomtype,r=this.w,i=t,a=this.xyRatios,o=this.ctx.toolbar;if(i.startX>i.endX){var s=i.startX;i.startX=i.endX,i.endX=s}if(i.startY>i.endY){var l=i.startY;i.startY=i.endY,i.endY=l}var c=void 0,u=void 0;r.globals.isRangeBar?(c=r.globals.yAxisScale[0].niceMin+i.startX*a.invertedYRatio,u=r.globals.yAxisScale[0].niceMin+i.endX*a.invertedYRatio):(c=r.globals.xAxisScale.niceMin+i.startX*a.xRatio,u=r.globals.xAxisScale.niceMin+i.endX*a.xRatio);var d=[],h=[];if(r.config.yaxis.forEach((function(e,t){var n=r.globals.seriesYAxisMap[t][0];d.push(r.globals.yAxisScale[t].niceMax-a.yRatio[n]*i.startY),h.push(r.globals.yAxisScale[t].niceMax-a.yRatio[n]*i.endY)})),i.dragged&&(i.dragX>10||i.dragY>10)&&c!==u)if(r.globals.zoomEnabled){var f=w.clone(r.globals.initialConfig.yaxis),p=w.clone(r.globals.initialConfig.xaxis);if(r.globals.zoomed=!0,r.config.xaxis.convertedCatToNumeric&&(c=Math.floor(c),u=Math.floor(u),c<1&&(c=1,u=r.globals.dataPoints),u-c<2&&(u=c+1)),"xy"!==n&&"x"!==n||(p={min:c,max:u}),"xy"!==n&&"y"!==n||f.forEach((function(e,t){f[t].min=h[t],f[t].max=d[t]})),o){var m=o.getBeforeZoomRange(p,f);m&&(p=m.xaxis?m.xaxis:p,f=m.yaxis?m.yaxis:f)}var g={xaxis:p};r.config.chart.group||(g.yaxis=f),i.ctx.updateHelpers._updateOptions(g,!1,i.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof r.config.chart.events.zoomed&&o.zoomCallback(p,f)}else if(r.globals.selectionEnabled){var v,b=null;v={min:c,max:u},"xy"!==n&&"y"!==n||(b=w.clone(r.config.yaxis)).forEach((function(e,t){b[t].min=h[t],b[t].max=d[t]})),r.globals.selection=i.selection,"function"==typeof r.config.chart.events.selection&&r.config.chart.events.selection(i.ctx,{xaxis:v,yaxis:b})}}},{key:"panDragging",value:function(e){var t=e.context,n=this.w,r=t;if(void 0!==n.globals.lastClientPosition.x){var i=n.globals.lastClientPosition.x-r.clientX,a=n.globals.lastClientPosition.y-r.clientY;Math.abs(i)>Math.abs(a)&&i>0?this.moveDirection="left":Math.abs(i)>Math.abs(a)&&i<0?this.moveDirection="right":Math.abs(a)>Math.abs(i)&&a>0?this.moveDirection="up":Math.abs(a)>Math.abs(i)&&a<0&&(this.moveDirection="down")}n.globals.lastClientPosition={x:r.clientX,y:r.clientY};var o=n.globals.isRangeBar?n.globals.minY:n.globals.minX,s=n.globals.isRangeBar?n.globals.maxY:n.globals.maxX;n.config.xaxis.convertedCatToNumeric||r.panScrolled(o,s)}},{key:"delayedPanScrolled",value:function(){var e=this.w,t=e.globals.minX,n=e.globals.maxX,r=(e.globals.maxX-e.globals.minX)/2;"left"===this.moveDirection?(t=e.globals.minX+r,n=e.globals.maxX+r):"right"===this.moveDirection&&(t=e.globals.minX-r,n=e.globals.maxX-r),t=Math.floor(t),n=Math.floor(n),this.updateScrolledChart({xaxis:{min:t,max:n}},t,n)}},{key:"panScrolled",value:function(e,t){var n=this.w,r=this.xyRatios,i=w.clone(n.globals.initialConfig.yaxis),a=r.xRatio,o=n.globals.minX,s=n.globals.maxX;n.globals.isRangeBar&&(a=r.invertedYRatio,o=n.globals.minY,s=n.globals.maxY),"left"===this.moveDirection?(e=o+n.globals.gridWidth/15*a,t=s+n.globals.gridWidth/15*a):"right"===this.moveDirection&&(e=o-n.globals.gridWidth/15*a,t=s-n.globals.gridWidth/15*a),n.globals.isRangeBar||(en.globals.initialMaxX)&&(e=o,t=s);var l={xaxis:{min:e,max:t}};n.config.chart.group||(l.yaxis=i),this.updateScrolledChart(l,e,t)}},{key:"updateScrolledChart",value:function(e,t,n){var r=this.w;this.ctx.updateHelpers._updateOptions(e,!1,!1),"function"==typeof r.config.chart.events.scrolled&&r.config.chart.events.scrolled(this.ctx,{xaxis:{min:t,max:n}})}}]),n}(fe),me=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return c(e,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,n=e.elGrid,r=e.clientX,i=e.clientY,a=this.w,o=n.getBoundingClientRect(),s=o.width,l=o.height,c=s/(a.globals.dataPoints-1),u=l/a.globals.dataPoints,d=this.hasBars();!a.globals.comboCharts&&!d||a.config.xaxis.convertedCatToNumeric||(c=s/a.globals.dataPoints);var h=r-o.left-a.globals.barPadForNumericAxis,f=i-o.top;h<0||f<0||h>s||f>l?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):a.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):a.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var p=Math.round(h/c),m=Math.floor(f/u);d&&!a.config.xaxis.convertedCatToNumeric&&(p=Math.ceil(h/c),p-=1);var g=null,v=null,b=a.globals.seriesXvalues.map((function(e){return e.filter((function(e){return w.isNumber(e)}))})),y=a.globals.seriesYvalues.map((function(e){return e.filter((function(e){return w.isNumber(e)}))}));if(a.globals.isXNumeric){var x=this.ttCtx.getElGrid().getBoundingClientRect(),_=h*(x.width/s),A=f*(x.height/l);g=(v=this.closestInMultiArray(_,A,b,y)).index,p=v.j,null!==g&&(b=a.globals.seriesXvalues[g],p=(v=this.closestInArray(_,b)).index)}return a.globals.capturedSeriesIndex=null===g?-1:g,(!p||p<1)&&(p=0),a.globals.isBarHorizontal?a.globals.capturedDataPointIndex=m:a.globals.capturedDataPointIndex=p,{capturedSeries:g,j:a.globals.isBarHorizontal?m:p,hoverX:h,hoverY:f}}},{key:"closestInMultiArray",value:function(e,t,n,r){var i=this.w,a=0,o=null,s=-1;i.globals.series.length>1?a=this.getFirstActiveXArray(n):o=0;var l=n[a][0],c=Math.abs(e-l);if(n.forEach((function(t){t.forEach((function(t,n){var r=Math.abs(e-t);r<=c&&(c=r,s=n)}))})),-1!==s){var u=r[a][s],d=Math.abs(t-u);o=a,r.forEach((function(e,n){var r=Math.abs(t-e[s]);r<=d&&(d=r,o=n)}))}return{index:o,j:s}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,n=0,r=e.map((function(e,t){return e.length>0?t:-1})),i=0;i0)for(var r=0;r *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(e=v(e)).sort((function(e,t){var n=Number(e.getAttribute("data:realIndex")),r=Number(t.getAttribute("data:realIndex"));return rn?-1:0}));var t=[];return e.forEach((function(e){t.push(e.querySelector(".apexcharts-marker"))})),t}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{key:"getPathFromPoint",value:function(e,t){var n=Number(e.getAttribute("cx")),r=Number(e.getAttribute("cy")),i=e.getAttribute("shape");return new A(this.ctx).getMarkerPath(n,r,i,t)}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var t=this.w,n=t.config.markers.hover.size;return void 0===n&&(n=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),n}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,n=this.ttCtx;0===n.allTooltipSeriesGroups.length&&(n.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var r=n.allTooltipSeriesGroups,i=0;i ').concat(n.attrs.name,""),t+="
".concat(n.val,"
")})),b.innerHTML=e+"",y.innerHTML=t+""};o?l.globals.seriesGoals[t][n]&&Array.isArray(l.globals.seriesGoals[t][n])?w():(b.innerHTML="",y.innerHTML=""):w()}else b.innerHTML="",y.innerHTML="";if(null!==p&&(r[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,r[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==p?p:""),o&&m[0]){if(l.config.tooltip.hideEmptySeries){var x=r[t].querySelector(".apexcharts-tooltip-marker"),_=r[t].querySelector(".apexcharts-tooltip-text");0==parseFloat(u)?(x.style.display="none",_.style.display="none"):(x.style.display="block",_.style.display="block")}null==u||l.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||l.globals.collapsedSeriesIndices.indexOf(t)>-1?m[0].parentNode.style.display="none":m[0].parentNode.style.display=l.config.tooltip.items.display}}},{key:"toggleActiveInactiveSeries",value:function(e){var t=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var n=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");n&&(n.classList.add("apexcharts-active"),n.style.display=t.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,n=e.j,r=this.w,i=this.ctx.series.filteredSeriesX(),a="",o="",s=null,l=null,c={series:r.globals.series,seriesIndex:t,dataPointIndex:n,w:r},u=r.globals.ttZFormatter;null===n?l=r.globals.series[t]:r.globals.isXNumeric&&"treemap"!==r.config.chart.type?(a=i[t][n],0===i[t].length&&(a=i[this.tooltipUtil.getFirstActiveXArray(i)][n])):a=void 0!==r.globals.labels[n]?r.globals.labels[n]:"";var d=a;return a=r.globals.isXNumeric&&"datetime"===r.config.xaxis.type?new O(this.ctx).xLabelFormat(r.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new M(this.ctx).formatDate,w:this.w}):r.globals.isBarHorizontal?r.globals.yLabelFormatters[0](d,c):r.globals.xLabelFormatter(d,c),void 0!==r.config.tooltip.x.formatter&&(a=r.globals.ttKeyFormatter(d,c)),r.globals.seriesZ.length>0&&r.globals.seriesZ[t].length>0&&(s=u(r.globals.seriesZ[t][n],r)),o="function"==typeof r.config.xaxis.tooltip.formatter?r.globals.xaxisTooltipFormatter(d,c):a,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(a)?a.join(" "):a,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:s}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,n=e.j,r=e.y1,i=e.y2,a=e.w,o=this.ttCtx.getElTooltip(),s=a.config.tooltip.custom;Array.isArray(s)&&s[t]&&(s=s[t]),o.innerHTML=s({ctx:this.ctx,series:a.globals.series,seriesIndex:t,dataPointIndex:n,y1:r,y2:i,w:a})}}]),e}(),ve=function(){function e(t){s(this,e),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return c(e,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.ttCtx,r=this.w,i=n.getElXCrosshairs(),a=e-n.xcrosshairsWidth/2,o=r.globals.labels.slice().length;if(null!==t&&(a=r.globals.gridWidth/o*t),null===i||r.globals.isBarHorizontal||(i.setAttribute("x",a),i.setAttribute("x1",a),i.setAttribute("x2",a),i.setAttribute("y2",r.globals.gridHeight),i.classList.add("apexcharts-active")),a<0&&(a=0),a>r.globals.gridWidth&&(a=r.globals.gridWidth),n.isXAxisTooltipEnabled){var s=a;"tickWidth"!==r.config.xaxis.crosshairs.width&&"barWidth"!==r.config.xaxis.crosshairs.width||(s=a+n.xcrosshairsWidth/2),this.moveXAxisTooltip(s)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;null!==t.ycrosshairs&&A.setAttrs(t.ycrosshairs,{y1:e,y2:e}),null!==t.ycrosshairsHidden&&A.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,n=this.ttCtx;if(null!==n.xaxisTooltip&&0!==n.xcrosshairsWidth){n.xaxisTooltip.classList.add("apexcharts-active");var r,i=n.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(e-=n.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e))e+=t.globals.translateX,r=new A(this.ctx).getTextRects(n.xaxisTooltipText.innerHTML),n.xaxisTooltipText.style.minWidth=r.width+"px",n.xaxisTooltip.style.left=e+"px",n.xaxisTooltip.style.top=i+"px"}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,n=this.ttCtx;null===n.yaxisTTEls&&(n.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var r=parseInt(n.ycrosshairsHidden.getAttribute("y1"),10),i=t.globals.translateY+r,a=n.yaxisTTEls[e].getBoundingClientRect().height,o=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(o-=26),i-=a/2,-1===t.globals.ignoreYAxisIndexes.indexOf(e)?(n.yaxisTTEls[e].classList.add("apexcharts-active"),n.yaxisTTEls[e].style.top=i+"px",n.yaxisTTEls[e].style.left=o+t.config.yaxis[e].tooltip.offsetX+"px"):n.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.w,i=this.ttCtx,a=i.getElTooltip(),o=i.tooltipRect,s=null!==n?parseFloat(n):1,l=parseFloat(e)+s+5,c=parseFloat(t)+s/2;if(l>r.globals.gridWidth/2&&(l=l-o.ttWidth-s-10),l>r.globals.gridWidth-o.ttWidth-10&&(l=r.globals.gridWidth-o.ttWidth),l<-20&&(l=-20),r.config.tooltip.followCursor){var u=i.getElGrid().getBoundingClientRect();(l=i.e.clientX-u.left)>r.globals.gridWidth/2&&(l-=i.tooltipRect.ttWidth),(c=i.e.clientY+r.globals.translateY-u.top)>r.globals.gridHeight/2&&(c-=i.tooltipRect.ttHeight)}else r.globals.isBarHorizontal||o.ttHeight/2+c>r.globals.gridHeight&&(c=r.globals.gridHeight-o.ttHeight+r.globals.translateY);isNaN(l)||(l+=r.globals.translateX,a.style.left=l+"px",a.style.top=c+"px")}},{key:"moveMarkers",value:function(e,t){var n=this.w,r=this.ttCtx;if(n.globals.markers.size[e]>0)for(var i=n.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),a=0;a0){var f=h.getAttribute("shape"),p=l.getMarkerPath(i,a,f,1.5*u);h.setAttribute("d",p)}this.moveXCrosshairs(i),s.fixedTooltip||this.moveTooltip(i,a,u)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,n=this.ttCtx,r=n.w,i=0,a=0,o=r.globals.pointsArray,s=new V(this.ctx),l=new A(this.ctx);t=s.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var c=n.tooltipUtil.getHoverMarkerSize(t);o[t]&&(i=o[t][e][0],a=o[t][e][1]);var u=n.tooltipUtil.getAllMarkers();if(null!==u)for(var d=0;d0){var v=l.getMarkerPath(i,f,m,c);u[d].setAttribute("d",v)}else u[d].setAttribute("d","")}}this.moveXCrosshairs(i),n.fixedTooltip||this.moveTooltip(i,a||r.globals.gridHeight,c)}},{key:"moveStickyTooltipOverBars",value:function(e,t){var n=this.w,r=this.ttCtx,i=n.globals.columnSeries?n.globals.columnSeries.length:n.globals.series.length,a=i>=2&&i%2==0?Math.floor(i/2):Math.floor(i/2)+1;n.globals.isBarHorizontal&&(a=new V(this.ctx).getActiveConfigSeriesIndex("desc")+1);var o=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(a,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"']"));o||"number"!=typeof t||(o=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"']")));var s=o?parseFloat(o.getAttribute("cx")):0,l=o?parseFloat(o.getAttribute("cy")):0,c=o?parseFloat(o.getAttribute("barWidth")):0,u=r.getElGrid().getBoundingClientRect(),d=o&&(o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area"));n.globals.isXNumeric?(o&&!d&&(s-=i%2!=0?c/2:0),o&&d&&n.globals.comboCharts&&(s-=c/2)):n.globals.isBarHorizontal||(s=r.xAxisTicksPositions[e-1]+r.dataPointsDividedWidth/2,isNaN(s)&&(s=r.xAxisTicksPositions[e]-r.dataPointsDividedWidth/2)),n.globals.isBarHorizontal?l-=r.tooltipRect.ttHeight:n.config.tooltip.followCursor?l=r.e.clientY-u.top-r.tooltipRect.ttHeight/2:l+r.tooltipRect.ttHeight+15>n.globals.gridHeight&&(l=n.globals.gridHeight),n.globals.isBarHorizontal||this.moveXCrosshairs(s),r.fixedTooltip||this.moveTooltip(s,l||n.globals.gridHeight)}}]),e}(),be=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new ve(t)}return c(e,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new A(this.ctx),n=new z(this.ctx),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");r=v(r),e.config.chart.stacked&&r.sort((function(e,t){return parseFloat(e.getAttribute("data:realIndex"))-parseFloat(t.getAttribute("data:realIndex"))}));for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.w;"bubble"!==i.config.chart.type&&this.newPointSize(e,t);var a=t.getAttribute("cx"),o=t.getAttribute("cy");if(null!==n&&null!==r&&(a=n,o=r),this.tooltipPosition.moveXCrosshairs(a),!this.fixedTooltip){if("radar"===i.config.chart.type){var s=this.ttCtx.getElGrid().getBoundingClientRect();a=this.ttCtx.e.clientX-s.left}this.tooltipPosition.moveTooltip(a,o,i.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,n=this,r=this.ttCtx,i=e,a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=t.config.markers.hover.size,s=0;s=0){var r=this.ttCtx.tooltipUtil.getPathFromPoint(e[t],n);e[t].setAttribute("d",r)}else e[t].setAttribute("d","M0,0")}}}]),e}(),ye=function(){function e(t){s(this,e),this.w=t.w;var n=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!n.globals.isBarHorizontal&&"rangeBar"===n.config.chart.type&&n.config.plotOptions.bar.rangeBarGroupRows}return c(e,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,n=e.opt,r=e.x,i=e.y,a=e.type,o=this.ttCtx,s=this.w;if(t.target.classList.contains("apexcharts-".concat(a,"-rect"))){var l=this.getAttr(t,"i"),c=this.getAttr(t,"j"),u=this.getAttr(t,"cx"),d=this.getAttr(t,"cy"),h=this.getAttr(t,"width"),f=this.getAttr(t,"height");if(o.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:l,j:c,shared:!1,e:t}),s.globals.capturedSeriesIndex=l,s.globals.capturedDataPointIndex=c,r=u+o.tooltipRect.ttWidth/2+h,i=d+o.tooltipRect.ttHeight/2-f/2,o.tooltipPosition.moveXCrosshairs(u+h/2),r>s.globals.gridWidth/2&&(r=u-o.tooltipRect.ttWidth/2+h),o.w.config.tooltip.followCursor){var p=s.globals.dom.elWrap.getBoundingClientRect();r=s.globals.clientX-p.left-(r>s.globals.gridWidth/2?o.tooltipRect.ttWidth:0),i=s.globals.clientY-p.top-(i>s.globals.gridHeight/2?o.tooltipRect.ttHeight:0)}}return{x:r,y:i}}},{key:"handleMarkerTooltip",value:function(e){var t,n,r=e.e,i=e.opt,a=e.x,o=e.y,s=this.w,l=this.ttCtx;if(r.target.classList.contains("apexcharts-marker")){var c=parseInt(i.paths.getAttribute("cx"),10),u=parseInt(i.paths.getAttribute("cy"),10),d=parseFloat(i.paths.getAttribute("val"));if(n=parseInt(i.paths.getAttribute("rel"),10),t=parseInt(i.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var h=w.findAncestor(i.paths,"apexcharts-series");h&&(t=parseInt(h.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:t,j:n,shared:!l.showOnIntersect&&s.config.tooltip.shared,e:r}),"mouseup"===r.type&&l.markerClick(r,t,n),s.globals.capturedSeriesIndex=t,s.globals.capturedDataPointIndex=n,a=c,o=u+s.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var f=l.getElGrid().getBoundingClientRect();o=l.e.clientY+s.globals.translateY-f.top}d<0&&(o=u),l.marker.enlargeCurrentPoint(n,i.paths,a,o)}return{x:a,y:o}}},{key:"handleBarTooltip",value:function(e){var t,n,r=e.e,i=e.opt,a=this.w,o=this.ttCtx,s=o.getElTooltip(),l=0,c=0,u=0,d=this.getBarTooltipXY({e:r,opt:i});t=d.i,d.barHeight;var h=d.j;a.globals.capturedSeriesIndex=t,a.globals.capturedDataPointIndex=h,a.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!a.config.tooltip.shared?(c=d.x,u=d.y,n=Array.isArray(a.config.stroke.width)?a.config.stroke.width[t]:a.config.stroke.width,l=c):a.globals.comboCharts||a.config.tooltip.shared||(l/=2),isNaN(u)&&(u=a.globals.svgHeight-o.tooltipRect.ttHeight);var f=parseInt(i.paths.parentNode.getAttribute("data:realIndex"),10);if(a.globals.isMultipleYAxis?a.config.yaxis[f]&&a.config.yaxis[f].reversed:a.config.yaxis[0].reversed,c+o.tooltipRect.ttWidth>a.globals.gridWidth?c-=o.tooltipRect.ttWidth:c<0&&(c=0),o.w.config.tooltip.followCursor){var p=o.getElGrid().getBoundingClientRect();u=o.e.clientY-p.top}null===o.tooltip&&(o.tooltip=a.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),a.config.tooltip.shared||(a.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(l+n/2):o.tooltipPosition.moveXCrosshairs(l)),!o.fixedTooltip&&(!a.config.tooltip.shared||a.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(u=u+a.globals.translateY-o.tooltipRect.ttHeight/2,s.style.left=c+a.globals.translateX+"px",s.style.top=u+"px")}},{key:"getBarTooltipXY",value:function(e){var t=this,n=e.e,r=e.opt,i=this.w,a=null,o=this.ttCtx,s=0,l=0,c=0,u=0,d=0,h=n.target.classList;if(h.contains("apexcharts-bar-area")||h.contains("apexcharts-candlestick-area")||h.contains("apexcharts-boxPlot-area")||h.contains("apexcharts-rangebar-area")){var f=n.target,p=f.getBoundingClientRect(),m=r.elGrid.getBoundingClientRect(),g=p.height;d=p.height;var v=p.width,b=parseInt(f.getAttribute("cx"),10),y=parseInt(f.getAttribute("cy"),10);u=parseFloat(f.getAttribute("barWidth"));var w="touchmove"===n.type?n.touches[0].clientX:n.clientX;a=parseInt(f.getAttribute("j"),10),s=parseInt(f.parentNode.getAttribute("rel"),10)-1;var x=f.getAttribute("data-range-y1"),_=f.getAttribute("data-range-y2");i.globals.comboCharts&&(s=parseInt(f.parentNode.getAttribute("data:realIndex"),10));var A=function(e){return i.globals.isXNumeric?b-v/2:t.isVerticalGroupedRangeBar?b+v/2:b-o.dataPointsDividedWidth+v/2},k=function(){return y-o.dataPointsDividedHeight+g/2-o.tooltipRect.ttHeight/2};o.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:s,j:a,y1:x?parseInt(x,10):null,y2:_?parseInt(_,10):null,shared:!o.showOnIntersect&&i.config.tooltip.shared,e:n}),i.config.tooltip.followCursor?i.globals.isBarHorizontal?(l=w-m.left+15,c=k()):(l=A(),c=n.clientY-m.top-o.tooltipRect.ttHeight/2-15):i.globals.isBarHorizontal?((l=b)0&&n.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,n){var r=this.ttCtx,i=this.w,a=i.globals,o=a.seriesYAxisMap[e];if(r.yaxisTooltips[e]&&o.length>0){var s=a.yLabelFormatters[e],l=r.getElGrid().getBoundingClientRect(),c=o[0],u=0;n.yRatio.length>1&&(u=c);var d=(t-l.top)*n.yRatio[u],h=a.maxYArr[c]-a.minYArr[c],f=a.minYArr[c]+(h-d);i.config.yaxis[e].reversed&&(f=a.maxYArr[c]-(h-d)),r.tooltipPosition.moveYCrosshairs(t-l.top),r.yaxisTooltipText[e].innerHTML=s(f),r.tooltipPosition.moveYAxisTooltip(e)}}}]),e}(),xe=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.tConfig=n.config.tooltip,this.tooltipUtil=new me(this),this.tooltipLabels=new ge(this),this.tooltipPosition=new ve(this),this.marker=new be(this),this.intersect=new ye(this),this.axesTooltip=new we(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!n.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return c(e,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map((function(e,n){return!!(e.show&&e.tooltip.enabled&&t.globals.axisCharts)})),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var n=document.createElement("div");if(n.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&n.classList.add(t.config.tooltip.cssClass),n.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(n),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var r=new G(this.ctx);this.xAxisTicksPositions=r.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==t.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==t.config.markers.size&&0!==t.globals.markers.largestSize||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,n.appendChild(this.tooltipTitle));var i=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(i=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(i),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,n=this.w,r=[],i=this.getElTooltip(),a=function(a){var o=document.createElement("div");o.classList.add("apexcharts-tooltip-series-group"),o.style.order=n.config.tooltip.inverseOrder?e-a:a+1,t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(a)<0&&o.classList.add("apexcharts-tooltip-series-group-hidden");var s=document.createElement("span");s.classList.add("apexcharts-tooltip-marker"),s.style.backgroundColor=n.globals.colors[a],o.appendChild(s);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=t.tConfig.style.fontFamily||n.config.chart.fontFamily,l.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach((function(e){var t=document.createElement("div");t.classList.add("apexcharts-tooltip-".concat(e,"-group"));var n=document.createElement("span");n.classList.add("apexcharts-tooltip-text-".concat(e,"-label")),t.appendChild(n);var r=document.createElement("span");r.classList.add("apexcharts-tooltip-text-".concat(e,"-value")),t.appendChild(r),l.appendChild(t)})),o.appendChild(l),i.appendChild(o),r.push(o)},o=0;o0&&this.addPathsEventListeners(f,u),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(u)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),n=t.getBoundingClientRect(),r=n.width+10,i=n.height+10,a=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,s=this.tConfig.fixed.position.toLowerCase();return s.indexOf("right")>-1&&(a=a+e.globals.svgWidth-r+10),s.indexOf("bottom")>-1&&(o=o+e.globals.svgHeight-i-10),t.style.left=a+"px",t.style.top=o+"px",{x:a,y:o,ttWidth:r,ttHeight:i}}},{key:"addDatapointEventsListeners",value:function(e){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var n=this,r=function(r){var i={paths:e[r],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(t){return e[r].addEventListener(t,n.onSeriesHover.bind(n,i),{capture:!1,passive:!0})}))},i=0;i=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout((function(){n.seriesHover(e,t)}),100-r))}},{key:"seriesHover",value:function(e,t){var n=this;this.lastHoverTime=Date.now();var r=[],i=this.w;i.config.chart.group&&(r=this.ctx.getGroupedCharts()),i.globals.axisCharts&&(i.globals.minX===-1/0&&i.globals.maxX===1/0||0===i.globals.dataPoints)||(r.length?r.forEach((function(r){var i=n.getElTooltip(r),a={paths:e.paths,tooltipEl:i,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:r.w.globals.tooltip.ttItems};r.w.globals.minX===n.w.globals.minX&&r.w.globals.maxX===n.w.globals.maxX&&r.w.globals.tooltip.seriesHoverByContext({chartCtx:r,ttCtx:r.w.globals.tooltip,opt:a,e:t})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,n=e.ttCtx,r=e.opt,i=e.e,a=t.w,o=this.getElTooltip();o&&(n.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},n.e=i,!n.tooltipUtil.hasBars()||a.globals.comboCharts||n.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new V(t).toggleSeriesOnHover(i,i.target.parentNode),n.fixedTooltip&&n.drawFixedTooltipRect(),a.globals.axisCharts?n.axisChartsTooltips({e:i,opt:r,tooltipRect:n.tooltipRect}):n.nonAxisChartsTooltips({e:i,opt:r,tooltipRect:n.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,n,r=e.e,i=e.opt,a=this.w,o=i.elGrid.getBoundingClientRect(),s="touchmove"===r.type?r.touches[0].clientX:r.clientX,l="touchmove"===r.type?r.touches[0].clientY:r.clientY;if(this.clientY=l,this.clientX=s,a.globals.capturedSeriesIndex=-1,a.globals.capturedDataPointIndex=-1,lo.top+o.height)this.handleMouseOut(i);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!a.config.tooltip.shared){var c=parseInt(i.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(i)}var u=this.getElTooltip(),d=this.getElXCrosshairs(),h=a.globals.xyCharts||"bar"===a.config.chart.type&&!a.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||a.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===r.type||"touchmove"===r.type||"mouseup"===r.type){if(a.globals.collapsedSeries.length+a.globals.ancillaryCollapsedSeries.length===a.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var f=this.yaxisTooltips.filter((function(e){return!0===e}));if(null!==this.ycrosshairs&&f.length&&this.ycrosshairs.classList.add("apexcharts-active"),h&&!this.showOnIntersect)this.handleStickyTooltip(r,s,l,i);else if("heatmap"===a.config.chart.type||"treemap"===a.config.chart.type){var p=this.intersect.handleHeatTreeTooltip({e:r,opt:i,x:t,y:n,type:a.config.chart.type});t=p.x,n=p.y,u.style.left=t+"px",u.style.top=n+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:r,opt:i}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:r,opt:i,x:t,y:n});if(this.yaxisTooltips.length)for(var m=0;ml.width)this.handleMouseOut(r);else if(null!==s)this.handleStickyCapturedSeries(e,s,r,o);else if(this.tooltipUtil.isXoverlap(o)||i.globals.isBarHorizontal){var c=i.globals.series.findIndex((function(e,t){return!i.globals.collapsedSeriesIndices.includes(t)}));this.create(e,this,c,o,r.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,n,r){var i=this.w;if(this.tConfig.shared||null!==i.globals.series[t][r]){if(void 0!==i.globals.series[t][r])this.tConfig.shared&&this.tooltipUtil.isXoverlap(r)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,r,n.ttItems):this.create(e,this,t,r,n.ttItems,!1);else if(this.tooltipUtil.isXoverlap(r)){var a=i.globals.series.findIndex((function(e,t){return!i.globals.collapsedSeriesIndices.includes(t)}));this.create(e,this,a,r,n.ttItems)}}else this.handleMouseOut(n)}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new A(this.ctx),n=e.globals.dom.Paper.select(".apexcharts-bar-area"),r=0;r5&&void 0!==arguments[5]?arguments[5]:null,k=this.w,S=t;"mouseup"===e.type&&this.markerClick(e,n,r),null===_&&(_=this.tConfig.shared);var T=this.tooltipUtil.hasMarkers(n),M=this.tooltipUtil.getElBars();if(k.config.legend.tooltipHoverFormatter){var O=k.config.legend.tooltipHoverFormatter,L=Array.from(this.legendLabels);L.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}));for(var C=0;C0?S.marker.enlargePoints(r):S.tooltipPosition.moveDynamicPointsOnHover(r);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(M),this.barSeriesHeight>0)){var I=new A(this.ctx),R=k.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(r,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(r,n);for(var F=0;F0&&t.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(h-=c*_)),x&&(h=h+d.height/2-v/2-2);var S=t.globals.series[n][r]<0,T=s;switch(this.barCtx.isReversed&&(T=s+(S?u:-u)),m.position){case"center":f=x?S?T-u/2+y:T+u/2-y:S?T-u/2+d.height/2+y:T+u/2+d.height/2-y;break;case"bottom":f=x?S?T-u+y:T+u-y:S?T-u+d.height+v+y:T+u-d.height/2+v-y;break;case"top":f=x?S?T+y:T-y:S?T-d.height/2-y:T+d.height+y}if(this.barCtx.lastActiveBarSerieIndex===i&&g.enabled){var M=new A(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:i,j:r}),p.fontSize);a=S?T-M.height/2-y-g.offsetY+18:T+M.height+y+g.offsetY-18;var O=k;o=w+(t.globals.isXNumeric?-c*t.globals.barGroups.length/2:t.globals.barGroups.length*c/2-(t.globals.barGroups.length-1)*c-O)+g.offsetX}return t.config.chart.stacked||(f<0?f=0+v:f+d.height/3>t.globals.gridHeight&&(f=t.globals.gridHeight-v)),{bcx:l,bcy:s,dataLabelsX:h,dataLabelsY:f,totalDataLabelsX:o,totalDataLabelsY:a,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,n=e.x,r=e.i,i=e.j,a=e.realIndex;e.columnGroupIndex;var o=e.bcy,s=e.barHeight,l=e.barWidth,c=e.textRects,u=e.dataLabelsX,d=e.strokeWidth,h=e.dataLabelsConfig,f=e.barDataLabelsConfig,p=e.barTotalDataLabelsConfig,m=e.offX,g=e.offY,v=t.globals.gridHeight/t.globals.dataPoints;l=Math.abs(l);var b,y,w=o-(this.barCtx.isRangeBar?0:v)+s/2+c.height/2+g-3,x="start",_=t.globals.series[r][i]<0,k=n;switch(this.barCtx.isReversed&&(k=n+(_?-l:l),x=_?"start":"end"),f.position){case"center":u=_?k+l/2-m:Math.max(c.width/2,k-l/2)+m;break;case"bottom":u=_?k+l-d-Math.round(c.width/2)-m:k-l+d+Math.round(c.width/2)+m;break;case"top":u=_?k-d+Math.round(c.width/2)-m:k-d-Math.round(c.width/2)+m}if(this.barCtx.lastActiveBarSerieIndex===a&&p.enabled){var S=new A(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:a,j:i}),h.fontSize);_?(b=k-d-m-p.offsetX,x="end"):b=k+m+p.offsetX+(this.barCtx.isReversed?-(l+d):d),y=w-c.height/2+S.height/2+p.offsetY+d}return t.config.chart.stacked||(u<0?u=u+c.width+d:u+c.width/2>t.globals.gridWidth&&(u=t.globals.gridWidth-c.width-d)),{bcx:n,bcy:o,dataLabelsX:u,dataLabelsY:w,totalDataLabelsX:b,totalDataLabelsY:y,totalDataLabelsAnchor:x}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,n=e.y,r=e.val,i=e.i,o=e.j,s=e.textRects,l=e.barHeight,c=e.barWidth,u=e.dataLabelsConfig,d=this.w,h="rotate(0)";"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&(h="rotate(-90, ".concat(t,", ").concat(n,")"));var f=new $(this.barCtx.ctx),p=new A(this.barCtx.ctx),m=u.formatter,g=null,v=d.globals.collapsedSeriesIndices.indexOf(i)>-1;if(u.enabled&&!v){g=p.group({class:"apexcharts-data-labels",transform:h});var b="";void 0!==r&&(b=m(r,a(a({},d),{},{seriesIndex:i,dataPointIndex:o,w:d}))),!r&&d.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(b="");var y=d.globals.series[i][o]<0,w=d.config.plotOptions.bar.dataLabels.position;"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&("top"===w&&(u.textAnchor=y?"end":"start"),"center"===w&&(u.textAnchor="middle"),"bottom"===w&&(u.textAnchor=y?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&cMath.abs(c)&&(b=""):s.height/1.6>Math.abs(l)&&(b=""));var x=a({},u);this.barCtx.isHorizontal&&r<0&&("start"===u.textAnchor?x.textAnchor="end":"end"===u.textAnchor&&(x.textAnchor="start")),f.plotDataLabelsText({x:t,y:n,text:b,i:i,j:o,parent:g,dataLabelsConfig:x,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return g}},{key:"drawTotalDataLabels",value:function(e){var t=e.x,n=e.y,r=e.val;e.barWidth,e.barHeight;var i=e.realIndex,a=e.textAnchor,o=e.barTotalDataLabelsConfig;this.w;var s,l=new A(this.barCtx.ctx);return o.enabled&&void 0!==t&&void 0!==n&&this.barCtx.lastActiveBarSerieIndex===i&&(s=l.drawText({x:t,y:n,foreColor:o.style.color,text:r,textAnchor:a,fontFamily:o.style.fontFamily,fontSize:o.style.fontSize,fontWeight:o.style.fontWeight})),s}}]),e}(),Ae=function(){function e(t){s(this,e),this.w=t.w,this.barCtx=t}return c(e,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var n=0;n0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[n].length),t.globals.isXNumeric)for(var r=0;rt.globals.minX&&t.globals.seriesX[n][r]0&&(r=l.globals.minXDiff/d),(a=r/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(a=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(a=parseInt(this.barCtx.barOptions.columnWidth,10)),o=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),e=l.globals.padHorizontal+(r-a*this.barCtx.seriesLen)/2}return l.globals.barHeight=i,l.globals.barWidth=a,{x:e,y:t,yDivision:n,xDivision:r,barHeight:i,barWidth:a,zeroH:o,zeroW:s}}},{key:"initializeStackedPrevVars",value:function(e){e.w.globals.seriesGroups.forEach((function(t){e[t]||(e[t]={}),e[t].prevY=[],e[t].prevX=[],e[t].prevYF=[],e[t].prevXF=[],e[t].prevYVal=[],e[t].prevXVal=[]}))}},{key:"initializeStackedXYVars",value:function(e){e.w.globals.seriesGroups.forEach((function(t){e[t]||(e[t]={}),e[t].xArrj=[],e[t].xArrjF=[],e[t].xArrjVal=[],e[t].yArrj=[],e[t].yArrjF=[],e[t].yArrjVal=[]}))}},{key:"getPathFillColor",value:function(e,t,n,r){var i,a,o,s,l,c=this.w,u=new N(this.barCtx.ctx),d=null,h=this.barCtx.barOptions.distributed?n:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(r){e[t][n]>=r.from&&e[t][n]<=r.to&&(d=r.color)})),null!==(i=c.config.series[t].data[n])&&void 0!==i&&i.fillColor&&(d=c.config.series[t].data[n].fillColor),u.fillPath({seriesNumber:this.barCtx.barOptions.distributed?h:r,dataPointIndex:n,color:d,value:e[t][n],fillConfig:null===(a=c.config.series[t].data[n])||void 0===a?void 0:a.fill,fillType:null!==(o=c.config.series[t].data[n])&&void 0!==o&&null!==(s=o.fill)&&void 0!==s&&s.type?null===(l=c.config.series[t].data[n])||void 0===l?void 0:l.fill.type:Array.isArray(c.config.fill.type)?c.config.fill.type[r]:c.config.fill.type})}},{key:"getStrokeWidth",value:function(e,t,n){var r=0,i=this.w;return void 0===this.barCtx.series[e][t]||null===this.barCtx.series[e][t]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,i.config.stroke.show&&(this.barCtx.isNullValue||(r=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[n]:this.barCtx.strokeWidth)),r}},{key:"shouldApplyRadius",value:function(e){var t=this.w,n=!1;return t.config.plotOptions.bar.borderRadius>0&&(t.config.chart.stacked&&"last"===t.config.plotOptions.bar.borderRadiusWhenStacked?this.barCtx.lastActiveBarSerieIndex===e&&(n=!0):n=!0),n}},{key:"barBackground",value:function(e){var t=e.j,n=e.i,r=e.x1,i=e.x2,a=e.y1,o=e.y2,s=e.elSeries,l=this.w,c=new A(this.barCtx.ctx),u=new V(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&u===n){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[t],h=c.drawRect(void 0!==r?r:0,void 0!==a?a:0,void 0!==i?i:l.globals.gridWidth,void 0!==o?o:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);s.add(h),h.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,n=e.barWidth,r=e.barXPosition,i=e.y1,a=e.y2,o=e.strokeWidth,s=e.seriesGroup,l=e.realIndex,c=e.i,u=e.j,d=e.w,h=new A(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var f=n,p=r;null!==(t=d.config.series[l].data[u])&&void 0!==t&&t.columnWidthOffset&&(p=r-d.config.series[l].data[u].columnWidthOffset/2,f=n+d.config.series[l].data[u].columnWidthOffset);var m=o/2,g=p+m,v=p+f-m;i+=.001-m,a+=.001+m;var b=h.move(g,i),y=h.move(g,i),w=h.line(v,i);if(d.globals.previousPaths.length>0&&(y=this.barCtx.getPreviousPath(l,u,!1)),b=b+h.line(g,a)+h.line(v,a)+h.line(v,i)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),y=y+h.line(g,i)+w+w+w+w+w+h.line(g,i)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(b=h.roundPathCorners(b,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var x=this.barCtx;(x=this.barCtx[s]).yArrj.push(a-m),x.yArrjF.push(Math.abs(i-a+o)),x.yArrjVal.push(this.barCtx.series[c][u])}return{pathTo:b,pathFrom:y}}},{key:"getBarpaths",value:function(e){var t,n=e.barYPosition,r=e.barHeight,i=e.x1,a=e.x2,o=e.strokeWidth,s=e.seriesGroup,l=e.realIndex,c=e.i,u=e.j,d=e.w,h=new A(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var f=n,p=r;null!==(t=d.config.series[l].data[u])&&void 0!==t&&t.barHeightOffset&&(f=n-d.config.series[l].data[u].barHeightOffset/2,p=r+d.config.series[l].data[u].barHeightOffset);var m=o/2,g=f+m,v=f+p-m;i+=.001-m,a+=.001+m;var b=h.move(i,g),y=h.move(i,g);d.globals.previousPaths.length>0&&(y=this.barCtx.getPreviousPath(l,u,!1));var w=h.line(i,v);if(b=b+h.line(a,g)+h.line(a,v)+w+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),y=y+h.line(i,g)+w+w+w+w+w+h.line(i,g)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(b=h.roundPathCorners(b,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var x=this.barCtx;(x=this.barCtx[s]).xArrj.push(a+m),x.xArrjF.push(Math.abs(i-a)),x.xArrjVal.push(this.barCtx.series[c][u])}return{pathTo:b,pathFrom:y}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,n=this.w,r=0;r2&&void 0!==arguments[2]&&!arguments[2]?null:t;return null!=e&&(n=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),n}},{key:"getYForValue",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?null:t;return null!=e&&(r=t-e/this.barCtx.yRatio[n]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[n]:0)),r}},{key:"getGoalValues",value:function(e,t,n,r,i,o){var s=this,l=this.w,c=[],d=function(r,i){var a;c.push((u(a={},e,"x"===e?s.getXForValue(r,t,!1):s.getYForValue(r,n,o,!1)),u(a,"attrs",i),a))};if(l.globals.seriesGoals[r]&&l.globals.seriesGoals[r][i]&&Array.isArray(l.globals.seriesGoals[r][i])&&l.globals.seriesGoals[r][i].forEach((function(e){d(e.value,e)})),this.barCtx.barOptions.isDumbbell&&l.globals.seriesRange.length){var h=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:l.globals.colors,f={strokeHeight:"x"===e?0:l.globals.markers.size[r],strokeWidth:"x"===e?l.globals.markers.size[r]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(h[r])?h[r][0]:h[r]};d(l.globals.seriesRangeStart[r][i],f),d(l.globals.seriesRangeEnd[r][i],a(a({},f),{},{strokeColor:Array.isArray(h[r])?h[r][1]:h[r]}))}return c}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,n=e.barYPosition,r=e.goalX,i=e.goalY,a=e.barWidth,o=e.barHeight,s=new A(this.barCtx.ctx),l=s.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var c=null;return this.barCtx.isHorizontal?Array.isArray(r)&&r.forEach((function(e){if(e.x>=-1&&e.x<=s.w.globals.gridWidth+1){var t=void 0!==e.attrs.strokeHeight?e.attrs.strokeHeight:o/2,r=n+t+o/2;c=s.drawLine(e.x,r-2*t,e.x,r,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeWidth?e.attrs.strokeWidth:2,e.attrs.strokeLineCap),l.add(c)}})):Array.isArray(i)&&i.forEach((function(e){if(e.y>=-1&&e.y<=s.w.globals.gridHeight+1){var n=void 0!==e.attrs.strokeWidth?e.attrs.strokeWidth:a/2,r=t+n+a/2;c=s.drawLine(r-2*n,e.y,r,e.y,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeHeight?e.attrs.strokeHeight:2,e.attrs.strokeLineCap),l.add(c)}})),l}},{key:"drawBarShadow",value:function(e){var t=e.prevPaths,n=e.currPaths,r=e.color,i=this.w,a=t.x,o=t.x1,s=t.barYPosition,l=n.x,c=n.x1,u=n.barYPosition,d=s+n.barHeight,h=new A(this.barCtx.ctx),f=new w,p=h.move(o,d)+h.line(a,d)+h.line(l,u)+h.line(c,u)+h.line(o,d)+("around"===i.config.plotOptions.bar.borderRadiusApplication?" Z":" z");return h.drawPath({d:p,fill:f.shadeColor(.5,w.rgb2hex(r)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(e){var t,n=e.i,r=e.j,i=this.w,a=0,o=0;return(i.config.plotOptions.bar.horizontal?i.globals.series.map((function(e,t){return t})):(null===(t=i.globals.columnSeries)||void 0===t?void 0:t.i.map((function(e){return e})))||[]).forEach((function(e){var t=i.globals.seriesPercent[e][r];t&&a++,e-1})),r=this.barCtx.columnGroupIndices,i=r.indexOf(n);return i<0&&(r.push(n),i=r.length-1),{groupIndex:n,columnGroupIndex:i}}}]),e}(),ke=function(){function e(t,n){s(this,e),this.ctx=t,this.w=t.w;var r=this.w;this.barOptions=r.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=r.config.stroke.width,this.isNullValue=!1,this.isRangeBar=r.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!r.globals.isBarHorizontal&&r.globals.seriesRange.length&&r.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=n,null!==this.xyRatios&&(this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.invertedXRatio=n.invertedXRatio,this.invertedYRatio=n.invertedYRatio,this.baseLineY=n.baseLineY,this.baseLineInvertedY=n.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[];var i=new V(this.ctx);this.lastActiveBarSerieIndex=i.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];var a=i.getBarSeriesIndices(),o=new k(this.ctx);this.stackedSeriesTotals=o.getStackedSeriesTotals(this.w.config.series.map((function(e,t){return-1===a.indexOf(t)?t:-1})).filter((function(e){return-1!==e}))),this.barHelpers=new Ae(this)}return c(e,[{key:"draw",value:function(e,t){var n=this.w,r=new A(this.ctx),i=new k(this.ctx,n);e=i.getLogSeries(e),this.series=e,this.yRatio=i.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var o=r.group({class:"apexcharts-bar-series apexcharts-plot-series"});n.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var s=0,l=0;s0&&(this.visibleI=this.visibleI+1);var x=0,_=0;this.yRatio.length>1&&(this.yaxisIndex=n.globals.seriesYAxisReverseMap[v],this.translationsIndex=v);var S=this.translationsIndex;this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed;var T=this.barHelpers.initialPositions();p=T.y,x=T.barHeight,u=T.yDivision,h=T.zeroW,f=T.x,_=T.barWidth,c=T.xDivision,d=T.zeroH,this.horizontal||g.push(f+_/2);var M=r.group({class:"apexcharts-datalabels","data:realIndex":v});n.globals.delayedElements.push({el:M.node}),M.node.classList.add("apexcharts-element-hidden");var O=r.group({class:"apexcharts-bar-goals-markers"}),L=r.group({class:"apexcharts-bar-shadows"});n.globals.delayedElements.push({el:L.node}),L.node.classList.add("apexcharts-element-hidden");for(var C=0;C0){var j=this.barHelpers.drawBarShadow({color:"string"==typeof Y&&-1===(null==Y?void 0:Y.indexOf("url"))?Y:w.hexToRgba(n.globals.colors[s]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:E});j&&L.add(j)}this.pathArr.push(E);var I=this.barHelpers.drawGoalLine({barXPosition:E.barXPosition,barYPosition:E.barYPosition,goalX:E.goalX,goalY:E.goalY,barHeight:x,barWidth:_});I&&O.add(I),p=E.y,f=E.x,C>0&&g.push(f+_/2),m.push(p),this.renderSeries({realIndex:v,pathFill:Y,j:C,i:s,columnGroupIndex:b,pathFrom:E.pathFrom,pathTo:E.pathTo,strokeWidth:D,elSeries:y,x:f,y:p,series:e,barHeight:Math.abs(E.barHeight?E.barHeight:x),barWidth:Math.abs(E.barWidth?E.barWidth:_),elDataLabelsWrap:M,elGoalsMarkers:O,elBarShadows:L,visibleSeries:this.visibleI,type:"bar"})}n.globals.seriesXvalues[v]=g,n.globals.seriesYvalues[v]=m,o.add(y)}return o}},{key:"renderSeries",value:function(e){var t=e.realIndex,n=e.pathFill,r=e.lineFill,i=e.j,a=e.i,o=e.columnGroupIndex,s=e.pathFrom,l=e.pathTo,c=e.strokeWidth,u=e.elSeries,d=e.x,h=e.y,f=e.y1,p=e.y2,m=e.series,g=e.barHeight,v=e.barWidth,b=e.barXPosition,y=e.barYPosition,w=e.elDataLabelsWrap,x=e.elGoalsMarkers,k=e.elBarShadows,S=e.visibleSeries,T=e.type,M=this.w,O=new A(this.ctx);if(!r){var L="function"==typeof M.globals.stroke.colors[t]?function(e){var t,n=M.config.stroke.colors;return Array.isArray(n)&&n.length>0&&((t=n[e])||(t=""),"function"==typeof t)?t({value:M.globals.series[e][i],dataPointIndex:i,w:M}):t}(t):M.globals.stroke.colors[t];r=this.barOptions.distributed?M.globals.stroke.colors[i]:L}M.config.series[a].data[i]&&M.config.series[a].data[i].strokeColor&&(r=M.config.series[a].data[i].strokeColor),this.isNullValue&&(n="none");var C=i/M.config.chart.animations.animateGradually.delay*(M.config.chart.animations.speed/M.globals.dataPoints)/2.4,D=O.renderPaths({i:a,j:i,realIndex:t,pathFrom:s,pathTo:l,stroke:r,strokeWidth:c,strokeLineCap:M.config.stroke.lineCap,fill:n,animationDelay:C,initialSpeed:M.config.chart.animations.speed,dataChangeSpeed:M.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(T,"-area")});D.attr("clip-path","url(#gridRectMask".concat(M.globals.cuid,")"));var E=M.config.forecastDataPoints;E.count>0&&i>=M.globals.dataPoints-E.count&&(D.node.setAttribute("stroke-dasharray",E.dashArray),D.node.setAttribute("stroke-width",E.strokeWidth),D.node.setAttribute("fill-opacity",E.fillOpacity)),void 0!==f&&void 0!==p&&(D.attr("data-range-y1",f),D.attr("data-range-y2",p)),new _(this.ctx).setSelectionFilter(D,t,i),u.add(D);var P=new _e(this).handleBarDataLabels({x:d,y:h,y1:f,y2:p,i:a,j:i,series:m,realIndex:t,columnGroupIndex:o,barHeight:g,barWidth:v,barXPosition:b,barYPosition:y,renderedPath:D,visibleSeries:S});return null!==P.dataLabels&&w.add(P.dataLabels),P.totalDataLabels&&w.add(P.totalDataLabels),u.add(w),x&&u.add(x),k&&u.add(k),u}},{key:"drawBarPaths",value:function(e){var t,n=e.indexes,r=e.barHeight,i=e.strokeWidth,a=e.zeroW,o=e.x,s=e.y,l=e.yDivision,c=e.elSeries,u=this.w,d=n.i,h=n.j;if(u.globals.isXNumeric)t=(s=(u.globals.seriesX[d][h]-u.globals.minX)/this.invertedXRatio-r)+r*this.visibleI;else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){var f=0,p=0;u.globals.seriesPercent.forEach((function(e,t){e[h]&&f++,t0&&(r=this.seriesLen*r/f),t=s+r*this.visibleI,t-=r*p}else t=s+r*this.visibleI;this.isFunnel&&(a-=(this.barHelpers.getXForValue(this.series[d][h],a)-a)/2),o=this.barHelpers.getXForValue(this.series[d][h],a);var m=this.barHelpers.getBarpaths({barYPosition:t,barHeight:r,x1:a,x2:o,strokeWidth:i,series:this.series,realIndex:n.realIndex,i:d,j:h,w:u});return u.globals.isXNumeric||(s+=l),this.barHelpers.barBackground({j:h,i:d,y1:t-r*this.visibleI,y2:r*this.seriesLen,elSeries:c}),{pathTo:m.pathTo,pathFrom:m.pathFrom,x1:a,x:o,y:s,goalX:this.barHelpers.getGoalValues("x",a,null,d,h),barYPosition:t,barHeight:r}}},{key:"drawColumnPaths",value:function(e){var t,n=e.indexes,r=e.x,i=e.y,a=e.xDivision,o=e.barWidth,s=e.zeroH,l=e.strokeWidth,c=e.elSeries,u=this.w,d=n.realIndex,h=n.translationsIndex,f=n.i,p=n.j,m=n.bc;if(u.globals.isXNumeric){var g=this.getBarXForNumericXAxis({x:r,j:p,realIndex:d,barWidth:o});r=g.x,t=g.barXPosition}else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){var v=this.barHelpers.getZeroValueEncounters({i:f,j:p}),b=v.nonZeroColumns,y=v.zeroEncounters;b>0&&(o=this.seriesLen*o/b),t=r+o*this.visibleI,t-=o*y}else t=r+o*this.visibleI;i=this.barHelpers.getYForValue(this.series[f][p],s,h);var w=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:o,y1:s,y2:i,strokeWidth:l,series:this.series,realIndex:d,i:f,j:p,w:u});return u.globals.isXNumeric||(r+=a),this.barHelpers.barBackground({bc:m,j:p,i:f,x1:t-l/2-o*this.visibleI,x2:o*this.seriesLen+l/2,elSeries:c}),{pathTo:w.pathTo,pathFrom:w.pathFrom,x:r,y:i,goalY:this.barHelpers.getGoalValues("y",null,s,f,p,h),barXPosition:t,barWidth:o}}},{key:"getBarXForNumericXAxis",value:function(e){var t=e.x,n=e.barWidth,r=e.realIndex,i=e.j,a=this.w,o=r;return a.globals.seriesX[r].length||(o=a.globals.maxValsInArrayIndex),a.globals.seriesX[o][i]&&(t=(a.globals.seriesX[o][i]-a.globals.minX)/this.xRatio-n*this.seriesLen/2),{barXPosition:t+n*this.visibleI,x:t}}},{key:"getPreviousPath",value:function(e,t){for(var n,r=this.w,i=0;i0&&parseInt(a.realIndex,10)===parseInt(e,10)&&void 0!==r.globals.previousPaths[i].paths[t]&&(n=r.globals.previousPaths[i].paths[t].d)}return n}}]),e}(),Se=function(e){d(n,e);var t=m(n);function n(){return s(this,n),t.apply(this,arguments)}return c(n,[{key:"draw",value:function(e,t){var n=this,r=this.w;this.graphics=new A(this.ctx),this.bar=new ke(this.ctx,this.xyRatios);var i=new k(this.ctx,r);e=i.getLogSeries(e),this.yRatio=i.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),"100%"===r.config.chart.stackType&&(e=r.globals.comboCharts?t.map((function(e){return r.globals.seriesPercent[e]})):r.globals.seriesPercent.slice()),this.series=e,this.barHelpers.initializeStackedPrevVars(this);for(var o=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),s=0,l=0,c=function(i,c){var u=void 0,d=void 0,h=void 0,f=void 0,p=r.globals.comboCharts?t[i]:i,m=n.barHelpers.getGroupIndex(p),g=m.groupIndex,v=m.columnGroupIndex;n.groupCtx=n[r.globals.seriesGroups[g]];var b=[],y=[],x=0;n.yRatio.length>1&&(n.yaxisIndex=r.globals.seriesYAxisReverseMap[p][0],x=p),n.isReversed=r.config.yaxis[n.yaxisIndex]&&r.config.yaxis[n.yaxisIndex].reversed;var _=n.graphics.group({class:"apexcharts-series",seriesName:w.escapeString(r.globals.seriesNames[p]),rel:i+1,"data:realIndex":p});n.ctx.series.addCollapsedClassToSeries(_,p);var A=n.graphics.group({class:"apexcharts-datalabels","data:realIndex":p}),k=n.graphics.group({class:"apexcharts-bar-goals-markers"}),S=0,T=0,M=n.initialPositions(s,l,u,d,h,f,x);l=M.y,S=M.barHeight,d=M.yDivision,f=M.zeroW,s=M.x,T=M.barWidth,u=M.xDivision,h=M.zeroH,r.globals.barHeight=S,r.globals.barWidth=T,n.barHelpers.initializeStackedXYVars(n),1===n.groupCtx.prevY.length&&n.groupCtx.prevY[0].every((function(e){return isNaN(e)}))&&(n.groupCtx.prevY[0]=n.groupCtx.prevY[0].map((function(){return h})),n.groupCtx.prevYF[0]=n.groupCtx.prevYF[0].map((function(){return 0})));for(var O=0;O1?l=(n=c.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:-1===String(d).indexOf("%")?l=parseInt(d,10):l*=parseInt(d,10)/100,i=c.globals.gridHeight-this.baseLineY[o]-(this.isReversed?c.globals.gridHeight:0),e=c.globals.padHorizontal+(n-l)/2}var h=c.globals.barGroups.length||1;return{x:e,y:t,yDivision:r,xDivision:n,barHeight:s/h,barWidth:l/h,zeroH:i,zeroW:a}}},{key:"drawStackedBarPaths",value:function(e){for(var t,n=e.indexes,r=e.barHeight,i=e.strokeWidth,a=e.zeroW,o=e.x,s=e.y,l=e.columnGroupIndex,c=e.seriesGroup,u=e.yDivision,d=e.elSeries,h=this.w,f=s+l*r,p=n.i,m=n.j,g=n.realIndex,v=n.translationsIndex,b=0,y=0;y0){var x=a;this.groupCtx.prevXVal[w-1][m]<0?x=this.series[p][m]>=0?this.groupCtx.prevX[w-1][m]+b-2*(this.isReversed?b:0):this.groupCtx.prevX[w-1][m]:this.groupCtx.prevXVal[w-1][m]>=0&&(x=this.series[p][m]>=0?this.groupCtx.prevX[w-1][m]:this.groupCtx.prevX[w-1][m]-b+2*(this.isReversed?b:0)),t=x}else t=a;o=null===this.series[p][m]?t:t+this.series[p][m]/this.invertedYRatio-2*(this.isReversed?this.series[p][m]/this.invertedYRatio:0);var _=this.barHelpers.getBarpaths({barYPosition:f,barHeight:r,x1:t,x2:o,strokeWidth:i,series:this.series,realIndex:n.realIndex,seriesGroup:c,i:p,j:m,w:h});return this.barHelpers.barBackground({j:m,i:p,y1:f,y2:r,elSeries:d}),s+=u,{pathTo:_.pathTo,pathFrom:_.pathFrom,goalX:this.barHelpers.getGoalValues("x",a,null,p,m,v),barXPosition:t,barYPosition:f,x:o,y:s}}},{key:"drawStackedColumnPaths",value:function(e){var t=e.indexes,n=e.x,r=e.y,i=e.xDivision,a=e.barWidth,o=e.zeroH,s=e.columnGroupIndex,l=e.seriesGroup,c=e.elSeries,u=this.w,d=t.i,h=t.j,f=t.bc,p=t.realIndex,m=t.translationsIndex;if(u.globals.isXNumeric){var g=u.globals.seriesX[p][h];g||(g=0),n=(g-u.globals.minX)/this.xRatio-a/2*u.globals.barGroups.length}for(var v,b=n+s*a,y=0,w=0;w0&&!u.globals.isXNumeric||x>0&&u.globals.isXNumeric&&u.globals.seriesX[p-1][h]===u.globals.seriesX[p][h]){var _,A,k,S=Math.min(this.yRatio.length+1,p+1);if(void 0!==this.groupCtx.prevY[x-1]&&this.groupCtx.prevY[x-1].length)for(var T=1;T=0?k-y+2*(this.isReversed?y:0):k;break}if((null===(C=this.groupCtx.prevYVal[x-O])||void 0===C?void 0:C[h])>=0){A=this.series[d][h]>=0?k:k+y-2*(this.isReversed?y:0);break}}void 0===A&&(A=u.globals.gridHeight),v=null!==(_=this.groupCtx.prevYF[0])&&void 0!==_&&_.every((function(e){return 0===e}))&&this.groupCtx.prevYF.slice(1,x).every((function(e){return e.every((function(e){return isNaN(e)}))}))?o:A}else v=o;r=this.series[d][h]?v-this.series[d][h]/this.yRatio[m]+2*(this.isReversed?this.series[d][h]/this.yRatio[m]:0):v;var D=this.barHelpers.getColumnPaths({barXPosition:b,barWidth:a,y1:v,y2:r,yRatio:this.yRatio[m],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:l,realIndex:t.realIndex,i:d,j:h,w:u});return this.barHelpers.barBackground({bc:f,j:h,i:d,x1:b,x2:a,elSeries:c}),{pathTo:D.pathTo,pathFrom:D.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,o,d,h),barXPosition:b,x:u.globals.isXNumeric?n:n+i,y:r}}}]),n}(ke),Te=function(e){d(n,e);var t=m(n);function n(){return s(this,n),t.apply(this,arguments)}return c(n,[{key:"draw",value:function(e,t,n){var r=this,i=this.w,o=new A(this.ctx),s=i.globals.comboCharts?t:i.config.chart.type,l=new N(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=i.config.plotOptions.bar.horizontal;var c=new k(this.ctx,i);e=c.getLogSeries(e),this.series=e,this.yRatio=c.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);for(var u=o.group({class:"apexcharts-".concat(s,"-series apexcharts-plot-series")}),d=function(t){r.isBoxPlot="boxPlot"===i.config.chart.type||"boxPlot"===i.config.series[t].type;var s,c,d,h,f=void 0,p=void 0,m=[],g=[],v=i.globals.comboCharts?n[t]:t,b=r.barHelpers.getGroupIndex(v).columnGroupIndex,y=o.group({class:"apexcharts-series",seriesName:w.escapeString(i.globals.seriesNames[v]),rel:t+1,"data:realIndex":v});r.ctx.series.addCollapsedClassToSeries(y,v),e[t].length>0&&(r.visibleI=r.visibleI+1);var x,_,A=0;r.yRatio.length>1&&(r.yaxisIndex=i.globals.seriesYAxisReverseMap[v][0],A=v);var k=r.barHelpers.initialPositions();p=k.y,x=k.barHeight,c=k.yDivision,h=k.zeroW,f=k.x,_=k.barWidth,s=k.xDivision,d=k.zeroH,g.push(f+_/2);for(var S=o.group({class:"apexcharts-datalabels","data:realIndex":v}),T=function(n){var o=r.barHelpers.getStrokeWidth(t,n,v),u=null,w={indexes:{i:t,j:n,realIndex:v,translationsIndex:A},x:f,y:p,strokeWidth:o,elSeries:y};u=r.isHorizontal?r.drawHorizontalBoxPaths(a(a({},w),{},{yDivision:c,barHeight:x,zeroW:h})):r.drawVerticalBoxPaths(a(a({},w),{},{xDivision:s,barWidth:_,zeroH:d})),p=u.y,f=u.x,n>0&&g.push(f+_/2),m.push(p),u.pathTo.forEach((function(a,s){var c=!r.isBoxPlot&&r.candlestickOptions.wick.useFillColor?u.color[s]:i.globals.stroke.colors[t],d=l.fillPath({seriesNumber:v,dataPointIndex:n,color:u.color[s],value:e[t][n]});r.renderSeries({realIndex:v,pathFill:d,lineFill:c,j:n,i:t,pathFrom:u.pathFrom,pathTo:a,strokeWidth:o,elSeries:y,x:f,y:p,series:e,columnGroupIndex:b,barHeight:x,barWidth:_,elDataLabelsWrap:S,visibleSeries:r.visibleI,type:i.config.chart.type})}))},M=0;Mv.c&&(d=!1);var w=Math.min(v.o,v.c),x=Math.max(v.o,v.c),_=v.m;s.globals.isXNumeric&&(n=(s.globals.seriesX[g][u]-s.globals.minX)/this.xRatio-i/2);var k=n+i*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?(w=a,x=a):(w=a-w/m,x=a-x/m,b=a-v.h/m,y=a-v.l/m,_=a-v.m/m);var S=l.move(k,a),T=l.move(k+i/2,w);return s.globals.previousPaths.length>0&&(T=this.getPreviousPath(g,u,!0)),S=this.isBoxPlot?[l.move(k,w)+l.line(k+i/2,w)+l.line(k+i/2,b)+l.line(k+i/4,b)+l.line(k+i-i/4,b)+l.line(k+i/2,b)+l.line(k+i/2,w)+l.line(k+i,w)+l.line(k+i,_)+l.line(k,_)+l.line(k,w+o/2),l.move(k,_)+l.line(k+i,_)+l.line(k+i,x)+l.line(k+i/2,x)+l.line(k+i/2,y)+l.line(k+i-i/4,y)+l.line(k+i/4,y)+l.line(k+i/2,y)+l.line(k+i/2,x)+l.line(k,x)+l.line(k,_)+"z"]:[l.move(k,x)+l.line(k+i/2,x)+l.line(k+i/2,b)+l.line(k+i/2,x)+l.line(k+i,x)+l.line(k+i,w)+l.line(k+i/2,w)+l.line(k+i/2,y)+l.line(k+i/2,w)+l.line(k,w)+l.line(k,x-o/2)],T+=l.move(k,w),s.globals.isXNumeric||(n+=r),{pathTo:S,pathFrom:T,x:n,y:x,barXPosition:k,color:this.isBoxPlot?p:d?[h]:[f]}}},{key:"drawHorizontalBoxPaths",value:function(e){var t=e.indexes;e.x;var n=e.y,r=e.yDivision,i=e.barHeight,a=e.zeroW,o=e.strokeWidth,s=this.w,l=new A(this.ctx),c=t.i,u=t.j,d=this.boxOptions.colors.lower;this.isBoxPlot&&(d=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var h=this.invertedYRatio,f=t.realIndex,p=this.getOHLCValue(f,u),m=a,g=a,v=Math.min(p.o,p.c),b=Math.max(p.o,p.c),y=p.m;s.globals.isXNumeric&&(n=(s.globals.seriesX[f][u]-s.globals.minX)/this.invertedXRatio-i/2);var w=n+i*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?(v=a,b=a):(v=a+v/h,b=a+b/h,m=a+p.h/h,g=a+p.l/h,y=a+p.m/h);var x=l.move(a,w),_=l.move(v,w+i/2);return s.globals.previousPaths.length>0&&(_=this.getPreviousPath(f,u,!0)),x=[l.move(v,w)+l.line(v,w+i/2)+l.line(m,w+i/2)+l.line(m,w+i/2-i/4)+l.line(m,w+i/2+i/4)+l.line(m,w+i/2)+l.line(v,w+i/2)+l.line(v,w+i)+l.line(y,w+i)+l.line(y,w)+l.line(v+o/2,w),l.move(y,w)+l.line(y,w+i)+l.line(b,w+i)+l.line(b,w+i/2)+l.line(g,w+i/2)+l.line(g,w+i-i/4)+l.line(g,w+i/4)+l.line(g,w+i/2)+l.line(b,w+i/2)+l.line(b,w)+l.line(y,w)+"z"],_+=l.move(v,w),s.globals.isXNumeric||(n+=r),{pathTo:x,pathFrom:_,x:b,y:n,barYPosition:w,color:d}}},{key:"getOHLCValue",value:function(e,t){var n=this.w;return{o:this.isBoxPlot?n.globals.seriesCandleH[e][t]:n.globals.seriesCandleO[e][t],h:this.isBoxPlot?n.globals.seriesCandleO[e][t]:n.globals.seriesCandleH[e][t],m:n.globals.seriesCandleM[e][t],l:this.isBoxPlot?n.globals.seriesCandleC[e][t]:n.globals.seriesCandleL[e][t],c:this.isBoxPlot?n.globals.seriesCandleL[e][t]:n.globals.seriesCandleC[e][t]}}}]),n}(ke),Me=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,n=e.config.plotOptions[e.config.chart.type];return n.colorScale.ranges.length>0&&n.colorScale.ranges.map((function(e,n){e.from<=0&&(t=!0)})),t}},{key:"getShadeColor",value:function(e,t,n,r){var i=this.w,a=1,o=i.config.plotOptions[e].shadeIntensity,s=this.determineColor(e,t,n);i.globals.hasNegs||r?a=i.config.plotOptions[e].reverseNegativeShade?s.percent<0?s.percent/100*(1.25*o):(1-s.percent/100)*(1.25*o):s.percent<=0?1-(1+s.percent/100)*o:(1-s.percent/100)*o:(a=1-s.percent/100,"treemap"===e&&(a=(1-s.percent/100)*(1.25*o)));var l=s.color,c=new w;return i.config.plotOptions[e].enableShades&&(l="dark"===this.w.config.theme.mode?w.hexToRgba(c.shadeColor(-1*a,s.color),i.config.fill.opacity):w.hexToRgba(c.shadeColor(a,s.color),i.config.fill.opacity)),{color:l,colorProps:s}}},{key:"determineColor",value:function(e,t,n){var r=this.w,i=r.globals.series[t][n],a=r.config.plotOptions[e],o=a.colorScale.inverse?n:t;a.distributed&&"treemap"===r.config.chart.type&&(o=n);var s=r.globals.colors[o],l=null,c=Math.min.apply(Math,v(r.globals.series[t])),u=Math.max.apply(Math,v(r.globals.series[t]));a.distributed||"heatmap"!==e||(c=r.globals.minY,u=r.globals.maxY),void 0!==a.colorScale.min&&(c=a.colorScale.minr.globals.maxY?a.colorScale.max:r.globals.maxY);var d=Math.abs(u)+Math.abs(c),h=100*i/(0===d?d-1e-6:d);return a.colorScale.ranges.length>0&&a.colorScale.ranges.map((function(e,t){if(i>=e.from&&i<=e.to){s=e.color,l=e.foreColor?e.foreColor:null,c=e.from,u=e.to;var n=Math.abs(u)+Math.abs(c);h=100*i/(0===n?n-1e-6:n)}})),{color:s,foreColor:l,percent:h}}},{key:"calculateDataLabels",value:function(e){var t=e.text,n=e.x,r=e.y,i=e.i,a=e.j,o=e.colorProps,s=e.fontSize,l=this.w.config.dataLabels,c=new A(this.ctx),u=new $(this.ctx),d=null;if(l.enabled){d=c.group({class:"apexcharts-data-labels"});var h=l.offsetX,f=l.offsetY,p=n+h,m=r+parseFloat(l.style.fontSize)/3+f;u.plotDataLabelsText({x:p,y:m,text:t,i:i,j:a,color:o.foreColor,parent:d,fontSize:s,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(e){var t=new A(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),e}(),Oe=function(){function e(t,n){s(this,e),this.ctx=t,this.w=t.w,this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Me(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return c(e,[{key:"draw",value:function(e){var t=this.w,n=new A(this.ctx),r=n.group({class:"apexcharts-heatmap"});r.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var i=t.globals.gridWidth/t.globals.dataPoints,a=t.globals.gridHeight/t.globals.series.length,o=0,s=!1;this.negRange=this.helpers.checkColorRange();var l=e.slice();t.config.yaxis[0].reversed&&(s=!0,l.reverse());for(var c=s?0:l.length-1;s?c=0;s?c++:c--){var u=n.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:w.escapeString(t.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(u,c),t.config.chart.dropShadow.enabled){var d=t.config.chart.dropShadow;new _(this.ctx).dropShadow(u,d,c)}for(var h=0,f=t.config.plotOptions.heatmap.shadeIntensity,p=0;p-1&&this.pieClicked(d),n.config.dataLabels.enabled){var x=b.x,k=b.y,S=100*f/this.fullAngle+"%";if(0!==f&&n.config.plotOptions.pie.dataLabels.minAngleToShowLabelthis.fullAngle?t.endAngle=t.endAngle-(r+o):r+o=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(c=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(c)>this.fullAngle&&(c-=this.fullAngle);var u=Math.PI*(c-90)/180,d=n.centerX+a*Math.cos(l),h=n.centerY+a*Math.sin(l),f=n.centerX+a*Math.cos(u),p=n.centerY+a*Math.sin(u),m=w.polarToCartesian(n.centerX,n.centerY,n.donutSize,c),g=w.polarToCartesian(n.centerX,n.centerY,n.donutSize,s),v=i>180?1:0,b=["M",d,h,"A",a,a,0,v,1,f,p];return t="donut"===n.chartType?[].concat(b,["L",m.x,m.y,"A",n.donutSize,n.donutSize,0,v,0,g.x,g.y,"L",d,h,"z"]).join(" "):"pie"===n.chartType||"polarArea"===n.chartType?[].concat(b,["L",n.centerX,n.centerY,"L",d,h]).join(" "):[].concat(b).join(" "),o.roundPathCorners(t,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(e){var t=this.w,n=new Q(this.ctx),r=new A(this.ctx),i=new Le(this.ctx),a=r.group(),o=r.group(),s=n.niceScale(0,Math.ceil(this.maxY),0),l=s.result.reverse(),c=s.result.length;this.maxY=s.niceMax;for(var u=t.globals.radialSize,d=u/(c-1),h=0;h1&&e.total.show&&(i=e.total.color);var o=a.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),s=a.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");n=(0,e.value.formatter)(n,a),r||"function"!=typeof e.total.formatter||(n=e.total.formatter(a));var l=t===e.total.label;t=e.name.formatter(t,l,a),null!==o&&(o.textContent=t),null!==s&&(s.textContent=n),null!==o&&(o.style.fill=i)}},{key:"printDataLabelsInner",value:function(e,t){var n=this.w,r=e.getAttribute("data:value"),i=n.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];n.globals.series.length>1&&this.printInnerLabels(t,i,r,e);var a=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==a&&(a.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,n=this.w,r=new A(this.ctx),i=n.config.plotOptions.polarArea.spokes;if(0!==i.strokeWidth){for(var a=[],o=360/n.globals.series.length,s=0;s0&&(m=t.getPreviousPath(s));for(var g=0;g=10?e.x>0?(n="start",r+=10):e.x<0&&(n="end",r-=10):n="middle",Math.abs(e.y)>=t-10&&(e.y<0?i-=10:e.y>0&&(i+=10)),{textAnchor:n,newX:r,newY:i}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,n=null,r=0;r0&&parseInt(i.realIndex,10)===parseInt(e,10)&&void 0!==t.globals.previousPaths[r].paths[0]&&(n=t.globals.previousPaths[r].paths[0].d)}return n}},{key:"getDataPointsPos",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var r=[],i=0;i=360&&(h=360-Math.abs(this.startAngle)-.1);var f=n.drawPath({d:"",stroke:u,strokeWidth:o*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var p=c.dropShadow;i.dropShadow(f,p)}l.add(f),f.attr("id","apexcharts-radialbarTrack-"+s),this.animatePaths(f,{centerX:e.centerX,centerY:e.centerY,endAngle:h,startAngle:d,size:e.size,i:s,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:t.globals.easing})}return r}},{key:"drawArcs",value:function(e){var t=this.w,n=new A(this.ctx),r=new N(this.ctx),i=new _(this.ctx),a=n.group(),o=this.getStrokeWidth(e);e.size=e.size-o/2;var s=t.config.plotOptions.radialBar.hollow.background,l=e.size-o*e.series.length-this.margin*e.series.length-o*parseInt(t.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-t.config.plotOptions.radialBar.hollow.margin;void 0!==t.config.plotOptions.radialBar.hollow.image&&(s=this.drawHollowImage(e,a,l,s));var u=this.drawHollow({size:c,centerX:e.centerX,centerY:e.centerY,fill:s||"transparent"});if(t.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=t.config.plotOptions.radialBar.hollow.dropShadow;i.dropShadow(u,d)}var h=1;!this.radialDataLabels.total.show&&t.globals.series.length>1&&(h=0);var f=null;if(this.radialDataLabels.show){var p=t.globals.dom.Paper.select(".apexcharts-datalabels-group").members[0];f=this.renderInnerDataLabels(p,this.radialDataLabels,{hollowSize:l,centerX:e.centerX,centerY:e.centerY,opacity:h})}"back"===t.config.plotOptions.radialBar.hollow.position&&(a.add(u),f&&a.add(f));var m=!1;t.config.plotOptions.radialBar.inverseOrder&&(m=!0);for(var g=m?e.series.length-1:0;m?g>=0:g100?100:e.series[g])/100,S=Math.round(this.totalAngle*k)+this.startAngle,T=void 0;t.globals.dataChanged&&(x=this.startAngle,T=Math.round(this.totalAngle*w.negToZero(t.globals.previousPaths[g])/100)+x),Math.abs(S)+Math.abs(y)>=360&&(S-=.01),Math.abs(T)+Math.abs(x)>=360&&(T-=.01);var M=S-y,O=Array.isArray(t.config.stroke.dashArray)?t.config.stroke.dashArray[g]:t.config.stroke.dashArray,L=n.drawPath({d:"",stroke:b,strokeWidth:o,fill:"none",fillOpacity:t.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+g,strokeDashArray:O});if(A.setAttrs(L.node,{"data:angle":M,"data:value":e.series[g]}),t.config.chart.dropShadow.enabled){var C=t.config.chart.dropShadow;i.dropShadow(L,C,g)}if(i.setSelectionFilter(L,0,g),this.addListeners(L,this.radialDataLabels),v.add(L),L.attr({index:0,j:g}),this.barLabels.enabled){var D=w.polarToCartesian(e.centerX,e.centerY,e.size,y),E=this.barLabels.formatter(t.globals.seriesNames[g],{seriesIndex:g,w:t}),P=["apexcharts-radialbar-label"];this.barLabels.onClick||P.push("apexcharts-no-click");var Y=this.barLabels.useSeriesColors?t.globals.colors[g]:t.config.chart.foreColor;Y||(Y=t.config.chart.foreColor);var j=D.x+this.barLabels.offsetX,I=D.y+this.barLabels.offsetY,R=n.drawText({x:j,y:I,text:E,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:Y,cssClass:P.join(" ")});R.on("click",this.onBarLabelClick),R.attr({rel:g+1}),0!==y&&R.attr({"transform-origin":"".concat(j," ").concat(I),transform:"rotate(".concat(y," 0 0)")}),v.add(R)}var F=0;!this.initialAnim||t.globals.resized||t.globals.dataChanged||(F=t.config.chart.animations.speed),t.globals.dataChanged&&(F=t.config.chart.animations.dynamicAnimation.speed),this.animDur=F/(1.2*e.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(L,{centerX:e.centerX,centerY:e.centerY,endAngle:S,startAngle:y,prevEndAngle:T,prevStartAngle:x,size:e.size,i:g,totalItems:2,animBeginArr:this.animBeginArr,dur:F,shouldSetPrevPaths:!0,easing:t.globals.easing})}return{g:a,elHollow:u,dataLabels:f}}},{key:"drawHollow",value:function(e){var t=new A(this.ctx).drawCircle(2*e.size);return t.attr({class:"apexcharts-radialbar-hollow",cx:e.centerX,cy:e.centerY,r:e.size,fill:e.fill}),t}},{key:"drawHollowImage",value:function(e,t,n,r){var i=this.w,a=new N(this.ctx),o=w.randomId(),s=i.config.plotOptions.radialBar.hollow.image;if(i.config.plotOptions.radialBar.hollow.imageClipped)a.clippedImgArea({width:n,height:n,image:s,patternID:"pattern".concat(i.globals.cuid).concat(o)}),r="url(#pattern".concat(i.globals.cuid).concat(o,")");else{var l=i.config.plotOptions.radialBar.hollow.imageWidth,c=i.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var u=i.globals.dom.Paper.image(s).loaded((function(t){this.move(e.centerX-t.width/2+i.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+i.config.plotOptions.radialBar.hollow.imageOffsetY)}));t.add(u)}else{var d=i.globals.dom.Paper.image(s).loaded((function(t){this.move(e.centerX-l/2+i.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-c/2+i.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)}));t.add(d)}}return r}},{key:"getStrokeWidth",value:function(e){var t=this.w;return e.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(e.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(e){var t=parseInt(e.target.getAttribute("rel"),10)-1,n=this.barLabels.onClick,r=this.w;n&&n(r.globals.seriesNames[t],{w:r,seriesIndex:t})}}]),n}(Ce),Pe=function(e){d(n,e);var t=m(n);function n(){return s(this,n),t.apply(this,arguments)}return c(n,[{key:"draw",value:function(e,t){var n=this.w,r=new A(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=n.globals.seriesRangeStart,this.seriesRangeEnd=n.globals.seriesRangeEnd,this.barHelpers.initVariables(e);for(var i=r.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),o=0;o0&&(this.visibleI=this.visibleI+1);var g=0,v=0,b=0;this.yRatio.length>1&&(this.yaxisIndex=n.globals.seriesYAxisReverseMap[f][0],b=f);var y=this.barHelpers.initialPositions();h=y.y,u=y.zeroW,d=y.x,v=y.barWidth,g=y.barHeight,s=y.xDivision,l=y.yDivision,c=y.zeroH;for(var x=r.group({class:"apexcharts-datalabels","data:realIndex":f}),_=r.group({class:"apexcharts-rangebar-goals-markers"}),k=0;k0}));return this.isHorizontal?(r=h.config.plotOptions.bar.rangeBarGroupRows?a+c*v:a+s*this.visibleI+c*v,b>-1&&!h.config.plotOptions.bar.rangeBarOverlap&&(f=h.globals.seriesRange[t][b].overlaps).indexOf(p)>-1&&(r=(s=d.barHeight/f.length)*this.visibleI+c*(100-parseInt(this.barOptions.barHeight,10))/100/2+s*(this.visibleI+f.indexOf(p))+c*v)):(v>-1&&!h.globals.timescaleLabels.length&&(i=h.config.plotOptions.bar.rangeBarGroupRows?o+u*v:o+l*this.visibleI+u*v),b>-1&&!h.config.plotOptions.bar.rangeBarOverlap&&(f=h.globals.seriesRange[t][b].overlaps).indexOf(p)>-1&&(i=(l=d.barWidth/f.length)*this.visibleI+u*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+f.indexOf(p))+u*v)),{barYPosition:r,barXPosition:i,barHeight:s,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(e){var t=e.indexes,n=e.x,r=e.xDivision,i=e.barWidth,a=e.barXPosition,o=e.zeroH,s=this.w,l=t.i,c=t.j,u=t.realIndex,d=t.translationsIndex,h=this.yRatio[d],f=this.getRangeValue(u,c),p=Math.min(f.start,f.end),m=Math.max(f.start,f.end);void 0===this.series[l][c]||null===this.series[l][c]?p=o:(p=o-p/h,m=o-m/h);var g=Math.abs(m-p),v=this.barHelpers.getColumnPaths({barXPosition:a,barWidth:i,y1:p,y2:m,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:u,i:u,j:c,w:s});if(s.globals.isXNumeric){var b=this.getBarXForNumericXAxis({x:n,j:c,realIndex:u,barWidth:i});n=b.x,a=b.barXPosition}else n+=r;return{pathTo:v.pathTo,pathFrom:v.pathFrom,barHeight:g,x:n,y:f.start<0&&f.end<0?p:m,goalY:this.barHelpers.getGoalValues("y",null,o,l,c,d),barXPosition:a}}},{key:"preventBarOverflow",value:function(e){var t=this.w;return e<0&&(e=0),e>t.globals.gridWidth&&(e=t.globals.gridWidth),e}},{key:"drawRangeBarPaths",value:function(e){var t=e.indexes,n=e.y,r=e.y1,i=e.y2,a=e.yDivision,o=e.barHeight,s=e.barYPosition,l=e.zeroW,c=this.w,u=t.realIndex,d=t.j,h=this.preventBarOverflow(l+r/this.invertedYRatio),f=this.preventBarOverflow(l+i/this.invertedYRatio),p=this.getRangeValue(u,d),m=Math.abs(f-h),g=this.barHelpers.getBarpaths({barYPosition:s,barHeight:o,x1:h,x2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:u,realIndex:u,j:d,w:c});return c.globals.isXNumeric||(n+=a),{pathTo:g.pathTo,pathFrom:g.pathFrom,barWidth:m,x:p.start<0&&p.end<0?h:f,goalX:this.barHelpers.getGoalValues("x",l,null,u,d),y:n}}},{key:"getRangeValue",value:function(e,t){var n=this.w;return{start:n.globals.seriesRangeStart[e][t],end:n.globals.seriesRangeEnd[e][t]}}}]),n}(ke),Ye=function(){function e(t){s(this,e),this.w=t.w,this.lineCtx=t}return c(e,[{key:"sameValueSeriesFix",value:function(e,t){var n=this.w;if(("gradient"===n.config.fill.type||"gradient"===n.config.fill.type[e])&&new k(this.lineCtx.ctx,n).seriesHaveSameValues(e)){var r=t[e].slice();r[r.length-1]=r[r.length-1]+1e-6,t[e]=r}return t}},{key:"calculatePoints",value:function(e){var t=e.series,n=e.realIndex,r=e.x,i=e.y,a=e.i,o=e.j,s=e.prevY,l=this.w,c=[],u=[];if(0===o){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[n][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),c.push(d),u.push(w.isNumber(t[a][0])?s+l.config.markers.offsetY:null),c.push(r+l.config.markers.offsetX),u.push(w.isNumber(t[a][o+1])?i+l.config.markers.offsetY:null)}else c.push(r+l.config.markers.offsetX),u.push(w.isNumber(t[a][o+1])?i+l.config.markers.offsetY:null);return{x:c,y:u}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,n=e.pathFromArea,r=e.realIndex,i=this.w,a=0;a0&&parseInt(o.realIndex,10)===parseInt(r,10)&&("line"===o.type?(this.lineCtx.appendPathFrom=!1,t=i.globals.previousPaths[a].paths[0].d):"area"===o.type&&(this.lineCtx.appendPathFrom=!1,n=i.globals.previousPaths[a].paths[0].d,i.config.stroke.show&&i.globals.previousPaths[a].paths[1]&&(t=i.globals.previousPaths[a].paths[1].d)))}return{pathFromLine:t,pathFromArea:n}}},{key:"determineFirstPrevY",value:function(e){var t,n,r,i=e.i,a=e.realIndex,o=e.series,s=e.prevY,l=e.lineYPosition,c=e.translationsIndex,u=this.w,d=u.config.chart.stacked&&!u.globals.comboCharts||u.config.chart.stacked&&u.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[a])||void 0===t?void 0:t.type)||"column"===(null===(n=this.w.config.series[a])||void 0===n?void 0:n.type));if(void 0!==(null===(r=o[i])||void 0===r?void 0:r[0]))s=(l=d&&i>0?this.lineCtx.prevSeriesY[i-1][0]:this.lineCtx.zeroY)-o[i][0]/this.lineCtx.yRatio[c]+2*(this.lineCtx.isReversed?o[i][0]/this.lineCtx.yRatio[c]:0);else if(d&&i>0&&void 0===o[i][0])for(var h=i-1;h>=0;h--)if(null!==o[h][0]&&void 0!==o[h][0]){s=l=this.lineCtx.prevSeriesY[h][0];break}return{prevY:s,lineYPosition:l}}}]),e}(),je=function(e){for(var t,n,r,i,a=function(e){for(var t=[],n=e[0],r=e[1],i=t[0]=Fe(n,r),a=1,o=e.length-1;a9&&(i=3*r/Math.sqrt(i),a[l]=i*t,a[l+1]=i*n);for(var c=0;c<=o;c++)i=(e[Math.min(o,c+1)][0]-e[Math.max(0,c-1)][0])/(6*(1+a[c]*a[c])),s.push([i||0,a[c]*i||0]);return s},Ie=function(e){var t=je(e),n=e[1],r=e[0],i=[],a=t[1],o=t[0];i.push(r,[r[0]+o[0],r[1]+o[1],n[0]-a[0],n[1]-a[1],n[0],n[1]]);for(var s=2,l=t.length;s1&&r[1].length<6){var i=r[0].length;r[1]=[2*r[0][i-2]-r[0][i-4],2*r[0][i-1]-r[0][i-3]].concat(r[1])}r[0]=r[0].slice(-2)}return r};function Fe(e,t){return(t[1]-e[1])/(t[0]-e[0])}var He=function(){function e(t,n,r){s(this,e),this.ctx=t,this.w=t.w,this.xyRatios=n,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||r,this.scatter=new W(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Ye(this),this.markers=new z(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return c(e,[{key:"draw",value:function(e,t,n,r){var i,o=this.w,s=new A(this.ctx),l=o.globals.comboCharts?t:o.config.chart.type,c=s.group({class:"apexcharts-".concat(l,"-series apexcharts-plot-series")}),u=new k(this.ctx,o);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=u.getLogSeries(e),this.yRatio=u.getLogYRatios(this.yRatio),this.prevSeriesY=[];for(var d=[],h=0;h1?f:0;this._initSerieVariables(e,h,f);var m=[],g=[],v=[],b=o.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,f),o.globals.isXNumeric&&o.globals.seriesX.length>0&&(b=(o.globals.seriesX[f][0]-o.globals.minX)/this.xRatio),v.push(b);var y,w=b,x=void 0,_=w,S=this.zeroY,T=this.zeroY;S=this.lineHelpers.determineFirstPrevY({i:h,realIndex:f,series:e,prevY:S,lineYPosition:0,translationsIndex:p}).prevY,"monotoneCubic"===o.config.stroke.curve&&null===e[h][0]?m.push(null):m.push(S),y=S,"rangeArea"===l&&(x=T=this.lineHelpers.determineFirstPrevY({i:h,realIndex:f,series:r,prevY:T,lineYPosition:0,translationsIndex:p}).prevY,g.push(null!==m[0]?T:null));var M=this._calculatePathsFrom({type:l,series:e,i:h,realIndex:f,translationsIndex:p,prevX:_,prevY:S,prevY2:T}),O=[m[0]],L=[g[0]],C={type:l,series:e,realIndex:f,translationsIndex:p,i:h,x:b,y:1,pX:w,pY:y,pathsFrom:M,linePaths:[],areaPaths:[],seriesIndex:n,lineYPosition:0,xArrj:v,yArrj:m,y2Arrj:g,seriesRangeEnd:r},D=this._iterateOverDataPoints(a(a({},C),{},{iterations:"rangeArea"===l?e[h].length-1:void 0,isRangeStart:!0}));if("rangeArea"===l){for(var E=this._calculatePathsFrom({series:r,i:h,realIndex:f,prevX:_,prevY:T}),P=this._iterateOverDataPoints(a(a({},C),{},{series:r,xArrj:[b],yArrj:O,y2Arrj:L,pY:x,areaPaths:D.areaPaths,pathsFrom:E,iterations:r[h].length-1,isRangeStart:!1})),Y=D.linePaths.length/2,j=0;j=0;I--)c.add(d[I]);else for(var R=0;R1&&(this.yaxisIndex=r.globals.seriesYAxisReverseMap[n],a=n),this.isReversed=r.config.yaxis[this.yaxisIndex]&&r.config.yaxis[this.yaxisIndex].reversed,this.zeroY=r.globals.gridHeight-this.baseLineY[a]-(this.isReversed?r.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[a]:0),this.areaBottomY=this.zeroY,(this.zeroY>r.globals.gridHeight||"end"===r.config.plotOptions.area.fillTo)&&(this.areaBottomY=r.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=i.group({class:"apexcharts-series",zIndex:void 0!==r.config.series[n].zIndex?r.config.series[n].zIndex:n,seriesName:w.escapeString(r.globals.seriesNames[n])}),this.elPointsMain=i.group({class:"apexcharts-series-markers-wrap","data:realIndex":n}),this.elDataLabelsWrap=i.group({class:"apexcharts-datalabels","data:realIndex":n});var o=e[t].length===r.globals.dataPoints;this.elSeries.attr({"data:longestSeries":o,rel:t+1,"data:realIndex":n}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,n,r,i,a=e.type,o=e.series,s=e.i,l=e.realIndex,c=e.translationsIndex,u=e.prevX,d=e.prevY,h=e.prevY2,f=this.w,p=new A(this.ctx);if(null===o[s][0]){for(var m=0;m0){var g=this.lineHelpers.checkPreviousPaths({pathFromLine:r,pathFromArea:i,realIndex:l});r=g.pathFromLine,i=g.pathFromArea}return{prevX:u,prevY:d,linePath:t,areaPath:n,pathFromLine:r,pathFromArea:i}}},{key:"_handlePaths",value:function(e){var t=e.type,n=e.realIndex,r=e.i,i=e.paths,o=this.w,s=new A(this.ctx),l=new N(this.ctx);this.prevSeriesY.push(i.yArrj),o.globals.seriesXvalues[n]=i.xArrj,o.globals.seriesYvalues[n]=i.yArrj;var c=o.config.forecastDataPoints;if(c.count>0&&"rangeArea"!==t){var u=o.globals.seriesXvalues[n][o.globals.seriesXvalues[n].length-c.count-1],d=s.drawRect(u,0,o.globals.gridWidth,o.globals.gridHeight,0);o.globals.dom.elForecastMask.appendChild(d.node);var h=s.drawRect(0,0,u,o.globals.gridHeight,0);o.globals.dom.elNonForecastMask.appendChild(h.node)}this.pointsChart||o.globals.delayedElements.push({el:this.elPointsMain.node,index:n});var f={i:r,realIndex:n,animationDelay:r,initialSpeed:o.config.chart.animations.speed,dataChangeSpeed:o.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if("area"===t)for(var p=l.fillPath({seriesNumber:n}),m=0;m0&&"rangeArea"!==t){var k=s.renderPaths(x);k.node.setAttribute("stroke-dasharray",c.dashArray),c.strokeWidth&&k.node.setAttribute("stroke-width",c.strokeWidth),this.elSeries.add(k),k.attr("clip-path","url(#forecastMask".concat(o.globals.cuid,")")),_.attr("clip-path","url(#nonForecastMask".concat(o.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t,n,r=this,i=e.type,a=e.series,o=e.iterations,s=e.realIndex,l=e.translationsIndex,c=e.i,u=e.x,d=e.y,h=e.pX,f=e.pY,p=e.pathsFrom,m=e.linePaths,g=e.areaPaths,v=e.seriesIndex,b=e.lineYPosition,y=e.xArrj,x=e.yArrj,_=e.y2Arrj,k=e.isRangeStart,S=e.seriesRangeEnd,T=this.w,M=new A(this.ctx),O=this.yRatio,L=p.prevY,C=p.linePath,D=p.areaPath,E=p.pathFromLine,P=p.pathFromArea,Y=w.isNumber(T.globals.minYArr[s])?T.globals.minYArr[s]:T.globals.minY;o||(o=T.globals.dataPoints>1?T.globals.dataPoints-1:T.globals.dataPoints);var j=function(e,t){return t-e/O[l]+2*(r.isReversed?e/O[l]:0)},I=d,R=T.config.chart.stacked&&!T.globals.comboCharts||T.config.chart.stacked&&T.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[s])||void 0===t?void 0:t.type)||"column"===(null===(n=this.w.config.series[s])||void 0===n?void 0:n.type)),F=T.config.stroke.curve;Array.isArray(F)&&(F=Array.isArray(v)?F[v[c]]:F[c]);for(var H,B=0,N=0;N0&&T.globals.collapsedSeries.length0;t--){if(!(T.globals.collapsedSeriesIndices.indexOf((null==v?void 0:v[t])||t)>-1))return t;t--}return 0}(c-1)][N+1]:this.zeroY,z?d=j(Y,b):(d=j(a[c][N+1],b),"rangeArea"===i&&(I=j(S[c][N+1],b))),y.push(u),!z||"smooth"!==T.config.stroke.curve&&"monotoneCubic"!==T.config.stroke.curve?(x.push(d),_.push(I)):(x.push(null),_.push(null));var $=this.lineHelpers.calculatePoints({series:a,x:u,y:d,realIndex:s,i:c,j:N,prevY:L}),V=this._createPaths({type:i,series:a,i:c,realIndex:s,j:N,x:u,y:d,y2:I,xArrj:y,yArrj:x,y2Arrj:_,pX:h,pY:f,pathState:B,segmentStartX:H,linePath:C,areaPath:D,linePaths:m,areaPaths:g,curve:F,isRangeStart:k});g=V.areaPaths,m=V.linePaths,h=V.pX,f=V.pY,B=V.pathState,H=V.segmentStartX,D=V.areaPath,C=V.linePath,!this.appendPathFrom||"monotoneCubic"===F&&"rangeArea"===i||(E+=M.line(u,this.zeroY),P+=M.line(u,this.zeroY)),this.handleNullDataPoints(a,$,c,N,s),this._handleMarkersAndLabels({type:i,pointsPos:$,i:c,j:N,realIndex:s,isRangeStart:k})}return{yArrj:x,xArrj:y,pathFromArea:P,areaPaths:g,pathFromLine:E,linePaths:m,linePath:C,areaPath:D}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,n=e.pointsPos,r=e.isRangeStart,i=e.i,a=e.j,o=e.realIndex,s=this.w,l=new $(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,a,{realIndex:o,pointsPos:n,zRatio:this.zRatio,elParent:this.elPointsMain});else{s.globals.series[i].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var c=this.markers.plotChartMarkers(n,o,a+1);null!==c&&this.elPointsMain.add(c)}var u=l.drawDataLabel({type:t,isRangeStart:r,pos:n,i:o,j:a+1});null!==u&&this.elDataLabelsWrap.add(u)}},{key:"_createPaths",value:function(e){var t=e.type,n=e.series,r=e.i;e.realIndex;var i=e.j,a=e.x,o=e.y,s=e.xArrj,l=e.yArrj,c=e.y2,u=e.y2Arrj,d=e.pX,h=e.pY,f=e.pathState,p=e.segmentStartX,m=e.linePath,g=e.areaPath,v=e.linePaths,b=e.areaPaths,y=e.curve,w=e.isRangeStart;this.w;var x,_=new A(this.ctx),k=this.areaBottomY,S="rangeArea"===t,T="rangeArea"===t&&w;switch(y){case"monotoneCubic":var M=w?l:u;switch(f){case 0:if(null===M[i+1])break;f=1;case 1:if(!(S?s.length===n[r].length:i===n[r].length-2))break;case 2:var O=w?s:s.slice().reverse(),L=w?M:M.slice().reverse(),C=(x=L,O.map((function(e,t){return[e,x[t]]})).filter((function(e){return null!==e[1]}))),D=C.length>1?Ie(C):C,E=[];S&&(T?b=C:E=b.reverse());var P=0,Y=0;if(function(e,t){for(var n=function(e){var t=[],n=0;return e.forEach((function(e){null!==e?n++:n>0&&(t.push(n),n=0)})),n>0&&t.push(n),t}(e),r=[],i=0,a=0;i4?(t+="C".concat(r[0],", ").concat(r[1]),t+=", ".concat(r[2],", ").concat(r[3]),t+=", ".concat(r[4],", ").concat(r[5])):i>2&&(t+="S".concat(r[0],", ").concat(r[1]),t+=", ".concat(r[2],", ").concat(r[3]))}return t}(e),n=Y,r=(Y+=e.length)-1;T?m=_.move(C[n][0],C[n][1])+t:S?m=_.move(E[n][0],E[n][1])+_.line(C[n][0],C[n][1])+t+_.line(E[r][0],E[r][1]):(m=_.move(C[n][0],C[n][1])+t,g=m+_.line(C[r][0],k)+_.line(C[n][0],k)+"z",b.push(g)),v.push(m)})),S&&P>1&&!T){var j=v.slice(P).reverse();v.splice(P),j.forEach((function(e){return v.push(e)}))}f=0}break;case"smooth":var I=.35*(a-d);if(null===n[r][i])f=0;else switch(f){case 0:if(p=d,m=T?_.move(d,u[i])+_.line(d,h):_.move(d,h),g=_.move(d,h),f=1,i=n[r].length-2&&(T&&(m+=_.curve(a,o,a,o,a,c)+_.move(a,c)),g+=_.curve(a,o,a,o,a,k)+_.line(p,k)+"z",v.push(m),b.push(g),f=-1)}}d=a,h=o;break;default:var H=function(e,t,n){var r=[];switch(e){case"stepline":r=_.line(t,null,"H")+_.line(null,n,"V");break;case"linestep":r=_.line(null,n,"V")+_.line(t,null,"H");break;case"straight":r=_.line(t,n)}return r};if(null===n[r][i])f=0;else switch(f){case 0:if(p=d,m=T?_.move(d,u[i])+_.line(d,h):_.move(d,h),g=_.move(d,h),f=1,i=n[r].length-2&&(T&&(m+=_.line(a,c)),g+=_.line(a,k)+_.line(p,k)+"z",v.push(m),b.push(g),f=-1)}}d=a,h=o}return{linePaths:v,areaPaths:b,pX:d,pY:h,pathState:f,segmentStartX:p,linePath:m,areaPath:g}}},{key:"handleNullDataPoints",value:function(e,t,n,r,i){var a=this.w;if(null===e[n][r]&&a.config.markers.showNullDataPoints||1===e[n].length){var o=this.strokeWidth-a.config.markers.strokeWidth/2;o>0||(o=0);var s=this.markers.plotChartMarkers(t,i,r+1,o,!0);null!==s&&this.elPointsMain.add(s)}}}]),e}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function e(t,n,r,i){this.xoffset=t,this.yoffset=n,this.height=i,this.width=r,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(e){var t,n=[],r=this.xoffset,i=this.yoffset,o=a(e)/this.height,s=a(e)/this.width;if(this.width>=this.height)for(t=0;t=this.height){var r=t/this.height,i=this.width-r;n=new e(this.xoffset+r,this.yoffset,i,this.height)}else{var a=t/this.width,o=this.height-a;n=new e(this.xoffset,this.yoffset+a,this.width,o)}return n}}function t(t,r,i,o,s){o=void 0===o?0:o,s=void 0===s?0:s;var l=n(function(e,t){var n,r=[],i=t/a(e);for(n=0;n=o}(t,l=e[0],s)?(t.push(l),n(e.slice(1),t,i,o)):(c=i.cutArea(a(t),o),o.push(i.getCoordinates(t)),n(e,[],c,o)),o;o.push(i.getCoordinates(t))}function r(e,t){var n=Math.min.apply(Math,e),r=Math.max.apply(Math,e),i=a(e);return Math.max(Math.pow(t,2)*r/Math.pow(i,2),Math.pow(i,2)/(Math.pow(t,2)*n))}function i(e){return e&&e.constructor===Array}function a(e){var t,n=0;for(t=0;ta-r&&l.width<=o-i){var c=s.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(c.x," ").concat(c.y,") translate(").concat(l.height/3,")"))}}},{key:"truncateLabels",value:function(e,t,n,r,i,a){var o=new A(this.ctx),s=o.getTextRects(e,t).width+this.w.config.stroke.width+5>i-n&&a-r>i-n?a-r:i-n,l=o.getTextBasedOnMaxWidth({text:e,maxWidth:s,fontSize:t});return e.length!==l.length&&s/t<5?"":l}},{key:"animateTreemap",value:function(e,t,n,r){var i=new x(this.ctx);i.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:n.x,y:n.y,width:n.width,height:n.height},r,(function(){i.animationCompleted(e)}))}}]),e}(),We=86400,$e=10/We,Ve=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return c(e,[{key:"calculateTimeScaleTicks",value:function(e,t){var n=this,r=this.w;if(r.globals.allSeriesCollapsed)return r.globals.labels=[],r.globals.timescaleLabels=[],[];var i=new M(this.ctx),o=(t-e)/864e5;this.determineInterval(o),r.globals.disableZoomIn=!1,r.globals.disableZoomOut=!1,o<$e?r.globals.disableZoomIn=!0:o>5e4&&(r.globals.disableZoomOut=!0);var s=i.getTimeUnitsfromTimestamp(e,t,this.utc),l=r.globals.gridWidth/o,c=l/24,u=c/60,d=u/60,h=Math.floor(24*o),f=Math.floor(1440*o),p=Math.floor(o*We),m=Math.floor(o),g=Math.floor(o/30),v=Math.floor(o/365),b={minMillisecond:s.minMillisecond,minSecond:s.minSecond,minMinute:s.minMinute,minHour:s.minHour,minDate:s.minDate,minMonth:s.minMonth,minYear:s.minYear},y={firstVal:b,currentMillisecond:b.minMillisecond,currentSecond:b.minSecond,currentMinute:b.minMinute,currentHour:b.minHour,currentMonthDate:b.minDate,currentDate:b.minDate,currentMonth:b.minMonth,currentYear:b.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:c,minutesWidthOnXAxis:u,secondsWidthOnXAxis:d,numberOfSeconds:p,numberOfMinutes:f,numberOfHours:h,numberOfDays:m,numberOfMonths:g,numberOfYears:v};switch(this.tickInterval){case"years":this.generateYearScale(y);break;case"months":case"half_year":this.generateMonthScale(y);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(y);break;case"hours":this.generateHourScale(y);break;case"minutes_fives":case"minutes":this.generateMinuteScale(y);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(y)}var w=this.timeScaleArray.map((function(e){var t={position:e.position,unit:e.unit,year:e.year,day:e.day?e.day:1,hour:e.hour?e.hour:0,month:e.month+1};return"month"===e.unit?a(a({},t),{},{day:1,value:e.value+1}):"day"===e.unit||"hour"===e.unit?a(a({},t),{},{value:e.value}):"minute"===e.unit?a(a({},t),{},{value:e.value,minute:e.value}):"second"===e.unit?a(a({},t),{},{value:e.value,minute:e.minute,second:e.second}):e}));return w.filter((function(e){var t=1,i=Math.ceil(r.globals.gridWidth/120),a=e.value;void 0!==r.config.xaxis.tickAmount&&(i=r.config.xaxis.tickAmount),w.length>i&&(t=Math.floor(w.length/i));var o=!1,s=!1;switch(n.tickInterval){case"years":"year"===e.unit&&(o=!0);break;case"half_year":t=7,"year"===e.unit&&(o=!0);break;case"months":t=1,"year"===e.unit&&(o=!0);break;case"months_fortnight":t=15,"year"!==e.unit&&"month"!==e.unit||(o=!0),30===a&&(s=!0);break;case"months_days":t=10,"month"===e.unit&&(o=!0),30===a&&(s=!0);break;case"week_days":t=8,"month"===e.unit&&(o=!0);break;case"days":t=1,"month"===e.unit&&(o=!0);break;case"hours":"day"===e.unit&&(o=!0);break;case"minutes_fives":case"seconds_fives":a%5!=0&&(s=!0);break;case"seconds_tens":a%10!=0&&(s=!0)}if("hours"===n.tickInterval||"minutes_fives"===n.tickInterval||"seconds_tens"===n.tickInterval||"seconds_fives"===n.tickInterval){if(!s)return!0}else if((a%t==0||o)&&!s)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var n=this.w,r=this.formatDates(e),i=this.removeOverlappingTS(r);n.globals.timescaleLabels=i.slice(),new ue(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,n=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case n>15:this.tickInterval="minutes_fives";break;case n>5:this.tickInterval="minutes";break;case n>1:this.tickInterval="seconds_tens";break;case 60*n>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,n=e.currentMonth,r=e.currentYear,i=e.daysWidthOnXAxis,a=e.numberOfYears,o=t.minYear,s=0,l=new M(this.ctx),c="year";if(t.minDate>1||t.minMonth>0){var u=l.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);s=(l.determineDaysOfYear(t.minYear)-u+1)*i,o=t.minYear+1,this.timeScaleArray.push({position:s,value:o,unit:c,year:o,month:w.monthMod(n+1)})}else 1===t.minDate&&0===t.minMonth&&this.timeScaleArray.push({position:s,value:o,unit:c,year:r,month:w.monthMod(n+1)});for(var d=o,h=s,f=0;f1){l=(c.determineDaysOfMonths(r+1,t.minYear)-n+1)*a,s=w.monthMod(r+1);var h=i+d,f=w.monthMod(s),p=s;0===s&&(u="year",p=h,f=1,h+=d+=1),this.timeScaleArray.push({position:l,value:p,unit:u,year:h,month:f})}else this.timeScaleArray.push({position:l,value:s,unit:u,year:i,month:w.monthMod(r)});for(var m=s+1,g=l,v=0,b=1;vo.determineDaysOfMonths(t+1,n)?(c=1,s="month",h=t+=1,t):t},d=(24-t.minHour)*i,h=l,f=u(c,n,r);0===t.minHour&&1===t.minDate?(d=0,h=w.monthMod(t.minMonth),s="month",c=t.minDate):1!==t.minDate&&0===t.minHour&&0===t.minMinute&&(d=0,l=t.minDate,h=l,f=u(c=l,n,r)),this.timeScaleArray.push({position:d,value:h,unit:s,year:this._getYear(r,f,0),month:w.monthMod(f),day:c});for(var p=d,m=0;ms.determineDaysOfMonths(t+1,i)&&(m=1,t+=1),{month:t,date:m}},u=function(e,t){return e>s.determineDaysOfMonths(t+1,i)?t+=1:t},d=60-(t.minMinute+t.minSecond/60),h=d*a,f=t.minHour+1,p=f;60===d&&(h=0,p=f=t.minHour);var m=n;p>=24&&(p=0,m+=1,l="day");var g=c(m,r).month;g=u(m,g),this.timeScaleArray.push({position:h,value:f,unit:l,day:m,hour:p,year:i,month:w.monthMod(g)}),p++;for(var v=h,b=0;b=24&&(p=0,l="day",g=c(m+=1,g).month,g=u(m,g));var y=this._getYear(i,g,0);v=60*a+v;var x=0===p?m:p;this.timeScaleArray.push({position:v,value:x,unit:l,hour:p,day:m,year:y,month:w.monthMod(g)}),p++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,r=e.currentMinute,i=e.currentHour,a=e.currentDate,o=e.currentMonth,s=e.currentYear,l=e.minutesWidthOnXAxis,c=e.secondsWidthOnXAxis,u=e.numberOfMinutes,d=r+1,h=a,f=o,p=s,m=i,g=(60-n-t/1e3)*c,v=0;v=60&&(d=0,24===(m+=1)&&(m=0)),this.timeScaleArray.push({position:g,value:d,unit:"minute",hour:m,minute:d,day:h,year:this._getYear(p,f,0),month:w.monthMod(f)}),g+=l,d++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,r=e.currentMinute,i=e.currentHour,a=e.currentDate,o=e.currentMonth,s=e.currentYear,l=e.secondsWidthOnXAxis,c=e.numberOfSeconds,u=n+1,d=r,h=a,f=o,p=s,m=i,g=(1e3-t)/1e3*l,v=0;v=60&&(u=0,++d>=60&&(d=0,24===++m&&(m=0))),this.timeScaleArray.push({position:g,value:u,unit:"second",hour:m,minute:d,second:u,day:h,year:this._getYear(p,f,0),month:w.monthMod(f)}),g+=l,u++}},{key:"createRawDateString",value:function(e,t){var n=e.year;return 0===e.month&&(e.month=1),n+="-"+("0"+e.month.toString()).slice(-2),"day"===e.unit?n+="day"===e.unit?"-"+("0"+t).slice(-2):"-01":n+="-"+("0"+(e.day?e.day:"1")).slice(-2),"hour"===e.unit?n+="hour"===e.unit?"T"+("0"+t).slice(-2):"T00":n+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),"minute"===e.unit?n+=":"+("0"+t).slice(-2):n+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),"second"===e.unit?n+=":"+("0"+t).slice(-2):n+=":00",this.utc&&(n+=".000Z"),n}},{key:"formatDates",value:function(e){var t=this,n=this.w;return e.map((function(e){var r=e.value.toString(),i=new M(t.ctx),a=t.createRawDateString(e,r),o=i.getDate(i.parseDate(a));if(t.utc||(o=i.getDate(i.parseDateWithTimezone(a))),void 0===n.config.xaxis.labels.format){var s="dd MMM",l=n.config.xaxis.labels.datetimeFormatter;"year"===e.unit&&(s=l.year),"month"===e.unit&&(s=l.month),"day"===e.unit&&(s=l.day),"hour"===e.unit&&(s=l.hour),"minute"===e.unit&&(s=l.minute),"second"===e.unit&&(s=l.second),r=i.formatDate(o,s)}else r=i.formatDate(o,n.config.xaxis.labels.format);return{dateString:a,position:e.position,value:r,unit:e.unit,year:e.year,month:e.month}}))}},{key:"removeOverlappingTS",value:function(e){var t,n=this,r=new A(this.ctx),i=!1;e.length>0&&e[0].value&&e.every((function(t){return t.value.length===e[0].value.length}))&&(i=!0,t=r.getTextRects(e[0].value).width);var a=0,o=e.map((function(o,s){if(s>0&&n.w.config.xaxis.labels.hideOverlappingLabels){var l=i?t:r.getTextRects(e[a].value).width,c=e[a].position;return o.position>c+l+10?(a=s,o):null}return o}));return o.filter((function(e){return null!==e}))}},{key:"_getYear",value:function(e,t,n){return e+Math.floor(t/12)+n}}]),e}(),Ue=function(){function e(t,n){s(this,e),this.ctx=n,this.w=n.w,this.el=t}return c(e,[{key:"setupElements",value:function(){var e=this.w.globals,t=this.w.config,n=t.chart.type;e.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(n)>-1,e.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(n)>-1,e.isBarHorizontal=("bar"===t.chart.type||"rangeBar"===t.chart.type||"boxPlot"===t.chart.type)&&t.plotOptions.bar.horizontal,e.chartClass=".apexcharts"+e.chartID,e.dom.baseEl=this.el,e.dom.elWrap=document.createElement("div"),A.setAttrs(e.dom.elWrap,{id:e.chartClass.substring(1),class:"apexcharts-canvas "+e.chartClass.substring(1)}),this.el.appendChild(e.dom.elWrap),e.dom.Paper=new window.SVG.Doc(e.dom.elWrap),e.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(t.chart.offsetX,", ").concat(t.chart.offsetY,")")}),e.dom.Paper.node.style.background="dark"!==t.theme.mode||t.chart.background?"light"!==t.theme.mode||t.chart.background?t.chart.background:"#fff":"#424242",this.setSVGDimensions(),e.dom.elLegendForeign=document.createElementNS(e.SVGNS,"foreignObject"),A.setAttrs(e.dom.elLegendForeign,{x:0,y:0,width:e.svgWidth,height:e.svgHeight}),e.dom.elLegendWrap=document.createElement("div"),e.dom.elLegendWrap.classList.add("apexcharts-legend"),e.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),e.dom.elLegendForeign.appendChild(e.dom.elLegendWrap),e.dom.Paper.node.appendChild(e.dom.elLegendForeign),e.dom.elGraphical=e.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),e.dom.elDefs=e.dom.Paper.defs(),e.dom.Paper.add(e.dom.elGraphical),e.dom.elGraphical.add(e.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var n=this.w,r=n.config,i=n.globals,a={series:[],i:[]},o={series:[],i:[]},s={series:[],i:[]},l={series:[],i:[]},c={series:[],i:[]},u={series:[],i:[]},d={series:[],i:[]},h={series:[],i:[]},f={series:[],seriesRangeEnd:[],i:[]},p=void 0!==r.chart.type?r.chart.type:"line",m=null,g=0;i.series.forEach((function(t,r){var v=e[r].type||p;switch(v){case"column":case"bar":c.series.push(t),c.i.push(r),n.globals.columnSeries=c;break;case"area":o.series.push(t),o.i.push(r);break;case"line":a.series.push(t),a.i.push(r);break;case"scatter":s.series.push(t),s.i.push(r);break;case"bubble":l.series.push(t),l.i.push(r);break;case"candlestick":u.series.push(t),u.i.push(r);break;case"boxPlot":d.series.push(t),d.i.push(r);break;case"rangeBar":h.series.push(t),h.i.push(r);break;case"rangeArea":f.series.push(i.seriesRangeStart[r]),f.seriesRangeEnd.push(i.seriesRangeEnd[r]),f.i.push(r);break;case"heatmap":case"treemap":case"pie":case"donut":case"polarArea":case"radialBar":case"radar":m=v;break;default:console.warn("You have specified an unrecognized series type (",v,").")}p!==v&&"scatter"!==v&&g++})),g>0&&(null!==m&&console.warn("Chart or series type ",m," can not appear with other chart or series types."),c.series.length>0&&r.plotOptions.bar.horizontal&&(g-=c.length,c={series:[],i:[]},n.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),i.comboCharts||(i.comboCharts=g>0);var b=new He(this.ctx,t),y=new Te(this.ctx,t);this.ctx.pie=new Ce(this.ctx);var w=new Ee(this.ctx);this.ctx.rangeBar=new Pe(this.ctx,t);var x=new De(this.ctx),_=[];if(i.comboCharts){var A,S,T=new k(this.ctx);if(o.series.length>0&&(A=_).push.apply(A,v(T.drawSeriesByGroup(o,i.areaGroups,"area",b))),c.series.length>0)if(n.config.chart.stacked){var M=new Se(this.ctx,t);_.push(M.draw(c.series,c.i))}else this.ctx.bar=new ke(this.ctx,t),_.push(this.ctx.bar.draw(c.series,c.i));if(f.series.length>0&&_.push(b.draw(f.series,"rangeArea",f.i,f.seriesRangeEnd)),a.series.length>0&&(S=_).push.apply(S,v(T.drawSeriesByGroup(a,i.lineGroups,"line",b))),u.series.length>0&&_.push(y.draw(u.series,"candlestick",u.i)),d.series.length>0&&_.push(y.draw(d.series,"boxPlot",d.i)),h.series.length>0&&_.push(this.ctx.rangeBar.draw(h.series,h.i)),s.series.length>0){var O=new He(this.ctx,t,!0);_.push(O.draw(s.series,"scatter",s.i))}if(l.series.length>0){var L=new He(this.ctx,t,!0);_.push(L.draw(l.series,"bubble",l.i))}}else switch(r.chart.type){case"line":_=b.draw(i.series,"line");break;case"area":_=b.draw(i.series,"area");break;case"bar":r.chart.stacked?_=new Se(this.ctx,t).draw(i.series):(this.ctx.bar=new ke(this.ctx,t),_=this.ctx.bar.draw(i.series));break;case"candlestick":_=new Te(this.ctx,t).draw(i.series,"candlestick");break;case"boxPlot":_=new Te(this.ctx,t).draw(i.series,r.chart.type);break;case"rangeBar":_=this.ctx.rangeBar.draw(i.series);break;case"rangeArea":_=b.draw(i.seriesRangeStart,"rangeArea",void 0,i.seriesRangeEnd);break;case"heatmap":_=new Oe(this.ctx,t).draw(i.series);break;case"treemap":_=new ze(this.ctx,t).draw(i.series);break;case"pie":case"donut":case"polarArea":_=this.ctx.pie.draw(i.series);break;case"radialBar":_=w.draw(i.series);break;case"radar":_=x.draw(i.series);break;default:_=b.draw(i.series)}return _}},{key:"setSVGDimensions",value:function(){var e=this.w.globals,t=this.w.config;t.chart.width||(t.chart.width="100%"),t.chart.height||(t.chart.height="auto"),e.svgWidth=t.chart.width,e.svgHeight=t.chart.height;var n=w.getDimensions(this.el),r=t.chart.width.toString().split(/[0-9]+/g).pop();"%"===r?w.isNumber(n[0])&&(0===n[0].width&&(n=w.getDimensions(this.el.parentNode)),e.svgWidth=n[0]*parseInt(t.chart.width,10)/100):"px"!==r&&""!==r||(e.svgWidth=parseInt(t.chart.width,10));var i=String(t.chart.height).toString().split(/[0-9]+/g).pop();if("auto"!==e.svgHeight&&""!==e.svgHeight)if("%"===i){var a=w.getDimensions(this.el.parentNode);e.svgHeight=a[1]*parseInt(t.chart.height,10)/100}else e.svgHeight=parseInt(t.chart.height,10);else e.axisCharts?e.svgHeight=e.svgWidth/1.61:e.svgHeight=e.svgWidth/1.2;if(e.svgWidth<0&&(e.svgWidth=0),e.svgHeight<0&&(e.svgHeight=0),A.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),"%"!==i){var o=t.chart.sparkline.enabled?0:e.axisCharts?t.chart.parentHeightOffset:0;e.dom.Paper.node.parentNode.parentNode.style.minHeight=e.svgHeight+o+"px"}e.dom.elWrap.style.width=e.svgWidth+"px",e.dom.elWrap.style.height=e.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,n={transform:"translate("+e.translateX+", "+t+")"};A.setAttrs(e.dom.elGraphical.node,n)}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=0,r=e.config.chart.sparkline.enabled?1:15;r+=e.config.grid.padding.bottom,"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||!e.config.legend.show||e.config.legend.floating||(n=new he(this.ctx).legendHelpers.getLegendDimensions().clwh+10);var i=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),a=2.05*e.globals.radialSize;if(i&&!e.config.chart.sparkline.enabled&&0!==e.config.plotOptions.radialBar.startAngle){var o=w.getBoundingClientRect(i);a=o.bottom;var s=o.bottom-o.top;a=Math.max(2.05*e.globals.radialSize,s)}var l=a+t.translateY+n+r;t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",l),e.config.chart.height&&String(e.config.chart.height).indexOf("%")>0||(t.dom.elWrap.style.height=l+"px",A.setAttrs(t.dom.Paper.node,{height:l}),t.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px")}},{key:"coreCalculations",value:function(){new K(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map((function(e){return[]}))},n=new H,r=this.w.globals;n.initGlobalVars(r),r.seriesXvalues=t(),r.seriesYvalues=t()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var e=null,t=this.w;if(t.globals.axisCharts){if("back"===t.config.xaxis.crosshairs.position&&new ne(this.ctx).drawXCrosshairs(),"back"===t.config.yaxis[0].crosshairs.position&&new ne(this.ctx).drawYCrosshairs(),"datetime"===t.config.xaxis.type&&void 0===t.config.xaxis.labels.formatter){this.ctx.timeScale=new Ve(this.ctx);var n=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?n=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(n=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(n)}e=new k(this.ctx).getCalculatedRatios()}return e}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.w;if(t.config.chart.brush.enabled&&"function"!=typeof t.config.chart.events.selection){var n=Array.isArray(t.config.chart.brush.targets)?t.config.chart.brush.targets:[t.config.chart.brush.target];n.forEach((function(t){var n=ApexCharts.getChartByID(t);n.w.globals.brushSource=e.ctx,"function"!=typeof n.w.config.chart.events.zoomed&&(n.w.config.chart.events.zoomed=function(){e.updateSourceChart(n)}),"function"!=typeof n.w.config.chart.events.scrolled&&(n.w.config.chart.events.scrolled=function(){e.updateSourceChart(n)})})),t.config.chart.events.selection=function(e,t){n.forEach((function(e){ApexCharts.getChartByID(e).ctx.updateHelpers._updateOptions({xaxis:{min:t.xaxis.min,max:t.xaxis.max}},!1,!1,!1,!1)}))}}}}]),e}(),Xe=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"_updateOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((function(s){var l=[t.ctx];i&&(l=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(l=[t.ctx],t.ctx.w.globals.isExecCalled=!1),l.forEach((function(i,c){var u=i.w;if(u.globals.shouldAnimate=r,n||(u.globals.resized=!0,u.globals.dataChanged=!0,r&&i.series.getPreviousPaths()),e&&"object"===o(e)&&(i.config=new F(e),e=k.extendArrayProps(i.config,e,u),i.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,u.config=w.extend(u.config,e),a&&(u.globals.lastXAxis=e.xaxis?w.clone(e.xaxis):[],u.globals.lastYAxis=e.yaxis?w.clone(e.yaxis):[],u.globals.initialConfig=w.extend({},u.config),u.globals.initialSeries=w.clone(u.config.series),e.series))){for(var d=0;d2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(i){var a,o=n.w;return o.globals.shouldAnimate=t,o.globals.dataChanged=!0,t&&n.ctx.series.getPreviousPaths(),o.globals.axisCharts?(0===(a=e.map((function(e,t){return n._extendSeries(e,t)}))).length&&(a=[{data:[]}]),o.config.series=a):o.config.series=e.slice(),r&&(o.globals.initialConfig.series=w.clone(o.config.series),o.globals.initialSeries=w.clone(o.config.series)),n.ctx.update().then((function(){i(n.ctx)}))}))}},{key:"_extendSeries",value:function(e,t){var n=this.w,r=n.config.series[t];return a(a({},n.config.series[t]),{},{name:e.name?e.name:null==r?void 0:r.name,color:e.color?e.color:null==r?void 0:r.color,type:e.type?e.type:null==r?void 0:r.type,group:e.group?e.group:null==r?void 0:r.group,data:e.data?e.data:null==r?void 0:r.data,zIndex:void 0!==e.zIndex?e.zIndex:t})}},{key:"toggleDataPointSelection",value:function(e,t){var n=this.w,r=null,i=".apexcharts-series[data\\:realIndex='".concat(e,"']");return n.globals.axisCharts?r=n.globals.dom.Paper.select("".concat(i," path[j='").concat(t,"'], ").concat(i," circle[j='").concat(t,"'], ").concat(i," rect[j='").concat(t,"']")).members[0]:void 0===t&&(r=n.globals.dom.Paper.select("".concat(i," path[j='").concat(e,"']")).members[0],"pie"!==n.config.chart.type&&"polarArea"!==n.config.chart.type&&"donut"!==n.config.chart.type||this.ctx.pie.pieClicked(e)),r?(new A(this.ctx).pathMouseDown(r,null),r.node?r.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach((function(n){void 0!==e.xaxis[n]&&(t.config.xaxis[n]=e.xaxis[n],t.globals.lastXAxis[n]=e.xaxis[n])})),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var n=new R(e);e=n.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&"100%"===e.chart.stackType&&(Array.isArray(e.yaxis)?e.yaxis.forEach((function(t,n){e.yaxis[n].min=0,e.yaxis[n].max=100})):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,n=this.w,r=n.globals.lastXAxis,i=n.globals.lastYAxis;e&&e.xaxis&&(r=e.xaxis),e&&e.yaxis&&(i=e.yaxis),n.config.xaxis.min=r.min,n.config.xaxis.max=r.max;var a=function(e){void 0!==i[e]&&(n.config.yaxis[e].min=i[e].min,n.config.yaxis[e].max=i[e].max)};n.config.yaxis.map((function(e,r){n.globals.zoomed||void 0!==i[r]?a(r):void 0!==t.ctx.opts.yaxis[r]&&(e.min=t.ctx.opts.yaxis[r].min,e.max=t.ctx.opts.yaxis[r].max)}))}}]),e}();Be="undefined"!=typeof window?window:void 0,Ne=function(e,t){var n=(void 0!==this?this:e).SVG=function(e){if(n.supported)return e=new n.Doc(e),n.parser.draw||n.prepare(),e};if(n.ns="http://www.w3.org/2000/svg",n.xmlns="http://www.w3.org/2000/xmlns/",n.xlink="http://www.w3.org/1999/xlink",n.svgjs="http://svgjs.dev",n.supported=!0,!n.supported)return!1;n.did=1e3,n.eid=function(e){return"Svgjs"+d(e)+n.did++},n.create=function(e){var n=t.createElementNS(this.ns,e);return n.setAttribute("id",this.eid(e)),n},n.extend=function(){var e,t;t=(e=[].slice.call(arguments)).pop();for(var r=e.length-1;r>=0;r--)if(e[r])for(var i in t)e[r].prototype[i]=t[i];n.Set&&n.Set.inherit&&n.Set.inherit()},n.invent=function(e){var t="function"==typeof e.create?e.create:function(){this.constructor.call(this,n.create(e.create))};return e.inherit&&(t.prototype=new e.inherit),e.extend&&n.extend(t,e.extend),e.construct&&n.extend(e.parent||n.Container,e.construct),t},n.adopt=function(t){return t?t.instance?t.instance:((r="svg"==t.nodeName?t.parentNode instanceof e.SVGElement?new n.Nested:new n.Doc:"linearGradient"==t.nodeName?new n.Gradient("linear"):"radialGradient"==t.nodeName?new n.Gradient("radial"):n[d(t.nodeName)]?new(n[d(t.nodeName)]):new n.Element(t)).type=t.nodeName,r.node=t,t.instance=r,r instanceof n.Doc&&r.namespace().defs(),r.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),r):null;var r},n.prepare=function(){var e=t.getElementsByTagName("body")[0],r=(e?new n.Doc(e):n.adopt(t.documentElement).nested()).size(2,0);n.parser={body:e||t.documentElement,draw:r.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:r.polyline().node,path:r.path().node,native:n.create("svg")}},n.parser={native:n.create("svg")},t.addEventListener("DOMContentLoaded",(function(){n.parser.draw||n.prepare()}),!1),n.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},n.utils={map:function(e,t){for(var n=e.length,r=[],i=0;i1?1:e,new n.Color({r:~~(this.r+(this.destination.r-this.r)*e),g:~~(this.g+(this.destination.g-this.g)*e),b:~~(this.b+(this.destination.b-this.b)*e)})):this}}),n.Color.test=function(e){return e+="",n.regex.isHex.test(e)||n.regex.isRgb.test(e)},n.Color.isRgb=function(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b},n.Color.isColor=function(e){return n.Color.isRgb(e)||n.Color.test(e)},n.Array=function(e,t){0==(e=(e||[]).valueOf()).length&&t&&(e=t.valueOf()),this.value=this.parse(e)},n.extend(n.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(e){return e=e.valueOf(),Array.isArray(e)?e:this.split(e)}}),n.PointArray=function(e,t){n.Array.call(this,e,t||[[0,0]])},n.PointArray.prototype=new n.Array,n.PointArray.prototype.constructor=n.PointArray;for(var r={M:function(e,t,n){return t.x=n.x=e[0],t.y=n.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},S:function(e,t){return t.x=e[2],t.y=e[3],["S",e[0],e[1],e[2],e[3]]},Z:function(e,t,n){return t.x=n.x,t.y=n.y,["Z"]}},i="mlhvqtcsaz".split(""),a=0,s=i.length;al);return a},bbox:function(){return n.parser.draw||n.prepare(),n.parser.path.setAttribute("d",this.toString()),n.parser.path.getBBox()}}),n.Number=n.invent({create:function(e,t){this.value=0,this.unit=t||"","number"==typeof e?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:"string"==typeof e?(t=e.match(n.regex.numberAndUnit))&&(this.value=parseFloat(t[1]),"%"==t[5]?this.value/=100:"s"==t[5]&&(this.value*=1e3),this.unit=t[5]):e instanceof n.Number&&(this.value=e.valueOf(),this.unit=e.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(e){return e=new n.Number(e),new n.Number(this+e,this.unit||e.unit)},minus:function(e){return e=new n.Number(e),new n.Number(this-e,this.unit||e.unit)},times:function(e){return e=new n.Number(e),new n.Number(this*e,this.unit||e.unit)},divide:function(e){return e=new n.Number(e),new n.Number(this/e,this.unit||e.unit)},to:function(e){var t=new n.Number(this);return"string"==typeof e&&(t.unit=e),t},morph:function(e){return this.destination=new n.Number(e),e.relative&&(this.destination.value+=this.value),this},at:function(e){return this.destination?new n.Number(this.destination).minus(this).times(e).plus(this):this}}}),n.Element=n.invent({create:function(e){this._stroke=n.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=e)&&(this.type=e.nodeName,this.node.instance=this,this._stroke=e.getAttribute("stroke")||this._stroke)},extend:{x:function(e){return this.attr("x",e)},y:function(e){return this.attr("y",e)},cx:function(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)},cy:function(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)},move:function(e,t){return this.x(e).y(t)},center:function(e,t){return this.cx(e).cy(t)},width:function(e){return this.attr("width",e)},height:function(e){return this.attr("height",e)},size:function(e,t){var r=f(this,e,t);return this.width(new n.Number(r.width)).height(new n.Number(r.height))},clone:function(e){this.writeDataToDom();var t=g(this.node.cloneNode(!0));return e?e.add(t):this.after(t),t},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(e){return this.after(e).remove(),e},addTo:function(e){return e.put(this)},putIn:function(e){return e.add(this)},id:function(e){return this.attr("id",e)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var e=this.attr("class");return null==e?[]:e.trim().split(n.regex.delimiter)},hasClass:function(e){return-1!=this.classes().indexOf(e)},addClass:function(e){if(!this.hasClass(e)){var t=this.classes();t.push(e),this.attr("class",t.join(" "))}return this},removeClass:function(e){return this.hasClass(e)&&this.attr("class",this.classes().filter((function(t){return t!=e})).join(" ")),this},toggleClass:function(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)},reference:function(e){return n.get(this.attr(e))},parent:function(t){var r=this;if(!r.node.parentNode)return null;if(r=n.adopt(r.node.parentNode),!t)return r;for(;r&&r.node instanceof e.SVGElement;){if("string"==typeof t?r.matches(t):r instanceof t)return r;if(!r.node.parentNode||"#document"==r.node.parentNode.nodeName)return null;r=n.adopt(r.node.parentNode)}},doc:function(){return this instanceof n.Doc?this:this.parent(n.Doc)},parents:function(e){var t=[],n=this;do{if(!(n=n.parent(e))||!n.node)break;t.push(n)}while(n.parent);return t},matches:function(e){return function(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}(this.node,e)},native:function(){return this.node},svg:function(e){var r=t.createElementNS("http://www.w3.org/2000/svg","svg");if(!(e&&this instanceof n.Parent))return r.appendChild(e=t.createElementNS("http://www.w3.org/2000/svg","svg")),this.writeDataToDom(),e.appendChild(this.node.cloneNode(!0)),r.innerHTML.replace(/^/,"").replace(/<\/svg>$/,"");r.innerHTML=""+e.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2>")+"";for(var i=0,a=r.firstChild.childNodes.length;i":function(e){return-Math.cos(e*Math.PI)/2+.5},">":function(e){return Math.sin(e*Math.PI/2)},"<":function(e){return 1-Math.cos(e*Math.PI/2)}},n.morph=function(e){return function(t,r){return new n.MorphObj(t,r).at(e)}},n.Situation=n.invent({create:function(e){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new n.Number(e.duration).valueOf(),this.delay=new n.Number(e.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=e.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),n.FX=n.invent({create:function(e){this._target=e,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(e,t,r){"object"===o(e)&&(t=e.ease,r=e.delay,e=e.duration);var i=new n.Situation({duration:e||1e3,delay:r||0,ease:n.easing[t||"-"]||t});return this.queue(i),this},target:function(e){return e&&e instanceof n.Element?(this._target=e,this):this._target},timeToAbsPos:function(e){return(e-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(e){return this.situation.duration/this._speed*e+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=e.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){e.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(e){return("function"==typeof e||e instanceof n.Situation)&&this.situations.push(e),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof n.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var e,t=this.situation;if(t.init)return this;for(var r in t.animations){e=this.target()[r](),Array.isArray(e)||(e=[e]),Array.isArray(t.animations[r])||(t.animations[r]=[t.animations[r]]);for(var i=e.length;i--;)t.animations[r][i]instanceof n.Number&&(e[i]=new n.Number(e[i])),t.animations[r][i]=e[i].morph(t.animations[r][i])}for(var r in t.attrs)t.attrs[r]=new n.MorphObj(this.target().attr(r),t.attrs[r]);for(var r in t.styles)t.styles[r]=new n.MorphObj(this.target().style(r),t.styles[r]);return t.initialTransformation=this.target().matrixify(),t.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(e,t){var n=this.active;return this.active=!1,t&&this.clearQueue(),e&&this.situation&&(!n&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(e){var t=this.last();return this.target().on("finished.fx",(function n(r){r.detail.situation==t&&(e.call(this,t),this.off("finished.fx",n))})),this._callStart()},during:function(e){var t=this.last(),r=function(r){r.detail.situation==t&&e.call(this,r.detail.pos,n.morph(r.detail.pos),r.detail.eased,t)};return this.target().off("during.fx",r).on("during.fx",r),this.after((function(){this.off("during.fx",r)})),this._callStart()},afterAll:function(e){var t=function t(n){e.call(this),this.off("allfinished.fx",t)};return this.target().off("allfinished.fx",t).on("allfinished.fx",t),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(e,t,n){return this.last()[n||"animations"][e]=t,this._callStart()},step:function(e){var t,n,r;e||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(t=Math.max(this.absPos,0),n=Math.floor(t),!0===this.situation.loops||nthis.lastPos&&a<=i&&(this.situation.once[a].call(this.target(),this.pos,i),delete this.situation.once[a]);return this.active&&this.target().fire("during",{pos:this.pos,eased:i,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=i,this):this},eachAt:function(){var e,t=this,r=this.target(),i=this.situation;for(var a in i.animations)e=[].concat(i.animations[a]).map((function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e})),r[a].apply(r,e);for(var a in i.attrs)e=[a].concat(i.attrs[a]).map((function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e})),r.attr.apply(r,e);for(var a in i.styles)e=[a].concat(i.styles[a]).map((function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e})),r.style.apply(r,e);if(i.transforms.length){e=i.initialTransformation,a=0;for(var o=i.transforms.length;a=0;--r)this[b[r]]=null!=e[b[r]]?e[b[r]]:t[b[r]]},extend:{extract:function(){var e=p(this,0,1);p(this,1,0);var t=180/Math.PI*Math.atan2(e.y,e.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(t*Math.PI/180)+this.f*Math.sin(t*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(t*Math.PI/180)+this.e*Math.sin(-t*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new n.Matrix(this)}},clone:function(){return new n.Matrix(this)},morph:function(e){return this.destination=new n.Matrix(e),this},multiply:function(e){return new n.Matrix(this.native().multiply(function(e){return e instanceof n.Matrix||(e=new n.Matrix(e)),e}(e).native()))},inverse:function(){return new n.Matrix(this.native().inverse())},translate:function(e,t){return new n.Matrix(this.native().translate(e||0,t||0))},native:function(){for(var e=n.parser.native.createSVGMatrix(),t=b.length-1;t>=0;t--)e[b[t]]=this[b[t]];return e},toString:function(){return"matrix("+v(this.a)+","+v(this.b)+","+v(this.c)+","+v(this.d)+","+v(this.e)+","+v(this.f)+")"}},parent:n.Element,construct:{ctm:function(){return new n.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof n.Nested){var e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new n.Matrix(t)}return new n.Matrix(this.node.getScreenCTM())}}}),n.Point=n.invent({create:function(e,t){var n;n=Array.isArray(e)?{x:e[0],y:e[1]}:"object"===o(e)?{x:e.x,y:e.y}:null!=e?{x:e,y:null!=t?t:e}:{x:0,y:0},this.x=n.x,this.y=n.y},extend:{clone:function(){return new n.Point(this)},morph:function(e,t){return this.destination=new n.Point(e,t),this}}}),n.extend(n.Element,{point:function(e,t){return new n.Point(e,t).transform(this.screenCTM().inverse())}}),n.extend(n.Element,{attr:function(e,t,r){if(null==e){for(e={},r=(t=this.node.attributes).length-1;r>=0;r--)e[t[r].nodeName]=n.regex.isNumber.test(t[r].nodeValue)?parseFloat(t[r].nodeValue):t[r].nodeValue;return e}if("object"===o(e))for(var i in e)this.attr(i,e[i]);else if(null===t)this.node.removeAttribute(e);else{if(null==t)return null==(t=this.node.getAttribute(e))?n.defaults.attrs[e]:n.regex.isNumber.test(t)?parseFloat(t):t;"stroke-width"==e?this.attr("stroke",parseFloat(t)>0?this._stroke:null):"stroke"==e&&(this._stroke=t),"fill"!=e&&"stroke"!=e||(n.regex.isImage.test(t)&&(t=this.doc().defs().image(t,0,0)),t instanceof n.Image&&(t=this.doc().defs().pattern(0,0,(function(){this.add(t)})))),"number"==typeof t?t=new n.Number(t):n.Color.isColor(t)?t=new n.Color(t):Array.isArray(t)&&(t=new n.Array(t)),"leading"==e?this.leading&&this.leading(t):"string"==typeof r?this.node.setAttributeNS(r,e,t.toString()):this.node.setAttribute(e,t.toString()),!this.rebuild||"font-size"!=e&&"x"!=e||this.rebuild(e,t)}return this}}),n.extend(n.Element,{transform:function(e,t){var r;return"object"!==o(e)?(r=new n.Matrix(this).extract(),"string"==typeof e?r[e]:r):(r=new n.Matrix(this),t=!!t||!!e.relative,null!=e.a&&(r=t?r.multiply(new n.Matrix(e)):new n.Matrix(e)),this.attr("transform",r))}}),n.extend(n.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(n.regex.transforms).slice(0,-1).map((function(e){var t=e.trim().split("(");return[t[0],t[1].split(n.regex.delimiter).map((function(e){return parseFloat(e)}))]})).reduce((function(e,t){return"matrix"==t[0]?e.multiply(m(t[1])):e[t[0]].apply(e,t[1])}),new n.Matrix)},toParent:function(e){if(this==e)return this;var t=this.screenCTM(),n=e.screenCTM().inverse();return this.addTo(e).untransform().transform(n.multiply(t)),this},toDoc:function(){return this.toParent(this.doc())}}),n.Transformation=n.invent({create:function(e,t){if(arguments.length>1&&"boolean"!=typeof t)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(e))for(var n=0,r=this.arguments.length;n=0},index:function(e){return[].slice.call(this.node.childNodes).indexOf(e.node)},get:function(e){return n.adopt(this.node.childNodes[e])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(e,t){for(var r=this.children(),i=0,a=r.length;i=0;r--)t.childNodes[r]instanceof e.SVGElement&&g(t.childNodes[r]);return n.adopt(t).id(n.eid(t.nodeName))}function v(e){return Math.abs(e)>1e-37?e:0}["fill","stroke"].forEach((function(e){var t={};t[e]=function(t){if(void 0===t)return this;if("string"==typeof t||n.Color.isRgb(t)||t&&"function"==typeof t.fill)this.attr(e,t);else for(var r=l[e].length-1;r>=0;r--)null!=t[l[e][r]]&&this.attr(l.prefix(e,l[e][r]),t[l[e][r]]);return this},n.extend(n.Element,n.FX,t)})),n.extend(n.Element,n.FX,{translate:function(e,t){return this.transform({x:e,y:t})},matrix:function(e){return this.attr("transform",new n.Matrix(6==arguments.length?[].slice.call(arguments):e))},opacity:function(e){return this.attr("opacity",e)},dx:function(e){return this.x(new n.Number(e).plus(this instanceof n.FX?0:this.x()),!0)},dy:function(e){return this.y(new n.Number(e).plus(this instanceof n.FX?0:this.y()),!0)}}),n.extend(n.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(e){return this.node.getPointAtLength(e)}}),n.Set=n.invent({create:function(e){Array.isArray(e)?this.members=e:this.clear()},extend:{add:function(){for(var e=[].slice.call(arguments),t=0,n=e.length;t-1&&this.members.splice(t,1),this},each:function(e){for(var t=0,n=this.members.length;t=0},index:function(e){return this.members.indexOf(e)},get:function(e){return this.members[e]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(e){return new n.Set(e)}}}),n.FX.Set=n.invent({create:function(e){this.set=e}}),n.Set.inherit=function(){var e=[];for(var t in n.Shape.prototype)"function"==typeof n.Shape.prototype[t]&&"function"!=typeof n.Set.prototype[t]&&e.push(t);for(var t in e.forEach((function(e){n.Set.prototype[e]=function(){for(var t=0,r=this.members.length;t=0;e--)delete this.memory()[arguments[e]];return this},memory:function(){return this._memory||(this._memory={})}}),n.get=function(e){var r=t.getElementById(function(e){var t=(e||"").toString().match(n.regex.reference);if(t)return t[1]}(e)||e);return n.adopt(r)},n.select=function(e,r){return new n.Set(n.utils.map((r||t).querySelectorAll(e),(function(e){return n.adopt(e)})))},n.extend(n.Parent,{select:function(e){return n.select(e,this.node)}});var b="abcdef".split("");if("function"!=typeof e.CustomEvent){var y=function(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var r=t.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r};y.prototype=e.Event.prototype,n.CustomEvent=y}else n.CustomEvent=e.CustomEvent;return n},r=function(){return Ne(Be,Be.document)}.call(t,n,t,e),void 0!==r&&(e.exports=r), /*! svg.filter.js - v2.0.2 - 2016-02-24 * https://github.com/wout/svg.filter.js * Copyright (c) 2016 Wout Fierens; Licensed MIT */ function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(e,t){return this.add(e,t),!e.attr("in")&&this.autoSetIn&&e.attr("in",this.source),e.attr("result")||e.attr("result",e),e},blend:function(e,t,n){return this.put(new SVG.BlendEffect(e,t,n))},colorMatrix:function(e,t){return this.put(new SVG.ColorMatrixEffect(e,t))},convolveMatrix:function(e){return this.put(new SVG.ConvolveMatrixEffect(e))},componentTransfer:function(e){return this.put(new SVG.ComponentTransferEffect(e))},composite:function(e,t,n){return this.put(new SVG.CompositeEffect(e,t,n))},flood:function(e,t){return this.put(new SVG.FloodEffect(e,t))},offset:function(e,t){return this.put(new SVG.OffsetEffect(e,t))},image:function(e){return this.put(new SVG.ImageEffect(e))},merge:function(){var e=[void 0];for(var t in arguments)e.push(arguments[t]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,e)))},gaussianBlur:function(e,t){return this.put(new SVG.GaussianBlurEffect(e,t))},morphology:function(e,t){return this.put(new SVG.MorphologyEffect(e,t))},diffuseLighting:function(e,t,n){return this.put(new SVG.DiffuseLightingEffect(e,t,n))},displacementMap:function(e,t,n,r,i){return this.put(new SVG.DisplacementMapEffect(e,t,n,r,i))},specularLighting:function(e,t,n,r){return this.put(new SVG.SpecularLightingEffect(e,t,n,r))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(e,t,n,r,i){return this.put(new SVG.TurbulenceEffect(e,t,n,r,i))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(e){var t=this.put(new SVG.Filter);return"function"==typeof e&&e.call(t,t),t}}),SVG.extend(SVG.Container,{filter:function(e){return this.defs().filter(e)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(e){return this.filterer=e instanceof SVG.Element?e:this.doc().filter(e),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(e){return this.filterer&&!0===e&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}});var e={blend:function(e,t){return this.parent()&&this.parent().blend(this,e,t)},colorMatrix:function(e,t){return this.parent()&&this.parent().colorMatrix(e,t).in(this)},convolveMatrix:function(e){return this.parent()&&this.parent().convolveMatrix(e).in(this)},componentTransfer:function(e){return this.parent()&&this.parent().componentTransfer(e).in(this)},composite:function(e,t){return this.parent()&&this.parent().composite(this,e,t)},flood:function(e,t){return this.parent()&&this.parent().flood(e,t)},offset:function(e,t){return this.parent()&&this.parent().offset(e,t).in(this)},image:function(e){return this.parent()&&this.parent().image(e)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(e,t){return this.parent()&&this.parent().gaussianBlur(e,t).in(this)},morphology:function(e,t){return this.parent()&&this.parent().morphology(e,t).in(this)},diffuseLighting:function(e,t,n){return this.parent()&&this.parent().diffuseLighting(e,t,n).in(this)},displacementMap:function(e,t,n,r){return this.parent()&&this.parent().displacementMap(this,e,t,n,r)},specularLighting:function(e,t,n,r){return this.parent()&&this.parent().specularLighting(e,t,n,r).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(e,t,n,r,i){return this.parent()&&this.parent().turbulence(e,t,n,r,i).in(this)}};SVG.extend(SVG.Effect,e),SVG.extend(SVG.ParentEffect,e),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){this.attr("in",e)}}});var t={blend:function(e,t,n){this.attr({in:e,in2:t,mode:n||"normal"})},colorMatrix:function(e,t){"matrix"==e&&(t=i(t)),this.attr({type:e,values:void 0===t?null:t})},convolveMatrix:function(e){e=i(e),this.attr({order:Math.sqrt(e.split(" ").length),kernelMatrix:e})},composite:function(e,t,n){this.attr({in:e,in2:t,operator:n})},flood:function(e,t){this.attr("flood-color",e),null!=t&&this.attr("flood-opacity",t)},offset:function(e,t){this.attr({dx:e,dy:t})},image:function(e){this.attr("href",e,SVG.xlink)},displacementMap:function(e,t,n,r,i){this.attr({in:e,in2:t,scale:n,xChannelSelector:r,yChannelSelector:i})},gaussianBlur:function(e,t){null!=e||null!=t?this.attr("stdDeviation",function(e){if(!Array.isArray(e))return e;for(var t=0,n=e.length,r=[];t1&&(O*=r=Math.sqrt(r),L*=r),i=(new SVG.Matrix).rotate(C).scale(1/O,1/L).rotate(-C),j=j.transform(i),I=I.transform(i),a=[I.x-j.x,I.y-j.y],s=a[0]*a[0]+a[1]*a[1],o=Math.sqrt(s),a[0]/=o,a[1]/=o,l=s<4?Math.sqrt(1-s/4):0,D===E&&(l*=-1),c=new SVG.Point((I.x+j.x)/2+l*-a[1],(I.y+j.y)/2+l*a[0]),u=new SVG.Point(j.x-c.x,j.y-c.y),d=new SVG.Point(I.x-c.x,I.y-c.y),h=Math.acos(u.x/Math.sqrt(u.x*u.x+u.y*u.y)),u.y<0&&(h*=-1),f=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(f*=-1),E&&h>f&&(f+=2*Math.PI),!E&&ha.maxX-t.width&&(o=(r=a.maxX-t.width)-this.startPoints.box.x),null!=a.minY&&ia.maxY-t.height&&(s=(i=a.maxY-t.height)-this.startPoints.box.y),null!=a.snapToGrid&&(r-=r%a.snapToGrid,i-=i%a.snapToGrid,o-=o%a.snapToGrid,s-=s%a.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:o,y:s},!0):this.el.move(r,i));return n},e.prototype.end=function(e){var t=this.drag(e);this.el.fire("dragend",{event:e,p:t,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(t,n){"function"!=typeof t&&"object"!=typeof t||(n=t,t=!0);var r=this.remember("_draggable")||new e(this);return(t=void 0===t||t)?r.init(n||{},t):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function e(e){this.el=e,e.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(e,t,n){var r="string"!=typeof e?e:t[e];return n?r/2:r},this.pointCoords=function(e,t){var n=this.pointsList[e];return{x:this.pointCoord(n[0],t,"t"===e||"b"===e),y:this.pointCoord(n[1],t,"r"===e||"l"===e)}}}e.prototype.init=function(e,t){var n=this.el.bbox();this.options={};var r=this.el.selectize.defaults.points;for(var i in this.el.selectize.defaults)this.options[i]=this.el.selectize.defaults[i],void 0!==t[i]&&(this.options[i]=t[i]);var a=["points","pointsExclude"];for(var i in a){var o=this.options[a[i]];"string"==typeof o?o=o.length>0?o.split(/\s*,\s*/i):[]:"boolean"==typeof o&&"points"===a[i]&&(o=o?r:[]),this.options[a[i]]=o}this.options.points=[r,this.options.points].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)>-1}))})),this.options.points=[this.options.points,this.options.pointsExclude].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)<0}))})),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(n.x,n.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(e):this.selectRect(e),this.observe(),this.cleanup()},e.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},e.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map((function(t){return[t[0]-e.x,t[1]-e.y]}))},e.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),n=0,r=t.length;n0&&this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-n[0]);n=this.checkAspectRatio(n),this.el.move(this.parameters.box.x+n[0],this.parameters.box.y+n[1]).size(this.parameters.box.width-n[0],this.parameters.box.height-n[1])}};break;case"rt":this.calc=function(e,t){var n=this.snapToGrid(e,t,2);if(this.parameters.box.width+n[0]>0&&this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+n[0]);n=this.checkAspectRatio(n,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+n[1]).size(this.parameters.box.width+n[0],this.parameters.box.height-n[1])}};break;case"rb":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.width+n[0]>0&&this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+n[0]);n=this.checkAspectRatio(n),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+n[0],this.parameters.box.height+n[1])}};break;case"lb":this.calc=function(e,t){var n=this.snapToGrid(e,t,1);if(this.parameters.box.width-n[0]>0&&this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-n[0]);n=this.checkAspectRatio(n,!0),this.el.move(this.parameters.box.x+n[0],this.parameters.box.y).size(this.parameters.box.width-n[0],this.parameters.box.height+n[1])}};break;case"t":this.calc=function(e,t){var n=this.snapToGrid(e,t,2);if(this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+n[1]).height(this.parameters.box.height-n[1])}};break;case"r":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.width+n[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+n[0])}};break;case"b":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+n[1])}};break;case"l":this.calc=function(e,t){var n=this.snapToGrid(e,t,1);if(this.parameters.box.width-n[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+n[0],this.parameters.box.y).width(this.parameters.box.width-n[0])}};break;case"rot":this.calc=function(e,t){var n=e+this.parameters.p.x,r=t+this.parameters.p.y,i=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),a=Math.atan2(r-this.parameters.box.y-this.parameters.box.height/2,n-this.parameters.box.x-this.parameters.box.width/2),o=this.parameters.rotation+180*(a-i)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(o-o%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(e,t){var n=this.snapToGrid(e,t,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),r=this.el.array().valueOf();r[this.parameters.i][0]=this.parameters.pointCoords[0]+n[0],r[this.parameters.i][1]=this.parameters.pointCoords[1]+n[1],this.el.plot(r)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:e}),SVG.on(window,"touchmove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"touchend.resize",(function(){t.done()})),SVG.on(window,"mousemove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"mouseup.resize",(function(){t.done()}))},e.prototype.update=function(e){if(e){var t=this._extractPosition(e),n=this.transformPoint(t.x,t.y),r=n.x-this.parameters.p.x,i=n.y-this.parameters.p.y;this.lastUpdateCall=[r,i],this.calc(r,i),this.el.fire("resizing",{dx:r,dy:i,event:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},e.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},e.prototype.snapToGrid=function(e,t,n,r){var i;return void 0!==r?i=[(n+e)%this.options.snapToGrid,(r+t)%this.options.snapToGrid]:(n=null==n?3:n,i=[(this.parameters.box.x+e+(1&n?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&n?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(i[0]-=this.options.snapToGrid),t<0&&(i[1]-=this.options.snapToGrid),e-=Math.abs(i[0])o.maxX&&(e=o.maxX-i),void 0!==o.minY&&a+to.maxY&&(t=o.maxY-a),[e,t]},e.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var n=e.slice(),r=this.parameters.box.width/this.parameters.box.height,i=this.parameters.box.width+e[0],a=this.parameters.box.height-e[1],o=i/a;return or&&(n[0]=this.parameters.box.width-a*r,t&&(n[0]=-n[0])),n},SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new e(this)).init(t||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),void 0===window.Apex&&(window.Apex={});var Ge=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new x(this.ctx),this.ctx.axes=new te(this.ctx),this.ctx.core=new Ue(this.ctx.el,this.ctx),this.ctx.config=new F({}),this.ctx.data=new U(this.ctx),this.ctx.grid=new q(this.ctx),this.ctx.graphics=new A(this.ctx),this.ctx.coreUtils=new k(this.ctx),this.ctx.crosshairs=new ne(this.ctx),this.ctx.events=new J(this.ctx),this.ctx.exports=new X(this.ctx),this.ctx.localization=new ee(this.ctx),this.ctx.options=new P,this.ctx.responsive=new re(this.ctx),this.ctx.series=new V(this.ctx),this.ctx.theme=new ie(this.ctx),this.ctx.formatters=new O(this.ctx),this.ctx.titleSubtitle=new ae(this.ctx),this.ctx.legend=new he(this.ctx),this.ctx.toolbar=new fe(this.ctx),this.ctx.tooltip=new xe(this.ctx),this.ctx.dimensions=new ue(this.ctx),this.ctx.updateHelpers=new Xe(this.ctx),this.ctx.zoomPanSelection=new pe(this.ctx),this.ctx.w.globals.tooltip=new xe(this.ctx)}}]),e}(),qe=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each((function(e,t){this.removeClass("*"),this.off(),this.stop()}),!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,n=e.isUpdating,r=this.w.globals.dom.Paper.node;r.parentNode&&r.parentNode.parentNode&&!n&&(r.parentNode.parentNode.style.minHeight="unset");var i=this.w.globals.dom.baseEl;i&&this.ctx.eventList.forEach((function(e){i.removeEventListener(e,t.ctx.events.documentEvent)}));var a=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(a.Paper),a.Paper.remove(),a.elWrap=null,a.elGraphical=null,a.elLegendWrap=null,a.elLegendForeign=null,a.baseEl=null,a.elGridRect=null,a.elGridRectMask=null,a.elGridRectMarkerMask=null,a.elForecastMask=null,a.elNonForecastMask=null,a.elDefs=null}}]),e}(),Qe=new WeakMap,Ke=function(){function e(t,n){s(this,e),this.opts=n,this.ctx=this,this.w=new B(n).init(),this.el=t,this.w.globals.cuid=w.randomId(),this.w.globals.chartID=this.w.config.chart.id?w.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Ge(this).initModules(),this.create=w.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return c(e,[{key:"render",value:function(){var e=this;return new Promise((function(t,n){if(null!==e.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var r=e.w.config.chart.events.beforeMount;"function"==typeof r&&r(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(e,t){var n=!1;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var r=e.getBoundingClientRect();"none"!==e.style.display&&0!==r.width||(n=!0)}var i=new ResizeObserver((function(r){n&&t.call(e,r),n=!0}));e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(e.children).forEach((function(e){return i.observe(e)})):i.observe(e),Qe.set(t,i)}(e.el.parentNode,e.parentResizeHandler);var i=e.el.getRootNode&&e.el.getRootNode(),a=w.is("ShadowRoot",i),o=e.el.ownerDocument,s=a?i.getElementById("apexcharts-css"):o.getElementById("apexcharts-css");if(!s){var l;(s=document.createElement("style")).id="apexcharts-css",s.textContent='@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacity: 1\n }\n}\n\n@keyframes resizeanim {\n\n 0%,\n to {\n opacity: 0\n }\n}\n\n.apexcharts-canvas {\n position: relative;\n user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, .5);\n box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)\n}\n\n.apexcharts-inner {\n position: relative\n}\n\n.apexcharts-text tspan {\n font-family: inherit\n}\n\nrect.legend-mouseover-inactive,\n.legend-mouseover-inactive rect,\n.legend-mouseover-inactive path,\n.legend-mouseover-inactive circle,\n.legend-mouseover-inactive line,\n.legend-mouseover-inactive text.apexcharts-yaxis-title-text,\n.legend-mouseover-inactive text.apexcharts-yaxis-label {\n transition: .15s ease all;\n opacity: .2\n}\n\n.apexcharts-legend-text {\n padding-left: 15px;\n margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, .96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30, 30, 30, .8)\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #eceff1;\n border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, .7);\n border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n margin-left: 5px;\n font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-z-value:empty,\n.apexcharts-tooltip-title:empty {\n display: none\n}\n\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0;\n margin-right: 10px;\n border-radius: 50%\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px\n}\n\n.apexcharts-tooltip-series-group-hidden {\n opacity: 0;\n height: 0;\n line-height: 0;\n padding: 0 !important\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,\n.apexcharts-tooltip-box {\n padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: 700;\n display: block;\n margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,\n.apexcharts-yaxistooltip {\n opacity: 0;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #eceff1;\n border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n padding: 9px 10px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0\n}\n\n.apexcharts-selection-rect {\n cursor: move\n}\n\n.svg_select_boundingRect,\n.svg_select_points_rot {\n pointer-events: none;\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_boundingRect,\n.apexcharts-selection-rect+g .svg_select_points_rot {\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_points_l,\n.apexcharts-selection-rect+g .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible\n}\n\n.svg_select_points {\n fill: #efefef;\n stroke: #333;\n rx: 2\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-menu-icon,\n.apexcharts-pan-icon,\n.apexcharts-reset-icon,\n.apexcharts-selection-icon,\n.apexcharts-toolbar-custom-icon,\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6e8192;\n text-align: center\n}\n\n.apexcharts-menu-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg {\n fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n fill: #333\n}\n\n.apexcharts-menu-icon,\n.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px\n}\n\n.apexcharts-menu-icon,\n.apexcharts-reset-icon,\n.apexcharts-zoom-icon {\n transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n transform: scale(.62);\n position: relative;\n left: 1px;\n top: 0\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6e8192;\n stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0 6px 2px;\n display: flex;\n justify-content: space-between;\n align-items: center\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: .15s ease all;\n pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0, 0, 0, .7);\n color: #fff\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,\n.apexcharts-datalabel.apexcharts-element-hidden,\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-hidden-element-shown {\n opacity: 1;\n transition: 0.25s ease all;\n}\n\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value,\n.apexcharts-datalabels,\n.apexcharts-pie-label {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n cursor: pointer;\n}\n\n.apexcharts-annotation-rect,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-gridline,\n.apexcharts-line,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-point-annotation-label,\n.apexcharts-radar-series path:not(.apexcharts-marker),\n.apexcharts-radar-series polygon,\n.apexcharts-toolbar svg,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-xaxis-annotation-label,\n.apexcharts-yaxis-annotation-label,\n.apexcharts-zoom-rect {\n pointer-events: none\n}\n\n.apexcharts-tooltip-active .apexcharts-marker {\n transition: .15s ease all\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n height: 100%;\n width: 100%;\n overflow: hidden\n}\n\n.contract-trigger:before,\n.resize-triggers,\n.resize-triggers>div {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0\n}\n\n.resize-triggers>div {\n height: 100%;\n width: 100%;\n background: #eee;\n overflow: auto\n}\n\n.contract-trigger:before {\n overflow: hidden;\n width: 200%;\n height: 200%\n}\n\n.apexcharts-bar-goals-markers {\n pointer-events: none\n}\n\n.apexcharts-bar-shadows {\n pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers {\n pointer-events: none\n}';var c=(null===(l=e.opts.chart)||void 0===l?void 0:l.nonce)||e.w.config.chart.nonce;c&&s.setAttribute("nonce",c),a?i.prepend(s):o.head.appendChild(s)}var u=e.create(e.w.config.series,{});if(!u)return t(e);e.mount(u).then((function(){"function"==typeof e.w.config.chart.events.mounted&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(u)})).catch((function(e){n(e)}))}else n(new Error("Element not found"))}))}},{key:"create",value:function(e,t){var n=this.w;new Ge(this).initModules();var r=this.w.globals;if(r.noData=!1,r.animationEnded=!1,this.responsive.checkResponsiveConfig(t),n.config.xaxis.convertedCatToNumeric&&new R(n.config).convertCatToNumericXaxis(n.config,this.ctx),null===this.el)return r.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===n.config.chart.type&&(n.config.grid.show=!1,n.config.yaxis[0].show=!1),0===r.svgWidth)return r.animationEnded=!0,null;var i=k.checkComboSeries(e,n.config.chart.type);r.comboCharts=i.comboCharts,r.comboBarCount=i.comboBarCount;var a=e.every((function(e){return e.data&&0===e.data.length}));(0===e.length||a&&r.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new z(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),r.noData&&r.collapsedSeries.length!==r.series.length&&!n.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),r.axisCharts&&(this.core.coreCalculations(),"category"!==n.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=n.globals.minX,this.ctx.toolbar.maxX=n.globals.maxX),this.formatters.heatmapLabelFormatters(),new k(this).getLargestMarkerSize(),this.dimensions.plotCoords();var o=this.core.xySettings();this.grid.createGridMask();var s=this.core.plotChartType(e,o),l=new $(this);return l.bringForward(),n.config.dataLabels.background.enabled&&l.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:s,xyRatios:o,dimensions:{plot:{left:n.globals.translateX,top:n.globals.translateY,width:n.globals.gridWidth,height:n.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this,r=n.w;return new Promise((function(i,a){if(null===n.el)return a(new Error("Not enough data to display or target element not found"));(null===t||r.globals.allSeriesCollapsed)&&n.series.handleNoData(),n.grid=new q(n);var o,s,l=n.grid.drawGrid();if(n.annotations=new Y(n),n.annotations.drawImageAnnos(),n.annotations.drawTextAnnos(),"back"===r.config.grid.position&&(l&&r.globals.dom.elGraphical.add(l.el),null!=l&&null!==(o=l.elGridBorders)&&void 0!==o&&o.node&&r.globals.dom.elGraphical.add(l.elGridBorders)),Array.isArray(t.elGraph))for(var c=0;c0&&r.globals.memory.methodsToExec.forEach((function(e){e.method(e.params,!1,e.context)})),r.globals.axisCharts||r.globals.noData||n.core.resizeNonAxisCharts(),i(n)}))}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=Qe.get(e))&&(t.disconnect(),Qe.delete(e));var n=this.w.config.chart.id;n&&Apex._chartInstances.forEach((function(e,t){e.id===w.escapeString(n)&&Apex._chartInstances.splice(t,1)})),new qe(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=this.w;return o.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map((function(e,n){return t.updateHelpers._extendSeries(e,n)}))),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),o.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,n,r,i,a)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,n)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.w.config.series.slice();return r.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(r,t,n)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;n.w.globals.dataChanged=!0,n.series.getPreviousPaths();for(var r=n.w.config.series.slice(),i=0;i0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addXaxisAnnotationExternal(e,t,r)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addYaxisAnnotationExternal(e,t,r)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addPointAnnotationExternal(e,t,r)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=this;t&&(n=t),n.annotations.removeAnnotation(n,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new K(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new K(this.ctx).getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new X(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new X(this.ctx).exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout((function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()}),150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;"function"==typeof e&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=w.escapeString(e);if(Apex._chartInstances){var n=Apex._chartInstances.filter((function(e){return e.id===t}))[0];return n&&n.chart}}},{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),n=0;n2?i-2:0),o=2;o=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){d.headers[e]=r.merge(s)})),e.exports=d},8507:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},4679:function(e){e.exports={version:"0.26.1"}},5955:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},5431:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},6298:function(e,t,n){"use strict";var r=n(4679).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};function o(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var r=Object.keys(e),i=r.length;while(i-- >0){var a=r[i],o=t[a];if(o){var s=e[a],l=void 0===s||o(s,a,e);if(!0!==l)throw new TypeError("option "+a+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+a)}}i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e.exports={assertOptions:o,validators:i}},6642:function(e,t,n){"use strict";n(3252),n(6461),n(2372);var r=n(5955),i=Object.prototype.toString;function a(e){return Array.isArray(e)}function o(e){return"undefined"===typeof e}function s(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===i.call(e)}function c(e){return"[object FormData]"===i.call(e)}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer),t}function d(e){return"string"===typeof e}function h(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function m(e){return"[object Date]"===i.call(e)}function g(e){return"[object File]"===i.call(e)}function v(e){return"[object Blob]"===i.call(e)}function b(e){return"[object Function]"===i.call(e)}function y(e){return f(e)&&b(e.pipe)}function w(e){return"[object URLSearchParams]"===i.call(e)}function x(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function _(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function A(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n0,m=(/msie|trident/.test(f),function(){var e=!1;if(c)try{var t={get passive(){e=!0}};u.addEventListener("test",t,t),u.removeEventListener("test",t,t)}catch(n){e=!1}return e}()),g=c&&("ontouchstart"in d.documentElement||h.maxTouchPoints>0),v=c&&Boolean(u.PointerEvent||u.MSPointerEvent),b=c&&"IntersectionObserver"in u&&"IntersectionObserverEntry"in u&&"intersectionRatio"in u.IntersectionObserverEntry.prototype,y="BvConfig",w="$bvConfig",x=["xs","sm","md","lg","xl"],_=/\[(\d+)]/g,A=/^(BV?)/,k=/^\d+$/,S=/^\..+/,T=/^#/,M=/^#[A-Za-z]+[\w\-:.]*$/,O=/(<([^>]+)>)/gi,L=/\B([A-Z])/g,C=/([a-z])([A-Z])/g,D=/^[0-9]*\.?[0-9]+$/,E=/\+/g,P=/[-/\\^$*+?.()|[\]{}]/g,Y=/[\s\uFEFF\xA0]+/g,j=/\s+/,I=/\/\*$/,R=/(\s|^)(\w)/g,F=/^\s+/,H=/_/g,B=/-(\w)/g,N=/^\d+-\d\d?-\d\d?(?:\s|T|$)/,z=/-|\s|T/,W=/^([0-1]?[0-9]|2[0-3]):[0-5]?[0-9](:[0-5]?[0-9])?$/,$=/^.*(#[^#]+)$/,V=/%2C/g,U=/[!'()*]/g,X=/^(\?|#|&)/,G=/^\d+(\.\d*)?[/:]\d+(\.\d*)?$/,q=/[/:]/,Q=/^col-/,K=/^BIcon/,Z=/-u-.+/;function J(e){return J="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},J(e)}function ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function te(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&ce(e,t)}function ne(e){var t=se();return function(){var n,r=ue(e);if(t){var i=ue(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return re(this,n)}}function re(e,t){if(t&&("object"===J(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ie(e)}function ie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ae(e){var t="function"===typeof Map?new Map:void 0;return ae=function(e){if(null===e||!le(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return oe(e,arguments,ue(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ce(n,e)},ae(e)}function oe(e,t,n){return oe=se()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),a=new i;return n&&ce(a,n.prototype),a},oe.apply(null,arguments)}function se(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(ei){return!1}}function le(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function ce(e,t){return ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ce(e,t)}function ue(e){return ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ue(e)}var de=i?u.Element:function(e){te(n,e);var t=ne(n);function n(){return ee(this,n),t.apply(this,arguments)}return n}(ae(Object)),he=i?u.HTMLElement:function(e){te(n,e);var t=ne(n);function n(){return ee(this,n),t.apply(this,arguments)}return n}(de),fe=i?u.SVGElement:function(e){te(n,e);var t=ne(n);function n(){return ee(this,n),t.apply(this,arguments)}return n}(de),pe=i?u.File:function(e){te(n,e);var t=ne(n);function n(){return ee(this,n),t.apply(this,arguments)}return n}(ae(Object));function me(e){return me="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},me(e)}var ge=function(e){return me(e)},ve=function(e){return Object.prototype.toString.call(e).slice(8,-1)},be=function(e){return void 0===e},ye=function(e){return null===e},we=function(e){return be(e)||ye(e)},xe=function(e){return"function"===ge(e)},_e=function(e){return"boolean"===ge(e)},Ae=function(e){return"string"===ge(e)},ke=function(e){return"number"===ge(e)},Se=function(e){return D.test(String(e))},Te=function(e){return Array.isArray(e)},Me=function(e){return null!==e&&"object"===me(e)},Oe=function(e){return"[object Object]"===Object.prototype.toString.call(e)},Le=function(e){return e instanceof Date},Ce=function(e){return e instanceof Event},De=function(e){return e instanceof pe},Ee=function(e){return"RegExp"===ve(e)},Pe=function(e){return!we(e)&&xe(e.then)&&xe(e.catch)};function Ye(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 je(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:t;return Te(t)?t.reduce((function(t,n){return[].concat(et(t),[e(n,n)])}),[]):Oe(t)?ze(t).reduce((function(n,r){return Ze(Ze({},n),{},Je({},r,e(t[r],t[r])))}),{}):n},st=function(e){return e},lt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(t=Te(t)?t.join("."):t,!t||!Me(e))return n;if(t in e)return e[t];t=String(t).replace(_,".$1");var r=t.split(".").filter(st);return 0===r.length?n:r.every((function(t){return Me(e)&&t in e&&!we(e=e[t])}))?e:ye(e)?null:n},ct=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=lt(e,t);return we(r)?n:r},ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n="undefined"!==typeof process&&process?{NODE_ENV:"production",BASE_URL:"/"}||0:{};return e?n[e]||t:n},dt=function(){return ut("BOOTSTRAP_VUE_NO_WARN")||"production"===ut("NODE_ENV")},ht=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;dt()||console.warn("[BootstrapVue warn]: ".concat(t?"".concat(t," - "):"").concat(e))},ft=function(e){return!c&&(ht("".concat(e,": Can not be called during SSR.")),!0)},pt=function(e){return!s&&(ht("".concat(e,": Requires Promise support.")),!0)},mt=function(e){return!l&&(ht("".concat(e,": Requires MutationObserver support.")),!0)};function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vt(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};if(Oe(t)){var n=Ne(t);n.forEach((function(n){var r=t[n];"breakpoints"===n?!Te(r)||r.length<2||r.some((function(e){return!Ae(e)||0===e.length}))?ht('"breakpoints" must be an array of at least 2 breakpoint names',y):e.$_config[n]=ot(r):Oe(r)&&(e.$_config[n]=Ne(r).reduce((function(e,t){return be(r[t])||(e[t]=ot(r[t])),e}),e.$_config[n]||{}))}))}}},{key:"resetConfig",value:function(){this.$_config={}}},{key:"getConfig",value:function(){return ot(this.$_config)}},{key:"getConfigValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return ot(lt(this.$_config,e,t))}}]),e}(),wt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r["default"];t.prototype[w]=r["default"].prototype[w]=t.prototype[w]||r["default"].prototype[w]||new yt,t.prototype[w].setConfig(e)};function xt(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 _t(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=e.directives,r=e.plugins,i=function e(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.installed||(e.installed=!0,kt(i),wt(a,i),Lt(i,t),Dt(i,n),Mt(i,r))};return i.installed=!1,i},Tt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _t(_t({},t),{},{install:St(e)})},Mt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in t)n&&t[n]&&e.use(t[n])},Ot=function(e,t,n){e&&t&&n&&e.component(t,n)},Lt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in t)Ot(e,n,t[n])},Ct=function(e,t,n){e&&t&&n&&e.directive(t.replace(/^VB/,"B"),n)},Dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in t)Ct(e,n,t[n])},Et="BAlert",Pt="BAspect",Yt="BAvatar",jt="BAvatarGroup",It="BBadge",Rt="BBreadcrumb",Ft="BBreadcrumbItem",Ht="BBreadcrumbLink",Bt="BButton",Nt="BButtonClose",zt="BButtonGroup",Wt="BButtonToolbar",$t="BCalendar",Vt="BCard",Ut="BCardBody",Xt="BCardFooter",Gt="BCardGroup",qt="BCardHeader",Qt="BCardImg",Kt="BCardImgLazy",Zt="BCardSubTitle",Jt="BCardText",en="BCardTitle",tn="BCarousel",nn="BCarouselSlide",rn="BCol",an="BCollapse",on="BContainer",sn="BDropdown",ln="BDropdownDivider",cn="BDropdownForm",un="BDropdownGroup",dn="BDropdownHeader",hn="BDropdownItem",fn="BDropdownItemButton",pn="BDropdownText",mn="BEmbed",gn="BForm",vn="BFormCheckbox",bn="BFormCheckboxGroup",yn="BFormDatalist",wn="BFormDatepicker",xn="BFormFile",_n="BFormGroup",An="BFormInput",kn="BFormInvalidFeedback",Sn="BFormRadio",Tn="BFormRadioGroup",Mn="BFormRating",On="BFormRow",Ln="BFormSelect",Cn="BFormSelectOption",Dn="BFormSelectOptionGroup",En="BFormSpinbutton",Pn="BFormTag",Yn="BFormTags",jn="BFormText",In="BFormTextarea",Rn="BFormTimepicker",Fn="BFormValidFeedback",Hn="BIcon",Bn="BIconBase",Nn="BImg",zn="BImgLazy",Wn="BInputGroup",$n="BInputGroupAddon",Vn="BInputGroupAppend",Un="BInputGroupPrepend",Xn="BInputGroupText",Gn="BJumbotron",qn="BLink",Qn="BListGroup",Kn="BListGroupItem",Zn="BMedia",Jn="BMediaAside",er="BMediaBody",tr="BModal",nr="BMsgBox",rr="BNav",ir="BNavbar",ar="BNavbarBrand",or="BNavbarNav",sr="BNavbarToggle",lr="BNavForm",cr="BNavItem",ur="BNavItemDropdown",dr="BNavText",hr="BOverlay",fr="BPagination",pr="BPaginationNav",mr="BPopover",gr="BProgress",vr="BProgressBar",br="BRow",yr="BSidebar",wr="BSkeleton",xr="BSkeletonIcon",_r="BSkeletonImg",Ar="BSkeletonTable",kr="BSkeletonWrapper",Sr="BSpinner",Tr="BTab",Mr="BTable",Or="BTableCell",Lr="BTableLite",Cr="BTableSimple",Dr="BTabs",Er="BTbody",Pr="BTfoot",Yr="BTh",jr="BThead",Ir="BTime",Rr="BToast",Fr="BToaster",Hr="BTooltip",Br="BTr",Nr="BVCollapse",zr="BVFormBtnLabelControl",Wr="BVFormRatingStar",$r="BVPopover",Vr="BVPopoverTemplate",Ur="BVPopper",Xr="BVTabButton",Gr="BVToastPop",qr="BVTooltip",Qr="BVTooltipTemplate",Kr="BVTransition",Zr="BVTransporter",Jr="BVTransporterTarget",ei=function(){return(ei=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ci(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function ui(e){return ui="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},ui(e)}var di="_uid",hi=r["default"].version.startsWith("3"),fi=hi?"ref_for":"refInFor",pi=["class","staticClass","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"],mi=r["default"].extend.bind(r["default"]);if(hi){var gi=r["default"].extend,vi=["router-link","transition","transition-group"],bi=r["default"].vModelDynamic.created,yi=r["default"].vModelDynamic.beforeUpdate;r["default"].vModelDynamic.created=function(e,t,n){bi.call(this,e,t,n),e._assign||(e._assign=function(){})},r["default"].vModelDynamic.beforeUpdate=function(e,t,n){yi.call(this,e,t,n),e._assign||(e._assign=function(){})},mi=function(e){if("object"===ui(e)&&e.render&&!e.__alreadyPatched){var t=e.render;e.__alreadyPatched=!0,e.render=function(n){var r=function(e,t,r){var i=void 0===r?[]:[Array.isArray(r)?r.filter(Boolean):r],a="string"===typeof e&&!vi.includes(e),o=t&&"object"===ui(t)&&!Array.isArray(t);if(!o)return n.apply(void 0,[e,t].concat(i));var s=t.attrs,l=t.props,c=li(t,["attrs","props"]),u=oi(oi({},c),{},{attrs:s,props:a?{}:l});return"router-link"!==e||u.slots||u.scopedSlots||(u.scopedSlots={$hasNormal:function(){}}),n.apply(void 0,[e,u].concat(i))};if(e.functional){var i,a,o=arguments[1],s=oi({},o);s.data={attrs:oi({},o.data.attrs||{}),props:oi({},o.data.props||{})},Object.keys(o.data||{}).forEach((function(e){pi.includes(e)?s.data[e]=o.data[e]:e in o.props?s.data.props[e]=o.data[e]:e.startsWith("on")||(s.data.attrs[e]=o.data[e])}));var l=["_ctx"],c=(null===(i=o.children)||void 0===i||null===(a=i.default)||void 0===a?void 0:a.call(i))||o.children;return c&&0===Object.keys(s.children).filter((function(e){return!l.includes(e)})).length?delete s.children:s.children=c,s.data.on=o.listeners,t.call(this,r,s)}return t.call(this,r)}}return gi.call(this,e)}.bind(r["default"])}var wi=r["default"].nextTick,xi="activate-tab",_i="blur",Ai="cancel",ki="change",Si="changed",Ti="click",Mi="close",Oi="context",Li="context-changed",Ci="destroyed",Di="disable",Ei="disabled",Pi="dismissed",Yi="dismiss-count-down",ji="enable",Ii="enabled",Ri="filtered",Fi="first",Hi="focus",Bi="focusin",Ni="focusout",zi="head-clicked",Wi="hidden",$i="hide",Vi="img-error",Ui="input",Xi="last",Gi="mouseenter",qi="mouseleave",Qi="next",Ki="ok",Zi="open",Ji="page-click",ea="paused",ta="prev",na="refresh",ra="refreshed",ia="remove",aa="row-clicked",oa="row-contextmenu",sa="row-dblclicked",la="row-hovered",ca="row-middle-clicked",ua="row-selected",da="row-unhovered",ha="selected",fa="show",pa="shown",ma="sliding-end",ga="sliding-start",va="sort-changed",ba="tag-state",ya="toggle",wa="unpaused",xa="update",_a=hi?"vnodeBeforeUnmount":"hook:beforeDestroy",Aa=hi?"vNodeUnmounted":"hook:destroyed",ka="update:",Sa="bv",Ta="::",Ma={passive:!0},Oa={passive:!0,capture:!1},La=void 0,Ca=Array,Da=Boolean,Ea=Date,Pa=Function,Ya=Number,ja=Object,Ia=RegExp,Ra=String,Fa=[Ca,Pa],Ha=[Ca,ja],Ba=[Ca,ja,Ra],Na=[Ca,Ra],za=[Da,Ya],Wa=[Da,Ya,Ra],$a=[Da,Ra],Va=[Ea,Ra],Ua=[Pa,Ra],Xa=[Ya,Ra],Ga=[Ya,ja,Ra],qa=[ja,Pa],Qa=[ja,Ra],Ka="add-button-text",Za="append",Ja="aside",eo="badge",to="bottom-row",no="button-content",ro="custom-foot",io="decrement",ao="default",oo="description",so="dismiss",lo="drop-placeholder",co="ellipsis-text",uo="empty",ho="emptyfiltered",fo="file-name",po="first",mo="first-text",go="footer",vo="header",bo="header-close",yo="icon-clear",wo="icon-empty",xo="icon-full",_o="icon-half",Ao="img",ko="increment",So="invalid-feedback",To="label",Mo="last-text",Oo="lead",Lo="loading",Co="modal-backdrop",Do="modal-cancel",Eo="modal-footer",Po="modal-header",Yo="modal-header-close",jo="modal-ok",Io="modal-title",Ro="nav-next-decade",Fo="nav-next-month",Ho="nav-next-year",Bo="nav-prev-decade",No="nav-prev-month",zo="nav-prev-year",Wo="nav-this-month",$o="next-text",Vo="overlay",Uo="page",Xo="placeholder",Go="prepend",qo="prev-text",Qo="row-details",Ko="table-busy",Zo="table-caption",Jo="table-colgroup",es="tabs-end",ts="tabs-start",ns="text",rs="thead-top",is="title",as="toast-title",os="top-row",ss="valid-feedback",ls=function(){return Array.from.apply(Array,arguments)},cs=function(e,t){return-1!==e.indexOf(t)},us=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=us(e).filter(st),e.some((function(e){return t[e]||n[e]}))},ms=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=us(e).filter(st);for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:ao,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.$scopedSlots,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$slots;return ps(e,t,n)},normalizeSlot:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ao,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$scopedSlots,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.$slots,i=ms(e,t,n,r);return i?us(i):i}}}),vs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,n=parseInt(e,10);return isNaN(n)?t:n},bs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,n=parseFloat(e);return isNaN(n)?t:n},ys=function(e,t){return bs(e).toFixed(vs(t,0))},ws=function(e){return e.replace(L,"-$1").toLowerCase()},xs=function(e){return e=ws(e).replace(B,(function(e,t){return t?t.toUpperCase():""})),e.charAt(0).toUpperCase()+e.slice(1)},_s=function(e){return e.replace(H," ").replace(C,(function(e,t,n){return t+" "+n})).replace(R,(function(e,t,n){return t+n.toUpperCase()}))},As=function(e){return e=Ae(e)?e.trim():String(e),e.charAt(0).toLowerCase()+e.slice(1)},ks=function(e){return e=Ae(e)?e.trim():String(e),e.charAt(0).toUpperCase()+e.slice(1)},Ss=function(e){return e.replace(P,"\\$&")},Ts=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return we(e)?"":Te(e)||Oe(e)&&e.toString===Object.prototype.toString?JSON.stringify(e,null,t):String(e)},Ms=function(e){return Ts(e).replace(F,"")},Os=function(e){return Ts(e).trim()},Ls=function(e){return Ts(e).toLowerCase()},Cs=de.prototype,Ds=["button","[href]:not(.disabled)","input","select","textarea","[tabindex]","[contenteditable]"].map((function(e){return"".concat(e,":not(:disabled):not([disabled])")})).join(", "),Es=Cs.matches||Cs.msMatchesSelector||Cs.webkitMatchesSelector,Ps=Cs.closest||function(e){var t=this;do{if(Us(t,e))return t;t=t.parentElement||t.parentNode}while(!ye(t)&&t.nodeType===Node.ELEMENT_NODE);return null},Ys=(u.requestAnimationFrame||u.webkitRequestAnimationFrame||u.mozRequestAnimationFrame||u.msRequestAnimationFrame||u.oRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(u),js=u.MutationObserver||u.WebKitMutationObserver||u.MozMutationObserver||null,Is=function(e){return e&&e.parentNode&&e.parentNode.removeChild(e)},Rs=function(e){return!(!e||e.nodeType!==Node.ELEMENT_NODE)},Fs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=d.activeElement;return t&&!e.some((function(e){return e===t}))?t:null},Hs=function(e,t){return Ts(e).toLowerCase()===Ts(t).toLowerCase()},Bs=function(e){return Rs(e)&&e===Fs()},Ns=function(e){if(!Rs(e)||!e.parentNode||!Gs(d.body,e))return!1;if("none"===al(e,"display"))return!1;var t=ol(e);return!!(t&&t.height>0&&t.width>0)},zs=function(e){return!Rs(e)||e.disabled||nl(e,"disabled")||Zs(e,"disabled")},Ws=function(e){return Rs(e)&&e.offsetHeight},$s=function(e,t){return ls((Rs(t)?t:d).querySelectorAll(e))},Vs=function(e,t){return(Rs(t)?t:d).querySelector(e)||null},Us=function(e,t){return!!Rs(e)&&Es.call(e,t)},Xs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!Rs(t))return null;var r=Ps.call(t,e);return n?r:r===t?null:r},Gs=function(e,t){return!(!e||!xe(e.contains))&&e.contains(t)},qs=function(e){return d.getElementById(/^#/.test(e)?e.slice(1):e)||null},Qs=function(e,t){t&&Rs(e)&&e.classList&&e.classList.add(t)},Ks=function(e,t){t&&Rs(e)&&e.classList&&e.classList.remove(t)},Zs=function(e,t){return!!(t&&Rs(e)&&e.classList)&&e.classList.contains(t)},Js=function(e,t,n){t&&Rs(e)&&e.setAttribute(t,n)},el=function(e,t){t&&Rs(e)&&e.removeAttribute(t)},tl=function(e,t){return t&&Rs(e)?e.getAttribute(t):null},nl=function(e,t){return t&&Rs(e)?e.hasAttribute(t):null},rl=function(e,t,n){t&&Rs(e)&&(e.style[t]=n)},il=function(e,t){t&&Rs(e)&&(e.style[t]="")},al=function(e,t){return t&&Rs(e)&&e.style[t]||null},ol=function(e){return Rs(e)?e.getBoundingClientRect():null},sl=function(e){var t=u.getComputedStyle;return t&&Rs(e)?t(e):{}},ll=function(){var e=u.getSelection;return e?u.getSelection():null},cl=function(e){var t={top:0,left:0};if(!Rs(e)||0===e.getClientRects().length)return t;var n=ol(e);if(n){var r=e.ownerDocument.defaultView;t.top=n.top+r.pageYOffset,t.left=n.left+r.pageXOffset}return t},ul=function(e){var t={top:0,left:0};if(!Rs(e))return t;var n={top:0,left:0},r=sl(e);if("fixed"===r.position)t=ol(e)||t;else{t=cl(e);var i=e.ownerDocument,a=e.offsetParent||i.documentElement;while(a&&(a===i.body||a===i.documentElement)&&"static"===sl(a).position)a=a.parentNode;if(a&&a!==e&&a.nodeType===Node.ELEMENT_NODE){n=cl(a);var o=sl(a);n.top+=bs(o.borderTopWidth,0),n.left+=bs(o.borderLeftWidth,0)}}return{top:t.top-n.top-bs(r.marginTop,0),left:t.left-n.left-bs(r.marginLeft,0)}},dl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return $s(Ds,e).filter(Ns).filter((function(e){return e.tabIndex>-1&&!e.disabled}))},hl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{e.focus(t)}catch(n){}return Bs(e)},fl=function(e){try{e.blur()}catch(t){}return!Bs(e)},pl=function(e){var t=Fe(null);return function(){for(var n=arguments.length,r=new Array(n),i=0;i1&&void 0!==arguments[1]?arguments[1]:void 0,n=ml[w];return n?n.getConfigValue(e,t):ot(t)},vl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return t?gl("".concat(e,".").concat(t),n):gl(e,{})},bl=function(){return gl("breakpoints",x)},yl=pl((function(){return bl()})),wl=function(){return ot(yl())},xl=pl((function(){var e=wl();return e[0]="",e}));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 Al(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:La,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=!0===n;return r=i?r:n,Al(Al(Al({},e?{type:e}:{}),i?{required:i}:be(t)?{}:{default:Me(t)?function(){return t}:t}),be(r)?{}:{validator:r})},Ll=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:st;if(Te(e))return e.map(t);var n={};for(var r in e)We(e,r)&&(n[t(r)]=Me(e[r])?Ve(e[r]):e[r]);return n},Cl=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st;return(Te(e)?e.slice():ze(e)).reduce((function(e,r){return e[n(r)]=t[r],e}),{})},Dl=function(e,t,n){return Al(Al({},ot(e)),{},{default:function(){var r=vl(n,t,e.default);return xe(r)?r():r}})},El=function(e,t){return ze(e).reduce((function(n,r){return Al(Al({},n),{},kl({},r,Dl(e[r],r,t)))}),{})},Pl=Dl({},"","").default.name,Yl=function(e){return xe(e)&&e.name&&e.name!==Pl};function jl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Il=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.type,r=void 0===n?La:n,i=t.defaultValue,a=void 0===i?void 0:i,o=t.validator,s=void 0===o?void 0:o,l=t.event,c=void 0===l?Ui:l,u=jl({},e,Ol(r,a,s)),d=mi({model:{prop:e,event:c},props:u});return{mixin:d,props:u,prop:e,event:c}},Rl=function(e){return m?Me(e)?e:{capture:!!e||!1}:!!(Me(e)?e.capture:e)},Fl=function(e,t,n,r){e&&e.addEventListener&&e.addEventListener(t,n,Rl(r))},Hl=function(e,t,n,r){e&&e.removeEventListener&&e.removeEventListener(t,n,Rl(r))},Bl=function(e){for(var t=e?Fl:Hl,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{},n=t.preventDefault,r=void 0===n||n,i=t.propagation,a=void 0===i||i,o=t.immediatePropagation,s=void 0!==o&&o;r&&e.preventDefault(),a&&e.stopPropagation(),s&&e.stopImmediatePropagation()},zl=function(e){return ws(e.replace(A,""))},Wl=function(e,t){return[Sa,zl(e),t].join(Ta)},$l=function(e,t){return[Sa,t,zl(e)].join(Ta)};function Vl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ul=El({ariaLabel:Ol(Ra,"Close"),content:Ol(Ra,"×"),disabled:Ol(Da,!1),textVariant:Ol(Ra)},Nt),Xl=mi({name:Nt,functional:!0,props:Ul,render:function(e,t){var n=t.props,r=t.data,i=t.slots,a=t.scopedSlots,o=i(),s=a||{},l={staticClass:"close",class:Vl({},"text-".concat(n.textVariant),n.textVariant),attrs:{type:"button",disabled:n.disabled,"aria-label":n.ariaLabel?String(n.ariaLabel):null},on:{click:function(e){n.disabled&&Ce(e)&&Nl(e)}}};return ps(ao,s,o)||(l.domProps={innerHTML:n.content}),e("button",ii(r,l),ms(ao,{},s,o))}});function Gl(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 ql(e){for(var t=1;t0?e:0)},dc=function(e){return""===e||!0===e||!(vs(e,0)<1)&&!!e},hc=El(qe(rc(rc({},sc),{},{dismissLabel:Ol(Ra,"Close"),dismissible:Ol(Da,!1),fade:Ol(Da,!1),variant:Ol(Ra,"info")})),Et),fc=mi({name:Et,mixins:[oc,gs],props:hc,data:function(){return{countDown:0,localShow:dc(this[lc])}},watch:(Kl={},ic(Kl,lc,(function(e){this.countDown=uc(e),this.localShow=dc(e)})),ic(Kl,"countDown",(function(e){var t=this;this.clearCountDownInterval();var n=this[lc];Se(n)&&(this.$emit(Yi,e),n!==e&&this.$emit(cc,e),e>0?(this.localShow=!0,this.$_countDownTimeout=setTimeout((function(){t.countDown--}),1e3)):this.$nextTick((function(){Ys((function(){t.localShow=!1}))})))})),ic(Kl,"localShow",(function(e){var t=this[lc];e||!this.dismissible&&!Se(t)||this.$emit(Pi),Se(t)||t===e||this.$emit(cc,e)})),Kl),created:function(){this.$_filterTimer=null;var e=this[lc];this.countDown=uc(e),this.localShow=dc(e)},beforeDestroy:function(){this.clearCountDownInterval()},methods:{dismiss:function(){this.clearCountDownInterval(),this.countDown=0,this.localShow=!1},clearCountDownInterval:function(){clearTimeout(this.$_countDownTimeout),this.$_countDownTimeout=null}},render:function(e){var t=e();if(this.localShow){var n=this.dismissible,r=this.variant,i=e();n&&(i=e(Xl,{attrs:{"aria-label":this.dismissLabel},on:{click:this.dismiss}},[this.normalizeSlot(so)])),t=e("div",{staticClass:"alert",class:ic({"alert-dismissible":n},"alert-".concat(r),r),attrs:{role:"alert","aria-live":"polite","aria-atomic":!0},key:this[di]},[i,this.normalizeSlot()])}return e(tc,{props:{noFade:!this.fade}},[t])}}),pc=Tt({components:{BAlert:fc}}),mc=Math.min,gc=Math.max,vc=Math.abs,bc=Math.ceil,yc=Math.floor,wc=Math.pow,xc=Math.round;function _c(e,t){return Mc(e)||Tc(e,t)||kc(e,t)||Ac()}function Ac(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function kc(e,t){if(e){if("string"===typeof e)return Sc(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)?Sc(e,t):void 0}}function Sc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,n=e.rel;return"_blank"===t&&ye(n)?"noopener":n||null},Wc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.href,n=e.to,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pc,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";if(t)return t;if(Bc(r))return null;if(Ae(n))return n||a;if(Oe(n)&&(n.path||n.query||n.hash)){var o=Ts(n.path),s=Rc(n.query),l=Ts(n.hash);return l=l&&"#"!==l.charAt(0)?"#".concat(l):l,"".concat(o).concat(s).concat(l)||a}return i};function $c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vc={viewBox:"0 0 16 16",width:"1em",height:"1em",focusable:"false",role:"img","aria-label":"icon"},Uc={width:null,height:null,focusable:null,role:null,"aria-label":null},Xc={animation:Ol(Ra),content:Ol(Ra),flipH:Ol(Da,!1),flipV:Ol(Da,!1),fontScale:Ol(Xa,1),rotate:Ol(Xa,0),scale:Ol(Xa,1),shiftH:Ol(Xa,0),shiftV:Ol(Xa,0),stacked:Ol(Da,!1),title:Ol(Ra),variant:Ol(Ra)},Gc=mi({name:Bn,functional:!0,props:Xc,render:function(e,t){var n,r=t.data,i=t.props,a=t.children,o=i.animation,s=i.content,l=i.flipH,c=i.flipV,u=i.stacked,d=i.title,h=i.variant,f=gc(bs(i.fontScale,1),0)||1,p=gc(bs(i.scale,1),0)||1,m=bs(i.rotate,0),g=bs(i.shiftH,0),v=bs(i.shiftV,0),b=l||c||1!==p,y=b||m,w=g||v,x=!we(s),_=[y?"translate(8 8)":null,b?"scale(".concat((l?-1:1)*p," ").concat((c?-1:1)*p,")"):null,m?"rotate(".concat(m,")"):null,y?"translate(-8 -8)":null].filter(st),A=e("g",{attrs:{transform:_.join(" ")||null},domProps:x?{innerHTML:s||""}:{}},a);w&&(A=e("g",{attrs:{transform:"translate(".concat(16*g/16," ").concat(-16*v/16,")")}},[A])),u&&(A=e("g",[A]));var k=d?e("title",d):null,S=[k,A].filter(st);return e("svg",ii({staticClass:"b-icon bi",class:(n={},$c(n,"text-".concat(h),h),$c(n,"b-icon-animation-".concat(o),o),n),attrs:Vc,style:u?{}:{fontSize:1===f?null:"".concat(100*f,"%")}},r,u?{attrs:Uc}:{},{attrs:{xmlns:u?null:"http://www.w3.org/2000/svg",fill:"currentColor"}}),S)}});function qc(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 Qc(e){for(var t=1;t'),nu=Jc("CalendarFill",''),ru=Jc("ChevronBarLeft",''),iu=Jc("ChevronDoubleLeft",''),au=Jc("ChevronDown",''),ou=Jc("ChevronLeft",''),su=Jc("ChevronUp",''),lu=Jc("CircleFill",''),cu=Jc("Clock",''),uu=Jc("ClockFill",''),du=Jc("Dash",''),hu=Jc("PersonFill",''),fu=Jc("Plus",''),pu=Jc("Star",''),mu=Jc("StarFill",''),gu=Jc("StarHalf",''),vu=Jc("X",'');function bu(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 yu(e){for(var t=1;t1?n-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(O,"")},th=function(e,t){return e?{innerHTML:e}:t?{textContent:t}:{}};function nh(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 rh(e){for(var t=1;t-1&&(t=t.slice(0,n).reverse(),hl(t[0]))},focusNext:function(e){var t=this.getItems(),n=t.indexOf(e.target);n>-1&&(t=t.slice(n+1),hl(t[0]))},focusLast:function(){var e=this.getItems().reverse();hl(e[0])},onFocusin:function(e){var t=this.$el;e.target!==t||Gs(t,e.relatedTarget)||(Nl(e),this.focusFirst(e))},onKeydown:function(e){var t=e.keyCode,n=e.shiftKey;t===Ru||t===Eu?(Nl(e),n?this.focusFirst(e):this.focusPrev(e)):t!==Mu&&t!==ju||(Nl(e),n?this.focusLast(e):this.focusNext(e))}},render:function(e){var t=this.keyNav;return e("div",{staticClass:"btn-toolbar",class:{"justify-content-between":this.justify},attrs:{role:"toolbar",tabindex:t?"0":null},on:t?{focusin:this.onFocusin,keydown:this.onKeydown}:{}},[this.normalizeSlot()])}}),Sh=Tt({components:{BButtonToolbar:kh,BBtnToolbar:kh}}),Th="gregory",Mh="long",Oh="narrow",Lh="short",Ch="2-digit",Dh="numeric";function Eh(e,t){return Rh(e)||Ih(e,t)||Yh(e,t)||Ph()}function Ph(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Yh(e,t){if(e){if("string"===typeof e)return jh(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)?jh(e,t):void 0}}function jh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:Th;e=us(e).filter(st);var n=new Intl.DateTimeFormat(e,{calendar:t});return n.resolvedOptions().locale},Uh=function(e,t){var n=new Intl.DateTimeFormat(e,t);return n.format},Xh=function(e,t){return $h(e)===$h(t)},Gh=function(e){return e=zh(e),e.setDate(1),e},qh=function(e){return e=zh(e),e.setMonth(e.getMonth()+1),e.setDate(0),e},Qh=function(e,t){e=zh(e);var n=e.getMonth();return e.setFullYear(e.getFullYear()+t),e.getMonth()!==n&&e.setDate(0),e},Kh=function(e){e=zh(e);var t=e.getMonth();return e.setMonth(t-1),e.getMonth()===t&&e.setDate(0),e},Zh=function(e){e=zh(e);var t=e.getMonth();return e.setMonth(t+1),e.getMonth()===(t+2)%12&&e.setDate(0),e},Jh=function(e){return Qh(e,-1)},ef=function(e){return Qh(e,1)},tf=function(e){return Qh(e,-10)},nf=function(e){return Qh(e,10)},rf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e=Wh(e),t=Wh(t)||e,n=Wh(n)||e,e?en?n:e:null},af=["ar","az","ckb","fa","he","ks","lrc","mzn","ps","sd","te","ug","ur","yi"].map((function(e){return e.toLowerCase()})),of=function(e){var t=Ts(e).toLowerCase().replace(Z,"").split("-"),n=t.slice(0,2).join("-"),r=t[0];return cs(af,n)||cs(af,r)},sf={id:Ol(Ra)},lf=mi({props:sf,data:function(){return{localId_:null}},computed:{safeId:function(){var e=this.id||this.localId_,t=function(t){return e?(t=String(t||"").replace(/\s+/g,"_"),t?e+"_"+t:e):null};return t}},mounted:function(){var e=this;this.$nextTick((function(){e.localId_="__BVID__".concat(e[di])}))}});function cf(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 uf(e){for(var t=1;tt}},dateDisabled:function(){var e=this,t=this.dateOutOfRange;return function(n){n=Wh(n);var r=$h(n);return!(!t(n)&&!e.computedDateDisabledFn(r,n))}},formatDateString:function(){return Uh(this.calendarLocale,uf(uf({year:Dh,month:Ch,day:Ch},this.dateFormatOptions),{},{hour:void 0,minute:void 0,second:void 0,calendar:Th}))},formatYearMonth:function(){return Uh(this.calendarLocale,{year:Dh,month:Mh,calendar:Th})},formatWeekdayName:function(){return Uh(this.calendarLocale,{weekday:Mh,calendar:Th})},formatWeekdayNameShort:function(){return Uh(this.calendarLocale,{weekday:this.weekdayHeaderFormat||Lh,calendar:Th})},formatDay:function(){var e=new Intl.NumberFormat([this.computedLocale],{style:"decimal",minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return function(t){return e.format(t.getDate())}},prevDecadeDisabled:function(){var e=this.computedMin;return this.disabled||e&&qh(tf(this.activeDate))e},nextYearDisabled:function(){var e=this.computedMax;return this.disabled||e&&Gh(ef(this.activeDate))>e},nextDecadeDisabled:function(){var e=this.computedMax;return this.disabled||e&&Gh(nf(this.activeDate))>e},calendar:function(){for(var e=[],t=this.calendarFirstDay,n=t.getFullYear(),r=t.getMonth(),i=this.calendarDaysInMonth,a=t.getDay(),o=(this.computedWeekStarts>a?7:0)-this.computedWeekStarts,s=0-o-a,l=0;l<6&&s0);n!==this.visible&&(this.visible=n,this.callback(n),this.once&&this.visible&&(this.doneOnce=!0,this.stop()))}},{key:"stop",value:function(){this.observer&&this.observer.disconnect(),this.observer=null}}]),e}(),lp=function(e){var t=e[op];t&&t.stop&&t.stop(),delete e[op]},cp=function(e,t){var n=t.value,r=t.modifiers,i={margin:"0px",once:!1,callback:n};ze(r).forEach((function(e){k.test(e)?i.margin="".concat(e,"px"):"once"===e.toLowerCase()&&(i.once=!0)})),lp(e),e[op]=new sp(e,i),e[op]._prevModifiers=Ve(r)},up=function(e,t,n){var r=t.value,i=t.oldValue,a=t.modifiers;a=Ve(a),!e||r===i&&e[op]&&Hu(a,e[op]._prevModifiers)||cp(e,{value:r,modifiers:a},n)},dp=function(e){lp(e)},hp={bind:cp,componentUpdated:up,unbind:dp};function fp(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 pp(e){for(var t=1;t0||i.removedNodes.length>0))&&(n=!0)}n&&t()}));return r.observe(e,Pp({childList:!0,subtree:!0},n)),r};function Rp(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 Fp(e){for(var t=1;t0),touchStartX:0,touchDeltaX:0}},computed:{numSlides:function(){return this.slides.length}},watch:(jp={},Hp(jp,Wp,(function(e,t){e!==t&&this.setSlide(vs(e,0))})),Hp(jp,"interval",(function(e,t){e!==t&&(e?(this.pause(!0),this.start(!1)):this.pause(!1))})),Hp(jp,"isPaused",(function(e,t){e!==t&&this.$emit(e?ea:wa)})),Hp(jp,"index",(function(e,t){e===t||this.isSliding||this.doSlide(e,t)})),jp),created:function(){this.$_interval=null,this.$_animationTimeout=null,this.$_touchTimeout=null,this.$_observer=null,this.isPaused=!(vs(this.interval,0)>0)},mounted:function(){this.transitionEndEvent=Kp(this.$el)||null,this.updateSlides(),this.setObserver(!0)},beforeDestroy:function(){this.clearInterval(),this.clearAnimationTimeout(),this.clearTouchTimeout(),this.setObserver(!1)},methods:{clearInterval:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){clearInterval(this.$_interval),this.$_interval=null})),clearAnimationTimeout:function(){clearTimeout(this.$_animationTimeout),this.$_animationTimeout=null},clearTouchTimeout:function(){clearTimeout(this.$_touchTimeout),this.$_touchTimeout=null},setObserver:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,e&&(this.$_observer=Ip(this.$refs.inner,this.updateSlides.bind(this),{subtree:!1,childList:!0,attributes:!0,attributeFilter:["id"]}))},setSlide:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(c&&document.visibilityState&&document.hidden)){var r=this.noWrap,i=this.numSlides;e=yc(e),0!==i&&(this.isSliding?this.$once(ma,(function(){Ys((function(){return t.setSlide(e,n)}))})):(this.direction=n,this.index=e>=i?r?i-1:0:e<0?r?0:i-1:e,r&&this.index!==e&&this.index!==this[Wp]&&this.$emit($p,this.index)))}},prev:function(){this.setSlide(this.index-1,"prev")},next:function(){this.setSlide(this.index+1,"next")},pause:function(e){e||(this.isPaused=!0),this.clearInterval()},start:function(e){e||(this.isPaused=!1),this.clearInterval(),this.interval&&this.numSlides>1&&(this.$_interval=setInterval(this.next,gc(1e3,this.interval)))},restart:function(){this.$el.contains(Fs())||this.start()},doSlide:function(e,t){var n=this,r=Boolean(this.interval),i=this.calcDirection(this.direction,t,e),a=i.overlayClass,o=i.dirClass,s=this.slides[t],l=this.slides[e];if(s&&l){if(this.isSliding=!0,r&&this.pause(!1),this.$emit(ga,e),this.$emit($p,this.index),this.noAnimation)Qs(l,"active"),Ks(s,"active"),this.isSliding=!1,this.$nextTick((function(){return n.$emit(ma,e)}));else{Qs(l,a),Ws(l),Qs(s,o),Qs(l,o);var c=!1,u=function t(){if(!c){if(c=!0,n.transitionEndEvent){var r=n.transitionEndEvent.split(/\s+/);r.forEach((function(e){return Hl(l,e,t,Oa)}))}n.clearAnimationTimeout(),Ks(l,o),Ks(l,a),Qs(l,"active"),Ks(s,"active"),Ks(s,o),Ks(s,a),Js(s,"aria-current","false"),Js(l,"aria-current","true"),Js(s,"aria-hidden","true"),Js(l,"aria-hidden","false"),n.isSliding=!1,n.direction=null,n.$nextTick((function(){return n.$emit(ma,e)}))}};if(this.transitionEndEvent){var d=this.transitionEndEvent.split(/\s+/);d.forEach((function(e){return Fl(l,e,u,Oa)}))}this.$_animationTimeout=setTimeout(u,Up)}r&&this.start(!1)}},updateSlides:function(){this.pause(!0),this.slides=$s(".carousel-item",this.$refs.inner);var e=this.slides.length,t=gc(0,mc(yc(this.index),e-1));this.slides.forEach((function(n,r){var i=r+1;r===t?(Qs(n,"active"),Js(n,"aria-current","true")):(Ks(n,"active"),Js(n,"aria-current","false")),Js(n,"aria-posinset",String(i)),Js(n,"aria-setsize",String(e))})),this.setSlide(t),this.start(this.isPaused)},calcDirection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e?Vp[e]:n>t?Vp.next:Vp.prev},handleClick:function(e,t){var n=e.keyCode;"click"!==e.type&&n!==Iu&&n!==Lu||(Nl(e),t())},handleSwipe:function(){var e=vc(this.touchDeltaX);if(!(e<=Gp)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0?this.prev():t<0&&this.next()}},touchStart:function(e){v&&qp[e.pointerType.toUpperCase()]?this.touchStartX=e.clientX:v||(this.touchStartX=e.touches[0].clientX)},touchMove:function(e){e.touches&&e.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=e.touches[0].clientX-this.touchStartX},touchEnd:function(e){v&&qp[e.pointerType.toUpperCase()]&&(this.touchDeltaX=e.clientX-this.touchStartX),this.handleSwipe(),this.pause(!1),this.clearTouchTimeout(),this.$_touchTimeout=setTimeout(this.start,Xp+gc(1e3,this.interval))}},render:function(e){var t=this,n=this.indicators,r=this.background,i=this.noAnimation,a=this.noHoverPause,o=this.noTouch,s=this.index,l=this.isSliding,c=this.pause,u=this.restart,d=this.touchStart,h=this.touchEnd,f=this.safeId("__BV_inner_"),p=e("div",{staticClass:"carousel-inner",attrs:{id:f,role:"list"},ref:"inner"},[this.normalizeSlot()]),m=e();if(this.controls){var b=function(n,r,i){var a=function(e){l?Nl(e,{propagation:!1}):t.handleClick(e,i)};return e("a",{staticClass:"carousel-control-".concat(n),attrs:{href:"#",role:"button","aria-controls":f,"aria-disabled":l?"true":null},on:{click:a,keydown:a}},[e("span",{staticClass:"carousel-control-".concat(n,"-icon"),attrs:{"aria-hidden":"true"}}),e("span",{class:"sr-only"},[r])])};m=[b("prev",this.labelPrev,this.prev),b("next",this.labelNext,this.next)]}var y=e("ol",{staticClass:"carousel-indicators",directives:[{name:"show",value:n}],attrs:{id:this.safeId("__BV_indicators_"),"aria-hidden":n?"false":"true","aria-label":this.labelIndicators,"aria-owns":f}},this.slides.map((function(r,i){var a=function(e){t.handleClick(e,(function(){t.setSlide(i)}))};return e("li",{class:{active:i===s},attrs:{role:"button",id:t.safeId("__BV_indicator_".concat(i+1,"_")),tabindex:n?"0":"-1","aria-current":i===s?"true":"false","aria-label":"".concat(t.labelGotoSlide," ").concat(i+1),"aria-describedby":r.id||null,"aria-controls":f},on:{click:a,keydown:a},key:"slide_".concat(i)})}))),w={mouseenter:a?Dp:c,mouseleave:a?Dp:u,focusin:c,focusout:u,keydown:function(e){if(!/input|textarea/i.test(e.target.tagName)){var n=e.keyCode;n!==Eu&&n!==ju||(Nl(e),t[n===Eu?"prev":"next"]())}}};return g&&!o&&(v?(w["&pointerdown"]=d,w["&pointerup"]=h):(w["&touchstart"]=d,w["&touchmove"]=this.touchMove,w["&touchend"]=h)),e("div",{staticClass:"carousel",class:{slide:!i,"carousel-fade":!i&&this.fade,"pointer-event":g&&v&&!o},style:{background:r},attrs:{role:"region",id:this.safeId(),"aria-busy":l?"true":"false"},on:w},[p,m,y])}});function em(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 tm(e){for(var t=1;t0?(Js(e,zm,r.join(" ")),rl(e,Um,"none")):(el(e,zm),il(e,Um)),Ys((function(){tg(e,Em(n,t))})),Hu(r,e[Hm])||(e[Hm]=r,r.forEach((function(e){Qu(Em(n,t)).$emit(Qm,e)})))}},sg={bind:function(e,t,n){e[Fm]=!1,e[Hm]=[],rg(e,Em(n,t)),og(e,t,n)},componentUpdated:og,updated:og,unbind:function(e,t,n){eg(e),ng(e,Em(n,t)),ag(e,Im),ag(e,Rm),ag(e,Fm),ag(e,Hm),Ks(e,Pm),Ks(e,Ym),el(e,Wm),el(e,zm),el(e,$m),il(e,Um)}},lg=Tt({directives:{VBToggle:sg}}),cg=Tt({components:{BCollapse:Dm},plugins:{VBTogglePlugin:lg}}),ug="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,dg=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();function hg(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}function fg(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),dg))}}var pg=ug&&window.Promise,mg=pg?hg:fg;function gg(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function vg(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function bg(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function yg(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=vg(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:yg(bg(e))}function wg(e){return e&&e.referenceNode?e.referenceNode:e}var xg=ug&&!(!window.MSInputMethodContext||!document.documentMode),_g=ug&&/MSIE 10/.test(navigator.userAgent);function Ag(e){return 11===e?xg:10===e?_g:xg||_g}function kg(e){if(!e)return document.documentElement;var t=Ag(10)?document.body:null,n=e.offsetParent||null;while(n===t&&e.nextElementSibling)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===vg(n,"position")?kg(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Sg(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||kg(e.firstElementChild)===e)}function Tg(e){return null!==e.parentNode?Tg(e.parentNode):e}function Mg(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return Sg(o)?o:kg(o);var s=Tg(e);return s.host?Mg(s.host,t):Mg(e,Tg(t).host)}function Og(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[n]}return e[n]}function Lg(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Og(t,"top"),i=Og(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}function Cg(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function Dg(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Ag(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Eg(e){var t=e.body,n=e.documentElement,r=Ag(10)&&getComputedStyle(n);return{height:Dg("Height",t,n,r),width:Dg("Width",t,n,r)}}var Pg=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Yg=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=Ag(10),i="HTML"===t.nodeName,a=Fg(e),o=Fg(t),s=yg(e),l=vg(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=Rg({top:a.top-o.top-c,left:a.left-o.left-u,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=Lg(d,t)),d}function Bg(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Hg(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:Og(n),s=t?0:Og(n,"left"),l={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:a};return Rg(l)}function Ng(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===vg(e,"position"))return!0;var n=bg(e);return!!n&&Ng(n)}function zg(e){if(!e||!e.parentElement||Ag())return document.documentElement;var t=e.parentElement;while(t&&"none"===vg(t,"transform"))t=t.parentElement;return t||document.documentElement}function Wg(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},o=i?zg(e):Mg(e,wg(t));if("viewport"===r)a=Bg(o,i);else{var s=void 0;"scrollParent"===r?(s=yg(bg(t)),"BODY"===s.nodeName&&(s=e.ownerDocument.documentElement)):s="window"===r?e.ownerDocument.documentElement:r;var l=Hg(s,o,i);if("HTML"!==s.nodeName||Ng(o))a=l;else{var c=Eg(e.ownerDocument),u=c.height,d=c.width;a.top+=l.top-l.marginTop,a.bottom=u+l.top,a.left+=l.left-l.marginLeft,a.right=d+l.left}}n=n||0;var h="number"===typeof n;return a.left+=h?n:n.left||0,a.top+=h?n:n.top||0,a.right-=h?n:n.right||0,a.bottom-=h?n:n.bottom||0,a}function $g(e){var t=e.width,n=e.height;return t*n}function Vg(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=Wg(n,r,a,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map((function(e){return Ig({key:e},s[e],{area:$g(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Ug(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?zg(t):Mg(t,wg(n));return Hg(n,i,r)}function Xg(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),a={width:e.offsetWidth+i,height:e.offsetHeight+r};return a}function Gg(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function qg(e,t,n){n=n.split("-")[0];var r=Xg(e),i={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),o=a?"top":"left",s=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return i[o]=t[o]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[c]:t[Gg(s)],i}function Qg(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Kg(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=Qg(e,(function(e){return e[t]===n}));return e.indexOf(r)}function Zg(e,t,n){var r=void 0===n?e:e.slice(0,Kg(e,"name",n));return r.forEach((function(e){e["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e["function"]||e.fn;e.enabled&&gg(n)&&(t.offsets.popper=Rg(t.offsets.popper),t.offsets.reference=Rg(t.offsets.reference),t=n(t,e))})),t}function Jg(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Ug(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Vg(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=qg(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Zg(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function ev(e,t){return e.some((function(e){var n=e.name,r=e.enabled;return r&&n===t}))}function tv(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;ro[f]&&(e.offsets.popper[d]+=s[d]+p-o[f]),e.offsets.popper=Rg(e.offsets.popper);var m=s[d]+s[c]/2-p/2,g=vg(e.instance.popper),v=parseFloat(g["margin"+u]),b=parseFloat(g["border"+u+"Width"]),y=m-e.offsets.popper[d]-v-b;return y=Math.max(Math.min(o[c]-p,y),0),e.arrowElement=r,e.offsets.arrow=(n={},jg(n,d,Math.round(y)),jg(n,h,""),n),e}function yv(e){return"end"===e?"start":"start"===e?"end":e}var wv=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],xv=wv.slice(3);function _v(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=xv.indexOf(e),r=xv.slice(n+1).concat(xv.slice(0,n));return t?r.reverse():r}var Av={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function kv(e,t){if(ev(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Wg(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Gg(r),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Av.FLIP:o=[r,i];break;case Av.CLOCKWISE:o=_v(r);break;case Av.COUNTERCLOCKWISE:o=_v(r,!0);break;default:o=t.behavior}return o.forEach((function(s,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],i=Gg(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,h="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)d(u.top)||"bottom"===r&&d(c.top)d(n.right),m=d(c.top)d(n.bottom),v="left"===r&&f||"right"===r&&p||"top"===r&&m||"bottom"===r&&g,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===a&&f||b&&"end"===a&&p||!b&&"start"===a&&m||!b&&"end"===a&&g),w=!!t.flipVariationsByContent&&(b&&"start"===a&&p||b&&"end"===a&&f||!b&&"start"===a&&g||!b&&"end"===a&&m),x=y||w;(h||v||x)&&(e.flipped=!0,(h||v)&&(r=o[l+1]),x&&(a=yv(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Ig({},e.offsets.popper,qg(e.instance.popper,e.offsets.reference,e.placement)),e=Zg(e.instance.modifiers,e,"flip"))})),e}function Sv(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=-1!==["top","bottom"].indexOf(i),s=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[s]a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}function Tv(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(0===o.indexOf("%")){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=Rg(s);return l[t]/100*a}if("vh"===o||"vw"===o){var c=void 0;return c="vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*a}return a}function Mv(e,t,n,r){var i=[0,0],a=-1!==["right","left"].indexOf(r),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(Qg(o,(function(e){return-1!==e.search(/,|\s/)})));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return c=c.map((function(e,r){var i=(1===r?!a:a)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return Tv(e,i,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,r){cv(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}function Ov(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,o=i.reference,s=r.split("-")[0],l=void 0;return l=cv(+n)?[+n,0]:Mv(n,a,o,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function Lv(e,t){var n=t.boundariesElement||kg(e.instance.popper);e.instance.reference===n&&(n=kg(n));var r=tv("transform"),i=e.instance.popper.style,a=i.top,o=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=Wg(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=o,i[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),jg({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=Ig({},u,d[t](e))})),e.offsets.popper=u,e}function Cv(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,a=i.reference,o=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:jg({},l,a[l]),end:jg({},l,a[l]+a[c]-o[c])};e.offsets.popper=Ig({},o,u[r])}return e}function Dv(e){if(!vv(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Qg(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};Pg(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=mg(this.update.bind(this)),this.options=Ig({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Ig({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=Ig({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Ig({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&gg(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Yg(e,[{key:"update",value:function(){return Jg.call(this)}},{key:"destroy",value:function(){return nv.call(this)}},{key:"enableEventListeners",value:function(){return ov.call(this)}},{key:"disableEventListeners",value:function(){return lv.call(this)}}]),e}();jv.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,jv.placements=wv,jv.Defaults=Yv;var Iv=jv,Rv="top-start",Fv="top-end",Hv="bottom-start",Bv="bottom-end",Nv="right-start",zv="left-start";function Wv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $v(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(Wv(this,e),!t)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));Re(this,e.Defaults,this.constructor.Defaults,n,{type:t}),He(this,{type:Qe(),cancelable:Qe(),nativeEvent:Qe(),target:Qe(),relatedTarget:Qe(),vueTarget:Qe(),componentId:Qe()});var r=!1;this.preventDefault=function(){this.cancelable&&(r=!0)},Be(this,"defaultPrevented",{enumerable:!0,get:function(){return r}})}return Vv(e,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),e}(),Xv=mi({data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(e,t){e!==t&&(Hl(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Oa),e&&Fl(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Oa))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&Fl(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Oa)},beforeDestroy:function(){Hl(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Oa)},methods:{isClickOut:function(e){return!Gs(this.$el,e.target)},_clickOutHandler:function(e){this.clickOutHandler&&this.isClickOut(e)&&this.clickOutHandler(e)}}}),Gv=mi({data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(e,t){e!==t&&(Hl(this.focusInElement,"focusin",this._focusInHandler,Oa),e&&Fl(this.focusInElement,"focusin",this._focusInHandler,Oa))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&Fl(this.focusInElement,"focusin",this._focusInHandler,Oa)},beforeDestroy:function(){Hl(this.focusInElement,"focusin",this._focusInHandler,Oa)},methods:{_focusInHandler:function(e){this.focusInHandler&&this.focusInHandler(e)}}}),qv=null;hi&&(qv=new WeakMap);var Qv=function(e,t){hi&&qv.set(e,t)},Kv=function(e){hi&&qv.delete(e)},Zv=function(e){if(!hi)return e.__vue__;var t=e;while(t){if(qv.has(t))return qv.get(t);t=t.parentNode}return null};function Jv(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 eb(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];this.disabled||(this.visible=!1,e&&this.$once(Wi,this.focusToggler))},toggle:function(e){e=e||{};var t=e,n=t.type,r=t.keyCode;("click"===n||"keydown"===n&&-1!==[Lu,Iu,Mu].indexOf(r))&&(this.disabled?this.visible=!1:(this.$emit(ya,e),Nl(e),this.visible?this.hide(!0):this.show()))},onMousedown:function(e){Nl(e,{propagation:!1})},onKeydown:function(e){var t=e.keyCode;t===Cu?this.onEsc(e):t===Mu?this.focusNext(e,!1):t===Ru&&this.focusNext(e,!0)},onEsc:function(e){this.visible&&(this.visible=!1,Nl(e),this.$once(Wi,this.focusToggler))},onSplitClick:function(e){this.disabled?this.visible=!1:this.$emit(Ti,e)},hideHandler:function(e){var t=this,n=e.target;!this.visible||Gs(this.$refs.menu,n)||Gs(this.toggler,n)||(this.clearHideTimeout(),this.$_hideTimeout=setTimeout((function(){return t.hide()}),this.hideDelay))},clickOutHandler:function(e){this.hideHandler(e)},focusInHandler:function(e){this.hideHandler(e)},focusNext:function(e,t){var n=this,r=e.target;!this.visible||e&&Xs(ib,r)||(Nl(e),this.$nextTick((function(){var e=n.getItems();if(!(e.length<1)){var i=e.indexOf(r);t&&i>0?i--:!t&&i1&&void 0!==arguments[1]?arguments[1]:null;if(Oe(e)){var n=ct(e,this.valueField),r=ct(e,this.textField);return{value:be(n)?t||r:n,text:eh(String(be(r)?t:r)),html:ct(e,this.htmlField),disabled:Boolean(ct(e,this.disabledField))}}return{value:t||e,text:eh(String(e)),disabled:!1}},normalizeOptions:function(e){var t=this;return Te(e)?e.map((function(e){return t.normalizeOption(e)})):Oe(e)?(ht(ny,this.$options.name),ze(e).map((function(n){return t.normalizeOption(e[n]||{},n)}))):[]}}});function ay(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 oy(e){for(var t=1;t-1:Hu(t,e)},isRadio:function(){return!1}},watch:Vy({},Xy,(function(e,t){Hu(e,t)||this.setIndeterminate(e)})),mounted:function(){this.setIndeterminate(this[Xy])},methods:{computedLocalCheckedWatcher:function(e,t){if(!Hu(e,t)){this.$emit(By,e);var n=this.$refs.input;n&&this.$emit(Gy,n.indeterminate)}},handleChange:function(e){var t=this,n=e.target,r=n.checked,i=n.indeterminate,a=this.value,o=this.uncheckedValue,s=this.computedLocalChecked;if(Te(s)){var l=_y(s,a);r&&l<0?s=s.concat(a):!r&&l>-1&&(s=s.slice(0,l).concat(s.slice(l+1)))}else s=r?a:o;this.computedLocalChecked=s,this.$nextTick((function(){t.$emit(ki,s),t.isGroup&&t.bvGroup.$emit(ki,s),t.$emit(Gy,i)}))},setIndeterminate:function(e){Te(this.computedLocalChecked)&&(e=!1);var t=this.$refs.input;t&&(t.indeterminate=e,this.$emit(Gy,e))}}}),Ky=El(Ny,Sn),Zy=mi({name:Sn,mixins:[zy],inject:{getBvGroup:{from:"getBvRadioGroup",default:function(){return function(){return null}}}},props:Ky,computed:{bvGroup:function(){return this.getBvGroup()}}});function Jy(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 ew(e){for(var t=1;t0&&(l=[e("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":l.length>1,"justify-content-end":l.length<2}},l)]);var h=e(bf,{staticClass:"b-form-date-calendar w-100",props:Dw(Dw({},Cl(Hw,a)),{},{hidden:!this.isVisible,value:t,valueAsDate:!1,width:this.calendarWidth}),on:{selected:this.onSelected,input:this.onInput,context:this.onContext},scopedSlots:Ue(o,["nav-prev-decade","nav-prev-year","nav-prev-month","nav-this-month","nav-next-month","nav-next-year","nav-next-decade"]),key:"calendar",ref:"calendar"},l);return e(Lw,{staticClass:"b-form-datepicker",props:Dw(Dw({},Cl(Bw,a)),{},{formattedValue:t?this.formattedValue:"",id:this.safeId(),lang:this.computedLang,menuClass:[{"bg-dark":i,"text-light":i},this.menuClass],placeholder:s,rtl:this.isRTL,value:t}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:Ew({},no,o[no]||this.defaultButtonFn),ref:"control"},[h])}}),Ww=Tt({components:{BFormDatepicker:zw,BDatepicker:zw}});function $w(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 Vw(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return Promise.all(ls(e).filter((function(e){return"file"===e.kind})).map((function(e){var n=ex(e);if(n){if(n.isDirectory&&t)return nx(n.createReader(),"".concat(n.name,"/"));if(n.isFile)return new Promise((function(e){n.file((function(t){t.$path="",e(t)}))}))}return null})).filter(st))},nx=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(r){var i=[],a=function a(){t.readEntries((function(t){0===t.length?r(Promise.all(i).then((function(e){return hs(e)}))):(i.push(Promise.all(t.map((function(t){if(t){if(t.isDirectory)return e(t.createReader(),"".concat(n).concat(t.name,"/"));if(t.isFile)return new Promise((function(e){t.file((function(t){t.$path="".concat(n).concat(t.name),e(t)}))}))}return null})).filter(st))),a())}))};a()}))},rx=El(qe(Vw(Vw(Vw(Vw(Vw(Vw(Vw({},sf),qw),ky),Ty),Cy),Oy),{},{accept:Ol(Ra,""),browseText:Ol(Ra,"Browse"),capture:Ol(Da,!1),directory:Ol(Da,!1),dropPlaceholder:Ol(Ra,"Drop files here"),fileNameFormatter:Ol(Pa),multiple:Ol(Da,!1),noDrop:Ol(Da,!1),noDropPlaceholder:Ol(Ra,"Not allowed"),noTraverse:Ol(Da,!1),placeholder:Ol(Ra,"No file chosen")})),xn),ix=mi({name:xn,mixins:[qu,lf,Gw,gs,Sy,Dy,My,gs],inheritAttrs:!1,props:rx,data:function(){return{files:[],dragging:!1,dropAllowed:!this.noDrop,hasFocus:!1}},computed:{computedAccept:function(){var e=this.accept;return e=(e||"").trim().split(/[,\s]+/).filter(st),0===e.length?null:e.map((function(e){var t="name",n="^",r="$";S.test(e)?n="":(t="type",I.test(e)&&(r=".+$",e=e.slice(0,-1))),e=Ss(e);var i=new RegExp("".concat(n).concat(e).concat(r));return{rx:i,prop:t}}))},computedCapture:function(){var e=this.capture;return!0===e||""===e||(e||null)},computedAttrs:function(){var e=this.name,t=this.disabled,n=this.required,r=this.form,i=this.computedCapture,a=this.accept,o=this.multiple,s=this.directory;return Vw(Vw({},this.bvAttrs),{},{type:"file",id:this.safeId(),name:e,disabled:t,required:n,form:r||null,capture:i,accept:a||null,multiple:o,directory:s,webkitdirectory:s,"aria-required":n?"true":null})},computedFileNameFormatter:function(){var e=this.fileNameFormatter;return Yl(e)?e:this.defaultFileNameFormatter},clonedFiles:function(){return ot(this.files)},flattenedFiles:function(){return fs(this.files)},fileNames:function(){return this.flattenedFiles.map((function(e){return e.name}))},labelContent:function(){if(this.dragging&&!this.noDrop)return this.normalizeSlot(lo,{allowed:this.dropAllowed})||(this.dropAllowed?this.dropPlaceholder:this.$createElement("span",{staticClass:"text-danger"},this.noDropPlaceholder));if(0===this.files.length)return this.normalizeSlot(Xo)||this.placeholder;var e=this.flattenedFiles,t=this.clonedFiles,n=this.fileNames,r=this.computedFileNameFormatter;return this.hasNormalizedSlot(fo)?this.normalizeSlot(fo,{files:e,filesTraversed:t,names:n}):r(e,t,n)}},watch:(Pw={},Uw(Pw,Qw,(function(e){(!e||Te(e)&&0===e.length)&&this.reset()})),Uw(Pw,"files",(function(e,t){if(!Hu(e,t)){var n=this.multiple,r=this.noTraverse,i=!n||r?fs(e):e;this.$emit(Kw,n?i:i[0]||null)}})),Pw),created:function(){this.$_form=null},mounted:function(){var e=Xs("form",this.$el);e&&(Fl(e,"reset",this.reset,Ma),this.$_form=e)},beforeDestroy:function(){var e=this.$_form;e&&Hl(e,"reset",this.reset,Ma)},methods:{isFileValid:function(e){if(!e)return!1;var t=this.computedAccept;return!t||t.some((function(t){return t.rx.test(e[t.prop])}))},isFilesArrayValid:function(e){var t=this;return Te(e)?e.every((function(e){return t.isFileValid(e)})):this.isFileValid(e)},defaultFileNameFormatter:function(e,t,n){return n.join(", ")},setFiles:function(e){this.dropAllowed=!this.noDrop,this.dragging=!1,this.files=this.multiple?this.directory?e:fs(e):fs(e).slice(0,1)},setInputFiles:function(e){try{var t=new ClipboardEvent("").clipboardData||new DataTransfer;fs(ot(e)).forEach((function(e){delete e.$path,t.items.add(e)})),this.$refs.input.files=t.files}catch(n){}},reset:function(){try{var e=this.$refs.input;e.value="",e.type="",e.type="file"}catch(t){}this.files=[]},handleFiles:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){var n=e.filter(this.isFilesArrayValid);n.length>0&&(this.setFiles(n),this.setInputFiles(n))}else this.setFiles(e)},focusHandler:function(e){this.plain||"focusout"===e.type?this.hasFocus=!1:this.hasFocus=!0},onChange:function(e){var t=this,n=e.type,r=e.target,i=e.dataTransfer,a=void 0===i?{}:i,o="drop"===n;this.$emit(ki,e);var l=ls(a.items||[]);if(s&&l.length>0&&!ye(ex(l[0])))tx(l,this.directory).then((function(e){return t.handleFiles(e,o)}));else{var c=ls(r.files||a.files||[]).map((function(e){return e.$path=e.webkitRelativePath||"",e}));this.handleFiles(c,o)}},onDragenter:function(e){Nl(e),this.dragging=!0;var t=e.dataTransfer,n=void 0===t?{}:t;if(this.noDrop||this.disabled||!this.dropAllowed)return n.dropEffect="none",void(this.dropAllowed=!1);n.dropEffect="copy"},onDragover:function(e){Nl(e),this.dragging=!0;var t=e.dataTransfer,n=void 0===t?{}:t;if(this.noDrop||this.disabled||!this.dropAllowed)return n.dropEffect="none",void(this.dropAllowed=!1);n.dropEffect="copy"},onDragleave:function(e){var t=this;Nl(e),this.$nextTick((function(){t.dragging=!1,t.dropAllowed=!t.noDrop}))},onDrop:function(e){var t=this;Nl(e),this.dragging=!1,this.noDrop||this.disabled||!this.dropAllowed?this.$nextTick((function(){t.dropAllowed=!t.noDrop})):this.onChange(e)}},render:function(e){var t=this.custom,n=this.plain,r=this.size,i=this.dragging,a=this.stateClass,o=this.bvAttrs,s=e("input",{class:[{"form-control-file":n,"custom-file-input":t,focus:t&&this.hasFocus},a],style:t?{zIndex:-5}:{},attrs:this.computedAttrs,on:{change:this.onChange,focusin:this.focusHandler,focusout:this.focusHandler,reset:this.reset},ref:"input"});if(n)return s;var l=e("label",{staticClass:"custom-file-label",class:{dragging:i},attrs:{for:this.safeId(),"data-browse":this.browseText||null}},[e("span",{staticClass:"d-block form-file-text",style:{pointerEvents:"none"}},[this.labelContent])]);return e("div",{staticClass:"custom-file b-form-file",class:[Uw({},"b-custom-control-".concat(r),r),a,o.class],style:o.style,attrs:{id:this.safeId("_BV_file_outer_")},on:{dragenter:this.onDragenter,dragover:this.onDragover,dragleave:this.onDragleave,drop:this.onDrop}},[s,l])}}),ax=Tt({components:{BFormFile:ix,BFile:ix}}),ox=function(e){return"\\"+e},sx=function(e){e=Ts(e);var t=e.length,n=e.charCodeAt(0);return e.split("").reduce((function(r,i,a){var o=e.charCodeAt(a);return 0===o?r+"�":127===o||o>=1&&o<=31||0===a&&o>=48&&o<=57||1===a&&o>=48&&o<=57&&45===n?r+ox("".concat(o.toString(16)," ")):0===a&&45===o&&1===t?r+ox(i):o>=128||45===o||95===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+i:r+ox(i)}),"")};function lx(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 cx(e){for(var t=1;t0||ze(this.labelColProps).length>0}},watch:{ariaDescribedby:function(e,t){e!==t&&this.updateAriaDescribedby(e,t)}},mounted:function(){var e=this;this.$nextTick((function(){e.updateAriaDescribedby(e.ariaDescribedby)}))},methods:{getAlignClasses:function(e,t){return xl().reduce((function(n,r){var i=e[Ml(r,"".concat(t,"Align"))]||null;return i&&n.push(["text",r,i].filter(st).join("-")),n}),[])},getColProps:function(e,t){return xl().reduce((function(n,r){var i=e[Ml(r,"".concat(t,"Cols"))];return i=""===i||(i||!1),_e(i)||"auto"===i||(i=vs(i,0),i=i>0&&i),i&&(n[r||(_e(i)?"col":"cols")]=i),n}),{})},updateAriaDescribedby:function(e,t){var n=this.labelFor;if(c&&n){var r=Vs("#".concat(sx(n)),this.$refs.content);if(r){var i="aria-describedby",a=(e||"").split(j),o=(t||"").split(j),s=(tl(r,i)||"").split(j).filter((function(e){return!cs(o,e)})).concat(a).filter((function(e,t,n){return n.indexOf(e)===t})).filter(st).join(" ").trim();s?Js(r,i,s):el(r,i)}}},onLegendClick:function(e){if(!this.labelFor){var t=e.target,n=t?t.tagName:"";if(-1===_x.indexOf(n)){var r=$s(xx,this.$refs.content).filter(Ns);1===r.length&&hl(r[0])}}}},render:function(e){var t=this.computedState,n=this.feedbackAriaLive,r=this.isHorizontal,i=this.labelFor,a=this.normalizeSlot,o=this.safeId,s=this.tooltip,l=o(),c=!i,u=e(),d=a(To)||this.label,h=d?o("_BV_label_"):null;if(d||r){var f=this.labelSize,p=this.labelColProps,m=c?"legend":"label";this.labelSrOnly?(d&&(u=e(m,{class:"sr-only",attrs:{id:h,for:i||null}},[d])),u=e(r?gx:"div",{props:r?p:{}},[u])):u=e(r?gx:m,{on:c?{click:this.onLegendClick}:{},props:r?bx(bx({},p),{},{tag:m}):{},attrs:{id:h,for:i||null,tabindex:c?"-1":null},class:[c?"bv-no-focus-ring":"",r||c?"col-form-label":"",!r&&c?"pt-0":"",r||c?"":"d-block",f?"col-form-label-".concat(f):"",this.labelAlignClasses,this.labelClass]},[d])}var g=e(),v=a(So)||this.invalidFeedback,b=v?o("_BV_feedback_invalid_"):null;v&&(g=e(gy,{props:{ariaLive:n,id:b,state:t,tooltip:s},attrs:{tabindex:v?"-1":null}},[v]));var y=e(),w=a(ss)||this.validFeedback,x=w?o("_BV_feedback_valid_"):null;w&&(y=e(by,{props:{ariaLive:n,id:x,state:t,tooltip:s},attrs:{tabindex:w?"-1":null}},[w]));var _=e(),A=a(oo)||this.description,k=A?o("_BV_description_"):null;A&&(_=e(py,{attrs:{id:k,tabindex:"-1"}},[A]));var S=this.ariaDescribedby=[k,!1===t?b:null,!0===t?x:null].filter(st).join(" ")||null,T=e(r?gx:"div",{props:r?this.contentColProps:{},ref:"content"},[a(ao,{ariaDescribedby:S,descriptionId:k,id:l,labelId:h})||e(),g,y,_]);return e(c?"fieldset":r?wy:"div",{staticClass:"form-group",class:[{"was-validated":this.validated},this.stateClass],attrs:{id:l,disabled:c?this.disabled:null,role:c?null:"group","aria-invalid":this.computedAriaInvalid,"aria-labelledby":c&&r?h:null}},r&&c?[e(wy,[u,T])]:[u,T])}},Sx=Tt({components:{BFormGroup:kx,BFormFieldset:kx}}),Tx=mi({computed:{selectionStart:{cache:!1,get:function(){return this.$refs.input.selectionStart},set:function(e){this.$refs.input.selectionStart=e}},selectionEnd:{cache:!1,get:function(){return this.$refs.input.selectionEnd},set:function(e){this.$refs.input.selectionEnd=e}},selectionDirection:{cache:!1,get:function(){return this.$refs.input.selectionDirection},set:function(e){this.$refs.input.selectionDirection=e}}},methods:{select:function(){var e;(e=this.$refs.input).select.apply(e,arguments)},setSelectionRange:function(){var e;(e=this.$refs.input).setSelectionRange.apply(e,arguments)},setRangeText:function(){var e;(e=this.$refs.input).setRangeText.apply(e,arguments)}}});function Mx(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 Ox(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2];return e=Ts(e),!this.hasFormatter||this.lazyFormatter&&!n||(e=this.formatter(e,t)),e},modifyValue:function(e){return e=Ts(e),this.trim&&(e=e.trim()),this.number&&(e=bs(e,e)),e},updateValue:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.lazy;if(!r||n){this.clearDebounce();var i=function(){if(e=t.modifyValue(e),e!==t.vModelValue)t.vModelValue=e,t.$emit(Yx,e);else if(t.hasFormatter){var n=t.$refs.input;n&&e!==n.value&&(n.value=e)}},a=this.computedDebounce;a>0&&!r&&!n?this.$_inputDebounceTimer=setTimeout(i,a):i()}},onInput:function(e){if(!e.target.composing){var t=e.target.value,n=this.formatValue(t,e);!1===n||e.defaultPrevented?Nl(e,{propagation:!1}):(this.localValue=n,this.updateValue(n),this.$emit(Ui,n))}},onChange:function(e){var t=e.target.value,n=this.formatValue(t,e);!1===n||e.defaultPrevented?Nl(e,{propagation:!1}):(this.localValue=n,this.updateValue(n,!0),this.$emit(ki,n))},onBlur:function(e){var t=e.target.value,n=this.formatValue(t,e,!0);!1!==n&&(this.localValue=Ts(this.modifyValue(n)),this.updateValue(n,!0)),this.$emit(_i,e)},focus:function(){this.disabled||hl(this.$el)},blur:function(){this.disabled||fl(this.$el)}}}),Rx=mi({computed:{validity:{cache:!1,get:function(){return this.$refs.input.validity}},validationMessage:{cache:!1,get:function(){return this.$refs.input.validationMessage}},willValidate:{cache:!1,get:function(){return this.$refs.input.willValidate}}},methods:{setCustomValidity:function(){var e;return(e=this.$refs.input).setCustomValidity.apply(e,arguments)},checkValidity:function(){var e;return(e=this.$refs.input).checkValidity.apply(e,arguments)},reportValidity:function(){var e;return(e=this.$refs.input).reportValidity.apply(e,arguments)}}});function Fx(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 Hx(e){for(var t=1;t=n?"full":t>=n-.5?"half":"empty",u={variant:a,disabled:o,readonly:s};return e("span",{staticClass:"b-rating-star",class:{focused:r&&t===n||!vs(t)&&n===l,"b-rating-star-empty":"empty"===c,"b-rating-star-half":"half"===c,"b-rating-star-full":"full"===c},attrs:{tabindex:o||s?null:"-1"},on:{click:this.onClick}},[e("span",{staticClass:"b-rating-icon"},[this.normalizeSlot(c,u)])])}}),l_=El(qe(Qx(Qx(Qx(Qx(Qx({},sf),e_),Xe(ky,["required","autofocus"])),Oy),{},{color:Ol(Ra),iconClear:Ol(Ra,"x"),iconEmpty:Ol(Ra,"star"),iconFull:Ol(Ra,"star-fill"),iconHalf:Ol(Ra,"star-half"),inline:Ol(Da,!1),locale:Ol(Na),noBorder:Ol(Da,!1),precision:Ol(Xa),readonly:Ol(Da,!1),showClear:Ol(Da,!1),showValue:Ol(Da,!1),showValueMax:Ol(Da,!1),stars:Ol(Xa,i_,(function(e){return vs(e)>=r_})),variant:Ol(Ra)})),Mn),c_=mi({name:Mn,components:{BIconStar:pu,BIconStarHalf:gu,BIconStarFill:mu,BIconX:vu},mixins:[lf,Jx,Ly],props:l_,data:function(){var e=bs(this[t_],null),t=a_(this.stars);return{localValue:ye(e)?null:o_(e,0,t),hasFocus:!1}},computed:{computedStars:function(){return a_(this.stars)},computedRating:function(){var e=bs(this.localValue,0),t=vs(this.precision,3);return o_(bs(e.toFixed(t)),0,this.computedStars)},computedLocale:function(){var e=us(this.locale).filter(st),t=new Intl.NumberFormat(e);return t.resolvedOptions().locale},isInteractive:function(){return!this.disabled&&!this.readonly},isRTL:function(){return of(this.computedLocale)},formattedRating:function(){var e=vs(this.precision),t=this.showValueMax,n=this.computedLocale,r={notation:"standard",minimumFractionDigits:isNaN(e)?0:e,maximumFractionDigits:isNaN(e)?3:e},i=this.computedStars.toLocaleString(n),a=this.localValue;return a=ye(a)?t?"-":"":a.toLocaleString(n,r),t?"".concat(a,"/").concat(i):a}},watch:(Nx={},Kx(Nx,t_,(function(e,t){if(e!==t){var n=bs(e,null);this.localValue=ye(n)?null:o_(n,0,this.computedStars)}})),Kx(Nx,"localValue",(function(e,t){e!==t&&e!==(this.value||0)&&this.$emit(n_,e||null)})),Kx(Nx,"disabled",(function(e){e&&(this.hasFocus=!1,this.blur())})),Nx),methods:{focus:function(){this.disabled||hl(this.$el)},blur:function(){this.disabled||fl(this.$el)},onKeydown:function(e){var t=e.keyCode;if(this.isInteractive&&cs([Eu,Mu,ju,Ru],t)){Nl(e,{propagation:!1});var n=vs(this.localValue,0),r=this.showClear?0:1,i=this.computedStars,a=this.isRTL?-1:1;t===Eu?this.localValue=o_(n-a,r,i)||null:t===ju?this.localValue=o_(n+a,r,i):t===Mu?this.localValue=o_(n-1,r,i)||null:t===Ru&&(this.localValue=o_(n+1,r,i))}},onSelected:function(e){this.isInteractive&&(this.localValue=e)},onFocus:function(e){this.hasFocus=!!this.isInteractive&&"focus"===e.type},renderIcon:function(e){return this.$createElement(ku,{props:{icon:e,variant:this.disabled||this.color?null:this.variant||null}})},iconEmptyFn:function(){return this.renderIcon(this.iconEmpty)},iconHalfFn:function(){return this.renderIcon(this.iconHalf)},iconFullFn:function(){return this.renderIcon(this.iconFull)},iconClearFn:function(){return this.$createElement(ku,{props:{icon:this.iconClear}})}},render:function(e){var t=this,n=this.disabled,r=this.readonly,i=this.name,a=this.form,o=this.inline,s=this.variant,l=this.color,c=this.noBorder,u=this.hasFocus,d=this.computedRating,h=this.computedStars,f=this.formattedRating,p=this.showClear,m=this.isRTL,g=this.isInteractive,v=this.$scopedSlots,b=[];if(p&&!n&&!r){var y=e("span",{staticClass:"b-rating-icon"},[(v[yo]||this.iconClearFn)()]);b.push(e("span",{staticClass:"b-rating-star b-rating-star-clear flex-grow-1",class:{focused:u&&0===d},attrs:{tabindex:g?"-1":null},on:{click:function(){return t.onSelected(null)}},key:"clear"},[y]))}for(var w=0;w1&&void 0!==arguments[1]?arguments[1]:null;if(Oe(e)){var n=ct(e,this.valueField),r=ct(e,this.textField),i=ct(e,this.optionsField,null);return ye(i)?{value:be(n)?t||r:n,text:String(be(r)?t:r),html:ct(e,this.htmlField),disabled:Boolean(ct(e,this.disabledField))}:{label:String(ct(e,this.labelField)||r),options:this.normalizeOptions(i)}}return{value:t||e,text:String(e),disabled:!1}}}}),x_=El({disabled:Ol(Da,!1),value:Ol(La,void 0,!0)},Cn),__=mi({name:Cn,functional:!0,props:x_,render:function(e,t){var n=t.props,r=t.data,i=t.children,a=n.value,o=n.disabled;return e("option",ii(r,{attrs:{disabled:o},domProps:{value:a}}),i)}});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}function k_(e){for(var t=1;t0?e:U_},computedInterval:function(){var e=vs(this.repeatInterval,0);return e>0?e:X_},computedThreshold:function(){return gc(vs(this.repeatThreshold,G_),1)},computedStepMultiplier:function(){return gc(vs(this.repeatStepMultiplier,q_),1)},computedPrecision:function(){var e=this.computedStep;return yc(e)===e?0:(e.toString().split(".")[1]||"").length},computedMultiplier:function(){return wc(10,this.computedPrecision||0)},valueAsFixed:function(){var e=this.localValue;return ye(e)?"":e.toFixed(this.computedPrecision)},computedLocale:function(){var e=us(this.locale).filter(st),t=new Intl.NumberFormat(e);return t.resolvedOptions().locale},computedRTL:function(){return of(this.computedLocale)},defaultFormatter:function(){var e=this.computedPrecision,t=new Intl.NumberFormat(this.computedLocale,{style:"decimal",useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:e,maximumFractionDigits:e,notation:"standard"});return t.format},computedFormatter:function(){var e=this.formatterFn;return Yl(e)?e:this.defaultFormatter},computedAttrs:function(){return I_(I_({},this.bvAttrs),{},{role:"group",lang:this.computedLocale,tabindex:this.disabled?null:"-1",title:this.ariaLabel})},computedSpinAttrs:function(){var e=this.spinId,t=this.localValue,n=this.computedRequired,r=this.disabled,i=this.state,a=this.computedFormatter,o=!ye(t);return I_(I_({dir:this.computedRTL?"rtl":"ltr"},this.bvAttrs),{},{id:e,role:"spinbutton",tabindex:r?null:"0","aria-live":"off","aria-label":this.ariaLabel||null,"aria-controls":this.ariaControls||null,"aria-invalid":!1===i||!o&&n?"true":null,"aria-required":n?"true":null,"aria-valuemin":Ts(this.computedMin),"aria-valuemax":Ts(this.computedMax),"aria-valuenow":o?t:null,"aria-valuetext":o?a(t):null})}},watch:(D_={},R_(D_,N_,(function(e){this.localValue=bs(e,null)})),R_(D_,"localValue",(function(e){this.$emit(z_,e)})),R_(D_,"disabled",(function(e){e&&this.clearRepeat()})),R_(D_,"readonly",(function(e){e&&this.clearRepeat()})),D_),created:function(){this.$_autoDelayTimer=null,this.$_autoRepeatTimer=null,this.$_keyIsDown=!1},beforeDestroy:function(){this.clearRepeat()},deactivated:function(){this.clearRepeat()},methods:{focus:function(){this.disabled||hl(this.$refs.spinner)},blur:function(){this.disabled||fl(this.$refs.spinner)},emitChange:function(){this.$emit(ki,this.localValue)},stepValue:function(e){var t=this.localValue;if(!this.disabled&&!ye(t)){var n=this.computedStep*e,r=this.computedMin,i=this.computedMax,a=this.computedMultiplier,o=this.wrap;t=xc((t-r)/n)*n+r+n,t=xc(t*a)/a,this.localValue=t>i?o?r:i:t0&&void 0!==arguments[0]?arguments[0]:1,t=this.localValue;ye(t)?this.localValue=this.computedMin:this.stepValue(1*e)},stepDown:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.localValue;ye(t)?this.localValue=this.wrap?this.computedMax:this.computedMin:this.stepValue(-1*e)},onKeydown:function(e){var t=e.keyCode,n=e.altKey,r=e.ctrlKey,i=e.metaKey;if(!(this.disabled||this.readonly||n||r||i)&&cs(Q_,t)){if(Nl(e,{propagation:!1}),this.$_keyIsDown)return;this.resetTimers(),cs([Ru,Mu],t)?(this.$_keyIsDown=!0,t===Ru?this.handleStepRepeat(e,this.stepUp):t===Mu&&this.handleStepRepeat(e,this.stepDown)):t===Yu?this.stepUp(this.computedStepMultiplier):t===Pu?this.stepDown(this.computedStepMultiplier):t===Du?this.localValue=this.computedMin:t===Ou&&(this.localValue=this.computedMax)}},onKeyup:function(e){var t=e.keyCode,n=e.altKey,r=e.ctrlKey,i=e.metaKey;this.disabled||this.readonly||n||r||i||cs(Q_,t)&&(Nl(e,{propagation:!1}),this.resetTimers(),this.$_keyIsDown=!1,this.emitChange())},handleStepRepeat:function(e,t){var n=this,r=e||{},i=r.type,a=r.button;if(!this.disabled&&!this.readonly){if("mousedown"===i&&a)return;this.resetTimers(),t(1);var o=this.computedThreshold,s=this.computedStepMultiplier,l=this.computedDelay,c=this.computedInterval;this.$_autoDelayTimer=setTimeout((function(){var e=0;n.$_autoRepeatTimer=setInterval((function(){t(ee.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&n.indexOf(e)===t}))},kA=function(e){return Ae(e)?e:Ce(e)&&e.target.value||""},SA=function(){return{all:[],valid:[],invalid:[],duplicate:[]}},TA=El(qe(fA(fA(fA(fA(fA(fA({},sf),vA),ky),Oy),Cy),{},{addButtonText:Ol(Ra,"Add"),addButtonVariant:Ol(Ra,"outline-secondary"),addOnChange:Ol(Da,!1),duplicateTagText:Ol(Ra,"Duplicate tag(s)"),feedbackAriaLive:Ol(Ra,"assertive"),ignoreInputFocusSelector:Ol(Na,xA),inputAttrs:Ol(ja,{}),inputClass:Ol(Ba),inputId:Ol(Ra),inputType:Ol(Ra,"text",(function(e){return cs(wA,e)})),invalidTagText:Ol(Ra,"Invalid tag(s)"),limit:Ol(Ya),limitTagsText:Ol(Ra,"Tag limit reached"),noAddOnEnter:Ol(Da,!1),noOuterFocus:Ol(Da,!1),noTagRemove:Ol(Da,!1),placeholder:Ol(Ra,"Add tag..."),removeOnDelete:Ol(Da,!1),separator:Ol(Na),tagClass:Ol(Ba),tagPills:Ol(Da,!1),tagRemoveLabel:Ol(Ra,"Remove tag"),tagRemovedLabel:Ol(Ra,"Tag removed"),tagValidator:Ol(Pa),tagVariant:Ol(Ra,"secondary")})),Yn),MA=mi({name:Yn,mixins:[id,lf,gA,Sy,Ly,Dy,gs],props:TA,data:function(){return{hasFocus:!1,newTag:"",tags:[],removedTags:[],tagsState:SA(),focusState:null}},computed:{computedInputId:function(){return this.inputId||this.safeId("__input__")},computedInputType:function(){return cs(wA,this.inputType)?this.inputType:"text"},computedInputAttrs:function(){var e=this.disabled,t=this.form;return fA(fA({},this.inputAttrs),{},{id:this.computedInputId,value:this.newTag,disabled:e,form:t})},computedInputHandlers:function(){return fA(fA({},Xe(this.bvListeners,[Bi,Ni])),{},{blur:this.onInputBlur,change:this.onInputChange,focus:this.onInputFocus,input:this.onInputInput,keydown:this.onInputKeydown,reset:this.reset})},computedSeparator:function(){return us(this.separator).filter(Ae).filter(st).join("")},computedSeparatorRegExp:function(){var e=this.computedSeparator;return e?new RegExp("[".concat(_A(e),"]+")):null},computedJoiner:function(){var e=this.computedSeparator.charAt(0);return" "!==e?"".concat(e," "):e},computeIgnoreInputFocusSelector:function(){return us(this.ignoreInputFocusSelector).filter(st).join(",").trim()},disableAddButton:function(){var e=this,t=Os(this.newTag);return""===t||!this.splitTags(t).some((function(t){return!cs(e.tags,t)&&e.validateTag(t)}))},duplicateTags:function(){return this.tagsState.duplicate},hasDuplicateTags:function(){return this.duplicateTags.length>0},invalidTags:function(){return this.tagsState.invalid},hasInvalidTags:function(){return this.invalidTags.length>0},isLimitReached:function(){var e=this.limit;return ke(e)&&e>=0&&this.tags.length>=e}},watch:(rA={},pA(rA,bA,(function(e){this.tags=AA(e)})),pA(rA,"tags",(function(e,t){Hu(e,this[bA])||this.$emit(yA,e),Hu(e,t)||(e=us(e).filter(st),t=us(t).filter(st),this.removedTags=t.filter((function(t){return!cs(e,t)})))})),pA(rA,"tagsState",(function(e,t){Hu(e,t)||this.$emit(ba,e.valid,e.invalid,e.duplicate)})),rA),created:function(){this.tags=AA(this[bA])},mounted:function(){var e=Xs("form",this.$el);e&&Fl(e,"reset",this.reset,Ma)},beforeDestroy:function(){var e=Xs("form",this.$el);e&&Hl(e,"reset",this.reset,Ma)},methods:{addTag:function(e){if(e=Ae(e)?e:this.newTag,!this.disabled&&""!==Os(e)&&!this.isLimitReached){var t=this.parseTags(e);if(t.valid.length>0||0===t.all.length)if(Us(this.getInput(),"select"))this.newTag="";else{var n=[].concat(oA(t.invalid),oA(t.duplicate));this.newTag=t.all.filter((function(e){return cs(n,e)})).join(this.computedJoiner).concat(n.length>0?this.computedJoiner.charAt(0):"")}t.valid.length>0&&(this.tags=us(this.tags,t.valid)),this.tagsState=t,this.focus()}},removeTag:function(e){this.disabled||(this.tags=this.tags.filter((function(t){return t!==e})))},reset:function(){var e=this;this.newTag="",this.tags=[],this.$nextTick((function(){e.removedTags=[],e.tagsState=SA()}))},onInputInput:function(e){if(!(this.disabled||Ce(e)&&e.target.composing)){var t=kA(e),n=this.computedSeparatorRegExp;this.newTag!==t&&(this.newTag=t),t=Ms(t),n&&n.test(t.slice(-1))?this.addTag():this.tagsState=""===t?SA():this.parseTags(t)}},onInputChange:function(e){if(!this.disabled&&this.addOnChange){var t=kA(e);this.newTag!==t&&(this.newTag=t),this.addTag()}},onInputKeydown:function(e){if(!this.disabled&&Ce(e)){var t=e.keyCode,n=e.target.value||"";this.noAddOnEnter||t!==Lu?!this.removeOnDelete||t!==Su&&t!==Tu||""!==n||(Nl(e,{propagation:!1}),this.tags=this.tags.slice(0,-1)):(Nl(e,{propagation:!1}),this.addTag())}},onClick:function(e){var t=this,n=this.computeIgnoreInputFocusSelector;n&&Xs(n,e.target,!0)||this.$nextTick((function(){t.focus()}))},onInputFocus:function(e){var t=this;"out"!==this.focusState&&(this.focusState="in",this.$nextTick((function(){Ys((function(){t.hasFocus&&(t.$emit(Hi,e),t.focusState=null)}))})))},onInputBlur:function(e){var t=this;"in"!==this.focusState&&(this.focusState="out",this.$nextTick((function(){Ys((function(){t.hasFocus||(t.$emit(_i,e),t.focusState=null)}))})))},onFocusin:function(e){this.hasFocus=!0,this.$emit(Bi,e)},onFocusout:function(e){this.hasFocus=!1,this.$emit(Ni,e)},handleAutofocus:function(){var e=this;this.$nextTick((function(){Ys((function(){e.autofocus&&e.focus()}))}))},focus:function(){this.disabled||hl(this.getInput())},blur:function(){this.disabled||fl(this.getInput())},splitTags:function(e){e=Ts(e);var t=this.computedSeparatorRegExp;return(t?e.split(t):[e]).map(Os).filter(st)},parseTags:function(e){var t=this,n=this.splitTags(e),r={all:n,valid:[],invalid:[],duplicate:[]};return n.forEach((function(e){cs(t.tags,e)||cs(r.valid,e)?cs(r.duplicate,e)||r.duplicate.push(e):t.validateTag(e)?r.valid.push(e):cs(r.invalid,e)||r.invalid.push(e)})),r},validateTag:function(e){var t=this.tagValidator;return!Yl(t)||t(e)},getInput:function(){return Vs("#".concat(sx(this.computedInputId)),this.$el)},defaultRender:function(e){var t=e.addButtonText,n=e.addButtonVariant,r=e.addTag,i=e.disableAddButton,a=e.disabled,o=e.duplicateTagText,s=e.inputAttrs,l=e.inputClass,c=e.inputHandlers,u=e.inputType,d=e.invalidTagText,h=e.isDuplicate,f=e.isInvalid,p=e.isLimitReached,m=e.limitTagsText,g=e.noTagRemove,v=e.placeholder,b=e.removeTag,y=e.tagClass,w=e.tagPills,x=e.tagRemoveLabel,_=e.tagVariant,A=e.tags,k=this.$createElement,S=A.map((function(e){return e=Ts(e),k(aA,{class:y,props:{disabled:a,noRemove:g,pill:w,removeLabel:x,tag:"li",title:e,variant:_},on:{remove:function(){return b(e)}},key:"tags_".concat(e)},e)})),T=d&&f?this.safeId("__invalid_feedback__"):null,M=o&&h?this.safeId("__duplicate_feedback__"):null,O=m&&p?this.safeId("__limit_feedback__"):null,L=[s["aria-describedby"],T,M,O].filter(st).join(" "),C=k("input",{staticClass:"b-form-tags-input w-100 flex-grow-1 p-0 m-0 bg-transparent border-0",class:l,style:{outline:0,minWidth:"5rem"},attrs:fA(fA({},s),{},{"aria-describedby":L||null,type:u,placeholder:v||null}),domProps:{value:s.value},on:c,directives:[{name:"model",value:s.value}],ref:"input"}),D=k(Ed,{staticClass:"b-form-tags-button py-0",class:{invisible:i},style:{fontSize:"90%"},props:{disabled:i||p,variant:n},on:{click:function(){return r()}},ref:"button"},[this.normalizeSlot(Ka)||t]),E=this.safeId("__tag_list__"),P=k("li",{staticClass:"b-form-tags-field flex-grow-1",attrs:{role:"none","aria-live":"off","aria-controls":E},key:"tags_field"},[k("div",{staticClass:"d-flex",attrs:{role:"group"}},[C,D])]),Y=k("ul",{staticClass:"b-form-tags-list list-unstyled mb-0 d-flex flex-wrap align-items-center",attrs:{id:E},key:"tags_list"},[S,P]),j=k();if(d||o||m){var I=this.feedbackAriaLive,R=this.computedJoiner,F=k();T&&(F=k(gy,{props:{id:T,ariaLive:I,forceShow:!0},key:"tags_invalid_feedback"},[this.invalidTagText,": ",this.invalidTags.join(R)]));var H=k();M&&(H=k(py,{props:{id:M,ariaLive:I},key:"tags_duplicate_feedback"},[this.duplicateTagText,": ",this.duplicateTags.join(R)]));var B=k();O&&(B=k(py,{props:{id:O,ariaLive:I},key:"tags_limit_feedback"},[m])),j=k("div",{attrs:{"aria-live":"polite","aria-atomic":"true"},key:"tags_feedback"},[F,H,B])}return[Y,j]}},render:function(e){var t=this.name,n=this.disabled,r=this.required,i=this.form,a=this.tags,o=this.computedInputId,s=this.hasFocus,l=this.noOuterFocus,c=fA({tags:a.slice(),inputAttrs:this.computedInputAttrs,inputType:this.computedInputType,inputHandlers:this.computedInputHandlers,removeTag:this.removeTag,addTag:this.addTag,reset:this.reset,inputId:o,isInvalid:this.hasInvalidTags,invalidTags:this.invalidTags.slice(),isDuplicate:this.hasDuplicateTags,duplicateTags:this.duplicateTags.slice(),isLimitReached:this.isLimitReached,disableAddButton:this.disableAddButton},Ue(this.$props,["addButtonText","addButtonVariant","disabled","duplicateTagText","form","inputClass","invalidTagText","limit","limitTagsText","noTagRemove","placeholder","required","separator","size","state","tagClass","tagPills","tagRemoveLabel","tagVariant"])),u=this.normalizeSlot(ao,c)||this.defaultRender(c),d=e("output",{staticClass:"sr-only",attrs:{id:this.safeId("__selected_tags__"),role:"status",for:o,"aria-live":s?"polite":"off","aria-atomic":"true","aria-relevant":"additions text"}},this.tags.join(", ")),h=e("div",{staticClass:"sr-only",attrs:{id:this.safeId("__removed_tags__"),role:"status","aria-live":s?"assertive":"off","aria-atomic":"true"}},this.removedTags.length>0?"(".concat(this.tagRemovedLabel,") ").concat(this.removedTags.join(", ")):""),f=e();if(t&&!n){var p=a.length>0;f=(p?a:[""]).map((function(n){return e("input",{class:{"sr-only":!p},attrs:{type:p?"hidden":"text",value:n,required:r,name:t,form:i},key:"tag_input_".concat(n)})}))}return e("div",{staticClass:"b-form-tags form-control h-auto",class:[{focus:s&&!l&&!n,disabled:n},this.sizeFormClass,this.stateClass],attrs:{id:this.safeId(),role:"group",tabindex:n||l?null:"-1","aria-describedby":this.safeId("__selected_tags__")},on:{click:this.onClick,focusin:this.onFocusin,focusout:this.onFocusout}},[d,h,u,f])}}),OA=Tt({components:{BFormTags:MA,BTags:MA,BFormTag:aA,BTag:aA}});function LA(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 CA(e){for(var t=1;td?s:"".concat(d,"px")}},render:function(e){return e("textarea",{class:this.computedClass,style:this.computedStyle,directives:[{name:"b-visible",value:this.visibleCallback,modifiers:{640:!0}}],attrs:this.computedAttrs,domProps:{value:this.localValue},on:this.computedListeners,ref:"input"})}}),jA=Tt({components:{BFormTextarea:YA,BTextarea:YA}});function IA(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 RA(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];if(ye(t)||ye(n)||i&&ye(r))return"";var a=[t,n,i?r:0];return a.map(ZA).join(":")},tk=El(qe(RA(RA(RA(RA({},sf),GA),Ue(K_,["labelIncrement","labelDecrement"])),{},{ariaLabelledby:Ol(Ra),disabled:Ol(Da,!1),footerTag:Ol(Ra,"footer"),headerTag:Ol(Ra,"header"),hidden:Ol(Da,!1),hideHeader:Ol(Da,!1),hour12:Ol(Da,null),labelAm:Ol(Ra,"AM"),labelAmpm:Ol(Ra,"AM/PM"),labelHours:Ol(Ra,"Hours"),labelMinutes:Ol(Ra,"Minutes"),labelNoTimeSelected:Ol(Ra,"No time selected"),labelPm:Ol(Ra,"PM"),labelSeconds:Ol(Ra,"Seconds"),labelSelected:Ol(Ra,"Selected time"),locale:Ol(Na),minutesStep:Ol(Xa,1),readonly:Ol(Da,!1),secondsStep:Ol(Xa,1),showSeconds:Ol(Da,!1)})),Ir),nk=mi({name:Ir,mixins:[lf,XA,gs],props:tk,data:function(){var e=JA(this[qA]||"");return{modelHours:e.hours,modelMinutes:e.minutes,modelSeconds:e.seconds,modelAmpm:e.ampm,isLive:!1}},computed:{computedHMS:function(){var e=this.modelHours,t=this.modelMinutes,n=this.modelSeconds;return ek({hours:e,minutes:t,seconds:n},this.showSeconds)},resolvedOptions:function(){var e=us(this.locale).filter(st),t={hour:KA,minute:KA,second:KA};we(this.hour12)||(t.hour12=!!this.hour12);var n=new Intl.DateTimeFormat(e,t),r=n.resolvedOptions(),i=r.hour12||!1,a=r.hourCycle||(i?"h12":"h23");return{locale:r.locale,hour12:i,hourCycle:a}},computedLocale:function(){return this.resolvedOptions.locale},computedLang:function(){return(this.computedLocale||"").replace(/-u-.*$/,"")},computedRTL:function(){return of(this.computedLang)},computedHourCycle:function(){return this.resolvedOptions.hourCycle},is12Hour:function(){return!!this.resolvedOptions.hour12},context:function(){return{locale:this.computedLocale,isRTL:this.computedRTL,hourCycle:this.computedHourCycle,hour12:this.is12Hour,hours:this.modelHours,minutes:this.modelMinutes,seconds:this.showSeconds?this.modelSeconds:0,value:this.computedHMS,formatted:this.formattedTimeString}},valueId:function(){return this.safeId()||null},computedAriaLabelledby:function(){return[this.ariaLabelledby,this.valueId].filter(st).join(" ")||null},timeFormatter:function(){var e={hour12:this.is12Hour,hourCycle:this.computedHourCycle,hour:KA,minute:KA,timeZone:"UTC"};return this.showSeconds&&(e.second=KA),Uh(this.computedLocale,e)},numberFormatter:function(){var e=new Intl.NumberFormat(this.computedLocale,{style:"decimal",minimumIntegerDigits:2,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return e.format},formattedTimeString:function(){var e=this.modelHours,t=this.modelMinutes,n=this.showSeconds&&this.modelSeconds||0;return this.computedHMS?this.timeFormatter(zh(Date.UTC(0,0,1,e,t,n))):this.labelNoTimeSelected||" "},spinScopedSlots:function(){var e=this.$createElement;return{increment:function(t){var n=t.hasFocus;return e(su,{props:{scale:n?1.5:1.25},attrs:{"aria-hidden":"true"}})},decrement:function(t){var n=t.hasFocus;return e(su,{props:{flipV:!0,scale:n?1.5:1.25},attrs:{"aria-hidden":"true"}})}}}},watch:(EA={},FA(EA,qA,(function(e,t){if(e!==t&&!Hu(JA(e),JA(this.computedHMS))){var n=JA(e),r=n.hours,i=n.minutes,a=n.seconds,o=n.ampm;this.modelHours=r,this.modelMinutes=i,this.modelSeconds=a,this.modelAmpm=o}})),FA(EA,"computedHMS",(function(e,t){e!==t&&this.$emit(QA,e)})),FA(EA,"context",(function(e,t){Hu(e,t)||this.$emit(Oi,e)})),FA(EA,"modelAmpm",(function(e,t){var n=this;if(e!==t){var r=ye(this.modelHours)?0:this.modelHours;this.$nextTick((function(){0===e&&r>11?n.modelHours=r-12:1===e&&r<12&&(n.modelHours=r+12)}))}})),FA(EA,"modelHours",(function(e,t){e!==t&&(this.modelAmpm=e>11?1:0)})),EA),created:function(){var e=this;this.$nextTick((function(){e.$emit(Oi,e.context)}))},mounted:function(){this.setLive(!0)},activated:function(){this.setLive(!0)},deactivated:function(){this.setLive(!1)},beforeDestroy:function(){this.setLive(!1)},methods:{focus:function(){this.disabled||hl(this.$refs.spinners[0])},blur:function(){if(!this.disabled){var e=Fs();Gs(this.$el,e)&&fl(e)}},formatHours:function(e){var t=this.computedHourCycle;return e=this.is12Hour&&e>12?e-12:e,e=0===e&&"h12"===t?12:0===e&&"h24"===t?24:12===e&&"h11"===t?0:e,this.numberFormatter(e)},formatMinutes:function(e){return this.numberFormatter(e)},formatSeconds:function(e){return this.numberFormatter(e)},formatAmpm:function(e){return 0===e?this.labelAm:1===e?this.labelPm:""},setHours:function(e){this.modelHours=e},setMinutes:function(e){this.modelMinutes=e},setSeconds:function(e){this.modelSeconds=e},setAmpm:function(e){this.modelAmpm=e},onSpinLeftRight:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.keyCode;if(!this.disabled&&"keydown"===t&&(n===Eu||n===ju)){Nl(e);var r=this.$refs.spinners||[],i=r.map((function(e){return!!e.hasFocus})).indexOf(!0);i+=n===Eu?-1:1,i=i>=r.length?0:i<0?r.length-1:i,hl(r[i])}},setLive:function(e){var t=this;e?this.$nextTick((function(){Ys((function(){t.isLive=!0}))})):this.isLive=!1}},render:function(e){var t=this;if(this.hidden)return e();var n=this.disabled,r=this.readonly,i=this.computedLocale,a=this.computedAriaLabelledby,o=this.labelIncrement,s=this.labelDecrement,l=this.valueId,c=this.focus,u=[],d=function(a,c,d){var h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=t.safeId("_spinbutton_".concat(c,"_"))||null;return u.push(f),e(Z_,FA({class:d,props:RA({id:f,placeholder:"--",vertical:!0,required:!0,disabled:n,readonly:r,locale:i,labelIncrement:o,labelDecrement:s,wrap:!0,ariaControls:l,min:0},h),scopedSlots:t.spinScopedSlots,on:{change:a},key:c,ref:"spinners"},fi,!0))},h=function(){return e("div",{staticClass:"d-flex flex-column",class:{"text-muted":n||r},attrs:{"aria-hidden":"true"}},[e(lu,{props:{shiftV:4,scale:.5}}),e(lu,{props:{shiftV:-4,scale:.5}})])},f=[];f.push(d(this.setHours,"hours","b-time-hours",{value:this.modelHours,max:23,step:1,formatterFn:this.formatHours,ariaLabel:this.labelHours})),f.push(h()),f.push(d(this.setMinutes,"minutes","b-time-minutes",{value:this.modelMinutes,max:59,step:this.minutesStep||1,formatterFn:this.formatMinutes,ariaLabel:this.labelMinutes})),this.showSeconds&&(f.push(h()),f.push(d(this.setSeconds,"seconds","b-time-seconds",{value:this.modelSeconds,max:59,step:this.secondsStep||1,formatterFn:this.formatSeconds,ariaLabel:this.labelSeconds}))),this.isLive&&this.is12Hour&&f.push(d(this.setAmpm,"ampm","b-time-ampm",{value:this.modelAmpm,max:1,formatterFn:this.formatAmpm,ariaLabel:this.labelAmpm,required:!1})),f=e("div",{staticClass:"d-flex align-items-center justify-content-center mx-auto",attrs:{role:"group",tabindex:n||r?null:"-1","aria-labelledby":a},on:{keydown:this.onSpinLeftRight,click:function(e){e.target===e.currentTarget&&c()}}},f);var p=e("output",{staticClass:"form-control form-control-sm text-center",class:{disabled:n||r},attrs:{id:l,role:"status",for:u.filter(st).join(" ")||null,tabindex:n?null:"-1","aria-live":this.isLive?"polite":"off","aria-atomic":"true"},on:{click:c,focus:c}},[e("bdi",this.formattedTimeString),this.computedHMS?e("span",{staticClass:"sr-only"}," (".concat(this.labelSelected,") ")):""]),m=e(this.headerTag,{staticClass:"b-time-header",class:{"sr-only":this.hideHeader}},[p]),g=this.normalizeSlot(),v=g?e(this.footerTag,{staticClass:"b-time-footer"},g):e();return e("div",{staticClass:"b-time d-inline-flex flex-column text-center",attrs:{role:"group",lang:this.computedLang||null,"aria-labelledby":a||null,"aria-disabled":n?"true":null,"aria-readonly":r&&!n?"true":null}},[m,f,v])}});function rk(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 ik(e){for(var t=1;t0&&o.push(e("span"," "));var l=this.labelResetButton;o.push(e(Ed,{props:{size:"sm",disabled:n||r,variant:this.resetButtonVariant},attrs:{"aria-label":l||null},on:{click:this.onResetButton},key:"reset-btn"},l))}if(!this.noCloseButton){o.length>0&&o.push(e("span"," "));var c=this.labelCloseButton;o.push(e(Ed,{props:{size:"sm",disabled:n,variant:this.closeButtonVariant},attrs:{"aria-label":c||null},on:{click:this.onCloseButton},key:"close-btn"},c))}o.length>0&&(o=[e("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":o.length>1,"justify-content-end":o.length<2}},o)]);var u=e(nk,{staticClass:"b-form-time-control",props:ik(ik({},Cl(dk,i)),{},{value:t,hidden:!this.isVisible}),on:{input:this.onInput,context:this.onContext},ref:"time"},o);return e(Lw,{staticClass:"b-form-timepicker",props:ik(ik({},Cl(hk,i)),{},{id:this.safeId(),value:t,formattedValue:t?this.formattedValue:"",placeholder:a,rtl:this.isRTL,lang:this.computedLang}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:ak({},no,this.$scopedSlots[no]||this.defaultButtonFn),ref:"control"},[u])}}),mk=Tt({components:{BFormTimepicker:pk,BTimepicker:pk}}),gk=Tt({components:{BImg:$f,BImgLazy:wp}}),vk=El({tag:Ol(Ra,"div")},Xn),bk=mi({name:Xn,functional:!0,props:vk,render:function(e,t){var n=t.props,r=t.data,i=t.children;return e(n.tag,ii(r,{staticClass:"input-group-text"}),i)}}),yk=El({append:Ol(Da,!1),id:Ol(Ra),isText:Ol(Da,!1),tag:Ol(Ra,"div")},$n),wk=mi({name:$n,functional:!0,props:yk,render:function(e,t){var n=t.props,r=t.data,i=t.children,a=n.append;return e(n.tag,ii(r,{class:{"input-group-append":a,"input-group-prepend":!a},attrs:{id:n.id}}),n.isText?[e(bk,i)]:i)}});function xk(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 _k(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:null;return e&&e.$options._scopeId||t};function kS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SS=mi({mixins:[_S],computed:{scopedStyleAttrs:function(){var e=AS(this.bvParent);return e?kS({},e,""):{}}}});function TS(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 MS(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=e.$root?e.$root.$options.bvEventRoot||e.$root:null;return new t(MS(MS({},n),{},{parent:e,bvParent:e,bvEventRoot:r}))},CS=mi({abstract:!0,name:Jr,props:{nodes:Ol(Fa)},data:function(e){return{updatedNodes:e.nodes}},destroyed:function(){Is(this.$el)},render:function(e){var t=this.updatedNodes,n=xe(t)?t({}):t;return n=us(n).filter(st),n&&n.length>0&&!n[0].text?n[0]:e()}}),DS={container:Ol([he,Ra],"body"),disabled:Ol(Da,!1),tag:Ol(Ra,"div")},ES=mi({name:Zr,mixins:[gs],props:DS,watch:{disabled:{immediate:!0,handler:function(e){e?this.unmountTarget():this.$nextTick(this.mountTarget)}}},created:function(){this.$_defaultFn=null,this.$_target=null},beforeMount:function(){this.mountTarget()},updated:function(){this.updateTarget()},beforeDestroy:function(){this.unmountTarget(),this.$_defaultFn=null},methods:{getContainer:function(){if(c){var e=this.container;return Ae(e)?Vs(e):e}return null},mountTarget:function(){if(!this.$_target){var e=this.getContainer();if(e){var t=document.createElement("div");e.appendChild(t),this.$_target=LS(this,CS,{el:t,propsData:{nodes:us(this.normalizeSlot())}})}}},updateTarget:function(){if(c&&this.$_target){var e=this.$scopedSlots.default;this.disabled||(e&&this.$_defaultFn!==e?this.$_target.updatedNodes=e:e||(this.$_target.updatedNodes=this.$slots.default)),this.$_defaultFn=e}},unmountTarget:function(){this.$_target&&this.$_target.$destroy(),this.$_target=null}},render:function(e){if(this.disabled){var t=us(this.normalizeSlot()).filter(st);if(t.length>0&&!t[0].text)return t[0]}return e()}}),PS=mi({name:Zr,mixins:[gs],props:DS,render:function(e){if(this.disabled){var t=us(this.normalizeSlot()).filter(st);if(t.length>0)return t[0]}return e(r["default"].Teleport,{to:this.container},this.normalizeSlot())}}),YS=hi?PS:ES;function jS(e){return jS="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},jS(e)}function IS(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 RS(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return HS(this,n),r=t.call(this,e,i),He(GS(r),{trigger:Qe()}),r}return NS(n,null,[{key:"Defaults",get:function(){return RS(RS({},zS(QS(n),"Defaults",this)),{},{trigger:null})}}]),n}(Uv),ZS=1040,JS=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",eT=".sticky-top",tT=".navbar-toggler",nT=mi({data:function(){return{modals:[],baseZIndex:null,scrollbarWidth:null,isBodyOverflowing:!1}},computed:{modalCount:function(){return this.modals.length},modalsAreOpen:function(){return this.modalCount>0}},watch:{modalCount:function(e,t){c&&(this.getScrollbarWidth(),e>0&&0===t?(this.checkScrollbar(),this.setScrollbar(),Qs(document.body,"modal-open")):0===e&&t>0&&(this.resetScrollbar(),Ks(document.body,"modal-open")),Js(document.body,"data-modal-open-count",String(e)))},modals:function(e){var t=this;this.checkScrollbar(),Ys((function(){t.updateModals(e||[])}))}},methods:{registerModal:function(e){e&&-1===this.modals.indexOf(e)&&this.modals.push(e)},unregisterModal:function(e){var t=this.modals.indexOf(e);t>-1&&(this.modals.splice(t,1),e._isBeingDestroyed||e._isDestroyed||this.resetModal(e))},getBaseZIndex:function(){if(c&&ye(this.baseZIndex)){var e=document.createElement("div");Qs(e,"modal-backdrop"),Qs(e,"d-none"),rl(e,"display","none"),document.body.appendChild(e),this.baseZIndex=vs(sl(e).zIndex,ZS),document.body.removeChild(e)}return this.baseZIndex||ZS},getScrollbarWidth:function(){if(c&&ye(this.scrollbarWidth)){var e=document.createElement("div");Qs(e,"modal-scrollbar-measure"),document.body.appendChild(e),this.scrollbarWidth=ol(e).width-e.clientWidth,document.body.removeChild(e)}return this.scrollbarWidth||0},updateModals:function(e){var t=this,n=this.getBaseZIndex(),r=this.getScrollbarWidth();e.forEach((function(e,i){e.zIndex=n+i,e.scrollbarWidth=r,e.isTop=i===t.modals.length-1,e.isBodyOverflowing=t.isBodyOverflowing}))},resetModal:function(e){e&&(e.zIndex=this.getBaseZIndex(),e.isTop=!0,e.isBodyOverflowing=!1)},checkScrollbar:function(){var e=ol(document.body),t=e.left,n=e.right;this.isBodyOverflowing=t+n0&&void 0!==arguments[0]&&arguments[0];this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,e&&(this.$_observer=Ip(this.$refs.content,this.checkModalOverflow.bind(this),wT))},updateModel:function(e){e!==this[uT]&&this.$emit(dT,e)},buildEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new KS(e,aT(aT({cancelable:!1,target:this.$refs.modal||this.$el||null,relatedTarget:null,trigger:null},t),{},{vueTarget:this,componentId:this.modalId}))},show:function(){if(!this.isVisible&&!this.isOpening)if(this.isClosing)this.$once(Wi,this.show);else{this.isOpening=!0,this.$_returnFocus=this.$_returnFocus||this.getActiveElement();var e=this.buildEvent(fa,{cancelable:!0});if(this.emitEvent(e),e.defaultPrevented||this.isVisible)return this.isOpening=!1,void this.updateModel(!1);this.doShow()}},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.isVisible&&!this.isClosing){this.isClosing=!0;var t=this.buildEvent($i,{cancelable:e!==pT,trigger:e||null});if(e===bT?this.$emit(Ki,t):e===gT?this.$emit(Ai,t):e===vT&&this.$emit(Mi,t),this.emitEvent(t),t.defaultPrevented||!this.isVisible)return this.isClosing=!1,void this.updateModel(!0);this.setObserver(!1),this.isVisible=!1,this.updateModel(!1)}},toggle:function(e){e&&(this.$_returnFocus=e),this.isVisible?this.hide(mT):this.show()},getActiveElement:function(){var e=Fs(c?[document.body]:[]);return e&&e.focus?e:null},doShow:function(){var e=this;rT.modalsAreOpen&&this.noStacking?this.listenOnRootOnce(Wl(tr,Wi),this.doShow):(rT.registerModal(this),this.isHidden=!1,this.$nextTick((function(){e.isVisible=!0,e.isOpening=!1,e.updateModel(!0),e.$nextTick((function(){e.setObserver(!0)}))})))},onBeforeEnter:function(){this.isTransitioning=!0,this.setResizeEvent(!0)},onEnter:function(){var e=this;this.isBlock=!0,Ys((function(){Ys((function(){e.isShow=!0}))}))},onAfterEnter:function(){var e=this;this.checkModalOverflow(),this.isTransitioning=!1,Ys((function(){e.emitEvent(e.buildEvent(pa)),e.setEnforceFocus(!0),e.$nextTick((function(){e.focusFirst()}))}))},onBeforeLeave:function(){this.isTransitioning=!0,this.setResizeEvent(!1),this.setEnforceFocus(!1)},onLeave:function(){this.isShow=!1},onAfterLeave:function(){var e=this;this.isBlock=!1,this.isTransitioning=!1,this.isModalOverflowing=!1,this.isHidden=!0,this.$nextTick((function(){e.isClosing=!1,rT.unregisterModal(e),e.returnFocusTo(),e.emitEvent(e.buildEvent(Wi))}))},emitEvent:function(e){var t=e.type;this.emitOnRoot(Wl(tr,t),e,e.componentId),this.$emit(t,e)},onDialogMousedown:function(){var e=this,t=this.$refs.modal,n=function n(r){Hl(t,"mouseup",n,Oa),r.target===t&&(e.ignoreBackdropClick=!0)};Fl(t,"mouseup",n,Oa)},onClickOut:function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:this.isVisible&&!this.noCloseOnBackdrop&&Gs(document.body,e.target)&&(Gs(this.$refs.content,e.target)||this.hide(hT))},onOk:function(){this.hide(bT)},onCancel:function(){this.hide(gT)},onClose:function(){this.hide(vT)},onEsc:function(e){e.keyCode===Cu&&this.isVisible&&!this.noCloseOnEsc&&this.hide(fT)},focusHandler:function(e){var t=this.$refs.content,n=e.target;if(!(this.noEnforceFocus||!this.isTop||!this.isVisible||!t||document===n||Gs(t,n)||this.computeIgnoreEnforceFocusSelector&&Xs(this.computeIgnoreEnforceFocusSelector,n,!0))){var r=dl(this.$refs.content),i=this.$refs["bottom-trap"],a=this.$refs["top-trap"];if(i&&n===i){if(hl(r[0]))return}else if(a&&n===a&&hl(r[r.length-1]))return;hl(t,{preventScroll:!0})}},setEnforceFocus:function(e){this.listenDocument(e,"focusin",this.focusHandler)},setResizeEvent:function(e){this.listenWindow(e,"resize",this.checkModalOverflow),this.listenWindow(e,"orientationchange",this.checkModalOverflow)},showHandler:function(e,t){e===this.modalId&&(this.$_returnFocus=t||this.getActiveElement(),this.show())},hideHandler:function(e){e===this.modalId&&this.hide("event")},toggleHandler:function(e,t){e===this.modalId&&this.toggle(t)},modalListener:function(e){this.noStacking&&e.vueTarget!==this&&this.hide()},focusFirst:function(){var e=this;c&&Ys((function(){var t=e.$refs.modal,n=e.$refs.content,r=e.getActiveElement();if(t&&n&&(!r||!Gs(n,r))){var i=e.$refs["ok-button"],a=e.$refs["cancel-button"],o=e.$refs["close-button"],s=e.autoFocusButton,l=s===bT&&i?i.$el||i:s===gT&&a?a.$el||a:s===vT&&o?o.$el||o:n;hl(l),l===n&&e.$nextTick((function(){t.scrollTop=0}))}}))},returnFocusTo:function(){var e=this.returnFocus||this.$_returnFocus||null;this.$_returnFocus=null,this.$nextTick((function(){e=Ae(e)?Vs(e):e,e&&(e=e.$el||e,hl(e))}))},checkModalOverflow:function(){if(this.isVisible){var e=this.$refs.modal;this.isModalOverflowing=e.scrollHeight>document.documentElement.clientHeight}},makeModal:function(e){var t=e();if(!this.hideHeader){var n=this.normalizeSlot(Po,this.slotScope);if(!n){var r=e();this.hideHeaderClose||(r=e(Xl,{props:{content:this.headerCloseContent,disabled:this.isTransitioning,ariaLabel:this.headerCloseLabel,textVariant:this.headerCloseVariant||this.headerTextVariant},on:{click:this.onClose},ref:"close-button"},[this.normalizeSlot(Yo)])),n=[e(this.titleTag,{staticClass:"modal-title",class:this.titleClasses,attrs:{id:this.modalTitleId},domProps:this.hasNormalizedSlot(Io)?{}:th(this.titleHtml,this.title)},this.normalizeSlot(Io,this.slotScope)),r]}t=e(this.headerTag,{staticClass:"modal-header",class:this.headerClasses,attrs:{id:this.modalHeaderId},ref:"header"},[n])}var i=e("div",{staticClass:"modal-body",class:this.bodyClasses,attrs:{id:this.modalBodyId},ref:"body"},this.normalizeSlot(ao,this.slotScope)),a=e();if(!this.hideFooter){var o=this.normalizeSlot(Eo,this.slotScope);if(!o){var s=e();this.okOnly||(s=e(Ed,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot(Do)?{}:th(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot(Do)));var l=e(Ed,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot(jo)?{}:th(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot(jo));o=[s,l]}a=e(this.footerTag,{staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.modalFooterId},ref:"footer"},[o])}var c=e("div",{staticClass:"modal-content",class:this.contentClass,attrs:{id:this.modalContentId,tabindex:"-1"},ref:"content"},[t,i,a]),u=e(),d=e();this.isVisible&&!this.noEnforceFocus&&(u=e("span",{attrs:{tabindex:"0"},ref:"top-trap"}),d=e("span",{attrs:{tabindex:"0"},ref:"bottom-trap"}));var h=e("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown},ref:"dialog"},[u,c,d]),f=e("div",{staticClass:"modal",class:this.modalClasses,style:this.modalStyles,attrs:this.computedModalAttrs,on:{keydown:this.onEsc,click:this.onClickOut},directives:[{name:"show",value:this.isVisible}],ref:"modal"},[h]);f=e("transition",{props:{enterClass:"",enterToClass:"",enterActiveClass:"",leaveClass:"",leaveActiveClass:"",leaveToClass:""},on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},[f]);var p=e();return!this.hideBackdrop&&this.isVisible&&(p=e("div",{staticClass:"modal-backdrop",attrs:{id:this.modalBackdropId}},this.normalizeSlot(Co))),p=e(tc,{props:{noFade:this.noFade}},[p]),e("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this[di])},[f,p])}},render:function(e){return this.static?this.lazy&&this.isHidden?e():this.makeModal(e):this.isHidden?e():e(YS,[this.makeModal(e)])}}),AT=$l(tr,fa),kT="__bv_modal_directive__",ST=function(e){var t=e.modifiers,n=void 0===t?{}:t,r=e.arg,i=e.value;return Ae(i)?i:Ae(r)?r:ze(n).reverse()[0]},TT=function(e){return e&&Us(e,".dropdown-menu > li, li.nav-item")&&Vs("a, button",e)||e},MT=function(e){e&&"BUTTON"!==e.tagName&&(nl(e,"role")||Js(e,"role","button"),"A"===e.tagName||nl(e,"tabindex")||Js(e,"tabindex","0"))},OT=function(e,t,n){var r=ST(t),i=TT(e);if(r&&i){var a=function(e){var i=e.currentTarget;if(!zs(i)){var a=e.type,o=e.keyCode;"click"!==a&&("keydown"!==a||o!==Lu&&o!==Iu)||Qu(Em(n,t)).$emit(AT,r,i)}};e[kT]={handler:a,target:r,trigger:i},MT(i),Fl(i,"click",a,Ma),"BUTTON"!==i.tagName&&"button"===tl(i,"role")&&Fl(i,"keydown",a,Ma)}},LT=function(e){var t=e[kT]||{},n=t.trigger,r=t.handler;n&&r&&(Hl(n,"click",r,Ma),Hl(n,"keydown",r,Ma),Hl(e,"click",r,Ma),Hl(e,"keydown",r,Ma)),delete e[kT]},CT=function(e,t,n){var r=e[kT]||{},i=ST(t),a=TT(e);i===r.target&&a===r.trigger||(LT(e,t,n),OT(e,t,n)),MT(a)},DT=function(){},ET={inserted:CT,updated:DT,componentUpdated:CT,unbind:LT};function PT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YT(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:GT;if(!ft(VT)&&!pt(VT)){var i=LS(e,t,{propsData:RT(RT(RT({},QT(vl(tr))),{},{hideHeaderClose:!0,hideHeader:!(n.title||n.titleHtml)},Xe(n,ze(qT))),{},{lazy:!1,busy:!1,visible:!1,noStacking:!1,noEnforceFocus:!1})});return ze(qT).forEach((function(e){be(n[e])||(i.$slots[qT[e]]=us(n[e]))})),new Promise((function(e,t){var n=!1;i.$once(Aa,(function(){n||t(new Error("BootstrapVue MsgBox destroyed before resolve"))})),i.$on($i,(function(t){if(!t.defaultPrevented){var i=r(t);t.defaultPrevented||(n=!0,e(i))}}));var a=document.createElement("div");document.body.appendChild(a),i.$mount(a)}))}},r=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(t&&!pt(VT)&&!ft(VT)&&xe(i))return n(e,RT(RT({},QT(r)),{},{msgBoxContent:t}),i)},i=function(){function e(t){PT(this,e),Re(this,{_vm:t,_root:Qu(t)}),He(this,{_vm:Qe(),_root:Qe()})}return jT(e,[{key:"show",value:function(e){if(e&&this._root){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{},n=RT(RT({},t),{},{okOnly:!0,okDisabled:!1,hideFooter:!1,msgBoxContent:e});return r(this._vm,e,n,(function(){return!0}))}},{key:"msgBoxConfirm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=RT(RT({},t),{},{okOnly:!1,okDisabled:!1,cancelDisabled:!1,hideFooter:!1});return r(this._vm,e,n,(function(e){var t=e.trigger;return"ok"===t||"cancel"!==t&&null}))}}]),e}();e.mixin({beforeCreate:function(){this[UT]=new i(this)}}),We(e.prototype,VT)||Be(e.prototype,VT,{get:function(){return this&&this[UT]||ht('"'.concat(VT,'" must be accessed from a Vue instance "this" context.'),tr),this[UT]}})},ZT=Tt({plugins:{plugin:KT}}),JT=Tt({components:{BModal:_T},directives:{VBModal:ET},plugins:{BVModalPlugin:ZT}});function eM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tM=function(e){return e="left"===e?"start":"right"===e?"end":e,"justify-content-".concat(e)},nM=El({align:Ol(Ra),cardHeader:Ol(Da,!1),fill:Ol(Da,!1),justified:Ol(Da,!1),pills:Ol(Da,!1),small:Ol(Da,!1),tabs:Ol(Da,!1),tag:Ol(Ra,"ul"),vertical:Ol(Da,!1)},rr),rM=mi({name:rr,functional:!0,props:nM,render:function(e,t){var n,r=t.props,i=t.data,a=t.children,o=r.tabs,s=r.pills,l=r.vertical,c=r.align,u=r.cardHeader;return e(r.tag,ii(i,{staticClass:"nav",class:(n={"nav-tabs":o,"nav-pills":s&&!o,"card-header-tabs":!l&&u&&o,"card-header-pills":!l&&u&&s&&!o,"flex-column":l,"nav-fill":!l&&r.fill,"nav-justified":!l&&r.justified},eM(n,tM(c),!l&&c),eM(n,"small",r.small),n)}),a)}});function iM(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 aM(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&t<=1})),overlayTag:Ol(Ra,"div"),rounded:Ol($a,!1),show:Ol(Da,!1),spinnerSmall:Ol(Da,!1),spinnerType:Ol(Ra,"border"),spinnerVariant:Ol(Ra),variant:Ol(Ra,"light"),wrapTag:Ol(Ra,"div"),zIndex:Ol(Xa,10)},hr),iO=mi({name:hr,mixins:[gs],props:rO,computed:{computedRounded:function(){var e=this.rounded;return!0===e||""===e?"rounded":e?"rounded-".concat(e):""},computedVariant:function(){var e=this.variant;return e&&!this.bgColor?"bg-".concat(e):""},slotScope:function(){return{spinnerType:this.spinnerType||null,spinnerVariant:this.spinnerVariant||null,spinnerSmall:this.spinnerSmall}}},methods:{defaultOverlayFn:function(e){var t=e.spinnerType,n=e.spinnerVariant,r=e.spinnerSmall;return this.$createElement(KM,{props:{type:t,variant:n,small:r}})}},render:function(e){var t=this,n=this.show,r=this.fixed,i=this.noFade,a=this.noWrap,o=this.slotScope,s=e();if(n){var l=e("div",{staticClass:"position-absolute",class:[this.computedVariant,this.computedRounded],style:JM(JM({},nO),{},{opacity:this.opacity,backgroundColor:this.bgColor||null,backdropFilter:this.blur?"blur(".concat(this.blur,")"):null})}),c=e("div",{staticClass:"position-absolute",style:this.noCenter?JM({},nO):{top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"}},[this.normalizeSlot(Vo,o)||this.defaultOverlayFn(o)]);s=e(this.overlayTag,{staticClass:"b-overlay",class:{"position-absolute":!a||a&&!r,"position-fixed":a&&r},style:JM(JM({},nO),{},{zIndex:this.zIndex||10}),on:{click:function(e){return t.$emit(Ti,e)}},key:"overlay"},[l,c])}return s=e(tc,{props:{noFade:i,appear:!0},on:{"after-enter":function(){return t.$emit(pa)},"after-leave":function(){return t.$emit(Wi)}}},[s]),a?s:e(this.wrapTag,{staticClass:"b-overlay-wrap position-relative",attrs:{"aria-busy":n?"true":null}},a?[s]:[this.normalizeSlot(),s])}}),aO=Tt({components:{BOverlay:iO}});function oO(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 sO(e){for(var t=1;tt?t:n<1?1:n},yO=function(e){if(e.keyCode===Iu)return Nl(e,{immediatePropagation:!0}),e.currentTarget.click(),!1},wO=El(qe(sO(sO({},dO),{},{align:Ol(Ra,"left"),ariaLabel:Ol(Ra,"Pagination"),disabled:Ol(Da,!1),ellipsisClass:Ol(Ba),ellipsisText:Ol(Ra,"…"),firstClass:Ol(Ba),firstNumber:Ol(Da,!1),firstText:Ol(Ra,"«"),hideEllipsis:Ol(Da,!1),hideGotoEndButtons:Ol(Da,!1),labelFirstPage:Ol(Ra,"Go to first page"),labelLastPage:Ol(Ra,"Go to last page"),labelNextPage:Ol(Ra,"Go to next page"),labelPage:Ol(Ua,"Go to page"),labelPrevPage:Ol(Ra,"Go to previous page"),lastClass:Ol(Ba),lastNumber:Ol(Da,!1),lastText:Ol(Ra,"»"),limit:Ol(Xa,mO,(function(e){return!(vs(e,0)<1)||(ht('Prop "limit" must be a number greater than "0"',fr),!1)})),nextClass:Ol(Ba),nextText:Ol(Ra,"›"),pageClass:Ol(Ba),pills:Ol(Da,!1),prevClass:Ol(Ba),prevText:Ol(Ra,"‹"),size:Ol(Ra)})),"pagination"),xO=mi({mixins:[uO,gs],props:wO,data:function(){var e=vs(this[hO],0);return e=e>0?e:-1,{currentPage:e,localNumberOfPages:1,localLimit:mO}},computed:{btnSize:function(){var e=this.size;return e?"pagination-".concat(e):""},alignment:function(){var e=this.align;return"center"===e?"justify-content-center":"end"===e||"right"===e?"justify-content-end":"fill"===e?"text-center":""},styleClass:function(){return this.pills?"b-pagination-pills":""},computedCurrentPage:function(){return bO(this.currentPage,this.localNumberOfPages)},paginationParams:function(){var e=this.localLimit,t=this.localNumberOfPages,n=this.computedCurrentPage,r=this.hideEllipsis,i=this.firstNumber,a=this.lastNumber,o=!1,s=!1,l=e,c=1;t<=e?l=t:npO?(r&&!a||(s=!0,l=e-(i?0:1)),l=mc(l,e)):t-n+2pO?(r&&!i||(o=!0,l=e-(a?0:1)),c=t-l+1):(e>pO&&(l=e-(r?0:2),o=!(r&&!i),s=!(r&&!a)),c=n-yc(l/2)),c<1?(c=1,o=!1):c>t-l&&(c=t-l+1,s=!1),o&&i&&c<4&&(l+=2,c=1,o=!1);var u=c+l-1;return s&&a&&u>t-3&&(l+=u===t-2?2:3,s=!1),e<=pO&&(i&&1===c?l=mc(l+1,t,e+1):a&&t===c+l-1&&(c=gc(c-1,1),l=mc(t-c+1,t,e+1))),l=mc(l,t-c+1),{showFirstDots:o,showLastDots:s,numberOfLinks:l,startNumber:c}},pageList:function(){var e=this.paginationParams,t=e.numberOfLinks,n=e.startNumber,r=this.computedCurrentPage,i=gO(n,t);if(i.length>3){var a=r-n,o="bv-d-xs-down-none";if(0===a)for(var s=3;sa+1;u--)i[u].classes=o}}return i}},watch:(tO={},lO(tO,hO,(function(e,t){e!==t&&(this.currentPage=bO(e,this.localNumberOfPages))})),lO(tO,"currentPage",(function(e,t){e!==t&&this.$emit(fO,e>0?e:null)})),lO(tO,"limit",(function(e,t){e!==t&&(this.localLimit=vO(e))})),tO),created:function(){var e=this;this.localLimit=vO(this.limit),this.$nextTick((function(){e.currentPage=e.currentPage>e.localNumberOfPages?e.localNumberOfPages:e.currentPage}))},methods:{handleKeyNav:function(e){var t=e.keyCode,n=e.shiftKey;this.isNav||(t===Eu||t===Ru?(Nl(e,{propagation:!1}),n?this.focusFirst():this.focusPrev()):t!==ju&&t!==Mu||(Nl(e,{propagation:!1}),n?this.focusLast():this.focusNext()))},getButtons:function(){return $s("button.page-link, a.page-link",this.$el).filter((function(e){return Ns(e)}))},focusCurrent:function(){var e=this;this.$nextTick((function(){var t=e.getButtons().find((function(t){return vs(tl(t,"aria-posinset"),0)===e.computedCurrentPage}));hl(t)||e.focusFirst()}))},focusFirst:function(){var e=this;this.$nextTick((function(){var t=e.getButtons().find((function(e){return!zs(e)}));hl(t)}))},focusLast:function(){var e=this;this.$nextTick((function(){var t=e.getButtons().reverse().find((function(e){return!zs(e)}));hl(t)}))},focusPrev:function(){var e=this;this.$nextTick((function(){var t=e.getButtons(),n=t.indexOf(Fs());n>0&&!zs(t[n-1])&&hl(t[n-1])}))},focusNext:function(){var e=this;this.$nextTick((function(){var t=e.getButtons(),n=t.indexOf(Fs());ns,p=n<1?1:n>s?s:n,v={disabled:h,page:p,index:p-1},b=t.normalizeSlot(a,v)||Ts(l)||e(),y=e(h?"span":o?bd:"button",{staticClass:"page-link",class:{"flex-grow-1":!o&&!h&&f},props:h||!o?{}:t.linkProps(n),attrs:{role:o?null:"menuitem",type:o||h?null:"button",tabindex:h||o?null:"-1","aria-label":i,"aria-controls":Ec(t).ariaControls||null,"aria-disabled":h?"true":null},on:h?{}:{"!click":function(e){t.onClick(e,n)},keydown:yO}},[b]);return e("li",{key:d,staticClass:"page-item",class:[{disabled:h,"flex-fill":f,"d-flex":f&&!o&&!h},c],attrs:{role:o?null:"presentation","aria-hidden":h?"true":null}},[y])},b=function(n){return e("li",{staticClass:"page-item",class:["disabled","bv-d-xs-down-none",f?"flex-fill":"",t.ellipsisClass],attrs:{role:"separator"},key:"ellipsis-".concat(n?"last":"first")},[e("span",{staticClass:"page-link"},[t.normalizeSlot(co)||Ts(t.ellipsisText)||e()])])},y=function(n,a){var l=n.number,c=m(l)&&!g,u=r?null:c||g&&0===a?"0":"-1",d={role:o?null:"menuitemradio",type:o||r?null:"button","aria-disabled":r?"true":null,"aria-controls":Ec(t).ariaControls||null,"aria-label":Yl(i)?i(l):"".concat(xe(i)?i():i," ").concat(l),"aria-checked":o?null:c?"true":"false","aria-current":o&&c?"page":null,"aria-posinset":o?null:l,"aria-setsize":o?null:s,tabindex:o?null:u},h=Ts(t.makePage(l)),p={page:l,index:l-1,content:h,active:c,disabled:r},v=e(r?"span":o?bd:"button",{props:r||!o?{}:t.linkProps(l),staticClass:"page-link",class:{"flex-grow-1":!o&&!r&&f},attrs:d,on:r?{}:{"!click":function(e){t.onClick(e,l)},keydown:yO}},[t.normalizeSlot(Uo,p)||h]);return e("li",{staticClass:"page-item",class:[{disabled:r,active:c,"flex-fill":f,"d-flex":f&&!o&&!r},n.classes,t.pageClass],attrs:{role:o?null:"presentation"},key:"page-".concat(l)},[v])},w=e();this.firstNumber||this.hideGotoEndButtons||(w=v(1,this.labelFirstPage,mo,this.firstText,this.firstClass,1,"pagination-goto-first")),p.push(w),p.push(v(l-1,this.labelPrevPage,qo,this.prevText,this.prevClass,1,"pagination-goto-prev")),p.push(this.firstNumber&&1!==c[0]?y({number:1},0):e()),p.push(d?b(!1):e()),this.pageList.forEach((function(e,n){var r=d&&t.firstNumber&&1!==c[0]?1:0;p.push(y(e,n+r))})),p.push(h?b(!0):e()),p.push(this.lastNumber&&c[c.length-1]!==s?y({number:s},-1):e()),p.push(v(l+1,this.labelNextPage,$o,this.nextText,this.nextClass,s,"pagination-goto-next"));var x=e();this.lastNumber||this.hideGotoEndButtons||(x=v(s,this.labelLastPage,Mo,this.lastText,this.lastClass,s,"pagination-goto-last")),p.push(x);var _=e("ul",{staticClass:"pagination",class:["b-pagination",this.btnSize,this.alignment,this.styleClass],attrs:{role:o?null:"menubar","aria-disabled":r?"true":"false","aria-label":o?null:a||null},on:o?{}:{keydown:this.handleKeyNav},ref:"ul"},p);return o?e("nav",{attrs:{"aria-disabled":r?"true":null,"aria-hidden":r?"true":"false","aria-label":o&&a||null}},[_]):_}});function _O(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 AO(e){for(var t=1;te.numberOfPages)&&(this.currentPage=1),this.localNumberOfPages=e.numberOfPages}},created:function(){var e=this;this.localNumberOfPages=this.numberOfPages;var t=vs(this[hO],0);t>0?this.currentPage=t:this.$nextTick((function(){e.currentPage=0}))},methods:{onClick:function(e,t){var n=this;if(t!==this.currentPage){var r=e.target,i=new Uv(Ji,{cancelable:!0,vueTarget:this,target:r});this.$emit(i.type,i,t),i.defaultPrevented||(this.currentPage=t,this.$emit(ki,this.currentPage),this.$nextTick((function(){Ns(r)&&n.$el.contains(r)?hl(r):n.focusCurrent()})))}},makePage:function(e){return e},linkProps:function(){return{}}}}),DO=Tt({components:{BPagination:CO}});function EO(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 PO(e){for(var t=1;t0?this.localNumberOfPages=this.pages.length:this.localNumberOfPages=jO(this.numberOfPages),this.$nextTick((function(){e.guessCurrentPage()}))},onClick:function(e,t){var n=this;if(t!==this.currentPage){var r=e.currentTarget||e.target,i=new Uv(Ji,{cancelable:!0,vueTarget:this,target:r});this.$emit(i.type,i,t),i.defaultPrevented||(Ys((function(){n.currentPage=t,n.$emit(ki,t)})),this.$nextTick((function(){fl(r)})))}},getPageInfo:function(e){if(!Te(this.pages)||0===this.pages.length||be(this.pages[e-1])){var t="".concat(this.baseUrl).concat(e);return{link:this.useRouter?{path:t}:t,text:Ts(e)}}var n=this.pages[e-1];if(Me(n)){var r=n.link;return{link:Me(r)?r:this.useRouter?{path:r}:r,text:Ts(n.text||e)}}return{link:Ts(n),text:Ts(e)}},makePage:function(e){var t=this.pageGen,n=this.getPageInfo(e);return Yl(t)?t(e,n):n.text},makeLink:function(e){var t=this.linkGen,n=this.getPageInfo(e);return Yl(t)?t(e,n):n.link},linkProps:function(e){var t=Cl(IO,this),n=this.makeLink(e);return this.useRouter||Me(n)?t.to=n:t.href=n,t},resolveLink:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{e=document.createElement("a"),e.href=Wc({to:t},"a","/","/"),document.body.appendChild(e);var n=e,r=n.pathname,i=n.hash,a=n.search;return document.body.removeChild(e),{path:r,hash:i,query:Fc(a)}}catch(ei){try{e&&e.parentNode&&e.parentNode.removeChild(e)}catch(o){}return{}}},resolveRoute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{var t=this.$router.resolve(e,this.$route).route;return{path:t.path,hash:t.hash,query:t.query}}catch(ei){return{}}},guessCurrentPage:function(){var e=this.$router,t=this.$route,n=this.computedValue;if(!this.noPageDetect&&!n&&(c||!c&&e))for(var r=e&&t?{path:t.path,hash:t.hash,query:t.query}:{},i=c?window.location||document.location:null,a=i?{path:i.pathname,hash:i.hash,query:Fc(i.search)}:{},o=1;!n&&o<=this.localNumberOfPages;o++){var s=this.makeLink(o);n=e&&(Me(s)||this.useRouter)?Hu(this.resolveRoute(s),r)?o:null:c?Hu(this.resolveLink(s),a)?o:null:-1}this.currentPage=n>0?n:0}}}),HO=Tt({components:{BPaginationNav:FO}}),BO={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left",TOPLEFT:"top",TOPRIGHT:"top",RIGHTTOP:"right",RIGHTBOTTOM:"right",BOTTOMLEFT:"bottom",BOTTOMRIGHT:"bottom",LEFTTOP:"left",LEFTBOTTOM:"left"},NO={AUTO:0,TOPLEFT:-1,TOP:0,TOPRIGHT:1,RIGHTTOP:-1,RIGHT:0,RIGHTBOTTOM:1,BOTTOMLEFT:-1,BOTTOM:0,BOTTOMRIGHT:1,LEFTTOP:-1,LEFT:0,LEFTBOTTOM:1},zO={arrowPadding:Ol(Xa,6),boundary:Ol([he,Ra],"scrollParent"),boundaryPadding:Ol(Xa,5),fallbackPlacement:Ol(Na,"flip"),offset:Ol(Xa,0),placement:Ol(Ra,"top"),target:Ol([he,fe])},WO=mi({name:Ur,mixins:[_S],props:zO,data:function(){return{noFade:!1,localShow:!0,attachment:this.getAttachment(this.placement)}},computed:{templateType:function(){return"unknown"},popperConfig:function(){var e=this,t=this.placement;return{placement:this.getAttachment(t),modifiers:{offset:{offset:this.getOffset(t)},flip:{behavior:this.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{padding:this.boundaryPadding,boundariesElement:this.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e.popperPlacementChange(t)},onUpdate:function(t){e.popperPlacementChange(t)}}}},created:function(){var e=this;this.$_popper=null,this.localShow=!0,this.$on(fa,(function(t){e.popperCreate(t)}));var t=function(){e.$nextTick((function(){Ys((function(){e.$destroy()}))}))};this.bvParent.$once(Aa,t),this.$once(Wi,t)},beforeMount:function(){this.attachment=this.getAttachment(this.placement)},updated:function(){this.updatePopper()},beforeDestroy:function(){this.destroyPopper()},destroyed:function(){var e=this.$el;e&&e.parentNode&&e.parentNode.removeChild(e)},methods:{hide:function(){this.localShow=!1},getAttachment:function(e){return BO[String(e).toUpperCase()]||"auto"},getOffset:function(e){if(!this.offset){var t=this.$refs.arrow||Vs(".arrow",this.$el),n=bs(sl(t).width,0)+bs(this.arrowPadding,0);switch(NO[String(e).toUpperCase()]||0){case 1:return"+50%p - ".concat(n,"px");case-1:return"-50%p + ".concat(n,"px");default:return 0}}return this.offset},popperCreate:function(e){this.destroyPopper(),this.$_popper=new Iv(this.target,e,this.popperConfig)},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){this.$_popper&&this.$_popper.scheduleUpdate()},popperPlacementChange:function(e){this.attachment=this.getAttachment(e.placement)},renderTemplate:function(e){return e("div")}},render:function(e){var t=this,n=this.noFade;return e(tc,{props:{appear:!0,noFade:n},on:{beforeEnter:function(e){return t.$emit(fa,e)},afterEnter:function(e){return t.$emit(pa,e)},beforeLeave:function(e){return t.$emit($i,e)},afterLeave:function(e){return t.$emit(Wi,e)}}},[this.localShow?this.renderTemplate(e):e()])}});function $O(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 VO(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=!1;ze(sL).forEach((function(r){be(t[r])||e[r]===t[r]||(e[r]=t[r],"title"===r&&(n=!0))})),n&&this.localShow&&this.fixTitle()},createTemplateAndShow:function(){var e=this.getContainer(),t=this.getTemplate(),n=this.$_tip=LS(this,t,{propsData:{id:this.computedId,html:this.html,placement:this.placement,fallbackPlacement:this.fallbackPlacement,target:this.getPlacementTarget(),boundary:this.getBoundary(),offset:vs(this.offset,0),arrowPadding:vs(this.arrowPadding,0),boundaryPadding:vs(this.boundaryPadding,0)}});this.handleTemplateUpdate(),n.$once(fa,this.onTemplateShow),n.$once(pa,this.onTemplateShown),n.$once($i,this.onTemplateHide),n.$once(Wi,this.onTemplateHidden),n.$once(Aa,this.destroyTemplate),n.$on(Bi,this.handleEvent),n.$on(Ni,this.handleEvent),n.$on(Gi,this.handleEvent),n.$on(qi,this.handleEvent),n.$mount(e.appendChild(document.createElement("div")))},hideTemplate:function(){this.$_tip&&this.$_tip.hide(),this.clearActiveTriggers(),this.$_hoverState=""},destroyTemplate:function(){this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.localPlacementTarget=null;try{this.$_tip.$destroy()}catch(e){}this.$_tip=null,this.removeAriaDescribedby(),this.restoreTitle(),this.localShow=!1},getTemplateElement:function(){return this.$_tip?this.$_tip.$el:null},handleTemplateUpdate:function(){var e=this,t=this.$_tip;if(t){var n=["title","content","variant","customClass","noFade","interactive"];n.forEach((function(n){t[n]!==e[n]&&(t[n]=e[n])}))}},show:function(){var e=this.getTarget();if(e&&Gs(document.body,e)&&Ns(e)&&!this.dropdownOpen()&&(!we(this.title)&&""!==this.title||!we(this.content)&&""!==this.content)&&!this.$_tip&&!this.localShow){this.localShow=!0;var t=this.buildEvent(fa,{cancelable:!0});this.emitEvent(t),t.defaultPrevented?this.destroyTemplate():(this.fixTitle(),this.addAriaDescribedby(),this.createTemplateAndShow())}},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.getTemplateElement();if(t&&this.localShow){var n=this.buildEvent($i,{cancelable:!e});this.emitEvent(n),n.defaultPrevented||this.hideTemplate()}else this.restoreTitle()},forceHide:function(){var e=this.getTemplateElement();e&&this.localShow&&(this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.$_tip&&(this.$_tip.noFade=!0),this.hide(!0))},enable:function(){this.$_enabled=!0,this.emitEvent(this.buildEvent(Ii))},disable:function(){this.$_enabled=!1,this.emitEvent(this.buildEvent(Ei))},onTemplateShow:function(){this.setWhileOpenListeners(!0)},onTemplateShown:function(){var e=this.$_hoverState;this.$_hoverState="","out"===e&&this.leave(null),this.emitEvent(this.buildEvent(pa))},onTemplateHide:function(){this.setWhileOpenListeners(!1)},onTemplateHidden:function(){this.destroyTemplate(),this.emitEvent(this.buildEvent(Wi))},getTarget:function(){var e=this.target;return Ae(e)?e=qs(e.replace(/^#/,"")):xe(e)?e=e():e&&(e=e.$el||e),Rs(e)?e:null},getPlacementTarget:function(){return this.getTarget()},getTargetId:function(){var e=this.getTarget();return e&&e.id?e.id:null},getContainer:function(){var e=!!this.container&&(this.container.$el||this.container),t=document.body,n=this.getTarget();return!1===e?Xs(rL,n)||t:Ae(e)&&qs(e.replace(/^#/,""))||t},getBoundary:function(){return this.boundary?this.boundary.$el||this.boundary:"scrollParent"},isInModal:function(){var e=this.getTarget();return e&&Xs(eL,e)},isDropdown:function(){var e=this.getTarget();return e&&Zs(e,iL)},dropdownOpen:function(){var e=this.getTarget();return this.isDropdown()&&e&&Vs(aL,e)},clearHoverTimeout:function(){clearTimeout(this.$_hoverTimeout),this.$_hoverTimeout=null},clearVisibilityInterval:function(){clearInterval(this.$_visibleInterval),this.$_visibleInterval=null},clearActiveTriggers:function(){for(var e in this.activeTrigger)this.activeTrigger[e]=!1},addAriaDescribedby:function(){var e=this.getTarget(),t=tl(e,"aria-describedby")||"";t=t.split(/\s+/).concat(this.computedId).join(" ").trim(),Js(e,"aria-describedby",t)},removeAriaDescribedby:function(){var e=this,t=this.getTarget(),n=tl(t,"aria-describedby")||"";n=n.split(/\s+/).filter((function(t){return t!==e.computedId})).join(" ").trim(),n?Js(t,"aria-describedby",n):el(t,"aria-describedby")},fixTitle:function(){var e=this.getTarget();if(nl(e,"title")){var t=tl(e,"title");Js(e,"title",""),t&&Js(e,oL,t)}},restoreTitle:function(){var e=this.getTarget();if(nl(e,oL)){var t=tl(e,oL);el(e,oL),t&&Js(e,"title",t)}},buildEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Uv(e,QO({cancelable:!1,target:this.getTarget(),relatedTarget:this.getTemplateElement()||null,componentId:this.computedId,vueTarget:this},t))},emitEvent:function(e){var t=e.type;this.emitOnRoot(Wl(this.templateType,t),e),this.$emit(t,e)},listen:function(){var e=this,t=this.getTarget();t&&(this.setRootListener(!0),this.computedTriggers.forEach((function(n){"click"===n?Fl(t,"click",e.handleEvent,Oa):"focus"===n?(Fl(t,"focusin",e.handleEvent,Oa),Fl(t,"focusout",e.handleEvent,Oa)):"blur"===n?Fl(t,"focusout",e.handleEvent,Oa):"hover"===n&&(Fl(t,"mouseenter",e.handleEvent,Oa),Fl(t,"mouseleave",e.handleEvent,Oa))}),this))},unListen:function(){var e=this,t=["click","focusin","focusout","mouseenter","mouseleave"],n=this.getTarget();this.setRootListener(!1),t.forEach((function(t){n&&Hl(n,t,e.handleEvent,Oa)}),this)},setRootListener:function(e){var t=e?"listenOnRoot":"listenOffRoot",n=this.templateType;this[t]($l(n,$i),this.doHide),this[t]($l(n,fa),this.doShow),this[t]($l(n,Di),this.doDisable),this[t]($l(n,ji),this.doEnable)},setWhileOpenListeners:function(e){this.setModalListener(e),this.setDropdownListener(e),this.visibleCheck(e),this.setOnTouchStartListener(e)},visibleCheck:function(e){var t=this;this.clearVisibilityInterval();var n=this.getTarget();e&&(this.$_visibleInterval=setInterval((function(){var e=t.getTemplateElement();!e||!t.localShow||n.parentNode&&Ns(n)||t.forceHide()}),100))},setModalListener:function(e){this.isInModal()&&this[e?"listenOnRoot":"listenOffRoot"](tL,this.forceHide)},setOnTouchStartListener:function(e){var t=this;"ontouchstart"in document.documentElement&&ls(document.body.children).forEach((function(n){Bl(e,n,"mouseover",t.$_noop)}))},setDropdownListener:function(e){var t=this.getTarget();if(t&&this.bvEventRoot&&this.isDropdown){var n=Zv(t);n&&n[e?"$on":"$off"](pa,this.forceHide)}},handleEvent:function(e){var t=this.getTarget();if(t&&!zs(t)&&this.$_enabled&&!this.dropdownOpen()){var n=e.type,r=this.computedTriggers;if("click"===n&&cs(r,"click"))this.click(e);else if("mouseenter"===n&&cs(r,"hover"))this.enter(e);else if("focusin"===n&&cs(r,"focus"))this.enter(e);else if("focusout"===n&&(cs(r,"focus")||cs(r,"blur"))||"mouseleave"===n&&cs(r,"hover")){var i=this.getTemplateElement(),a=e.target,o=e.relatedTarget;if(i&&Gs(i,a)&&Gs(t,o)||i&&Gs(t,a)&&Gs(i,o)||i&&Gs(i,a)&&Gs(i,o)||Gs(t,a)&&Gs(t,o))return;this.leave(e)}}},doHide:function(e){e&&this.getTargetId()!==e&&this.computedId!==e||this.forceHide()},doShow:function(e){e&&this.getTargetId()!==e&&this.computedId!==e||this.show()},doDisable:function(e){e&&this.getTargetId()!==e&&this.computedId!==e||this.disable()},doEnable:function(e){e&&this.getTargetId()!==e&&this.computedId!==e||this.enable()},click:function(e){this.$_enabled&&!this.dropdownOpen()&&(hl(e.currentTarget),this.activeTrigger.click=!this.activeTrigger.click,this.isWithActiveTrigger?this.enter(null):this.leave(null))},toggle:function(){this.$_enabled&&!this.dropdownOpen()&&(this.localShow?this.leave(null):this.enter(null))},enter:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&(this.activeTrigger["focusin"===t.type?"focus":"hover"]=!0),this.localShow||"in"===this.$_hoverState?this.$_hoverState="in":(this.clearHoverTimeout(),this.$_hoverState="in",this.computedDelay.show?(this.fixTitle(),this.$_hoverTimeout=setTimeout((function(){"in"===e.$_hoverState?e.show():e.localShow||e.restoreTitle()}),this.computedDelay.show)):this.show())},leave:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&(this.activeTrigger["focusout"===t.type?"focus":"hover"]=!1,"focusout"===t.type&&cs(this.computedTriggers,"blur")&&(this.activeTrigger.click=!1,this.activeTrigger.hover=!1)),this.isWithActiveTrigger||(this.clearHoverTimeout(),this.$_hoverState="out",this.computedDelay.hide?this.$_hoverTimeout=setTimeout((function(){"out"===e.$_hoverState&&e.hide()}),this.computedDelay.hide):this.hide())}}});function cL(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 uL(e){for(var t=1;t0&&e[OL].updateData(t)}))}var a={title:r.title,content:r.content,triggers:r.trigger,placement:r.placement,fallbackPlacement:r.fallbackPlacement,variant:r.variant,customClass:r.customClass,container:r.container,boundary:r.boundary,delay:r.delay,offset:r.offset,noFade:!r.animation,id:r.id,disabled:r.disabled,html:r.html},o=e[OL].__bv_prev_data__;if(e[OL].__bv_prev_data__=a,!Hu(a,o)){var s={target:e};ze(a).forEach((function(t){a[t]!==o[t]&&(s[t]="title"!==t&&"content"!==t||!xe(a[t])?a[t]:a[t](e))})),e[OL].updateData(s)}}},WL=function(e){e[OL]&&(e[OL].$destroy(),e[OL]=null),delete e[OL]},$L={bind:function(e,t,n){zL(e,t,n)},componentUpdated:function(e,t,n){wi((function(){zL(e,t,n)}))},unbind:function(e){WL(e)}},VL=Tt({directives:{VBPopover:$L}}),UL=Tt({components:{BPopover:kL},plugins:{VBPopoverPlugin:VL}}),XL=El({animated:Ol(Da,null),label:Ol(Ra),labelHtml:Ol(Ra),max:Ol(Xa,null),precision:Ol(Xa,null),showProgress:Ol(Da,null),showValue:Ol(Da,null),striped:Ol(Da,null),value:Ol(Xa,0),variant:Ol(Ra)},vr),GL=mi({name:vr,mixins:[gs],inject:{getBvProgress:{default:function(){return function(){return{}}}}},props:XL,computed:{bvProgress:function(){return this.getBvProgress()},progressBarClasses:function(){var e=this.computedAnimated,t=this.computedVariant;return[t?"bg-".concat(t):"",this.computedStriped||e?"progress-bar-striped":"",e?"progress-bar-animated":""]},progressBarStyles:function(){return{width:this.computedValue/this.computedMax*100+"%"}},computedValue:function(){return bs(this.value,0)},computedMax:function(){var e=bs(this.max)||bs(this.bvProgress.max,0);return e>0?e:100},computedPrecision:function(){return gc(vs(this.precision,vs(this.bvProgress.precision,0)),0)},computedProgress:function(){var e=this.computedPrecision,t=wc(10,e);return ys(100*t*this.computedValue/this.computedMax/t,e)},computedVariant:function(){return this.variant||this.bvProgress.variant},computedStriped:function(){return _e(this.striped)?this.striped:this.bvProgress.striped||!1},computedAnimated:function(){return _e(this.animated)?this.animated:this.bvProgress.animated||!1},computedShowProgress:function(){return _e(this.showProgress)?this.showProgress:this.bvProgress.showProgress||!1},computedShowValue:function(){return _e(this.showValue)?this.showValue:this.bvProgress.showValue||!1}},render:function(e){var t,n=this.label,r=this.labelHtml,i=this.computedValue,a=this.computedPrecision,o={};return this.hasNormalizedSlot()?t=this.normalizeSlot():n||r?o=th(r,n):this.computedShowProgress?t=this.computedProgress:this.computedShowValue&&(t=ys(i,a)),e("div",{staticClass:"progress-bar",class:this.progressBarClasses,style:this.progressBarStyles,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuemax":Ts(this.computedMax),"aria-valuenow":ys(i,a)},domProps:o},t)}});function qL(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 QL(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.noCloseOnRouteChange||e.fullPath===t.fullPath||this.hide()})),ZL),created:function(){this.$_returnFocusEl=null},mounted:function(){var e=this;this.listenOnRoot(lC,this.handleToggle),this.listenOnRoot(sC,this.handleSync),this.$nextTick((function(){e.emitState(e.localShow)}))},activated:function(){this.emitSync()},beforeDestroy:function(){this.localShow=!1,this.$_returnFocusEl=null},methods:{hide:function(){this.localShow=!1},emitState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.localShow;this.emitOnRoot(cC,this.safeId(),e)},emitSync:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.localShow;this.emitOnRoot(uC,this.safeId(),e)},handleToggle:function(e){e&&e===this.safeId()&&(this.localShow=!this.localShow)},handleSync:function(e){var t=this;e&&e===this.safeId()&&this.$nextTick((function(){t.emitSync(t.localShow)}))},onKeydown:function(e){var t=e.keyCode;!this.noCloseOnEsc&&t===Cu&&this.localShow&&this.hide()},onBackdropClick:function(){this.localShow&&!this.noCloseOnBackdrop&&this.hide()},onTopTrapFocus:function(){var e=dl(this.$refs.content);this.enforceFocus(e.reverse()[0])},onBottomTrapFocus:function(){var e=dl(this.$refs.content);this.enforceFocus(e[0])},onBeforeEnter:function(){this.$_returnFocusEl=Fs(c?[document.body]:[]),this.isOpen=!0},onAfterEnter:function(e){Gs(e,Fs())||this.enforceFocus(e),this.$emit(pa)},onAfterLeave:function(){this.enforceFocus(this.$_returnFocusEl),this.$_returnFocusEl=null,this.isOpen=!1,this.$emit(Wi)},enforceFocus:function(e){this.noEnforceFocus||hl(e)}},render:function(e){var t,n=this.bgVariant,r=this.width,i=this.textVariant,a=this.localShow,o=""===this.shadow||this.shadow,s=e(this.tag,{staticClass:oC,class:[(t={shadow:!0===o},aC(t,"shadow-".concat(o),o&&!0!==o),aC(t,"".concat(oC,"-right"),this.right),aC(t,"bg-".concat(n),n),aC(t,"text-".concat(i),i),t),this.sidebarClass],style:{width:r},attrs:this.computedAttrs,directives:[{name:"show",value:a}],ref:"content"},[_C(e,this)]);s=e("transition",{props:this.transitionProps,on:{beforeEnter:this.onBeforeEnter,afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[s]);var l=e(tc,{props:{noFade:this.noSlide}},[AC(e,this)]),c=e(),u=e();return this.backdrop&&a&&(c=e("div",{attrs:{tabindex:"0"},on:{focus:this.onTopTrapFocus}}),u=e("div",{attrs:{tabindex:"0"},on:{focus:this.onBottomTrapFocus}})),e("div",{staticClass:"b-sidebar-outer",style:{zIndex:this.zIndex},attrs:{tabindex:"-1"},on:{keydown:this.onKeydown}},[c,s,u,l])}}),SC=Tt({components:{BSidebar:kC},plugins:{VBTogglePlugin:lg}});function TC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var MC=El({animation:Ol(Ra,"wave"),height:Ol(Ra),size:Ol(Ra),type:Ol(Ra,"text"),variant:Ol(Ra),width:Ol(Ra)},wr),OC=mi({name:wr,functional:!0,props:MC,render:function(e,t){var n,r=t.data,i=t.props,a=i.size,o=i.animation,s=i.variant;return e("div",ii(r,{staticClass:"b-skeleton",style:{width:a||i.width,height:a||i.height},class:(n={},TC(n,"b-skeleton-".concat(i.type),!0),TC(n,"b-skeleton-animate-".concat(o),o),TC(n,"bg-".concat(s),s),n)}))}});function LC(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 CC(e){for(var t=1;t0}}});function FC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HC={stacked:Ol($a,!1)},BC=mi({props:HC,computed:{isStacked:function(){var e=this.stacked;return""===e||e},isStackedAlways:function(){return!0===this.isStacked},stackedTableClasses:function(){var e=this.isStackedAlways;return FC({"b-table-stacked":e},"b-table-stacked-".concat(this.stacked),!e&&this.isStacked)}}});function NC(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 zC(e){for(var t=1;t0&&!o,[a,{"table-striped":this.striped,"table-hover":t,"table-dark":this.dark,"table-bordered":this.bordered,"table-borderless":this.borderless,"table-sm":this.small,border:this.outlined,"b-table-fixed":this.fixed,"b-table-caption-top":this.captionTop,"b-table-no-border-collapse":this.noBorderCollapse},n?"".concat(this.dark?"bg":"table","-").concat(n):"",i,r]},tableAttrs:function(){var e=Ec(this),t=e.computedItems,n=e.filteredItems,r=e.computedFields,i=e.selectableTableAttrs,a=e.computedBusy,o=this.isTableSimple?{}:{"aria-busy":Ts(a),"aria-colcount":Ts(r.length),"aria-describedby":this.bvAttrs["aria-describedby"]||this.$refs.caption?this.captionId:null},s=t&&n&&n.length>t.length?Ts(n.length):null;return zC(zC(zC({"aria-rowcount":s},this.bvAttrs),{},{id:this.safeId(),role:this.bvAttrs.role||"table"},o),i)}},render:function(e){var t=Ec(this),n=t.wrapperClasses,r=t.renderCaption,i=t.renderColgroup,a=t.renderThead,o=t.renderTbody,s=t.renderTfoot,l=[];this.isTableSimple?l.push(this.normalizeSlot()):(l.push(r?r():null),l.push(i?i():null),l.push(a?a():null),l.push(o?o():null),l.push(s?s():null));var c=e("table",{staticClass:"table b-table",class:this.tableClasses,attrs:this.tableAttrs,key:"b-table"},l.filter(st));return n.length>0?e("div",{class:n,style:this.wrapperStyles,key:"wrap"},[c]):c}});function UC(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 XC(e){for(var t=1;t0},tD=El({animation:Ol(Ra),columns:Ol(Ya,5,eD),hideHeader:Ol(Da,!1),rows:Ol(Ya,3,eD),showFooter:Ol(Da,!1),tableProps:Ol(ja,{})},Ar),nD=mi({name:Ar,functional:!0,props:tD,render:function(e,t){var n=t.data,r=t.props,i=r.animation,a=r.columns,o=e("th",[e(OC,{props:{animation:i}})]),s=e("tr",ds(a,o)),l=e("td",[e(OC,{props:{width:"75%",animation:i}})]),c=e("tr",ds(a,l)),u=e("tbody",ds(r.rows,c)),d=r.hideHeader?e():e("thead",[s]),h=r.showFooter?e("tfoot",[s]):e();return e(QC,ii(n,{props:ZC({},r.tableProps)}),[d,u,h])}}),rD=El({loading:Ol(Da,!1)},kr),iD=mi({name:kr,functional:!0,props:rD,render:function(e,t){var n=t.data,r=t.props,i=t.slots,a=t.scopedSlots,o=i(),s=a||{},l={};return r.loading?e("div",ii(n,{attrs:{role:"alert","aria-live":"polite","aria-busy":!0},staticClass:"b-skeleton-wrapper",key:"loading"}),ms(Lo,l,s,o)):ms(ao,l,s,o)}}),aD=Tt({components:{BSkeleton:OC,BSkeletonIcon:PC,BSkeletonImg:IC,BSkeletonTable:nD,BSkeletonWrapper:iD}}),oD=Tt({components:{BSpinner:KM}});function sD(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 lD(e){for(var t=1;t0?e:null},wD=function(e){return we(e)||yD(e)>0},xD=El({colspan:Ol(Xa,null,wD),rowspan:Ol(Xa,null,wD),stackedHeading:Ol(Ra),stickyColumn:Ol(Da,!1),variant:Ol(Ra)},Or),_D=mi({name:Or,mixins:[qu,id,gs],inject:{getBvTableTr:{default:function(){return function(){return{}}}}},inheritAttrs:!1,props:xD,computed:{bvTableTr:function(){return this.getBvTableTr()},tag:function(){return"td"},inTbody:function(){return this.bvTableTr.inTbody},inThead:function(){return this.bvTableTr.inThead},inTfoot:function(){return this.bvTableTr.inTfoot},isDark:function(){return this.bvTableTr.isDark},isStacked:function(){return this.bvTableTr.isStacked},isStackedCell:function(){return this.inTbody&&this.isStacked},isResponsive:function(){return this.bvTableTr.isResponsive},isStickyHeader:function(){return this.bvTableTr.isStickyHeader},hasStickyHeader:function(){return this.bvTableTr.hasStickyHeader},isStickyColumn:function(){return!this.isStacked&&(this.isResponsive||this.hasStickyHeader)&&this.stickyColumn},rowVariant:function(){return this.bvTableTr.variant},headVariant:function(){return this.bvTableTr.headVariant},footVariant:function(){return this.bvTableTr.footVariant},tableVariant:function(){return this.bvTableTr.tableVariant},computedColspan:function(){return yD(this.colspan)},computedRowspan:function(){return yD(this.rowspan)},cellClasses:function(){var e=this.variant,t=this.headVariant,n=this.isStickyColumn;return(!e&&this.isStickyHeader&&!t||!e&&n&&this.inTfoot&&!this.footVariant||!e&&n&&this.inThead&&!t||!e&&n&&this.inTbody)&&(e=this.rowVariant||this.tableVariant||"b-table-default"),[e?"".concat(this.isDark?"bg":"table","-").concat(e):null,n?"b-table-sticky-column":null]},cellAttrs:function(){var e=this.stackedHeading,t=this.inThead||this.inTfoot,n=this.computedColspan,r=this.computedRowspan,i="cell",a=null;return t?(i="columnheader",a=n>0?"colspan":"col"):Hs(this.tag,"th")&&(i="rowheader",a=r>0?"rowgroup":"row"),vD(vD({colspan:n,rowspan:r,role:i,scope:a},this.bvAttrs),{},{"data-label":this.isStackedCell&&!we(e)?Ts(e):null})}},render:function(e){var t=[this.normalizeSlot()];return e(this.tag,{class:this.cellClasses,attrs:this.cellAttrs,on:this.bvListeners},[this.isStackedCell?e("div",[t]):t])}});function AD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kD="busy",SD=ka+kD,TD=AD({},kD,Ol(Da,!1)),MD=mi({props:TD,data:function(){return{localBusy:!1}},computed:{computedBusy:function(){return this[kD]||this.localBusy}},watch:{localBusy:function(e,t){e!==t&&this.$emit(SD,e)}},methods:{stopIfBusy:function(e){return!!this.computedBusy&&(Nl(e),!0)},renderBusy:function(){var e=this.tbodyTrClass,t=this.tbodyTrAttr,n=this.$createElement;return this.computedBusy&&this.hasNormalizedSlot(Ko)?n(fD,{staticClass:"b-table-busy-slot",class:[xe(e)?e(null,Ko):e],attrs:xe(t)?t(null,Ko):t,key:"table-busy-slot"},[n(_D,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot(Ko)])]):null}}}),OD={caption:Ol(Ra),captionHtml:Ol(Ra)},LD=mi({props:OD,computed:{captionId:function(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption:function(){var e=this.caption,t=this.captionHtml,n=this.$createElement,r=n(),i=this.hasNormalizedSlot(Zo);return(i||e||t)&&(r=n("caption",{attrs:{id:this.captionId},domProps:i?{}:th(t,e),key:"caption",ref:"caption"},this.normalizeSlot(Zo))),r}}}),CD={},DD=mi({methods:{renderColgroup:function(){var e=this.computedFields,t=this.$createElement,n=t();return this.hasNormalizedSlot(Jo)&&(n=t("colgroup",{key:"colgroup"},[this.normalizeSlot(Jo,{columns:e.length,fields:e})])),n}}}),ED={emptyFilteredHtml:Ol(Ra),emptyFilteredText:Ol(Ra,"There are no records matching your request"),emptyHtml:Ol(Ra),emptyText:Ol(Ra,"There are no records to show"),showEmpty:Ol(Da,!1)},PD=mi({props:ED,methods:{renderEmpty:function(){var e=Ec(this),t=e.computedItems,n=e.computedBusy,r=this.$createElement,i=r();if(this.showEmpty&&(!t||0===t.length)&&(!n||!this.hasNormalizedSlot(Ko))){var a=this.computedFields,o=this.isFiltered,s=this.emptyText,l=this.emptyHtml,c=this.emptyFilteredText,u=this.emptyFilteredHtml,d=this.tbodyTrClass,h=this.tbodyTrAttr;i=this.normalizeSlot(o?ho:uo,{emptyFilteredHtml:u,emptyFilteredText:c,emptyHtml:l,emptyText:s,fields:a,items:t}),i||(i=r("div",{class:["text-center","my-2"],domProps:o?th(u,c):th(l,s)})),i=r(_D,{props:{colspan:a.length||null}},[r("div",{attrs:{role:"alert","aria-live":"polite"}},[i])]),i=r(fD,{staticClass:"b-table-empty-row",class:[xe(d)?d(null,"row-empty"):d],attrs:xe(h)?h(null,"row-empty"):h,key:o?"b-empty-filtered-row":"b-empty-row"},[i])}return i}}}),YD=function e(t){return we(t)?"":Me(t)&&!Le(t)?ze(t).sort().map((function(n){return e(t[n])})).filter((function(e){return!!e})).join(" "):Ts(t)};function jD(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 ID(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{},i=ze(r).reduce((function(t,n){var i=r[n],a=i.filterByFormatted,o=xe(a)?a:a?i.formatter:null;return xe(o)&&(t[n]=o(e[n],n,e)),t}),Ve(e)),a=ze(i).filter((function(e){return!ND[e]&&!(Te(t)&&t.length>0&&cs(t,e))&&!(Te(n)&&n.length>0&&!cs(n,e))}));return Ue(i,a)},$D=function(e,t,n,r){return Me(e)?YD(WD(e,t,n,r)):""};function VD(e){return qD(e)||GD(e)||XD(e)||UD()}function UD(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function XD(e,t){if(e){if("string"===typeof e)return QD(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)?QD(e,t):void 0}}function GD(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function qD(e){if(Array.isArray(e))return QD(e)}function QD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&ht(KD,Mr),e},localFiltering:function(){return!this.hasProvider||!!this.noProviderFiltering},filteredCheck:function(){var e=this.filteredItems,t=this.localItems,n=this.localFilter;return{filteredItems:e,localItems:t,localFilter:n}},localFilterFn:function(){var e=this.filterFunction;return Yl(e)?e:null},filteredItems:function(){var e=this.localItems,t=this.localFilter,n=this.localFiltering?this.filterFnFactory(this.localFilterFn,t)||this.defaultFilterFnFactory(t):null;return n&&e.length>0?e.filter(n):e}},watch:{computedFilterDebounce:function(e){!e&&this.$_filterTimer&&(this.clearFilterTimer(),this.localFilter=this.filterSanitize(this.filter))},filter:{deep:!0,handler:function(e){var t=this,n=this.computedFilterDebounce;this.clearFilterTimer(),n&&n>0?this.$_filterTimer=setTimeout((function(){t.localFilter=t.filterSanitize(e)}),n):this.localFilter=this.filterSanitize(e)}},filteredCheck:function(e){var t=e.filteredItems,n=e.localFilter,r=!1;n?Hu(n,[])||Hu(n,{})?r=!1:n&&(r=!0):r=!1,r&&this.$emit(Ri,t,t.length),this.isFiltered=r},isFiltered:function(e,t){if(!1===e&&!0===t){var n=this.localItems;this.$emit(Ri,n,n.length)}}},created:function(){var e=this;this.$_filterTimer=null,this.$nextTick((function(){e.isFiltered=Boolean(e.localFilter)}))},beforeDestroy:function(){this.clearFilterTimer()},methods:{clearFilterTimer:function(){clearTimeout(this.$_filterTimer),this.$_filterTimer=null},filterSanitize:function(e){return!this.localFiltering||this.localFilterFn||Ae(e)||Ee(e)?ot(e):""},filterFnFactory:function(e,t){if(!e||!xe(e)||!t||Hu(t,[])||Hu(t,{}))return null;var n=function(n){return e(n,t)};return n},defaultFilterFnFactory:function(e){var t=this;if(!e||!Ae(e)&&!Ee(e))return null;var n=e;if(Ae(n)){var r=Ss(e).replace(Y,"\\s+");n=new RegExp(".*".concat(r,".*"),"i")}var i=function(e){return n.lastIndex=0,n.test($D(e,t.computedFilterIgnored,t.computedFilterIncluded,t.computedFieldsObj))};return i}}}),eE=function(e,t){var n=null;return Ae(t)?n={key:e,label:t}:xe(t)?n={key:e,formatter:t}:Me(t)?(n=Ve(t),n.key=n.key||e):!1!==t&&(n={key:e}),n},tE=function(e,t){var n=[];if(Te(e)&&e.filter(st).forEach((function(e){if(Ae(e))n.push({key:e,label:_s(e)});else if(Me(e)&&e.key&&Ae(e.key))n.push(Ve(e));else if(Me(e)&&1===ze(e).length){var t=ze(e)[0],r=eE(t,e[t]);r&&n.push(r)}})),0===n.length&&Te(t)&&t.length>0){var r=t[0];ze(r).forEach((function(e){ND[e]||n.push({key:e,label:_s(e)})}))}var i={};return n.filter((function(e){return!i[e.key]&&(i[e.key]=!0,e.label=Ae(e.label)?e.label:_s(e.key),!0)}))};function nE(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 rE(e){for(var t=1;t0&&e.some(st)},selectableIsMultiSelect:function(){return this.isSelectable&&cs(["range","multi"],this.selectMode)},selectableTableClasses:function(){var e,t=this.isSelectable;return e={"b-table-selectable":t},bE(e,"b-table-select-".concat(this.selectMode),t),bE(e,"b-table-selecting",this.selectableHasSelection),bE(e,"b-table-selectable-no-click",t&&!this.hasSelectableRowClick),e},selectableTableAttrs:function(){if(!this.isSelectable)return{};var e=this.bvAttrs.role||_E;return{role:e,"aria-multiselectable":e===_E?Ts(this.selectableIsMultiSelect):null}}},watch:{computedItems:function(e,t){var n=!1;if(this.isSelectable&&this.selectedRows.length>0){n=Te(e)&&Te(t)&&e.length===t.length;for(var r=0;n&&r=0&&e0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?ds(e,!0):[!0])},isRowSelected:function(e){return!(!ke(e)||!this.selectedRows[e])},clearSelected:function(){this.selectedLastClicked=-1,this.selectedRows=[]},selectableRowClasses:function(e){if(this.isSelectable&&this.isRowSelected(e)){var t=this.selectedVariant;return bE({"b-table-row-selected":!0},"".concat(this.dark?"bg":"table","-").concat(t),t)}return{}},selectableRowAttrs:function(e){return{"aria-selected":this.isSelectable?this.isRowSelected(e)?"true":"false":null}},setSelectionHandlers:function(e){var t=e&&!this.noSelectOnClick?"$on":"$off";this[t](aa,this.selectionHandler),this[t](Ri,this.clearSelected),this[t](Li,this.clearSelected)},selectionHandler:function(e,t,n){if(this.isSelectable&&!this.noSelectOnClick){var r=this.selectMode,i=this.selectedLastRow,a=this.selectedRows.slice(),o=!a[t];if("single"===r)a=[];else if("range"===r)if(i>-1&&n.shiftKey){for(var s=mc(i,t);s<=gc(i,t);s++)a[s]=!0;o=!0}else n.ctrlKey||n.metaKey||(a=[],o=!0),o&&(this.selectedLastRow=t);a[t]=o,this.selectedRows=a}else this.clearSelected()}}}),SE=function(e,t){return e.map((function(e,t){return[t,e]})).sort(function(e,t){return this(e[1],t[1])||e[0]-t[0]}.bind(t)).map((function(e){return e[1]}))},TE=function(e){return we(e)?"":Se(e)?bs(e,e):e},ME=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.sortBy,i=void 0===r?null:r,a=n.formatter,o=void 0===a?null:a,s=n.locale,l=void 0===s?void 0:s,c=n.localeOptions,u=void 0===c?{}:c,d=n.nullLast,h=void 0!==d&&d,f=ct(e,i,null),p=ct(t,i,null);return xe(o)&&(f=o(f,i,e),p=o(p,i,t)),f=TE(f),p=TE(p),Le(f)&&Le(p)||ke(f)&&ke(p)?fp?1:0:h&&""===f&&""!==p?1:h&&""!==f&&""===p?-1:YD(f).localeCompare(YD(p),l,u)};function OE(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 LE(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:document,t=ll();return!!(t&&""!==t.toString().trim()&&t.containsNode&&Rs(e))&&t.containsNode(e,!0)},qE=El(xD,Yr),QE=mi({name:Yr,extends:_D,props:qE,computed:{tag:function(){return"th"}}});function KE(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 ZE(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(y=String((s-1)*l+t+1));var w=Ts(ct(e,o))||null,x=w||Ts(t),_=w?this.safeId("_row_".concat(w)):null,A=Ec(this).selectableRowClasses?this.selectableRowClasses(t):{},k=Ec(this).selectableRowAttrs?this.selectableRowAttrs(t):{},S=xe(c)?c(e,"row"):c,T=xe(u)?u(e,"row"):u;if(g.push(h(fD,JE({class:[S,A,p?"b-table-has-details":""],props:{variant:e[HD]||null},attrs:ZE(ZE({id:_},T),{},{tabindex:m?"0":null,"data-pk":w||null,"aria-details":v,"aria-owns":v,"aria-rowindex":y},k),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered},key:"__b-table-row-".concat(x,"__"),ref:"item-rows"},fi,!0),b)),p){var M={item:e,index:t,fields:i,toggleDetails:this.toggleDetailsFactory(f,e)};Ec(this).supportsSelectableRows&&(M.rowSelected=this.isRowSelected(t),M.selectRow=function(){return n.selectRow(t)},M.unselectRow=function(){return n.unselectRow(t)});var O=h(_D,{props:{colspan:i.length},class:this.detailsTdClass},[this.normalizeSlot(Qo,M)]);a&&g.push(h("tr",{staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"},key:"__b-table-details-stripe__".concat(x)}));var L=xe(this.tbodyTrClass)?this.tbodyTrClass(e,Qo):this.tbodyTrClass,C=xe(this.tbodyTrAttr)?this.tbodyTrAttr(e,Qo):this.tbodyTrAttr;g.push(h(fD,{staticClass:"b-table-details",class:[L],props:{variant:e[HD]||null},attrs:ZE(ZE({},C),{},{id:v,tabindex:"-1"}),key:"__b-table-details__".concat(x)},[O]))}else f&&(g.push(h()),a&&g.push(h()));return g}}});function lP(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 cP(e){for(var t=1;t0&&n&&n.length>0?ls(t.children).filter((function(e){return cs(n,e)})):[]},getTbodyTrIndex:function(e){if(!Rs(e))return-1;var t="TR"===e.tagName?e:Xs("tr",e,!0);return t?this.getTbodyTrs().indexOf(t):-1},emitTbodyRowEvent:function(e,t){if(e&&this.hasListener(e)&&t&&t.target){var n=this.getTbodyTrIndex(t.target);if(n>-1){var r=this.computedItems[n];this.$emit(e,r,n,t)}}},tbodyRowEventStopped:function(e){return this.stopIfBusy&&this.stopIfBusy(e)},onTbodyRowKeydown:function(e){var t=e.target,n=e.keyCode;if(!this.tbodyRowEventStopped(e)&&"TR"===t.tagName&&Bs(t)&&0===t.tabIndex)if(cs([Lu,Iu],n))Nl(e),this.onTBodyRowClicked(e);else if(cs([Ru,Mu,Du,Ou],n)){var r=this.getTbodyTrIndex(t);if(r>-1){Nl(e);var i=this.getTbodyTrs(),a=e.shiftKey;n===Du||a&&n===Ru?hl(i[0]):n===Ou||a&&n===Mu?hl(i[i.length-1]):n===Ru&&r>0?hl(i[r-1]):n===Mu&&re.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]&&arguments[0],n=Ec(this),r=n.computedFields,i=n.isSortable,a=n.isSelectable,o=n.headVariant,s=n.footVariant,l=n.headRowVariant,c=n.footRowVariant,u=this.$createElement;if(this.isStackedAlways||0===r.length)return u();var d=i||this.hasListener(zi),h=a?this.selectAllRows:Dp,f=a?this.clearSelected:Dp,p=function(n,r){var a=n.label,o=n.labelHtml,s=n.variant,l=n.stickyColumn,c=n.key,p=null;n.label.trim()||n.headerTitle||(p=_s(n.key));var m={};d&&(m.click=function(r){e.headClicked(r,n,t)},m.keydown=function(r){var i=r.keyCode;i!==Lu&&i!==Iu||e.headClicked(r,n,t)});var g=i?e.sortTheadThAttrs(c,n,t):{},v=i?e.sortTheadThClasses(c,n,t):null,b=i?e.sortTheadThLabel(c,n,t):null,y={class:[{"position-relative":b},e.fieldClasses(n),v],props:{variant:s,stickyColumn:l},style:n.thStyle||{},attrs:PP(PP({tabindex:d&&n.sortable?"0":null,abbr:n.headerAbbr||null,title:n.headerTitle||null,"aria-colindex":r+1,"aria-label":p},e.getThValues(null,c,n.thAttr,t?"foot":"head",{})),g),on:m,key:c},w=[jP(c),jP(c.toLowerCase()),jP()];t&&(w=[IP(c),IP(c.toLowerCase()),IP()].concat(TP(w)));var x={label:a,column:c,field:n,isFoot:t,selectAllRows:h,clearSelected:f},_=e.normalizeSlot(w,x)||u("div",{domProps:th(o,a)}),A=b?u("span",{staticClass:"sr-only"}," (".concat(b,")")):null;return u(QE,y,[_,A].filter(st))},m=r.map(p).filter(st),g=[];if(t)g.push(u(fD,{class:this.tfootTrClass,props:{variant:we(c)?l:c}},m));else{var v={columns:r.length,fields:r,selectAllRows:h,clearSelected:f};g.push(this.normalizeSlot(rs,v)||u()),g.push(u(fD,{class:this.theadTrClass,props:{variant:l}},m))}return u(t?bP:SP,{class:(t?this.tfootClass:this.theadClass)||null,props:t?{footVariant:s||o||null}:{headVariant:o||null},key:t?"bv-tfoot":"bv-thead"},g)}}}),HP={},BP=mi({methods:{renderTopRow:function(){var e=this.computedFields,t=this.stacked,n=this.tbodyTrClass,r=this.tbodyTrAttr,i=this.$createElement;return this.hasNormalizedSlot(os)&&!0!==t&&""!==t?i(fD,{staticClass:"b-table-top-row",class:[xe(n)?n(null,"row-top"):n],attrs:xe(r)?r(null,"row-top"):r,key:"b-top-row"},[this.normalizeSlot(os,{columns:e.length,fields:e})]):i()}}});function NP(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 zP(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0];if(this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,t){var n=function(){e.$nextTick((function(){Ys((function(){e.updateTabs()}))}))};this.$_observer=Ip(this.$refs.content,n,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["id"]})}},getTabs:function(){var e=this.registeredTabs,t=[];if(c&&e.length>0){var n=e.map((function(e){return"#".concat(e.safeId())})).join(", ");t=$s(n,this.$el).map((function(e){return e.id})).filter(st)}return SE(e,(function(e,n){return t.indexOf(e.safeId())-t.indexOf(n.safeId())}))},updateTabs:function(){var e=this.getTabs(),t=e.indexOf(e.slice().reverse().find((function(e){return e.localActive&&!e.disabled})));if(t<0){var n=this.currentTab;n>=e.length?t=e.indexOf(e.slice().reverse().find(dY)):e[n]&&!e[n].disabled&&(t=n)}t<0&&(t=e.indexOf(e.find(dY))),e.forEach((function(e,n){e.localActive=n===t})),this.tabs=e,this.currentTab=t},getButtonForTab:function(e){return(this.$refs.buttons||[]).find((function(t){return t.tab===e}))},updateButton:function(e){var t=this.getButtonForTab(e);t&&t.$forceUpdate&&t.$forceUpdate()},activateTab:function(e){var t=this.currentTab,n=this.tabs,r=!1;if(e){var i=n.indexOf(e);if(i!==t&&i>-1&&!e.disabled){var a=new Uv(xi,{cancelable:!0,vueTarget:this,componentId:this.safeId()});this.$emit(a.type,i,t,a),a.defaultPrevented||(this.currentTab=i,r=!0)}}return r||this[cY]===t||this.$emit(uY,t),r},deactivateTab:function(e){return!!e&&this.activateTab(this.tabs.filter((function(t){return t!==e})).find(dY))},focusButton:function(e){var t=this;this.$nextTick((function(){hl(t.getButtonForTab(e))}))},emitTabClick:function(e,t){Ce(t)&&e&&e.$emit&&!e.disabled&&e.$emit(Ti,t)},clickTab:function(e,t){this.activateTab(e),this.emitTabClick(e,t)},firstTab:function(e){var t=this.tabs.find(dY);this.activateTab(t)&&e&&(this.focusButton(t),this.emitTabClick(t,e))},previousTab:function(e){var t=gc(this.currentTab,0),n=this.tabs.slice(0,t).reverse().find(dY);this.activateTab(n)&&e&&(this.focusButton(n),this.emitTabClick(n,e))},nextTab:function(e){var t=gc(this.currentTab,-1),n=this.tabs.slice(t+1).find(dY);this.activateTab(n)&&e&&(this.focusButton(n),this.emitTabClick(n,e))},lastTab:function(e){var t=this.tabs.slice().reverse().find(dY);this.activateTab(t)&&e&&(this.focusButton(t),this.emitTabClick(t,e))}},render:function(e){var t=this,n=this.align,r=this.card,i=this.end,a=this.fill,o=this.firstTab,s=this.justified,l=this.lastTab,c=this.nextTab,u=this.noKeyNav,d=this.noNavStyle,h=this.pills,f=this.previousTab,p=this.small,m=this.tabs,g=this.vertical,v=m.find((function(e){return e.localActive&&!e.disabled})),b=m.find((function(e){return!e.disabled})),y=m.map((function(n,r){var i,a=n.safeId,s=null;return u||(s=-1,(n===v||!v&&n===b)&&(s=null)),e(hY,rY({props:{controls:a?a():null,id:n.controlledBy||(a?a("_BV_tab_button_"):null),noKeyNav:u,posInSet:r+1,setSize:m.length,tab:n,tabIndex:s},on:(i={},rY(i,Ti,(function(e){t.clickTab(n,e)})),rY(i,Fi,o),rY(i,ta,f),rY(i,Qi,c),rY(i,Xi,l),i),key:n[di]||r,ref:"buttons"},fi,!0))})),w=e(rM,{class:this.localNavClass,attrs:{role:"tablist",id:this.safeId("_BV_tab_controls_")},props:{fill:a,justified:s,align:n,tabs:!d&&!h,pills:!d&&h,vertical:g,small:p,cardHeader:r&&!g},ref:"nav"},[this.normalizeSlot(ts)||e(),y,this.normalizeSlot(es)||e()]);w=e("div",{class:[{"card-header":r&&!g&&!i,"card-footer":r&&!g&&i,"col-auto":g},this.navWrapperClass],key:"bv-tabs-nav"},[w]);var x=this.normalizeSlot()||[],_=e();0===x.length&&(_=e("div",{class:["tab-pane","active",{"card-body":r}],key:"bv-empty-tab"},this.normalizeSlot(uo)));var A=e("div",{staticClass:"tab-content",class:[{col:g},this.contentClass],attrs:{id:this.safeId("_BV_tab_container_")},key:"bv-content",ref:"content"},[x,_]);return e(this.tag,{staticClass:"tabs",class:{row:g,"no-gutters":g&&r},attrs:{id:this.safeId()}},[i?A:e(),w,i?e():A])}});function gY(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 vY(e){for(var t=1;t" with name "'.concat(e,'" already exists in the document.'),Fr),this.dead=!0):this.doRender=!0},beforeDestroy:function(){this.doRender&&this.emitOnRoot(Wl(Fr,Ci),this.name)},destroyed:function(){var e=this.$el;e&&e.parentNode&&e.parentNode.removeChild(e)},render:function(e){var t=e("div",{class:["d-none",{"b-dead-toaster":this.dead}]});if(this.doRender){var n=e(TY.YC,{staticClass:"b-toaster-slot",props:{name:this.staticName,multiple:!0,tag:"div",slim:!1,transition:MY}});t=e("div",{staticClass:"b-toaster",class:[this.staticName],attrs:{id:this.staticName,role:this.role||null,"aria-live":this.ariaLive,"aria-atomic":this.ariaAtomic}},[n])}return t}});function CY(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 DY(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return new Uv(e,DY(DY({cancelable:!1,target:this.$el||null,relatedTarget:null},t),{},{vueTarget:this,componentId:this.safeId()}))},emitEvent:function(e){var t=e.type;this.emitOnRoot(Wl(Rr,t),e),this.$emit(t,e)},ensureToaster:function(){if(!this.static){var e=this.computedToaster;if(!TY.Df.hasTarget(e)){var t=document.createElement("div");document.body.appendChild(t);var n=LS(this.bvEventRoot,LY,{propsData:{name:e}});n.$mount(t)}}},startDismissTimer:function(){this.clearDismissTimer(),this.noAutoHide||(this.$_dismissTimer=setTimeout(this.hide,this.resumeDismiss||this.computedDuration),this.dismissStarted=Date.now(),this.resumeDismiss=0)},clearDismissTimer:function(){clearTimeout(this.$_dismissTimer),this.$_dismissTimer=null},setHoverHandler:function(e){var t=this.$refs["b-toast"];Bl(e,t,"mouseenter",this.onPause,Oa),Bl(e,t,"mouseleave",this.onUnPause,Oa)},onPause:function(){if(!this.noAutoHide&&!this.noHoverPause&&this.$_dismissTimer&&!this.resumeDismiss){var e=Date.now()-this.dismissStarted;e>0&&(this.clearDismissTimer(),this.resumeDismiss=gc(this.computedDuration-e,FY))}},onUnPause:function(){this.noAutoHide||this.noHoverPause||!this.resumeDismiss?this.resumeDismiss=this.dismissStarted=0:this.startDismissTimer()},onLinkClick:function(){var e=this;this.$nextTick((function(){Ys((function(){e.hide()}))}))},onBeforeEnter:function(){this.isTransitioning=!0},onAfterEnter:function(){this.isTransitioning=!1;var e=this.buildEvent(pa);this.emitEvent(e),this.startDismissTimer(),this.setHoverHandler(!0)},onBeforeLeave:function(){this.isTransitioning=!0},onAfterLeave:function(){this.isTransitioning=!1,this.order=0,this.resumeDismiss=this.dismissStarted=0;var e=this.buildEvent(Wi);this.emitEvent(e),this.doRender=!1},makeToast:function(e){var t=this,n=this.title,r=this.slotScope,i=Hc(this),a=[],o=this.normalizeSlot(as,r);o?a.push(o):n&&a.push(e("strong",{staticClass:"mr-2"},n)),this.noCloseButton||a.push(e(Xl,{staticClass:"ml-auto mb-1",on:{click:function(){t.hide()}}}));var s=e();a.length>0&&(s=e(this.headerTag,{staticClass:"toast-header",class:this.headerClass},a));var l=e(i?bd:"div",{staticClass:"toast-body",class:this.bodyClass,props:i?Cl(HY,this):{},on:i?{click:this.onLinkClick}:{}},this.normalizeSlot(ao,r));return e("div",{staticClass:"toast",class:this.toastClass,attrs:this.computedAttrs,key:"toast-".concat(this[di]),ref:"toast"},[s,l])}},render:function(e){if(!this.doRender||!this.isMounted)return e();var t=this.order,n=this.static,r=this.isHiding,i=this.isStatus,a="b-toast-".concat(this[di]),o=e("div",{staticClass:"b-toast",class:this.toastClasses,attrs:DY(DY({},n?{}:this.scopedStyleAttrs),{},{id:this.safeId("_toast_outer"),role:r?null:i?"status":"alert","aria-live":r?null:i?"polite":"assertive","aria-atomic":r?null:"true"}),key:a,ref:"b-toast"},[e(tc,{props:{noFade:this.noFade},on:this.transitionHandlers},[this.localShow?this.makeToast(e):e()])]);return e(TY.h_,{props:{name:a,to:this.computedToaster,order:t,slim:!0,disabled:n}},[o])}});function zY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WY(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};e&&!ft(ej)&&n(UY(UY({},ij(t)),{},{toastContent:e}),this._vm)}},{key:"show",value:function(e){e&&this._root.$emit($l(Rr,fa),e)}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._root.$emit($l(Rr,$i),e)}}]),e}();e.mixin({beforeCreate:function(){this[tj]=new r(this)}}),We(e.prototype,ej)||Be(e.prototype,ej,{get:function(){return this&&this[tj]||ht('"'.concat(ej,'" must be accessed from a Vue instance "this" context.'),Rr),this[tj]}})},oj=Tt({plugins:{plugin:aj}}),sj=Tt({components:{BToast:NY,BToaster:LY},plugins:{BVToastPlugin:oj}});function lj(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 cj(e){for(var t=1;t=n){var r=this.$targets[this.$targets.length-1];this.$activeTarget!==r&&this.activate(r)}else{if(this.$activeTarget&&e0)return this.$activeTarget=null,void this.clear();for(var i=this.$offsets.length;i--;){var a=this.$activeTarget!==this.$targets[i]&&e>=this.$offsets[i]&&(be(this.$offsets[i+1])||e0&&this.$root&&this.$root.$emit(Qj,e,n)}},{key:"clear",value:function(){var e=this;$s("".concat(this.$selector,", ").concat(Vj),this.$el).filter((function(e){return Zs(e,zj)})).forEach((function(t){return e.setActiveState(t,!1)}))}},{key:"setActiveState",value:function(e,t){e&&(t?Qs(e,zj):Ks(e,zj))}}],[{key:"Name",get:function(){return Bj}},{key:"Default",get:function(){return Jj}},{key:"DefaultType",get:function(){return eI}}]),e}(),aI="__BV_Scrollspy__",oI=/^\d+$/,sI=/^(auto|position|offset)$/,lI=function(e){var t={};return e.arg&&(t.element="#".concat(e.arg)),ze(e.modifiers).forEach((function(e){oI.test(e)?t.offset=vs(e,0):sI.test(e)&&(t.method=e)})),Ae(e.value)?t.element=e.value:ke(e.value)?t.offset=xc(e.value):Me(e.value)&&ze(e.value).filter((function(e){return!!iI.DefaultType[e]})).forEach((function(n){t[n]=e.value[n]})),t},cI=function(e,t,n){if(c){var r=lI(t);e[aI]?e[aI].updateConfig(r,Qu(Em(n,t))):e[aI]=new iI(e,r,Qu(Em(n,t)))}},uI=function(e){e[aI]&&(e[aI].dispose(),e[aI]=null,delete e[aI])},dI={bind:function(e,t,n){cI(e,t,n)},inserted:function(e,t,n){cI(e,t,n)},update:function(e,t,n){t.value!==t.oldValue&&cI(e,t,n)},componentUpdated:function(e,t,n){t.value!==t.oldValue&&cI(e,t,n)},unbind:function(e){uI(e)}},hI=Tt({directives:{VBScrollspy:dI}}),fI=Tt({directives:{VBVisible:hp}}),pI=Tt({plugins:{VBHoverPlugin:Ej,VBModalPlugin:Pj,VBPopoverPlugin:VL,VBScrollspyPlugin:hI,VBTogglePlugin:lg,VBTooltipPlugin:Lj,VBVisiblePlugin:fI}}),mI="BootstrapVue",gI=St({plugins:{componentsPlugin:Dj,directivesPlugin:pI}}),vI={install:gI,NAME:mI}},8607:function(e,t,n){(function(t,r,i){e.exports=r(n(7424),n(1586),n(2691),n(9904),n(2811))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.BlockCipher,i=t.algo,a=[],o=[],s=[],l=[],c=[],u=[],d=[],h=[],f=[],p=[];(function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var i=r^r<<1^r<<2^r<<3^r<<4;i=i>>>8^255&i^99,a[n]=i,o[i]=n;var m=e[n],g=e[m],v=e[g],b=257*e[i]^16843008*i;s[n]=b<<24|b>>>8,l[n]=b<<16|b>>>16,c[n]=b<<8|b>>>24,u[n]=b;b=16843009*v^65537*g^257*m^16843008*n;d[i]=b<<24|b>>>8,h[i]=b<<16|b>>>16,f[i]=b<<8|b>>>24,p[i]=b,n?(n=m^e[e[e[v^m]]],r^=e[e[r]]):n=r=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],g=i.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=this._nRounds=n+6,i=4*(r+1),o=this._keySchedule=[],s=0;s6&&s%n==4&&(u=a[u>>>24]<<24|a[u>>>16&255]<<16|a[u>>>8&255]<<8|a[255&u]):(u=u<<8|u>>>24,u=a[u>>>24]<<24|a[u>>>16&255]<<16|a[u>>>8&255]<<8|a[255&u],u^=m[s/n|0]<<24),o[s]=o[s-n]^u);for(var l=this._invKeySchedule=[],c=0;c>>24]]^h[a[u>>>16&255]]^f[a[u>>>8&255]]^p[a[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,l,c,u,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,h,f,p,o);n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,a,o,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],f=4,p=1;p>>24]^i[u>>>16&255]^a[d>>>8&255]^o[255&h]^n[f++],g=r[u>>>24]^i[d>>>16&255]^a[h>>>8&255]^o[255&c]^n[f++],v=r[d>>>24]^i[h>>>16&255]^a[c>>>8&255]^o[255&u]^n[f++],b=r[h>>>24]^i[c>>>16&255]^a[u>>>8&255]^o[255&d]^n[f++];c=m,u=g,d=v,h=b}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[f++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[f++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[f++],b=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[f++];e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=b},keySize:8});t.AES=r._createHelper(g)}(),e.AES}))},2811:function(e,t,n){n(7658),function(t,r,i){e.exports=r(n(7424),n(9904))}(0,(function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,i=r.Base,a=r.WordArray,o=r.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),c=n.algo,u=c.EvpKDF,d=r.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?A:w}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),h=(r.StreamCipher=d.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),n.mode={}),f=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=h.CBC=function(){var e=f.extend();function n(e,n,r){var i,a=this._iv;a?(i=a,this._iv=t):i=this._prevBlock;for(var o=0;o>>2];e.sigBytes-=t}},v=(r.BlockCipher=d.extend({cfg:d.cfg.extend({mode:p,padding:g}),reset:function(){var e;d.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),b=n.format={},y=b.OpenSSL={stringify:function(e){var t,n=e.ciphertext,r=e.salt;return t=r?a.create([1398893684,1701076831]).concat(r).concat(n):n,t.toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=a.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:t})}},w=r.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),a=i.finalize(t),o=i.cfg;return v.create({ciphertext:a,key:n,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=e.createDecryptor(n,r).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),x=n.kdf={},_=x.OpenSSL={execute:function(e,t,n,r){r||(r=a.random(8));var i=u.create({keySize:t+n}).compute(e,r),o=a.create(i.words.slice(t),4*n);return i.sigBytes=4*t,v.create({key:i,iv:o,salt:r})}},A=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:_}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=r.kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var a=w.encrypt.call(this,e,t,i.key,r);return a.mixIn(i),a},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);r.iv=i.iv;var a=w.decrypt.call(this,e,t,i.key,r);return a}})}()}))},7424:function(e,t,n){n(7658),n(1439),n(7585),n(5315),n(3252),n(6461),n(2372),function(t,n){e.exports=n()}(0,(function(){var e=e||function(e,t){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(2480)}catch(g){}var i=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},s=o.lib={},l=s.Base=function(){return{extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=s.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},f=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,a=r.sigBytes,o=this.blockSize,s=4*o,l=a/s;l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0);var u=l*o,d=e.min(4*u,a);if(u){for(var h=0;h>>2]>>>24-a%4*8&255,s=t[a+1>>>2]>>>24-(a+1)%4*8&255,l=t[a+2>>>2]>>>24-(a+2)%4*8&255,c=o<<16|s<<8|l,u=0;u<4&&a+.75*u>>6*(3-u)&63));var d=r.charAt(64);if(d)while(i.length%4)i.push(d);return i.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i>>6-o%4*2,c=s|l;i[a>>>2]|=c<<24-a%4*8,a++}return r.create(i,a)}}(),e.enc.Base64}))},6694:function(e,t,n){n(7658),function(t,r){e.exports=r(n(7424))}(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=t.enc;i.Base64url={stringify:function(e,t=!0){var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var a=[],o=0;o>>2]>>>24-o%4*8&255,l=n[o+1>>>2]>>>24-(o+1)%4*8&255,c=n[o+2>>>2]>>>24-(o+2)%4*8&255,u=s<<16|l<<8|c,d=0;d<4&&o+.75*d>>6*(3-d)&63));var h=i.charAt(64);if(h)while(a.length%4)a.push(h);return a.join("")},parse:function(e,t=!0){var n=e.length,r=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-o%4*2,c=s|l;i[a>>>2]|=c<<24-a%4*8,a++}return r.create(i,a)}}(),e.enc.Base64url}))},7523:function(e,t,n){n(7658),function(t,r){e.exports=r(n(7424))}(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=t.enc;i.Utf16=i.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return r.create(n,2*t)}};function a(e){return e<<8&4278255360|e>>>8&16711935}i.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>1]|=a(e.charCodeAt(i)<<16-i%2*16);return r.create(n,2*t)}}}(),e.enc.Utf16}))},9904:function(e,t,n){(function(t,r,i){e.exports=r(n(7424),n(4768),n(6190))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,a=t.algo,o=a.MD5,s=a.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n,r=this.cfg,a=r.hasher.create(),o=i.create(),s=o.words,l=r.keySize,c=r.iterations;while(s.lengthr&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),s=i.words,l=o.words,c=0;c>>2]|=e[r]<<24-r%4*8;i.call(this,n,t)}else i.apply(this,arguments)};a.prototype=r}}(),e.lib.WordArray}))},2691:function(e,t,n){(function(t,r){e.exports=r(n(7424))})(0,(function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=[];(function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0})();var l=o.MD5=a.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 a=this._hash.words,o=e[t+0],l=e[t+1],f=e[t+2],p=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],b=e[t+7],y=e[t+8],w=e[t+9],x=e[t+10],_=e[t+11],A=e[t+12],k=e[t+13],S=e[t+14],T=e[t+15],M=a[0],O=a[1],L=a[2],C=a[3];M=c(M,O,L,C,o,7,s[0]),C=c(C,M,O,L,l,12,s[1]),L=c(L,C,M,O,f,17,s[2]),O=c(O,L,C,M,p,22,s[3]),M=c(M,O,L,C,m,7,s[4]),C=c(C,M,O,L,g,12,s[5]),L=c(L,C,M,O,v,17,s[6]),O=c(O,L,C,M,b,22,s[7]),M=c(M,O,L,C,y,7,s[8]),C=c(C,M,O,L,w,12,s[9]),L=c(L,C,M,O,x,17,s[10]),O=c(O,L,C,M,_,22,s[11]),M=c(M,O,L,C,A,7,s[12]),C=c(C,M,O,L,k,12,s[13]),L=c(L,C,M,O,S,17,s[14]),O=c(O,L,C,M,T,22,s[15]),M=u(M,O,L,C,l,5,s[16]),C=u(C,M,O,L,v,9,s[17]),L=u(L,C,M,O,_,14,s[18]),O=u(O,L,C,M,o,20,s[19]),M=u(M,O,L,C,g,5,s[20]),C=u(C,M,O,L,x,9,s[21]),L=u(L,C,M,O,T,14,s[22]),O=u(O,L,C,M,m,20,s[23]),M=u(M,O,L,C,w,5,s[24]),C=u(C,M,O,L,S,9,s[25]),L=u(L,C,M,O,p,14,s[26]),O=u(O,L,C,M,y,20,s[27]),M=u(M,O,L,C,k,5,s[28]),C=u(C,M,O,L,f,9,s[29]),L=u(L,C,M,O,b,14,s[30]),O=u(O,L,C,M,A,20,s[31]),M=d(M,O,L,C,g,4,s[32]),C=d(C,M,O,L,y,11,s[33]),L=d(L,C,M,O,_,16,s[34]),O=d(O,L,C,M,S,23,s[35]),M=d(M,O,L,C,l,4,s[36]),C=d(C,M,O,L,m,11,s[37]),L=d(L,C,M,O,b,16,s[38]),O=d(O,L,C,M,x,23,s[39]),M=d(M,O,L,C,k,4,s[40]),C=d(C,M,O,L,o,11,s[41]),L=d(L,C,M,O,p,16,s[42]),O=d(O,L,C,M,v,23,s[43]),M=d(M,O,L,C,w,4,s[44]),C=d(C,M,O,L,A,11,s[45]),L=d(L,C,M,O,T,16,s[46]),O=d(O,L,C,M,f,23,s[47]),M=h(M,O,L,C,o,6,s[48]),C=h(C,M,O,L,b,10,s[49]),L=h(L,C,M,O,S,15,s[50]),O=h(O,L,C,M,g,21,s[51]),M=h(M,O,L,C,A,6,s[52]),C=h(C,M,O,L,p,10,s[53]),L=h(L,C,M,O,x,15,s[54]),O=h(O,L,C,M,l,21,s[55]),M=h(M,O,L,C,y,6,s[56]),C=h(C,M,O,L,T,10,s[57]),L=h(L,C,M,O,v,15,s[58]),O=h(O,L,C,M,k,21,s[59]),M=h(M,O,L,C,m,6,s[60]),C=h(C,M,O,L,_,10,s[61]),L=h(L,C,M,O,f,15,s[62]),O=h(O,L,C,M,w,21,s[63]),a[0]=a[0]+M|0,a[1]=a[1]+O|0,a[2]=a[2]+L|0,a[3]=a[3]+C|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var a=t.floor(r/4294967296),o=r;n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.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=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+i+o;return(s<>>32-a)+t}function u(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+i+o;return(s<>>32-a)+t}function d(e,t,n,r,i,a,o){var s=e+(t^n^r)+i+o;return(s<>>32-a)+t}function h(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+i+o;return(s<>>32-a)+t}n.MD5=a._createHelper(l),n.HmacMD5=a._createHmacHelper(l)}(Math),e.MD5}))},9599:function(e,t,n){(function(t,r,i){e.exports=r(n(7424),n(2811))})(0,(function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var i,a=this._iv;a?(i=a.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var o=0;o>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var i=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),r(o);var s=o.slice(0);n.encryptBlock(s,0);for(var l=0;l>>2]|=i<<24-a%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}))},9565:function(e,t,n){(function(t,r,i){e.exports=r(n(7424),n(2811))})(0,(function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,i=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}))},8388:function(e,t,n){(function(t,r,i){e.exports=r(n(7424),n(2811))})(0,(function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}))},6095:function(e,t,n){(function(t,r,i){e.exports=r(n(7424),n(2811))})(0,(function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}))},1181:function(e,t,n){(function(t,r,i){e.exports=r(n(7424),n(2811))})(0,(function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding}))},2046:function(e,t,n){(function(t,r,i){e.exports=r(n(7424),n(4768),n(6190))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,a=t.algo,o=a.SHA1,s=a.HMAC,l=a.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n=this.cfg,r=s.create(n.hasher,e),a=i.create(),o=i.create([1]),l=a.words,c=o.words,u=n.keySize,d=n.iterations;while(l.length>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var a=t.words,o=a[0],s=a[1],l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=h,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=h;for(i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)a[r]=16711935&(a[r]<<8|a[r]>>>24)|4278255360&(a[r]<<24|a[r]>>>8),e[t+r]^=a[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,a=r>>>16,l=((i*i>>>17)+i*a>>>15)+a*a,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=r._createHelper(l)}(),e.RabbitLegacy}))},9795:function(e,t,n){(function(t,r,i){e.exports=r(n(7424),n(1586),n(2691),n(9904),n(2811))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.StreamCipher,i=t.algo,a=[],o=[],s=[],l=i.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var a=t.words,o=a[0],s=a[1],l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=h;for(n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)a[r]=16711935&(a[r]<<8|a[r]>>>24)|4278255360&(a[r]<<24|a[r]>>>8),e[t+r]^=a[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,a=r>>>16,l=((i*i>>>17)+i*a>>>15)+a*a,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=r._createHelper(l)}(),e.Rabbit}))},4601:function(e,t,n){(function(t,r,i){e.exports=r(n(7424),n(1586),n(2691),n(9904),n(2811))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.StreamCipher,i=t.algo,a=i.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var a=0;i<256;i++){var o=i%n,s=t[o>>>2]>>>24-o%4*8&255;a=(a+r[i]+s)%256;var l=r[i];r[i]=r[a],r[a]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){t=(t+1)%256,n=(n+e[t])%256;var a=e[t];e[t]=e[n],e[n]=a,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}t.RC4=r._createHelper(a);var s=i.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=r._createHelper(s)}(),e.RC4}))},8155:function(e,t,n){(function(t,r){e.exports=r(n(7424))})(0,(function(e){ /** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ return function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=i.create([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=i.create([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=i.create([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=i.create([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=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=a.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_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 a,o,f,w,x,_,A,k,S,T,M,O=this._hash.words,L=d.words,C=h.words,D=s.words,E=l.words,P=c.words,Y=u.words;_=a=O[0],A=o=O[1],k=f=O[2],S=w=O[3],T=x=O[4];for(n=0;n<80;n+=1)M=a+e[t+D[n]]|0,M+=n<16?p(o,f,w)+L[0]:n<32?m(o,f,w)+L[1]:n<48?g(o,f,w)+L[2]:n<64?v(o,f,w)+L[3]:b(o,f,w)+L[4],M|=0,M=y(M,P[n]),M=M+x|0,a=x,x=w,w=y(f,10),f=o,o=M,M=_+e[t+E[n]]|0,M+=n<16?b(A,k,S)+C[0]:n<32?v(A,k,S)+C[1]:n<48?g(A,k,S)+C[2]:n<64?m(A,k,S)+C[3]:p(A,k,S)+C[4],M|=0,M=y(M,Y[n]),M=M+T|0,_=T,T=S,S=y(k,10),k=A,A=M;M=O[1]+f+S|0,O[1]=O[2]+w+T|0,O[2]=O[3]+x+_|0,O[3]=O[4]+a+A|0,O[4]=O[0]+o+k|0,O[0]=M},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,a=i.words,o=0;o<5;o++){var s=a[o];a[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|t&~n}function b(e,t,n){return e^(t|~n)}function y(e,t){return e<>>32-t}n.RIPEMD160=a._createHelper(f),n.HmacRIPEMD160=a._createHmacHelper(f)}(Math),e.RIPEMD160}))},4768:function(e,t,n){(function(t,r){e.exports=r(n(7424))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=n.Hasher,a=t.algo,o=[],s=a.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)o[c]=0|e[t+c];else{var u=o[c-3]^o[c-8]^o[c-14]^o[c-16];o[c]=u<<1|u>>>31}var d=(r<<5|r>>>27)+l+o[c];d+=c<20?1518500249+(i&a|~i&s):c<40?1859775393+(i^a^s):c<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,l=s,s=a,a=i<<30|i>>>2,i=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s)}(),e.SHA1}))},3382:function(e,t,n){(function(t,r,i){e.exports=r(n(7424),n(9002))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=t.algo,a=i.SHA256,o=i.SHA224=a.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=a._createHelper(o),t.HmacSHA224=a._createHmacHelper(o)}(),e.SHA224}))},9002:function(e,t,n){(function(t,r){e.exports=r(n(7424))})(0,(function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=[],l=[];(function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}var r=2,i=0;while(i<64)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),l[i]=n(t.pow(r,1/3)),i++),r++})();var c=[],u=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],d=n[6],h=n[7],f=0;f<64;f++){if(f<16)c[f]=0|e[t+f];else{var p=c[f-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=c[f-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[f]=m+c[f-7]+v+c[f-16]}var b=s&u^~s&d,y=r&i^r&a^i&a,w=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),_=h+x+b+l[f]+c[f],A=w+y;h=d,d=u,u=s,s=o+_|0,o=a,a=i,i=r,r=_+A|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=a._createHelper(u),n.HmacSHA256=a._createHmacHelper(u)}(Math),e.SHA256}))},3018:function(e,t,n){n(7658),function(t,r,i){e.exports=r(n(7424),n(2609))}(0,(function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.x64,s=o.Word,l=n.algo,c=[],u=[],d=[];(function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=t%5,i=(2*e+3*t)%5;e=r,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,o=0;o<24;o++){for(var l=0,h=0,f=0;f<7;f++){if(1&a){var p=(1<>>24)|4278255360&(a<<24|a>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var s=n[i];s.high^=o,s.low^=a}for(var l=0;l<24;l++){for(var f=0;f<5;f++){for(var p=0,m=0,g=0;g<5;g++){s=n[f+5*g];p^=s.high,m^=s.low}var v=h[f];v.high=p,v.low=m}for(f=0;f<5;f++){var b=h[(f+4)%5],y=h[(f+1)%5],w=y.high,x=y.low;for(p=b.high^(w<<1|x>>>31),m=b.low^(x<<1|w>>>31),g=0;g<5;g++){s=n[f+5*g];s.high^=p,s.low^=m}}for(var _=1;_<25;_++){s=n[_];var A=s.high,k=s.low,S=c[_];S<32?(p=A<>>32-S,m=k<>>32-S):(p=k<>>64-S,m=A<>>64-S);var T=h[u[_]];T.high=p,T.low=m}var M=h[0],O=n[0];M.high=O.high,M.low=O.low;for(f=0;f<5;f++)for(g=0;g<5;g++){_=f+5*g,s=n[_];var L=h[_],C=h[(f+1)%5+5*g],D=h[(f+2)%5+5*g];s.high=L.high^~C.high&D.high,s.low=L.low^~C.low&D.low}s=n[0];var E=d[l];s.high^=E.high,s.low^=E.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(this._nDataBytes,8*e.sigBytes),a=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var o=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u>>24)|4278255360&(h<<24|h>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),c.push(f),c.push(h)}return new i.init(c,s)},clone:function(){for(var e=a.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=a._createHelper(f),n.HmacSHA3=a._createHmacHelper(f)}(Math),e.SHA3}))},6920:function(e,t,n){(function(t,r,i){e.exports=r(n(7424),n(2609),n(8684))})(0,(function(e){return function(){var t=e,n=t.x64,r=n.Word,i=n.WordArray,a=t.algo,o=a.SHA512,s=a.SHA384=o.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=o._createHelper(s),t.HmacSHA384=o._createHmacHelper(s)}(),e.SHA384}))},8684:function(e,t,n){(function(t,r,i){e.exports=r(n(7424),n(2609))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.Hasher,i=t.x64,a=i.Word,o=i.WordArray,s=t.algo;function l(){return a.create.apply(a,arguments)}var c=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],u=[];(function(){for(var e=0;e<80;e++)u[e]=l()})();var d=s.SHA512=r.extend({_doReset:function(){this._hash=new o.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l=n[5],d=n[6],h=n[7],f=r.high,p=r.low,m=i.high,g=i.low,v=a.high,b=a.low,y=o.high,w=o.low,x=s.high,_=s.low,A=l.high,k=l.low,S=d.high,T=d.low,M=h.high,O=h.low,L=f,C=p,D=m,E=g,P=v,Y=b,j=y,I=w,R=x,F=_,H=A,B=k,N=S,z=T,W=M,$=O,V=0;V<80;V++){var U,X,G=u[V];if(V<16)X=G.high=0|e[t+2*V],U=G.low=0|e[t+2*V+1];else{var q=u[V-15],Q=q.high,K=q.low,Z=(Q>>>1|K<<31)^(Q>>>8|K<<24)^Q>>>7,J=(K>>>1|Q<<31)^(K>>>8|Q<<24)^(K>>>7|Q<<25),ee=u[V-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ae=u[V-7],oe=ae.high,se=ae.low,le=u[V-16],ce=le.high,ue=le.low;U=J+se,X=Z+oe+(U>>>0>>0?1:0),U+=ie,X=X+re+(U>>>0>>0?1:0),U+=ue,X=X+ce+(U>>>0>>0?1:0),G.high=X,G.low=U}var de=R&H^~R&N,he=F&B^~F&z,fe=L&D^L&P^D&P,pe=C&E^C&Y^E&Y,me=(L>>>28|C<<4)^(L<<30|C>>>2)^(L<<25|C>>>7),ge=(C>>>28|L<<4)^(C<<30|L>>>2)^(C<<25|L>>>7),ve=(R>>>14|F<<18)^(R>>>18|F<<14)^(R<<23|F>>>9),be=(F>>>14|R<<18)^(F>>>18|R<<14)^(F<<23|R>>>9),ye=c[V],we=ye.high,xe=ye.low,_e=$+be,Ae=W+ve+(_e>>>0<$>>>0?1:0),ke=(_e=_e+he,Ae=Ae+de+(_e>>>0>>0?1:0),_e=_e+xe,Ae=Ae+we+(_e>>>0>>0?1:0),_e=_e+U,Ae=Ae+X+(_e>>>0>>0?1:0),ge+pe),Se=me+fe+(ke>>>0>>0?1:0);W=N,$=z,N=H,z=B,H=R,B=F,F=I+_e|0,R=j+Ae+(F>>>0>>0?1:0)|0,j=P,I=Y,P=D,Y=E,D=L,E=C,C=_e+ke|0,L=Ae+Se+(C>>>0<_e>>>0?1:0)|0}p=r.low=p+C,r.high=f+L+(p>>>0>>0?1:0),g=i.low=g+E,i.high=m+D+(g>>>0>>0?1:0),b=a.low=b+Y,a.high=v+P+(b>>>0>>0?1:0),w=o.low=w+I,o.high=y+j+(w>>>0>>0?1:0),_=s.low=_+F,s.high=x+R+(_>>>0>>0?1:0),k=l.low=k+B,l.high=A+H+(k>>>0>>0?1:0),T=d.low=T+z,d.high=S+N+(T>>>0>>0?1:0),O=h.low=O+$,h.high=M+W+(O>>>0<$>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process();var i=this._hash.toX32();return i},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(d),t.HmacSHA512=r._createHmacHelper(d)}(),e.SHA512}))},2898:function(e,t,n){(function(t,r,i){e.exports=r(n(7424),n(1586),n(2691),n(9904),n(2811))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=n.BlockCipher,a=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=a.DES=i.extend({_doReset:function(){for(var e=this._key,t=e.words,n=[],r=0;r<56;r++){var i=o[r]-1;n[r]=t[i>>>5]>>>31-i%32&1}for(var a=this._subKeys=[],c=0;c<16;c++){var u=a[c]=[],d=l[c];for(r=0;r<24;r++)u[r/6|0]|=n[(s[r]-1+d)%28]<<31-r%6,u[4+(r/6|0)]|=n[28+(s[r+24]-1+d)%28]<<31-r%6;u[0]=u[0]<<1|u[0]>>>31;for(r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=a[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),h.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],a=this._lBlock,o=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((o^i[l])&u[l])>>>0];this._lBlock=o,this._rBlock=a^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<192.");var n=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),a=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=d.createEncryptor(r.create(n)),this._des2=d.createEncryptor(r.create(i)),this._des3=d.createEncryptor(r.create(a))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),e.TripleDES}))},2609:function(e,t,n){n(7658),function(t,r){e.exports=r(n(7424))}(0,(function(e){return function(t){var n=e,r=n.lib,i=r.Base,a=r.WordArray,o=n.x64={};o.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),o.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,n){var s=o.URL||o.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?a(l):i(l.href)?r(e,t,n):a(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){a(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,o),n);else if(i(e))r(e,n,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){a(s)}))}}:function(e,t,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return r(e,t,n);var a="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,h=d.createObjectURL(e);i?i.location=h:location.href=h,i=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});o.saveAs=l.saveAs=l,e.exports=l}))},7387:function(e,t,n){var r,i;n(7658), /*! * jQuery JavaScript Library v3.7.1 * https://jquery.com/ * * Copyright OpenJS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2023-08-28T13:37Z */ function(t,n){"use strict";"object"===typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!==typeof window?window:this,(function(n,a){"use strict";var o=[],s=Object.getPrototypeOf,l=o.slice,c=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},u=o.push,d=o.indexOf,h={},f=h.toString,p=h.hasOwnProperty,m=p.toString,g=m.call(Object),v={},b=function(e){return"function"===typeof e&&"number"!==typeof e.nodeType&&"function"!==typeof e.item},y=function(e){return null!=e&&e===e.window},w=n.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){n=n||w;var r,i,a=n.createElement("script");if(a.text=e,t)for(r in x)i=t[r]||t.getAttribute&&t.getAttribute(r),i&&a.setAttribute(r,i);n.head.appendChild(a).parentNode.removeChild(a)}function A(e){return null==e?e+"":"object"===typeof e||"function"===typeof e?h[f.call(e)]||"object":typeof e}var k="3.7.1",S=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function M(e){var t=!!e&&"length"in e&&e.length,n=A(e);return!b(e)&&!y(e)&&("array"===n||0===t||"number"===typeof t&&t>0&&t-1 in e)}function O(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:k,constructor:T,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|"+E+")"+E+"*"),N=new RegExp(E+"|>"),z=new RegExp(j),W=new RegExp("^"+M+"$"),$={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+Y),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i"),bool:new RegExp("^(?:"+S+")$","i"),needsContext:new RegExp("^"+E+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,q=new RegExp("\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\([^\\r\\n\\f])","g"),Q=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},K=function(){ce()},Z=fe((function(e){return!0===e.disabled&&O(e,"fieldset")}),{dir:"parentNode",next:"legend"});function J(){try{return s.activeElement}catch(e){}}try{m.apply(o=l.call(I.childNodes),I.childNodes),o[I.childNodes.length].nodeType}catch(_e){m={apply:function(e,t){R.apply(e,l.call(t))},call:function(e){R.apply(e,l.call(arguments,1))}}}function ee(e,t,n,r){var i,a,o,l,c,d,f,p=t&&t.ownerDocument,b=t?t.nodeType:9;if(n=n||[],"string"!==typeof e||!e||1!==b&&9!==b&&11!==b)return n;if(!r&&(ce(t),t=t||s,u)){if(11!==b&&(c=X.exec(e)))if(i=c[1]){if(9===b){if(!(o=t.getElementById(i)))return n;if(o.id===i)return m.call(n,o),n}else if(p&&(o=p.getElementById(i))&&ee.contains(t,o)&&o.id===i)return m.call(n,o),n}else{if(c[2])return m.apply(n,t.getElementsByTagName(e)),n;if((i=c[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(i)),n}if(!A[e+" "]&&(!h||!h.test(e))){if(f=e,p=t,1===b&&(N.test(e)||B.test(e))){p=G.test(e)&&le(t.parentNode)||t,p==t&&v.scope||((l=t.getAttribute("id"))?l=T.escapeSelector(l):t.setAttribute("id",l=g)),d=de(e),a=d.length;while(a--)d[a]=(l?"#"+l:":scope")+" "+he(d[a]);f=d.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(y){A(e,!0)}finally{l===g&&t.removeAttribute("id")}}}return xe(e.replace(P,"$1"),t,n,r)}function te(){var e=[];function n(r,i){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=i}return n}function ne(e){return e[g]=!0,e}function re(e){var t=s.createElement("fieldset");try{return!!e(t)}catch(_e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return O(t,"input")&&t.type===e}}function ae(e){return function(t){return(O(t,"input")||O(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Z(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function se(e){return ne((function(t){return t=+t,ne((function(n,r){var i,a=e([],n.length,t),o=a.length;while(o--)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function le(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}function ce(e){var n,r=e?e.ownerDocument||e:I;return r!=s&&9===r.nodeType&&r.documentElement?(s=r,c=s.documentElement,u=!T.isXMLDoc(s),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&I!=s&&(n=s.defaultView)&&n.top!==n&&n.addEventListener("unload",K),v.getById=re((function(e){return c.appendChild(e).id=T.expando,!s.getElementsByName||!s.getElementsByName(T.expando).length})),v.disconnectedMatch=re((function(e){return f.call(e,"*")})),v.scope=re((function(){return s.querySelectorAll(":scope")})),v.cssHas=re((function(){try{return s.querySelector(":has(*,:jqfake)"),!1}catch(_e){return!0}})),v.getById?(t.filter.ID=function(e){var t=e.replace(q,Q);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&u){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(q,Q);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&u){var n,r,i,a=t.getElementById(e);if(a){if(n=a.getAttributeNode("id"),n&&n.value===e)return[a];i=t.getElementsByName(e),r=0;while(a=i[r++])if(n=a.getAttributeNode("id"),n&&n.value===e)return[a]}return[]}}),t.find.TAG=function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if("undefined"!==typeof t.getElementsByClassName&&u)return t.getElementsByClassName(e)},h=[],re((function(e){var t;c.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||h.push("\\["+E+"*(?:value|"+S+")"),e.querySelectorAll("[id~="+g+"-]").length||h.push("~="),e.querySelectorAll("a#"+g+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),t=s.createElement("input"),t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),t=s.createElement("input"),t.setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+E+"*name"+E+"*="+E+"*(?:''|\"\")")})),v.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),k=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!v.sortDetached&&t.compareDocumentPosition(e)===n?e===s||e.ownerDocument==I&&ee.contains(I,e)?-1:t===s||t.ownerDocument==I&&ee.contains(I,t)?1:i?d.call(i,e)-d.call(i,t):0:4&n?-1:1)},s):s}for(e in ee.matches=function(e,t){return ee(e,null,null,t)},ee.matchesSelector=function(e,t){if(ce(e),u&&!A[t+" "]&&(!h||!h.test(t)))try{var n=f.call(e,t);if(n||v.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(_e){A(t,!0)}return ee(t,s,null,[e]).length>0},ee.contains=function(e,t){return(e.ownerDocument||e)!=s&&ce(e),T.contains(e,t)},ee.attr=function(e,n){(e.ownerDocument||e)!=s&&ce(e);var r=t.attrHandle[n.toLowerCase()],i=r&&p.call(t.attrHandle,n.toLowerCase())?r(e,n,!u):void 0;return void 0!==i?i:e.getAttribute(n)},ee.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],r=0,o=0;if(a=!v.sortStable,i=!v.sortStable&&l.call(e,0),C.call(e,k),a){while(t=e[o++])t===e[o]&&(r=n.push(o));while(r--)D.call(e,n[r],1)}return i=null,e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(l.apply(this)))},t=T.expr={cacheLength:50,createPseudo:ne,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(q,Q),e[3]=(e[3]||e[4]||e[5]||"").replace(q,Q),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ee.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ee.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=de(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(q,Q).toLowerCase();return"*"===e?function(){return!0}:function(e){return O(e,t)}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+E+")"+e+"("+E+"|$)"))&&w(e,(function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=ee.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(F," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p=a!==o?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,w=!1;if(m){if(a){while(p){d=t;while(d=d[p])if(s?O(d,v):1===d.nodeType)return!1;f=p="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&&y){u=m[g]||(m[g]={}),c=u[e]||[],h=c[0]===b&&c[1],w=h&&c[2],d=h&&m.childNodes[h];while(d=++h&&d&&d[p]||(w=h=0)||f.pop())if(1===d.nodeType&&++w&&d===t){u[e]=[b,h,w];break}}else if(y&&(u=t[g]||(t[g]={}),c=u[e]||[],h=c[0]===b&&c[1],w=h),!1===w)while(d=++h&&d&&d[p]||(w=h=0)||f.pop())if((s?O(d,v):1===d.nodeType)&&++w&&(y&&(u=d[g]||(d[g]={}),u[e]=[b,w]),d===t))break;return w-=i,w===r||w%r===0&&w/r>=0}}},PSEUDO:function(e,n){var r,i=t.pseudos[e]||t.setFilters[e.toLowerCase()]||ee.error("unsupported pseudo: "+e);return i[g]?i(n):i.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?ne((function(e,t){var r,a=i(e,n),o=a.length;while(o--)r=d.call(e,a[o]),e[r]=!(t[r]=a[o])})):function(e){return i(e,0,r)}):i}},pseudos:{not:ne((function(e){var t=[],n=[],r=we(e.replace(P,"$1"));return r[g]?ne((function(e,t,n,i){var a,o=r(e,null,i,[]),s=e.length;while(s--)(a=o[s])&&(e[s]=!(t[s]=a))})):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}})),has:ne((function(e){return function(t){return ee(e,t).length>0}})),contains:ne((function(e){return e=e.replace(q,Q),function(t){return(t.textContent||T.text(t)).indexOf(e)>-1}})),lang:ne((function(e){return W.test(e||"")||ee.error("unsupported lang: "+e),e=e.replace(q,Q).toLowerCase(),function(t){var n;do{if(n=u?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===J()&&s.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return O(e,"input")&&!!e.checked||O(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return U.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){return O(e,"input")&&"button"===e.type||O(e,"button")},text:function(e){var t;return O(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:se((function(){return[0]})),last:se((function(e,t){return[t-1]})),eq:se((function(e,t,n){return[n<0?n+t:n]})),even:se((function(e,t){for(var n=0;nt?t:n;--r>=0;)e.push(r);return e})),gt:se((function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function me(e,t,n){for(var r=0,i=t.length;r-1&&(a[c]=!(o[c]=h))}}else f=ge(f===o?f.splice(v,f.length):f),i?i(null,o,f,l):m.apply(o,f)}))}function be(e){for(var n,i,a,o=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,u=fe((function(e){return e===n}),l,!0),h=fe((function(e){return d.call(n,e)>-1}),l,!0),f=[function(e,t,i){var a=!s&&(i||t!=r)||((n=t).nodeType?u(e,t,i):h(e,t,i));return n=null,a}];c1&&pe(f),c>1&&he(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(P,"$1"),i,c0,a=e.length>0,o=function(o,l,c,d,h){var f,p,g,v=0,y="0",w=o&&[],x=[],_=r,A=o||a&&t.find.TAG("*",h),k=b+=null==_?1:Math.random()||.1,S=A.length;for(h&&(r=l==s||l||h);y!==S&&null!=(f=A[y]);y++){if(a&&f){p=0,l||f.ownerDocument==s||(ce(f),c=!u);while(g=e[p++])if(g(f,l||s,c)){m.call(d,f);break}h&&(b=k)}i&&((f=!g&&f)&&v--,o&&w.push(f))}if(v+=y,i&&y!==v){p=0;while(g=n[p++])g(w,x,l,c);if(o){if(v>0)while(y--)w[y]||x[y]||(x[y]=L.call(d));x=ge(x)}m.apply(d,x),h&&!o&&x.length>0&&v+n.length>1&&T.uniqueSort(d)}return h&&(b=k,r=_),w};return i?ne(o):o}function we(e,t){var n,r=[],i=[],a=_[e+" "];if(!a){t||(t=de(e)),n=t.length;while(n--)a=be(t[n]),a[g]?r.push(a):i.push(a);a=_(e,ye(i,r)),a.selector=e}return a}function xe(e,n,r,i){var a,o,s,l,c,d="function"===typeof e&&e,h=!i&&de(e=d.selector||e);if(r=r||[],1===h.length){if(o=h[0]=h[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&9===n.nodeType&&u&&t.relative[o[1].type]){if(n=(t.find.ID(s.matches[0].replace(q,Q),n)||[])[0],!n)return r;d&&(n=n.parentNode),e=e.slice(o.shift().value.length)}a=$.needsContext.test(e)?0:o.length;while(a--){if(s=o[a],t.relative[l=s.type])break;if((c=t.find[l])&&(i=c(s.matches[0].replace(q,Q),G.test(o[0].type)&&le(n.parentNode)||n))){if(o.splice(a,1),e=i.length&&he(o),!e)return m.apply(r,i),r;break}}}return(d||we(e,h))(i,n,!u,r,!n||G.test(e)&&le(n.parentNode)||n),r}ue.prototype=t.filters=t.pseudos,t.setFilters=new ue,v.sortStable=g.split("").sort(k).join("")===g,ce(),v.sortDetached=re((function(e){return 1&e.compareDocumentPosition(s.createElement("fieldset"))})),T.find=ee,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,ee.compile=we,ee.select=xe,ee.setDocument=ce,ee.tokenize=de,ee.escape=T.escapeSelector,ee.getText=T.text,ee.isXML=T.isXMLDoc,ee.selectors=T.expr,ee.support=T.support,ee.uniqueSort=T.uniqueSort})();var F=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&T(e).is(n))break;r.push(e)}return r},H=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},B=T.expr.match.needsContext,N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(e,t,n){return b(t)?T.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!==typeof t?T.grep(e,(function(e){return d.call(t,e)>-1!==n})):T.filter(t,e,n)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!==typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(z(this,e||[],!1))},not:function(e){return this.pushStack(z(this,e||[],!0))},is:function(e){return!!z(this,"string"===typeof e&&B.test(e)?T(e):e||[],!1).length}});var W,$=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,V=T.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||W,"string"===typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:$.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:w,!0)),N.test(r[1])&&T.isPlainObject(t))for(r in t)b(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=w.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)};V.prototype=T.fn,W=T(w);var U=/^(?:parents|prev(?:Until|All))/,X={children:!0,contents:!0,next:!0,prev:!0};function G(e,t){while((e=e[t])&&1!==e.nodeType);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e-1:1===n.nodeType&&T.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?T.uniqueSort(a):a)},index:function(e){return e?"string"===typeof e?d.call(T(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return F(e,"parentNode")},parentsUntil:function(e,t,n){return F(e,"parentNode",n)},next:function(e){return G(e,"nextSibling")},prev:function(e){return G(e,"previousSibling")},nextAll:function(e){return F(e,"nextSibling")},prevAll:function(e){return F(e,"previousSibling")},nextUntil:function(e,t,n){return F(e,"nextSibling",n)},prevUntil:function(e,t,n){return F(e,"previousSibling",n)},siblings:function(e){return H((e.parentNode||{}).firstChild,e)},children:function(e){return H(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(O(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(n,r){var i=T.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"===typeof r&&(i=T.filter(r,i)),this.length>1&&(X[e]||T.uniqueSort(i),U.test(e)&&i.reverse()),this.pushStack(i)}}));var q=/[^\x20\t\r\n\f]+/g;function Q(e){var t={};return T.each(e.match(q)||[],(function(e,n){t[n]=!0})),t}function K(e){return e}function Z(e){throw e}function J(e,t,n,r){var i;try{e&&b(i=e.promise)?i.call(e).done(t).fail(n):e&&b(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){e="string"===typeof e?Q(e):T.extend({},e);var t,n,r,i,a=[],o=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;o.length;s=-1){n=o.shift();while(++s-1)a.splice(n,1),n<=s&&s--})),this},has:function(e){return e?T.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=o=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(n){T.each(t,(function(t,r){var i=b(e[r[4]])&&e[r[4]];a[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&b(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var a=0;function o(e,t,r,i){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e=a&&(r!==Z&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?u():(T.Deferred.getErrorHook?u.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(u.error=T.Deferred.getStackHook()),n.setTimeout(u))}}return T.Deferred((function(n){t[0][3].add(o(0,n,b(i)?i:K,n.notifyWith)),t[1][3].add(o(0,n,b(e)?e:K)),t[2][3].add(o(0,n,b(r)?r:Z))})).promise()},promise:function(e){return null!=e?T.extend(e,i):i}},a={};return T.each(t,(function(e,n){var o=n[2],s=n[5];i[n[1]]=o.add,s&&o.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=o.fireWith})),i.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),i=l.call(arguments),a=T.Deferred(),o=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?l.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(J(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||b(i[n]&&i[n].then)))return a.then();while(n--)J(i[n],o(n),a.reject);return a.promise()}});var ee=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&ee.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){n.setTimeout((function(){throw e}))};var te=T.Deferred();function ne(){w.removeEventListener("DOMContentLoaded",ne),n.removeEventListener("load",ne),T.ready()}T.fn.ready=function(e){return te.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||te.resolveWith(w,[T]))}}),T.ready.then=te.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?n.setTimeout(T.ready):(w.addEventListener("DOMContentLoaded",ne),n.addEventListener("load",ne));var re=function(e,t,n,r,i,a,o){var s=0,l=e.length,c=null==n;if("object"===A(n))for(s in i=!0,n)re(e,t,s,n[s],!0,a,o);else if(void 0!==r&&(i=!0,b(r)||(o=!0),c&&(o?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(T(e),n)})),t))for(;s1,null,!0)},removeData:function(e){return this.each((function(){de.remove(this,e)}))}}),T.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ue.get(e,t),n&&(!r||Array.isArray(n)?r=ue.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),r=n.length,i=n.shift(),a=T._queueHooks(e,t),o=function(){T.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,o,a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ue.get(e,n)||ue.access(e,n,{empty:T.Callbacks("once memory").add((function(){ue.remove(e,[t+"queue",n])}))})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,Le=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=w.createDocumentFragment(),t=e.appendChild(w.createElement("div")),n=w.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),v.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",v.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="",v.option=!!t.lastChild})();var Ce={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function De(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&O(e,t)?T.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n",""]);var Pe=/<|&#?\w+;/;function Ye(e,t,n,r,i){for(var a,o,s,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f-1)i&&i.push(a);else if(c=we(a),o=De(d.appendChild(a),"script"),c&&Ee(o),n){u=0;while(a=o[u++])Le.test(a.type||"")&&n.push(a)}return d}var je=/^([^.]*)(?:\.(.+)|)/;function Ie(){return!0}function Re(){return!1}function Fe(e,t,n,r,i,a){var o,s;if("object"===typeof t){for(s in"string"!==typeof n&&(r=r||n,n=void 0),t)Fe(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"===typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Re;else if(!i)return e;return 1===a&&(o=i,i=function(e){return T().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=T.guid++)),e.each((function(){T.event.add(this,t,i,r,n)}))}function He(e,t,n){n?(ue.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var n,r=ue.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=l.call(arguments),ue.set(this,t,r),this[t](),n=ue.get(this,t),ue.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(ue.set(this,t,T.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ie)}})):void 0===ue.get(e,t)&&T.event.add(e,t,Ie)}T.event={global:{},add:function(e,t,n,r,i){var a,o,s,l,c,u,d,h,f,p,m,g=ue.get(e);if(le(e)){n.handler&&(a=n,n=a.handler,i=a.selector),i&&T.find.matchesSelector(ye,i),n.guid||(n.guid=T.guid++),(l=g.events)||(l=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return"undefined"!==typeof T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(q)||[""],c=t.length;while(c--)s=je.exec(t[c])||[],f=m=s[1],p=(s[2]||"").split(".").sort(),f&&(d=T.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=T.event.special[f]||{},u=T.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:p.join(".")},a),(h=l[f])||(h=l[f]=[],h.delegateCount=0,d.setup&&!1!==d.setup.call(e,r,p,o)||e.addEventListener&&e.addEventListener(f,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,u):h.push(u),T.event.global[f]=!0)}},remove:function(e,t,n,r,i){var a,o,s,l,c,u,d,h,f,p,m,g=ue.hasData(e)&&ue.get(e);if(g&&(l=g.events)){t=(t||"").match(q)||[""],c=t.length;while(c--)if(s=je.exec(t[c])||[],f=m=s[1],p=(s[2]||"").split(".").sort(),f){d=T.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,h=l[f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=h.length;while(a--)u=h[a],!i&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(h.splice(a,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||T.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)T.event.remove(e,f+t[c],n,r,!0);T.isEmptyObject(l)&&ue.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=new Array(arguments.length),l=T.event.fix(e),c=(ue.get(this,"events")||Object.create(null))[l.type]||[],u=T.event.special[l.type]||{};for(s[0]=l,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],o={},n=0;n-1:T.find(i,this,null,[c]).length),o[i]&&a.push(r);a.length&&s.push({elem:c,handlers:a})}return c=this,l\s*$/g;function We(e,t){return O(e,"table")&&O(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function $e(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ve(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ue(e,t){var n,r,i,a,o,s,l;if(1===t.nodeType){if(ue.hasData(e)&&(a=ue.get(e),l=a.events,l))for(i in ue.remove(t,"handle events"),l)for(n=0,r=l[i].length;n1&&"string"===typeof p&&!v.checkClone&&Ne.test(p))return e.each((function(i){var a=e.eq(i);m&&(t[0]=p.call(this,i,a.html())),Ge(a,t,n,r)}));if(h&&(i=Ye(t,e[0].ownerDocument,!1,e,r),a=i.firstChild,1===i.childNodes.length&&(i=a),a||r)){for(o=T.map(De(i,"script"),$e),s=o.length;d0&&Ee(o,!l&&De(e,"script")),s},cleanData:function(e){for(var t,n,r,i=T.event.special,a=0;void 0!==(n=e[a]);a++)if(le(n)){if(t=n[ue.expando]){if(t.events)for(r in t.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[ue.expando]=void 0}n[de.expando]&&(n[de.expando]=void 0)}}}),T.fn.extend({detach:function(e){return qe(this,e,!0)},remove:function(e){return qe(this,e)},text:function(e){return re(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ge(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=We(this,e);t.appendChild(e)}}))},prepend:function(){return Ge(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=We(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ge(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ge(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(De(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return re(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!Be.test(e)&&!Ce[(Oe.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))||0),l+c}function ft(e,t,n){var r=Ze(e),i=!v.boxSizingReliable()||n,a=i&&"border-box"===T.css(e,"boxSizing",!1,r),o=a,s=tt(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(Qe.test(s)){if(!n)return s;s="auto"}return(!v.boxSizingReliable()&&a||!v.reliableTrDimensions()&&O(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(a="border-box"===T.css(e,"boxSizing",!1,r),o=l in e,o&&(s=e[l])),s=parseFloat(s)||0,s+ht(e,t,n||(a?"border":"content"),o,r,s)+"px"}function pt(e,t,n,r,i){return new pt.prototype.init(e,t,n,r,i)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=tt(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,o,s=se(t),l=Ke.test(t),c=e.style;if(l||(t=st(s)),o=T.cssHooks[t]||T.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:c[t];a=typeof n,"string"===a&&(i=ve.exec(n))&&i[1]&&(n=Ae(e,t,i),a="number"),null!=n&&n===n&&("number"!==a||l||(n+=i&&i[3]||(T.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,a,o,s=se(t),l=Ke.test(t);return l||(t=st(s)),o=T.cssHooks[t]||T.cssHooks[s],o&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=tt(e,t,r)),"normal"===i&&t in ut&&(i=ut[t]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,n,r){if(n)return!lt.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ft(e,t,r):Je(e,ct,(function(){return ft(e,t,r)}))},set:function(e,n,r){var i,a=Ze(e),o=!v.scrollboxSize()&&"absolute"===a.position,s=o||r,l=s&&"border-box"===T.css(e,"boxSizing",!1,a),c=r?ht(e,t,r,l,a):0;return l&&o&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-ht(e,t,"border",!1,a)-.5)),c&&(i=ve.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),dt(e,n,c)}}})),T.cssHooks.marginLeft=nt(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(tt(e,"marginLeft"))||e.getBoundingClientRect().left-Je(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"===typeof n?n.split(" "):[n];r<4;r++)i[e+be[r]+t]=a[r]||a[r-2]||a[0];return i}},"margin"!==e&&(T.cssHooks[e+t].set=dt)})),T.fn.extend({css:function(e,t){return re(this,(function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=Ze(e),i=t.length;o1)}}),T.Tween=pt,pt.prototype={constructor:pt,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(T.cssNumber[n]?"":"px")},cur:function(){var e=pt.propHooks[this.prop];return e&&e.get?e.get(this):pt.propHooks._default.get(this)},run:function(e){var t,n=pt.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):pt.propHooks._default.set(this),this}},pt.prototype.init.prototype=pt.prototype,pt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[st(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},pt.propHooks.scrollTop=pt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=pt.prototype.init,T.fx.step={};var mt,gt,vt=/^(?:toggle|show|hide)$/,bt=/queueHooks$/;function yt(){gt&&(!1===w.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(yt):n.setTimeout(yt,T.fx.interval),T.fx.tick())}function wt(){return n.setTimeout((function(){mt=void 0})),mt=Date.now()}function xt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=be[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function _t(e,t,n){for(var r,i=(St.tweeners[t]||[]).concat(St.tweeners["*"]),a=0,o=i.length;a1)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"===typeof e.getAttribute?T.prop(e,t,n):(1===a&&T.isXMLDoc(e)||(i=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?Tt:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=T.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&O(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(q);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),Tt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=Mt[t]||T.find.attr;Mt[t]=function(e,t,r){var i,a,o=t.toLowerCase();return r||(a=Mt[o],Mt[o]=i,i=null!=n(e,t,r)?o:null,Mt[o]=a),i}}));var Ot=/^(?:input|select|textarea|button)$/i,Lt=/^(?:a|area)$/i;function Ct(e){var t=e.match(q)||[];return t.join(" ")}function Dt(e){return e.getAttribute&&e.getAttribute("class")||""}function Et(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(q)||[]}T.fn.extend({prop:function(e,t){return re(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&T.isXMLDoc(e)||(t=T.propFix[t]||t,i=T.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):Ot.test(e.nodeName)||Lt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,n,r,i,a,o;return b(e)?this.each((function(t){T(this).addClass(e.call(this,t,Dt(this)))})):(t=Et(e),t.length?this.each((function(){if(r=Dt(this),n=1===this.nodeType&&" "+Ct(r)+" ",n){for(a=0;a-1)n=n.replace(" "+i+" "," ")}o=Ct(n),r!==o&&this.setAttribute("class",o)}})):this):this.attr("class","")},toggleClass:function(e,t){var n,r,i,a,o=typeof e,s="string"===o||Array.isArray(e);return b(e)?this.each((function(n){T(this).toggleClass(e.call(this,n,Dt(this),t),t)})):"boolean"===typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Et(e),this.each((function(){if(s)for(a=T(this),i=0;i-1)return!0;return!1}});var Pt=/\r/g;T.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=b(e),this.each((function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,T(this).val()):e,null==i?i="":"number"===typeof i?i+="":Array.isArray(i)&&(i=T.map(i,(function(e){return null==e?"":e+""}))),t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"===typeof n?n.replace(Pt,""):null==n?"":n)):void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Ct(T.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:i.length;for(r=a<0?l:o?a:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},v.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Yt=n.location,jt={guid:Date.now()},It=/\?/;T.parseXML=function(e){var t,r;if(!e||"string"!==typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(i){}return r=t&&t.getElementsByTagName("parsererror")[0],t&&!r||T.error("Invalid XML: "+(r?T.map(r.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Rt=/^(?:focusinfocus|focusoutblur)$/,Ft=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,r,i){var a,o,s,l,c,u,d,h,f=[r||w],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(o=h=s=r=r||w,3!==r.nodeType&&8!==r.nodeType&&!Rt.test(m+T.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,e=e[T.expando]?e:new T.Event(m,"object"===typeof e&&e),e.isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:T.makeArray(t,[e]),d=T.event.special[m]||{},i||!d.trigger||!1!==d.trigger.apply(r,t))){if(!i&&!d.noBubble&&!y(r)){for(l=d.delegateType||m,Rt.test(l+m)||(o=o.parentNode);o;o=o.parentNode)f.push(o),s=o;s===(r.ownerDocument||w)&&f.push(s.defaultView||s.parentWindow||n)}a=0;while((o=f[a++])&&!e.isPropagationStopped())h=o,e.type=a>1?l:d.bindType||m,u=(ue.get(o,"events")||Object.create(null))[e.type]&&ue.get(o,"handle"),u&&u.apply(o,t),u=c&&o[c],u&&u.apply&&le(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),t)||!le(r)||c&&b(r[m])&&!y(r)&&(s=r[c],s&&(r[c]=null),T.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,Ft),r[m](),e.isPropagationStopped()&&h.removeEventListener(m,Ft),T.event.triggered=void 0,s&&(r[c]=s)),e.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}});var Ht=/\[\]$/,Bt=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,zt=/^(?:input|select|textarea|keygen)/i;function Wt(e,t,n,r){var i;if(Array.isArray(t))T.each(t,(function(t,i){n||Ht.test(e)?r(e,i):Wt(e+"["+("object"===typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==A(t))r(e,t);else for(i in t)Wt(e+"["+i+"]",t[i],n,r)}T.param=function(e,t){var n,r=[],i=function(e,t){var n=b(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){i(this.name,this.value)}));else for(n in e)Wt(n,e[n],t,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&zt.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!Me.test(e))})).map((function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(e){return{name:t.name,value:e.replace(Bt,"\r\n")}})):{name:t.name,value:n.replace(Bt,"\r\n")}})).get()}});var $t=/%20/g,Vt=/#.*$/,Ut=/([?&])_=[^&]*/,Xt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Gt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qt=/^(?:GET|HEAD)$/,Qt=/^\/\//,Kt={},Zt={},Jt="*/".concat("*"),en=w.createElement("a");function tn(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(q)||[];if(b(n))while(r=a[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function nn(e,t,n,r){var i={},a=e===Zt;function o(s){var l;return i[s]=!0,T.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!==typeof c||a||i[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!i["*"]&&o("*")}function rn(e,t){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}function an(e,t,n){var r,i,a,o,s=e.contents,l=e.dataTypes;while("*"===l[0])l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)a=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){a=i;break}o||(o=i)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}function on(e,t,n,r){var i,a,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];a=u.shift();while(a)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=u.shift(),a)if("*"===a)a=l;else if("*"!==l&&l!==a){if(o=c[l+" "+a]||c["* "+a],!o)for(i in c)if(s=i.split(" "),s[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]],o)){!0===o?o=c[i]:!0!==c[i]&&(a=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(d){return{state:"parsererror",error:o?d:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}en.href=Yt.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Yt.href,type:"GET",isLocal:Gt.test(Yt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?rn(rn(e,T.ajaxSettings),t):rn(T.ajaxSettings,e)},ajaxPrefilter:tn(Kt),ajaxTransport:tn(Zt),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0),t=t||{};var r,i,a,o,s,l,c,u,d,h,f=T.ajaxSetup({},t),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?T(p):T.event,g=T.Deferred(),v=T.Callbacks("once memory"),b=f.statusCode||{},y={},x={},_="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o){o={};while(t=Xt.exec(a))o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,y[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)A.always(e[A.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||_;return r&&r.abort(t),k(0,t),this}};if(g.promise(A),f.url=((e||f.url||Yt.href)+"").replace(Qt,Yt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(q)||[""],null==f.crossDomain){l=w.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=en.protocol+"//"+en.host!==l.protocol+"//"+l.host}catch(S){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!==typeof f.data&&(f.data=T.param(f.data,f.traditional)),nn(Kt,f,t,A),c)return A;for(d in u=T.event&&f.global,u&&0===T.active++&&T.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!qt.test(f.type),i=f.url.replace(Vt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace($t,"+")):(h=f.url.slice(i.length),f.data&&(f.processData||"string"===typeof f.data)&&(i+=(It.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(Ut,"$1"),h=(It.test(i)?"&":"?")+"_="+jt.guid+++h),f.url=i+h),f.ifModified&&(T.lastModified[i]&&A.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&A.setRequestHeader("If-None-Match",T.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&A.setRequestHeader("Content-Type",f.contentType),A.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Jt+"; q=0.01":""):f.accepts["*"]),f.headers)A.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,A,f)||c))return A.abort();if(_="abort",v.add(f.complete),A.done(f.success),A.fail(f.error),r=nn(Zt,f,t,A),r){if(A.readyState=1,u&&m.trigger("ajaxSend",[A,f]),c)return A;f.async&&f.timeout>0&&(s=n.setTimeout((function(){A.abort("timeout")}),f.timeout));try{c=!1,r.send(y,k)}catch(S){if(c)throw S;k(-1,S)}}else k(-1,"No Transport");function k(e,t,o,l){var d,h,y,w,x,_=t;c||(c=!0,s&&n.clearTimeout(s),r=void 0,a=l||"",A.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(w=an(f,A,o)),!d&&T.inArray("script",f.dataTypes)>-1&&T.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),w=on(f,w,A,d),d?(f.ifModified&&(x=A.getResponseHeader("Last-Modified"),x&&(T.lastModified[i]=x),x=A.getResponseHeader("etag"),x&&(T.etag[i]=x)),204===e||"HEAD"===f.type?_="nocontent":304===e?_="notmodified":(_=w.state,h=w.data,y=w.error,d=!y)):(y=_,!e&&_||(_="error",e<0&&(e=0))),A.status=e,A.statusText=(t||_)+"",d?g.resolveWith(p,[h,_,A]):g.rejectWith(p,[A,_,y]),A.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[A,f,d?h:y]),v.fireWith(p,[A,_]),u&&(m.trigger("ajaxComplete",[A,f]),--T.active||T.event.trigger("ajaxStop")))}return A},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,n,r,i){return b(n)&&(i=i||r,r=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:i,data:n,success:r},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return b(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=b(e);return this.each((function(n){T(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var sn={0:200,1223:204},ln=T.ajaxSettings.xhr();v.cors=!!ln&&"withCredentials"in ln,v.ajax=ln=!!ln,T.ajaxTransport((function(e){var t,r;if(v.cors||ln&&!e.crossDomain)return{send:function(i,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(o,i[o]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!==typeof s.status?a(0,"error"):a(s.status,s.statusText):a(sn[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=T("